Doxygen-produced PDF - change url color? -
i’m using doxygen 1.8.10 (on windows) generate latex files, , miktex 2.9 generate pdf. pdf functional, not pretty. i’ve figured out how customize title page (i added graphics , non-default text) , how images pdf.
but... how change styling things such color of urls (which text in doxygen comments, , doxygen turns them \href items)?
**** believe need change in hyperref package’s config or doxygen writes .tex files, i’m not sure approach right, nor how either one...
i’ve created custom_doxygen.sty file, , assigned latex_extra_stylesheet. assume it’s being picked doxygen because doxygen picking custom latex_header file, in same directory custom_doxygen.sty file. don’t know put custom_doxygen.sty file?
if run default (that is, no latex_extra_stylesheet), following code gets written refman.tex file:
% hyperlinks (required, should loaded last) \usepackage{ifpdf} \ifpdf \usepackage[pdftex,pagebackref=true]{hyperref} \else \usepackage[ps2pdf,pagebackref=true]{hyperref} \fi \hypersetup{% colorlinks=true,% linkcolor=blue,% citecolor=blue,% unicode% }
and need “urlcolor” blue (its default in hyperref package magenta—an odd choice sure).
i tried copying in refman.tex file custom_doxygen.sty file (and making sure custom_doxygen.sty file is assigned latex_extra_stylesheet setting in doxyfile) , adding “urlcolor=blue,%” setup section, there’s no change in output.
if manually edit refman.tex file (that is, add "citecolor=blue,%" \hypersetup) after it's output doxygen, , use edited file input miktex, desired output.
so workaround script desired change , run script every time. better doxygen write necessary configuration. plus, there other things want customize (such font of explicit html hrefs), i'd learn how things properly.
Comments
Post a Comment