I was reading this question and I was wondering whether there is any package in LaTeX compatible with PDFtex that returns the name of the font, not the family font as an alphanumeric string. What comes to mind is using this list here or the documentation for fontname
on texdoc; however, I haven't been able to find a command that does what I want. The reason is that I'm teaching an introductory course to LaTeX and I have this font comparison file:
\documentclass[12pt]{article}
\usepackage{ae}
\usepackage[T1]{fontenc}
\usepackage{lipsum}
\usepackage[margin=1.7cm]{geometry}
\usepackage{pgffor}
\newlength{\la}
\setlength{\la}{0.21\textwidth}
\begin{document}
%%%%%%%%%%%%%%%%%
\noindent
\foreach \fuent in {ppl,qbk,ptm,qzc,put,pbk,bch,BaskervilleF-TLF}
{
\begin{minipage}{\la}
{\fontfamily{\fuent}\selectfont\par
\fbox{\fontname\font} \\
\lipsum[1][1-5]
}
\end{minipage}\hfill
}
\end{document}
This is going to be analysed at some point during the course, but first I just want to print the output PDF and distribute it, with the font names at the top of each column.
Does this exist? Is it necessary to dwell into the nuts and bolts of @s and \relax
for this? Thanks in advance!
ae
because otherwise the Trajan font won't compile.ae
, this font doesn't appear; I get an error line in the log file saying the trjn family doesn't exist.