2

I know there are all sorts of commands to change the line height.

But I would like to display it, just like I do with font size \fontname\font\ or \@font. My question is different then this as I don't mind how the baseline is calculated of if it changes during the text.

I'm interested in the default value for the given font size.

\documentclass[10pt,a5paper]{memoir}
\usepackage[T1]{fontenc}        
\usepackage[utf8]{inputenc}     
\usepackage[adobe-utopia]{mathdesign}

\begin{document}
This text is \fontname\font\ or \@font with %\baselineskip
\end{document}
G. Bay
  • 2,047

1 Answers1

6

You may use \the to print a length in pt or package printlen to print it in any unit.

\documentclass[10pt,a5paper]{memoir}
\usepackage[T1]{fontenc}        
\usepackage[utf8]{inputenc}     
\usepackage[adobe-utopia]{mathdesign}
\usepackage{printlen}

\begin{document}
This text is \fontname\font\ with font size \csname f@size\endcsname{}
and \verb|\baselineskip| =~\the\baselineskip =~\uselengthunit{mm}\printlength{\baselineskip}.
\end{document}

enter image description here

For more information about the current font see fntguide, section 2.3.

Schweinebacke
  • 26,336
  • That works like a charm. Thank you. I think what i'm looking for is the Leading, which seems to be \the\baselineskip – G. Bay Jan 11 '17 at 19:08