2

How can I set the length of 1ex? I tried \setlength{1ex}{4.40999pt} but I get errors.

8

1 Answer 1

5

As already mentioned in the comments: ex is a font dependant value and you change it by changing \fontdimen5:

\documentclass[]{scrartcl}
\usepackage[T1]{fontenc}

\begin{document}
a\hspace{1ex}b

\fontdimen5\font=1cm
a\hspace{1ex}b

\fontdimen5\font=2cm
a\hspace{1ex}b

\bfseries 
a\hspace{1ex}b 

\normalfont
a\hspace{1ex}b

\large
a\hspace{1ex}b

\small
a\hspace{1ex}b

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .