achemso-control 与 natbib 无法正常运行

achemso-control 与 natbib 无法正常运行

我正在使用achemso.bst带有 natbib 的 bib 文件,下面是最小工作示例以及achemso-control重现我的问题的条目:

\documentclass[12pt, letter,oneside]{book}
\usepackage[numbers, super, sort&compress]{natbib}
\bibliographystyle{achemso}
\usepackage{txfonts}

\AtBeginDocument{\nocite{achemso-control}}

\begin{document}
    The researcher found a literature procedure.\cite{Betzler2013}
    \bibliography{bibliography}
\end{document}

在此处输入图片描述

我正在使用的 achemso-control 位于我的主要 bibliography.bib 文件中,但在这里重现以查看:

@Control{achemso-control,
    ctrl-article-title = "yes",
    ctrl-doi = "yes",
    ctrl-etal-number = 0,
}

第一个问题是即使使用控件,文章标题也不会出现。DOI 确实出现了,但字体不对。我使用的任何软件包都无法解决标题不显示的问题。

我已经将导致问题的软件包缩小到txfonts导致问题的软件包。这是一篇化学论文;但是,我确实希望主字体是 Times 字体。这是文档中唯一的字体声明,所以我不确定为什么 txfonts 会针对参考文献的不同方面显示不同的 Times 字体。

对于字体问题或缺少标题显示的问题,我是否错过了一个明显的解决方法?

围兜参赛帮助:

@article{Betzler2013,
   abstract = {<p> The synthesis of the nitrogen‐rich glycidyl‐5‐(carboxyethyl‐1 <italic>H</italic> ‐tetrazole)polymer ( <bold>4</bold> ) by the reaction of glycidyl azide polymer (GAP) and ethyl cyanoformate ( <bold>2</bold> ) is described. Moreover, the polymer precursor 1,2‐bis(5‐carboxyethyl‐1 <italic>H</italic> ‐tetrazolyl)ethane ( <bold>3</bold> ), containing two tetrazole moieties, was obtained by reacting compound <bold>2</bold> and 1,2‐diazidoethane ( <bold>1</bold> ). The substances were characterized by using vibrational spectroscopy (IR), mass spectrometry, as well as multinuclear NMR spectroscopy. Compound <bold>3</bold> was additionally characterized by single‐crystal X‐ray diffraction measurements. The thermal stability of <bold>3</bold> was determined by differential scanning calorimetry, which reveals that this compound is a highly stable molecule. </p>},
   author = {Franziska M. Betzler and Thomas M. Klapötke and Stefan M. Sproll},
   doi = {10.1002/ejoc.201201201},
   issn = {1434-193X},
   issue = {3},
   journal = {European Journal of Organic Chemistry},
   month = {1},
   pages = {509-514},
   title = {Synthesis of Glycidyl‐5‐(carboxyethyl‐1 H‐tetrazole)polymer and 1,2‐Bis(5‐carboxyethyl‐1 H ‐tetrazolyl)ethane as Polymeric Precursor},
   volume = {2013},
   year = {2013},
}

编辑信息:目录中有一个额外的内容achemso.bst,这就是导致标题即使有条目也不会出现的原因achemso-control

这是.blg文件:

This is BibTeX, Version 0.99d (TeX Live 2023)
Capacity: max_strings=200000, hash_size=200000, hash_prime=170003
The top-level auxiliary file: sandbox2.aux
The style file: achemso.bst
Reallocated singl_function (elt_size=4) to 100 items from 50.
Database file #1: bibliography.bib
achemso 2024-01-30 v3.13g
You've used 2 entries,
            2538 wiz_defined-function locations,
            753 strings with 6697 characters,
and the built_in function-call counts, 537 in all, are:
= -- 40
> -- 20
< -- 2
+ -- 9
- -- 7
* -- 47
:= -- 70
add.period$ -- 2
call.type$ -- 2
change.case$ -- 2
chr.to.int$ -- 1
cite$ -- 2
duplicate$ -- 31
empty$ -- 39
format.name$ -- 7
if$ -- 97
int.to.chr$ -- 0
int.to.str$ -- 1
missing$ -- 0
newline$ -- 34
num.names$ -- 3
pop$ -- 5
preamble$ -- 1
purify$ -- 0
quote$ -- 0
skip$ -- 1
stack$ -- 0
substring$ -- 26
swap$ -- 26
text.length$ -- 2
text.prefix$ -- 0
top$ -- 1
type$ -- 11
warning$ -- 0
while$ -- 6
width$ -- 0
write$ -- 42

答案1

您没有提供示例,但斜线零是等宽字体中使用的标准txfonts(也是较新的替代品newtx

也许您更愿意将 DOI 设置为无衬线字体,而不是等宽字体

在此处输入图片描述


\documentclass[12pt]{book}

%\usepackage{txfonts}
\usepackage{newtx}



\begin{document}
  0123 \texttt{0123} \textsf{0123}
\end{document}

配套包装newtxtt实际上提供了几种不同宽度的 tt 0 样式,有斜线或无斜线,因此选择无斜线样式

在此处输入图片描述

\documentclass[12pt]{book}

%\usepackage{txfonts}
\usepackage{newtx}
\usepackage[zerostyle=a]{newtxtt}


\begin{document}
  0123 \texttt{0123} \textsf{0123}
\end{document}

相关内容