-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeorems-thmtools.module
748 lines (684 loc) · 21.3 KB
/
theorems-thmtools.module
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
#\DeclareLyXModule{Theorems (thmtools, Numbered by Type Within Sections)}
#DescriptionBegin
#Defines the theorem environments defined in the AMS-Theorem modules using the
#thmtools machinery. Both numbered and unnumbered types are provided. In Addition,
#one can use the \listoftheorems command provided by the thmtools.sty package.
#DescriptionEnd
#Excludes: theorems-std | theorems-ams | theorems-ams-bytype | theorems-bytype
# Original Author : Udi Fogiel
# Last Modified: 17.09
Format 66
# The environments defined are:
# - Theorem
# - Corollary
# - Lemma
# - Proposition
# - Conjecture
# - Fact
# - Definition
# - Example
# - Problem
# - Exercise
# - Solution
# - Remark
# - Claim
# - Theorem*
# - Corollary*
# - Lemma*
# - Proposition*
# - Conjecture*
# - Fact*
# - Definition*
# - Example*
# - Problem*
# - Exercise*
# - Solution*
# - Remark*
# - Claim*
# - Case (by inclusion)
# - Proof (by inclusion)
# We need separate counters for each theorem-like style.
Format 66
Counter theorem
Within section
End
Counter corollary
Within section
End
Counter lemma
Within section
End
Counter proposition
Within section
End
Counter conjecture
Within section
End
Counter fact
Within section
End
Counter definition
Within section
End
Counter example
Within section
End
Counter problem
Within section
End
Counter exercise
Within section
End
Counter remark
Within section
End
Counter claim
Within section
End
OutlinerName thm "Definitions & Theorems"
Style Theorem
Category Reasoning
Margin First_Dynamic
LatexType Environment
LatexName thm
NextNoIndent 1
ResetArgs 1
AddToToc thm
IsTocCaption 1
Argument 1
LabelString "Theorem Name"
Tooltip "Additional text appended to the theorem header"
IsTocCaption 1
EndArgument
LabelSep xx
ParIndent MMM
ParSkip 0.4
ItemSep 0.2
TopSep 0.7
BottomSep 0.7
ParSep 0.3
Align Block
AlignPossible Left
LabelType Static
LabelCounter theorem
LabelString "Theorem \thetheorem."
Font
Shape Italic
Size Normal
EndFont
LabelFont
Shape Up
Series Bold
EndFont
Preamble
\usepackage{thmtools}
\renewcommand{\thmt@mklistcmd}{%
\ifcsname lyx\csname thmt@envname\endcsname name\endcsname
\thmtlo@newentry
\ifthmt@isstarred
\@xa\def\csname ll@\thmt@envname\endcsname{%
\protect\ifthmt@listswap
\protect\else
\protect\numberline{\protect\let\protect\autodot\protect\@empty}%
\protect\fi
\csname lyx\csname thmt@envname\endcsname name\endcsname
\ifx\@empty\thmt@shortoptarg\else\protect\thmtformatoptarg{\thmt@shortoptarg}\fi
}%
\else
\@xa\def\csname ll@\thmt@envname\endcsname{%
\protect\ifthmt@listswap
\csname lyx\csname thmt@envname\endcsname name\endcsname~\csname the\thmt@envname\endcsname
\protect\else
\protect\numberline{\csname the\thmt@envname\endcsname}%
\csname lyx\csname thmt@envname\endcsname name\endcsname
\protect\fi
\ifx\@empty\thmt@shortoptarg\else\protect\thmtformatoptarg{\thmt@shortoptarg}\fi
}%
\fi
\@xa\gdef\csname thmt@contentsline@\thmt@envname\endcsname{%
\thmt@contentslineShow
}%
\else
\thmtlo@newentry
\ifthmt@isstarred
\@xa\def\csname ll@\thmt@envname\endcsname{%
\protect\ifthmt@listswap
\protect\else
\protect\numberline{\protect\let\protect\autodot\protect\@empty}%
\protect\fi
\thmt@thmname
\ifx\@empty\thmt@shortoptarg\else\protect\thmtformatoptarg{\thmt@shortoptarg}\fi
}%
\else
\@xa\def\csname ll@\thmt@envname\endcsname{%
\protect\ifthmt@listswap
\thmt@thmname~\csname the\thmt@envname\endcsname
\protect\else
\protect\numberline{\csname the\thmt@envname\endcsname}%
\thmt@thmname
\protect\fi
\ifx\@empty\thmt@shortoptarg\else\protect\thmtformatoptarg{\thmt@shortoptarg}\fi
}%
\fi
\@xa\gdef\csname thmt@contentsline@\thmt@envname\endcsname{%
\thmt@contentslineShow
}%
\fi
}
\expandafter\providecommand\csname lyxthmname\endcsname{}
\declaretheorem[numberwithin=section,name=\protect\csname lyxthmname\endcsname]{thm}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxthmname\endcsname{_(Theorem)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxthmname\endcsname{_(Theorem)}}
EndBabelPreamble
Requires amsthm
End
Style Theorem*
Category Reasoning
LatexType Environment
Margin First_Dynamic
LatexName thm*
LabelType Static
LabelString "Theorem."
NextNoIndent 1
ResetArgs 1
AddToToc thm
IsTocCaption 1
Argument 1
LabelString "Theorem Name"
Tooltip "Additional text appended to the theorem header"
IsTocCaption 1
EndArgument
LabelSep xx
ParIndent MMM
ParSkip 0.4
ItemSep 0.2
TopSep 0.7
BottomSep 0.7
ParSep 0.3
Align Block
AlignPossible Left
Font
Shape Italic
Size Normal
EndFont
LabelFont
Shape Up
Series Bold
EndFont
Preamble
\expandafter\providecommand\csname lyxthm*name\endcsname{}
\declaretheorem[numbered=no,name=\protect\csname lyxthm*name\endcsname]{thm*}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxthm*name\endcsname{_(Theorem)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxthm*name\endcsname{_(Theorem)}}
EndBabelPreamble
Requires amsthm
DependsOn Theorem
End
Style Corollary
CopyStyle Theorem
LatexName cor
LabelString "Corollary \thecorollary."
Preamble
\expandafter\providecommand\csname lyxcorname\endcsname{}
\declaretheorem[numberwithin=section,name=\protect\csname lyxcorname\endcsname]{cor}
EndPreamble
LabelCounter corollary
LangPreamble
\expandafter\renewcommand\csname lyxcorname\endcsname{_(Corollary)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxcorname\endcsname{_(Corollary)}}
EndBabelPreamble
DependsOn Theorem
End
Style Corollary*
CopyStyle Theorem*
LatexName cor*
LabelString "Corollary."
Preamble
\expandafter\providecommand\csname lyxcor*name\endcsname{}
\declaretheorem[numbered=no,name=\protect\csname lyxcorname\endcsname]{cor*}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxcor*name\endcsname{_(Corollary)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxcor*name\endcsname{_(Corollary)}}
EndBabelPreamble
DependsOn Theorem
End
Style Lemma
CopyStyle Theorem
LatexName lem
LabelString "Lemma \thelemma."
Preamble
\expandafter\providecommand\csname lyxlemname\endcsname{}
\declaretheorem[numberwithin=section,name=\protect\csname lyxlemname\endcsname]{lem}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxlemname\endcsname{_(Lemma)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxlemname\endcsname{_(Lemma)}}
EndBabelPreamble
LabelCounter lemma
DependsOn Theorem
End
Style Lemma*
CopyStyle Theorem*
LatexName lem*
LabelString "Lemma."
Preamble
\expandafter\providecommand\csname lyxlem*name\endcsname{}
\declaretheorem[numbered=no,name=\protect\csname lyxlem*name\endcsname]{lem*}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxlem*name\endcsname{_(Lemma)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxlem*name\endcsname{_(Lemma)}}
EndBabelPreamble
DependsOn Theorem
End
Style Proposition
CopyStyle Theorem
LatexName prop
LabelString "Proposition \theproposition."
Preamble
\expandafter\providecommand\csname lyxpropname\endcsname{}
\declaretheorem[numberwithin=section,name=\protect\csname lyxpropname\endcsname]{prop}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxpropname\endcsname{_(Proposition)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxpropname\endcsname{_(Proposition)}}
EndBabelPreamble
LabelCounter proposition
DependsOn Theorem
End
Style Proposition*
CopyStyle Theorem*
LatexName prop*
LabelString "Proposition."
Preamble
\expandafter\providecommand\csname lyxprop*name\endcsname{}
\declaretheorem[numbered=no,name=\protect\csname lyxprop*name\endcsname]{prop*}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxprop*name\endcsname{_(Proposition)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxprop*name\endcsname{_(Proposition)}}
EndBabelPreamble
LabelCounter proposition
DependsOn Theorem
End
Style Conjecture
CopyStyle Theorem
LatexName conjecture
LabelString "Conjecture \theconjecture."
Preamble
\expandafter\providecommand\csname lyxconjecturename\endcsname{}
\declaretheorem[numberwithin=section,name=\protect\csname lyxconjecturename\endcsname]{conjecture}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxconjecturename\endcsname{_(Conjecture)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxconjecturename\endcsname{_(Conjecture)}}
EndBabelPreamble
LabelCounter conjecture
DependsOn Theorem
End
Style Conjecture*
CopyStyle Theorem*
LatexName conjecture*
LabelString "Conjecture."
Preamble
\expandafter\providecommand\csname lyxconjecture*name\endcsname{}
\declaretheorem[numbered=no,name=\protect\csname lyxconjecture*name\endcsname]{conjecture*}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxconjecture*name\endcsname{_(Conjecture)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxconjecture*name\endcsname{_(Conjecture)}}
EndBabelPreamble
DependsOn Theorem
End
Style Fact
CopyStyle Theorem
LatexName fact
LabelString "Fact \thefact."
Preamble
\expandafter\providecommand\csname lyxfactname\endcsname{}
\declaretheorem[numberwithin=section,name=\protect\csname lyxfactname\endcsname]{fact}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxfactname\endcsname{_(Fact)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxfactname\endcsname{_(Fact)}}
EndBabelPreamble
LabelCounter fact
DependsOn Theorem
End
Style Fact*
CopyStyle Theorem*
LatexName fact*
LabelString "Fact."
Preamble
\expandafter\providecommand\csname lyxfact*name\endcsname{}
\declaretheorem[numbered=no,name=\protect\csname lyxfact*name\endcsname]{fact*}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxfact*name\endcsname{_(Fact)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxfact*name\endcsname{_(Fact)}}
EndBabelPreamble
DependsOn Theorem
End
Style Definition
CopyStyle Theorem
LatexName defn
LabelString "Definition \thedefinition."
Font
Shape Up
EndFont
LabelFont
Shape Up
Series Bold
EndFont
Preamble
\expandafter\providecommand\csname lyxdefnname\endcsname{}
\declaretheorem[numberwithin=section,name=\protect\csname lyxdefnname\endcsname,style=definition]{defn}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxdefnname\endcsname{_(Definition)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxdefnname\endcsname{_(Definition)}}
EndBabelPreamble
LabelCounter definition
DependsOn Theorem
End
Style Definition*
CopyStyle Theorem*
LatexName defn*
LabelType Static
LabelString "Definition."
Font
Shape Up
EndFont
LabelFont
Shape Up
Series Bold
EndFont
Preamble
\expandafter\providecommand\csname lyxdefn*name\endcsname{}
\declaretheorem[numbered=no,name=\protect\csname lyxdefn*name\endcsname,style=definition]{defn*}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxdefn*name\endcsname{_(Definition)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxdefn*name\endcsname{_(Definition)}}
EndBabelPreamble
DependsOn Theorem
End
Style Example
CopyStyle Definition
LatexName example
LabelString "Example \theexample."
Preamble
\expandafter\providecommand\csname lyxexamplename\endcsname{}
\declaretheorem[numberwithin=section,name=\protect\csname lyxexamplename\endcsname,style=definition]{example}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxexamplename\endcsname{_(Example)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxexamplename\endcsname{_(Example)}}
EndBabelPreamble
LabelCounter example
DependsOn Theorem
End
Style Example*
CopyStyle Definition*
LatexName example*
LabelString "Example."
Preamble
\expandafter\providecommand\csname lyxexample*name\endcsname{}
\declaretheorem[numbered=no,name=\protect\csname lyxexample*name\endcsname,style=definition]{example*}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxexample*name\endcsname{_(Example)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxexample*name\endcsname{_(Example)}}
EndBabelPreamble
DependsOn Theorem
End
Style Problem
CopyStyle Definition
LatexName problem
LabelString "Problem \theproblem."
Preamble
\expandafter\providecommand\csname lyxproblemname\endcsname{}
\declaretheorem[numberwithin=section,name=\protect\csname lyxproblemname\endcsname,style=definition]{problem}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxproblemname\endcsname{_(Problem)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxproblemname\endcsname{_(Problem)}}
EndBabelPreamble
LabelCounter problem
DependsOn Theorem
End
Style Problem*
CopyStyle Definition*
LatexName problem*
LabelString "Problem."
Preamble
\expandafter\providecommand\csname lyxproblem*name\endcsname{}
\declaretheorem[numbered=no,name=\protect\csname lyxproblem*name\endcsname,style=definition]{problem*}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxproblem*name\endcsname{_(Problem)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxproblem*name\endcsname{_(Problem)}}
EndBabelPreamble
DependsOn Theorem
End
Style Exercise
CopyStyle Definition
LatexName xca
LabelString "Exercise \theexercise."
Preamble
\expandafter\providecommand\csname lyxxcaname\endcsname{}
\declaretheorem[numberwithin=section,name=\protect\csname lyxxcaname\endcsname,style=definition]{xca}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxxcaname\endcsname{_(Exercise)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxxcaname\endcsname{_(Exercise)}}
EndBabelPreamble
LabelCounter exercise
DependsOn Theorem
End
Style Exercise*
CopyStyle Definition*
LatexName xca*
LabelString "Exercise."
Preamble
\expandafter\providecommand\csname lyxxca*name\endcsname{}
\declaretheorem[numbered=no,name=\protect\csname lyxxca*name\endcsname,style=definition]{xca*}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxxca*name\endcsname{_(Exercise)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxxca*name\endcsname{_(Exercise)}}
EndBabelPreamble
DependsOn Theorem
End
Style Solution
CopyStyle Definition
LatexName sol
LabelString "Solution \thesolution."
Preamble
\expandafter\providecommand\csname lyxsolname\endcsname{}
\declaretheorem[numberwithin=section,name=\protect\csname lyxsolname\endcsname,style=definition]{sol}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxsolname\endcsname{_(Solution)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxsolname\endcsname{_(Solution)}}
EndBabelPreamble
LabelCounter solution
DependsOn Theorem
End
Style Solution*
CopyStyle Definition*
LatexName sol*
LabelString "Solution."
Preamble
\expandafter\providecommand\csname lyxsol*name\endcsname{}
\declaretheorem[numbered=no,name=\protect\csname lyxsol*name\endcsname,style=definition]{sol*}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxsol*name\endcsname{_(Solution)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxsol*name\endcsname{_(Solution)}}
EndBabelPreamble
DependsOn Theorem
End
Style Remark
CopyStyle Theorem
LatexName rem
LabelString "Remark \theremark."
Font
Shape Up
Size Normal
EndFont
LabelFont
Series Medium
Shape Italic
EndFont
Preamble
\expandafter\providecommand\csname lyxremname\endcsname{}
\declaretheorem[numberwithin=section,name=\protect\csname lyxremname\endcsname,style=remark]{rem}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxremname\endcsname{_(Remark)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxremname\endcsname{_(Remark)}}
EndBabelPreamble
LabelCounter remark
DependsOn Theorem
End
Style Remark*
CopyStyle Theorem*
LatexName rem*
LabelString "Remark."
Font
Shape Up
Size Normal
EndFont
LabelFont
Series Medium
Shape Italic
EndFont
Preamble
\expandafter\providecommand\csname lyxrem*name\endcsname{}
\declaretheorem[numbered=no,name=\protect\csname lyxrem*name\endcsname,style=remark]{rem*}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxrem*name\endcsname{_(Remark)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxrem*name\endcsname{_(Remark)}}
EndBabelPreamble
DependsOn Theorem
End
Style Claim
CopyStyle Remark
LatexName claim
LabelString "Claim \theclaim."
Preamble
\expandafter\providecommand\csname lyxclaimname\endcsname{}
\declaretheorem[numberwithin=section,name=\protect\csname lyxclaimname\endcsname,style=remark]{claim}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxclaimname\endcsname{_(Claim)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxclaimname\endcsname{_(Claim)}}
EndBabelPreamble
LabelCounter claim
DependsOn Theorem
End
Style Claim*
CopyStyle Remark*
LatexName claim*
LabelString "Claim."
Preamble
\expandafter\providecommand\csname lyxclaim*name\endcsname{}
\declaretheorem[numbered=no,name=\protect\csname lyxclaim*name\endcsname,style=remark]{claim*}
EndPreamble
LangPreamble
\expandafter\renewcommand\csname lyxclaim*name\endcsname{_(Claim)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\expandafter\renewcommand\csname lyxclaim*name\endcsname{_(Claim)}}
EndBabelPreamble
DependsOn Theorem
End
Input theorems-case.inc
Input theorems-proof.inc
Style "List of Theorems"
Margin Dynamic
LatexType Command
LatexName listoftheorems
Category Reasoning
LabelString "List of theorems"
KeepEmpty 1
PassThru 1
ParSkip 0.4
Align Block
LabelSep xx
LabelType Static
Argument 1
LabelString "keys"
Tooltip "Insert wanted keys here"
PassThru 1
Mandatory 0
AutoInsert 1
EndArgument
LabelFont
Series Bold
Color Green
EndFont
DependsOn Theorem
Preamble
\NewCommandCopy{\oldlistoftheorems}{\listoftheorems}
\renewcommand{\listoftheorems}[1][]{\oldlistoftheorems[#1]\addtocontents{loe}{}}
EndPreamble
End
Input theorems-refprefix.inc