Latexdiff is a Perl script and requires an installation of Perl 5.8 or higher. It definitely reduced my burden of having to read through two files simultaneously where it would be easy to overlook subtle changes like word substitutions and changing numbers or signs in an equation. Latexdiff is an invaluable utility that makes it easy to markup and view changes made to the document. latexdiff was the solution to our problems. We were hoping to find a feature in TeX similar to "Track changes" found in Microsoft Word. It can be hard to keep track of all the changes the contributors make because it's easy to miss a few changed words in text-heavy document. Lately, we have been working on TeX projects that involve a few collaborators. It is reproduced here for the benefit of readers who may be interested to use latexdiff on their own local computing device. This is sufficient to resist to a full updmap session: $ mktexlsr $ update-updmap $ updmap-sysĮventually the content of ttf.map should appear in pdftex.map (aforementioned) as expected.Note: This article was originally published on the ShareLateX blog in February 2013 and describes locally installing and using a Perl script called latexdiff. Then the file /usr/share/texmf/fonts/map/pdftex/updmap/ttf.map should contain:Įcverdana Verdana " T1Encoding ReEncodeFont " The quick brown fox jumps over the lazy dogĬreate a file /etc/texmf/updmap.d/60-ttf.cfg simply containing the line: Map ttf.map If the file is not there, you can find it with $ echo "\\bye" | pdftex story.Įcverdana Verdana " T1Encoding ReEncodeFont " ecverdanab}% Pdftex/pdflatex are configured with a map file that is generally in /var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map. Now you can refresh the texlive cache: $ mktexlsr Updating the font map file Then you can copy all those font metrics in your TeXLive directory: $ mkdir -p /usr/share/texmf/fonts/tfm/ms $ cp ecverdanab.tfm ecverdanai.tfm ecverdana.tfm ecverdanaz.tfm /usr/share/texmf/fonts/tfm/ms $ ttf2afm -e T1-WGL4.enc -o ecverdana.afm verdana.ttf $ ttf2afm -e T1-WGL4.enc -o ecverdanai.afm verdanai.ttf $ ttf2afm -e T1-WGL4.enc -o ecverdanab.afm verdanab.ttf $ ttf2afm -e T1-WGL4.enc -o ecverdanaz.afm verdanaz.ttf Creating TeX font metricsĪfm2tfm converts Adobe font metrics to TeX font metrics $ afm2tfm ecverdana.afm -T T1-WGL4.enc ecverdana.tfm $ afm2tfm ecverdanai.afm -T T1-WGL4.enc ecverdanai.tfm $ afm2tfm ecverdanab.afm -T T1-WGL4.enc ecverdanab.tfm $ afm2tfm ecverdanaz.afm -T T1-WGL4.enc ecverdanaz.tfm Ttf2afm is a utility to generate AFM files for TrueType fonts. It is shipped with the package texlive-font-utils and can be found in /usr/share/texmf/fonts/enc/ttf2pk/base/T1-WGL4.enc. You first have to check that you have the correct encoding file T1-WGL4.enc. For instance, Verdana is available as verdanab.ttf (bold), verdanai.ttf (italic), verdana.ttf (normal), verdanaz.ttf (bold-italic) Installing the fonts files in your Texlive directory $ mkdir -p /usr/share/texmf/fonts/truetype/ms $ cp verdanab.ttf verdanai.ttf verdana.ttf verdanaz.ttf /usr/share/texmf/fonts/truetype/ms Creating the Adobe font metrics files TrueType fonts have different versions (mainly bold, italic, bold-italic). NB: Installing the Microsoft web fonts (Times New Roman, Verdana, Arial, etc.) is done with package ttf-mscorefonts-installer: $ sudo apt-get install ttf-mscorefonts-installer To find the TrueType fonts installed on your machine: $ locate -r "\\.ttf$" This post is largely inspired from "Using TrueType fonts with TeX (LaTeX) and pdfTeX (pdfLaTeX)" Getting the TrueType files Times New Roman, Verdana, Arial or DejaVu).Ĭompared to similar posts, it's not related to miktex, or xetex, but really targets a standard Linux Tex Live distribution. This document presents how to use TrueType fonts with pdftex or pdflatex on Unix/Linux Box (e.g.
0 Comments
Leave a Reply. |