1 #LyX 2.1 created this file. For more info see http://www.lyx.org/
7 \usepackage[svgnames,rgb]{xcolor}
9 \options index=totoc,BCOR7.5mm,captions=tableheading
10 \use_default_options false
14 \maintain_unincluded_children false
16 \language_package default
21 \font_typewriter default
23 \font_default_family default
24 \use_non_tex_fonts false
30 \default_output_format default
32 \bibtex_command bibtex
33 \index_command default
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"
42 \pdf_bookmarksnumbered true
43 \pdf_bookmarksopen true
44 \pdf_bookmarksopenlevel 2
49 \pdf_pdfusetitle false
50 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
53 \use_package amsmath 1
54 \use_package amssymb 1
57 \use_package mathdots 1
58 \use_package mathtools 0
60 \use_package stackrel 0
61 \use_package stmaryrd 0
62 \use_package undertilde 0
64 \cite_engine_type default
68 \paperorientation portrait
72 \notefontcolor #0000ff
79 \paragraph_separation skip
81 \quotes_language english
84 \paperpagestyle default
85 \tracking_changes false
94 \begin_layout Standard
95 \begin_inset Flex PDF-Comment-Setup
98 \begin_layout Plain Layout
105 \begin_inset Note Note
108 \begin_layout Plain Layout
109 Use yelow as default color for new PDF-comments, see sec.
114 \begin_inset CommandInset ref
116 reference "sub:PDF-Comment-setup"
129 Description of the module pdfcomment
136 \begin_layout Standard
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
149 , See its documentation for all information:
150 \begin_inset Newline newline
154 \begin_inset Flex URL
157 \begin_layout Plain Layout
159 http://mirrors.ctan.org/macros/latex/contrib/pdfcomment/doc/pdfcomment.pdf
167 \begin_layout Section
168 The different comments types
171 \begin_layout Standard
172 The different comment types are inserted using the menu
174 Insert\SpecialChar \menuseparator
182 You can choose between the following:
185 \begin_layout Subsection
189 \begin_layout Standard
191 \begin_inset Quotes eld
195 \begin_inset Quotes erd
200 \begin_inset Flex PDF-Annotation
203 \begin_layout Plain Layout
204 this is a simple PDF-Annotation
212 \begin_layout Standard
213 Like all PDF-comment types you can add a lot of things to the option of
215 To insert the options inset, set the cursor into the comment inset and
218 Insert\SpecialChar \menuseparator
229 stands for the type of the comment.
232 \begin_layout Standard
233 \begin_inset Note Greyedout
236 \begin_layout Plain Layout
241 all braces and brackets in comment options must be inserted as TeX-code!
247 \begin_inset Newline newline
253 \begin_layout Standard
254 Here is an example PDF-Annotation where the author is set to
255 \begin_inset Quotes eld
259 \begin_inset Quotes erd
263 \begin_inset Flex PDF-Annotation
266 \begin_layout Plain Layout
267 \begin_inset Argument 1
270 \begin_layout Plain Layout
275 \begin_layout Plain Layout
286 \begin_layout Plain Layout
297 \begin_layout Plain Layout
308 \begin_layout Plain Layout
315 ,voffset=8pt,opacity=0.5
320 This is an annotation with a complex option.
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
335 \begin_inset Quotes erd
338 for every person and/or comment layout.
340 \begin_inset CommandInset ref
342 reference "sec:Avatars"
346 for further information.
349 \begin_layout Standard
350 For a full list of possible options, please look at the
357 \begin_layout Subsection
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
367 \begin_layout Plain Layout
368 a simple circle comment
376 \begin_layout Standard
377 At the right side you see a large, elliptical comment as example of a PDF-Circle
380 \begin_inset Flex PDF-Circle
383 \begin_layout Plain Layout
384 \begin_inset Argument 1
387 \begin_layout Plain Layout
388 color=blue,height=2.5cm,width=5.8cm,voffset=-2.8cm,hoffset=8cm,opacity=1.0,justifica
393 \begin_layout Plain Layout
404 \begin_layout Plain Layout
411 ,linewidth=12pt,borderstyle=dashed,dashstyle=
415 \begin_layout Plain Layout
426 \begin_layout Plain Layout
438 a circle comment in form of a large ellipse
444 \begin_inset Newline newline
448 \begin_inset Newline newline
452 \begin_inset Newline newline
458 \begin_layout Subsection
462 \begin_layout Standard
463 This will typeset a comment in form of a freely positioned box.
468 the box will have an additional so called callout line, to bind the box
469 to a certain element of the page.
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
481 \begin_layout Plain Layout
482 \begin_inset Argument 1
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
492 This is also a comment, but it's a PDF-Freetext annotation.
498 \begin_inset Newline newline
502 \begin_inset Newline newline
506 \begin_inset Newline newline
510 \begin_inset Newline newline
516 \begin_layout Subsection
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
526 \begin_layout Plain Layout
527 a simple PDF-Line comment
533 \begin_inset Newline newline
539 \begin_layout Standard
540 As you can see a PDF-Line comment without options is useless.
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
549 \begin_layout Plain Layout
550 \begin_inset Argument 1
553 \begin_layout Plain Layout
554 type=line,opacity=1,line=
558 \begin_layout Plain Layout
569 \begin_layout Plain Layout
576 ,color=green,icolor=blue,caption=top,linebegin=
580 \begin_layout Plain Layout
591 \begin_layout Plain Layout
602 \begin_layout Plain Layout
613 \begin_layout Plain Layout
620 ,linewidth=2bp,captionhoffset=-5pt,captionvoffset=15pt
625 a PDF-Line comment with options
633 \begin_layout Subsection
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
643 \begin_layout Plain Layout
644 a simple PDF-Margin comment
652 \begin_layout Standard
653 The red margin note is an example for a PDF-Margin command with options.
655 \begin_inset Flex PDF-Margin
658 \begin_layout Plain Layout
659 \begin_inset Argument 1
662 \begin_layout Plain Layout
663 icon=Note,color=red,open=true,hspace=100pt
668 a PDF-Margin comment with options
676 \begin_layout Subsection
680 \begin_layout Standard
681 \begin_inset Flex PDF-Markup
684 \begin_layout Plain Layout
693 \begin_layout Subsection
697 \begin_layout Standard
698 \begin_inset Flex PDF-Reply
701 \begin_layout Plain Layout
710 \begin_layout Subsection
714 \begin_layout Standard
715 \begin_inset Flex PDF-Sideline
718 \begin_layout Plain Layout
727 \begin_layout Subsection
731 \begin_layout Standard
732 \begin_inset Flex PDF-Square
735 \begin_layout Plain Layout
744 \begin_layout Subsection
748 \begin_layout Standard
749 With this you can annotate any object with a tooltip
753 \begin_layout Plain Layout
754 All objects that can be set into a TeX-box to measure its size.
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
770 \begin_layout Plain Layout
771 \begin_inset Argument post:1
774 \begin_layout Plain Layout
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
796 \begin_layout Plain Layout
797 \begin_inset Argument post:1
800 \begin_layout Plain Layout
807 \begin_inset Formula $\ce{H2SO4}$
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:
824 \begin_layout Standard
825 \begin_inset Flex PDF-Tooltip
828 \begin_layout Plain Layout
829 \begin_inset Argument 1
832 \begin_layout Plain Layout
837 \begin_layout Plain Layout
852 \begin_inset Argument post:1
855 \begin_layout Plain Layout
862 \begin_inset Formula $x^{2}+2xy+y^{2}\sum_{i=1}^{n}i=\frac{1}{2}n\cdot(n+1)$
873 \begin_layout Section
877 \begin_layout Standard
882 provides the following environments to define or change PDF-comments:
885 \begin_layout Subsection
887 \begin_inset CommandInset label
889 name "sub:PDF-Comment-setup"
896 \begin_layout Standard
897 With this custom inset you can reset the global (document-wide) options
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
907 This was also done in this document.
910 \begin_layout Standard
911 By using its optional option
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
922 \begin_layout Standard
926 \begin_layout Plain Layout
934 \begin_inset Flex PDF-Comment-Setup
937 \begin_layout Plain Layout
938 \begin_inset Argument 1
941 \begin_layout Plain Layout
953 \begin_inset Flex PDF-Markup
956 \begin_layout Plain Layout
963 \begin_inset Flex PDF-Annotation
966 \begin_layout Plain Layout
967 PDF-Annotation in orange
976 \begin_layout Plain Layout
984 \begin_inset Flex PDF-Margin
987 \begin_layout Plain Layout
988 default PDF-Margin comment
996 \begin_layout Subsection
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.
1010 , set the color to white with
1014 and make the comment popup with
1018 (will pop up when the mouse is hovered over the formula).
1021 \begin_layout Define PDF-Comment Style
1022 \begin_inset Argument 1
1025 \begin_layout Plain Layout
1031 color=white,markup=Highlight
1034 \begin_layout Standard
1035 In the comments use the option
1043 \begin_layout Standard
1044 \begin_inset Flex PDF-Markup
1047 \begin_layout Plain Layout
1048 \begin_inset Argument 1
1051 \begin_layout Plain Layout
1082 \begin_inset Formula $P(E)$
1086 \begin_inset Argument post:1
1089 \begin_layout Plain Layout
1102 Probability of event E
1115 \begin_layout Subsection
1116 \begin_inset CommandInset label
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.
1133 \begin_layout Standard
1134 Assuming your name is
1135 \begin_inset Quotes eld
1139 \begin_inset Quotes erd
1142 you can define an avatar for your using the environment Define
1143 \begin_inset space ~
1147 Its mandatory option is the name.
1148 In your case, name it
1153 Add behind the name of the avatar your name as author by writing
1155 author={Oleg Testman}
1158 \begin_inset Newline newline
1161 You might use a special icon to see at the first look which comments were
1163 You therefore add behind the author-statement, separated by a comma,
1168 \begin_inset Quotes erd
1175 \begin_layout Plain Layout
1176 For all possible icons, see the
1185 the checkmark should have a green color so that you add
1189 to the avatar definition.
1190 Your whole definition reads now
1191 \begin_inset Newline newline
1196 author={Oleg Testman},icon=Check,color=lime
1199 \begin_layout Define Avatar
1200 \begin_inset Argument 1
1203 \begin_layout Plain Layout
1209 author={Oleg Testman},icon=Check,color=lime
1212 \begin_layout Standard
1213 To use now your avatar for PDF-comments you have two choices:
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
1222 before the first PDF-comment in your document.
1223 Insert to this inset
1230 \begin_layout Enumerate
1235 to the options of a particular PDF-comment.
1236 The avatar will then only be used for this comment.
1239 \begin_layout Standard
1240 Here is an example for the
1245 \begin_inset Flex PDF-Comment-Setup
1248 \begin_layout Plain Layout
1255 \begin_inset Flex PDF-Annotation
1258 \begin_layout Plain Layout
1259 Oleg said: Wow, that's nice!
1265 \begin_inset Newline newline
1268 and here is another comment:
1269 \begin_inset Flex PDF-Annotation
1272 \begin_layout Plain Layout
1273 Oleg also said: I hate to repeat myself.
1281 \begin_layout Define Avatar
1282 \begin_inset Argument 1
1285 \begin_layout Plain Layout
1291 color=NavyBlue,opacity=0.5,open=false,icon=Circle,author={Dr.
1295 \begin_layout Standard
1296 Here is an example where another avatar
1297 \begin_inset Quotes eld
1301 \begin_inset Quotes erd
1304 is only used for this comment:
1305 \begin_inset Flex PDF-Margin
1308 \begin_layout Plain Layout
1309 \begin_inset Argument 1
1312 \begin_layout Plain Layout
1319 Dolittle! Respect my authority!
1327 \begin_layout Section
1328 List of PDF-comments
1331 \begin_layout Standard
1332 You can insert a list with all PDF-comments using the environment List of
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:
1339 \begin_layout List of PDF-Comments
1340 \begin_inset Argument 1
1343 \begin_layout Plain Layout
1344 liststyle={AuthorComment}, heading ={List of PDF-comments}
1352 \begin_layout Section
1356 \begin_layout Define Avatar
1357 \begin_inset Argument 1
1360 \begin_layout Plain Layout
1366 color=Green,open=true,icon=Key,author={a}
1369 \begin_layout Itemize
1370 To be able to use all kinds of colors and color definitions you must load
1375 in the document preamble this way:
1376 \begin_inset Newline newline
1383 usepackage[svgnames,rgb]{xcolor}
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
1392 \begin_layout Plain Layout
1399 \begin_inset Flex PDF-Annotation
1402 \begin_layout Plain Layout
1403 Oleg said: Wow, that's nice!
1409 \begin_inset Flex PDF-Annotation
1412 \begin_layout Plain Layout
1413 Oleg also said: I hate to repeat myself.
1419 \begin_inset Newline newline
1422 To avoid that separate them with whitespace like protected space:
1423 \begin_inset Flex PDF-Annotation
1426 \begin_layout Plain Layout
1427 Oleg said: Wow, that's nice!
1433 \begin_inset space ~
1437 \begin_inset space ~
1441 \begin_inset space ~
1445 \begin_inset space ~
1449 \begin_inset space ~
1453 \begin_inset space ~
1457 \begin_inset space ~
1461 \begin_inset Flex PDF-Annotation
1464 \begin_layout Plain Layout
1465 Oleg also said: I hate to repeat myself.
1473 \begin_layout Itemize
1474 It you have non-Latin characters in your comment or in the author name ...
1477 \begin_layout Standard
1478 Here is an example of a comment containing non-Latin characters:
1479 \begin_inset Flex PDF-Margin
1482 \begin_layout Plain Layout
1483 \begin_inset Argument 1
1486 \begin_layout Plain Layout
1492 Here is a text with Cyrillic letters: Александр Исаевич Солженицын got the
1493 nobel price in 1970.