我想知道是否可以将 Concrete 字体与标准 LaTeX 数学字体一起使用。如果可以,有人能告诉我怎么做吗?提前谢谢!
答案1
由于您的问题被标记luatex
和xetex
,我猜您使用 lualatex 或 xelatex 进行编译。
您可以尝试\usepackage{concmath-otf}
。您将获得 OpenType 格式的具体文本字体。如果您不喜欢数学字体,您可以切换回其他字体,例如添加拉丁现代字体
\setmathfont{latinmodern-math.otf}
答案2
整个具体包看起来像
\ProvidesPackage{concrete}[1996/10/08]
\NeedsTeXFormat{LaTeX2e}
% CONCRETE.sty
% Provides fonts for an approximation of the style in _Concrete Mathematics_.
% History.....................
% 96-10-08 Jim Hefferon [email protected]
% It is an FAQ on comp.text.tex that people look on CTAN for a style
% with this name. Seems reasonable. They are always advised to
% \usepackage the two packages below. So here is a wrapper style
% to do that.
% Remarks.....................
% 96-10-08 jh
% There are other styles for Concrete Math (concmath and something
% from AMS-LaTeX 1.1 are the ones that I know of), but this one is
% modular in that if the packages it calls are updated then of
% course, this is updated also). In particular, there are no font
% parameters, etc.
% Bugs........................
% *Unlike the AMS-LaTeX v. 1.1 style file, this makes no attempt to
% provide any grafitti, etc. macros. Just the fonts. (One could
% argue that those are document-style, not font, macros.)
\RequirePackage{beton} % for the text fonts
\RequirePackage{euler} % for the math fonts
\endinput
这意味着如果您只想更改文本字体,您可以直接使用该beton
包:
\usepackage{beton}