我在 eulervm 积分符号方面遇到了问题。我得到的是通常的倾斜积分符号,而不是预期的直立积分符号。我正在使用 MikTeX 2.9 与 Lyx 2.1.3 结合使用。这是 LyX 导出的代码。在 TeXstudio 中得到的结果相同。
%% LyX 2.1.3 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt]{book}
\usepackage{amsmath}
\usepackage{fontspec}
\setmainfont[Mapping=tex-text]{Footlight MT Light}
\usepackage[b4paper]{geometry}
\geometry{verbose,tmargin=3cm,bmargin=3cm,lmargin=3cm,rmargin=5cm}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setlength{\parskip}{\bigskipamount}
\setlength{\parindent}{0pt}
\usepackage{color}
\usepackage{float}
\usepackage{booktabs}
\usepackage{units}
\usepackage{graphicx}
\usepackage{esint}
\usepackage[unicode=true,pdfusetitle,
bookmarks=false,
breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=true]
{hyperref}
\hypersetup{
linkcolor=RoyalBlue}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
%Footlight MT LIght, Heuristica
%\usepackage[garamond]{mathdesign}
\usepackage{eulervm}
\usepackage[usenames,dvipsnames]{xcolor}
%\newfontfamily\cyrillicfont{Minion Cyr Regular}
%\newfontfamily\cyrillicfont{Times New Roman}
\newfontfamily\cyrillicfont[Ligatures = TeX]{EB Garamond}
%\renewcommand*{\partpagestyle}{empty}
\fancyhead[RE,LO]{\leftmark}
\fancyhead[LE,RO]{\thepage}
\fancyfoot[C]{}
%Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup
%\usepackage[Conny]{fncychap}
\usepackage{titlesec}
\renewcommand{\thechapter}{\Roman{chapter}}
\titleformat{\chapter}[display]
{\bfseries\Large}
{\filright\MakeUppercase{\chaptertitlename} \Huge\thechapter}
{4ex}
{\titlerule
\vspace{2ex}%
\filleft}
[\vspace{2ex}%
\titlerule]
%\DeclareMathSizes{10}{10.5}{7}{7}
\usepackage[labelfont={color=RoyalBlue,bf}]{caption}
\makeatother
\usepackage{xunicode}
\usepackage{polyglossia}
\setdefaultlanguage{serbian}
\begin{document}
\[
P\left(x_{1},x_{2}\right)=\intop_{x_{1}}^{x_{2}}p(x)dx
\]
\end{document}
答案1
该包esint
提供了一些默认字体中没有的积分类型。当然,它使用自己的形状,因此如果您想要欧拉形状,则需要禁用 的加载esint
。
在普通的 LaTeX 文档中,只需删除\usepackage{esint}
(或注释掉)。在 LyX(我不使用也不推荐)中,转到文档 > 设置 > 数学选项,并将 esint 设置为“不加载”。