Debian Codegraph @

docs/xhtml/manual/literal.environment.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>literal.environment</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="apas15.html" title="Miscellaneous" /><link rel="prev" href="literal.role.html" title="literal.role" /><link rel="next" href="literal.extensions.html" title="literal.extensions" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">literal.environment</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="literal.role.html">Prev</a> </td><th width="60%" align="center">Miscellaneous</th><td width="20%" align="right"> <a accesskey="n" href="literal.extensions.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="literal.environment"></a><div class="titlepage"></div><div class="refnamediv"><h2><span class="refentrytitle">literal.environment</span></h2><p><em class="parameter"><code>literal.environment</code></em> — Latex environment used to format verbatim blocks</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
3 &lt;xsl:param name="literal.environment"&gt;
4 &lt;xsl:choose&gt;
5 &lt;xsl:when test="contains($literal.extensions,'scale')"&gt;
6 &lt;xsl:text&gt;lstcode&lt;/xsl:text&gt;
7 &lt;/xsl:when&gt;
8 &lt;xsl:otherwise&gt;
9 &lt;xsl:text&gt;lstlisting&lt;/xsl:text&gt;
10 &lt;/xsl:otherwise&gt;
11 &lt;/xsl:choose&gt;
12 &lt;/xsl:param&gt;
13 </pre></div><div class="refsection"><a id="idp4584"></a><h2>Description</h2><p>It specifies the Latex environment to use to render a verbatim
14 block.</p><p>Since <span class="command"><strong>dblatex</strong></span> uses the listings package
15 capabilities to
16 handle the DocBook attributes, the specified environment must have the same
17 capabilities if written from scratch, but it is recommended to just extend
18 the listings environment with you own listings extension. See <a class="xref" href="sec-verbatim.html#sec-literal-env" title="Creating a new Verbatim Environment">the section called “Creating a new Verbatim Environment”</a> for more details.</p><p>The specified environment name must starts with
19 <code class="literal">"lst"</code>. Otherwise <span class="command"><strong>dblatex</strong></span> raises an
20 error and exits.</p></div><div class="refsection"><a id="idp4593"></a><h2>See Also</h2><p><em class="parameter"><code>literal.extensions</code></em>.</p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="literal.role.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="apas15.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="literal.extensions.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">literal.role </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> literal.extensions</td></tr></table></div></body></html>