内联方程式的奇怪问题 $..$

内联方程式的奇怪问题 $..$

我的 latex 构建系统遇到了这个奇怪的问题。我使用 MacTex 2017,我已清理所有旧脚本并根据以下情况重新安装说明。这是我的问题:$f(x)$将显示无括号。 并且对于像nicefrac$..$ 中的内容\,将被忽略:$MR_{LLC} = \nicefrac{a}{b}$显示为MR_LLC = ab

我尝试使用\(..\),但没有解决问题。

另一方面,我使用 ubuntu 16.04 上的 texlive 来构建 pdf,并没有发生这些问题。

有人知道可能出了什么问题吗?

以下是示例代码(这是一个很大的文档,因此需要大多数包):

\documentclass[format=acmsmall, review=false, screen=true]{acmart}

\usepackage{nicefrac}
\usepackage{booktabs} % For formal tables
\usepackage{fixltx2e}
\usepackage{balance}
\usepackage{mathptmx} % This is Times font
\usepackage{fancyhdr}
\usepackage[normalem]{ulem}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage[normalem]{ulem}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{flushend}
\usepackage{xcolor}
\usepackage{listings}
\usepackage{enumerate}
\usepackage{indentfirst}
\usepackage{array}
\usepackage{tablefootnote}
\usepackage{threeparttable}
\usepackage{siunitx}
\usepackage{placeins}
\usepackage{mdframed}
\newmdenv[topline=false,rightline=false]{leftbot}

\colorlet{light-gray}{gray!20}


\usepackage[hang,flushmargin,bottom,multiple]{footmisc}

% custom
\newcommand{\ignore}[1]{}
\newcommand{\todo}[1]{{\color{red}\textbf{TODO}: #1}}
\newcommand{\needcite}[0]{{\color{red}[NeedCite]}}
\newcommand{\needref}[0]{{\color{purple}NeedRef}}
\newcommand{\lifeng}[1]{{\color{blue}\textbf{Lifeng}: #1}}


\newcommand\blfootnote[1]{%
  \begingroup
  \renewcommand\thefootnote{}\footnote{#1}%
  \addtocounter{footnote}{-1}%
  \endgroup
}


\usepackage{algorithm,algpseudocode}
\usepackage[font=small,labelfont=bf,
   justification=justified,
   format=plain]{caption}
\lstset{
  basicstyle=\footnotesize\ttfamily,
  language=C++,
  numbers=left,
  numbersep=5pt,
  stepnumber=1,
  numberstyle=\tiny\color{black},
  captionpos=b,
  mathescape=true
}



% Copyright
%\setcopyright{none}
%\setcopyright{acmcopyright}
\setcopyright{acmlicensed}
%\setcopyright{rightsretained}
%\setcopyright{usgov}
%\setcopyright{usgovmixed}
%\setcopyright{cagov}
%\setcopyright{cagovmixed}


% DOI
%\acmDOI{}
%
%% ISBN
%\acmISBN{}

%Conference
\acmYear{2017}

%\copyrightyear{2017}

%\acmPrice{15.00}

\acmJournal{TACO}

\setcitestyle{numbers,sort&compress}

\begin{document}

$f(x)$

$\nicefrac{a}{b}$



\end{document}

显示为:

enter image description here

以下是输出(我使用 Texpad 作为前端):

/Library/TeX/texbin/pdflatex -file-line-error -interaction=nonstopmode -synctex=1 -output-directory=/var/folders/5f/9jwcvzb578gb03bjdjgr3wrw0000gn/T/workspace_temporary_path_107202387273792/.texpadtmp root.tex

This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./root.tex
LaTeX2e <2017-04-15>
Babel <3.10> and hyphenation patterns for 84 language(s) loaded.
(/usr/local/texlive/2017/texmf-dist/tex/latex/acmart/acmart.cls
Document Class: acmart 2017/05/14 v1.39 Typesetting articles for Association of Computing Machinery
(/usr/local/texlive/2017/texmf-dist/tex/latex/xkeyval/xkeyval.sty (/usr/local/texlive/2017/texmf-dist/tex/generic/xkeyval/xkeyval.tex (/usr/local/texlive/2017/texmf-dist/tex/generic/xkeyval/xkvutils.tex (/usr/local/texlive/2017/texmf-dist/tex/generic/xkeyval/keyval.tex)))) (/usr/local/texlive/2017/texmf-dist/tex/generic/xstring/xstring.sty (/usr/local/texlive/2017/texmf-dist/tex/generic/xstring/xstring.tex)) (/usr/local/texlive/2017/texmf-dist/tex/latex/amscls/amsart.cls
Document Class: amsart 2015/03/04 v2.20.2
(/usr/local/texlive/2017/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2017/texmf-dist/tex/latex/amsmath/amstext.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/amsmath/amsgen.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/amsmath/amsbsy.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/amsmath/amsopn.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/amsfonts/umsa.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/amsfonts/amsfonts.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/microtype.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/microtype-pdftex.def) (/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/microtype.cfg)) (/usr/local/texlive/2017/texmf-dist/tex/latex/totpages/totpages.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/ms/everyshi.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/environ/environ.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/trimspaces/trimspaces.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/natbib/natbib.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/hyperref/hyperref.sty (/usr/local/texlive/2017/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty (/usr/local/texlive/2017/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty)) (/usr/local/texlive/2017/texmf-dist/tex/generic/ifxetex/ifxetex.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/auxhook.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/kvoptions.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/hyperref/pd1enc.def) (/usr/local/texlive/2017/texmf-dist/tex/latex/latexconfig/hyperref.cfg) (/usr/local/texlive/2017/texmf-dist/tex/latex/hyperref/puenc.def) (/usr/local/texlive/2017/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver (autodetected): hpdftex.

(/usr/local/texlive/2017/texmf-dist/tex/latex/hyperref/hpdftex.def (/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/graphics.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/trig.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) (/usr/local/texlive/2017/texmf-dist/tex/latex/graphics-def/pdftex.def))) (/usr/local/texlive/2017/texmf-dist/tex/latex/xcolor/xcolor.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg)) (/usr/local/texlive/2017/texmf-dist/tex/latex/geometry/geometry.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/ncctools/manyfoot.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/ncctools/nccfoots.sty)) (/usr/local/texlive/2017/texmf-dist/tex/generic/iftex/iftex.sty) (/usr/local/texlive/2017/texmf-dist/tex/generic/pdftex/glyphtounicode.tex) (/usr/local/texlive/2017/texmf-dist/tex/latex/cmap/cmap.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/libertine/libertine.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/base/textcomp.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/base/ts1enc.def)) (/usr/local/texlive/2017/texmf-dist/tex/latex/mweights/mweights.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/base/fontenc.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/fontaxes/fontaxes.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/libertine/LinLibertine_I.tex)) (/usr/local/texlive/2017/texmf-dist/tex/latex/inconsolata/zi4.sty `inconsolata-zi4' v1.112, 2017/01/04 Text macros for Inconsolata (msharpe)) (/usr/local/texlive/2017/texmf-dist/tex/latex/newtx/newtxmath.sty `newtxmath' v1.518, 2017/02/12 Math macros based on txfonts (msharpe) (/usr/local/texlive/2017/texmf-dist/tex/generic/kastrup/binhex.tex)) (/usr/local/texlive/2017/texmf-dist/tex/latex/base/fontenc.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/base/t1enc.def)<<t1.cmap>>)
(/usr/local/texlive/2017/texmf-dist/tex/latex/caption/caption.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/caption/caption3.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/float/float.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/comment/comment.sty Excluding comment 'comment') Excluding comment 'CCSXML' (/usr/local/texlive/2017/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty) Special comment 'acks' Include comment 'screenonly' Excluding comment 'printonly' Include comment 'anonsuppress' (/usr/local/texlive/2017/texmf-dist/tex/latex/libertine/T1LinuxLibertineT-TLF.fd)) (/usr/local/texlive/2017/texmf-dist/tex/latex/units/nicefrac.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/base/ifthen.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/booktabs/booktabs.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/base/fixltx2e.sty

Package fixltx2e Warning: fixltx2e is not required with releases after 2015
(fixltx2e)                All fixes are now in the LaTeX kernel.
(fixltx2e)                See the latexrelease package for details.

) (/usr/local/texlive/2017/texmf-dist/tex/latex/preprint/balance.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/psnfss/mathptmx.sty) (/usr/local/texlive/2017/texmf-dist/tex/generic/ulem/ulem.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/multirow/multirow.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/sttools/flushend.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/etoolbox/etoolbox.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/listings/listings.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/listings/lstmisc.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/listings/listings.cfg)) (/usr/local/texlive/2017/texmf-dist/tex/latex/tools/enumerate.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/tools/indentfirst.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/tools/array.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/tablefootnote/tablefootnote.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/xifthen/xifthen.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/tools/calc.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/ifmtarg/ifmtarg.sty))) (/usr/local/texlive/2017/texmf-dist/tex/latex/threeparttable/threeparttable.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/siunitx/siunitx.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/l3kernel/expl3-code.tex) (/usr/local/texlive/2017/texmf-dist/tex/latex/l3kernel/l3pdfmode.def)) (/usr/local/texlive/2017/texmf-dist/tex/latex/l3packages/xparse/xparse.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/beamer/translator/translator.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/beamer/translator/translator-language-mappings.tex))) (/usr/local/texlive/2017/texmf-dist/tex/latex/placeins/placeins.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/mdframed/mdframed.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/zref-abspage.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/zref-base.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/needspace/needspace.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/mdframed/md-frame-0.mdf)) (/usr/local/texlive/2017/texmf-dist/tex/latex/footmisc/footmisc.sty

LaTeX Warning: Command \@footnotemark  has changed.
               Check if current package is valid.

) (/usr/local/texlive/2017/texmf-dist/tex/latex/algorithms/algorithm.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/algorithmicx/algpseudocode.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/algorithmicx/algorithmicx.sty
Document Style algorithmicx 1.2 - a greatly improved `algorithmic' style
)
Document Style - pseudocode environments for use with the `algorithmicx' style
) (/usr/local/texlive/2017/texmf-dist/tex/latex/listings/lstlang1.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/listings/lstlang1.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/listings/lstmisc.sty) (/var/folders/5f/9jwcvzb578gb03bjdjgr3wrw0000gn/T/workspace_temporary_path_107202387273792/.texpadtmp/root.aux) (/usr/local/texlive/2017/texmf-dist/tex/latex/newtx/omlnxlmi.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/newtx/untxexa.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/base/ts1cmr.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/newtx/lmsntxsy.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/newtx/lmxntxexx.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/psnfss/t1ptm.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/psnfss/ot1ztmcm.fd)<<ot1.cmap>> (/usr/local/texlive/2017/texmf-dist/tex/latex/psnfss/omlztmcm.fd)<<oml.cmap>> (/usr/local/texlive/2017/texmf-dist/tex/latex/psnfss/omsztmcm.fd)<<oms.cmap>> (/usr/local/texlive/2017/texmf-dist/tex/latex/psnfss/omxztmcm.fd)<<omx.cmap>> (/usr/local/texlive/2017/texmf-dist/tex/latex/amsfonts/umsa.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/amsfonts/umsb.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/newtx/untxmia.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/newtx/untxsym.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/newtx/untxsyc.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/psnfss/ot1ptm.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/mt-ptm.cfg) ABD: EveryShipout initializing macros (/usr/local/texlive/2017/texmf-dist/tex/latex/hyperref/nameref.sty (/usr/local/texlive/2017/texmf-dist/tex/generic/oberdiek/gettitlestring.sty)) (/var/folders/5f/9jwcvzb578gb03bjdjgr3wrw0000gn/T/workspace_temporary_path_107202387273792/.texpadtmp/root.out) (/var/folders/5f/9jwcvzb578gb03bjdjgr3wrw0000gn/T/workspace_temporary_path_107202387273792/.texpadtmp/root.out) (/usr/local/texlive/2017/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/grfext.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
(/usr/local/texlive/2017/texmf-dist/tex/latex/upquote/upquote.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/beamer/translator/dicts/translator-basic-dictionary/translator-basic-dictionary-English.dict) (/usr/local/texlive/2017/texmf-dist/tex/latex/siunitx/siunitx-abbreviations.cfg) (/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/mt-msa.cfg) (/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/mt-msb.cfg) (/usr/local/texlive/2017/texmf-dist/tex/latex/libertine/OT1LinuxBiolinumT-TLF.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/inconsolata/ot1zi4.fd) [1.1{/usr/local/texlive/2017/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (/var/folders/5f/9jwcvzb578gb03bjdjgr3wrw0000gn/T/workspace_temporary_path_107202387273792/.texpadtmp/root.aux) )
(see the transcript file for additional information){/usr/local/texlive/2017/texmf-dist/fonts/enc/dvips/base/8r.enc}</usr/local/texlive/2017/texmf-dist/fonts/type1/urw/times/utmr8a.pfb></usr/local/texlive/2017/texmf-dist/fonts/type1/urw/times/utmri8a.pfb>
Output written on /var/folders/5f/9jwcvzb578gb03bjdjgr3wrw0000gn/T/workspace_temporary_path_107202387273792/.texpadtmp/root.pdf (1 page, 14233 bytes).
SyncTeX written on /var/folders/5f/9jwcvzb578gb03bjdjgr3wrw0000gn/T/workspace_temporary_path_107202387273792/.texpadtmp/root.synctex.gz.
Transcript written on /var/folders/5f/9jwcvzb578gb03bjdjgr3wrw0000gn/T/workspace_temporary_path_107202387273792/.texpadtmp/root.log.


/Library/TeX/texbin/pdflatex -file-line-error -interaction=nonstopmode -synctex=1 -output-directory=/var/folders/5f/9jwcvzb578gb03bjdjgr3wrw0000gn/T/workspace_temporary_path_107202387273792/.texpadtmp root.tex

This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./root.tex
LaTeX2e <2017-04-15>
Babel <3.10> and hyphenation patterns for 84 language(s) loaded.
(/usr/local/texlive/2017/texmf-dist/tex/latex/acmart/acmart.cls
Document Class: acmart 2017/05/14 v1.39 Typesetting articles for Association of Computing Machinery
(/usr/local/texlive/2017/texmf-dist/tex/latex/xkeyval/xkeyval.sty (/usr/local/texlive/2017/texmf-dist/tex/generic/xkeyval/xkeyval.tex (/usr/local/texlive/2017/texmf-dist/tex/generic/xkeyval/xkvutils.tex (/usr/local/texlive/2017/texmf-dist/tex/generic/xkeyval/keyval.tex)))) (/usr/local/texlive/2017/texmf-dist/tex/generic/xstring/xstring.sty (/usr/local/texlive/2017/texmf-dist/tex/generic/xstring/xstring.tex)) (/usr/local/texlive/2017/texmf-dist/tex/latex/amscls/amsart.cls
Document Class: amsart 2015/03/04 v2.20.2
(/usr/local/texlive/2017/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2017/texmf-dist/tex/latex/amsmath/amstext.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/amsmath/amsgen.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/amsmath/amsbsy.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/amsmath/amsopn.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/amsfonts/umsa.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/amsfonts/amsfonts.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/microtype.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/microtype-pdftex.def) (/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/microtype.cfg)) (/usr/local/texlive/2017/texmf-dist/tex/latex/totpages/totpages.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/ms/everyshi.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/environ/environ.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/trimspaces/trimspaces.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/natbib/natbib.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/hyperref/hyperref.sty (/usr/local/texlive/2017/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty (/usr/local/texlive/2017/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty)) (/usr/local/texlive/2017/texmf-dist/tex/generic/ifxetex/ifxetex.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/auxhook.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/kvoptions.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/hyperref/pd1enc.def) (/usr/local/texlive/2017/texmf-dist/tex/latex/latexconfig/hyperref.cfg) (/usr/local/texlive/2017/texmf-dist/tex/latex/hyperref/puenc.def) (/usr/local/texlive/2017/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver (autodetected): hpdftex.

(/usr/local/texlive/2017/texmf-dist/tex/latex/hyperref/hpdftex.def (/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/graphics.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/trig.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) (/usr/local/texlive/2017/texmf-dist/tex/latex/graphics-def/pdftex.def))) (/usr/local/texlive/2017/texmf-dist/tex/latex/xcolor/xcolor.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg)) (/usr/local/texlive/2017/texmf-dist/tex/latex/geometry/geometry.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/ncctools/manyfoot.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/ncctools/nccfoots.sty)) (/usr/local/texlive/2017/texmf-dist/tex/generic/iftex/iftex.sty) (/usr/local/texlive/2017/texmf-dist/tex/generic/pdftex/glyphtounicode.tex) (/usr/local/texlive/2017/texmf-dist/tex/latex/cmap/cmap.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/libertine/libertine.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/base/textcomp.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/base/ts1enc.def)) (/usr/local/texlive/2017/texmf-dist/tex/latex/mweights/mweights.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/base/fontenc.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/fontaxes/fontaxes.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/libertine/LinLibertine_I.tex)) (/usr/local/texlive/2017/texmf-dist/tex/latex/inconsolata/zi4.sty `inconsolata-zi4' v1.112, 2017/01/04 Text macros for Inconsolata (msharpe)) (/usr/local/texlive/2017/texmf-dist/tex/latex/newtx/newtxmath.sty `newtxmath' v1.518, 2017/02/12 Math macros based on txfonts (msharpe) (/usr/local/texlive/2017/texmf-dist/tex/generic/kastrup/binhex.tex)) (/usr/local/texlive/2017/texmf-dist/tex/latex/base/fontenc.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/base/t1enc.def)<<t1.cmap>>)
(/usr/local/texlive/2017/texmf-dist/tex/latex/caption/caption.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/caption/caption3.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/float/float.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/comment/comment.sty Excluding comment 'comment') Excluding comment 'CCSXML' (/usr/local/texlive/2017/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty) Special comment 'acks' Include comment 'screenonly' Excluding comment 'printonly' Include comment 'anonsuppress' (/usr/local/texlive/2017/texmf-dist/tex/latex/libertine/T1LinuxLibertineT-TLF.fd)) (/usr/local/texlive/2017/texmf-dist/tex/latex/units/nicefrac.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/base/ifthen.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/booktabs/booktabs.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/base/fixltx2e.sty

Package fixltx2e Warning: fixltx2e is not required with releases after 2015
(fixltx2e)                All fixes are now in the LaTeX kernel.
(fixltx2e)                See the latexrelease package for details.

) (/usr/local/texlive/2017/texmf-dist/tex/latex/preprint/balance.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/psnfss/mathptmx.sty) (/usr/local/texlive/2017/texmf-dist/tex/generic/ulem/ulem.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/multirow/multirow.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/sttools/flushend.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/etoolbox/etoolbox.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/listings/listings.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/listings/lstmisc.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/listings/listings.cfg)) (/usr/local/texlive/2017/texmf-dist/tex/latex/tools/enumerate.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/tools/indentfirst.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/tools/array.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/tablefootnote/tablefootnote.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/xifthen/xifthen.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/tools/calc.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/ifmtarg/ifmtarg.sty))) (/usr/local/texlive/2017/texmf-dist/tex/latex/threeparttable/threeparttable.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/siunitx/siunitx.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/l3kernel/expl3-code.tex) (/usr/local/texlive/2017/texmf-dist/tex/latex/l3kernel/l3pdfmode.def)) (/usr/local/texlive/2017/texmf-dist/tex/latex/l3packages/xparse/xparse.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/beamer/translator/translator.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/beamer/translator/translator-language-mappings.tex))) (/usr/local/texlive/2017/texmf-dist/tex/latex/placeins/placeins.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/mdframed/mdframed.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/zref-abspage.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/zref-base.sty)) (/usr/local/texlive/2017/texmf-dist/tex/latex/needspace/needspace.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/mdframed/md-frame-0.mdf)) (/usr/local/texlive/2017/texmf-dist/tex/latex/footmisc/footmisc.sty

LaTeX Warning: Command \@footnotemark  has changed.
               Check if current package is valid.

) (/usr/local/texlive/2017/texmf-dist/tex/latex/algorithms/algorithm.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/algorithmicx/algpseudocode.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/algorithmicx/algorithmicx.sty
Document Style algorithmicx 1.2 - a greatly improved `algorithmic' style
)
Document Style - pseudocode environments for use with the `algorithmicx' style
) (/usr/local/texlive/2017/texmf-dist/tex/latex/listings/lstlang1.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/listings/lstlang1.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/listings/lstmisc.sty) (/var/folders/5f/9jwcvzb578gb03bjdjgr3wrw0000gn/T/workspace_temporary_path_107202387273792/.texpadtmp/root.aux) (/usr/local/texlive/2017/texmf-dist/tex/latex/newtx/omlnxlmi.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/newtx/untxexa.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/base/ts1cmr.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/newtx/lmsntxsy.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/newtx/lmxntxexx.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/psnfss/t1ptm.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/psnfss/ot1ztmcm.fd)<<ot1.cmap>> (/usr/local/texlive/2017/texmf-dist/tex/latex/psnfss/omlztmcm.fd)<<oml.cmap>> (/usr/local/texlive/2017/texmf-dist/tex/latex/psnfss/omsztmcm.fd)<<oms.cmap>> (/usr/local/texlive/2017/texmf-dist/tex/latex/psnfss/omxztmcm.fd)<<omx.cmap>> (/usr/local/texlive/2017/texmf-dist/tex/latex/amsfonts/umsa.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/amsfonts/umsb.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/newtx/untxmia.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/newtx/untxsym.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/newtx/untxsyc.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/psnfss/ot1ptm.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/mt-ptm.cfg) ABD: EveryShipout initializing macros (/usr/local/texlive/2017/texmf-dist/tex/latex/hyperref/nameref.sty (/usr/local/texlive/2017/texmf-dist/tex/generic/oberdiek/gettitlestring.sty)) (/var/folders/5f/9jwcvzb578gb03bjdjgr3wrw0000gn/T/workspace_temporary_path_107202387273792/.texpadtmp/root.out) (/var/folders/5f/9jwcvzb578gb03bjdjgr3wrw0000gn/T/workspace_temporary_path_107202387273792/.texpadtmp/root.out) (/usr/local/texlive/2017/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/grfext.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
(/usr/local/texlive/2017/texmf-dist/tex/latex/upquote/upquote.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/beamer/translator/dicts/translator-basic-dictionary/translator-basic-dictionary-English.dict) (/usr/local/texlive/2017/texmf-dist/tex/latex/siunitx/siunitx-abbreviations.cfg) (/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/mt-msa.cfg) (/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/mt-msb.cfg) (/usr/local/texlive/2017/texmf-dist/tex/latex/libertine/OT1LinuxBiolinumT-TLF.fd) (/usr/local/texlive/2017/texmf-dist/tex/latex/inconsolata/ot1zi4.fd) [1.1{/usr/local/texlive/2017/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (/var/folders/5f/9jwcvzb578gb03bjdjgr3wrw0000gn/T/workspace_temporary_path_107202387273792/.texpadtmp/root.aux) )
(see the transcript file for additional information){/usr/local/texlive/2017/texmf-dist/fonts/enc/dvips/base/8r.enc}</usr/local/texlive/2017/texmf-dist/fonts/type1/urw/times/utmr8a.pfb></usr/local/texlive/2017/texmf-dist/fonts/type1/urw/times/utmri8a.pfb>
Output written on /var/folders/5f/9jwcvzb578gb03bjdjgr3wrw0000gn/T/workspace_temporary_path_107202387273792/.texpadtmp/root.pdf (1 page, 14233 bytes).
SyncTeX written on /var/folders/5f/9jwcvzb578gb03bjdjgr3wrw0000gn/T/workspace_temporary_path_107202387273792/.texpadtmp/root.synctex.gz.
Transcript written on /var/folders/5f/9jwcvzb578gb03bjdjgr3wrw0000gn/T/workspace_temporary_path_107202387273792/.texpadtmp/root.log.

答案1

这与 OS X 和 ubuntu 上的 texlive 之间的差异无关,我在 cygwin 中遇到了同样的问题,日志将显示

Missing character: There is no � in font zptmcm7y!
Missing character: There is no � in font zptmcm7y!
Missing character: There is no � in font zptmcm7y!

Mathptmx 设置与所使用的包不兼容。

mathptmx无论如何都相当古老,一个较新的类似时代的设置是newtxmath

\RequirePackage[full]{textcomp}
\documentclass[format=acmsmall, review=false, screen=true]{acmart}

\usepackage{nicefrac}
%\usepackage{booktabs} % For formal tables
\usepackage{fixltx2e}
\usepackage{balance}
%\usepackage{mathptmx} % This is Times font
\usepackage{newtxtext,newtxmath}
\usepackage{fancyhdr}
\usepackage[normalem]{ulem}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage[normalem]{ulem}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{flushend}
\usepackage{xcolor}
\usepackage{listings}
\usepackage{enumerate}
\usepackage{indentfirst}
\usepackage{array}
\usepackage{tablefootnote}
\usepackage{threeparttable}
\usepackage{siunitx}
\usepackage{placeins}
\usepackage{mdframed}
\newmdenv[topline=false,rightline=false]{leftbot}

\colorlet{light-gray}{gray!20}


\usepackage[hang,flushmargin,bottom,multiple]{footmisc}

% custom
\newcommand{\ignore}[1]{}
\newcommand{\todo}[1]{{\color{red}\textbf{TODO}: #1}}
\newcommand{\needcite}[0]{{\color{red}[NeedCite]}}
\newcommand{\needref}[0]{{\color{purple}NeedRef}}
\newcommand{\lifeng}[1]{{\color{blue}\textbf{Lifeng}: #1}}


\newcommand\blfootnote[1]{%
  \begingroup
  \renewcommand\thefootnote{}\footnote{#1}%
  \addtocounter{footnote}{-1}%
  \endgroup
}


\usepackage{algorithm,algpseudocode}
\usepackage[font=small,labelfont=bf,
   justification=justified,
   format=plain]{caption}
\lstset{
  basicstyle=\footnotesize\ttfamily,
  language=C++,
  numbers=left,
  numbersep=5pt,
  stepnumber=1,
  numberstyle=\tiny\color{black},
  captionpos=b,
  mathescape=true
}



% Copyright
%\setcopyright{none}
%\setcopyright{acmcopyright}
\setcopyright{acmlicensed}
%\setcopyright{rightsretained}
%\setcopyright{usgov}
%\setcopyright{usgovmixed}
%\setcopyright{cagov}
%\setcopyright{cagovmixed}


% DOI
%\acmDOI{}
%
%% ISBN
%\acmISBN{}

%Conference
\acmYear{2017}

%\copyrightyear{2017}

%\acmPrice{15.00}

\acmJournal{TACO}

\setcitestyle{numbers,sort&compress}

\begin{document}

$f(x)$

$\nicefrac{a}{b}$



\end{document}

相关内容