diff options
author | Karl Berry <karl@freefriends.org> | 2017-05-15 21:14:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-05-15 21:14:13 +0000 |
commit | dd2663ca8384b982816cfb456c4d53e7a3f17536 (patch) | |
tree | 9012e16f6776d79d74cd8bc16c6b2317b3492464 /Master/texmf-dist/source/latex | |
parent | 8dc5a04688ab717789078f4d387cb0938bacbbaf (diff) |
lni (15may17)
git-svn-id: svn://tug.org/texlive/trunk@44368 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r-- | Master/texmf-dist/source/latex/lni/lni.dtx | 75 |
1 files changed, 53 insertions, 22 deletions
diff --git a/Master/texmf-dist/source/latex/lni/lni.dtx b/Master/texmf-dist/source/latex/lni/lni.dtx index 359137aa0cb..b47219ed198 100644 --- a/Master/texmf-dist/source/latex/lni/lni.dtx +++ b/Master/texmf-dist/source/latex/lni/lni.dtx @@ -163,7 +163,7 @@ This work consists of the file lni.dtx %<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01] %<class>\ProvidesClass{lni} %<*class> - [2017/05/05 v1.2 Official class for submissions to the ``Lecture Notes + [2017/05/15 v1.3 Official class for submissions to the ``Lecture Notes in Informatics''] %</class> %<*driver> @@ -300,6 +300,9 @@ This work consists of the file lni.dtx % manually to gain compatibility with version prior to v1.05} % \changes{v1.2}{2017/04/27}{Added \pkg{iftex} to check for pdflatex} % \changes{v1.2}{2017/05/04}{Added (partial) support for XeTeX and LuaTeX} +% \changes{v1.3}{2017/05/04}{Added option \opt{nofonts} to suppress font +% loading completely} +% \changes{v1.3}{2017/05/08}{Changed syntax for \pkg{fontspec}} % % \GetFileInfo{\jobname.dtx} % \DoNotIndex{\newcommand,\newenvironment} @@ -396,23 +399,29 @@ This work consists of the file lni.dtx % \pkg{biblatex} and the tool \texttt{biber}. % % There is even a specialized package \pkg{biblatex-lni} which is automatically -% used when setting the class option \opt{biblatex}. Please see as well +% used when setting the class option \opt{biblatex}. For more information see as well % \cref{sec:bibliography}. % +% \DescribeOption{crop\space(new in v1.1)}% +% Option \opt{crop} gives you some crop marks (using the package \pkg{crop}) to +% better illustrate the final +% result of your article. +% % \DescribeOption{nocleveref}When referencing figures, one has to type % \texttt{Figure\textasciitilde}\cs{ref\marg{label}}. The package \pkg{cleveref} % reduces the effort by offering the command \cs{cref\marg{label}}. This can be % used with all floating objects. The package is loaded as default. In case it % causes issues, one can disable it using with the \opt{nocleveref} option. % -% \DescribeOption{nohyperref}\pkg{hyperref} is used for colored hyperlink within -% the articles. If you consider problems or just do not want that feature, you -% can disable it by using the option \opt{nohyperref}. +% \DescribeOption{nohyperref}\pkg{hyperref} is used for colored hyperlink +% within the articles. If you consider problems or just do not want that +% feature, you can disable it by using the option \opt{nohyperref}. % -% \DescribeOption{crop\space(new in v1.1)}% -% Option \opt{crop} gives you some crop marks (using the package \pkg{crop}) to better illustrate the final -% result of your article. -% +% \DescribeOption{nofonts\space(new in v1.3)}On older systems you might not +% have installed the New TX fonts. Therefore option \opt{nofonts} allows to +% suppress font loading completely using the engines standard fonts instead. +% Please note, that your output will differ from the publishers'. +% \newpage % \section{Setting up a document} % You can use the file \file{lni-author-template.tex} as a starting point % for setting up a document for submission. The \lni{} class uses the standard @@ -424,7 +433,7 @@ This work consists of the file lni.dtx % Some \TeX{} editors like \texttt{TeXstudio}, \texttt{TeXmaker} and % \texttt{TeXshop} support a special set of meta data to tell the editor, how % to deal with a concrete document. -% \newpage +% % A typical example looks like: % \begin{examplecode} % % !TeX program = pdflatex @@ -708,6 +717,9 @@ This work consists of the file lni.dtx \newif\ifcrop \cropfalse \DeclareOption{crop}{\croptrue} +\newif\ifnofonts +\nofontsfalse +\DeclareOption{nofonts}{\nofontstrue} \ExecuteOptions{utf8} \DeclareOption*{\ClassWarning{Option `\CurrentOption` is not supported!}} \ProcessOptions\relax @@ -740,24 +752,43 @@ This work consists of the file lni.dtx % \end{macrocode} % Define a modern variant of Times as the main font % \begin{macrocode} -\ifPDFTeX - \RequirePackage{newtxtext} - \RequirePackage{newtxmath} - \RequirePackage[zerostyle=b,scaled=.9]{newtxtt} +\ifnofonts + \ClassWarning{lni}{Option `nofonts' set! I will use standard fonts + \MessageBreak + instead of the New TX fonts. Your document will NOT look like the + \MessageBreak + final result for publication. This should only be used if you have + \MessageBreak + no possibility to install fonts or upgrade your TeX installation!}% +\else + \ifPDFTeX + \RequirePackage{newtxtext} + \RequirePackage{newtxmath} + \RequirePackage[zerostyle=b,scaled=.9]{newtxtt} % \end{macrocode} % For compatibility with version of \pkg{newtxtt} prior to v1.05 we set the % option \opt{straightquotes} manually for recent versions % \begin{macrocode} - \@ifpackagelater{newtxtt}{2014/11/18}% - {\txtt@upqtrue}% - {\ClassWarning{lni}{You are using an old version of `newtxtt'.\MessageBreak - Option `straightquotes' will not be used!}}% + \@ifpackagelater{newtxtt}{2014/11/18}% + {\txtt@upqtrue}% + {\ClassWarning{lni}{You are using an old version of + `newtxtt'.\MessageBreak + Option `straightquotes' will not be used!}}% % \end{macrocode} +% for \hologo{XeTeX} or \hologo{LuaTeX} we use \pkg{fontspec} % \begin{macrocode} -\else - \usepackage{newtxmath} - \usepackage[no-math]{fontspec} - \setmainfont[Ligatures=TeX]{TeXGyreTermesX} + \else + \usepackage{newtxmath} + \usepackage[no-math]{fontspec} + \setmainfont{texgyretermes}[ + Extension = .otf, + UprightFont = *-regular, + BoldFont = *-bold, + ItalicFont = *-italic, + BoldItalicFont = *-bolditalic, + Ligatures=TeX + ] + \fi% \fi% % \begin{macrocode} \ifPDFTeX |