数学模式中的 \acute 重音符号 gfsartemisia-euler

数学模式中的 \acute 重音符号 gfsartemisia-euler

我想\acute在数学模式中使用重音,但在 pdf 文件中得到了错误的输出。谢谢。

\documentclass[a4paper,openright,12pt]{book}
\usepackage[utf8]{inputenc}
\usepackage{gfsartemisia-euler}
\usepackage{tipa}
\usepackage[T1]{fontenc}
\usepackage[spanish, es-tabla]{babel}
\usepackage[a4paper, total={160mm, 240mm}]{geometry}
\usepackage{fancyhdr}
\usepackage{fonttable}
\usepackage{emptypage}
\usepackage{xpatch}
\usepackage{afterpage}
\usepackage{amssymb} 
    \usepackage{frcursive}
\usepackage{calligra}

\usepackage{blindtext}

\usepackage{array}
\usepackage{colortbl}



\usepackage{bm}
\usepackage{textcomp}
\usepackage{upgreek}


\begin{document}

$\acute{a}$


\end{document}

答案1

非常简单的例子:

\documentclass{article}
\usepackage{gfsartemisia-euler}
\usepackage[T1]{fontenc}

\begin{document}

$\acute{a}$

\end{document}

您的包的加载顺序错误:gfsartemisia-euler应该在之后调用包fontenc

针对您的(非最小)示例的解决方案,其中包含一些重要的更改。请仔细阅读更改的文件;最相关的是整理源代码。请注意,该包epsfig已过时,不应在较新的文档中使用。

\documentclass[a4paper,openright,12pt]{book}

%% pagination
\usepackage[
  a4paper,
  total={160mm, 240mm},
  headheight=20pt,
  heightrounded,
]{geometry}

%% general settings
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[spanish, es-tabla]{babel}

%% fonts
\usepackage{gfsartemisia-euler}
\usepackage{tipa}
\usepackage{frcursive}
\usepackage{calligra}
\usepackage{amssymb}
\usepackage{textcomp}
\usepackage{upgreek}
\usepackage{bm}

%% other packages
\usepackage{fancyhdr}
\usepackage{fonttable}
\usepackage{emptypage}
\usepackage{xpatch}
\usepackage{afterpage}
\usepackage{float}
\usepackage{blindtext}
\usepackage[]{appendix}
\usepackage{array}
\usepackage{colortbl}
\usepackage{epigraph}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{csquotes}
\usepackage{titlesec}
\usepackage{tocloft}
\usepackage{tabu}
\usepackage{multirow}
\usepackage[table]{xcolor}
\usepackage[labelfont=bf]{caption}
%\usepackage[texindy]{imakeidx}
\usepackage[
  backend=bibtex,
  bibencoding=ascii,
  style=chem-angew,
  citestyle=numeric-comp,
  sorting=none,
]{biblatex}

%% fancyhdr
\pagestyle{fancy} 
\fancypagestyle{plain}{%
  \renewcommand{\headrulewidth}{0.5pt}%
  \renewcommand{\footrulewidth}{0.5pt}%
}
\fancypagestyle{chapterfirstpage}{%
  \renewcommand{\headrulewidth}{0pt}%
  \renewcommand{\footrulewidth}{0.5pt}%
  \fancyhf{}%
  \fancyfoot[R]{\thepage}%
}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}}

\patchcmd{\chapter}
  {\thispagestyle{plain}}
  {\thispagestyle{chapterfirstpage}}
  {\typeout{Success}}{\typeout{Failed}\rule[0pt]{\textwidth}{1pt}}

%% biblatex
\addbibresource{biblio} 
\defbibheading{bibliography}[\bibname]{%
  \chapter*{#1}%
  \lhead[Bibliografía]{}%
  \rhead[]{Bibliografía}%
}

%% epigraph
%\renewcommand{\epigraphrule}{0pt}
\setlength{\epigraphwidth}{1\textwidth}
%\renewcommand{\textflush}{flushepinormal}
\renewcommand{\textflush}{flushepinormal}
\renewcommand{\sourceflush}{flushepinormal}

%% graphicx
\graphicspath{{./figuras/}}

%% xcolor
\definecolor{lightgray}{gray}{0.9}

%% titlesec
\titleformat{\chapter}{\huge}{\thechapter.}{0.1em}{\Huge}

%% tocloft
\renewcommand\cftchapaftersnum{.}

%% personal commands
\newcommand\blankpage{%
  \null
  \thispagestyle{empty}%
  \addtocounter{page}{-1}%
  \newpage
}

%% final settings
\makeindex
\setcounter{secnumdepth}{3} % para que ponga 1.1.1.1..
\setcounter{tocdepth}{3} % para que añadir las secciones en el índice...
\raggedbottom

\begin{document}

$\acute{a}$

\end{document}

相关内容