Blob Blame History Raw
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!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.76.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" title="literal.environment"><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" title="Synopsis"><h2>Synopsis</h2><pre class="programlisting">
      &lt;xsl:param name="literal.environment"&gt;
  &lt;xsl:choose&gt;
  &lt;xsl:when test="contains($literal.extensions,'scale')"&gt;
    &lt;xsl:text&gt;lstcode&lt;/xsl:text&gt;
  &lt;/xsl:when&gt;
  &lt;xsl:otherwise&gt;
    &lt;xsl:text&gt;lstlisting&lt;/xsl:text&gt;
  &lt;/xsl:otherwise&gt;
  &lt;/xsl:choose&gt;
&lt;/xsl:param&gt;
</pre></div><div class="refsection" title="Description"><a id="idp729072"></a><h2>Description</h2><p>It specifies the Latex environment to use to render a verbatim
    block.</p><p>Since <span class="command"><strong>dblatex</strong></span> uses the listings package 
    capabilities to
    handle the DocBook attributes, the specified environment must have the same
    capabilities if written from scratch, but it is recommended to just extend
    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
    <code class="literal">"lst"</code>. Otherwise <span class="command"><strong>dblatex</strong></span> raises an
    error and exits.</p></div><div class="refsection" title="See Also"><a id="idp3345248"></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>