标题非常直观,如下所示。当我的参考文献中有“Ł”时,该字符会从参考书目中消失;即“Łukasz”变成“ukasz”。但是,在常规 Latex 中,结果很好。
这问题建议使用{\L}
,这有效;但是我从生成我的 *.bib 文件佐特罗,并且每次重新生成 bib 文件时手动编辑它会很麻烦(我不能直接在 Zotero 中输入特殊字符,因为{\L}
它会转义命令)。
我的参考列表中的所有其他特殊字符均有效!
乳胶:
\documentclass[a4paper, oneside, 12pt, openright]{report}
\usepackage[utf8]{inputenc}
\usepackage[super, sort]{natbib}
\DeclareUnicodeCharacter{0141}{\L{}}
\begin{document}
sometext Ł \cite{sivanesan_nanostructured_2014}
\bibliographystyle{ieeetr}
\bibliography{somebib}
\end{document}
Bibtex:
@article{sivanesan_nanostructured_2014,
title = {Nanostructured silver-gold bimetallic {SERS} substrates for selective identification of bacteria in human blood},
volume = {139},
issn = {0003-2654, 1364-5528},
url = {http://xlink.rsc.org/?DOI=c3an01924a},
doi = {10.1039/c3an01924a},
language = {en},
number = {5},
urldate = {2017-06-29},
journal = {The Analyst},
author = {Sivanesan, Arumugam and Witkowska, Evelin and Adamkiewicz, Witold and Dziewit, Łukasz and Kamińska, Agnieszka and Waluk, Jacek},
year = {2014},
pages = {1037},
annote = {Łukasz},
file = {c3an01924a.pdf:C\:\\Users\\bluet_000\\AppData\\Roaming\\Zotero\\Zotero\\Profiles\\9p6n5zoc.default\\zotero\\storage\\Q7F4GE2G\\c3an01924a.pdf:application/pdf}
}
答案1
您可以让 LaTeX 将 bib 文件复制到 bibtex 友好版本:
\documentclass[a4paper, oneside, 12pt, openright]{report}
\usepackage[utf8]{inputenc}
\usepackage[super, sort]{natbib}
\DeclareUnicodeCharacter{0141}{\L{}}
\def\outcodes{%
\catcode`\\=12
\let\protect\string
\def\IeC##1{{##1}}%
}
\newwrite\mybibout
\immediate\openout\mybibout=somebib2.bib
\newread\mybibin
\openin\mybibin=somebib.bib
{
\loop
\ifeof\mybibin
\else
{\outcodes
\read\mybibin to \tmp
\immediate\write\mybibout{\tmp}%
}
\repeat
\immediate\closeout\mybibout
}
\begin{document}
sometext Ł \cite{sivanesan_nanostructured_2014}
\bibliographystyle{ieeetr}
\bibliography{somebib2}
\end{document}