Re: [oll-user] lilyglyphs and hyperref
Resources for LilyPond and LaTeX users writing (about) music
Status: Alpha
Brought to you by:
u-li-1973
From: Urs L. <ul...@op...> - 2014-02-05 11:50:32
|
Hi NickS, thanks for the report. For now I don't have any idea what the reason may be or how to fix it, but I have added it to the issue tracker: https://github.com/openlilylib/lilyglyphs/issues/87 Note that using lualatex produces correct output. Best Urs Am 04.02.2014 22:01, schrieb NickS: > I've just started using lilyglyphs and I've noticed it interacts with the "hyperref" package to produce very large bounding boxes around section titles in the table of contents. This can be seen in the PDF generated by running xelatex on the following code: > > \documentclass{article} > % for lilyglyphs > \usepackage{fontspec} > \usepackage{lilyglyphs} > % for use without lilyglyphs > % \newcommand{\doublesharp}{$\sharp\sharp$} > % \newcommand{\flatflat}{$\flat\flat$} > % for hyperlinks > \usepackage{hyperref} > \author{Author} > \title{Title} > \begin{document} > \maketitle > \tableofcontents > \section{\texorpdfstring{The B\doublesharp}{\ref{The Bdoublesharp} The B++}} > This is the B\doublesharp. > \section{\texorpdfstring{The C\flatflat}{\ref{The Cdoubleflat} The C--}} > This is the C\flatflat. > \end{document} > > By comparison, if you comment out the two "usepackage" lines (for fontspec and lilyglyphs) and uncomment the two "newcommand" lines (for doublesharp and flatflat), the resulting PDF has normal bounding boxes (but of course not proper accidentals). > > In any case the PDF bookmark names don't like any accidentals (hence I use the "++" and "--" in the 2nd parameter of \texorpdfstring ), but it would be great if the lilyglyph symbols could be displayed in the table of contents without the very tall bounding boxes. |