'Computer Modern' ain't
'Computer Modern' ain't
Posted Sep 18, 2015 10:56 UTC (Fri) by jnareb (subscriber, #46500)In reply to: 'Computer Modern' ain't by eru
Parent article: What's new in TeX, part 1
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 cloneThere 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=1Which is admittedly not very newbie-friendly...