有没有办法在 newtxttext 中打开或关闭 OSF(旧式图形)?文档 (http://get-software.net/fonts/newtx/doc/newtxdoc.pdf) 并未在文档本身中说明打开或关闭它的命令。
\documentclass[12pt,ngerman]{scrartcl}
\usepackage[english,ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage{babel,csquotes}
\usepackage[T1]{fontenc}
\usepackage[osf,scaled=.95,helvratio=.96]{newtxtext}
\usepackage{newtxmath}
\begin{document}
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of \textsc{Letraset} sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like \textsc{Aldus PageMaker} including versions of Lorem Ipsum.\\
%turn osf off
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. \textsc{Richard McClintock}, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of \textquotedblleft de Finibus Bonorum et Malorum\textquotedblright~(The Extremes of Good and Evil) by \textsc{Cicero}, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, \textquotedblleft Lorem ipsum dolor sit amet\dots \textquotedblright, comes from a line in section 1.10.32.
%turn osf on
\end{document}
答案1
\figureversion
的宏似乎fontaxes
不理解的设置newtxtext
。这个手工制作的版本似乎可以工作。
\documentclass{article}
\usepackage[osf]{newtxtext}
\makeatletter
\newcommand{\figvers}[1]{\csname newtxtext@figure@#1\endcsname}
\newcommand\newtxtext@figure@osf{%
\renewcommand{\rmdefault}{ntxrj}%
\fontfamily\familydefault\selectfont
}
\newcommand\newtxtext@figure@lining{%
\renewcommand{\rmdefault}{ntxrx}%
\fontfamily\familydefault\selectfont
}
\makeatother
\begin{document}
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the
industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and
scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap
into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the
release of \textsc{Letraset} sheets containing Lorem Ipsum passages, and more recently with desktop
publishing software like \textsc{Aldus PageMaker} including versions of Lorem Ipsum.
\figvers{lining}
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of
classical Latin literature from 45 BC, making it over 2000 years old. \textsc{Richard McClintock}, a
Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words,
consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical
literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of
\textquotedblleft de Finibus Bonorum et Malorum\textquotedblright~(The Extremes of Good and Evil) by
\textsc{Cicero}, written in 45 BC. This book is a treatise on the theory of ethics, very popular
during the Renaissance. The first line of Lorem Ipsum, \textquotedblleft Lorem ipsum dolor sit
amet\dots \textquotedblright, comes from a line in section 1.10.32.
\figvers{osf}
1234567890
{\figvers{lining}1234567890}
1234567890
\end{document}
我的观点是,Times New Roman 绝不应该用旧式数字排版,因为这对于它来说不合时宜。