[texhax] highly condensed font in a figure

Neal H. Walfield neal at walfield.org
Mon Mar 14 17:21:29 CET 2016


Hi,

I need to display a short code listing in a paper that I'm working on.
Since I don't have much space, I figured I'd try to use a highly
condensed font.  I found the following question on stack exchange,
which looked promising:

  https://tex.stackexchange.com/questions/47489/looking-for-monospaced-condensed-font

Unfortunately, it doesn't work for me in a figure (MWE follows).  I
have no idea why and my search engine foo has failed me.  Any ideas?

Thanks in advance!

:) Neal

\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{lipsum}

\begin{document}
\ttfamily\lipsum[1]

{\small\fontseries{lc}\selectfont
\lipsum[1]}

\begin{figure}
{\small\fontseries{lc}\selectfont
  \lipsum[1]}
\caption{Figure}
\end{figure}

\end{document}


More information about the texhax mailing list