From 81ca638ba231ffe06be7582431bd6a88750383ee Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 2 Sep 2014 22:45:00 +0000 Subject: ebgaramond-maths (2sep14) git-svn-id: svn://tug.org/texlive/trunk@35092 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/doc/fonts/ebgaramond-maths/README | 31 ++++ .../fonts/ebgaramond-maths/ebgaramond-maths.pdf | Bin 0 -> 185004 bytes .../fonts/ebgaramond-maths/ebgaramond-maths.tex | 199 +++++++++++++++++++++ .../doc/fonts/ebgaramond-maths/manifest.txt | 41 +++++ .../fonts/enc/dvips/ebgaramond-maths/a_42pejf.enc | 56 ++++++ .../dvips/ebgaramond-maths/EBGaramond-Maths.map | 1 + .../EBGaramond12-Italic--oml-ebgaramond.tfm | Bin 0 -> 1344 bytes .../latex/ebgaramond-maths/OMLEBGaramond-Maths.fd | 35 ++++ .../latex/ebgaramond-maths/ebgaramond-maths.sty | 42 +++++ Master/tlpkg/bin/tlpkg-ctan-check | 2 +- Master/tlpkg/tlpsrc/collection-fontsextra.tlpsrc | 1 + Master/tlpkg/tlpsrc/ebgaramond-maths.tlpsrc | 0 12 files changed, 407 insertions(+), 1 deletion(-) create mode 100644 Master/texmf-dist/doc/fonts/ebgaramond-maths/README create mode 100644 Master/texmf-dist/doc/fonts/ebgaramond-maths/ebgaramond-maths.pdf create mode 100644 Master/texmf-dist/doc/fonts/ebgaramond-maths/ebgaramond-maths.tex create mode 100644 Master/texmf-dist/doc/fonts/ebgaramond-maths/manifest.txt create mode 100644 Master/texmf-dist/fonts/enc/dvips/ebgaramond-maths/a_42pejf.enc create mode 100644 Master/texmf-dist/fonts/map/dvips/ebgaramond-maths/EBGaramond-Maths.map create mode 100644 Master/texmf-dist/fonts/tfm/public/ebgaramond-maths/EBGaramond12-Italic--oml-ebgaramond.tfm create mode 100644 Master/texmf-dist/tex/latex/ebgaramond-maths/OMLEBGaramond-Maths.fd create mode 100644 Master/texmf-dist/tex/latex/ebgaramond-maths/ebgaramond-maths.sty create mode 100644 Master/tlpkg/tlpsrc/ebgaramond-maths.tlpsrc diff --git a/Master/texmf-dist/doc/fonts/ebgaramond-maths/README b/Master/texmf-dist/doc/fonts/ebgaramond-maths/README new file mode 100644 index 00000000000..b251821c9e7 --- /dev/null +++ b/Master/texmf-dist/doc/fonts/ebgaramond-maths/README @@ -0,0 +1,31 @@ +%% Copyright 2014 Clea F. Rees +% +% 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 Clea F. Rees. +% +% This work consists of all files listed in manifest.txt. + +This package provides some LaTeX support for the use of EBGaramond12 in +mathematics. It is based on, and requires, ebgaramond. It was created in +response to a question at http://tex.stackexchange.com/q/152038/ and tested in +the form of an answer at http://tex.stackexchange.com/a/152347/. It is +published as a package at the request of the question author in the hope that +it may be useful but scarcely the expectation. + +To the best of the author's knowledge, no hedgehogs were harmed in the +production of this package. + +Clea F. Rees +ReesC21 cardiff ac uk +2014/09/02 + +vim: set nospell: diff --git a/Master/texmf-dist/doc/fonts/ebgaramond-maths/ebgaramond-maths.pdf b/Master/texmf-dist/doc/fonts/ebgaramond-maths/ebgaramond-maths.pdf new file mode 100644 index 00000000000..5fdc1395c2b Binary files /dev/null and b/Master/texmf-dist/doc/fonts/ebgaramond-maths/ebgaramond-maths.pdf differ diff --git a/Master/texmf-dist/doc/fonts/ebgaramond-maths/ebgaramond-maths.tex b/Master/texmf-dist/doc/fonts/ebgaramond-maths/ebgaramond-maths.tex new file mode 100644 index 00000000000..ce77372c12f --- /dev/null +++ b/Master/texmf-dist/doc/fonts/ebgaramond-maths/ebgaramond-maths.tex @@ -0,0 +1,199 @@ +%% Copyright 2014 Clea F. Rees +% +% 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 Clea F. Rees. +% +% This work consists of all files listed in manifest.txt. + +% !TEX TS-program = pdflatex +% !TEX encoding = UTF-8 Unicode +% arara: pdflatex: { synctex: true } + +\documentclass[12pt,british,a4paper]{article} +\usepackage{babel} +\usepackage[utf8]{inputenc} +\usepackage{csquotes} + \MakeAutoQuote{‘}{’} + \MakeAutoQuote*{“}{”} +\usepackage[T1]{fontenc} +\usepackage{fancyhdr,fancyref,enumitem,pageslts,upquote} +\usepackage{verbatim} +\usepackage{url} + \urlstyle{tt} +\usepackage{hyperref} +\usepackage[sf,scale=0.95,ttscale=.9]{libertine} +\usepackage[cmintegrals,cmbraces]{newtxmath} +\pdfmapfile{+EBGaramond-Maths.map} +\usepackage{ebgaramond-maths} +\usepackage{microtype} +\usepackage[headheight=15pt]{geometry} + +\title{ebgaramond-maths\thanks{Version 1.0 2014--09--01.}} +\author{Clea F.\ Rees\footnote{\liningfam ReesC21 cardiff ac uk}} +\newcommand*{\dyddiad}{2\textsu{nd} September, 2014} +\date{\dyddiad} +\pagestyle{fancy} + \fancyhf[lh]{\itshape ebgaramond-maths} + \fancyhf[rh]{\itshape\dyddiad} + \fancyhf[ch]{} + \fancyhf[lf]{} + \fancyhf[rf]{} + \fancyhf[cf]{\itshape \thepage~\ofname~\lastpageref*{LastPage}} + +\makeatletter% am unrhyw reswm, dyw ebgaramond ddim yn diffinio'r rhai hyn + \DeclareRobustCommand{\oldstylefam}{\fontfamily{EBGaramond-\ebgaramond@figurealign OsF}\selectfont} + \DeclareRobustCommand{\liningfam}{\fontfamily{EBGaramond-\ebgaramond@figurealign LF}\selectfont} + \DeclareRobustCommand{\tabularfam}{\fontfamily{EBGaramond-T\ebgaramond@figurestyle}\selectfont} + \DeclareRobustCommand{\proportionalfam}{\fontfamily{EBGaramond-\ebgaramond@figurestyle}\selectfont} +\makeatother + +\begin{document} +\pagenumbering{arabic}% pageslts eisiau hyn +\maketitle\thispagestyle{empty} +\pdfinfo{% + /Creator (TeX) + /Producer (pdfTeX) + /Author (Clea F.\ Rees) + /Title (ebgaramond-maths) + /Subject (TeX) + /Keywords (TeX, LaTeX, font, fonts, tex, latex, ebgaramond-maths, EBGaramond, ebgaramond, EBGaramond12, maths, mathematics, Clea, Rees)} +\pdfcatalog{% + /URL () + /PageMode /UseOutlines} + +\newcommand*{\lpack}[1]{\textsf{#1}} + +\begin{abstract} + \liningfam + \noindent\lpack{ebgaramond-maths} provides some \LaTeX\ support for the use of EBGaramond12 in mathematics. + It requires \lpack{ebgaramond} and uses the postscript fonts provided by that package\footnote{This version corresponds to the 2014--07--07 version of \lpack{ebgaramond}.}. + The package essentially consists of the files generated by an answer to a question at \url{http://tex.stackexchange.com/q/152038/} and is a response to a follow-up request by the author of that question. +\end{abstract} + +\section{Introduction}\label{sec:intro} +% BEGIN sec:intro +There is not really much to document. +To use EBGaramond in mathematics, you just load the package: +\begin{quote} +\begin{verbatim} +\usepackage[cmintegrals,cmbraces]{newtxmath} +\usepackage{ebgaramond-maths} +\end{verbatim} +\end{quote} +Note that this will also load \lpack{ebgaramond} which will set your default serif font to \liningnums{EBGaramond12}. +If for any reason you do not want this, note two things. +First, your document will be a typographic abomination. +Second, you can easily create the abomination of your choice by changing the default serif family \emph{after} loading \lpack{ebgaramond-maths}. +% END sec:intro + +\section{Details}\label{sec:manylion} +% BEGIN sec:manylion + +The package includes \verb|.tfm| and \verb|.map| files which define a new \TeX\ font for \LaTeX, EBGaramond-Maths. +This font uses \liningnums{EBGaramond12-Italic} with an OML encoding. +However, not all characters in this encoding are available. +Note that this is a limitation of the font itself and not of this package. + +\lpack{ebgaramond-maths} uses this new font together with support files from \lpack{ebgaramond} to set up support for mathematics as follows: +\begin{itemize} + \item EBGaramond-Maths (medium weight) is used for \verb|letters| (standard and bold); + \item EBGaramond-LF (medium weight, upright shape) is used for \verb|operators| (standard and bold); + \item EBGaramond-LF (medium weight, swash shape) is used for the calligraphic alphabet, \verb|\mathcal| (medium weight); + \item \verb|\mathrm|, \verb|\mathbf| and \verb|\mathit| should all work as expected and use EBGaramond-LF (medium weight, upright or italic shape as appropriate). +\end{itemize} + +Note that \liningnums{EBGaramond12} does not include a bold weight by design. +Following the designer's intentions, this package, like \lpack{ebgaramond}, substitutes the medium weight for bold where required. +% END sec:manylion + +\section{Method}\label{sec:dull} +% BEGIN sec:dull + +If you just wish to use the package, you do not need to read this section. +It explains how to create the font support files used by the package given that you have \lpack{ebgaramond} installed. +It assumes that you are using TeX Live on GNU/Linux or another Unix-like system such as OS X. + +\subsection{Variables}\label{subsec:var} +% BEGIN subsec:var +Make a working directory somewhere which I'll call \verb|${work}|. +The only requirement is that you have permission to write there and a (very small) amount of space. +(It goes without saying that this should not be done as root.) + +In the instructions which follow \verb|${texmain}| is your main, current \verb|texmf| directory. +On my system, that's \verb|/usr/local/texlive/YYYY| (where \verb|YYYY| is the latest version of TeX Live installed) or \verb|/usr/local/texlive/current|. +% END subsec:var + +\subsection{Working environment}\label{subsec:amgylchedd} + +% BEGIN subsec:amgylchedd +Change to \verb|${work}|. +From now on, I assume that all commands are executed in this directory and that all created files are saved there. + +Create the following symbolic links in your working directory: + +\begin{quote} +\begin{verbatim} +ln -s ${texmain}/texmf-dist/tex/fontinst/mathetx/oml.etx \ + ${texmain}/texmf-dist/fonts/opentype/public/ebgaramond/\ + EBGaramond12-Italic.otf ./ +\end{verbatim} +\end{quote} +% END subsec:amgylchedd + +\subsection{Create a preliminary encoding file}\label{subsec:creu-enc} +% BEGIN subsec: creu-enc +This is not the encoding file \TeX\ needs but it will form the basis for that file. + +First, run \verb|fontinst| in interactive mode. +(That is, just type \verb|fontinst| at the command.) +At the prompt: +\begin{quote} +\begin{verbatim} +\input finstmsc.sty +\etxtoenc{oml}{oml-ebgaramond} +\bye +\end{verbatim} +\end{quote} + +This will produce \verb|oml-ebgaramond.enc| which should be lightly modified before feeding to \verb|otftotfm|: + +\begin{quote} +\begin{verbatim} +sed -i -e 's/TeXMathItalicEncoding/\ + EBGaramondTeXMathItalicEncoding/g' \ + -e 's/oldstyle//' oml-ebgaramond.enc +\end{verbatim} +\end{quote} + +This ensures that the encoding has a distinctive (and hopefully unique) name. +% END subsec: creu-enc + +\subsection{Generate the \TeX\ font}\label{subsec:tfm} +% BEGIN subsec:tfm +\lpack{ebgaramond} already provides the \liningnums{type1} files needed so there is no need to regenerate those. +All that is required is to generate a suitable \verb|.tfm|: + +\begin{quote} +\begin{verbatim} +otftotfm -e oml-ebgaramond.enc EBGaramond12-Italic.otf \ + > EBGaramond-Maths.map +\end{verbatim} +\end{quote} + +This will create both the \verb|.tfm| file and the \verb|.map| file fragment \TeX\ needs to use the font. +It will also create a new encoding file with what will almost certainly be a very weird name. +This is the encoding file \TeX\ will use, as specified in the \verb|.map| file fragment. +\verb|oml-ebgaramond.enc| can now be deleted as it is no longer required. +% END subsec:tfm + +% END sec:dull +\end{document} diff --git a/Master/texmf-dist/doc/fonts/ebgaramond-maths/manifest.txt b/Master/texmf-dist/doc/fonts/ebgaramond-maths/manifest.txt new file mode 100644 index 00000000000..66b3098d3df --- /dev/null +++ b/Master/texmf-dist/doc/fonts/ebgaramond-maths/manifest.txt @@ -0,0 +1,41 @@ +manifest.txt +Copyright 2014 Clea F. Rees + +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 Clea F. Rees. + +This work consists of all files listed in manifest.txt. + +All TeX Font Metric files (suffix .tfm in subdirectory fonts/tfm) +are derived from the relevant EBGaramond12 fonts, supplied as part of the +ebgaramond package released 2014-07-07 (version 0.16) by Bob Tennent and +available from ttp://ctan.org/pkg/ebgaramond. The TeX Font Metric (suffix +.tfm) files are derived specifically from the opentype fonts (suffix +.otf) using otftotfm as explained in the package documentation. + +The encoding a_42pejf.enc is derived from the file oml.etx supplied with +fontinst. A copy of fontinst including an unmodified copy of oml.etx is +available from http://mirror.ctan.org/fonts/utilities/fontinst. + +manifest.txt +README +OMLEBGaramond-Maths.fd +ebgaramond-maths.sty +ebgaramond-maths.tex + +Derived files: +EBGaramond-Maths.map +EBGaramond12-Italic--oml-ebgaramond.tfm +a_42pejf.enc +ebgaramond-maths.pdf + +vim: set nospell: diff --git a/Master/texmf-dist/fonts/enc/dvips/ebgaramond-maths/a_42pejf.enc b/Master/texmf-dist/fonts/enc/dvips/ebgaramond-maths/a_42pejf.enc new file mode 100644 index 00000000000..ff4ee96e10b --- /dev/null +++ b/Master/texmf-dist/fonts/enc/dvips/ebgaramond-maths/a_42pejf.enc @@ -0,0 +1,56 @@ +% THIS FILE WAS AUTOMATICALLY GENERATED -- DO NOT EDIT + +%%AutoEnc_42pejfj2l27x56mpqr5s2btolh +% Encoding created by otftotfm on Mon Sep 1 23:37:15 2014 +% Command line follows encoding +/AutoEnc_42pejfj2l27x56mpqr5s2btolh [ +%00 + /Gamma /Delta /Theta /Lambda /Xi /Pi /Sigma /Upsilon + /Phi /Psi /Omega /alpha /beta /gamma /delta /.notdef +%10 + /zeta /eta /theta /iota /kappa /lambda /mu /nu + /xi /pi /rho /sigma /tau /upsilon /phi1 /chi +%20 + /psi /omega /epsilon /theta1 /omega1 /uni03F1 /sigma1 /phi + /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +%30 + /zero /one /two /three /four /five /six /seven + /eight /nine /period /comma /less /slash /greater /.notdef +%40 + /.notdef /A /B /C /D /E /F /G + /H /I /J /K /L /M /N /O +%50 + /P /Q /R /S /T /U /V /W + /X /Y /Z /.notdef /.notdef /.notdef /.notdef /.notdef +%60 + /uni2113 /a /b /c /d /e /f /g + /h /i /j /k /l /m /n /o +%70 + /p /q /r /s /t /u /v /w + /x /y /z /dotlessi /uni0237 /.notdef /.notdef /.notdef +%80 + /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef + /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +%90 + /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef + /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +%A0 + /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef + /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +%B0 + /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef + /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +%C0 + /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef + /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +%D0 + /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef + /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +%E0 + /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef + /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +%F0 + /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef + /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +] def +% Command line: 'otftotfm -e oml-ebgaramond.enc EBGaramond12-Italic.otf' diff --git a/Master/texmf-dist/fonts/map/dvips/ebgaramond-maths/EBGaramond-Maths.map b/Master/texmf-dist/fonts/map/dvips/ebgaramond-maths/EBGaramond-Maths.map new file mode 100644 index 00000000000..0964d87f3f0 --- /dev/null +++ b/Master/texmf-dist/fonts/map/dvips/ebgaramond-maths/EBGaramond-Maths.map @@ -0,0 +1 @@ +EBGaramond12-Italic--oml-ebgaramond EBGaramond12-Italic "AutoEnc_42pejfj2l27x56mpqr5s2btolh ReEncodeFont" <[a_42pejf.enc EBGaramond12-Italic--oml-ebgaramond + }{} + +\DeclareFontShape{OML}{EBGaramond-Maths}{b}{it}{<->ssub * EBGaramond-Maths/m/it}{} +\DeclareFontShape{OML}{EBGaramond-Maths}{bx}{it}{<->ssub * EBGaramond-Maths/m/it}{} + +\endinput +% vim: set nospell: diff --git a/Master/texmf-dist/tex/latex/ebgaramond-maths/ebgaramond-maths.sty b/Master/texmf-dist/tex/latex/ebgaramond-maths/ebgaramond-maths.sty new file mode 100644 index 00000000000..34923289eef --- /dev/null +++ b/Master/texmf-dist/tex/latex/ebgaramond-maths/ebgaramond-maths.sty @@ -0,0 +1,42 @@ +%% Copyright 2014 Clea F. Rees +% +% 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 Clea F. Rees. +% +% This work consists of all files listed in manifest.txt. + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{ebgaramond-maths}[2014/09/01 v1.0 ebgaramond-maths for use with EBGaramond] + +\RequirePackage{ebgaramond} + +% \pdfmapfile{+EBGaramond-Maths.map} + +\DeclareSymbolFont{letters} {OML} {EBGaramond-Maths} {m} {it} +\DeclareSymbolFont{operators} {OT1} {EBGaramond-LF} {m} {n} + +\SetSymbolFont{letters} {bold} {OML} {EBGaramond-Maths} {b} {it} +\SetSymbolFont{operators} {bold} {OT1} {EBGaramond-LF} {bx} {n} + +\DeclareFontSubstitution{OML}{EBGaramond-Maths}{m}{it} +\DeclareFontSubstitution{OT1}{EBGaramond-LF}{m}{n} + +\SetMathAlphabet{\mathbf} {normal} {OT1} {EBGaramond-LF} {bx} {n} +\SetMathAlphabet{\mathbf} {bold} {OT1} {EBGaramond-LF} {bx} {n} +\SetMathAlphabet{\mathit} {normal} {OT1} {EBGaramond-LF} {m} {it} +\SetMathAlphabet{\mathit} {bold} {OT1} {EBGaramond-LF} {bx} {it} + +\DeclareMathAlphabet{\mathcal} {OT1} {EBGaramond-LF} {m} {sw} + +\endinput + +% vim: set nospell: diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index e9a4513859f..a7e01081c58 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -173,7 +173,7 @@ my @TLP_working = qw( dvdcoll dvgloss dviasm dviincl dvipdfmx-def dvipsconfig dynblocks dyntree ean ean13isbn easy easy-todo easyfig easylist - ebezier ebgaramond ebong ebook ebsthesis + ebezier ebgaramond ebgaramond-maths ebong ebook ebsthesis ec ecc ecclesiastic ecltree eco economic ecv ed edfnotes edmac edmargin ednotes eemeir eepic efbox egameps egplot eiad eiad-ltx eijkhout einfuehrung ejpecp diff --git a/Master/tlpkg/tlpsrc/collection-fontsextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-fontsextra.tlpsrc index 8e98e47d575..78af6b052c8 100644 --- a/Master/tlpkg/tlpsrc/collection-fontsextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-fontsextra.tlpsrc @@ -79,6 +79,7 @@ depend duerer-latex depend dutchcal depend ean depend ebgaramond +depend ebgaramond-maths depend ecc depend eco depend eiad diff --git a/Master/tlpkg/tlpsrc/ebgaramond-maths.tlpsrc b/Master/tlpkg/tlpsrc/ebgaramond-maths.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d -- cgit v1.2.3