3

Is this possible to use the font Fira Mono in normal LaTeX, i.e., LaTeX -> dvips -> PS2PDF. I understand it can be used by using XeLaTeX or LuaLaTeX, but I need to use it in dvips format. Please advise....

1
  • Thanks it's working fine...New update for me.....
    – MadyYuvi
    Jun 18, 2020 at 13:41

1 Answer 1

3

Fira Mono has a Type 1 version installed which can be loaded with \usepackage{FiraMono} (see the Font Catalogue page). The font face is a bit larger than the standard Computer Modern, so I added a 0.82 scale factor as well:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[scale=0.82]{FiraMono}
\begin{document}
Here's some code:
\begin{verbatim}
          \def\hello#1{Hello #1!}
    \mshow\hello
    \named\def\hello#[who]{Hello #[who]!}
    \mshow\hello
\end{verbatim}
\end{document}

Built with latex -> dvips -> ps2pdf, gives:

enter image description here

You must log in to answer this question.

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