LaTeXML

 view release on metacpan or  search on metacpan

lib/LaTeXML/Package/OmniBus.cls.ltxml  view on Meta::CPAN

165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# from acm_proc_article, is it general enough?
DefMacro('\category{}{}{}[]', '\@add@frontmatter{ltx:classification}[scheme=category]{#1 #2 #3}\keywords{#4}');
 
our $omni_theorem_main = <<'EOL';
\newtheorem{theorem}{Theorem}[section]
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{proof}[theorem]{Proof}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{example}[theorem]{Example}
\newtheorem{exercise}[theorem]{Exercise}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{problem}[theorem]{Problem}
\newtheorem{question}[theorem]{Question}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{solution}[theorem]{Solution}
\newtheorem{step}[theorem]{Step}
\newtheorem{note}[theorem]{Note}
EOL

lib/LaTeXML/Package/OmniBus.cls.ltxml  view on Meta::CPAN

199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
\theoremstyle{definition}
\newtheorem{defn}[thm]{Definition}
\newtheorem{exmp}[thm]{Example}
\newtheorem{rem}[thm]{Remark}
\newtheorem{prob}[thm]{Problem}
\newtheorem{prin}[thm]{Principle}
\newtheorem{alg}{Algorithm}
EOL
 
for my $env (qw(
  conjecture theorem corollary definition example exercise lemma
  note problem proof proposition question remark solution
  thm cor lem claim axiom conj fact hypo assum prop crit defn exmp rem prob prin alg)) {
  my $beginenv = "\\begin{$env}";
  DefMacroI(T_CS($beginenv), undef, sub {
      RequirePackage('amsthm');
      return Tokenize($omni_theorem_main . $omni_theorem_aux . $beginenv)->unlist; }); }
for my $new_theorem_alias (qw(\newproclaim \newdef \newremark)) {
  DefMacroI(T_CS($new_theorem_alias), undef, sub {
      RequirePackage('amsthm');
      return T_CS('\newtheorem'); }); }

lib/LaTeXML/Package/aa_support.sty.ltxml  view on Meta::CPAN

134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
DefConstructor('\endacknowledgements', "</ltx:acknowledgements>");
DefConstructor('\acknowledgement', "<ltx:acknowledgements name='#name'>",
  properties => sub { (name => Digest(T_CS('\acknowledgmentsname'))); });
DefConstructor('\endacknowledgement', "</ltx:acknowledgements>");
Tag("ltx:acknowledgements", autoClose => 1);
DefMacro('\acknowledgmentsname', 'Acknowledgements');
DefMacro('\ackname',             'Acknowledgements');
 
RawTeX(<<'EoTeX');
\newtheorem*{proof}{Proof}{\it}{\rm}
\newtheorem{corollary}[theorem]{Corollary}{\bf}{\it}
\newtheorem{definition}[theorem]{Definition}{\bf}{\rm}
\newtheorem{example}[theorem]{Example}{\it}{\rm}
\newtheorem{exercise}[theorem]{Exercise}{\it}{\rm}
\newtheorem{lemma}[theorem]{Lemma}{\bf}{\it}
\newtheorem{note}[theorem]{Note}{\it}{\rm}
\newtheorem{problem}[theorem]{Problem}{\it}{\rm}
\newtheorem{proposition}[theorem]{Proposition}{\bf}{\it}
\newtheorem{question}[theorem]{Question}{\it}{\rm}
\newtheorem{remark}[theorem]{Remark}{\it}{\rm}
\newtheorem{solution}[theorem]{Solution}{\it}{\rm}

lib/LaTeXML/Package/acmart.cls.ltxml  view on Meta::CPAN

217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
  {\@acmdefinitionindent}% indent amount
  {\@acmdefinitionheadfont}% head font
  {.}% punctuation after head
  {.5em}% spacing after head
  {\thmname{#1}\thmnumber{ #2}\thmnote{ {\@acmdefinitionnotefont(#3)}}}% head spec
\theoremstyle{acmplain}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{corollary}[theorem]{Corollary}
\theoremstyle{acmdefinition}
\newtheorem{example}[theorem]{Example}
\newtheorem{definition}[theorem]{Definition}
\theoremstyle{acmplain}
EoTeX
Let('\proof',    '\@proof');
Let('\endproof', '\end@proof');
 
#======================================================================
1;

lib/LaTeXML/Package/beamer.cls.ltxml  view on Meta::CPAN

1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
DefMacro('\pushQED {}', sub { beamerTODO('pushQED'); });
DefMacro('\popQED',     sub { beamerTODO('popQED'); });
DefMacro('\qedhere',    sub { beamerTODO('qedhere'); });
 
RawTeX(<<'EoTeX');
% compatibility
\newcommand{\ExampleInline}[1]{\translate{Example}: \ignorespaces#1}
\newcommand{\BeispielInline}[1]{Beispiel: \ignorespaces#1}
 
\newtheorem{theorem}{\translate{Theorem}}
\newtheorem{corollary}[theorem]{\translate{Corollary}}
\newtheorem{fact}[theorem]{\translate{Fact}}
\newtheorem{lemma}[theorem]{\translate{Lemma}}
\newtheorem{problem}[theorem]{\translate{Problem}}
\newtheorem{solution}[theorem]{\translate{Solution}}
 
% \theoremstyle{definition}
\newtheorem{definition}[theorem]{\translate{Definition}}
\newtheorem{definitions}[theorem]{\translate{Definitions}}
 
% \theoremstyle{example}

lib/LaTeXML/Package/beamer.cls.ltxml  view on Meta::CPAN

1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
\theoremstyle{plain}
\newtheorem{Loesung}[theorem]{L\"osung}
\newtheorem{Satz}[theorem]{Satz}
\newtheorem{Folgerung}[theorem]{Folgerung}
\newtheorem{Fakt}[theorem]{Fakt}
\newenvironment{Beweis}{\begin{proof}[Beweis.]}{\end{proof}}
\newenvironment{Lemma}{\begin{lemma}}{\end{lemma}}
\newenvironment{Proof}{\begin{proof}}{\end{proof}}
\newenvironment{Theorem}{\begin{theorem}}{\end{theorem}}
\newenvironment{Problem}{\begin{problem}}{\end{problem}}
\newenvironment{Corollary}{\begin{corollary}}{\end{corollary}}
\newenvironment{Example}{\begin{example}}{\end{example}}
\newenvironment{Examples}{\begin{examples}}{\end{examples}}
\newenvironment{Definition}{\begin{definition}}{\end{definition}}
EoTeX
 
#**********************************************************************
# beamerbasethemes.sty
#**********************************************************************
 
# TODO: Implement me!

lib/LaTeXML/Package/llncs.cls.ltxml  view on Meta::CPAN

158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
RawTeX(<<'EOTeX');
\def\theoremname{Theorem}
\spnewtheorem{theorem}{Theorem}[section]{\bfseries}{\itshape}
\def\claimname{Claim}
\spnewtheorem*{claim}{Claim}{\itshape}{\rmfamily}
\def\proofname{Proof}
\spnewtheorem*{proof}{Proof}{\itshape}{\rmfamily}
\spnewtheorem{case}{Case}{\itshape}{\rmfamily}
\def\conjecturename{Conjecture}
\spnewtheorem{conjecture}{Conjecture}{\itshape}{\rmfamily}
\def\corollaryname{Corollary}
\spnewtheorem{corollary}{Corollary}{\bfseries}{\itshape}
\def\definitionname{Definition}
\spnewtheorem{definition}{Definition}{\bfseries}{\rmfamily}
\def\examplename{Example}
\spnewtheorem{example}{Example}{\itshape}{\rmfamily}
\def\exercisename{Exercise}
\spnewtheorem{exercise}{Exercise}{\bfseries}{\rmfamily}
\def\lemmaname{Lemma}
\spnewtheorem{lemma}{Lemma}{\bfseries}{\itshape}
\def\notename{Note}
\spnewtheorem{note}{Note}{\itshape}{\rmfamily}

lib/LaTeXML/Package/sv_support.sty.ltxml  view on Meta::CPAN

188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
RawTeX(<<'EOTeX');
\def\theoremname{Theorem}
\spnewtheorem{theorem}{Theorem}[section]{\bfseries}{\itshape}
\def\claimname{Claim}
\spnewtheorem*{claim}{Claim}{\itshape}{\rmfamily}
\def\proofname{Proof}
\spnewtheorem*{proof}{Proof}{\itshape}{\rmfamily}
\spnewtheorem{case}{Case}{\itshape}{\rmfamily}
\def\conjecturename{Conjecture}
\spnewtheorem{conjecture}{Conjecture}{\itshape}{\rmfamily}
\def\corollaryname{Corollary}
\spnewtheorem{corollary}{Corollary}{\bfseries}{\itshape}
\def\definitionname{Definition}
\spnewtheorem{definition}{Definition}{\bfseries}{\rmfamily}
\def\examplename{Example}
\spnewtheorem{example}{Example}{\itshape}{\rmfamily}
\def\exercisename{Exercise}
\spnewtheorem{exercise}{Exercise}{\bfseries}{\rmfamily}
\def\lemmaname{Lemma}
\spnewtheorem{lemma}{Lemma}{\bfseries}{\itshape}
\def\notename{Note}
\spnewtheorem{note}{Note}{\itshape}{\rmfamily}

lib/LaTeXML/Package/tcilatex.tex.ltxml  view on Meta::CPAN

616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
        \fi                
          \fi}
 
\newif\ifGreekBold  \GreekBoldfalse
\let\SAVEPBF=\pbf
\def\pbf{\GreekBoldtrue\SAVEPBF}%
%
 
\@ifundefined{theorem}{\newtheorem{theorem}{Theorem}}{}
\@ifundefined{lemma}{\newtheorem{lemma}[theorem]{Lemma}}{}
\@ifundefined{corollary}{\newtheorem{corollary}[theorem]{Corollary}}{}
\@ifundefined{conjecture}{\newtheorem{conjecture}[theorem]{Conjecture}}{}
\@ifundefined{proposition}{\newtheorem{proposition}[theorem]{Proposition}}{}
\@ifundefined{axiom}{\newtheorem{axiom}{Axiom}}{}
\@ifundefined{remark}{\newtheorem{remark}{Remark}}{}
\@ifundefined{example}{\newtheorem{example}{Example}}{}
\@ifundefined{exercise}{\newtheorem{exercise}{Exercise}}{}
\@ifundefined{definition}{\newtheorem{definition}{Definition}}{}
 
 
\@ifundefined{mathletters}{%

t/daemon/amsarticle.tex  view on Meta::CPAN

3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
 
\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{xca}[theorem]{Exercise}
 
\theoremstyle{remark}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{corollary}{Corollary}
\newtheorem*{corollary*}{Corollary}
 
\numberwithin{equation}{section}
 
\begin{document}
\title{Sample amsart}
\author{Joe Blow}
\address{Somewhere, USA}
\curraddr{same as above}
\email{joe@blow}
\thanks{My Mommy.}

t/daemon/amsarticle.tex  view on Meta::CPAN

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
  a_{12} &= b_{12} \\
a_{21} &= b_{21} &
  a_{22} &= b_{22}+c_{22}
\end{align}
 
Some \text{text}
\begin{equation}
a = \text{something}
\end{equation}
 
\begin{corollary}
 Whatever!
\end{corollary}
\begin{corollary*}
And whatever.
\end{corollary*}
 
\begin{flalign*}
a_{11} &= b_{11} &
  a_{12} &= b_{12} \\
a_{21} &= b_{21} &
  a_{22} &= b_{22}+c_{22}
\end{flalign*}
 
 
\subsection{A subsection}

t/daemon/formats/jats.xml  view on Meta::CPAN

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
<p>Some text</p>
<disp-formula id="S2.E10">
  <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="S2.E10.m1" alttext="a=\text{something}" display="block">
    <mml:mrow>
      <mml:mi>a</mml:mi>
      <mml:mo>=</mml:mo>
      <mml:mtext>something</mml:mtext>
    </mml:mrow>
  </mml:math>
</disp-formula>
<statement id="Thmcorollary1">
  <title>
    <italic>Corollary 1</italic>
    <italic>.</italic>
  </title>
  <p id="Thmcorollary1.p1">Whatever!</p>
</statement>
<statement id="Thmcorollaryx1">
  <title>
    <italic>Corollary</italic>
    <italic>.</italic>
  </title>
  <p id="Thmcorollaryx1.p1">And whatever.</p>
</statement>
<disp-formula-group id="S3.EGx4">
  <disp-formula-group id="S2.Ex2">
    <disp-formula>
      <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="S2.Ex2.m5" alttext="\displaystyle a_{11}=b_{11}" display="inline">
        <mml:mrow>
          <mml:msub>
            <mml:mi>a</mml:mi>
            <mml:mn>11</mml:mn>
          </mml:msub>

t/daemon/formats/tei.xml  view on Meta::CPAN

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
  <formula notation="mathml" xml:id="S2.E10">
    <m:math xmlns:m="http://www.w3.org/1998/Math/MathML" alttext="a=\text{something}" display="block">
      <m:mrow>
        <m:mi>a</m:mi>
        <m:mo>=</m:mo>
        <m:mtext>something</m:mtext>
      </m:mrow>
    </m:math>
  </formula>
</p>
<note xml:id="Thmcorollary1">
  <title>
    <hi rend="italic">.</hi>
  </title>
  <p xml:id="Thmcorollary1.p1">Whatever!</p>
</note>
<note xml:id="Thmcorollaryx1">
  <title>
    <hi rend="italic">.</hi>
  </title>
  <p xml:id="Thmcorollaryx1.p1">And whatever.</p>
</note>
<p xml:id="S3.EGx4">
  <formula notation="mathml" xml:id="S2.Ex2">
    <m:math xmlns:m="http://www.w3.org/1998/Math/MathML" alttext="\displaystyle a_{11}=b_{11}" display="inline">
      <m:mrow>
        <m:msub>
          <m:mi>a</m:mi>
          <m:mn>11</m:mn>
        </m:msub>
        <m:mo>=</m:mo>

t/structure/amsarticle.tex  view on Meta::CPAN

3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
 
\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{xca}[theorem]{Exercise}
 
\theoremstyle{remark}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{corollary}{Corollary}
\newtheorem*{corollary*}{Corollary}
 
\numberwithin{equation}{section}
 
\begin{document}
\title{Sample amsart}
\author{Joe Blow}
\address{Somewhere, USA}
\curraddr{same as above}
\email{joe@blow}
\thanks{My Mommy.}

t/structure/amsarticle.tex  view on Meta::CPAN

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
  a_{12} &= b_{12} \\
a_{21} &= b_{21} &
  a_{22} &= b_{22}+c_{22}
\end{align}
 
Some \text{text}
\begin{equation}
a = \text{something}
\end{equation}
 
\begin{corollary}
 Whatever!
\end{corollary}
\begin{corollary*}
And whatever.
\end{corollary*}
 
\begin{flalign*}
a_{11} &= b_{11} &
  a_{12} &= b_{12} \\
a_{21} &= b_{21} &
  a_{22} &= b_{22}+c_{22}
\end{flalign*}
 
 
\subsection{A subsection}

t/structure/amsarticle.xml  view on Meta::CPAN

942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
      <XMath>
        <XMApp>
          <XMTok meaning="equals" role="RELOP">=</XMTok>
          <XMTok font="italic" role="UNKNOWN">a</XMTok>
          <XMText>something</XMText>
        </XMApp>
      </XMath>
    </Math>
  </equation>
</para>
<theorem class="ltx_theorem_corollary" inlist="thm theorem:corollary" xml:id="Thmcorollary1">
  <tags>
    <tag>Corollary 1</tag>
    <tag role="refnum">1</tag>
    <tag role="typerefnum">Corollary 1</tag>
  </tags>
  <title class="ltx_runin"><tag><text font="italic">Corollary 1</text></tag><text font="italic">.</text></title>
  <para xml:id="Thmcorollary1.p1">
    <p>Whatever!</p>
  </para>
</theorem>
<theorem class="ltx_theorem_corollary" inlist="thm theorem:corollary*" xml:id="Thmcorollaryx1">
  <tags>
    <tag>Corollary</tag>
    <tag role="typerefnum">Corollary</tag>
  </tags>
  <title class="ltx_runin"><tag><text font="italic">Corollary</text></tag><text font="italic">.</text></title>
  <para xml:id="Thmcorollaryx1.p1">
    <p>And whatever.</p>
  </para>
</theorem>
<para xml:id="S2.p11">
  <equationgroup class="ltx_eqn_align" xml:id="S3.EGx4">
    <equation xml:id="S2.Ex2">
      <MathFork>
        <Math tex="\displaystyle a_{11}=b_{11}" text="a _ 11 = b _ 11" xml:id="S2.Ex2.m5">
          <XMath>
            <XMApp>

t/theorem/ntheorem.tex  view on Meta::CPAN

135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
\int_{\gamma} f(z)\, dz := \int_a^b f(\gamma (t)) \gamma'(t) \, dt
\end{equation}
\begin{itemize}
\item you've seen, how it works for text and
\item math environments,
\item and it works for lists.
\end{itemize}
\end{Definition}
 
\begin{Corollary}[Q.E.D.]
And here is a trivial corollary, which is ended by
\qedsymbol{q.e.d}\qed
\end{Corollary}
 
\begin{Example}
\[ f^{(n)}(z) =
   \frac{n!}{2\pi i} \int \limits _{\partial D}
            \frac{f(\zeta)}{(\zeta-z)^{n+1}} d\zeta \]
If there is some text after an environment, the endmark is put
after the text.
\end{Example}

t/theorem/ntheorem.tex  view on Meta::CPAN

163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
\end{Example}
 
There must be no empty line in the input before the end
(since then, the end mark is ignored) \\
\begin{Theorem}\label{ex-empty-line}
some text ... but no end mark
 
\end{Theorem}
 
 
Now, there is a corollary which should appear with a different
name in the list of corollaries:
\begin{Corollary*}[title in text]\label{otherlabel}\ignorespaces
let's do something weird:
\begin{center}
   It also works in the \\
   center \\
   environment. 
\end{center}
\end{Corollary*}
\addtheoremline{Corollary}{title in list}

t/theorem/ntheorem.xml  view on Meta::CPAN

1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
      </para>
    </theorem>
    <theorem class="ltx_theorem_Corollary" inlist="thm theorem:Corollary" xml:id="ThmTheorem2">
      <tags>
        <tag>2 Corollary</tag>
        <tag role="refnum">2</tag>
        <tag role="typerefnum">Corollary 2</tag>
      </tags>
      <title><tag><text font="bold">2 Corollary</text></tag><text font="bold"> (Q.E.D.):</text></title>
      <para xml:id="ThmTheorem2.p1">
        <p><text font="slanted">And here is a trivial corollary, which is ended by
<text class="ltx_align_floatright">q.e.d</text><text class="ltx_align_floatright"><Math mode="inline" tex="\spadesuit" text="spadesuit" xml:id="ThmTheorem2.p1.m1">
                <XMath>
                  <XMTok font="upright" name="spadesuit" role="UNKNOWN">â™ </XMTok>
                </XMath>
              </Math></text></text></p>
      </para>
    </theorem>
    <theorem class="ltx_theorem_Example" inlist="thm theorem:Example" xml:id="ThmExample3">
      <tags>
        <tag>3 Example</tag>

t/theorem/ntheorem.xml  view on Meta::CPAN

1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
      </para>
      <para xml:id="ThmTheorem3.p2">
        <p><text class="ltx_align_floatright" font="slanted"><Math mode="inline" tex="\diamondsuit" text="diamondsuit" xml:id="ThmTheorem3.p2.m1">
              <XMath>
                <XMTok font="upright" name="diamondsuit" role="UNKNOWN">♢</XMTok>
              </XMath>
            </Math></text></p>
      </para>
    </theorem>
    <para xml:id="S1.p5">
      <p>Now, there is a corollary which should appear with a different
name in the list of corollaries:</p>
    </para>
    <theorem class="ltx_theorem_Corollary" inlist="thm theorem:Corollary*" labels="LABEL:otherlabel" xml:id="ThmTheorem4">
      <tags>
        <tag>4 Corollary</tag>
        <tag role="refnum">4</tag>
        <tag role="typerefnum">Corollary 4</tag>
      </tags>
      <title><tag><text font="bold">4 Corollary</text></tag><text font="bold"> (title in text):</text></title>
      <para xml:id="ThmTheorem4.p1">
        <p><text font="slanted">let’s do something weird:</text></p>



( run in 0.314 second using v1.01-cache-2.11-cpan-496ff517765 )