GNOME Bugzilla – Bug 687572
Latex code is wrapped too early
Last modified: 2012-12-28 20:02:54 UTC
Thanks for making the width of the contents of a LaTeX generated PDF file wider. There is just one problem, where code fragments are still wrapped at the smaller width of the page used previously. As an example see http://downloads.sourceforge.net/ultradefrag/UltraDefrag_Handbook_5.1.0_a4.pdf The problematic sections are on pages: page 4 ... bottom (introduction => fragmentation level) page 9 ... middle (installation => example command line) page 15 ... bottom (console => example batch script) To correct this I have to add separate code blocks for HTML and LaTeX. Example: * @htmlonly * <div class="fragment"> * <div class="line">@echo off</div> * <div class="line"></div> * <div class="line"><span class="keyword">set</span> UD_EX_FILTER=*system volume information*;*temp*;*tmp*;*recycle*;*.zip;*.7z;*.rar</div> * <div class="line"><span class="keyword">set</span> UD_FILE_SIZE_THRESHOLD=50MB</div> * <div class="line">udefrag c: > c:\ud.log</div> * <div class="line"></div> * <div class="line"><span class="keyword">set</span> UD_IN_FILTER=D:\My Documents\*</div> * <div class="line">udefrag d: >> c:\ud.log</div> * <div class="line"></div> * <div class="line"><span class="keyword">set</span> UD_IN_FILTER=</div> * <div class="line">udefrag e: >> c:\ud.log</div> * </div> * @endhtmlonly * @latexonly * \begin{DoxyCode} * @echo off * * \textcolor{keyword}{set} UD\_EX\_FILTER=*system volume information*;*temp*;*tmp*;*recycle*;*.zip;*.7z;*.rar * \textcolor{keyword}{set} UD\_FILE\_SIZE\_THRESHOLD=50MB * udefrag c: > c:\(\backslash\)ud.log * * \textcolor{keyword}{set} UD\_IN\_FILTER=D:\(\backslash\)My Documents\(\backslash\)* * udefrag d: >> c:\(\backslash\)ud.log * * \textcolor{keyword}{set} UD\_IN\_FILTER= * udefrag e: >> c:\(\backslash\)ud.log * \end{DoxyCode} * @endlatexonly Is there a possibility to allow LaTeX to do the wrapping? Thanks in advance, Stefan
As it is a verbatim section I don't think LaTeX will do the wrapping for me, but it wrap limit is indeed set too low. Should be fixed in the next subversion update.
Dimitri, would you mind wrapping only at white-space, since a command line was wrapped after a slash, which was really disturbing. -- Stefan
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.8.3. Please verify if this is indeed the case. Reopen the bug if you think it is not fixed and please include any additional information that you think can be relevant.
Dimitri, I can confirm that this bug is now fixed. -- Stefan