'Computer Modern' ain't
'Computer Modern' ain't
Posted Sep 18, 2015 8:15 UTC (Fri) by eru (subscriber, #2753)In reply to: 'Computer Modern' ain't by dskoll
Parent article: What's new in TeX, part 1
\usepackage{times} is a good solution. I also like to use \usepackage{mathptmx} so that equations are set in Times-Roman rather than Computer Modern.
Using these also results in far smaller PDF:s, because embedded fonts are not needed so much.
Posted Sep 18, 2015 10:56 UTC (Fri)
by jnareb (subscriber, #46500)
[Link]
'Computer Modern' ain't
Actually the new way is (supposedly) to use
\usepackage{times} is a good solution. I also like to use \usepackage{mathptmx} so that equations are set in Times-Roman rather than Computer Modern.
Using these also results in far smaller PDFs, because embedded fonts are not needed so much.
% New TX (URW Nimbus Roman) - nie ma zainstalowanego
\usepackage{newtxtext} % roman text font provided by a Times clone
\usepackage{newtxmath} % math italic letters from a Times Italic clone
There is also the problem of creating a PDF in such way that copy'n'paste works correctly even in the presence of characters outside US-ASCII set, in UTF-8 encoding, and ligatures. This is not the problem for LuaLaTeX and XeLaTeX; for pdfLaTeX I ended up using:
\usepackage{tgtermes} % use TeX Gyre Termes, a font family that extends URW Nimbus Roman
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} % write document using UTF-8 encoding
\input glyphtounicode
\pdfgentounicode=1
Which is admittedly not very newbie-friendly...