After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 687572 - Latex code is wrapped too early
Latex code is wrapped too early
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: build
1.8.2
Other Windows
: Normal major
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2012-11-04 15:25 UTC by Stefan
Modified: 2012-12-28 20:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stefan 2012-11-04 15:25:45 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: &gt; 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: &gt;&gt; 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: &gt;&gt; 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
Comment 1 Dimitri van Heesch 2012-11-06 20:45:22 UTC
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.
Comment 2 Stefan 2012-11-06 21:58:48 UTC
Dimitri,

would you mind wrapping only at white-space, since a command line was wrapped after a slash, which was really disturbing.

--
Stefan
Comment 3 Dimitri van Heesch 2012-12-26 16:09:09 UTC
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.
Comment 4 Stefan 2012-12-28 20:02:54 UTC
Dimitri,

I can confirm that this bug is now fixed.

--
Stefan