]> git.lyx.org Git - lyx.git/blob - lib/examples/PDF-form.lyx
4bc159c21e11a6bc591e14d107c97ad2dd754265
[lyx.git] / lib / examples / PDF-form.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 % to be able to use custom colors
8 \usepackage[svgnames,rgb]{xcolor}
9
10 \usepackage[pdftex]{insdljs}
11 \pdfcatalog{/AA \the\pdflastobj\space 0 R}
12 \begin{insDLJS}[exaaae]{exaaae}{JavaScript}
13   function validateTime(){
14    this.delay = true;
15    if((event.value == "u") || (event.value == "unlimited")) {
16    this.getField("from").display = display.hidden;
17    this.getField("to").display = display.hidden;
18   } else {
19    this.getField("from").display = display.visible;
20    this.getField("to").display = display.visible;
21    this.getField("from").setFocus();
22   }
23   this.delay = false;
24   }
25 \end{insDLJS}
26
27 % if pdflatex is used
28 \usepackage{ifpdf}
29 \ifpdf
30
31 % set fonts for nicer pdf view
32 \IfFileExists{lmodern.sty}
33  {\usepackage{lmodern}}{}
34
35 \fi % end if pdflatex is used
36 \end_preamble
37 \options BCOR8mm,pagesize
38 \use_default_options false
39 \begin_modules
40 pdfform
41 \end_modules
42 \maintain_unincluded_children false
43 \language english
44 \language_package default
45 \inputencoding auto
46 \fontencoding global
47 \font_roman default
48 \font_sans default
49 \font_typewriter default
50 \font_math auto
51 \font_default_family default
52 \use_non_tex_fonts false
53 \font_sc false
54 \font_osf false
55 \font_sf_scale 100
56 \font_tt_scale 100
57 \graphics default
58 \default_output_format default
59 \output_sync 0
60 \bibtex_command bibtex
61 \index_command default
62 \paperfontsize 12
63 \spacing single
64 \use_hyperref true
65 \pdf_title "Description of the module pdfcomment"
66 \pdf_author "Uwe Stöhr"
67 \pdf_subject "PDF form"
68 \pdf_keywords "LyX, PDF forms, hyperref"
69 \pdf_bookmarks true
70 \pdf_bookmarksnumbered true
71 \pdf_bookmarksopen true
72 \pdf_bookmarksopenlevel 2
73 \pdf_breaklinks false
74 \pdf_pdfborder false
75 \pdf_colorlinks false
76 \pdf_backref false
77 \pdf_pdfusetitle false
78 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, urlbordercolor={1 0 0}"
79 \papersize a4paper
80 \use_geometry false
81 \use_package amsmath 1
82 \use_package amssymb 1
83 \use_package cancel 0
84 \use_package esint 1
85 \use_package mathdots 1
86 \use_package mathtools 1
87 \use_package mhchem 1
88 \use_package stackrel 0
89 \use_package stmaryrd 0
90 \use_package undertilde 0
91 \cite_engine basic
92 \cite_engine_type default
93 \biblio_style plain
94 \use_bibtopic false
95 \use_indices false
96 \paperorientation portrait
97 \suppress_date true
98 \justification true
99 \use_refstyle 0
100 \notefontcolor #0000ff
101 \index Index
102 \shortcut idx
103 \color #008000
104 \end_index
105 \secnumdepth 3
106 \tocdepth 2
107 \paragraph_separation skip
108 \defskip medskip
109 \quotes_language english
110 \papercolumns 1
111 \papersides 1
112 \paperpagestyle default
113 \tracking_changes false
114 \output_changes false
115 \html_math_output 0
116 \html_css_as_file 0
117 \html_be_strict false
118 \end_header
119
120 \begin_body
121
122 \begin_layout Begin PDF Form
123 \begin_inset Argument 1
124 status open
125
126 \begin_layout Plain Layout
127 action=mailto:forms@lyx.test?subject={The submitted PDF form},method=post
128 \end_layout
129
130 \end_inset
131
132
133 \end_layout
134
135 \begin_layout Title
136 Description of the module PDF Form
137 \end_layout
138
139 \begin_layout Author
140 Uwe Stöhr
141 \end_layout
142
143 \begin_layout Standard
144 By loading the module PDF
145 \begin_inset space ~
146 \end_inset
147
148 Form the whole document or a part of it can be made a PDF form.
149  You can add all possible form elements like text fields buttons etc.
150  This document describes how this is done.
151 \end_layout
152
153 \begin_layout Section
154 Preparation
155 \begin_inset CommandInset label
156 LatexCommand label
157 name "sec:Preparation"
158
159 \end_inset
160
161
162 \end_layout
163
164 \begin_layout Standard
165 At first load the module PDF
166 \begin_inset space ~
167 \end_inset
168
169 Form in the document settings of your file.
170  To make the whole document a form, insert the environment
171 \family sans
172  Begin
173 \begin_inset space ~
174 \end_inset
175
176 PDF
177 \begin_inset space ~
178 \end_inset
179
180 Form
181 \family default
182  from LyX's dropdown menu at the beginning of the document.
183  If only a part of the document should be a form, add 
184 \family sans
185 Begin
186 \begin_inset space ~
187 \end_inset
188
189 PDF
190 \begin_inset space ~
191 \end_inset
192
193 Form
194 \family default
195  at the position where the form should start.
196 \end_layout
197
198 \begin_layout Standard
199 \begin_inset Note Greyedout
200 status open
201
202 \begin_layout Plain Layout
203
204 \series bold
205 Note:
206 \series default
207  It is only possible to have one form in a PDF file!
208 \end_layout
209
210 \end_inset
211
212
213 \end_layout
214
215 \begin_layout Standard
216 If the form data should be submitted to a server or the like, then you must
217  specify the URL to where it should be submitted as parameter of the 
218 \family sans
219 Begin
220 \begin_inset space ~
221 \end_inset
222
223 PDF
224 \begin_inset space ~
225 \end_inset
226
227 Form
228 \family default
229  environment.
230  This is done by using the menu 
231 \family sans
232 Insert\SpecialChar \menuseparator
233 PDF
234 \begin_inset space ~
235 \end_inset
236
237 form
238 \begin_inset space ~
239 \end_inset
240
241 parameters
242 \family default
243 .
244  For example in this document the following was inserted to the parameter
245  inset:
246 \begin_inset Newline newline
247 \end_inset
248
249
250 \series bold
251 action=mailto:forms@lyx.test?subject={The submitted PDF form},method=post
252 \series default
253
254 \begin_inset Newline newline
255 \end_inset
256
257 This sends the form data as email to 
258 \emph on
259 forms@lyx.test
260 \emph default
261 .
262  the email subject is 
263 \begin_inset Quotes eld
264 \end_inset
265
266 The submitted PDF form
267 \begin_inset Quotes erd
268 \end_inset
269
270  and the HTML method is 
271 \series bold
272 post
273 \series default
274 .
275  (The other possible method would be 
276 \series bold
277 get
278 \series default
279 .)
280 \end_layout
281
282 \begin_layout Section
283 Form fields
284 \end_layout
285
286 \begin_layout Standard
287 There are 6
288 \begin_inset space ~
289 \end_inset
290
291 possible types of fields in a PDF form:
292 \end_layout
293
294 \begin_layout Subsection
295 Text field
296 \end_layout
297
298 \begin_layout Standard
299 A text field is added by inserting the custom inset 
300 \family sans
301 TextField
302 \family default
303  using the menu 
304 \family sans
305 Insert\SpecialChar \menuseparator
306 Custom
307 \begin_inset space ~
308 \end_inset
309
310 Insets
311 \family default
312 .
313  Write inside the inset the label for the text field that will be printed
314  in the PDF output before the field.
315  Here is an example:
316 \begin_inset Newline newline
317 \end_inset
318
319
320 \begin_inset Flex TextField
321 status open
322
323 \begin_layout Plain Layout
324
325 Enter your name here:
326 \end_layout
327
328 \end_inset
329
330
331 \end_layout
332
333 \begin_layout Standard
334 All form fields can be customized by adding a parameter inset to them.
335  To do this, set the cursor into the field inset and use the menu 
336 \family sans
337 Insert\SpecialChar \menuseparator
338 PDF
339 \begin_inset space ~
340 \end_inset
341
342 form
343 \begin_inset space ~
344 \end_inset
345
346 parameters
347 \family default
348 .
349 \end_layout
350
351 \begin_layout Standard
352 \begin_inset Note Greyedout
353 status open
354
355 \begin_layout Plain Layout
356
357 \series bold
358 Note:
359 \series default
360  All braces and brackets in form parameters must be inserted as TeX code!
361 \end_layout
362
363 \end_inset
364
365
366 \end_layout
367
368 \begin_layout Standard
369 Here is a customized text field with a width of 5
370 \begin_inset space \thinspace{}
371 \end_inset
372
373 cm and a proposed content:
374 \begin_inset Newline newline
375 \end_inset
376
377
378 \begin_inset Flex TextField
379 status open
380
381 \begin_layout Plain Layout
382
383 \begin_inset Argument 1
384 status open
385
386 \begin_layout Plain Layout
387 name=name, width=5cm, bordercolor={0.5 1 0.5}, borderstyle=U, value={Testman}
388 \end_layout
389
390 \end_inset
391
392 Enter your name here:
393 \end_layout
394
395 \end_inset
396
397
398 \end_layout
399
400 \begin_layout Standard
401 \begin_inset Note Greyedout
402 status open
403
404 \begin_layout Plain Layout
405
406 \series bold
407 Note:
408 \series default
409  It is highly recommended to use a uniform layout of all fields in your
410  form.
411  See sec.
412 \begin_inset space \thinspace{}
413 \end_inset
414
415
416 \begin_inset CommandInset ref
417 LatexCommand ref
418 reference "sec:Form-field-and"
419
420 \end_inset
421
422  for how this is done.
423 \end_layout
424
425 \end_inset
426
427
428 \end_layout
429
430 \begin_layout Subsection
431 Check box
432 \end_layout
433
434 \begin_layout Standard
435 A check box is added by inserting the custom inset 
436 \family sans
437 CheckBox
438 \family default
439 .
440  Write inside the inset the label for the box.
441  Here is an example:
442 \begin_inset Newline newline
443 \end_inset
444
445
446 \begin_inset Flex CheckBox
447 status open
448
449 \begin_layout Plain Layout
450
451 Are you older than 18 years?
452 \end_layout
453
454 \end_inset
455
456
457 \end_layout
458
459 \begin_layout Subsection
460 Choice menu
461 \end_layout
462
463 \begin_layout Standard
464 A choice menu is added by inserting the custom inset 
465 \family sans
466 ChoiceMenu
467 \family default
468 .
469  The label is inserted into the 
470 \family sans
471 Label
472 \family default
473  inset.
474  The choices are inserted to the inset as comma-separated list.
475  There are 3
476 \begin_inset space ~
477 \end_inset
478
479 choice menu types:
480 \end_layout
481
482 \begin_layout Description
483 Radio Only one choice can be selected
484 \end_layout
485
486 \begin_layout Description
487 Combo The choices are listed in a combo box (dropdown list) but the user
488  is allowed to choose something that is not in the predefined list.
489 \end_layout
490
491 \begin_layout Description
492 Popdown All choices are listed below each other.
493  It the filed is not high enough a scroll bar is automatically added to
494  the field.
495 \begin_inset Newline newline
496 \end_inset
497
498
499 \begin_inset Note Greyedout
500 status open
501
502 \begin_layout Plain Layout
503
504 \series bold
505 Note:
506 \series default
507  For the popdown type you must also specify a field name! For example write
508  
509 \series bold
510 popdown, name=country
511 \series default
512  (where 
513 \series bold
514 country
515 \series default
516  is the field name).
517 \end_layout
518
519 \end_inset
520
521
522 \end_layout
523
524 \begin_layout Standard
525 To determine the choice menu type, set the cursor into the inset and use
526  the menu 
527 \family sans
528 Insert\SpecialChar \menuseparator
529 PDF
530 \begin_inset space ~
531 \end_inset
532
533 form
534 \begin_inset space ~
535 \end_inset
536
537 parameters
538 \family default
539 .
540  There insert the parameter 
541 \series bold
542 radio
543 \series default
544
545 \series bold
546 combo
547 \series default
548  or 
549 \series bold
550 popdown
551 \series default
552 .
553 \end_layout
554
555 \begin_layout Standard
556 Here is an example for the radio type:
557 \begin_inset Newline newline
558 \end_inset
559
560
561 \begin_inset Flex ChoiceMenu
562 status open
563
564 \begin_layout Plain Layout
565
566 \begin_inset Argument 1
567 status open
568
569 \begin_layout Plain Layout
570 radio
571 \end_layout
572
573 \end_inset
574
575 male=m, female=f
576 \begin_inset Argument 2
577 status open
578
579 \begin_layout Plain Layout
580 Sex:
581 \end_layout
582
583 \end_inset
584
585
586 \end_layout
587
588 \end_inset
589
590
591 \end_layout
592
593 \begin_layout Standard
594 Here is an example for the combo type:
595 \begin_inset Newline newline
596 \end_inset
597
598
599 \begin_inset Flex ChoiceMenu
600 status open
601
602 \begin_layout Plain Layout
603
604 \begin_inset Argument 1
605 status open
606
607 \begin_layout Plain Layout
608 combo
609 \end_layout
610
611 \end_inset
612
613 Albania=Al, Armenia=Ar, Azerbaidschan=Az
614 \begin_inset Argument 2
615 status open
616
617 \begin_layout Plain Layout
618 Country:
619 \end_layout
620
621 \end_inset
622
623
624 \end_layout
625
626 \end_inset
627
628
629 \end_layout
630
631 \begin_layout Standard
632 Here is an example for the popdown type:
633 \begin_inset Newline newline
634 \end_inset
635
636
637 \begin_inset Flex ChoiceMenu
638 status open
639
640 \begin_layout Plain Layout
641
642 \begin_inset Argument 1
643 status open
644
645 \begin_layout Plain Layout
646 popdown, name=country
647 \end_layout
648
649 \end_inset
650
651 Albania=Al, Armenia=Ar, Azerbaidschan=Az
652 \begin_inset Argument 2
653 status open
654
655 \begin_layout Plain Layout
656 Country:
657 \end_layout
658
659 \end_inset
660
661
662 \end_layout
663
664 \end_inset
665
666
667 \end_layout
668
669 \begin_layout Standard
670 It is recommended to add a short name for every choice to be able to access
671  them and to know which one was chosen by the user- This is done by adding
672  
673 \series bold
674 =name
675 \series default
676  behind each choice.
677  For example the radio type example contains this choice list:
678 \series bold
679  male=m, female=f
680 \series default
681 .
682  If the user chose 
683 \begin_inset Quotes eld
684 \end_inset
685
686 male
687 \begin_inset Quotes erd
688 \end_inset
689
690  you know that he chose the choice 
691 \begin_inset Quotes eld
692 \end_inset
693
694 m
695 \begin_inset Quotes erd
696 \end_inset
697
698 .
699  By specifying names you can also preset/propose e.g.
700 \begin_inset space \space{}
701 \end_inset
702
703 the choice 
704 \begin_inset Quotes eld
705 \end_inset
706
707 male
708 \begin_inset Quotes erd
709 \end_inset
710
711  by adding the parameter 
712 \series bold
713 default=m
714 \series default
715 .
716  Here is an example:
717 \end_layout
718
719 \begin_layout Standard
720 \begin_inset Flex ChoiceMenu
721 status open
722
723 \begin_layout Plain Layout
724
725 \begin_inset Argument 1
726 status open
727
728 \begin_layout Plain Layout
729 radio, name=sex, default=m
730 \end_layout
731
732 \end_inset
733
734 male=m, female=f
735 \begin_inset Argument 2
736 status open
737
738 \begin_layout Plain Layout
739 Sex:
740 \end_layout
741
742 \end_inset
743
744
745 \end_layout
746
747 \end_inset
748
749
750 \end_layout
751
752 \begin_layout Description
753 \begin_inset Note Greyedout
754 status open
755
756 \begin_layout Plain Layout
757
758 \series bold
759 Note:
760 \series default
761  Due to a bug in the LaTeX package 
762 \series bold
763 hyperref
764 \series default
765  it is currently only possible the set the first choice as default.
766 \end_layout
767
768 \end_inset
769
770
771 \end_layout
772
773 \begin_layout Subsection
774 Push button
775 \end_layout
776
777 \begin_layout Standard
778 A push button is added by inserting the custom inset 
779 \family sans
780 PushButton
781 \family default
782 .
783  Write inside the inset the label for the button.
784  Here is an example:
785 \begin_inset Newline newline
786 \end_inset
787
788
789 \begin_inset Flex PushButton
790 status open
791
792 \begin_layout Plain Layout
793
794 Don't click on this button or your fridge will be destroyed!!!
795 \end_layout
796
797 \end_inset
798
799
800 \end_layout
801
802 \begin_layout Standard
803 The action that is triggered by pressing the button is specified by JavaScript
804  code.
805  To specify it, set the cursor into the inset and use the menu 
806 \family sans
807 Insert\SpecialChar \menuseparator
808 PDF
809 \begin_inset space ~
810 \end_inset
811
812 form
813 \begin_inset space ~
814 \end_inset
815
816 parameters
817 \family default
818 .
819  There insert the parameter 
820 \series bold
821 onclick={}
822 \series default
823  and write the JavaScript code between the braces.
824 \end_layout
825
826 \begin_layout Standard
827 \begin_inset Flex PushButton
828 status open
829
830 \begin_layout Plain Layout
831
832 \begin_inset Argument 1
833 status open
834
835 \begin_layout Plain Layout
836 onclick={app.alert("What the hell? Now you destroyed your fridge.
837  Congratulations.")}
838 \end_layout
839
840 \end_inset
841
842 Don't click on this button or your fridge will be destroyed!!!
843 \end_layout
844
845 \end_inset
846
847
848 \end_layout
849
850 \begin_layout Standard
851 For info about JavaScript, see its documentation, 
852 \begin_inset CommandInset citation
853 LatexCommand cite
854 key "JavaScript"
855
856 \end_inset
857
858 .
859 \end_layout
860
861 \begin_layout Standard
862 A common usage for pus buttons is to open a weblink.
863  Such a button is created by inserting the command 
864 \series bold
865
866 \backslash
867 href
868 \series default
869  into the button inset.
870  
871 \series bold
872
873 \backslash
874 href
875 \series default
876  is used in the scheme
877 \begin_inset Newline newline
878 \end_inset
879
880
881 \series bold
882
883 \backslash
884 href{link target}{text}
885 \end_layout
886
887 \begin_layout Standard
888 In the following button this code was used:
889 \begin_inset Newline newline
890 \end_inset
891
892
893 \series bold
894
895 \backslash
896 href{http://wiki.lyx.org}{Information how to fill out this form}
897 \end_layout
898
899 \begin_layout Standard
900 \begin_inset Flex PushButton
901 status open
902
903 \begin_layout Plain Layout
904
905
906 \backslash
907 href{http://wiki.lyx.org}{Information how to fill out this form}
908 \end_layout
909
910 \end_inset
911
912
913 \end_layout
914
915 \begin_layout Standard
916 To get rid of the frame for weblinks add this to the additional options
917  in the document settings under 
918 \family sans
919 PDF properties
920 \family default
921 :
922 \end_layout
923
924 \begin_layout Standard
925
926 \series bold
927 urlbordercolor={1 0 0}
928 \end_layout
929
930 \begin_layout Standard
931 if your push button border color is red (the default), otherwise use the
932  same color definition as for your push button border color.
933 \end_layout
934
935 \begin_layout Standard
936 \begin_inset Newpage newpage
937 \end_inset
938
939
940 \end_layout
941
942 \begin_layout Subsection
943 Submit button
944 \end_layout
945
946 \begin_layout Standard
947 A submit button is used to submit the form data to a server.
948  It is added by inserting the custom inset 
949 \family sans
950 SubmitButton
951 \family default
952 .
953  Write inside the inset the label for the button.
954  Here is an example:
955 \begin_inset Newline newline
956 \end_inset
957
958
959 \begin_inset Flex SubmitButton
960 status open
961
962 \begin_layout Plain Layout
963
964 \begin_inset Argument 1
965 status open
966
967 \begin_layout Plain Layout
968 name=submit1
969 \end_layout
970
971 \end_inset
972
973 Send your data via email
974 \end_layout
975
976 \end_inset
977
978
979 \end_layout
980
981 \begin_layout Standard
982 \begin_inset Note Greyedout
983 status open
984
985 \begin_layout Plain Layout
986
987 \series bold
988 Note:
989 \series default
990  You can only use a submit button if you specified the submit method and
991  target in the PDF form environment options! See sec.
992 \begin_inset space \thinspace{}
993 \end_inset
994
995
996 \begin_inset CommandInset ref
997 LatexCommand ref
998 reference "sec:Preparation"
999
1000 \end_inset
1001
1002  for the description.
1003  If there are no specifications you will get LaTeX errors!
1004 \end_layout
1005
1006 \end_inset
1007
1008
1009 \end_layout
1010
1011 \begin_layout Standard
1012 \begin_inset Note Greyedout
1013 status open
1014
1015 \begin_layout Plain Layout
1016
1017 \series bold
1018 Note:
1019 \series default
1020  If you have more than one submit button in your document you must specify
1021  a name for each of them to avoid LaTeX errors! For example write 
1022 \series bold
1023 name=submit1
1024 \series default
1025  (where 
1026 \series bold
1027 submit1
1028 \series default
1029  is the button name).
1030 \end_layout
1031
1032 \end_inset
1033
1034
1035 \end_layout
1036
1037 \begin_layout Subsection
1038 Reset button
1039 \end_layout
1040
1041 \begin_layout Standard
1042 A reset button is used to reset all form fields to the initial state.
1043  It is added by inserting the custom inset 
1044 \family sans
1045 ResetButton
1046 \family default
1047 .
1048  Write inside the inset the label for the button.
1049  Here is an example:
1050 \begin_inset Newline newline
1051 \end_inset
1052
1053
1054 \begin_inset Flex ResetButton
1055 status open
1056
1057 \begin_layout Plain Layout
1058
1059 \begin_inset Argument 1
1060 status open
1061
1062 \begin_layout Plain Layout
1063 name=reset1
1064 \end_layout
1065
1066 \end_inset
1067
1068 Reset the form
1069 \end_layout
1070
1071 \end_inset
1072
1073
1074 \end_layout
1075
1076 \begin_layout Standard
1077 \begin_inset Note Greyedout
1078 status open
1079
1080 \begin_layout Plain Layout
1081
1082 \series bold
1083 Note:
1084 \series default
1085  If you have more than one reset button in your document you must specify
1086  a name for each of them to avoid LaTeX errors! For example write 
1087 \series bold
1088 name=submit1
1089 \series default
1090  (where 
1091 \series bold
1092 submit1
1093 \series default
1094  is the button name).
1095 \end_layout
1096
1097 \end_inset
1098
1099
1100 \end_layout
1101
1102 \begin_layout Section
1103 PDF viewer action buttons
1104 \end_layout
1105
1106 \begin_layout Standard
1107 One often needs basic actions to be done by the PDF viewer program.
1108  For example to print the form.
1109  Such PDF program-specific actions can be triggered by adding inserting
1110  the custom inset 
1111 \family sans
1112 PDFAction
1113 \family default
1114 .
1115  The PDF viewer programs 
1116 \emph on
1117 Acrobat
1118 \emph default
1119  and 
1120 \emph on
1121 Adobe Reader
1122 \emph default
1123  can handle all possible actions while other PDF viewers might only support
1124  some of them.
1125  However, all PDF viewer programs support the basic things like printing,
1126  save
1127 \begin_inset space ~
1128 \end_inset
1129
1130 as, view in fullscreen etc..
1131 \end_layout
1132
1133 \begin_layout Standard
1134 To specify the action insert its name to the 
1135 \family sans
1136 Action
1137 \family default
1138  inset.
1139  A list with possible actions can be found in sec.
1140 \begin_inset space \thinspace{}
1141 \end_inset
1142
1143
1144 \begin_inset Quotes eld
1145 \end_inset
1146
1147 Acrobat-specific behavior
1148 \begin_inset Quotes erd
1149 \end_inset
1150
1151  of the documentation of the LaTeX package 
1152 \series bold
1153 hyperref
1154 \series default
1155
1156 \begin_inset CommandInset citation
1157 LatexCommand cite
1158 key "hyperref"
1159
1160 \end_inset
1161
1162 .
1163 \end_layout
1164
1165 \begin_layout Standard
1166 Here are some examples:
1167 \end_layout
1168
1169 \begin_layout Description
1170 Printing: 
1171 \begin_inset Flex PDFAction
1172 status open
1173
1174 \begin_layout Plain Layout
1175
1176 \begin_inset Argument 1
1177 status open
1178
1179 \begin_layout Plain Layout
1180 Print
1181 \end_layout
1182
1183 \end_inset
1184
1185 Print the document
1186 \end_layout
1187
1188 \end_inset
1189
1190
1191 \end_layout
1192
1193 \begin_layout Description
1194 Save
1195 \begin_inset space ~
1196 \end_inset
1197
1198 as: 
1199 \begin_inset Flex PDFAction
1200 status open
1201
1202 \begin_layout Plain Layout
1203
1204 \begin_inset Argument 1
1205 status open
1206
1207 \begin_layout Plain Layout
1208 SaveAs
1209 \end_layout
1210
1211 \end_inset
1212
1213 Save document as
1214 \end_layout
1215
1216 \end_inset
1217
1218
1219 \end_layout
1220
1221 \begin_layout Description
1222 View
1223 \begin_inset space ~
1224 \end_inset
1225
1226 in
1227 \begin_inset space ~
1228 \end_inset
1229
1230 fullscreen: 
1231 \begin_inset Flex PDFAction
1232 status open
1233
1234 \begin_layout Plain Layout
1235
1236 \begin_inset Argument 1
1237 status open
1238
1239 \begin_layout Plain Layout
1240 FullScreen
1241 \end_layout
1242
1243 \end_inset
1244
1245 View the form in fullscreen
1246 \end_layout
1247
1248 \end_inset
1249
1250
1251 \end_layout
1252
1253 \begin_layout Section
1254 Form field and button customization
1255 \begin_inset CommandInset label
1256 LatexCommand label
1257 name "sec:Form-field-and"
1258
1259 \end_inset
1260
1261
1262 \end_layout
1263
1264 \begin_layout Standard
1265 Since all form elements should look uniform, one can determine their layout
1266  using the following styles:
1267 \end_layout
1268
1269 \begin_layout Description
1270 Text
1271 \begin_inset space ~
1272 \end_inset
1273
1274 Field
1275 \begin_inset space ~
1276 \end_inset
1277
1278 Style
1279 \end_layout
1280
1281 \begin_layout Description
1282 Check
1283 \begin_inset space ~
1284 \end_inset
1285
1286 Box
1287 \begin_inset space ~
1288 \end_inset
1289
1290 Style 
1291 \end_layout
1292
1293 \begin_layout Description
1294 List
1295 \begin_inset space ~
1296 \end_inset
1297
1298 Box
1299 \begin_inset space ~
1300 \end_inset
1301
1302 Style affects all choice menu types
1303 \end_layout
1304
1305 \begin_layout Description
1306 Combo
1307 \begin_inset space ~
1308 \end_inset
1309
1310 Box
1311 \begin_inset space ~
1312 \end_inset
1313
1314 Style affects only the combo box style
1315 \end_layout
1316
1317 \begin_layout Description
1318 Popdown
1319 \begin_inset space ~
1320 \end_inset
1321
1322 Box
1323 \begin_inset space ~
1324 \end_inset
1325
1326 Style affects only the popdown box style
1327 \end_layout
1328
1329 \begin_layout Description
1330 Radio
1331 \begin_inset space ~
1332 \end_inset
1333
1334 Box
1335 \begin_inset space ~
1336 \end_inset
1337
1338 Style affects only the radio box style
1339 \end_layout
1340
1341 \begin_layout Description
1342 Push
1343 \begin_inset space ~
1344 \end_inset
1345
1346 Button
1347 \begin_inset space ~
1348 \end_inset
1349
1350 Style
1351 \end_layout
1352
1353 \begin_layout Description
1354 Submit
1355 \begin_inset space ~
1356 \end_inset
1357
1358 Button
1359 \begin_inset space ~
1360 \end_inset
1361
1362 Style
1363 \end_layout
1364
1365 \begin_layout Description
1366 Reset
1367 \begin_inset space ~
1368 \end_inset
1369
1370 Button
1371 \begin_inset space ~
1372 \end_inset
1373
1374 Style
1375 \end_layout
1376
1377 \begin_layout Text Field Style
1378
1379 \end_layout
1380
1381 \begin_layout Standard
1382 The content of the styles is a comma-separated list of parameters.
1383  The possible parameters are listed in sec.
1384 \begin_inset space \thinspace{}
1385 \end_inset
1386
1387 6.2 
1388 \begin_inset Quotes eld
1389 \end_inset
1390
1391 Forms optional parameters
1392 \begin_inset Quotes erd
1393 \end_inset
1394
1395  of the documentation of the LaTeX package 
1396 \series bold
1397 hyperref
1398 \series default
1399
1400 \begin_inset CommandInset citation
1401 LatexCommand cite
1402 key "hyperref"
1403
1404 \end_inset
1405
1406 .
1407  It is important that the parameter print is always part of the definition,
1408  otherwise the fields won't appear in the PDF output.
1409  The defined style is applied to all fields following the definition.
1410 \end_layout
1411
1412 \begin_layout Subsubsection*
1413 Here are some examples:
1414 \end_layout
1415
1416 \begin_layout Text Field Style
1417
1418 print, bordercolor={red},borderstyle=U, backgroundcolor=lightgray, color=lime
1419 \end_layout
1420
1421 \begin_layout Check Box Style
1422
1423 print, borderstyle=S, checkboxsymbol=
1424 \backslash
1425 ding{55}
1426 \end_layout
1427
1428 \begin_layout Combo Box Style
1429
1430 print, bordercolor={0.33 0.66 0.33}, borderstyle=D
1431 \end_layout
1432
1433 \begin_layout Popdown Box Style
1434
1435 print, menulength=2
1436 \end_layout
1437
1438 \begin_layout Radio Box Style
1439
1440 print, borderstyle=I, radiosymbol=6
1441 \end_layout
1442
1443 \begin_layout Push Button Style
1444
1445 print, borderstyle=B, bordercolor={lime}
1446 \end_layout
1447
1448 \begin_layout Submit Button Style
1449
1450 print, borderwidth=0
1451 \end_layout
1452
1453 \begin_layout Reset Button Style
1454
1455 print, bordercolor={lime}
1456 \end_layout
1457
1458 \begin_layout Standard
1459 Text field with gray background, lime text color and a red border only below
1460  the field:
1461 \begin_inset Newline newline
1462 \end_inset
1463
1464
1465 \begin_inset Flex TextField
1466 status open
1467
1468 \begin_layout Plain Layout
1469
1470 Enter your name here:
1471 \end_layout
1472
1473 \end_inset
1474
1475
1476 \end_layout
1477
1478 \begin_layout Standard
1479 The 
1480 \series bold
1481 borderstyle
1482 \series default
1483  can be 
1484 \series bold
1485 U
1486 \series default
1487  (underlined), 
1488 \series bold
1489 S
1490 \series default
1491  (solid), 
1492 \series bold
1493 D
1494 \series default
1495  (dashed), 
1496 \series bold
1497 B
1498 \series default
1499  (bevel), or 
1500 \series bold
1501 I
1502 \series default
1503  (inverted bevel).
1504 \end_layout
1505
1506 \begin_layout Standard
1507 \begin_inset Note Greyedout
1508 status open
1509
1510 \begin_layout Plain Layout
1511
1512 \series bold
1513 Note
1514 \series default
1515  that the 
1516 \series bold
1517 value
1518 \series default
1519  has only an effect for text fields if a 
1520 \series bold
1521 name
1522 \series default
1523  was specified.
1524 \end_layout
1525
1526 \end_inset
1527
1528
1529 \end_layout
1530
1531 \begin_layout Standard
1532 Check box with normal border and symbol 
1533 \backslash
1534 ding{55}:
1535 \begin_inset Newline newline
1536 \end_inset
1537
1538
1539 \begin_inset Flex CheckBox
1540 status open
1541
1542 \begin_layout Plain Layout
1543
1544 Are you older than 18 years?
1545 \end_layout
1546
1547 \end_inset
1548
1549
1550 \end_layout
1551
1552 \begin_layout Standard
1553 The symbol is either specified as number or with the command
1554 \begin_inset Newline newline
1555 \end_inset
1556
1557
1558 \series bold
1559
1560 \backslash
1561 ding{number}
1562 \series default
1563
1564 \begin_inset Newline newline
1565 \end_inset
1566
1567 where 
1568 \series bold
1569 number
1570 \series default
1571  is one of the possible numbers listed in Table
1572 \begin_inset space ~
1573 \end_inset
1574
1575 2 of 
1576 \begin_inset CommandInset citation
1577 LatexCommand cite
1578 key "pifont"
1579
1580 \end_inset
1581
1582 .
1583 \end_layout
1584
1585 \begin_layout Standard
1586 Combo box with dashed, colored border:
1587 \begin_inset Newline newline
1588 \end_inset
1589
1590
1591 \begin_inset Flex ChoiceMenu
1592 status open
1593
1594 \begin_layout Plain Layout
1595
1596 \begin_inset Argument 1
1597 status open
1598
1599 \begin_layout Plain Layout
1600 combo, default=Az
1601 \end_layout
1602
1603 \end_inset
1604
1605 Albania=Al, Armenia=Ar, Azerbaidschan=Az
1606 \begin_inset Argument 2
1607 status open
1608
1609 \begin_layout Plain Layout
1610 Country:
1611 \end_layout
1612
1613 \end_inset
1614
1615
1616 \end_layout
1617
1618 \end_inset
1619
1620
1621 \end_layout
1622
1623 \begin_layout Standard
1624 Popdown box where only 2
1625 \begin_inset space ~
1626 \end_inset
1627
1628 entries are shown and where the last entry is preselected:
1629 \begin_inset Newline newline
1630 \end_inset
1631
1632
1633 \begin_inset Flex ChoiceMenu
1634 status open
1635
1636 \begin_layout Plain Layout
1637
1638 \begin_inset Argument 1
1639 status open
1640
1641 \begin_layout Plain Layout
1642 popdown, name=country2, value=Az
1643 \end_layout
1644
1645 \end_inset
1646
1647 Albania=Al, Armenia=Ar, Azerbaidschan=Az
1648 \begin_inset Argument 2
1649 status open
1650
1651 \begin_layout Plain Layout
1652 Country:
1653 \end_layout
1654
1655 \end_inset
1656
1657
1658 \end_layout
1659
1660 \end_inset
1661
1662
1663 \end_layout
1664
1665 \begin_layout Standard
1666 \begin_inset Note Greyedout
1667 status open
1668
1669 \begin_layout Plain Layout
1670
1671 \series bold
1672 Note
1673 \series default
1674  that the 
1675 \series bold
1676 borderstyle B
1677 \series default
1678  and 
1679 \series bold
1680 I
1681 \series default
1682  and also 
1683 \series bold
1684 color
1685 \series default
1686  has no effect for popdown boxes.
1687 \end_layout
1688
1689 \end_inset
1690
1691
1692 \end_layout
1693
1694 \begin_layout Standard
1695 Radio box with inverted bevel border and symbol number
1696 \begin_inset space ~
1697 \end_inset
1698
1699 6 as checkmark:
1700 \begin_inset Newline newline
1701 \end_inset
1702
1703
1704 \begin_inset Newline newline
1705 \end_inset
1706
1707
1708 \begin_inset Flex ChoiceMenu
1709 status open
1710
1711 \begin_layout Plain Layout
1712
1713 \begin_inset Argument 1
1714 status open
1715
1716 \begin_layout Plain Layout
1717 radio
1718 \end_layout
1719
1720 \end_inset
1721
1722 male=m, female=f
1723 \begin_inset Argument 2
1724 status open
1725
1726 \begin_layout Plain Layout
1727 Sex:
1728 \end_layout
1729
1730 \end_inset
1731
1732
1733 \end_layout
1734
1735 \end_inset
1736
1737
1738 \end_layout
1739
1740 \begin_layout Standard
1741 Push button with a bevel border and colored text:
1742 \end_layout
1743
1744 \begin_layout Standard
1745 \begin_inset Flex PushButton
1746 status open
1747
1748 \begin_layout Plain Layout
1749
1750 \begin_inset Argument 1
1751 status open
1752
1753 \begin_layout Plain Layout
1754 onclick={app.alert("Why do you click this?")}
1755 \end_layout
1756
1757 \end_inset
1758
1759
1760 \backslash
1761 colorbox{lime}{
1762 \backslash
1763 textcolor{red}{Don't click on this button or your fridge will be destroyed!!!}}
1764 \end_layout
1765
1766 \end_inset
1767
1768
1769 \end_layout
1770
1771 \begin_layout Standard
1772 \begin_inset Note Greyedout
1773 status open
1774
1775 \begin_layout Plain Layout
1776
1777 \series bold
1778 Note
1779 \series default
1780  that the 
1781 \series bold
1782 backgroundcolor
1783 \series default
1784  and
1785 \series bold
1786  color
1787 \series default
1788  has no effect for push, submit and reset buttons.
1789 \end_layout
1790
1791 \end_inset
1792
1793
1794 \end_layout
1795
1796 \begin_layout Standard
1797 As workaround use the command 
1798 \series bold
1799
1800 \backslash
1801 colorbox
1802 \series default
1803  as described in sec.
1804 \begin_inset space \thinspace{}
1805 \end_inset
1806
1807  5.7 
1808 \begin_inset Quotes eld
1809 \end_inset
1810
1811 Colored Boxes
1812 \begin_inset Quotes erd
1813 \end_inset
1814
1815  in LyX's 
1816 \emph on
1817 EmbeddedObjects
1818 \emph default
1819  manual and 
1820 \series bold
1821
1822 \backslash
1823 textcolor
1824 \series default
1825  that is used is used in the scheme
1826 \begin_inset Newline newline
1827 \end_inset
1828
1829
1830 \series bold
1831
1832 \backslash
1833 textcolor{color}{characters to color}
1834 \series default
1835
1836 \begin_inset Newline newline
1837 \end_inset
1838
1839 In the button above this code was used:
1840 \begin_inset Newline newline
1841 \end_inset
1842
1843
1844 \family sans
1845
1846 \backslash
1847 colorbox{lime}{
1848 \backslash
1849 textcolor{red}{Don't click on this button or your fridge will be destroyed!!!}}
1850 \end_layout
1851
1852 \begin_layout Standard
1853 \begin_inset Note Greyedout
1854 status open
1855
1856 \begin_layout Plain Layout
1857
1858 \series bold
1859 Note
1860 \series default
1861  that the 
1862 \series bold
1863 height 
1864 \series default
1865 has no effect for push, submit and reset buttons.
1866 \end_layout
1867
1868 \end_inset
1869
1870
1871 \end_layout
1872
1873 \begin_layout Standard
1874 As workaround use 
1875 \series bold
1876
1877 \backslash
1878 raisebox
1879 \series default
1880  as described in sec.
1881 \begin_inset space \thinspace{}
1882 \end_inset
1883
1884  5.6.2 
1885 \begin_inset Quotes eld
1886 \end_inset
1887
1888 Vertical Alignment
1889 \begin_inset Quotes erd
1890 \end_inset
1891
1892  in LyX's 
1893 \emph on
1894 EmbeddedObjects
1895 \emph default
1896  manual.
1897  In the button below this code was used:
1898 \begin_inset Newline newline
1899 \end_inset
1900
1901
1902 \family sans
1903
1904 \backslash
1905 raisebox{-0.8cm}{}
1906 \backslash
1907 raisebox{1cm}{}Send your data via mail
1908 \end_layout
1909
1910 \begin_layout Standard
1911 \begin_inset Note Greyedout
1912 status open
1913
1914 \begin_layout Plain Layout
1915
1916 \series bold
1917 Note
1918 \series default
1919  that the 
1920 \series bold
1921 width 
1922 \series default
1923 has no effect for push, submit and reset buttons.
1924 \end_layout
1925
1926 \end_inset
1927
1928
1929 \end_layout
1930
1931 \begin_layout Standard
1932 As workaround use
1933 \series bold
1934  
1935 \backslash
1936 makebox
1937 \series default
1938  as described in sec.
1939 \begin_inset space \thinspace{}
1940 \end_inset
1941
1942  5.6.2 
1943 \begin_inset Quotes eld
1944 \end_inset
1945
1946 Vertical Alignment
1947 \begin_inset Quotes erd
1948 \end_inset
1949
1950  in LyX's 
1951 \emph on
1952 EmbeddedObjects
1953 \emph default
1954  manual.
1955  In the reset button below this code was used:
1956 \begin_inset Newline newline
1957 \end_inset
1958
1959
1960 \family sans
1961
1962 \backslash
1963 makebox[7cm]{Reset the form}
1964 \end_layout
1965
1966 \begin_layout Standard
1967 \begin_inset Flex SubmitButton
1968 status open
1969
1970 \begin_layout Plain Layout
1971
1972 \begin_inset Argument 1
1973 status open
1974
1975 \begin_layout Plain Layout
1976 name=submit2
1977 \end_layout
1978
1979 \end_inset
1980
1981
1982 \backslash
1983 colorbox{cyan}{
1984 \backslash
1985 raisebox{-0.8cm}{}
1986 \backslash
1987 raisebox{1cm}{}Send your data via mail}
1988 \end_layout
1989
1990 \end_inset
1991
1992
1993 \end_layout
1994
1995 \begin_layout Standard
1996 \begin_inset Flex ResetButton
1997 status open
1998
1999 \begin_layout Plain Layout
2000
2001 \begin_inset Argument 1
2002 status open
2003
2004 \begin_layout Plain Layout
2005 name=reset2
2006 \end_layout
2007
2008 \end_inset
2009
2010
2011 \backslash
2012 makebox[7cm]{Reset the form}
2013 \end_layout
2014
2015 \end_inset
2016
2017
2018 \end_layout
2019
2020 \begin_layout Section
2021 Dynamic form fields
2022 \end_layout
2023
2024 \begin_layout Standard
2025 It is also possible to have dynamic form fields.
2026  This means that depending on the actions of the user fields can (dis)appear
2027  or change their appearance.
2028  To use this feature, add these lines to your document preamble:
2029 \end_layout
2030
2031 \begin_layout Standard
2032
2033 \series bold
2034
2035 \backslash
2036 usepackage[pdftex]{insdljs}
2037 \begin_inset Newline newline
2038 \end_inset
2039
2040
2041 \backslash
2042 pdfcatalog{/AA 
2043 \backslash
2044 the
2045 \backslash
2046 pdflastobj
2047 \backslash
2048 space 0 R}
2049 \end_layout
2050
2051 \begin_layout Standard
2052 Then ad the necessary JavaScript code to your preamble or as TeX code to
2053  your document.
2054  For info about JavaScript, see its documentation, 
2055 \begin_inset CommandInset citation
2056 LatexCommand cite
2057 key "JavaScript"
2058
2059 \end_inset
2060
2061 .
2062 \end_layout
2063
2064 \begin_layout Standard
2065 In the following example this code was used:
2066 \end_layout
2067
2068 \begin_layout Standard
2069 \begin_inset listings
2070 lstparams "language=TeX"
2071 inline false
2072 status open
2073
2074 \begin_layout Plain Layout
2075
2076
2077 \backslash
2078 begin{insDLJS}[exaaae]{exaaae}{JavaScript}
2079 \end_layout
2080
2081 \begin_layout Plain Layout
2082
2083  function validateTime(){
2084 \end_layout
2085
2086 \begin_layout Plain Layout
2087
2088   this.delay = true;
2089 \end_layout
2090
2091 \begin_layout Plain Layout
2092
2093   if((event.value == "u") || (event.value == "unlimited")) {
2094 \end_layout
2095
2096 \begin_layout Plain Layout
2097
2098    this.getField("from").display = display.hidden;
2099 \end_layout
2100
2101 \begin_layout Plain Layout
2102
2103    this.getField("to").display = display.hidden;
2104 \end_layout
2105
2106 \begin_layout Plain Layout
2107
2108   } else {
2109 \end_layout
2110
2111 \begin_layout Plain Layout
2112
2113    this.getField("from").display = display.visible;
2114 \end_layout
2115
2116 \begin_layout Plain Layout
2117
2118    this.getField("to").display = display.visible;
2119 \end_layout
2120
2121 \begin_layout Plain Layout
2122
2123    this.getField("from").setFocus();
2124 \end_layout
2125
2126 \begin_layout Plain Layout
2127
2128   }
2129 \end_layout
2130
2131 \begin_layout Plain Layout
2132
2133   this.delay = false;
2134 \end_layout
2135
2136 \begin_layout Plain Layout
2137
2138  }
2139 \end_layout
2140
2141 \begin_layout Plain Layout
2142
2143
2144 \backslash
2145 end{insDLJS}
2146 \end_layout
2147
2148 \end_inset
2149
2150
2151 \end_layout
2152
2153 \begin_layout Standard
2154 \begin_inset Flex ChoiceMenu
2155 status open
2156
2157 \begin_layout Plain Layout
2158
2159 \begin_inset Argument 1
2160 status open
2161
2162 \begin_layout Plain Layout
2163 name=contract,radio,value=tl,validate={validateTime();}
2164 \end_layout
2165
2166 \end_inset
2167
2168 term-limited=tl, unlimited=u
2169 \begin_inset Argument 2
2170 status open
2171
2172 \begin_layout Plain Layout
2173 Job contract:
2174 \end_layout
2175
2176 \end_inset
2177
2178
2179 \end_layout
2180
2181 \end_inset
2182
2183
2184 \end_layout
2185
2186 \begin_layout Standard
2187 \begin_inset Flex TextField
2188 status open
2189
2190 \begin_layout Plain Layout
2191
2192 \begin_inset Argument 1
2193 status open
2194
2195 \begin_layout Plain Layout
2196 name=from,width=10em
2197 \end_layout
2198
2199 \end_inset
2200
2201 From:
2202 \end_layout
2203
2204 \end_inset
2205
2206
2207 \end_layout
2208
2209 \begin_layout Standard
2210 \begin_inset Flex TextField
2211 status open
2212
2213 \begin_layout Plain Layout
2214
2215 \begin_inset Argument 1
2216 status open
2217
2218 \begin_layout Plain Layout
2219 name=to,width=10em
2220 \end_layout
2221
2222 \end_inset
2223
2224 To:
2225 \end_layout
2226
2227 \end_inset
2228
2229
2230 \end_layout
2231
2232 \begin_layout End PDF Form
2233 \begin_inset Note Note
2234 status open
2235
2236 \begin_layout Plain Layout
2237 keep this emtpy
2238 \end_layout
2239
2240 \end_inset
2241
2242
2243 \end_layout
2244
2245 \begin_layout Section
2246 General hints
2247 \end_layout
2248
2249 \begin_layout Itemize
2250 To be able to use all kinds of colors and color definitions you must load
2251  the LaTeX package 
2252 \series bold
2253 xcolor
2254 \series default
2255  in the document preamble this way:
2256 \begin_inset Newline newline
2257 \end_inset
2258
2259
2260 \series bold
2261
2262 \backslash
2263 usepackage[svgnames,rgb]{xcolor}
2264 \end_layout
2265
2266 \begin_layout Itemize
2267 To see in 
2268 \emph on
2269 Adobe Reader
2270 \emph default
2271  and 
2272 \emph on
2273 Acrobat
2274 \emph default
2275  custom background colors you must disable in these programs to highlight
2276  the available form fields in the PDF.
2277 \end_layout
2278
2279 \begin_layout Bibliography
2280 \begin_inset CommandInset bibitem
2281 LatexCommand bibitem
2282 key "JavaScript"
2283
2284 \end_inset
2285
2286
2287 \begin_inset CommandInset href
2288 LatexCommand href
2289 name "JavaScript reference"
2290 target "https://developer.mozilla.org/en/docs/Web/JavaScript/Reference"
2291
2292 \end_inset
2293
2294
2295 \end_layout
2296
2297 \begin_layout Bibliography
2298 \begin_inset CommandInset bibitem
2299 LatexCommand bibitem
2300 key "hyperref"
2301
2302 \end_inset
2303
2304
2305 \begin_inset CommandInset href
2306 LatexCommand href
2307 name "Documentation"
2308 target "http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/manual.pdf"
2309
2310 \end_inset
2311
2312  of the LaTeX package 
2313 \series bold
2314 hyperref
2315 \series default
2316 .
2317 \end_layout
2318
2319 \begin_layout Bibliography
2320 \begin_inset CommandInset bibitem
2321 LatexCommand bibitem
2322 key "pifont"
2323
2324 \end_inset
2325
2326
2327 \begin_inset CommandInset href
2328 LatexCommand href
2329 name "Documentation"
2330 target "http://mirrors.ctan.org/macros/latex/required/psnfss/psnfss2e.pdf"
2331
2332 \end_inset
2333
2334  of the LaTeX package 
2335 \series bold
2336 pifont
2337 \series default
2338 .
2339 \end_layout
2340
2341 \end_body
2342 \end_document