]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test/test-refstyle-references.lyx.lyx
Adapt to corrected tex2lyx
[lyx.git] / src / tex2lyx / test / test-refstyle-references.lyx.lyx
1 #LyX file created by tex2lyx 2.1.0dev
2 \lyxformat 461
3 \begin_document
4 \begin_header
5 \textclass book
6 \begin_preamble
7 \usepackage{refstyle}
8
9
10
11
12 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
13
14 \AtBeginDocument{\providecommand{\partref}[1]{\ref{part:#1}}}
15 \AtBeginDocument{\providecommand{\chapref}[1]{\ref{chap:#1}}}
16 \AtBeginDocument{\providecommand{\secref}[1]{\ref{sec:#1}}}
17 \AtBeginDocument{\providecommand{\subref}[1]{\ref{sub:#1}}}
18 \AtBeginDocument{\providecommand{\parref}[1]{\ref{par:#1}}}
19 \AtBeginDocument{\providecommand{\figref}[1]{\ref{fig:#1}}}
20 \AtBeginDocument{\providecommand{\tabref}[1]{\ref{tab:#1}}}
21 \AtBeginDocument{\providecommand{\algref}[1]{\ref{alg:#1}}}
22 \AtBeginDocument{\providecommand{\fnref}[1]{\ref{fn:#1}}}
23 \AtBeginDocument{\providecommand{\enuref}[1]{\ref{enu:#1}}}
24 \AtBeginDocument{\providecommand{\eqref}[1]{\ref{eq:#1}}}
25 \AtBeginDocument{\providecommand{\lemref}[1]{\ref{lem:#1}}}
26 \AtBeginDocument{\providecommand{\thmref}[1]{\ref{thm:#1}}}
27 \AtBeginDocument{\providecommand{\corref}[1]{\ref{cor:#1}}}
28 \AtBeginDocument{\providecommand{\propref}[1]{\ref{prop:#1}}}
29 \floatstyle{ruled}
30 \newfloat{algorithm}{tbp}{loa}[chapter]
31 \providecommand{\algorithmname}{Algorithm}
32 \floatname{algorithm}{\protect\algorithmname}
33 \RS@ifundefined{subref}
34   {\def\RSsubtxt{section~}\newref{sub}{name = \RSsubtxt}}
35   {}
36 \RS@ifundefined{thmref}
37   {\def\RSthmtxt{theorem~}\newref{thm}{name = \RSthmtxt}}
38   {}
39 \RS@ifundefined{lemref}
40   {\def\RSlemtxt{lemma~}\newref{lem}{name = \RSlemtxt}}
41   {}
42
43
44 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
45 \theoremstyle{plain}
46 \newtheorem{thm}{}\theoremstyle{plain}
47 \newtheorem{lem}[thm]{}\theoremstyle{plain}
48 \newtheorem{cor}[thm]{}\theoremstyle{plain}
49 \newtheorem{prop}[thm]{}\theoremstyle{plain}
50 \newtheorem{conjecture}[thm]{}\theoremstyle{plain}
51 \newtheorem{fact}[thm]{}\theoremstyle{definition}
52 \newtheorem{defn}[thm]{}\theoremstyle{definition}
53 \newtheorem{example}[thm]{}\theoremstyle{definition}
54 \newtheorem{problem}[thm]{}\theoremstyle{definition}
55 \newtheorem{xca}[thm]{}\theoremstyle{remark}
56 \newtheorem{rem}[thm]{}\theoremstyle{remark}
57 \newtheorem{claim}[thm]{}\ifx\proof\undefined
58 \newenvironment{proof}[1][\protect\proofname]{\par
59 \normalfont\topsep6\p@\@plus6\p@\relax
60 \trivlist
61 \itemindent\parindent
62 \item[\hskip\labelsep\scshape #1]\ignorespaces
63 }{%
64 \endtrivlist\@endpefalse
65 }
66 \providecommand{\proofname}{Proof}
67 \fi
68
69
70
71 \usepackage{babel}
72 \providecommand{\claimname}{Claim}
73 \providecommand{\conjecturename}{Conjecture}
74 \providecommand{\corollaryname}{Corollary}
75 \providecommand{\definitionname}{Definition}
76 \providecommand{\examplename}{Example}
77 \providecommand{\exercisename}{Exercise}
78 \providecommand{\factname}{Fact}
79 \providecommand{\lemmaname}{Lemma}
80 \providecommand{\problemname}{Problem}
81 \providecommand{\propositionname}{Proposition}
82 \providecommand{\remarkname}{Remark}
83 \providecommand{\theoremname}{Theorem}
84
85
86 \end_preamble
87 \use_default_options false
88 \begin_modules
89 theorems-ams
90 \end_modules
91 \maintain_unincluded_children false
92 \language english
93 \language_package default
94 \inputencoding latin9
95 \fontencoding T1
96 \font_roman default
97 \font_sans default
98 \font_typewriter default
99 \font_math auto
100 \font_default_family default
101 \use_non_tex_fonts false
102 \font_sc false
103 \font_osf false
104 \font_sf_scale 100
105 \font_tt_scale 100
106 \graphics default
107 \default_output_format default
108 \output_sync 0
109 \bibtex_command default
110 \index_command default
111 \paperfontsize default
112 \spacing single
113 \use_hyperref false
114 \papersize default
115 \use_geometry false
116 \use_package amsmath 1
117 \use_package amssymb 0
118 \use_package esint 1
119 \use_package mathdots 0
120 \use_package mathtools 0
121 \use_package mhchem 0
122 \use_package stackrel 0
123 \use_package stmaryrd 0
124 \use_package undertilde 0
125 \cite_engine basic
126 \cite_engine_type numerical
127 \biblio_style plain
128 \use_bibtopic false
129 \use_indices false
130 \paperorientation portrait
131 \suppress_date false
132 \justification true
133 \use_refstyle 1
134 \index Index
135 \shortcut idx
136 \color #008000
137 \end_index
138 \secnumdepth 3
139 \tocdepth 3
140 \paragraph_separation indent
141 \paragraph_indentation default
142 \quotes_language english
143 \papercolumns 1
144 \papersides 2
145 \paperpagestyle default
146 \tracking_changes false
147 \output_changes false
148 \html_math_output 0
149 \html_css_as_file 0
150 \html_be_strict false
151 \end_header
152
153 \begin_body
154
155 \begin_layout Part
156 part
157 \begin_inset CommandInset label
158 LatexCommand label
159 name "part:part"
160
161 \end_inset
162
163
164 \end_layout
165
166 \begin_layout Standard
167
168 \begin_inset CommandInset ref
169 LatexCommand formatted
170 reference "part:part"
171
172 \end_inset
173
174
175 \end_layout
176
177 \begin_layout Chapter
178 chapter
179 \begin_inset CommandInset label
180 LatexCommand label
181 name "chap:chapter"
182
183 \end_inset
184
185
186 \end_layout
187
188 \begin_layout Standard
189
190 \begin_inset CommandInset ref
191 LatexCommand formatted
192 reference "chap:chapter"
193
194 \end_inset
195
196
197 \end_layout
198
199 \begin_layout Section
200 Section
201 \begin_inset CommandInset label
202 LatexCommand label
203 name "sec:Section"
204
205 \end_inset
206
207
208 \end_layout
209
210 \begin_layout Standard
211
212 \begin_inset CommandInset ref
213 LatexCommand formatted
214 reference "sec:Section"
215
216 \end_inset
217
218
219 \end_layout
220
221 \begin_layout Subsection
222 Subsection
223 \begin_inset CommandInset label
224 LatexCommand label
225 name "sub:subsection"
226
227 \end_inset
228
229
230 \end_layout
231
232 \begin_layout Standard
233 Ref to 
234 \begin_inset CommandInset ref
235 LatexCommand formatted
236 reference "sub:subsection"
237
238 \end_inset
239
240 .
241 \end_layout
242
243 \begin_layout Subsubsection
244 Subsubsection
245 \begin_inset CommandInset label
246 LatexCommand label
247 name "sub:Subsubsection"
248
249 \end_inset
250
251
252 \end_layout
253
254 \begin_layout Standard
255 Ref to 
256 \begin_inset CommandInset ref
257 LatexCommand formatted
258 reference "sub:Subsubsection"
259
260 \end_inset
261
262 .
263 \end_layout
264
265 \begin_layout Paragraph
266 paragraph
267 \begin_inset CommandInset label
268 LatexCommand label
269 name "par:paragraph"
270
271 \end_inset
272
273
274 \end_layout
275
276 \begin_layout Standard
277
278 \begin_inset CommandInset ref
279 LatexCommand formatted
280 reference "par:paragraph"
281
282 \end_inset
283
284
285 \end_layout
286
287 \begin_layout Subparagraph
288 subparagraph
289 \begin_inset CommandInset label
290 LatexCommand label
291 name "par:subparagraph"
292
293 \end_inset
294
295
296 \end_layout
297
298 \begin_layout Standard
299
300 \begin_inset CommandInset ref
301 LatexCommand formatted
302 reference "par:subparagraph"
303
304 \end_inset
305
306
307 \end_layout
308
309 \begin_layout Standard
310
311 \begin_inset Float figure
312 wide false
313 sideways false
314 status open
315
316
317 \begin_layout Standard
318
319 \begin_inset ERT
320 status collapsed
321
322 \begin_layout Plain Layout
323
324 \backslash
325 protect
326 \end_layout
327
328 \end_inset
329
330
331 \begin_inset Caption Standard
332
333 \begin_layout Standard
334 figure
335 \begin_inset CommandInset label
336 LatexCommand label
337 name "fig:figure"
338
339 \end_inset
340
341
342 \end_layout
343
344 \end_inset
345
346
347 \end_layout
348
349 \end_inset
350
351
352 \end_layout
353
354 \begin_layout Standard
355
356 \begin_inset CommandInset ref
357 LatexCommand formatted
358 reference "fig:figure"
359
360 \end_inset
361
362
363 \end_layout
364
365 \begin_layout Standard
366
367 \begin_inset Float table
368 wide false
369 sideways false
370 status open
371
372
373 \begin_layout Standard
374
375 \begin_inset ERT
376 status collapsed
377
378 \begin_layout Plain Layout
379
380 \backslash
381 protect
382 \end_layout
383
384 \end_inset
385
386
387 \begin_inset Caption Standard
388
389 \begin_layout Standard
390 table
391 \begin_inset CommandInset label
392 LatexCommand label
393 name "tab:table"
394
395 \end_inset
396
397
398 \end_layout
399
400 \end_inset
401
402
403 \end_layout
404
405 \end_inset
406
407
408 \end_layout
409
410 \begin_layout Standard
411
412 \begin_inset CommandInset ref
413 LatexCommand formatted
414 reference "tab:table"
415
416 \end_inset
417
418
419 \end_layout
420
421 \begin_layout Standard
422
423 \begin_inset Float algorithm
424 wide false
425 sideways false
426 status open
427
428
429 \begin_layout Standard
430
431 \begin_inset ERT
432 status collapsed
433
434 \begin_layout Plain Layout
435
436 \backslash
437 protect
438 \end_layout
439
440 \end_inset
441
442
443 \begin_inset Caption Standard
444
445 \begin_layout Standard
446 algorithm
447 \begin_inset CommandInset label
448 LatexCommand label
449 name "alg:algorithm"
450
451 \end_inset
452
453
454 \end_layout
455
456 \end_inset
457
458
459 \end_layout
460
461 \end_inset
462
463
464 \end_layout
465
466 \begin_layout Standard
467
468 \begin_inset CommandInset ref
469 LatexCommand formatted
470 reference "alg:algorithm"
471
472 \end_inset
473
474
475 \end_layout
476
477 \begin_layout Standard
478
479 \begin_inset Foot
480 status collapsed
481
482
483 \begin_layout Standard
484 foot
485 \begin_inset CommandInset label
486 LatexCommand label
487 name "fn:foot"
488
489 \end_inset
490
491
492 \end_layout
493
494 \end_inset
495
496
497 \end_layout
498
499 \begin_layout Standard
500
501 \begin_inset CommandInset ref
502 LatexCommand formatted
503 reference "fn:foot"
504
505 \end_inset
506
507
508 \end_layout
509
510 \begin_layout Standard
511
512 \begin_inset Marginal
513 status collapsed
514
515
516 \begin_layout Standard
517 margin
518 \begin_inset CommandInset label
519 LatexCommand label
520 name "margin"
521
522 \end_inset
523
524
525 \end_layout
526
527 \end_inset
528
529
530 \end_layout
531
532 \begin_layout Standard
533
534 \begin_inset CommandInset ref
535 LatexCommand ref
536 reference "margin"
537
538 \end_inset
539
540  
541 \end_layout
542
543 \begin_layout Enumerate
544 item
545 \begin_inset CommandInset label
546 LatexCommand label
547 name "enu:item"
548
549 \end_inset
550
551  
552 \end_layout
553
554 \begin_layout Standard
555
556 \begin_inset CommandInset ref
557 LatexCommand formatted
558 reference "enu:item"
559
560 \end_inset
561
562
563 \end_layout
564
565 \begin_layout Standard
566
567 \begin_inset Formula \begin{equation}
568 A=B\label{eq:A=00003DB}
569 \end{equation}
570 \end_inset
571
572
573 \end_layout
574
575 \begin_layout Standard
576
577 \begin_inset CommandInset ref
578 LatexCommand formatted
579 reference "eq:A=00003DB"
580
581 \end_inset
582
583  
584 \end_layout
585
586 \begin_layout Lemma
587 lemma
588 \begin_inset CommandInset label
589 LatexCommand label
590 name "lem:lemma"
591
592 \end_inset
593
594
595 \end_layout
596
597 \begin_layout Lemma
598
599 \begin_inset CommandInset ref
600 LatexCommand formatted
601 reference "lem:lemma"
602
603 \end_inset
604
605
606 \end_layout
607
608 \begin_layout Theorem
609 theorem
610 \begin_inset CommandInset label
611 LatexCommand label
612 name "thm:theorem"
613
614 \end_inset
615
616
617 \end_layout
618
619 \begin_layout Theorem
620
621 \begin_inset CommandInset ref
622 LatexCommand formatted
623 reference "thm:theorem"
624
625 \end_inset
626
627
628 \end_layout
629
630 \begin_layout Corollary
631 corollary
632 \begin_inset CommandInset label
633 LatexCommand label
634 name "cor:corollary"
635
636 \end_inset
637
638
639 \end_layout
640
641 \begin_layout Corollary
642
643 \begin_inset CommandInset ref
644 LatexCommand formatted
645 reference "cor:corollary"
646
647 \end_inset
648
649
650 \end_layout
651
652 \begin_layout Proposition
653 proposition
654 \begin_inset CommandInset label
655 LatexCommand label
656 name "prop:proposition"
657
658 \end_inset
659
660
661 \end_layout
662
663 \begin_layout Proposition
664
665 \begin_inset CommandInset ref
666 LatexCommand formatted
667 reference "prop:proposition"
668
669 \end_inset
670
671
672 \end_layout
673
674 \begin_layout Conjecture
675 conjecture
676 \begin_inset CommandInset label
677 LatexCommand label
678 name "conjecture"
679
680 \end_inset
681
682
683 \end_layout
684
685 \begin_layout Conjecture
686
687 \begin_inset CommandInset ref
688 LatexCommand ref
689 reference "conjecture"
690
691 \end_inset
692
693
694 \end_layout
695
696 \begin_layout Fact
697 fact
698 \begin_inset CommandInset label
699 LatexCommand label
700 name "fact"
701
702 \end_inset
703
704
705 \end_layout
706
707 \begin_layout Fact
708
709 \begin_inset CommandInset ref
710 LatexCommand ref
711 reference "fact"
712
713 \end_inset
714
715
716 \end_layout
717
718 \begin_layout Definition
719 definition
720 \begin_inset CommandInset label
721 LatexCommand label
722 name "definition"
723
724 \end_inset
725
726
727 \end_layout
728
729 \begin_layout Definition
730
731 \begin_inset CommandInset ref
732 LatexCommand ref
733 reference "definition"
734
735 \end_inset
736
737
738 \end_layout
739
740 \begin_layout Example
741 example
742 \begin_inset CommandInset label
743 LatexCommand label
744 name "example"
745
746 \end_inset
747
748
749 \end_layout
750
751 \begin_layout Example
752
753 \begin_inset CommandInset ref
754 LatexCommand ref
755 reference "example"
756
757 \end_inset
758
759
760 \end_layout
761
762 \begin_layout Problem
763 problem
764 \begin_inset CommandInset label
765 LatexCommand label
766 name "problem"
767
768 \end_inset
769
770
771 \end_layout
772
773 \begin_layout Problem
774
775 \begin_inset CommandInset ref
776 LatexCommand ref
777 reference "problem"
778
779 \end_inset
780
781
782 \end_layout
783
784 \begin_layout Exercise
785 exercise
786 \begin_inset CommandInset label
787 LatexCommand label
788 name "exercise"
789
790 \end_inset
791
792
793 \end_layout
794
795 \begin_layout Exercise
796
797 \begin_inset CommandInset ref
798 LatexCommand ref
799 reference "exercise"
800
801 \end_inset
802
803
804 \end_layout
805
806 \begin_layout Remark
807 remark
808 \begin_inset CommandInset label
809 LatexCommand label
810 name "remark"
811
812 \end_inset
813
814
815 \end_layout
816
817 \begin_layout Remark
818
819 \begin_inset CommandInset ref
820 LatexCommand ref
821 reference "remark"
822
823 \end_inset
824
825
826 \end_layout
827
828 \begin_layout Claim
829 claim
830 \begin_inset CommandInset label
831 LatexCommand label
832 name "claim"
833
834 \end_inset
835
836
837 \end_layout
838
839 \begin_layout Claim
840
841 \begin_inset CommandInset ref
842 LatexCommand ref
843 reference "claim"
844
845 \end_inset
846
847
848 \end_layout
849
850 \begin_layout Proof
851 proof
852 \begin_inset CommandInset label
853 LatexCommand label
854 name "proof"
855
856 \end_inset
857
858
859 \end_layout
860
861 \begin_layout Proof
862
863 \begin_inset CommandInset ref
864 LatexCommand ref
865 reference "proof"
866
867 \end_inset
868
869
870 \end_layout
871
872 \end_body
873 \end_document