我正在使用这个acro
包。
它包含一个有趣的foreign
关键功能,符合我的需求。
I \input{myacronyms.tex}
,myacronyms.tex
包含大约 450 个缩写词,如下所述。
\DeclareAcronym{aa}{short = allocation d'actifs,long = allocation d'actifs,tag = jargon ,foreign = Asset Allocation,foreign-babel = english ,foreign-locale = french ,plural-form = allocations d'actifs,}
...(还有 400 个类似内容)。
编译下面的 MWE 的编译时间似乎不正常(在 icore 5/miktex/windows 上>1 分钟)。
显然,我首先认为问题出在这一长串的首字母缩略词声明上(虽然我怀疑 450 对于 LaTeX 来说是否太多了),但即使列表很短,它似乎也很慢,所以我想我可能遗漏了其他东西。
可能是我的安装问题吗?如果是,我应该检查什么?
当我将缩写词整合到我的长文档中时,您是否知道如何加快速度(叹气)?
\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage{imakeidx}
%\makeindex
\makeindex[columns=2, title=Alphabetical Index]
\usepackage{acro}
\acsetup{
first-style = long-short,
format/long = \itshape ,
format/short = \bfseries,
index/use = true,
}
\usepackage{hyperref}
\DeclareAcronym{aa}{short = allocation d'actifs,long = allocation d'actifs,tag = jargon ,foreign = Asset Allocation,foreign-babel = english ,foreign-locale = french ,plural-form = allocations d'actifs,}
\DeclareAcronym{aapl}{short = AAPL,long = Apple Inc,tag = ticker ,foreign = Apple Inc,foreign-babel = english ,foreign-locale = french ,extra = prix au 09/07/2021 : 143.24 USD,}
\DeclareAcronym{action}{short = action,long = action,tag = jargon ,foreign = stock,foreign-babel = english ,foreign-locale = french ,plural-form = actions,}
\DeclareAcronym{afb}{short = AFB,long = Association Bancaire Française,tag = abbrev ,}
\DeclareAcronym{alm}{short = ALM,long = Asset And Liability Management,tag = abbrev ,foreign = Gestion Actif-Passif,foreign-babel = french ,foreign-locale = english ,}
\DeclareAcronym{am}{short = \ensuremath{\mathcal{AM}},long = gestion d'actifs ,tag = abbrev ,foreign = Asset Management,foreign-babel = english ,foreign-locale = french ,sort = A,}
\DeclareAcronym{AM}{short = FOR TEST,long = FOR TEST,foreign = FOR TEST,}
\DeclareAcronym{amex}{short = AMEX,long = American Stock Exchange,tag = abbrev ,foreign = ,}
\DeclareAcronym{amf}{short = AMF,long = Autorité des marchés financiers,tag = abbrev ,}
\DeclareAcronym{aoa}{short = AOA,long = Absence d'Opportunité d'Arbitrage,tag = abbrev ,foreign = Absence of Arbitrage Opportunity,foreign-babel = english ,foreign-locale = french ,}
\DeclareAcronym{ape}{short = APE,long = Appel Publique à l'\'Epargne,tag = abbrev ,}
\DeclareAcronym{ar}{short = actif risqué,long = actif risqué,tag = jargon,foreign = risky asset,foreign-babel = english ,foreign-locale = french ,plural-form = actifs risqués,}
\DeclareAcronym{asian}{short = asian,long = asiatique,tag = jargon,foreign = asian,foreign-babel = english ,foreign-locale = french ,plural-form = asiatiques,}
\DeclareAcronym{asj}{short = ASJ,long = actif sous-jacent ,tag = abbrev ,foreign = Underlying,foreign-babel = english ,foreign-locale = french ,plural-form = actifs sous-jacent,}
\begin{document}
\chapter{Test}
Just a check
\ac{aa}
\ac{aapl}
\ac{afb}
\ac{alm}
\printindex
\end{document}
答案1
编译下面的 MWE 的编译时间似乎不正常(在 icore 5/miktex/windows 上>1 分钟)。
我尝试使用最新 MiKteX 发行版中的 Texmaker 来运行您的代码。
不管怎样,如果我选择 Lualatex+View pdf,或者 Pdflatex + View pdf,它几乎正好需要 7 秒。如果我删除所有定义及其调用,它可能会快 1 秒。