Hyperref & height around links with Latin Modern

4 views
Skip to first unread message

MacFreek

unread,
Jan 11, 2009, 11:26:10 AM1/11/09
to
Hello all,

I have a hyperref-related question.

I'm using xetex 0.999.7 and I recently switched from the Computer
Modern to Latin Modern font, and noticed that borders around links, as
created by hyperref, are higher then they were for Computer Modern.
This looks bad.

Is there a method to decrease the height of the box around links?

As I can't easily post attachments to a newsgroup, you can find it
here:
http://tug.org/pipermail/xetex/attachments/20090111/340d66ef/attachment.png
In addition, below is a minimal example of my TeX file.

Regards,
Freek Dijkstra


%!TEX TS-program = xelatex
\documentclass{article}

\usepackage{fontspec}
\usepackage[dvipdfmx,colorlinks=false]{hyperref}

\begin{document}


\setmainfont{Latin Modern Roman}
\setsansfont{Latin Modern Sans}
\setmonofont{Latin Modern Mono Light}

\section{Latin Modern}
\label{sec:latin_modern}

This is section~\ref{sec:latin_modern}.

Link: \href{http://www.example.com/}{http://www.example.com/}


\setmainfont{CMU Serif} % Computer Modern Unicode
\setsansfont{CMU Sans Serif} % Computer Modern Unicode
\setmonofont{CMU Typewriter Text} % Computer Modern Unicode

\section{Computer Modern}
\label{sec:computer_modern}

This is section~\ref{sec:computer_modern}.

Link: \href{http://www.example.com/}{http://www.example.com/}

\end{document}

Reply all
Reply to author
Forward
0 new messages