| 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>Chapter 5. FAQ</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="index.html" title="DocBook to LaTeX Publishing" /><link rel="prev" href="ch04s08.html" title="Customization Precedence" /><link rel="next" href="sec-thanks.html" title="Chapter 6. Thanks" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 5. FAQ</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch04s08.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="sec-thanks.html">Next</a></td></tr></table><hr /></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="idp2722"></a>Chapter 5. FAQ</h1></div></div></div><p>The purpose of this mini FAQ is to give some tips about how customizing or |
| 3 |
tweaking the PDF output.</p><div class="simplesect"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idp2725"></a>My images are too big. What can I do?</h2></div></div></div><p>When an image is included via <code class="sgmltag-element">imagedata</code> with no |
| 4 |
scaling attributes (e.g, width, height, contentwidth) it is its |
| 5 |
natural size that is used.</p><p>One can change individually the size of an <code class="sgmltag-element">imagedata</code> |
| 6 |
by defining its attributes (see [<a class="citation" href="bi01.html#idp115"><span class="citation">TDG</span></a>] for more details). One can |
| 7 |
also use the parameter imagedata.default.scale to apply a |
| 8 |
systematic scaling rule on every image that has no explicit attribute. |
| 9 |
</p><p>The parameter imagedata.default.scale can take:</p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p>The default predefined value "pagebound": the image natural size is used, |
| 10 |
up to the page boundaries. That is, if an image natural width is greater than the |
| 11 |
page width its size is proportionally reduced |
| 12 |
so that it is contained in the page. The same control is done for height.</p></li><li class="listitem"><p>Any combination of valid \includegraphics options. For example |
| 13 |
</p><div class="variablelist"><dl class="variablelist"><dt><span class="term">imagedata.default.scale=scale=40%</span></dt><dd><p>The scale 40% is applied on the images.</p></dd><dt><span class="term">imagedata.default.scale=width=40%,height=3in</span></dt><dd><p>This example is weird but shows that several options can be used. In this |
| 14 |
case the image width is 40% of the page width, and the height is fixed to 3 |
| 15 |
inches. The risk to have an anamorphous result is very high here.</p></dd></dl></div></li></ul></div></div><div class="simplesect"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idp2747"></a>How can I have the PDF fit to height by default?</h2></div></div></div><p>The behaviour of the PDF file when opened by a reader like Acrobat Reader |
| 16 |
can be customized with the parameter latex.hyperparam. See <a class="xref" href="latex.hyperparam.html#sec-hyperparam" title="Description">the section called “Description”</a> for |
| 17 |
more details about this parameter. |
| 18 |
</p><p>To answer precisely to the question, set the parameter with the option |
| 19 |
"pdfstartview=FitV".</p></div><div class="simplesect"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idp2752"></a>How can I have all the PDF hyperlinks in blue color?</h2></div></div></div><p>Same answer than for the previous question.</p><p>For this particular case, set the parameter with the options |
| 20 |
"linktocpage,colorlinks,linkcolor=blue,citecolor=blue,urlcolor=blue".</p></div><div class="simplesect"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idp2756"></a>How can I remove that stupid float rules?</h2></div></div></div><p>If you wonder about this, you propably use the db2latex style. To remove |
| 21 |
the rules, you need to patch the db2latex.sty. You can:</p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p>Simply remove the floatstyle definition for the floats for which you don't want |
| 22 |
the rules.</p></li><li class="listitem"><p>Explicitely use the plain floatstyle. Note that using this explicit style |
| 23 |
does not allow to change the float title position anymore. The plain style |
| 24 |
always put the title at the bottom of the float.</p></li></ul></div></div><div class="simplesect"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idp2764"></a>My long tables don't split in several pages. Why?</h2></div></div></div><p>A formal table (<code class="sgmltag-element">table</code> element) is put in a float, so |
| 25 |
that it can have a numbered caption and placed by tex at the best place. The |
| 26 |
limitation is that a float cannot split over several pages.</p><p>For long tables that need to split, use <code class="sgmltag-element">informaltable</code> |
| 27 |
instead.</p></div><div class="simplesect"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idp2770"></a>I cannot put a table in an example.</h2></div></div></div><p>A formal table (<code class="sgmltag-element">table</code> element) is put in a float, and |
| 28 |
cannot be put in another float like an example. You can use an <code class="sgmltag-element">informaltable</code> instead.</p></div><div class="simplesect"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idp2775"></a>I cannot compile my cyrillic document. Why?</h2></div></div></div><p>A document using some characters different from the roman alphabet may face some troubles, because latex natively handles only latin1 encoding.</p><p>Try the different unicode supports provided by dblatex: |
| 29 |
|
| 30 |
</p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p>Use the XeTeX backend, a new tex engine that natively supports Unicode |
| 31 |
characters: <code class="literal">dblatex -b xetex file.xml</code>.</p></li><li class="listitem"><p>Ask for using the latex unicode support by setting the <em class="parameter"><code>latex.encoding</code></em>=utf8 parameter: <code class="literal">dblatex -P latex.encoding=utf8 file.xml</code>.</p></li><li class="listitem"><p>Use the Passivetex extensions by setting the <em class="parameter"><code>latex.unicode.use</code></em>=1 parameter: <code class="literal">dblatex -P latex.unicode.use=1 file.xml</code>.</p></li></ul></div><p> |
| 32 |
|
| 33 |
</p><p>See <a class="xref" href="ch03s16.html#sec-doc-encode" title="Document Encoding">the section called “Document Encoding”</a> for more details.</p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch04s08.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="sec-thanks.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Customization Precedence </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 6. Thanks</td></tr></table></div></body></html> |