PDF: Do not use lato and inconsolata fonts. Not widely supported.

This commit is contained in:
Chris Johns 2016-11-07 11:18:04 +11:00
parent ea91103855
commit 5a7280afd7
4 changed files with 5 additions and 146 deletions

View File

@ -40,11 +40,9 @@ package_tests = {
'hyperref' : ['\\usepackage{hyperref}'], 'hyperref' : ['\\usepackage{hyperref}'],
'ifplatform' : ['\\usepackage{ifplatform}'], 'ifplatform' : ['\\usepackage{ifplatform}'],
'ifthen' : ['\\usepackage{ifthen}'], 'ifthen' : ['\\usepackage{ifthen}'],
'inconsolata' : ['\\usepackage{inconsolata}'],
'inputenc' : ['\\usepackage{inputenc}'], 'inputenc' : ['\\usepackage{inputenc}'],
'keyval' : ['\\usepackage{keyval}'], 'keyval' : ['\\usepackage{keyval}'],
'kvoptions' : ['\\usepackage{kvoptions}'], 'kvoptions' : ['\\usepackage{kvoptions}'],
'lato' : ['\\usepackage{lato}'],
'lineno' : ['\\usepackage{lineno}'], 'lineno' : ['\\usepackage{lineno}'],
'longtable' : ['\\usepackage{longtable}'], 'longtable' : ['\\usepackage{longtable}'],
'makeidx' : ['\\usepackage{makeidx}'], 'makeidx' : ['\\usepackage{makeidx}'],
@ -72,9 +70,7 @@ hosts = {
'Linux/centos' : { '.*' : ['capt-of.sty', 'Linux/centos' : { '.*' : ['capt-of.sty',
'eqparbox.sty', 'eqparbox.sty',
'environ.sty', 'environ.sty',
'inconsolata.sty',
'ifplatform.sty', 'ifplatform.sty',
'lato.sty',
'trimspaces.sty', 'trimspaces.sty',
'slantsc.sty', 'slantsc.sty',
'upquote.sty'] } 'upquote.sty'] }

View File

@ -1,92 +0,0 @@
% Copyright 2014 Michael Sharpe
% Based initially on Karl Berry's inconsolata.sty.
% You may freely use, modify and/or distribute this file.
\def\fileversion{1.10}
\def\filedate{2016/02/22}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{inconsolata}[\filedate\space v\fileversion]
\message{`inconsolata-zi4' v\fileversion, \filedate\space Text macros for Inconsolata (msharpe)}
\RequirePackage{textcomp}
\RequirePackage{keyval}
\newcount\zifour@ocount
\newif\ifzifour@altzero
\newif\ifzifour@noupq
\define@key{zifour}{scaled}[1.0]{\def\zifour@scaled{s*[#1]}}
\DeclareOption*{%
\begingroup
\edef\x{\endgroup
\noexpand\setkeys{zifour}{\CurrentOption}}%
\x}
% by default, change \tt to mean zi4.
\newcommand*{\zifour@default}{%
\renewcommand*{\ttdefault}{zi4}%
}
% option [nott] to avoid changing tt.
\DeclareOption{nott}{%
\renewcommand*{\zifour@default}{}%
}
% option [noupquote] to prevent loading upquote.
\DeclareOption{noupquote}{%
\zifour@noupqtrue}%
% option var0---use unslashed zero (slashed is default)
\DeclareOption{var0}{%
\zifour@altzerotrue\advance\zifour@ocount \tw@ %
}
\DeclareOption{varl}{%
\advance\zifour@ocount \@ne %
}
\DeclareOption{varqu}{%
\advance\zifour@ocount 4\relax %
}
\ProcessOptions*
\zifour@default
\edef\zifour@opt{\the\zifour@ocount}
\ifzifour@altzero
\advance\zifour@ocount -\tw@
\else
\advance\zifour@ocount \tw@
\fi
\edef\zifour@altopt{\the\zifour@ocount}
% define an \altzero macro which flips to slashed, unslashed
\def\altzero{{\fontfamily{zi4}%
\fontshape{scit}%
\selectfont 0}}
\def\zifour@T@ne@nc{T1}
\def\zifour@OT@ne@nc{OT1}
\def\zifour@LY@ne@nc{LY1}
\def\zifour@QX@nc{QX}
\def\zifour@TQS{%
\UndeclareTextCommand{\textquotesingle}{\encodingdefault}
\DeclareTextSymbol{\textquotesingle}{TS1}{39}}
\ifzifour@noupq% do nothing
% Try to correct for wrong slots for QX
\ifx\encodingdefault\zifour@QX@nc
\zifour@TQS
\else
\ifx\encodingdefault\zifour@LY@ne@nc
\zifour@TQS
\fi
\fi
\else
\AtBeginDocument{%
\ifx\encodingdefault\zifour@T@ne@nc % do nothing
\else
\ifx\encodingdefault\zifour@OT@ne@nc % do nothing
\else
\zifour@TQS
\fi
\fi
\usepackage{upquote}}
\fi
\endinput

View File

@ -1,47 +0,0 @@
%% lato.sty
%% Copyright 2011 Mohamed El Morabity
%
% This work may be distributed and/or modified under the conditions of the LaTeX
% Project Public License, either version 1.3 of this license or (at your option)
% any later version. The latest version of this license is in
% http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all
% distributions of LaTeX version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'.
%
% The Current Maintainer of this work is Mohamed El Morabity
%
% This work consists of all files listed in manifest.txt.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{lato}[2011/08/06 Lato]
\RequirePackage{keyval}
\RequirePackage{slantsc}
% Taken from inconsolata.sty
\define@key{lato}{scale}[1.0]{\def\lato@scale{s*[#1]}}
\DeclareOption*{%
\begingroup%
\edef\x{\endgroup%
\noexpand\setkeys{lato}{\CurrentOption}}%
\x%
}
\DeclareOption{defaultsans}{%
\renewcommand*{\sfdefault}{fla}%
}
\DeclareOption{default}{%
\renewcommand*{\familydefault}{fla}%
\renewcommand*{\sfdefault}{fla}%
}
\ProcessOptions*
\newcommand{\flafamily}{%
\fontfamily{fla}%
\selectfont%
}
\endinput

View File

@ -130,10 +130,12 @@ gobble=0,
\vskip 3ex \vskip 3ex
\@afterheading} \@afterheading}
% use inconsolata font % fonts
\usepackage{charter} \usepackage{charter}
\usepackage[defaultsans]{lato} % remove, not widely supported on some Linux hosts.
\usepackage{inconsolata} %%\usepackage[defaultsans]{lato}
% remove, not widely supported on some Linux hosts.
%%\usepackage{inconsolata}
% fix single quotes, for inconsolata. (does not work) % fix single quotes, for inconsolata. (does not work)
%%\usepackage{textcomp} %%\usepackage{textcomp}