LaTeXML

 view release on metacpan or  search on metacpan

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

                      <XMWrap>
                        <XMTok role="OPEN" stretchy="false">(</XMTok>
                        <XMTok font="italic" role="UNKNOWN" xml:id="S1.E4.m1.3">t</XMTok>
                        <XMTok role="CLOSE" rpadding="1.7pt" stretchy="false">)</XMTok>
                      </XMWrap>
                    </XMDual>
                    <XMApp>
                      <XMTok font="italic" meaning="differential-d" role="DIFFOP">d</XMTok>
                      <XMTok font="italic" role="UNKNOWN">t</XMTok>
                    </XMApp>
                  </XMApp>
                </XMApp>
              </XMApp>
            </XMath>
          </Math>
        </equation>
        <itemize xml:id="S1.I1">
          <item xml:id="S1.I1.i1">
            <tags>
              <tag>•</tag>
              <tag role="typerefnum">1st item</tag>
            </tags>
            <para xml:id="S1.I1.i1.p1">
              <p><text font="italic">you’ve seen, how it works for text and</text></p>
            </para>
          </item>
          <item xml:id="S1.I1.i2">
            <tags>
              <tag>•</tag>
              <tag role="typerefnum">2nd item</tag>
            </tags>
            <para xml:id="S1.I1.i2.p1">
              <p><text font="italic">math environments,</text></p>
            </para>
          </item>
          <item xml:id="S1.I1.i3">
            <tags>
              <tag>•</tag>
              <tag role="typerefnum">3rd item</tag>
            </tags>
            <para xml:id="S1.I1.i3.p1">
              <p><text font="italic">and it works for lists.</text></p>
            </para>
          </item>
        </itemize>
        <p><text class="ltx_align_floatright" font="italic"><Math mode="inline" tex="\clubsuit" text="clubsuit" xml:id="ThmDefinition1.p1.m1">
              <XMath>
                <XMTok font="upright" name="clubsuit" role="UNKNOWN">♣</XMTok>
              </XMath>
            </Math></text><rule height="1px" width="100%"/></p>
      </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>
        <tag role="refnum">3</tag>
        <tag role="typerefnum">Example 3</tag>
      </tags>
      <title class="ltx_runin"><tag><text font="bold">3 Example</text></tag></title>
      <para xml:id="ThmExample3.p1">
        <equation xml:id="S1.Ex5">
          <Math mode="display" tex="f^{(n)}(z)=\frac{n!}{2\pi i}\int\limits_{\partial D}\frac{f(\zeta)}{(\zeta-z)^%&#10;{n+1}}d\zeta" text="f ^ n * z = (nfactorial / (2 * pi * i)) * (integral _ (partial-differential@(D)))@(((f * zeta) / (zeta - z) ^ ...
            <XMath>
              <XMApp>
                <XMTok meaning="equals" role="RELOP">=</XMTok>
                <XMApp>
                  <XMTok meaning="times" role="MULOP">⁢</XMTok>
                  <XMApp>
                    <XMTok role="SUPERSCRIPTOP" scriptpos="post1"/>
                    <XMTok font="italic" role="UNKNOWN">f</XMTok>
                    <XMDual>
                      <XMRef idref="S1.Ex5.m1.1"/>
                      <XMWrap>
                        <XMTok fontsize="70%" role="OPEN" stretchy="false">(</XMTok>
                        <XMTok font="italic" fontsize="70%" role="UNKNOWN" xml:id="S1.Ex5.m1.1">n</XMTok>
                        <XMTok fontsize="70%" role="CLOSE" stretchy="false">)</XMTok>
                      </XMWrap>
                    </XMDual>
                  </XMApp>
                  <XMDual>
                    <XMRef idref="S1.Ex5.m1.4"/>
                    <XMWrap>
                      <XMTok role="OPEN" stretchy="false">(</XMTok>
                      <XMTok font="italic" role="UNKNOWN" xml:id="S1.Ex5.m1.4">z</XMTok>
                      <XMTok role="CLOSE" stretchy="false">)</XMTok>
                    </XMWrap>
                  </XMDual>
                </XMApp>
                <XMApp>
                  <XMTok meaning="times" role="MULOP">⁢</XMTok>
                  <XMApp>
                    <XMTok mathstyle="display" meaning="divide" role="FRACOP"/>
                    <XMApp>
                      <XMTok meaning="factorial" role="POSTFIX">!</XMTok>
                      <XMTok font="italic" role="UNKNOWN">n</XMTok>
                    </XMApp>
                    <XMApp>
                      <XMTok meaning="times" role="MULOP">⁢</XMTok>
                      <XMTok meaning="2" role="NUMBER">2</XMTok>
                      <XMTok font="italic" name="pi" role="UNKNOWN">Ï€</XMTok>
                      <XMTok font="italic" role="UNKNOWN">i</XMTok>
                    </XMApp>
                  </XMApp>
                  <XMApp>
                    <XMApp>

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

                      </XMApp>
                    </XMApp>
                  </XMApp>
                </XMApp>
              </XMApp>
            </XMath>
          </Math>
        </equation>
        <p>If there is some text after an environment, the endmark is put
after the text.
<text class="ltx_align_floatright"><Math mode="inline" tex="\ast" text="ast" xml:id="ThmExample3.p1.m1">
              <XMath>
                <XMTok name="ast" role="MULOP">∗</XMTok>
              </XMath>
            </Math></text></p>
      </para>
    </theorem>
    <theorem class="ltx_theorem_Example" inlist="thm theorem:Example" xml:id="ThmExample4">
      <tags>
        <tag>4 Example</tag>
        <tag role="refnum">4</tag>
        <tag role="typerefnum">Example 4</tag>
      </tags>
      <title class="ltx_runin"><tag><text font="bold">4 Example</text></tag><text font="bold"> (Using —verbatim—)</text></title>
      <para xml:id="ThmExample4.p1">
        <verbatim font="typewriter">
And, it also works for verbatim
... when the end{verbatim} is in the
same line as the text ends. 
</verbatim>
        <p><text class="ltx_align_floatright"><Math mode="inline" tex="\ast" text="ast" xml:id="ThmExample4.p1.m1">
              <XMath>
                <XMTok name="ast" role="MULOP">∗</XMTok>
              </XMath>
            </Math></text></p>
      </para>
    </theorem>
    <para xml:id="S1.p4">
      <p>There must be no empty line in the input before the end
(since then, the end mark is ignored) <break/></p>
    </para>
    <theorem class="ltx_theorem_Theorem" inlist="thm theorem:Theorem" labels="LABEL:ex-empty-line" xml:id="ThmTheorem3">
      <tags>
        <tag>3 Theorem</tag>
        <tag role="refnum">3</tag>
        <tag role="typerefnum">Theorem 3</tag>
      </tags>
      <title class="ltx_outdent"><tag><text font="bold">3 Theorem</text></tag><text font="bold">:</text></title>
      <para xml:id="ThmTheorem3.p1">
        <p><text font="slanted">some text … but no end mark</text></p>
      </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>
        <p align="center"><text font="slanted">It also works in the</text></p>
        <p align="center"><text font="slanted">center</text></p>
        <p align="center"><text font="slanted">environment.</text></p>
        <p><text class="ltx_align_floatright" font="slanted"><Math mode="inline" tex="\spadesuit" text="spadesuit" xml:id="ThmTheorem4.p1.m1">
              <XMath>
                <XMTok font="upright" name="spadesuit" role="UNKNOWN">â™ </XMTok>
              </XMath>
            </Math></text></p>
      </para>
    </theorem>
    <theorem class="ltx_theorem_Theorem" inlist="thm theorem:Theorem" xml:id="ThmTheorem5">
      <tags>
        <tag>5 Theorem</tag>
        <tag role="refnum">5</tag>
        <tag role="typerefnum">Theorem 5</tag>
      </tags>
      <title class="ltx_outdent"><tag><text font="bold">5 Theorem</text></tag><text font="bold"> (Quote):</text></title>
      <para xml:id="ThmTheorem5.p1">
        <quote>
          <p><text font="slanted">In quote environments, the text is normally indented from left
and right by the same space. The endmark is not indented from the
right margin, i.e., it is typeset to the right margin of the
surrounding text.</text></p>
        </quote>
        <p><text class="ltx_align_floatright" font="slanted"><Math mode="inline" tex="\diamondsuit" text="diamondsuit" xml:id="ThmTheorem5.p1.m1">
              <XMath>
                <XMTok font="upright" name="diamondsuit" role="UNKNOWN">♢</XMTok>
              </XMath>
            </Math></text></p>
      </para>
    </theorem>
    <para xml:id="S1.p6">
      <p>Here is an example for turning off the endmark automatics and
manual handling:</p>
    </para>
    <theorem class="ltx_theorem_Theorem" inlist="thm theorem:Theorem" labels="LABEL:somelabel" xml:id="ThmTheorem6">
      <tags>
        <tag>6 Theorem</tag>
        <tag role="refnum">6</tag>
        <tag role="typerefnum">Theorem 6</tag>
      </tags>
      <title class="ltx_outdent"><tag><text font="bold">6 Theorem</text></tag><text font="bold"> (Manual End Mark):</text></title>
      <para xml:id="ThmTheorem6.p1">
        <p><text font="slanted">a line of text with a manually set endmark  <text class="ltx_align_floatright"><Math mode="inline" tex="\diamondsuit" text="diamondsuit" xml:id="ThmTheorem6.p1.m1">
                <XMath>
                  <XMTok font="upright" name="diamondsuit" role="UNKNOWN">♢</XMTok>
                </XMath>
              </Math></text><break/>some more text, but no automatic endmark set.</text></p>
      </para>
    </theorem>



( run in 1.012 second using v1.01-cache-2.11-cpan-f56aa216473 )