texlive[64900] Master/texmf-dist: hep-font (2nov22)
commits+karl at tug.org
commits+karl at tug.org
Wed Nov 2 23:01:54 CET 2022
Revision: 64900
http://tug.org/svn/texlive?view=revision&revision=64900
Author: karl
Date: 2022-11-02 23:01:53 +0100 (Wed, 02 Nov 2022)
Log Message:
-----------
hep-font (2nov22)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/fonts/hep-font/bibliography.bib
trunk/Master/texmf-dist/doc/fonts/hep-font/hep-font-documentation.pdf
trunk/Master/texmf-dist/doc/fonts/hep-font/hep-font-documentation.tex
trunk/Master/texmf-dist/doc/fonts/hep-font/hep-font-implementation.pdf
trunk/Master/texmf-dist/doc/fonts/hep-font/hep-font-test.tex
trunk/Master/texmf-dist/source/fonts/hep-font/hep-font-implementation.dtx
trunk/Master/texmf-dist/tex/latex/hep-font/hep-font.sty
Modified: trunk/Master/texmf-dist/doc/fonts/hep-font/bibliography.bib
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/hep-font/bibliography.bib 2022-11-02 22:00:49 UTC (rev 64899)
+++ trunk/Master/texmf-dist/doc/fonts/hep-font/bibliography.bib 2022-11-02 22:01:53 UTC (rev 64900)
@@ -21,7 +21,7 @@
author = "Jan Hajer",
year = "2021",
eprinttype = "ctan",
-eprint = "hep-acronyms",
+eprint = "hep-acronym",
related = "hep-paper-1",
}
@@ -95,6 +95,24 @@
related = "hep-paper-1",
}
+ at article{hep-reference,
+title = "The |hep-reference| package",
+subtitle = "Selection of reference improvements",
+author = "Jan Hajer",
+year = "2021",
+eprinttype = "ctan",
+eprint = "hep-reference",
+related = "hep-paper-1",
+}
+
+ at article{hep-cv,
+title = "The |hep-cv| package",
+subtitle = "Appealing curricula vitarum",
+author = "Jan Hajer",
+year = "2020",
+related = "hep-paper-1",
+}
+
@article{kvoptions,
title = "The |kvoptions| package",
subtitle = "Key value format for package options",
@@ -1053,3 +1071,144 @@
eprint = "soulutf8",
}
+ at article{moderncv,
+title = "The |moderncv| package",
+subtitle = "A modern curriculum vitae class",
+author = "Xavier Danaux",
+year = "2006",
+eprinttype = "ctan",
+eprint = "moderncv",
+related = "moderncv-1",
+}
+
+ at article{anyfontsize,
+title = "The |anyfontsize| package",
+subtitle = "Select any font size in \hologo{LaTeX}",
+author = "Péter Szabó",
+date = "2007",
+eprinttype = "ctan",
+eprint = "anyfontsize",
+}
+
+ at article{array,
+title = "A new implementation of \hologo{LaTeX}’s |tabular| and |array| environment",
+subtitle = "Extending the |array| and |tabular| environments",
+author = "Frank Mittelbach, David Carlisle",
+collaboration= "\hologo{LaTeX} Team",
+year = "1993",
+eprinttype = "ctan",
+eprint = "array",
+}
+
+ at article{dashrule,
+title = "The |dashrule| package",
+subtitle = "Draw dashed rules",
+author = "Scott Pakin",
+date = "2008",
+eprinttype = "ctan",
+eprint = "dashrule",
+}
+
+ at article{fancyhdr,
+title = "The |fancyhdr| and |extramarks| packages",
+subtitle = "Extensive control of page headers and footers in \hologo{LaTeX2e}",
+author = "Piet van Oostrum",
+date = "1994",
+eprinttype = "ctan",
+eprint = "fancyhdr",
+}
+
+ at article{lastpage,
+title = "The |lastpage| package",
+subtitle = "Reference last page for Page $N$ of $M$ type footers",
+author = "Hans-Martin Münch and Jeffrey Goldberg",
+date = "1994",
+eprinttype = "ctan",
+eprint = "lastpage",
+}
+
+ at article{textpos,
+title = "|Textpos|: absolute positioning of text on the page",
+subtitle = "Place boxes at arbitrary positions on the \hologo{LaTeX} page",
+author = "Norman Gray",
+date = "1999",
+eprinttype = "ctan",
+eprint = "textpos",
+related = "textpos-1",
+}
+
+ at manual{textpos-1,
+eprinttype = "bitbucket",
+eprintclass = "nxg",
+eprint = "textpos",
+}
+
+ at article{subfiles,
+title = "The |subfiles| package: A Document Class and a Package for Handling Multi-File Projects",
+subtitle = "Individual typesetting of subfiles of a \enquote{main} document",
+author = "Federico Garcia and Gernot Salzer",
+date = "2002",
+eprinttype = "ctan",
+eprint = "subfiles",
+related = "subfiles-1",
+}
+
+ at manual{subfiles-1,
+eprinttype = "github",
+eprintclass = "gsalzer",
+eprint = "subfiles",
+}
+
+ at article{titlesec,
+title = "The |titlesec|, |titleps| and |titletoc| packages",
+subtitle = "Select alternative section titles",
+author = "Javier Bezos",
+year = "1998",
+eprinttype = "ctan",
+eprint = "titlesec",
+related = "titlesec-1",
+}
+
+ at manual{titlesec-1,
+eprinttype = "github",
+eprintclass = "jbezos",
+eprint = "titlesec",
+}
+
+ at article{calc,
+title = "The |calc| package",
+subtitle = "Simple arithmetic in \hologo{LaTeX} commands",
+author = "Kresten Krab Thorup and Frank Jensen",
+collaboration = "\hologo{LaTeX3} Project",
+year = "1992",
+eprinttype = "ctan",
+eprint = "calc",
+}
+
+ at article{tabulary,
+title = "The |tabulary| package",
+subtitle = "Tabular with variable width columns balanced",
+author = "David Carlisle",
+year = "1995",
+eprinttype = "ctan",
+eprint = "tabulary",
+}
+
+ at article{xcolor,
+title = "The |xcolor| package",
+subtitle = "Driver-independent color extensions for \hologo{LaTeX} and \hologo{pdfLaTeX}",
+author = "Uwe Kern",
+collaboration = "\hologo{LaTeX} Project",
+year = "2003",
+eprinttype = "ctan",
+eprint = "xcolor",
+}
+
+ at article{overlays,
+title = "The |overlays| package",
+subtitle = "Incremental slides",
+author = "Andreas Nolda",
+year = "2016",
+eprinttype = "ctan",
+eprint = "overlays",
+}
Modified: trunk/Master/texmf-dist/doc/fonts/hep-font/hep-font-documentation.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/fonts/hep-font/hep-font-documentation.tex
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/hep-font/hep-font-documentation.tex 2022-11-02 22:00:49 UTC (rev 64899)
+++ trunk/Master/texmf-dist/doc/fonts/hep-font/hep-font-documentation.tex 2022-11-02 22:01:53 UTC (rev 64900)
@@ -14,7 +14,7 @@
%% http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of
%% LaTeX version 2005/12/01 or later.
-\ProvidesFile{hep-font-documentation.tex}[2021/09/01 v1.8 hep-font documentation]
+\ProvidesFile{hep-font-documentation.tex}[2022/11/01 v1.1 hep-font documentation]
\RequirePackage[l2tabu, orthodox]{nag}
@@ -43,7 +43,7 @@
\title{The \software{hep-font} package\thanks{This document corresponds to \software{hep-font}~\fileversion.}}
\subtitle{Latin modern extended by computer modern}
-\author{Jan Hajer \email{jan.hajer at unibas.ch}}
+\author{Jan Hajer \email{jan.hajer at tecnico.ulisboa.pt}}
\date{\filedate}
\begin{document}
@@ -58,6 +58,15 @@
The package is loaded using "\usepackage{hep-font}".
+\DescribeMacro{size}
+The "size="\meta{size} option loads the specified font size.
+The possible \meta{sizes} are:
+"8pt", "9pt", "10pt", "11pt", "12pt", "14pt", "17pt", "20pt" and "default" deactivates this switch.
+The default value is \unit[11]{pt}.
+
+\DescribeMacro{sans}
+The "sans" option switches to sans-serif font instead of serif font.
+
\DescribeMacro{oldstyle}
The "oldstyle" option switches to oldstyle numerals such as 123 in text mode instead of lining numerals such as \textl{123}.
Modified: trunk/Master/texmf-dist/doc/fonts/hep-font/hep-font-implementation.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/fonts/hep-font/hep-font-test.tex
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/hep-font/hep-font-test.tex 2022-11-02 22:00:49 UTC (rev 64899)
+++ trunk/Master/texmf-dist/doc/fonts/hep-font/hep-font-test.tex 2022-11-02 22:01:53 UTC (rev 64900)
@@ -20,10 +20,10 @@
\usepackage[oldstyle]{hep-font}
%% \usepackage[oldstyle]{hep-paper}
-\usepackage{fullpage}
+\usepackage[cm]{fullpage}
\usepackage{fancyvrb}\DefineShortVerb{\|}
-\newenvironment{vrb}{\begin{tabular}{@{}p{5cm}ll@{}}}{\end{tabular}}
+\newenvironment{vrb}{\begin{tabular}{@{}p{5.4cm}ll@{}}}{\end{tabular}}
\begin{document}
Modified: trunk/Master/texmf-dist/source/fonts/hep-font/hep-font-implementation.dtx
===================================================================
--- trunk/Master/texmf-dist/source/fonts/hep-font/hep-font-implementation.dtx 2022-11-02 22:00:49 UTC (rev 64899)
+++ trunk/Master/texmf-dist/source/fonts/hep-font/hep-font-implementation.dtx 2022-11-02 22:01:53 UTC (rev 64900)
@@ -18,8 +18,8 @@
% \iffalse
%
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-%<package>\ProvidesPackage{hep-font}[2021/09/01 v1.0 hep-font]
-%<documentation>\ProvidesFile{hep-font-documentation.tex}[2021/09/01 v1.8 hep-font documentation]
+%<package>\ProvidesPackage{hep-font}[2022/11/01 v1.1 hep-font]
+%<documentation>\ProvidesFile{hep-font-documentation.tex}[2022/11/01 v1.1 hep-font documentation]
%
%<*documentation>
@@ -57,7 +57,7 @@
%
% \fi
%
-% \CheckSum{392}
+% \CheckSum{496}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -76,6 +76,7 @@
% Right brace \} Tilde \~}
%
% \changes{v1.0}{2021/09/01}{Initial version of the style file.}
+% \changes{v1.1}{2022/11/01}{Bug fixes.}
%
% \ifshort
%<*documentation>
@@ -85,7 +86,7 @@
\title{The \software{hep-font} package\thanks{This document corresponds to \software{hep-font}~\fileversion.}}
\subtitle{Latin modern extended by computer modern}
-\author{Jan Hajer \email{jan.hajer at unibas.ch}}
+\author{Jan Hajer \email{jan.hajer at tecnico.ulisboa.pt}}
\date{\filedate}
% \ifshort
@@ -102,6 +103,15 @@
The package is loaded using "\usepackage{hep-font}".
+\DescribeMacro{size}
+The "size="\meta{size} option loads the specified font size.
+The possible \meta{sizes} are:
+"8pt", "9pt", "10pt", "11pt", "12pt", "14pt", "17pt", "20pt" and "default" deactivates this switch.
+The default value is \unit[11]{pt}.
+
+\DescribeMacro{sans}
+The "sans" option switches to sans-serif font instead of serif font.
+
\DescribeMacro{oldstyle}
The "oldstyle" option switches to oldstyle numerals such as 123 in text mode instead of lining numerals such as \textl{123}.
@@ -153,6 +163,21 @@
}
% \end{macrocode}
%
+% \begin{macro}{size}
+% Define the "size" switching taking the font size as an argument.
+% \begin{macrocode}
+\DeclareStringOption[11pt]{size}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{sans}
+% Define the "sans" switching to sans serif font.
+% \begin{macrocode}
+\DeclareBoolOption[false]{sans}
+\DeclareComplementaryOption{serif}{sans}
+% \end{macrocode}
+% \end{macro}
+%
% \begin{macro}{lining}
% Define the "lining" option deactivating the use of text figures in text mode.
% \begin{macrocode}
@@ -161,10 +186,20 @@
% \end{macrocode}
% \end{macro}
%
+% Process options.
% \begin{macrocode}
\ProcessKeyvalOptions*
% \end{macrocode}
%
+% Read font argument from class call.
+% \begin{macrocode}
+\def\hepfont at get@class#1.cls#2\relax{\def\hepfont at class{#1}}
+\def\hepfont at getclass{\expandafter\hepfont at get@class\@filelist\relax}
+\hepfont at getclass
+\@ifclasswith{\hepfont at class}{10pt}{\setkeys{hepfont}{size=10pt}}{}
+\@ifclasswith{\hepfont at class}{11pt}{\setkeys{hepfont}{size=11pt}}{}
+\@ifclasswith{\hepfont at class}{12pt}{\setkeys{hepfont}{size=12pt}}{}
+% \end{macrocode}
%
% \begin{macro}{\ifxetexorluatex}
% Load the \software{ifluatex} \cite{ifluatex} and \software{ifxetex} \cite{ifxetex} packages.
@@ -183,9 +218,34 @@
% Pick the correct font encoding depending on the engine used and load the \software{fontenc} package \cite{fontenc} with this encoding.
% For details of the font encoding see \cite{encguide}.
% \begin{macrocode}
-\def\hep at encoding{T\ifxetexorluatex U\else 1\fi}
-\RequirePackage[\hep at encoding]{fontenc}
+\def\hepfont at encoding{T\ifxetexorluatex U\else 1\fi}
+\PassOptionsToPackage{\hepfont at encoding}{fontenc}
+\RequirePackage{fontenc}
% \end{macrocode}
+% Switch document to sans-serif font if requested using the \software{pdftexcmds} package \cite{pdftexcmds}.
+% \begin{macrocode}
+\RequirePackage{pdftexcmds}
+\ifnum\pdf at strcmp{\hepfont at size}{default}=0\else
+ \def\hepfont at remove@pt#1pt{#1}
+ \edef\hepfont at pt@size{\expandafter\hepfont at remove@pt\hepfont at size}
+ \let\small\relax
+ \let\footnotesize\relax
+ \let\scriptsize\relax
+ \let\tiny\relax
+ \let\large\relax
+ \let\Large\relax
+ \let\LARGE\relax
+ \let\huge\relax
+ \let\Huge\relax
+ \input{size\hepfont at pt@size.clo}
+\fi
+% \end{macrocode}
+% Switch document to sans-serif font if requested.
+% \begin{macrocode}
+\ifhepfont at sans
+ \renewcommand{\familydefault}{\sfdefault}
+\fi
+% \end{macrocode}
% Fix the remaining \CM \cite{cm} fonts using the \software{fix-cm} package \cite{fix-cm} and load the \software{microtype} font optimizations \cite{microtype}.
% \begin{macrocode}
\RequirePackage{fix-cm}
@@ -199,12 +259,29 @@
\RequirePackage{lmodern}
\else
\ifhepfont at lining
- \RequirePackage[rm={lining},sf={lining},tt={lining}]{cfr-lm}
- \else
- \RequirePackage{cfr-lm}
+ \PassOptionsToPackage{rm={lining},sf={lining},tt={lining}}{cfr-lm}
\fi
+ \RequirePackage{cfr-lm}
\fi
% \end{macrocode}
+% Ensure that the "verbatim" environment uses proportional font and provide an inline "\code" macro.
+% Work around a bug in \software{nfssext-cfr} which defines a global "\set" macro and breaks other macros of the same name.
+% \begin{macrocode}
+% \let\hep at verbatim\verbatim
+% \renewcommand\verbatim{\hep at verbatim\tmstyle}
+% \RequirePackage{etoolbox}
+% \AtBeginDocument{
+% \ifdefined\set
+% \AtBeginEnvironment{verbatim}{\global\let\hep at set\set\tmstyle}
+% \AfterEndEnvironment{verbatim}{\renewcommand\set{\hep at set}}
+% \else
+% \AtBeginEnvironment{verbatim}{\tmstyle}
+% \fi
+% }
+\let\verbatim at font\tmstyle
+\RequirePackage{xparse}
+\ProvideDocumentCommand{\code}{v}{{\tmstyle #1}}
+% \end{macrocode}
% Adjust the figures according to the "lining" option and ensure that tables always use lining.
% \begin{macrocode}
% \RequirePackage{etoolbox}
@@ -214,11 +291,11 @@
% Load the \software{textcomp} extension \cite{textcomp} and define helper functions.
% \begin{macrocode}
\RequirePackage{textcomp}
-\newcommand{\hep at sf@fontshape}[3]{%
- \DeclareFontShape{\hep at encoding}{\sfdefault}{#1}{#2}{#3}{}%
+\newcommand{\hepfont at sf@shape}[3]{%
+ \DeclareFontShape{\hepfont at encoding}{\sfdefault}{#1}{#2}{#3}{}%
}
-\newcommand{\hep at rm@fontshape}[3]{%
- \DeclareFontShape{\hep at encoding}{\rmdefault}{#1}{#2}{#3}{}%
+\newcommand{\hepfont at rm@shape}[3]{%
+ \DeclareFontShape{\hepfont at encoding}{\rmdefault}{#1}{#2}{#3}{}%
}
% \end{macrocode}
%
@@ -233,10 +310,10 @@
SmallCapsFont={[cmunbx.otf]}
}
]
- \hep at sf@fontshape{bx}{sc}{<->cmssbxcsc10}{}
- \hep at sf@fontshape{b}{sc}{<->cmssbxcsc10}{}
- \hep at sf@fontshape{m}{scit}{<->cmsscsci10}{}
- \hep at sf@fontshape{m}{sc}{%
+ \hepfont at sf@shape{bx}{sc}{<->cmssbxcsc10}{}
+ \hepfont at sf@shape{b}{sc}{<->cmssbxcsc10}{}
+ \hepfont at sf@shape{m}{scit}{<->cmsscsci10}{}
+ \hepfont at sf@shape{m}{sc}{%
<-9>cmsscsc8<9-10>cmsscsc9<10->cmsscsc10%
}{}
% \end{macrocode}
@@ -253,12 +330,12 @@
% \begin{macrocode}
\ifhepfont at lining
\RequirePackage{slantsc}
- \hep at rm@fontshape{b}{sc}{<->ssub*cmr/bx/sc}{}
- \hep at rm@fontshape{bx}{sc}{<->ssub*cmr/bx/sc}{}
- \hep at rm@fontshape{b}{scsl}{<->ssub*cmr/bx/scsl}{}
- \hep at rm@fontshape{bx}{scsl}{<->ssub*cmr/bx/scit}{}
- \hep at rm@fontshape{b}{scit}{<->ssub*cmr/bx/scsl}{}
- \hep at rm@fontshape{bx}{scit}{<->ssub*cmr/bx/scit}{}
+ \hepfont at rm@shape{b}{sc}{<->ssub*cmr/bx/sc}{}
+ \hepfont at rm@shape{bx}{sc}{<->ssub*cmr/bx/sc}{}
+ \hepfont at rm@shape{b}{scsl}{<->ssub*cmr/bx/scsl}{}
+ \hepfont at rm@shape{bx}{scsl}{<->ssub*cmr/bx/scit}{}
+ \hepfont at rm@shape{b}{scit}{<->ssub*cmr/bx/scsl}{}
+ \hepfont at rm@shape{bx}{scit}{<->ssub*cmr/bx/scit}{}
% \end{macrocode}
%\end{macro}
%\begin{macro}{\textsc}
@@ -265,21 +342,21 @@
%For oldstyle numerals use the fonts from the \software{hfoldsty} package \cite{hfoldsty}.
% \begin{macrocode}
\else
- \DeclareFontFamily{\hep at encoding}{hfor}{}
- \DeclareFontShape{\hep at encoding}{hfor}{bx}{sc}{
+ \DeclareFontFamily{\hepfont at encoding}{hfor}{}
+ \DeclareFontShape{\hepfont at encoding}{hfor}{bx}{sc}{
<-6>hfoxc0500<6-7>hfoxc0600<7-8>hfoxc0700<8-9>hfoxc0800
<9-10>hfoxc0900<10-12>hfoxc1000<12-17>hfoxc1200<17->hfoxc1728
}{}
- \DeclareFontShape{\hep at encoding}{hfor}{bx}{scsl}{
+ \DeclareFontShape{\hepfont at encoding}{hfor}{bx}{scsl}{
<-6>hfooc0500<6-7>hfooc0600<7-8>hfooc0700<8-9>hfooc0800
<9-10>hfooc0900<10-12>hfooc1000<12-17>hfooc1200<17->hfooc1728
}{}
- \hep at rm@fontshape{b}{sc}{<->ssub*hfor/bx/sc}{}
- \hep at rm@fontshape{bx}{sc}{<->ssub*hfor/bx/sc}{}
- \hep at rm@fontshape{bx}{scsl}{<->ssub*hfor/bx/scsl}{}
- \hep at rm@fontshape{b}{scit}{<->ssub*hfor/bx/scsl}{}
- \hep at rm@fontshape{bx}{scit}{<->ssub*hfor/bx/scsl}{}
- \hep at rm@fontshape{b}{scsl}{<->ssub*hfor/bx/scsl}{}
+ \hepfont at rm@shape{b}{sc}{<->ssub*hfor/bx/sc}{}
+ \hepfont at rm@shape{bx}{sc}{<->ssub*hfor/bx/sc}{}
+ \hepfont at rm@shape{bx}{scsl}{<->ssub*hfor/bx/scsl}{}
+ \hepfont at rm@shape{b}{scit}{<->ssub*hfor/bx/scsl}{}
+ \hepfont at rm@shape{bx}{scit}{<->ssub*hfor/bx/scsl}{}
+ \hepfont at rm@shape{b}{scsl}{<->ssub*hfor/bx/scsl}{}
\fi
% \end{macrocode}
%\end{macro}
@@ -287,21 +364,21 @@
%Provide the sans serif small caps font shape using the extended \CM from the \software{sansmathfonts} package \cite{sansmathfonts}.
% \begin{macrocode}
\sffamily
- \hep at sf@fontshape{m}{sc}{<->ssub*xcmss/m/sc}{}
- \hep at sf@fontshape{b}{sc}{<->ssub*xcmss/bx/sc}{}
- \hep at sf@fontshape{bx}{sc}{<->ssub*xcmss/bx/sc}{}
- \hep at sf@fontshape{m}{scit}{<->ssub*xcmss/m/scit}{}
- \hep at sf@fontshape{b}{scit}{<->ssub*xcmss/bx/scit}{}
- \hep at sf@fontshape{bx}{scit}{<->ssub*xcmss/bx/scit}{}
- \hep at sf@fontshape{m}{scsl}{<->ssub*xcmss/m/scit}{}
- \hep at sf@fontshape{b}{scsl}{<->ssub*xcmss/bx/scit}{}
- \hep at sf@fontshape{bx}{scsl}{<->ssub*xcmss/bx/scit}{}
+ \hepfont at sf@shape{m}{sc}{<->ssub*xcmss/m/sc}{}
+ \hepfont at sf@shape{b}{sc}{<->ssub*xcmss/bx/sc}{}
+ \hepfont at sf@shape{bx}{sc}{<->ssub*xcmss/bx/sc}{}
+ \hepfont at sf@shape{m}{scit}{<->ssub*xcmss/m/scit}{}
+ \hepfont at sf@shape{b}{scit}{<->ssub*xcmss/bx/scit}{}
+ \hepfont at sf@shape{bx}{scit}{<->ssub*xcmss/bx/scit}{}
+ \hepfont at sf@shape{m}{scsl}{<->ssub*xcmss/m/scit}{}
+ \hepfont at sf@shape{b}{scsl}{<->ssub*xcmss/bx/scit}{}
+ \hepfont at sf@shape{bx}{scsl}{<->ssub*xcmss/bx/scit}{}
% \end{macrocode}
%\end{macro}
%\begin{macro}{\textui}
%Provide a sans upright italic font.
% \begin{macrocode}
- \hep at sf@fontshape{m}{ui}{<->cmssu10}{}
+ \hepfont at sf@shape{m}{ui}{<->cmssu10}{}
\fi
% \end{macrocode}
%\end{macro}
@@ -308,7 +385,10 @@
%
% Load the \software{inputenc} package \cite{inputenc} whe using \hologo{pdfLaTeX}.
% \begin{macrocode}
-\ifxetexorluatex\else\RequirePackage[utf8]{inputenc}\fi
+\ifxetexorluatex\else
+ \PassOptionsToPackage{utf8}{inputenc}
+ \RequirePackage{inputenc}
+\fi
% \end{macrocode}
%
% \begin{macro}{\unit}
@@ -317,7 +397,7 @@
% \begin{macrocode}
\ifhepfont at lining\else
% \AtBeginDocument{
-% \@ifpackageloaded{
+% \@ifpackageloaded{units}{
\RequirePackage{units}
\RequirePackage{xpatch}
\xpatchcmd{\unit}{\else#1}{%
@@ -344,10 +424,10 @@
\usepackage[oldstyle]{hep-font}
%% \usepackage[oldstyle]{hep-paper}
-\usepackage{fullpage}
+\usepackage[cm]{fullpage}
\usepackage{fancyvrb}\DefineShortVerb{\|}
-\newenvironment{vrb}{\begin{tabular}{@{}p{5cm}ll@{}}}{\end{tabular}}
+\newenvironment{vrb}{\begin{tabular}{@{}p{5.4cm}ll@{}}}{\end{tabular}}
\begin{document}
Modified: trunk/Master/texmf-dist/tex/latex/hep-font/hep-font.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hep-font/hep-font.sty 2022-11-02 22:00:49 UTC (rev 64899)
+++ trunk/Master/texmf-dist/tex/latex/hep-font/hep-font.sty 2022-11-02 22:01:53 UTC (rev 64900)
@@ -15,7 +15,7 @@
%% and version 1.3c or later is part of all distributions of
%% LaTeX version 2005/12/01 or later.
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-\ProvidesPackage{hep-font}[2021/09/01 v1.0 hep-font]
+\ProvidesPackage{hep-font}[2022/11/01 v1.1 hep-font]
\RequirePackage{kvoptions}
\SetupKeyvalOptions{
@@ -22,9 +22,18 @@
family=hepfont,
prefix=hepfont@
}
+\DeclareStringOption[11pt]{size}
+\DeclareBoolOption[false]{sans}
+\DeclareComplementaryOption{serif}{sans}
\DeclareBoolOption[true]{lining}
\DeclareComplementaryOption{oldstyle}{lining}
\ProcessKeyvalOptions*
+\def\hepfont at get@class#1.cls#2\relax{\def\hepfont at class{#1}}
+\def\hepfont at getclass{\expandafter\hepfont at get@class\@filelist\relax}
+\hepfont at getclass
+\@ifclasswith{\hepfont at class}{10pt}{\setkeys{hepfont}{size=10pt}}{}
+\@ifclasswith{\hepfont at class}{11pt}{\setkeys{hepfont}{size=11pt}}{}
+\@ifclasswith{\hepfont at class}{12pt}{\setkeys{hepfont}{size=12pt}}{}
\RequirePackage{ifluatex}
\RequirePackage{ifxetex}
\newif\ifxetexorluatex
@@ -32,8 +41,27 @@
\else\ifluatex\xetexorluatextrue
\else\xetexorluatexfalse\fi
\fi
-\def\hep at encoding{T\ifxetexorluatex U\else 1\fi}
-\RequirePackage[\hep at encoding]{fontenc}
+\def\hepfont at encoding{T\ifxetexorluatex U\else 1\fi}
+\PassOptionsToPackage{\hepfont at encoding}{fontenc}
+\RequirePackage{fontenc}
+\RequirePackage{pdftexcmds}
+\ifnum\pdf at strcmp{\hepfont at size}{default}=0\else
+ \def\hepfont at remove@pt#1pt{#1}
+ \edef\hepfont at pt@size{\expandafter\hepfont at remove@pt\hepfont at size}
+ \let\small\relax
+ \let\footnotesize\relax
+ \let\scriptsize\relax
+ \let\tiny\relax
+ \let\large\relax
+ \let\Large\relax
+ \let\LARGE\relax
+ \let\huge\relax
+ \let\Huge\relax
+ \input{size\hepfont at pt@size.clo}
+\fi
+\ifhepfont at sans
+ \renewcommand{\familydefault}{\sfdefault}
+\fi
\RequirePackage{fix-cm}
\RequirePackage{microtype}
\ifxetexorluatex
@@ -41,17 +69,19 @@
\RequirePackage{lmodern}
\else
\ifhepfont at lining
- \RequirePackage[rm={lining},sf={lining},tt={lining}]{cfr-lm}
- \else
- \RequirePackage{cfr-lm}
+ \PassOptionsToPackage{rm={lining},sf={lining},tt={lining}}{cfr-lm}
\fi
+ \RequirePackage{cfr-lm}
\fi
+\let\verbatim at font\tmstyle
+\RequirePackage{xparse}
+\ProvideDocumentCommand{\code}{v}{{\tmstyle #1}}
\RequirePackage{textcomp}
-\newcommand{\hep at sf@fontshape}[3]{%
- \DeclareFontShape{\hep at encoding}{\sfdefault}{#1}{#2}{#3}{}%
+\newcommand{\hepfont at sf@shape}[3]{%
+ \DeclareFontShape{\hepfont at encoding}{\sfdefault}{#1}{#2}{#3}{}%
}
-\newcommand{\hep at rm@fontshape}[3]{%
- \DeclareFontShape{\hep at encoding}{\rmdefault}{#1}{#2}{#3}{}%
+\newcommand{\hepfont at rm@shape}[3]{%
+ \DeclareFontShape{\hepfont at encoding}{\rmdefault}{#1}{#2}{#3}{}%
}
\ifxetexorluatex
\RequirePackage{fontspec}
@@ -62,10 +92,10 @@
SmallCapsFont={[cmunbx.otf]}
}
]
- \hep at sf@fontshape{bx}{sc}{<->cmssbxcsc10}{}
- \hep at sf@fontshape{b}{sc}{<->cmssbxcsc10}{}
- \hep at sf@fontshape{m}{scit}{<->cmsscsci10}{}
- \hep at sf@fontshape{m}{sc}{%
+ \hepfont at sf@shape{bx}{sc}{<->cmssbxcsc10}{}
+ \hepfont at sf@shape{b}{sc}{<->cmssbxcsc10}{}
+ \hepfont at sf@shape{m}{scit}{<->cmsscsci10}{}
+ \hepfont at sf@shape{m}{sc}{%
<-9>cmsscsc8<9-10>cmsscsc9<10->cmsscsc10%
}{}
\else
@@ -72,42 +102,45 @@
\rmfamily
\ifhepfont at lining
\RequirePackage{slantsc}
- \hep at rm@fontshape{b}{sc}{<->ssub*cmr/bx/sc}{}
- \hep at rm@fontshape{bx}{sc}{<->ssub*cmr/bx/sc}{}
- \hep at rm@fontshape{b}{scsl}{<->ssub*cmr/bx/scsl}{}
- \hep at rm@fontshape{bx}{scsl}{<->ssub*cmr/bx/scit}{}
- \hep at rm@fontshape{b}{scit}{<->ssub*cmr/bx/scsl}{}
- \hep at rm@fontshape{bx}{scit}{<->ssub*cmr/bx/scit}{}
+ \hepfont at rm@shape{b}{sc}{<->ssub*cmr/bx/sc}{}
+ \hepfont at rm@shape{bx}{sc}{<->ssub*cmr/bx/sc}{}
+ \hepfont at rm@shape{b}{scsl}{<->ssub*cmr/bx/scsl}{}
+ \hepfont at rm@shape{bx}{scsl}{<->ssub*cmr/bx/scit}{}
+ \hepfont at rm@shape{b}{scit}{<->ssub*cmr/bx/scsl}{}
+ \hepfont at rm@shape{bx}{scit}{<->ssub*cmr/bx/scit}{}
\else
- \DeclareFontFamily{\hep at encoding}{hfor}{}
- \DeclareFontShape{\hep at encoding}{hfor}{bx}{sc}{
+ \DeclareFontFamily{\hepfont at encoding}{hfor}{}
+ \DeclareFontShape{\hepfont at encoding}{hfor}{bx}{sc}{
<-6>hfoxc0500<6-7>hfoxc0600<7-8>hfoxc0700<8-9>hfoxc0800
<9-10>hfoxc0900<10-12>hfoxc1000<12-17>hfoxc1200<17->hfoxc1728
}{}
- \DeclareFontShape{\hep at encoding}{hfor}{bx}{scsl}{
+ \DeclareFontShape{\hepfont at encoding}{hfor}{bx}{scsl}{
<-6>hfooc0500<6-7>hfooc0600<7-8>hfooc0700<8-9>hfooc0800
<9-10>hfooc0900<10-12>hfooc1000<12-17>hfooc1200<17->hfooc1728
}{}
- \hep at rm@fontshape{b}{sc}{<->ssub*hfor/bx/sc}{}
- \hep at rm@fontshape{bx}{sc}{<->ssub*hfor/bx/sc}{}
- \hep at rm@fontshape{bx}{scsl}{<->ssub*hfor/bx/scsl}{}
- \hep at rm@fontshape{b}{scit}{<->ssub*hfor/bx/scsl}{}
- \hep at rm@fontshape{bx}{scit}{<->ssub*hfor/bx/scsl}{}
- \hep at rm@fontshape{b}{scsl}{<->ssub*hfor/bx/scsl}{}
+ \hepfont at rm@shape{b}{sc}{<->ssub*hfor/bx/sc}{}
+ \hepfont at rm@shape{bx}{sc}{<->ssub*hfor/bx/sc}{}
+ \hepfont at rm@shape{bx}{scsl}{<->ssub*hfor/bx/scsl}{}
+ \hepfont at rm@shape{b}{scit}{<->ssub*hfor/bx/scsl}{}
+ \hepfont at rm@shape{bx}{scit}{<->ssub*hfor/bx/scsl}{}
+ \hepfont at rm@shape{b}{scsl}{<->ssub*hfor/bx/scsl}{}
\fi
\sffamily
- \hep at sf@fontshape{m}{sc}{<->ssub*xcmss/m/sc}{}
- \hep at sf@fontshape{b}{sc}{<->ssub*xcmss/bx/sc}{}
- \hep at sf@fontshape{bx}{sc}{<->ssub*xcmss/bx/sc}{}
- \hep at sf@fontshape{m}{scit}{<->ssub*xcmss/m/scit}{}
- \hep at sf@fontshape{b}{scit}{<->ssub*xcmss/bx/scit}{}
- \hep at sf@fontshape{bx}{scit}{<->ssub*xcmss/bx/scit}{}
- \hep at sf@fontshape{m}{scsl}{<->ssub*xcmss/m/scit}{}
- \hep at sf@fontshape{b}{scsl}{<->ssub*xcmss/bx/scit}{}
- \hep at sf@fontshape{bx}{scsl}{<->ssub*xcmss/bx/scit}{}
- \hep at sf@fontshape{m}{ui}{<->cmssu10}{}
+ \hepfont at sf@shape{m}{sc}{<->ssub*xcmss/m/sc}{}
+ \hepfont at sf@shape{b}{sc}{<->ssub*xcmss/bx/sc}{}
+ \hepfont at sf@shape{bx}{sc}{<->ssub*xcmss/bx/sc}{}
+ \hepfont at sf@shape{m}{scit}{<->ssub*xcmss/m/scit}{}
+ \hepfont at sf@shape{b}{scit}{<->ssub*xcmss/bx/scit}{}
+ \hepfont at sf@shape{bx}{scit}{<->ssub*xcmss/bx/scit}{}
+ \hepfont at sf@shape{m}{scsl}{<->ssub*xcmss/m/scit}{}
+ \hepfont at sf@shape{b}{scsl}{<->ssub*xcmss/bx/scit}{}
+ \hepfont at sf@shape{bx}{scsl}{<->ssub*xcmss/bx/scit}{}
+ \hepfont at sf@shape{m}{ui}{<->cmssu10}{}
\fi
-\ifxetexorluatex\else\RequirePackage[utf8]{inputenc}\fi
+\ifxetexorluatex\else
+ \PassOptionsToPackage{utf8}{inputenc}
+ \RequirePackage{inputenc}
+\fi
\ifhepfont at lining\else
\RequirePackage{units}
\RequirePackage{xpatch}
More information about the tex-live-commits
mailing list.