我想为我的简历创建一个参考书目,其中我的名字会突出显示,以便在作者列表中脱颖而出。我已经尝试了各种方法,包括提供的建议这里和这里。但是,似乎没有什么适合我想要遵循的特定风格。任何建议都将不胜感激。
这是我的 .tex 文件。它包含两次至少部分成功的尝试。它\newcommand{\bibnamefont}
给出了接近我想要的结果,但这样我只能强调“Boll”或“R.”或两者,而不能只强调“R. Boll”。
解决方案......就是这样,但它只在我使用而不是我的 .bst 文件%\let\originalbibitem
时才有效,这导致我猜测我的遵循与示例中使用的逻辑不同的逻辑,但我不确定如何根据我的情况进行更改。\bibliographystyle{IEEEtran}
! File ended while scanning use of \bibitem.
\bibitem
\documentclass[a4paper,11pt]{article}
\RequirePackage{color,graphicx}
\usepackage [super, compress] {natbib}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage[top=0.9in, bottom=0.9in, left=0.9in, right=0.9in]{geometry}
\usepackage{hyperref}
\definecolor{darkblue}{rgb}{0.0,0.0,0.5}
\hypersetup{colorlinks = true, urlcolor=darkblue, citecolor=white}
\usepackage{xstring}
\newcommand{\bibnamefont}[1]{\IfSubStr{#1}{Boll} {{\color{darkblue} \textbf{#1}}}{#1}}
\newcommand{\bibfnamefont}[1]{\IfStrEq{#1}{R.} {{\color{darkblue}\textbf{#1}}}{#1}}
%\renewcommand{\bibfield}[1]{\IfSubStr{#1}{Boll} {\StrSubstitute{#1}{\bibnamefont {Boll}}{\color{darkblue}\textbf{Boll}}}{#1}}
%\let\originalbibitem\bibitem
%\def\bibitem#1#2\par{%
%\noexpandarg \originalbibitem{#1}
%\StrSubstitute{#2}{R.~Boll}{{\color{darkblue}\textbf{R.~Boll}}} \par}
\begin{document}
\bibliographystyle{all_authors_with_title}
%\bibliographystyle{IEEEtran}
\bibliography{bib}
{\color{white}
\cite{boll_imaging_2014}
\end{document}
这是 bib 文件的内容:
@article{boll_imaging_2014,
title = {Imaging molecular structure through femtosecond photoelectron diffraction on aligned and oriented gas-phase molecules},
volume = {171},
issn = {1359-6640, 1364-5498},
url = {http://xlink.rsc.org/?DOI=C4FD00037D},
doi = {10.1039/C4FD00037D},
urldate = {2015-02-09},
journal = {Faraday Discussions},
author = {Boll, Rebecca and Rouz{\'e}e, Arnaud and Adolph, Marcus and Anielski, Denis and Aquila, Andrew and Bari, Sadia and Bomme, C{\'e}dric and Bostedt, Christoph and Bozek, John D. and Chapman, Henry N. and Christensen, Lauge and Coffee, Ryan and Coppola, Niccola and De, Sankar and Decleva, Piero and Epp, Sascha W. and Erk, Benjamin and Filsinger, Frank and Foucar, Lutz and Gorkhover, Tais and Gumprecht, Lars and H{\"o}mke, Andr{\'e} and Holmegaard, Lotte and Johnsson, Per and Kienitz, Jens S. and Kierspel, Thomas and Krasniqi, Faton and K{\"u}hnel, Kai-Uwe and Maurer, Jochen and Messerschmidt, Marc and Moshammer, Robert and M{\"u}ller, Nele L. M. and Rudek, Benedikt and Savelyev, Evgeny and Schlichting, Ilme and Schmidt, Carlo and Scholz, Frank and Schorb, Sebastian and Schulz, Joachim and Seltmann, J{\"o}rn and Stener, Mauro and Stern, Stephan and Techert, Simone and Th{\o}gersen, Jan and Trippel, Sebastian and Viefhaus, Jens and Vrakking, Marc and Stapelfeldt, Henrik and K{\"u}pper, Jochen and Ullrich, Joachim and Rudenko, Artem and Rolles, Daniel},
month = jul,
year = {2014},
pages = {57--80},
file = {Boll et al. - 2014 - Imaging molecular structure through femtosecond ph.pdf:D\:\\Cloud\\zotero\\storage\\557IX9NU\\Boll et al. - 2014 - Imaging molecular structure through femtosecond ph.pdf:application/pdf}
}
我也想附加 .bst 文件,但我不知道如何将文件添加到帖子中。它太长了,无法作为代码发布。我正在使用 apsrev4-1.bst 的修改版本。相反,我在这里附加了 .bbl 文件,也许它也有帮助。
我是这个页面的新手,因此如果我没有遵守一些格式规则,我深感抱歉。
%merlin.mbs apsrev4-1.bst 2010-07-25 4.21a (PWD, AO, DPC) hacked
%Control: key (0)
%Control: author (5) initials jnrlst
%Control: editor formatted (1) identically to author
%Control: production of article title (1) required
%Control: page (0) single
%Control: year (1) truncated
%Control: production of eprint (0) enabled
\begin{thebibliography}{1}%
\makeatletter
\providecommand \@ifxundefined [1]{%
\@ifx{#1\undefined}
}%
\providecommand \@ifnum [1]{%
\ifnum #1\expandafter \@firstoftwo
\else \expandafter \@secondoftwo
\fi
}%
\providecommand \@ifx [1]{%
\ifx #1\expandafter \@firstoftwo
\else \expandafter \@secondoftwo
\fi
}%
\providecommand \natexlab [1]{#1}%
\providecommand \enquote [1]{``#1''}%
\providecommand \bibnamefont [1]{#1}%
\providecommand \bibfnamefont [1]{#1}%
\providecommand \citenamefont [1]{#1}%
\providecommand \href@noop [0]{\@secondoftwo}%
\providecommand \href [0]{\begingroup \@sanitize@url \@href}%
\providecommand \@href[1]{\@@startlink{#1}\@@href}%
\providecommand \@@href[1]{\endgroup#1\@@endlink}%
\providecommand \@sanitize@url [0]{\catcode `\\12\catcode `\$12\catcode
`\&12\catcode `\#12\catcode `\^12\catcode `\_12\catcode `\%12\relax}%
\providecommand \@@startlink[1]{}%
\providecommand \@@endlink[0]{}%
\providecommand \url [0]{\begingroup\@sanitize@url \@url }%
\providecommand \@url [1]{\endgroup\@href {#1}{\urlprefix }}%
\providecommand \urlprefix [0]{URL }%
\providecommand \Eprint [0]{\href }%
\providecommand \doibase [0]{http://dx.doi.org/}%
\providecommand \selectlanguage [0]{\@gobble}%
\providecommand \bibinfo [0]{\@secondoftwo}%
\providecommand \bibfield [0]{\@secondoftwo}%
\providecommand \translation [1]{[#1]}%
\providecommand \BibitemOpen [0]{}%
\providecommand \bibitemStop [0]{}%
\providecommand \bibitemNoStop [0]{.\EOS\space}%
\providecommand \EOS [0]{\spacefactor3000\relax}%
\providecommand \BibitemShut [1]{\csname bibitem#1\endcsname}%
\let\auto@bib@innerbib\@empty
%</preamble>
\bibitem [{\citenamefont {Boll}\ \emph {et~al.}(2014)\citenamefont {Boll},
\citenamefont {Rouz{\'e}e}, \citenamefont {Adolph}, \citenamefont {Anielski},
\citenamefont {Aquila}, \citenamefont {Bari}, \citenamefont {Bomme},
\citenamefont {Bostedt}, \citenamefont {Bozek}, \citenamefont {Chapman},
\citenamefont {Christensen}, \citenamefont {Coffee}, \citenamefont {Coppola},
\citenamefont {De}, \citenamefont {Decleva}, \citenamefont {Epp},
\citenamefont {Erk}, \citenamefont {Filsinger}, \citenamefont {Foucar},
\citenamefont {Gorkhover}, \citenamefont {Gumprecht}, \citenamefont
{H{\"o}mke}, \citenamefont {Holmegaard}, \citenamefont {Johnsson},
\citenamefont {Kienitz}, \citenamefont {Kierspel}, \citenamefont {Krasniqi},
\citenamefont {K{\"u}hnel}, \citenamefont {Maurer}, \citenamefont
{Messerschmidt}, \citenamefont {Moshammer}, \citenamefont {M{\"u}ller},
\citenamefont {Rudek}, \citenamefont {Savelyev}, \citenamefont {Schlichting},
\citenamefont {Schmidt}, \citenamefont {Scholz}, \citenamefont {Schorb},
\citenamefont {Schulz}, \citenamefont {Seltmann}, \citenamefont {Stener},
\citenamefont {Stern}, \citenamefont {Techert}, \citenamefont {Th{\o}gersen},
\citenamefont {Trippel}, \citenamefont {Viefhaus}, \citenamefont {Vrakking},
\citenamefont {Stapelfeldt}, \citenamefont {K{\"u}pper}, \citenamefont
{Ullrich}, \citenamefont {Rudenko},\ and\ \citenamefont
{Rolles}}]{boll_imaging_2014}%
\BibitemOpen
\bibfield {author} {\bibinfo {author} {\bibfnamefont {R.}~\bibnamefont
{Boll}}, \bibinfo {author} {\bibfnamefont {A.}~\bibnamefont {Rouz{\'e}e}},
\bibinfo {author} {\bibfnamefont {M.}~\bibnamefont {Adolph}}, \bibinfo
{author} {\bibfnamefont {D.}~\bibnamefont {Anielski}}, \bibinfo {author}
{\bibfnamefont {A.}~\bibnamefont {Aquila}}, \bibinfo {author} {\bibfnamefont
{S.}~\bibnamefont {Bari}}, \bibinfo {author} {\bibfnamefont {C.}~\bibnamefont
{Bomme}}, \bibinfo {author} {\bibfnamefont {C.}~\bibnamefont {Bostedt}},
\bibinfo {author} {\bibfnamefont {J.~D.}\ \bibnamefont {Bozek}}, \bibinfo
{author} {\bibfnamefont {H.~N.}\ \bibnamefont {Chapman}}, \bibinfo {author}
{\bibfnamefont {L.}~\bibnamefont {Christensen}}, \bibinfo {author}
{\bibfnamefont {R.}~\bibnamefont {Coffee}}, \bibinfo {author} {\bibfnamefont
{N.}~\bibnamefont {Coppola}}, \bibinfo {author} {\bibfnamefont
{S.}~\bibnamefont {De}}, \bibinfo {author} {\bibfnamefont {P.}~\bibnamefont
{Decleva}}, \bibinfo {author} {\bibfnamefont {S.~W.}\ \bibnamefont {Epp}},
\bibinfo {author} {\bibfnamefont {B.}~\bibnamefont {Erk}}, \bibinfo {author}
{\bibfnamefont {F.}~\bibnamefont {Filsinger}}, \bibinfo {author}
{\bibfnamefont {L.}~\bibnamefont {Foucar}}, \bibinfo {author} {\bibfnamefont
{T.}~\bibnamefont {Gorkhover}}, \bibinfo {author} {\bibfnamefont
{L.}~\bibnamefont {Gumprecht}}, \bibinfo {author} {\bibfnamefont
{A.}~\bibnamefont {H{\"o}mke}}, \bibinfo {author} {\bibfnamefont
{L.}~\bibnamefont {Holmegaard}}, \bibinfo {author} {\bibfnamefont
{P.}~\bibnamefont {Johnsson}}, \bibinfo {author} {\bibfnamefont {J.~S.}\
\bibnamefont {Kienitz}}, \bibinfo {author} {\bibfnamefont {T.}~\bibnamefont
{Kierspel}}, \bibinfo {author} {\bibfnamefont {F.}~\bibnamefont {Krasniqi}},
\bibinfo {author} {\bibfnamefont {K.-U.}\ \bibnamefont {K{\"u}hnel}},
\bibinfo {author} {\bibfnamefont {J.}~\bibnamefont {Maurer}}, \bibinfo
{author} {\bibfnamefont {M.}~\bibnamefont {Messerschmidt}}, \bibinfo {author}
{\bibfnamefont {R.}~\bibnamefont {Moshammer}}, \bibinfo {author}
{\bibfnamefont {N.~L.~M.}\ \bibnamefont {M{\"u}ller}}, \bibinfo {author}
{\bibfnamefont {B.}~\bibnamefont {Rudek}}, \bibinfo {author} {\bibfnamefont
{E.}~\bibnamefont {Savelyev}}, \bibinfo {author} {\bibfnamefont
{I.}~\bibnamefont {Schlichting}}, \bibinfo {author} {\bibfnamefont
{C.}~\bibnamefont {Schmidt}}, \bibinfo {author} {\bibfnamefont
{F.}~\bibnamefont {Scholz}}, \bibinfo {author} {\bibfnamefont
{S.}~\bibnamefont {Schorb}}, \bibinfo {author} {\bibfnamefont
{J.}~\bibnamefont {Schulz}}, \bibinfo {author} {\bibfnamefont
{J.}~\bibnamefont {Seltmann}}, \bibinfo {author} {\bibfnamefont
{M.}~\bibnamefont {Stener}}, \bibinfo {author} {\bibfnamefont
{S.}~\bibnamefont {Stern}}, \bibinfo {author} {\bibfnamefont
{S.}~\bibnamefont {Techert}}, \bibinfo {author} {\bibfnamefont
{J.}~\bibnamefont {Th{\o}gersen}}, \bibinfo {author} {\bibfnamefont
{S.}~\bibnamefont {Trippel}}, \bibinfo {author} {\bibfnamefont
{J.}~\bibnamefont {Viefhaus}}, \bibinfo {author} {\bibfnamefont
{M.}~\bibnamefont {Vrakking}}, \bibinfo {author} {\bibfnamefont
{H.}~\bibnamefont {Stapelfeldt}}, \bibinfo {author} {\bibfnamefont
{J.}~\bibnamefont {K{\"u}pper}}, \bibinfo {author} {\bibfnamefont
{J.}~\bibnamefont {Ullrich}}, \bibinfo {author} {\bibfnamefont
{A.}~\bibnamefont {Rudenko}}, \ and\ \bibinfo {author} {\bibfnamefont
{D.}~\bibnamefont {Rolles}},\ }\bibfield {title} {\emph {\bibinfo {title}
{Imaging molecular structure through femtosecond photoelectron diffraction on
aligned and oriented gas-phase molecules}},\ }\href {\doibase
10.1039/C4FD00037D} {\bibfield {journal} {\bibinfo {journal} {Faraday
Discussions}\ }\textbf {\bibinfo {volume} {171}},\ \bibinfo {pages} {57}
(\bibinfo {year} {2014})}\BibitemShut {NoStop}%
\end{thebibliography}%
答案1
经过很长一段时间,我自己想出了一个解决方案。可以通过添加
\renewcommand{\bibinfo}[2]{
\noexpandarg
\exploregroups
\IfSubStr{#2}{Boll} {\textbf{#2}}{#2}}
在序言中。