]> git.lyx.org Git - lyx.git/blob - lib/templates/acmart.lyx
Fix crash when closing master with children and grandchildren
[lyx.git] / lib / templates / acmart.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/templates/
7 \textclass acmart
8 \begin_preamble
9 % For algorithm2e
10 \renewcommand{\algorithmcfname}{ALGORITHM}
11 \SetAlFnt{\small}
12 \SetAlCapFnt{\small}
13 \SetAlCapNameFnt{\small}
14 \SetAlCapHSkip{0pt}
15 \IncMargin{-\parindent}
16 \end_preamble
17 \options format=acmsmall, review=false, screen=true
18 \use_default_options false
19 \begin_modules
20 InStar
21 algorithm2e
22 \end_modules
23 \maintain_unincluded_children false
24 \begin_local_layout
25 Format 60
26 PackageOptions algorithm2e ruled
27 \end_local_layout
28 \language english
29 \language_package auto
30 \inputencoding auto
31 \fontencoding global
32 \font_roman "default" "default"
33 \font_sans "default" "default"
34 \font_typewriter "default" "default"
35 \font_math "auto" "auto"
36 \font_default_family default
37 \use_non_tex_fonts false
38 \font_sc false
39 \font_osf false
40 \font_sf_scale 100 100
41 \font_tt_scale 100 100
42 \use_microtype false
43 \use_dash_ligatures true
44 \graphics default
45 \default_output_format default
46 \output_sync 0
47 \bibtex_command default
48 \index_command default
49 \paperfontsize default
50 \spacing single
51 \use_hyperref false
52 \papersize default
53 \use_geometry true
54 \use_package amsmath 1
55 \use_package amssymb 1
56 \use_package cancel 1
57 \use_package esint 1
58 \use_package mathdots 1
59 \use_package mathtools 1
60 \use_package mhchem 1
61 \use_package stackrel 1
62 \use_package stmaryrd 1
63 \use_package undertilde 1
64 \cite_engine natbib
65 \cite_engine_type numerical
66 \biblio_style plainnat
67 \use_bibtopic false
68 \use_indices false
69 \paperorientation portrait
70 \suppress_date false
71 \justification true
72 \use_refstyle 1
73 \index Index
74 \shortcut idx
75 \color #008000
76 \end_index
77 \secnumdepth 3
78 \tocdepth 3
79 \paragraph_separation indent
80 \paragraph_indentation default
81 \is_math_indent 0
82 \math_numbering_side default
83 \quotes_style english
84 \dynamic_quotes 0
85 \papercolumns 1
86 \papersides 1
87 \paperpagestyle default
88 \tracking_changes false
89 \output_changes false
90 \html_math_output 0
91 \html_css_as_file 0
92 \html_be_strict false
93 \use_minted 0
94 \end_header
95
96 \begin_body
97
98 \begin_layout In Preamble
99 \begin_inset Note Note
100 status open
101
102 \begin_layout Plain Layout
103 Metadata information:
104 \end_layout
105
106 \end_inset
107
108
109 \end_layout
110
111 \begin_layout ACM Journal
112 JACM
113 \end_layout
114
115 \begin_layout ACM Volume
116 1
117 \end_layout
118
119 \begin_layout ACM Number
120 1
121 \end_layout
122
123 \begin_layout ACM Article
124 1
125 \end_layout
126
127 \begin_layout ACM Year
128 2017
129 \end_layout
130
131 \begin_layout ACM Month
132 1
133 \end_layout
134
135 \begin_layout Copyright Year
136 2017
137 \end_layout
138
139 \begin_layout Set Copyright
140 acmlicensed
141 \begin_inset Note Note
142 status open
143
144 \begin_layout Plain Layout
145 acmcopyright,rightsretained,usgov,usgovmixed,cagov,cagovmixed
146 \end_layout
147
148 \end_inset
149
150
151 \end_layout
152
153 \begin_layout ACM DOI
154 0000001.0000001
155 \end_layout
156
157 \begin_layout In Preamble
158 \begin_inset Note Note
159 status open
160
161 \begin_layout Plain Layout
162 Paper history:
163 \end_layout
164
165 \end_inset
166
167
168 \end_layout
169
170 \begin_layout Received
171 January 2017
172 \end_layout
173
174 \begin_layout Received
175 \begin_inset Argument 1
176 status open
177
178 \begin_layout Plain Layout
179 revised
180 \end_layout
181
182 \end_inset
183
184 January 2017
185 \end_layout
186
187 \begin_layout Received
188 \begin_inset Argument 1
189 status open
190
191 \begin_layout Plain Layout
192 accepted
193 \end_layout
194
195 \end_inset
196
197 January 2017 
198 \end_layout
199
200 \begin_layout In Title
201 \begin_inset Note Note
202 status open
203
204 \begin_layout Plain Layout
205 Title portion.
206  Note the short title for running heads
207 \end_layout
208
209 \end_inset
210
211
212 \end_layout
213
214 \begin_layout Title
215 \begin_inset Argument 1
216 status open
217
218 \begin_layout Plain Layout
219 Short Title
220 \end_layout
221
222 \end_inset
223
224 Example ACM Article
225 \end_layout
226
227 \begin_layout Author
228 Author A.
229  Name
230 \end_layout
231
232 \begin_layout ORCID
233 1234-5678-9012-3456
234 \end_layout
235
236 \begin_layout Affiliation
237 \begin_inset Flex Institution
238 status open
239
240 \begin_layout Plain Layout
241 Institution
242 \end_layout
243
244 \end_inset
245
246
247 \begin_inset Flex Street Address
248 status open
249
250 \begin_layout Plain Layout
251 101 Street Address
252 \end_layout
253
254 \end_inset
255
256
257 \begin_inset Flex City
258 status open
259
260 \begin_layout Plain Layout
261 City
262 \end_layout
263
264 \end_inset
265
266
267 \begin_inset Flex State
268 status open
269
270 \begin_layout Plain Layout
271 ST
272 \end_layout
273
274 \end_inset
275
276
277 \begin_inset Flex Postal Code
278 status open
279
280 \begin_layout Plain Layout
281 12345
282 \end_layout
283
284 \end_inset
285
286
287 \begin_inset Flex Country
288 status open
289
290 \begin_layout Plain Layout
291 USA
292 \end_layout
293
294 \end_inset
295
296
297 \end_layout
298
299 \begin_layout Author
300 Author B.
301  Name
302 \end_layout
303
304 \begin_layout Author
305 Author C.
306  Name
307 \end_layout
308
309 \begin_layout Affiliation
310 \begin_inset Flex Institution
311 status open
312
313 \begin_layout Plain Layout
314 Institution 2
315 \end_layout
316
317 \end_inset
318
319
320 \begin_inset Flex Street Address
321 status open
322
323 \begin_layout Plain Layout
324 101 Street Address
325 \end_layout
326
327 \end_inset
328
329
330 \begin_inset Flex City
331 status open
332
333 \begin_layout Plain Layout
334 City
335 \end_layout
336
337 \end_inset
338
339
340 \begin_inset Flex State
341 status open
342
343 \begin_layout Plain Layout
344 ST
345 \end_layout
346
347 \end_inset
348
349
350 \begin_inset Flex Postal Code
351 status open
352
353 \begin_layout Plain Layout
354 12345
355 \end_layout
356
357 \end_inset
358
359
360 \begin_inset Flex Country
361 status open
362
363 \begin_layout Plain Layout
364 USA
365 \end_layout
366
367 \end_inset
368
369
370 \end_layout
371
372 \begin_layout Abstract
373 Abstract here.
374 \end_layout
375
376 \begin_layout In Title
377 \begin_inset Note Note
378 status open
379
380 \begin_layout Plain Layout
381 The code below should be generated by the tool at http://dl.acm.org/ccs.cfm:
382 \end_layout
383
384 \end_inset
385
386
387 \end_layout
388
389 \begin_layout CCSXML
390
391 <ccs2012>
392 \end_layout
393
394 \begin_layout CCSXML
395
396         <concept>
397 \end_layout
398
399 \begin_layout CCSXML
400
401                 <concept_id>10003752.10003777.10003778</concept_id>
402 \end_layout
403
404 \begin_layout CCSXML
405
406                 <concept_desc>Theory of computation~Complexity classes</concept_desc>
407 \end_layout
408
409 \begin_layout CCSXML
410
411                 <concept_significance>500</concept_significance>
412 \end_layout
413
414 \begin_layout CCSXML
415
416         </concept>
417 \end_layout
418
419 \begin_layout CCSXML
420
421 </ccs2012>
422 \end_layout
423
424 \begin_layout CCS Description
425
426 \begin_inset Argument 1
427 status open
428
429 \begin_layout Plain Layout
430 500
431 \end_layout
432
433 \end_inset
434
435 Theory of computation~Complexity classes
436 \end_layout
437
438 \begin_layout Keywords
439 Keyword 1, Keyword 2
440 \end_layout
441
442 \begin_layout Thanks
443 This work is supported by...
444 \end_layout
445
446 \begin_layout Standard
447 \begin_inset Note Note
448 status open
449
450 \begin_layout Plain Layout
451 When the default list of authors is too long for headers.
452  The following must be placed after 
453 \family typewriter
454
455 \backslash
456 maketitle
457 \end_layout
458
459 \end_inset
460
461
462 \end_layout
463
464 \begin_layout ShortAuthors
465 A.
466  A.
467  Name et al.
468 \end_layout
469
470 \begin_layout Section
471 Introduction
472 \end_layout
473
474 \begin_layout Standard
475 Introduction
476 \end_layout
477
478 \begin_layout Section
479 Section
480 \end_layout
481
482 \begin_layout Standard
483 See Algorithm
484 \begin_inset space ~
485 \end_inset
486
487
488 \begin_inset CommandInset ref
489 LatexCommand ref
490 reference "alg:one"
491 plural "false"
492 caps "false"
493 noprefix "false"
494
495 \end_inset
496
497 , Figure
498 \begin_inset space ~
499 \end_inset
500
501
502 \begin_inset CommandInset ref
503 LatexCommand ref
504 reference "fig:one"
505 plural "false"
506 caps "false"
507 noprefix "false"
508
509 \end_inset
510
511 , and Table
512 \begin_inset space ~
513 \end_inset
514
515
516 \begin_inset CommandInset ref
517 LatexCommand ref
518 reference "tab:one"
519
520 \end_inset
521
522 .
523 \end_layout
524
525 \begin_layout Standard
526 \begin_inset Float algorithm
527 placement t
528 wide false
529 sideways false
530 status open
531
532 \begin_layout Algorithm
533 \begin_inset ERT
534 status open
535
536 \begin_layout Plain Layout
537
538
539 \backslash
540 SetAlgoNoLine
541 \end_layout
542
543 \end_inset
544
545
546 \end_layout
547
548 \begin_layout Algorithm
549 \begin_inset ERT
550 status open
551
552 \begin_layout Plain Layout
553
554
555 \backslash
556 KwData{
557 \end_layout
558
559 \end_inset
560
561 List 
562 \begin_inset Formula $L$
563 \end_inset
564
565  of all integers from 
566 \begin_inset Formula $2$
567 \end_inset
568
569  to 
570 \begin_inset Formula $N$
571 \end_inset
572
573 .
574 \begin_inset ERT
575 status open
576
577 \begin_layout Plain Layout
578
579 }
580 \end_layout
581
582 \end_inset
583
584
585 \end_layout
586
587 \begin_layout Algorithm
588 \noindent
589 \begin_inset ERT
590 status open
591
592 \begin_layout Plain Layout
593
594
595 \backslash
596 KwResult{
597 \end_layout
598
599 \end_inset
600
601 List 
602 \begin_inset Formula $P$
603 \end_inset
604
605  of prime numbers between 
606 \begin_inset Formula $2$
607 \end_inset
608
609  and 
610 \begin_inset Formula $N$
611 \end_inset
612
613 .
614 \begin_inset ERT
615 status open
616
617 \begin_layout Plain Layout
618
619 }
620 \end_layout
621
622 \end_inset
623
624
625 \end_layout
626
627 \begin_layout Algorithm
628 \begin_inset ERT
629 status open
630
631 \begin_layout Plain Layout
632
633
634 \backslash
635 BlankLine
636 \end_layout
637
638 \end_inset
639
640
641 \end_layout
642
643 \begin_layout Algorithm
644 \begin_inset ERT
645 status open
646
647 \begin_layout Plain Layout
648
649
650 \backslash
651 For{
652 \end_layout
653
654 \end_inset
655
656
657 \begin_inset Formula $i=2$
658 \end_inset
659
660  
661 \begin_inset ERT
662 status open
663
664 \begin_layout Plain Layout
665
666
667 \backslash
668 KwTo
669 \end_layout
670
671 \end_inset
672
673  
674 \begin_inset Formula $N$
675 \end_inset
676
677
678 \begin_inset ERT
679 status open
680
681 \begin_layout Plain Layout
682
683 }{
684 \end_layout
685
686 \end_inset
687
688
689 \end_layout
690
691 \begin_deeper
692 \begin_layout Algorithm
693 \begin_inset ERT
694 status open
695
696 \begin_layout Plain Layout
697
698
699 \backslash
700 If{
701 \end_layout
702
703 \end_inset
704
705
706 \begin_inset Formula $i$
707 \end_inset
708
709  is not crossed-out in the list 
710 \begin_inset Formula $L$
711 \end_inset
712
713
714 \begin_inset ERT
715 status open
716
717 \begin_layout Plain Layout
718
719 }{
720 \end_layout
721
722 \end_inset
723
724
725 \end_layout
726
727 \begin_deeper
728 \begin_layout Algorithm
729 Cross-out in the list 
730 \begin_inset Formula $L$
731 \end_inset
732
733  its multiples 
734 \begin_inset Formula $ki$
735 \end_inset
736
737  for all 
738 \begin_inset Formula $k\geq2$
739 \end_inset
740
741 .
742 \end_layout
743
744 \end_deeper
745 \begin_layout Algorithm
746 \begin_inset ERT
747 status open
748
749 \begin_layout Plain Layout
750
751 }
752 \end_layout
753
754 \end_inset
755
756
757 \end_layout
758
759 \end_deeper
760 \begin_layout Algorithm
761 \begin_inset ERT
762 status open
763
764 \begin_layout Plain Layout
765
766 }
767 \end_layout
768
769 \end_inset
770
771
772 \end_layout
773
774 \begin_layout Algorithm
775 \begin_inset ERT
776 status open
777
778 \begin_layout Plain Layout
779
780
781 \backslash
782 Return{
783 \end_layout
784
785 \end_inset
786
787 The list 
788 \begin_inset Formula $P$
789 \end_inset
790
791  of integers in 
792 \begin_inset Formula $L$
793 \end_inset
794
795  that are not crossed-out.
796 \begin_inset ERT
797 status open
798
799 \begin_layout Plain Layout
800
801 }
802 \end_layout
803
804 \end_inset
805
806
807 \end_layout
808
809 \begin_layout Plain Layout
810 \begin_inset Caption Standard
811
812 \begin_layout Plain Layout
813 \begin_inset CommandInset label
814 LatexCommand label
815 name "alg:one"
816
817 \end_inset
818
819 Sieve of Eratosthenes.
820 \end_layout
821
822 \end_inset
823
824
825 \end_layout
826
827 \end_inset
828
829
830 \end_layout
831
832 \begin_layout Standard
833 \begin_inset Float figure
834 wide false
835 sideways false
836 status open
837
838 \begin_layout Plain Layout
839 \begin_inset Graphics
840         filename ../doc/clipart/platypus.eps
841         width 4cm
842
843 \end_inset
844
845
846 \begin_inset Caption Standard
847
848 \begin_layout Plain Layout
849 \begin_inset CommandInset label
850 LatexCommand label
851 name "fig:one"
852
853 \end_inset
854
855 Figure.
856 \end_layout
857
858 \end_inset
859
860
861 \end_layout
862
863 \end_inset
864
865
866 \end_layout
867
868 \begin_layout Standard
869 \begin_inset Float table
870 wide false
871 sideways false
872 status open
873
874 \begin_layout Plain Layout
875 \begin_inset Caption Standard
876
877 \begin_layout Plain Layout
878 \begin_inset CommandInset label
879 LatexCommand label
880 name "tab:one"
881
882 \end_inset
883
884
885 \emph on
886 Booktabs
887 \emph default
888  recommendations.
889 \end_layout
890
891 \end_inset
892
893
894 \end_layout
895
896 \begin_layout Plain Layout
897 \begin_inset Tabular
898 <lyxtabular version="3" rows="5" columns="2">
899 <features booktabs="true" tabularvalignment="middle">
900 <column alignment="left" valignment="top" width="0pt">
901 <column alignment="left" valignment="top" width="0pt">
902 <row>
903 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
904 \begin_inset Text
905
906 \begin_layout Plain Layout
907
908 \end_layout
909
910 \end_inset
911 </cell>
912 <cell alignment="left" valignment="top" topline="true" usebox="none">
913 \begin_inset Text
914
915 \begin_layout Plain Layout
916 Recommendation
917 \end_layout
918
919 \end_inset
920 </cell>
921 </row>
922 <row>
923 <cell alignment="left" valignment="top" topline="true" usebox="none">
924 \begin_inset Text
925
926 \begin_layout Plain Layout
927 Caption
928 \end_layout
929
930 \end_inset
931 </cell>
932 <cell alignment="left" valignment="top" topline="true" usebox="none">
933 \begin_inset Text
934
935 \begin_layout Plain Layout
936 Above (for tables only)
937 \end_layout
938
939 \end_inset
940 </cell>
941 </row>
942 <row>
943 <cell alignment="left" valignment="top" usebox="none">
944 \begin_inset Text
945
946 \begin_layout Plain Layout
947 Horizontal rules
948 \end_layout
949
950 \end_inset
951 </cell>
952 <cell alignment="left" valignment="top" usebox="none">
953 \begin_inset Text
954
955 \begin_layout Plain Layout
956 Do not overuse
957 \end_layout
958
959 \end_inset
960 </cell>
961 </row>
962 <row>
963 <cell alignment="center" valignment="top" usebox="none">
964 \begin_inset Text
965
966 \begin_layout Plain Layout
967 Double rules
968 \end_layout
969
970 \end_inset
971 </cell>
972 <cell alignment="center" valignment="top" usebox="none">
973 \begin_inset Text
974
975 \begin_layout Plain Layout
976 Never
977 \end_layout
978
979 \end_inset
980 </cell>
981 </row>
982 <row>
983 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
984 \begin_inset Text
985
986 \begin_layout Plain Layout
987 Vertical rules
988 \end_layout
989
990 \end_inset
991 </cell>
992 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
993 \begin_inset Text
994
995 \begin_layout Plain Layout
996 Never, ever
997 \end_layout
998
999 \end_inset
1000 </cell>
1001 </row>
1002 </lyxtabular>
1003
1004 \end_inset
1005
1006
1007 \end_layout
1008
1009 \end_inset
1010
1011
1012 \end_layout
1013
1014 \begin_layout Section
1015 Conclusions
1016 \end_layout
1017
1018 \begin_layout Standard
1019 Conclusion.
1020 \end_layout
1021
1022 \begin_layout Section
1023 \start_of_appendix
1024 Appendix
1025 \end_layout
1026
1027 \begin_layout Standard
1028 \begin_inset Flex Print Only
1029 status open
1030
1031 \begin_layout Plain Layout
1032 See the supplementary materials in the online version
1033 \end_layout
1034
1035 \end_inset
1036
1037
1038 \end_layout
1039
1040 \begin_layout Standard
1041 \begin_inset Flex Screen Only
1042 status open
1043
1044 \begin_layout Subsection
1045 Supplementary material 1
1046 \end_layout
1047
1048 \begin_layout Plain Layout
1049 Material.
1050 \end_layout
1051
1052 \end_inset
1053
1054
1055 \end_layout
1056
1057 \begin_layout Acknowledgments
1058 The authors would like to thank...
1059 \end_layout
1060
1061 \begin_layout Acknowledgments
1062 The work is supported by the 
1063 \begin_inset Flex Grant Sponsor
1064 status open
1065
1066 \begin_layout Plain Layout
1067 \begin_inset Argument 1
1068 status open
1069
1070 \begin_layout Plain Layout
1071 Sponsor ID
1072 \end_layout
1073
1074 \end_inset
1075
1076
1077 \begin_inset Argument 2
1078 status open
1079
1080 \begin_layout Plain Layout
1081 Sponsor Name
1082 \end_layout
1083
1084 \end_inset
1085
1086
1087 \begin_inset Argument 3
1088 status open
1089
1090 \begin_layout Plain Layout
1091 http://www.example.com
1092 \end_layout
1093
1094 \end_inset
1095
1096
1097 \end_layout
1098
1099 \end_inset
1100
1101  under Grant No.:
1102 \begin_inset space ~
1103 \end_inset
1104
1105
1106 \begin_inset Flex Grant Number
1107 status open
1108
1109 \begin_layout Plain Layout
1110 \begin_inset Argument 2
1111 status open
1112
1113 \begin_layout Plain Layout
1114 Sponsor ID
1115 \end_layout
1116
1117 \end_inset
1118
1119 1234567
1120 \end_layout
1121
1122 \end_inset
1123
1124 .
1125 \end_layout
1126
1127 \begin_layout Standard
1128 \begin_inset Note Note
1129 status open
1130
1131 \begin_layout Plain Layout
1132 Bibliography
1133 \end_layout
1134
1135 \begin_layout Plain Layout
1136 \begin_inset CommandInset bibtex
1137 LatexCommand bibtex
1138 btprint "btPrintCited"
1139 bibfiles "references"
1140 options "ACM-Reference-Format"
1141
1142 \end_inset
1143
1144
1145 \end_layout
1146
1147 \end_inset
1148
1149
1150 \end_layout
1151
1152 \end_body
1153 \end_document