Debian Codegraph @

docs/xhtml/manual/pi-latex.html

raw
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>latex</title><link rel="stylesheet" type="text/css" href="manual.css" /><meta name="generator" content="DocBook XSL Stylesheets V1.79.1" /><link rel="home" href="index.html" title="DocBook to LaTeX Publishing" /><link rel="up" href="apbs02.html" title="LaTeX" /><link rel="prev" href="apbs02.html" title="LaTeX" /><link rel="next" href="apbs03.html" title="Miscellaneous" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">latex</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="apbs02.html">Prev</a> </td><th width="60%" align="center">LaTeX</th><td width="20%" align="right"> <a accesskey="n" href="apbs03.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="pi-latex"></a><div class="titlepage"></div><div class="refnamediv"><h2><span class="refentrytitle">latex</span></h2><p><code class="sgmltag-xmlpi">&lt;?latex?&gt;</code>, <code class="sgmltag-xmlpi">&lt;?db2latex?&gt;</code> — Insert Arbitrary text into the LaTeX file</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">&lt;?latex <em class="replaceable"><code>content</code></em> ?&gt;</pre></div><div class="refsection"><a id="idp5633"></a><h2>Description</h2><p>These Processing Instructions are unusual in that they have no
3 <span class="quote">“<span class="quote">attribute</span>”</span>. Instead, the
4 <em class="replaceable"><code>content</code></em> is put directly into the
5 generated LaTeX document.</p><p>The <code class="sgmltag-xmlpi">&lt;?db2latex?&gt;</code> PI is deprecated
6 and should not be used anymore. It was provided for backward
7 compatibility. Use the <code class="sgmltag-xmlpi">&lt;?latex?&gt;</code> PI
8 instead.</p><p>This can provide the ultimate in customization, but can be
9 very dangerous since it breaks the abstractions provided by
10 dblatex.</p><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>These Processing Instructions can be used
11 to inject arbitrary LaTeX into the output stream. Please check if a
12 safer customization method can be used instead. See the other
13 <a class="link" href="sec-custom.html" title="Chapter 4. Customization">customization methods</a>.</p><p>While it is pretty clear that insertion of certain sorts
14 of LaTeX text, at some points within the document, will always
15 be expected to work, there is no guarantee that
16 <span class="emphasis"><em>any</em></span> inserted LaTeX will continue to work in
17 the future with newer versions of dblatex or its underlying
18 software stack.</p><p>Inserting LaTeX into <code class="code">CDATA</code>, i.e. in places
19 where document text appears, is likely to be more robust than
20 inserting LaTeX elsewhere. But again, no guarantees are
21 made.</p></div><p>Care must be taken with whitespace. Leading and trailing
22 spaces matter within the processing instruction. The
23 <em class="replaceable"><code>content</code></em> consists of everything
24 following the first space and before the closing
25 <code class="literal">?&gt;</code>. Further care must be taken with any
26 whitespace which follows the processing instruction -- the TeX
27 tokenization scan may consume whitespace which follows the
28 processing instruction. One possible solution when this happens
29 is to end your <em class="replaceable"><code>content</code></em> with the
30 <code class="literal">\</code> character.</p><p>The <code class="sgmltag-xmlpi">&lt;?latex?&gt;</code> Processing Instruction
31 takes special steps to work in verbatim blocks,
32 <code class="sgmltag-element">screen</code>, <code class="sgmltag-element">programlisting</code>, and
33 <code class="sgmltag-element">literallayout</code> elements, while
34 <code class="sgmltag-xmlpi">&lt;?db2latex?&gt;</code> is directly written as is.</p></div><div class="refsection"><a id="sec-safe-latex"></a><h2>Safe LaTeX Insertions</h2><p>Although the <span class="package">latex</span> processing instruction
35 can be dangerous there are a few <span class="package">latex</span>
36 <em class="parameter"><code>content</code></em> values that are safe to use within
37 <code class="code">CDATA</code> words, within the words of the actual text of
38 your document. The following <em class="parameter"><code>content</code></em>
39 values provide LaTeX with information it can use to improve your
40 document's formatting:</p><div class="variablelist"><dl class="variablelist"><dt><a id="latex_softhyphen"></a><span class="term"><code class="literal">\-</code></span></dt><dd><p>Soft hyphen. A backslash followed by a dash indicates
41 a soft hyphen. LaTeX may or may not break the line and
42 hyphenate at this point. Useful when over-long variable
43 names and similar fail to hyphenate and thereby cause lines
44 to exceed their normal lengths.</p><p>Once a soft hyphen is inserted into a word the
45 insertion point becomes the only place at which hyphenation
46 is permitted in that occurrence of the word.</p></dd><dt><a id="latex_no-kern"></a><span class="term"><code class="literal">{}</code></span></dt><dd><p>Do not kern (join together) characters. An empty pair
47 of curly braces placed between two characters indicates that
48 the characters should not be joined together. Depending on
49 the font and the characters, some pairs of characters may be
50 joined together. E.g. a pair of lower-case
51 <code class="literal">f</code> characters may be have a their
52 crossbars joined. This may not be desirable, as when each
53 of the characters is a component of a separate word within a
54 larger compound word. Placing this PI between the
55 characters which are to remain separated prevents the two
56 characters from kerning.</p></dd><dt><a id="latex_no-kern-really"></a><span class="term"><code class="literal">{\kern0pt}</code></span></dt><dd><p>Really, do not kern (join together) characters. A
57 stronger version of <code class="literal">{}</code>.</p></dd><dt><a id="latex_end-of-sentence"></a><span class="term"><code class="literal">\@</code></span></dt><dd><p>A backslash followed by the at sign, when placed after
58 a capital letter and before a period, indicates that the
59 period is the end of a sentence. Periods following capital
60 letters do not otherwise end sentences and sentences may be
61 used by LaTeX when determining layout.</p></dd></dl></div></div><div class="refsection"><a id="idp5692"></a><h2>Context</h2><p>Recognized in all elements.</p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="apbs02.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="apbs02.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="apbs03.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">LaTeX </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Miscellaneous</td></tr></table></div></body></html>