]> git.lyx.org Git - lyx.git/blob - lib/examples/PDF-comment.lyx
34a8a28db800febbb35e7ffbf1b3e53b73c2585f
[lyx.git] / lib / examples / PDF-comment.lyx
1 #LyX 2.1 created this file. For more info see http://www.lyx.org/
2 \lyxformat 474
3 \begin_document
4 \begin_header
5 \textclass scrartcl
6 \begin_preamble
7 \usepackage[svgnames,rgb]{xcolor}
8 \end_preamble
9 \options index=totoc,BCOR7.5mm,captions=tableheading
10 \use_default_options false
11 \begin_modules
12 pdfcomment
13 \end_modules
14 \maintain_unincluded_children false
15 \language english
16 \language_package default
17 \inputencoding auto
18 \fontencoding global
19 \font_roman default
20 \font_sans default
21 \font_typewriter default
22 \font_math auto
23 \font_default_family default
24 \use_non_tex_fonts false
25 \font_sc false
26 \font_osf false
27 \font_sf_scale 100
28 \font_tt_scale 100
29 \graphics default
30 \default_output_format default
31 \output_sync 0
32 \bibtex_command bibtex
33 \index_command default
34 \paperfontsize 12
35 \spacing single
36 \use_hyperref true
37 \pdf_title "Description of the module pdfcomment"
38 \pdf_author "Uwe Stöhr"
39 \pdf_subject "pdfcomment"
40 \pdf_keywords "LyX, PDF-comments, pdfcomment"
41 \pdf_bookmarks true
42 \pdf_bookmarksnumbered true
43 \pdf_bookmarksopen true
44 \pdf_bookmarksopenlevel 2
45 \pdf_breaklinks false
46 \pdf_pdfborder false
47 \pdf_colorlinks true
48 \pdf_backref false
49 \pdf_pdfusetitle false
50 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
51 \papersize a4paper
52 \use_geometry false
53 \use_package amsmath 1
54 \use_package amssymb 1
55 \use_package cancel 0
56 \use_package esint 1
57 \use_package mathdots 1
58 \use_package mathtools 0
59 \use_package mhchem 1
60 \use_package stackrel 0
61 \use_package stmaryrd 0
62 \use_package undertilde 0
63 \cite_engine basic
64 \cite_engine_type default
65 \biblio_style plain
66 \use_bibtopic false
67 \use_indices false
68 \paperorientation portrait
69 \suppress_date true
70 \justification true
71 \use_refstyle 0
72 \notefontcolor #0000ff
73 \index Index
74 \shortcut idx
75 \color #008000
76 \end_index
77 \secnumdepth 3
78 \tocdepth 2
79 \paragraph_separation skip
80 \defskip medskip
81 \quotes_language english
82 \papercolumns 1
83 \papersides 1
84 \paperpagestyle default
85 \tracking_changes false
86 \output_changes false
87 \html_math_output 0
88 \html_css_as_file 0
89 \html_be_strict false
90 \end_header
91
92 \begin_body
93
94 \begin_layout Standard
95 \begin_inset Flex PDF-Comment-Setup
96 status open
97
98 \begin_layout Plain Layout
99 color=yellow
100 \end_layout
101
102 \end_inset
103
104
105 \begin_inset Note Note
106 status collapsed
107
108 \begin_layout Plain Layout
109 Use yelow as default color for new PDF-comments, see sec.
110 \begin_inset space ~
111 \end_inset
112
113
114 \begin_inset CommandInset ref
115 LatexCommand ref
116 reference "sub:PDF-Comment-setup"
117
118 \end_inset
119
120  for a description.
121 \end_layout
122
123 \end_inset
124
125
126 \end_layout
127
128 \begin_layout Title
129 Description of the module pdfcomment
130 \end_layout
131
132 \begin_layout Author
133 Uwe Stöhr
134 \end_layout
135
136 \begin_layout Standard
137 The LaTeX-package 
138 \series bold
139 pdfcomment
140 \series default
141  provides full access for PDF-comments.
142  You can add normal comments, as well as margin comments, underlining etc.
143  And you can also define a special layout for the comment that you can use
144  several times in the document.
145  This document is only a excerpt of the documentation of 
146 \series bold
147 pdfcomment
148 \series default
149 , See its documentation for all information:
150 \begin_inset Newline newline
151 \end_inset
152
153
154 \begin_inset Flex URL
155 status open
156
157 \begin_layout Plain Layout
158
159 http://mirrors.ctan.org/macros/latex/contrib/pdfcomment/doc/pdfcomment.pdf
160 \end_layout
161
162 \end_inset
163
164
165 \end_layout
166
167 \begin_layout Section
168 The different comments types
169 \end_layout
170
171 \begin_layout Standard
172 The different comment types are inserted using the menu 
173 \family sans
174 Insert\SpecialChar \menuseparator
175 Custom
176 \begin_inset space ~
177 \end_inset
178
179 Insets
180 \family default
181 .
182  You can choose between the following:
183 \end_layout
184
185 \begin_layout Subsection
186 PDF-Annotation 
187 \end_layout
188
189 \begin_layout Standard
190 This is the 
191 \begin_inset Quotes eld
192 \end_inset
193
194 normal
195 \begin_inset Quotes erd
196 \end_inset
197
198  PDF-comment.
199  Here is an example: 
200 \begin_inset Flex PDF-Annotation
201 status open
202
203 \begin_layout Plain Layout
204 this is a simple PDF-Annotation
205 \end_layout
206
207 \end_inset
208
209
210 \end_layout
211
212 \begin_layout Standard
213 Like all PDF-comment types you can add a lot of things to the option of
214  the inset.
215  To insert the options inset, set the cursor into the comment inset and
216  use the menu 
217 \family sans
218 Insert\SpecialChar \menuseparator
219 PDF-xxx
220 \begin_inset space ~
221 \end_inset
222
223 options
224 \family default
225 , where 
226 \family sans
227 xxx
228 \family default
229  stands for the type of the comment.
230 \end_layout
231
232 \begin_layout Standard
233 \begin_inset Note Greyedout
234 status open
235
236 \begin_layout Plain Layout
237
238 \series bold
239 Note:
240 \series default
241  all braces and brackets in comment options must be inserted as TeX-code!
242 \end_layout
243
244 \end_inset
245
246
247 \begin_inset Newline newline
248 \end_inset
249
250
251 \end_layout
252
253 \begin_layout Standard
254 Here is an example PDF-Annotation where the author is set to 
255 \begin_inset Quotes eld
256 \end_inset
257
258 Daisy Duck
259 \begin_inset Quotes erd
260 \end_inset
261
262
263 \begin_inset Flex PDF-Annotation
264 status open
265
266 \begin_layout Plain Layout
267 \begin_inset Argument 1
268 status collapsed
269
270 \begin_layout Plain Layout
271 author=
272 \begin_inset ERT
273 status collapsed
274
275 \begin_layout Plain Layout
276
277 {
278 \end_layout
279
280 \end_inset
281
282 Daisy Duck
283 \begin_inset ERT
284 status collapsed
285
286 \begin_layout Plain Layout
287
288 }
289 \end_layout
290
291 \end_inset
292
293 ,color=
294 \begin_inset ERT
295 status collapsed
296
297 \begin_layout Plain Layout
298
299 {
300 \end_layout
301
302 \end_inset
303
304 0.234 0.867 0.211
305 \begin_inset ERT
306 status collapsed
307
308 \begin_layout Plain Layout
309
310 }
311 \end_layout
312
313 \end_inset
314
315 ,voffset=8pt,opacity=0.5
316 \end_layout
317
318 \end_inset
319
320 This is an annotation with a complex option.
321 \end_layout
322
323 \end_inset
324
325
326 \end_layout
327
328 \begin_layout Standard
329 To avoid to write the same options like the author again and again, you
330  can define a so-called 
331 \begin_inset Quotes eld
332 \end_inset
333
334 avatar
335 \begin_inset Quotes erd
336 \end_inset
337
338  for every person and/or comment layout.
339  See 
340 \begin_inset CommandInset ref
341 LatexCommand ref
342 reference "sec:Avatars"
343
344 \end_inset
345
346  for further information.
347 \end_layout
348
349 \begin_layout Standard
350 For a full list of possible options, please look at the 
351 \series bold
352 pdfcomment
353 \series default
354  documentation.
355 \end_layout
356
357 \begin_layout Subsection
358 PDF-Circle
359 \end_layout
360
361 \begin_layout Standard
362 This will typeset a comment in form of a circle or ellipse.
363  Here is an example without any options: 
364 \begin_inset Flex PDF-Circle
365 status open
366
367 \begin_layout Plain Layout
368 a simple circle comment
369 \end_layout
370
371 \end_inset
372
373
374 \end_layout
375
376 \begin_layout Standard
377 At the right side you see a large, elliptical comment as example of a PDF-Circle
378  with options.
379  
380 \begin_inset Flex PDF-Circle
381 status open
382
383 \begin_layout Plain Layout
384 \begin_inset Argument 1
385 status collapsed
386
387 \begin_layout Plain Layout
388 color=blue,height=2.5cm,width=5.8cm,voffset=-2.8cm,hoffset=8cm,opacity=1.0,justifica
389 tion=right,icolor=
390 \begin_inset ERT
391 status collapsed
392
393 \begin_layout Plain Layout
394
395 {
396 \end_layout
397
398 \end_inset
399
400 yellow
401 \begin_inset ERT
402 status collapsed
403
404 \begin_layout Plain Layout
405
406 }
407 \end_layout
408
409 \end_inset
410
411 ,linewidth=12pt,borderstyle=dashed,dashstyle=
412 \begin_inset ERT
413 status collapsed
414
415 \begin_layout Plain Layout
416
417 {
418 \end_layout
419
420 \end_inset
421
422 10 5
423 \begin_inset ERT
424 status collapsed
425
426 \begin_layout Plain Layout
427
428 }
429 \end_layout
430
431 \end_inset
432
433
434 \end_layout
435
436 \end_inset
437
438 a circle comment in form of a large ellipse
439 \end_layout
440
441 \end_inset
442
443
444 \begin_inset Newline newline
445 \end_inset
446
447
448 \begin_inset Newline newline
449 \end_inset
450
451
452 \begin_inset Newline newline
453 \end_inset
454
455
456 \end_layout
457
458 \begin_layout Subsection
459 PDF-Freetext
460 \end_layout
461
462 \begin_layout Standard
463 This will typeset a comment in form of a freely positioned box.
464  By using the option 
465 \series bold
466 type=callout
467 \series default
468  the box will have an additional so called callout line, to bind the box
469  to a certain element of the page.
470  With the option 
471 \series bold
472 type=typewriter
473 \series default
474  you can write a comment everywhere on the page with a virtual ’typewriter’.
475  These PDF-Freetext annotations do have no frame and a transparent background
476  for ’overwriting’ arbitrary parts of the page.
477  Here is an example in form of a blue rectangle:
478 \begin_inset Flex PDF-Freetext
479 status open
480
481 \begin_layout Plain Layout
482 \begin_inset Argument 1
483 status collapsed
484
485 \begin_layout Plain Layout
486 height=3cm,type=freetext,subject={freetext},width=4.5cm,voffset=-3.2cm,hoffset=-3.2
487 cm,opacity=0.9,justification=right
488 \end_layout
489
490 \end_inset
491
492 This is also a comment, but it's a PDF-Freetext annotation.
493 \end_layout
494
495 \end_inset
496
497
498 \begin_inset Newline newline
499 \end_inset
500
501
502 \begin_inset Newline newline
503 \end_inset
504
505
506 \begin_inset Newline newline
507 \end_inset
508
509
510 \begin_inset Newline newline
511 \end_inset
512
513
514 \end_layout
515
516 \begin_layout Subsection
517 PDF-Line
518 \end_layout
519
520 \begin_layout Standard
521 This will typeset a comment in form of a line, polyline or polygon.
522  Here is an example without any options:
523 \begin_inset Flex PDF-Line
524 status open
525
526 \begin_layout Plain Layout
527 a simple PDF-Line comment
528 \end_layout
529
530 \end_inset
531
532
533 \begin_inset Newline newline
534 \end_inset
535
536
537 \end_layout
538
539 \begin_layout Standard
540 As you can see a PDF-Line comment without options is useless.
541 \end_layout
542
543 \begin_layout Standard
544 The green arrow at the left side of this page is an example for a PDF-Line
545  comment with options.
546 \begin_inset Flex PDF-Line
547 status open
548
549 \begin_layout Plain Layout
550 \begin_inset Argument 1
551 status collapsed
552
553 \begin_layout Plain Layout
554 type=line,opacity=1,line=
555 \begin_inset ERT
556 status collapsed
557
558 \begin_layout Plain Layout
559
560 {
561 \end_layout
562
563 \end_inset
564
565 50 480 50 180
566 \begin_inset ERT
567 status collapsed
568
569 \begin_layout Plain Layout
570
571 }
572 \end_layout
573
574 \end_inset
575
576 ,color=green,icolor=blue,caption=top,linebegin=
577 \begin_inset ERT
578 status collapsed
579
580 \begin_layout Plain Layout
581
582 {
583 \end_layout
584
585 \end_inset
586
587 /ROpenArrow
588 \begin_inset ERT
589 status collapsed
590
591 \begin_layout Plain Layout
592
593 }
594 \end_layout
595
596 \end_inset
597
598 ,lineend=
599 \begin_inset ERT
600 status collapsed
601
602 \begin_layout Plain Layout
603
604 {
605 \end_layout
606
607 \end_inset
608
609 /OpenArrow
610 \begin_inset ERT
611 status collapsed
612
613 \begin_layout Plain Layout
614
615 }
616 \end_layout
617
618 \end_inset
619
620 ,linewidth=2bp,captionhoffset=-5pt,captionvoffset=15pt
621 \end_layout
622
623 \end_inset
624
625 a PDF-Line comment with options
626 \end_layout
627
628 \end_inset
629
630
631 \end_layout
632
633 \begin_layout Subsection
634 PDF-Margin
635 \end_layout
636
637 \begin_layout Standard
638 This will typeset an annotation into the margin.
639  Right beside this text is an example without options:
640 \begin_inset Flex PDF-Margin
641 status open
642
643 \begin_layout Plain Layout
644 a simple PDF-Margin comment
645 \end_layout
646
647 \end_inset
648
649
650 \end_layout
651
652 \begin_layout Standard
653 The red margin note is an example for a PDF-Margin command with options.
654  
655 \begin_inset Flex PDF-Margin
656 status open
657
658 \begin_layout Plain Layout
659 \begin_inset Argument 1
660 status open
661
662 \begin_layout Plain Layout
663 icon=Note,color=red,open=true,hspace=100pt
664 \end_layout
665
666 \end_inset
667
668 a PDF-Margin comment with options
669 \end_layout
670
671 \end_inset
672
673
674 \end_layout
675
676 \begin_layout Subsection
677 PDF-Markup
678 \end_layout
679
680 \begin_layout Standard
681 \begin_inset Flex PDF-Markup
682 status open
683
684 \begin_layout Plain Layout
685 PDF-Markup
686 \end_layout
687
688 \end_inset
689
690
691 \end_layout
692
693 \begin_layout Subsection
694 PDF-Reply
695 \end_layout
696
697 \begin_layout Standard
698 \begin_inset Flex PDF-Reply
699 status open
700
701 \begin_layout Plain Layout
702 PDF-Reply
703 \end_layout
704
705 \end_inset
706
707
708 \end_layout
709
710 \begin_layout Subsection
711 PDF-Sideline
712 \end_layout
713
714 \begin_layout Standard
715 \begin_inset Flex PDF-Sideline
716 status open
717
718 \begin_layout Plain Layout
719 PDF-Sideline
720 \end_layout
721
722 \end_inset
723
724
725 \end_layout
726
727 \begin_layout Subsection
728 PDF-Square
729 \end_layout
730
731 \begin_layout Standard
732 \begin_inset Flex PDF-Square
733 status open
734
735 \begin_layout Plain Layout
736 PDF-Square
737 \end_layout
738
739 \end_inset
740
741
742 \end_layout
743
744 \begin_layout Subsection
745 PDF-Tooltip
746 \end_layout
747
748 \begin_layout Standard
749 With this you can annotate any object with a tooltip
750 \begin_inset Foot
751 status open
752
753 \begin_layout Plain Layout
754 All objects that can be set into a TeX-box to measure its size.
755 \end_layout
756
757 \end_inset
758
759
760 \end_layout
761
762 \begin_layout Standard
763 The PDF-Tooltip inset has a mandatory argument for the tooltip.
764  The object that should be annotated is set into the PDF-Tooltip inset,
765  the tooltip is written into the mandatory argument of the inset.
766  Here is an example of a word with a tooltip: 
767 \begin_inset Flex PDF-Tooltip
768 status open
769
770 \begin_layout Plain Layout
771 \begin_inset Argument post:1
772 status open
773
774 \begin_layout Plain Layout
775 This is a tooltip!
776 \end_layout
777
778 \end_inset
779
780
781 \color red
782 words
783 \end_layout
784
785 \end_inset
786
787
788 \end_layout
789
790 \begin_layout Standard
791 As the object for the tooltip can be almost anything, we can also use it
792  for chemical notations in math: 
793 \begin_inset Flex PDF-Tooltip
794 status open
795
796 \begin_layout Plain Layout
797 \begin_inset Argument post:1
798 status open
799
800 \begin_layout Plain Layout
801 Sulfuric acid
802 \end_layout
803
804 \end_inset
805
806
807 \begin_inset Formula $\ce{H2SO4}$
808 \end_inset
809
810
811 \end_layout
812
813 \end_inset
814
815
816 \end_layout
817
818 \begin_layout Standard
819 The PDF-Tooltip inset has also an optional argument that is used to correct
820  the size of tooltips for math (if necessary) or to disable an annotation.
821  Here is an example with a mathstyle option:
822 \end_layout
823
824 \begin_layout Standard
825 \begin_inset Flex PDF-Tooltip
826 status open
827
828 \begin_layout Plain Layout
829 \begin_inset Argument 1
830 status open
831
832 \begin_layout Plain Layout
833 mathstyle=
834 \begin_inset ERT
835 status collapsed
836
837 \begin_layout Plain Layout
838
839
840 \backslash
841
842 \end_layout
843
844 \end_inset
845
846 displaystyle
847 \end_layout
848
849 \end_inset
850
851
852 \begin_inset Argument post:1
853 status open
854
855 \begin_layout Plain Layout
856 little Gauß
857 \end_layout
858
859 \end_inset
860
861
862 \begin_inset Formula $x^{2}+2xy+y^{2}\sum_{i=1}^{n}i=\frac{1}{2}n\cdot(n+1)$
863 \end_inset
864
865
866 \end_layout
867
868 \end_inset
869
870  
871 \end_layout
872
873 \begin_layout Section
874 Comment definitions
875 \end_layout
876
877 \begin_layout Standard
878 The package 
879 \series bold
880 pdfcomment
881 \series default
882  provides the following environments to define or change PDF-comments:
883 \end_layout
884
885 \begin_layout Subsection
886 PDF-Comment setup
887 \begin_inset CommandInset label
888 LatexCommand label
889 name "sub:PDF-Comment-setup"
890
891 \end_inset
892
893
894 \end_layout
895
896 \begin_layout Standard
897 With this custom inset you can reset the global (document-wide) options
898  at any time.
899  For example the default color for new PDF-comments is blue.
900  To get Adobe Reader's yellow colored notes for all comments in your document,
901  add the PDF-comment setup inset to the beginning of your document and insert
902  there the option 
903 \series bold
904 color=yellow
905 \series default
906 .
907  This was also done in this document.
908 \end_layout
909
910 \begin_layout Standard
911 By using its optional option 
912 \series bold
913 local
914 \series default
915  you can keep the reset local within a group enclosed by TeX-braces.
916  For example you want to reset the color only for two consecutive comments,
917  then enclose the PDF-comment setup inset and the two comment insets in
918  TeX-braces.
919  Here is an example:
920 \end_layout
921
922 \begin_layout Standard
923 \begin_inset ERT
924 status collapsed
925
926 \begin_layout Plain Layout
927
928 {
929 \end_layout
930
931 \end_inset
932
933
934 \begin_inset Flex PDF-Comment-Setup
935 status open
936
937 \begin_layout Plain Layout
938 \begin_inset Argument 1
939 status open
940
941 \begin_layout Plain Layout
942 local
943 \end_layout
944
945 \end_inset
946
947 color=Orange
948 \end_layout
949
950 \end_inset
951
952
953 \begin_inset Flex PDF-Markup
954 status collapsed
955
956 \begin_layout Plain Layout
957 PDF-Markup in orange
958 \end_layout
959
960 \end_inset
961
962
963 \begin_inset Flex PDF-Annotation
964 status collapsed
965
966 \begin_layout Plain Layout
967 PDF-Annotation in orange
968 \end_layout
969
970 \end_inset
971
972
973 \begin_inset ERT
974 status collapsed
975
976 \begin_layout Plain Layout
977
978 }
979 \end_layout
980
981 \end_inset
982
983
984 \begin_inset Flex PDF-Margin
985 status collapsed
986
987 \begin_layout Plain Layout
988 default PDF-Margin comment
989 \end_layout
990
991 \end_inset
992
993
994 \end_layout
995
996 \begin_layout Subsection
997 PDF-Comment style
998 \end_layout
999
1000 \begin_layout Standard
1001 This environment allows you to define a style for a PDF-comment that can
1002  be used by several comments.
1003  Assuming you write a Math tutorial and want to add popup explanations in
1004  the PDF for several expressions, then insert a PDF-Comment style einvironment
1005  before your fiirst formula.
1006  Name it 
1007 \series bold
1008 MathPopup
1009 \series default
1010 , set the color to white with 
1011 \series bold
1012 color=white
1013 \series default
1014  and make the comment popup with 
1015 \series bold
1016 markup=Highlight
1017 \series default
1018  (will pop up when the mouse is hovered over the formula).
1019 \end_layout
1020
1021 \begin_layout Define PDF-Comment Style
1022 \begin_inset Argument 1
1023 status open
1024
1025 \begin_layout Plain Layout
1026 MathPopup
1027 \end_layout
1028
1029 \end_inset
1030
1031 color=white,markup=Highlight
1032 \end_layout
1033
1034 \begin_layout Standard
1035 In the comments use the option 
1036 \series bold
1037 style=MathPopup
1038 \series default
1039  to use your style.
1040  Here is an example:
1041 \end_layout
1042
1043 \begin_layout Standard
1044 \begin_inset Flex PDF-Markup
1045 status open
1046
1047 \begin_layout Plain Layout
1048 \begin_inset Argument 1
1049 status open
1050
1051 \begin_layout Plain Layout
1052
1053 \family roman
1054 \series medium
1055 \shape up
1056 \size normal
1057 \emph off
1058 \bar no
1059 \strikeout off
1060 \uuline off
1061 \uwave off
1062 \noun off
1063 \color none
1064 style=
1065 \family default
1066 \series default
1067 \shape default
1068 \size default
1069 \emph default
1070 \bar default
1071 \strikeout default
1072 \uuline default
1073 \uwave default
1074 \noun default
1075 \color inherit
1076 MathPopup
1077 \end_layout
1078
1079 \end_inset
1080
1081
1082 \begin_inset Formula $P(E)$
1083 \end_inset
1084
1085
1086 \begin_inset Argument post:1
1087 status open
1088
1089 \begin_layout Plain Layout
1090
1091 \family roman
1092 \series medium
1093 \shape up
1094 \size normal
1095 \emph off
1096 \bar no
1097 \strikeout off
1098 \uuline off
1099 \uwave off
1100 \noun off
1101 \color none
1102 Probability of event E
1103 \end_layout
1104
1105 \end_inset
1106
1107
1108 \end_layout
1109
1110 \end_inset
1111
1112
1113 \end_layout
1114
1115 \begin_layout Subsection
1116 \begin_inset CommandInset label
1117 LatexCommand label
1118 name "sec:Avatars"
1119
1120 \end_inset
1121
1122 Avatars
1123 \end_layout
1124
1125 \begin_layout Standard
1126 If you are for example reviewing a document, you need to add your name to
1127  every of your comments.
1128  In case you use a special layout of your annotations, you would have to
1129  do a lot of copy-paste work.
1130  But this can be avoided if you define for every person a special avatar.
1131 \end_layout
1132
1133 \begin_layout Standard
1134 Assuming your name is 
1135 \begin_inset Quotes eld
1136 \end_inset
1137
1138 Oleg Testman
1139 \begin_inset Quotes erd
1140 \end_inset
1141
1142  you can define an avatar for your using the environment Define
1143 \begin_inset space ~
1144 \end_inset
1145
1146 Avatar.
1147  Its mandatory option is the name.
1148  In your case, name it 
1149 \series bold
1150 Oleg
1151 \series default
1152 .
1153  Add behind the name of the avatar your name as author by writing 
1154 \series bold
1155 author={Oleg Testman}
1156 \series default
1157 .
1158 \begin_inset Newline newline
1159 \end_inset
1160
1161 You might use a special icon to see at the first look which comments were
1162  made by you.
1163  You therefore add behind the author-statement, separated by a comma, 
1164 \series bold
1165 icon=Check
1166 \series default
1167
1168 \begin_inset Quotes erd
1169 \end_inset
1170
1171  to get a checkmark.
1172 \begin_inset Foot
1173 status open
1174
1175 \begin_layout Plain Layout
1176 For all possible icons, see the 
1177 \series bold
1178 pdfcomment
1179 \series default
1180  manual.
1181 \end_layout
1182
1183 \end_inset
1184
1185  the checkmark should have a green color so that you add 
1186 \series bold
1187 color=lime
1188 \series default
1189  to the avatar definition.
1190  Your whole definition reads now
1191 \begin_inset Newline newline
1192 \end_inset
1193
1194
1195 \series bold
1196 author={Oleg Testman},icon=Check,color=lime
1197 \end_layout
1198
1199 \begin_layout Define Avatar
1200 \begin_inset Argument 1
1201 status open
1202
1203 \begin_layout Plain Layout
1204 Oleg
1205 \end_layout
1206
1207 \end_inset
1208
1209 author={Oleg Testman},icon=Check,color=lime
1210 \end_layout
1211
1212 \begin_layout Standard
1213 To use now your avatar for PDF-comments you have two choices:
1214 \end_layout
1215
1216 \begin_layout Enumerate
1217 You set up ALL PDF-comments in the document using your avatar.
1218  This is done by inserting the custom inset 
1219 \family sans
1220 PDF-Comment-Setup
1221 \family default
1222  before the first PDF-comment in your document.
1223  Insert to this inset 
1224 \series bold
1225 avatar=Oleg
1226 \series default
1227 .
1228 \end_layout
1229
1230 \begin_layout Enumerate
1231 You add 
1232 \series bold
1233 avatar=Oleg
1234 \series default
1235  to the options of a particular PDF-comment.
1236  The avatar will then only be used for this comment.
1237 \end_layout
1238
1239 \begin_layout Standard
1240 Here is an example for the 
1241 \family sans
1242 PDF-Comment-Setup
1243 \family default
1244  method:
1245 \begin_inset Flex PDF-Comment-Setup
1246 status open
1247
1248 \begin_layout Plain Layout
1249 avatar=Oleg
1250 \end_layout
1251
1252 \end_inset
1253
1254
1255 \begin_inset Flex PDF-Annotation
1256 status open
1257
1258 \begin_layout Plain Layout
1259 Oleg said: Wow, that's nice!
1260 \end_layout
1261
1262 \end_inset
1263
1264
1265 \begin_inset Newline newline
1266 \end_inset
1267
1268 and here is another comment:
1269 \begin_inset Flex PDF-Annotation
1270 status open
1271
1272 \begin_layout Plain Layout
1273 Oleg also said: I hate to repeat myself.
1274 \end_layout
1275
1276 \end_inset
1277
1278
1279 \end_layout
1280
1281 \begin_layout Define Avatar
1282 \begin_inset Argument 1
1283 status open
1284
1285 \begin_layout Plain Layout
1286 Dolittle
1287 \end_layout
1288
1289 \end_inset
1290
1291 color=NavyBlue,opacity=0.5,open=false,icon=Circle,author={Dr.
1292  Dolittle}
1293 \end_layout
1294
1295 \begin_layout Standard
1296 Here is an example where another avatar 
1297 \begin_inset Quotes eld
1298 \end_inset
1299
1300 Dolittle
1301 \begin_inset Quotes erd
1302 \end_inset
1303
1304  is only used for this comment:
1305 \begin_inset Flex PDF-Margin
1306 status open
1307
1308 \begin_layout Plain Layout
1309 \begin_inset Argument 1
1310 status open
1311
1312 \begin_layout Plain Layout
1313 avatar=Dolittle
1314 \end_layout
1315
1316 \end_inset
1317
1318 I am Dr.
1319  Dolittle! Respect my authority!
1320 \end_layout
1321
1322 \end_inset
1323
1324
1325 \end_layout
1326
1327 \begin_layout Section
1328 List of PDF-comments
1329 \end_layout
1330
1331 \begin_layout Standard
1332 You can insert a list with all PDF-comments using the environment List of
1333  PDF-comments.
1334  By specifying options for it you can determine what parts of the comments
1335  shpuld appear in the list.
1336  Here is the list for this document:
1337 \end_layout
1338
1339 \begin_layout List of PDF-Comments
1340 \begin_inset Argument 1
1341 status open
1342
1343 \begin_layout Plain Layout
1344 liststyle={AuthorComment}, heading ={List of PDF-comments}
1345 \end_layout
1346
1347 \end_inset
1348
1349
1350 \end_layout
1351
1352 \begin_layout Section
1353 General Hints
1354 \end_layout
1355
1356 \begin_layout Define Avatar
1357 \begin_inset Argument 1
1358 status open
1359
1360 \begin_layout Plain Layout
1361 Cyrillic
1362 \end_layout
1363
1364 \end_inset
1365
1366 color=Green,open=true,icon=Key,author={a}
1367 \end_layout
1368
1369 \begin_layout Itemize
1370 To be able to use all kinds of colors and color definitions you must load
1371  the LaTeX-package 
1372 \series bold
1373 xcolor
1374 \series default
1375  in the document preamble this way:
1376 \begin_inset Newline newline
1377 \end_inset
1378
1379
1380 \series bold
1381
1382 \backslash
1383 usepackage[svgnames,rgb]{xcolor}
1384 \end_layout
1385
1386 \begin_layout Itemize
1387 If you have two consecutive PDF-comment insets, the will appear in the PDF
1388  one over each other:
1389 \begin_inset Flex PDF-Comment-Setup
1390 status open
1391
1392 \begin_layout Plain Layout
1393 avatar=Oleg
1394 \end_layout
1395
1396 \end_inset
1397
1398
1399 \begin_inset Flex PDF-Annotation
1400 status open
1401
1402 \begin_layout Plain Layout
1403 Oleg said: Wow, that's nice!
1404 \end_layout
1405
1406 \end_inset
1407
1408
1409 \begin_inset Flex PDF-Annotation
1410 status open
1411
1412 \begin_layout Plain Layout
1413 Oleg also said: I hate to repeat myself.
1414 \end_layout
1415
1416 \end_inset
1417
1418
1419 \begin_inset Newline newline
1420 \end_inset
1421
1422 To avoid that separate them with whitespace like protected space:
1423 \begin_inset Flex PDF-Annotation
1424 status open
1425
1426 \begin_layout Plain Layout
1427 Oleg said: Wow, that's nice!
1428 \end_layout
1429
1430 \end_inset
1431
1432
1433 \begin_inset space ~
1434 \end_inset
1435
1436
1437 \begin_inset space ~
1438 \end_inset
1439
1440
1441 \begin_inset space ~
1442 \end_inset
1443
1444
1445 \begin_inset space ~
1446 \end_inset
1447
1448
1449 \begin_inset space ~
1450 \end_inset
1451
1452
1453 \begin_inset space ~
1454 \end_inset
1455
1456
1457 \begin_inset space ~
1458 \end_inset
1459
1460
1461 \begin_inset Flex PDF-Annotation
1462 status open
1463
1464 \begin_layout Plain Layout
1465 Oleg also said: I hate to repeat myself.
1466 \end_layout
1467
1468 \end_inset
1469
1470
1471 \end_layout
1472
1473 \begin_layout Itemize
1474 It you have non-Latin characters in your comment or in the author name ...
1475 \end_layout
1476
1477 \begin_layout Standard
1478 Here is an example of a comment containing non-Latin characters:
1479 \begin_inset Flex PDF-Margin
1480 status open
1481
1482 \begin_layout Plain Layout
1483 \begin_inset Argument 1
1484 status open
1485
1486 \begin_layout Plain Layout
1487 avatar=Cyrillic
1488 \end_layout
1489
1490 \end_inset
1491
1492 Here is a text with Cyrillic letters: Александр Исаевич Солженицын got the
1493  nobel price in 1970.
1494 \end_layout
1495
1496 \end_inset
1497
1498
1499 \end_layout
1500
1501 \end_body
1502 \end_document