不带 oldstylenumbers 的 garamond 字体

不带 oldstylenumbers 的 garamond 字体

我的出版社必须使用 Garamond。有没有办法使用 Garamond 包而不使用旧式数字?

以下是我用于 pdflatex 的软件包:

\documentclass[twoside,Numbers=Lining,3.5headlines,smallheadings,10.5pt,
               tocleft,idxtotoc,final]{scrreprt}
% Fonts for pdflatex:
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{ngerman}
\usepackage{garamond}
\renewcommand{\refname}{Literatur}
\renewcommand{\bibname}{Literatur}
\usepackage{soul}
\usepackage{soulutf8}
\sodef\an{}{.1em}{.4em plus.1em}{.8em plus.1em minus.1em}
\newcommand{\mycohead}[1]{\cohead {\an{ #1}\parbox[t][2mm][t]{0pt}{}}}
\newcommand{\mycehead}[1]{\cehead {\an{ #1}\parbox[t][2mm][t]{0pt}{}}}
%----------------------
\usepackage{eurosym}
\usepackage{lscape}
\usepackage[dvipsdoc]{rotating}
\usepackage{rotating}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsmath, amssymb, graphics}
\usepackage{exscale,latexsym}
\usepackage{setspace}
%\usepackage[flushmargin]{footmisc}
\usepackage{pict2e}
\usepackage{graphpap}
%\usepackage{subfigure}
\usepackage{europs}
%\usepackage{natbib}
%\usepackage[small]{caption}
\usepackage{amssymb}
\usepackage{wasysym}
\usepackage[dvips]{epsfig}
\usepackage{graphicx}
%\usepackage{color}
\usepackage{scrpage2}
\usepackage{tocloft}
%\usepackage{verbatim}
\usepackage{titlesec}
% page format
\usepackage{geometry}
\geometry{verbose, twoside, paperheight=213mm, paperwidth=140mm, textwidth=108mm, textheight=172mm}
%----------------------
\usepackage{manyfoot}
\usepackage[nottoc]{tocbibind}
\usepackage{upgreek}
%\usepackage{array}
% caption italics
\usepackage[font={it}]{caption}
%----------------------
\usepackage[alwaysadjust]{paralist}
\begin{document}
\garamond
\addcontentsline{toc}{chapter}{1 Einleitung}
\mycohead{Einleitung}
\chapter*{1 Einleitung
\\
\vspace{6pt}
\mbox{}
\\\mbox{}
\\\mbox{}
}
This is the basic header. The font seems to be the garamond font.
The numbers are: 123456789. But should be without the old style.
\ungaramond
\\
\\
From here: the garamond is ignored.
This is the standard font and the numbers are: 123456789
\\
\\
But the book has more than 2 hundred pages with thousands of numbers and therefore I need a global routine for avoiding old-style-numbers.
\end{document}

答案1

EB 加拉蒙德是一款出色的、功能齐全的(并且开源!)Garamond 字体,支持 OldStyle 和 Lining 数字。

它甚至有 OldStyle 数字的变体,以区别于小型大写字母。

样本样式表

您将需要使用fontspec(XeTeX 或 LuaTeX):

\documentclass{minimal}
\usepackage{fontspec}
\setmainfont{EB Garamond}

\begin{document}

Let's count: 1, 2, 3, 3.1415

\addfontfeatures{Numbers={Lining}}
Let's count: 1, 2, 3, 3.1415

\end{document}

EB Garamond:OldStyle 和 Lining 样式

答案2

我真的不是这方面的专家,但你可能只需要使用 mathdesign-package 和 urw-garamond 即可(\usepackage[urw-garamond]{mathdesign} ) 的 mathdesign-package 即可,因为它默认会生成正常数字。(http://www.tug.dk/FontCatalogue/garamond/

答案3

我使用包xagaramon,如果您将选项传递给它,它只会生成旧式图形osf。但是有这么多不同的名为 garamond 的字体,我无法完全确定您的问题是否是同一种字体。我使用的是 Adob​​e Garamond Pro,它(对于我大约 10 年前的特殊安装)涉及pad其所有文件的前缀(例如,我的 texmf 树中有该文件pad.map;您可以kpsewhich pad.map在命令行中使用它来检查这一点)。

(此外,据我研究使用这些支持文件时所知,URW Garamond 与 Adob​​e Garamond 基本无关;它们肯定不涉及可互换的 .sty 文件。)

答案4

不要加载garamond包,而是ebgaramond使用lining选项加载。为了获得良好的数学支持,请注释掉该newtxmath行。

\documentclass{article}
\usepackage[lining]{ebgaramond}
%\usepackage[ebgaramond]{newtxmath}
\begin{document}
 1234567890 \oldstylenums{1234567890}
\end{document} 

衬线数字

ebgaramond只需一行usepackage代码就可以达到同样的效果(有数学支持)

\documentclass{article}
\usepackage[ebgaramond,lining]{newtx}
\begin{document}
 1234567890 \oldstylenums{1234567890}
\end{document}

相关内容