mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Load the package breakurl with hyperref in DVI output (fix bug 7033).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36860 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d79902fe7d
commit
0f2cfd957e
@ -251,6 +251,7 @@
|
||||
\TestPackage{bm}
|
||||
\TestPackage{booktabs}
|
||||
\TestPackage{braille}
|
||||
\TestPackage{breakurl}
|
||||
\TestPackage{CJKutf8}
|
||||
\TestPackage{color} % this one should be there if graphics.sty is there.
|
||||
\TestPackage{covington}
|
||||
|
@ -4458,6 +4458,35 @@ bibtopic
|
||||
is used to split BibTeX created bibliographies into sections.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsection
|
||||
breakurl
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
Found:
|
||||
\begin_inset Info
|
||||
type "package"
|
||||
arg "breakurl"
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
CTAN:
|
||||
\family typewriter
|
||||
macros/latex/contrib/breakurl/
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
Notes: The package
|
||||
\family sans
|
||||
breakurl
|
||||
\family default
|
||||
assures that url's are correctly broken at the end of lines with DVI output
|
||||
when hyperref is used.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsection
|
||||
CJKutf8
|
||||
\end_layout
|
||||
|
@ -1789,6 +1789,10 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
|
||||
texrow.newlines(lines);
|
||||
// set back for the rest
|
||||
lyxpreamble.clear();
|
||||
// correctly break URLs with hyperref and dvi output
|
||||
if (features.runparams().flavor == OutputParams::LATEX
|
||||
&& features.isAvailable("breakurl"))
|
||||
lyxpreamble += "\\usepackage{breakurl}\n";
|
||||
} else if (features.isRequired("nameref"))
|
||||
// hyperref loads this automatically
|
||||
lyxpreamble += "\\usepackage{nameref}\n";
|
||||
|
Loading…
Reference in New Issue
Block a user