我正在使用 biblatex 并以 biber 作为后端。参考书目编译很完美,但现在我在打印参考书目时遇到了问题:似乎参考书目中的某些字符触发了数学环境(类似的东西),从而破坏了通过 Texmaker 进行的 pdf 编译。有趣的是,我可以在通过命令行运行 pdflatex 时“忽略”这个问题,不知道为什么。我的问题是:如何在 .bbl 文件中调试此问题?或者我如何完全忽略它。我正在做一个论文项目,我不想在最后一秒遇到一些复杂的问题。提前谢谢
这是我的代码:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage{csquotes}
\usepackage[T1]{fontenc}
\DeclareUnicodeCharacter{03BC}{\mu}
\DeclareUnicodeCharacter{03BA}{\kappa}
\DeclareUnicodeCharacter{2009}{ }
\usepackage{mdframed}
\title{COPD and Chronic HIV Pulmonary Disease}
\author{Simone Neri}
\usepackage[backend=biber, sorting=none]{biblatex}
\addbibresource{../bibtex/Letteratura.bib}
\addbibresource{../bibtex/HIVCOPD_comorbid.bib}
\addbibresource{../bibtex/litreview.bib}
\begin{document}
blablabla \cite{x} \cite{y}
\printbibliography
\end{document}
这是日志文件
-- In this line something weird happens but everything goes fine
LaTeX Font Info: Try loading font information for OMS+cmr on input line 32.
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/omscmr.fd
File: omscmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions
)
LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <10> not available
(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 32.
[...]
--here real problems start
[5] [6]
! Missing $ inserted.
<inserted text>
$
l.131 \end
{document}
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <7> on input line 130.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 130.
! Missing $ inserted.
<inserted text>
$
l.131 \end
{document}
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
Overfull \hbox (78.91812pt too wide) in paragraph at lines 131--131
\OML/cmm/m/it/10 asubstudyoftheINSIGHTStrategicTimingofAntiRetroviralTreatment\
OT1/cmr/m/n/10 (\OML/cmm/m/it/10 START\OT1/cmr/m/n/10 )\OML/cmm/m/it/10 trial:$
\T1/cmr/m/n/10 ^^T.
[]
[7]
! Missing $ inserted.
<inserted text>
$
l.131 \end
{document}
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
! Missing $ inserted.
<inserted text>
$
l.131 \end
{document}
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
Overfull \hbox (19.52454pt too wide) in paragraph at lines 131--131
\T1/cmr/m/n/10 flam-ma-to-ry Cy-to-ki-nes by Hu-man Den-dri-tic Cells and Mo-no
-cy-tes/Macrophages
[]
! Missing $ inserted.
<inserted text>
$
l.131 \end
{document}
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
! Missing $ inserted.
<inserted text>
$
l.131 \end
{document}
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
Overfull \hbox (79.47566pt too wide) in paragraph at lines 131--131
[]\T1/cmr/m/n/10 Arvind Pan-day et al. ^^S Trans-crip-tion Fac-tor NF-$\OML/cm
m/m/it/10 ^^TB \OT1/cmr/m/n/10 : \OML/cmm/m/it/10 AnUpdateonInterventionStrateg
ies:$\T1/cmr/m/n/10 ^^T.
[]
感谢大家
答案1
好吧,现在这很尴尬,但我自己找到了解决方案。问题是
\DeclareUnicodeCharacter{03BC}{\mu}
\DeclareUnicodeCharacter{03BA}{\kappa}
我过去常常在科学论文标题中阅读希腊字母 mu 和 kappa,因为它们自动与数学环境相关。
这是使用 textgreek 包的解决方案
\usepackage[utf8]{inputenc}
\usepackage{textgreek}
\usepackage[italian]{babel}
\usepackage{csquotes}
\usepackage[T1]{fontenc}
\DeclareUnicodeCharacter{03BC}{\textmugreek}
\DeclareUnicodeCharacter{03BA}{\textkappa}
\DeclareUnicodeCharacter{2009}{ }
因此没有数学环境被称为