Latex Bibtex错误编译重音符号

Latex Bibtex错误编译重音符号,latex,bibtex,accent-sensitive,Latex,Bibtex,Accent Sensitive,我正在试图编译我的latex文件,我有一个带有作者姓氏和重音符号(字母o上方两个点)的源代码。在我的文件序言中,我有 \documentclass[twoside,11pt]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{textcomp} \usepackage{listings} \usepackage{xcolor, color} \usepackage{graphics, graphicx, rotating

我正在试图编译我的latex文件,我有一个带有作者姓氏和重音符号(字母o上方两个点)的源代码。在我的文件序言中,我有

\documentclass[twoside,11pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{textcomp}
\usepackage{listings}
\usepackage{xcolor, color}
\usepackage{graphics, graphicx, rotating}
\usepackage{float}
\usepackage[caption=false]{subfig}
\usepackage{algpseudocode, algorithm}
\usepackage{url, hyperref}
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\bibliographystyle{plain}
\bibliography{bib}
然后,在文件的末尾,我有

\documentclass[twoside,11pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{textcomp}
\usepackage{listings}
\usepackage{xcolor, color}
\usepackage{graphics, graphicx, rotating}
\usepackage{float}
\usepackage[caption=false]{subfig}
\usepackage{algpseudocode, algorithm}
\usepackage{url, hyperref}
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\bibliographystyle{plain}
\bibliography{bib}
在我的.bib文件中

@phdthesis{kon,
    author = {K\"{o}n},
    title = {TITLE}
    year = {2014}
}
然而,当我编译时(我使用的是TeXStudio),我得到了您在图像中看到的内容

它似乎没有意识到有两个引号('以蓝色突出显示,然后'在我使用的IDE中以黑色突出显示)。我不知道如何得到正确的重音符号。我似乎在别处找不到这个问题,在乳胶文献中也没有其他方法(我可以找到)。谢谢大家!

.tex文件的代码:

\documentclass[twoside,11pt]{article}
\usepackage{jmlr2e}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{textcomp}
\usepackage{listings}
\usepackage{xcolor, color}
\usepackage{graphics, graphicx, rotating}
\usepackage{float}
\usepackage[caption=false]{subfig}
\usepackage{algpseudocode, algorithm}
\usepackage{url, hyperref}
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}


\begin{document}
    Here is how it gets cited: \citep{konig2014}
    
    \bibliographystyle{plain}
    \bibliography{bibl}
\end{document}
.bib文件的代码:

@phdthesis{konig2014,
    author = {K\''{o}nig, R.},
    title = {Enhancing genetic programming for predictive modeling},
    school = {\''{O}rebro University},
    year = {2014}
}

编辑后,您的
.bib
文件显示
\'
(反斜杠、单引号、单引号),这是错误的,会导致您看到奇怪的口音:它在单引号(
'
,编码为
\'
)的上方加上一个尖锐的口音(
'
,也编码为
'
)。正确的语法是
\”
(反斜杠,双引号)。

如果我在程序TeXworks中写入
.bib
文件,则
\“
(反斜杠,双引号)会自动变为
\”
(反斜杠,单引号,单引号)。即使我编译了我的
.tex
文件,该文件引用了TeXstudio中的
.bib
文件,我仍然会得到如上图所示的奇怪符号,而不是预期的o上方的两个点,因为TeXworks似乎无法识别双引号。但是如果我在TeXstudio程序中编写
.bib
文件,那么它会按照预期编译。我不确定幕后发生了什么(也许有一个设置我必须更改?),但问题是TeXworks,而不是
\“{o}


谢谢大家的帮助!

你确定这是
\“
(反斜杠,双引号)而不是
\”
(反斜杠,单引号,单引号)?你能做一个可编译的吗?如果我把你的代码片段拼凑在一起,并猜出丢失的片段,它就可以正常工作了。@Thomas:是的。在我的IDE中,它们的结果是相同的三个字符。@samcarter_is_at_topanswers.xyz:我添加了m.r.e.的所有代码。它仍然不能正确编译。