我需要创建一份我的出版物清单。这份清单应包括对论文的引用、会议地点的排名和论文摘要。在出版物清单之后,我想包括论文。
问题:我的主要问题是我不想有专门的参考文献部分,而是想使用我的自定义出版物列表。显然,在使用时\fullcite
,引用论文(在出版物列表之前的文本中)无法完全发挥作用(单击链接只会跳转到第一页)。
代码 (main.tex
):
\documentclass{article}
\usepackage{graphicx} % Required for inserting images
\usepackage{pdfpages}
\usepackage{hyperref}
\usepackage{geometry}
\geometry{
a4paper,
total={170mm,257mm},
left=20mm,
top=20mm,
}
\usepackage{enumitem}
\usepackage[
backend=biber,
% style=alphabetic,
firstinits=true,
bibstyle=ieee,citestyle=numeric-comp,
maxnames=99,
% citestyle=authoryear
]{biblatex}
\addbibresource{bibliography.bib}
% https://tex.stackexchange.com/a/412872/85103 START
\def\makenamesetup{%
\def\bibnamedelima{~}%
\def\bibnamedelimb{ }%
\def\bibnamedelimc{ }%
\def\bibnamedelimd{ }%
\def\bibnamedelimi{ }%
\def\bibinitperiod{.}%
\def\bibinitdelim{~}%
\def\bibinithyphendelim{.-}}
\newcommand*{\makename}[2]{\begingroup\makenamesetup\xdef#1{#2}\endgroup}
\newcommand*{\boldname}[3]{%
\def\lastname{#1}%
\def\firstname{#2}%
\def\firstinit{#3}}
\boldname{}{}{}
\boldname{Lamport}{Leslie}{L.}
\usepackage[normalem]{ulem}
\makeatletter
\newcommand{\namehighighter}[1]{%
\ifboolexpr{(test {\ifdefequal{\firstname}{\namepartgiven}}
or test {\ifdefequal{\firstinit}{\namepartgiven}})
and test {\ifdefequal{\lastname}{\namepartfamily}}}
{\uline{#1}}
{#1}}
\renewbibmacro*{name:given-family}[4]{%
\usebibmacro{name:delim}{#2#3#1}%
\usebibmacro{name:hook}{#2#3#1}%
\namehighighter{%
\ifdefvoid{#2}{}{\mkbibnamegiven{#2}\isdot\bibnamedelimd}%
\ifdefvoid{#3}{}{%
\mkbibnameprefix{#3}\isdot
\ifprefchar
{}
{\ifuseprefix{\bibnamedelimc}{\bibnamedelimd}}}%
\mkbibnamefamily{#1}\isdot
\ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}}
\makeatother
% https://tex.stackexchange.com/a/412872/85103 END
\newcommand{\RNum}[1]{\uppercase\expandafter{\romannumeral #1\relax}}
% \pagestyle{empty}
\begin{document}
\section*{\huge My Awesome Papers}
\subsection*{BLA 1}
I want to cite this paper~\cite{lamport2019part} and jump directly to the fullcite entry on the second page.
\subsection*{BLA 2}
\vspace{1em}
\noindent \emph{Time, clocks, and the ordering of events in a distributed system} \dotfill \hyperlink{page.1}{1}
\noindent \textbf{Reference:} \cite{lamport2019time} \fullcite{lamport2019time}
\noindent \textbf{Ranking:} A*
\noindent \textbf{Abstract:}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In aliquam lacinia nulla quis convallis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Mauris blandit, ligula vitae ornare tincidunt, mauris eros tincidunt diam, ac malesuada eros est ac turpis. In sed sollicitudin neque, eget malesuada leo. Phasellus gravida nisl ut mi dictum, sed pharetra metus fringilla. Ut laoreet suscipit consequat. Maecenas malesuada ex magna, quis hendrerit diam finibus eu. Nullam consectetur nunc sed rutrum consequat. Donec nulla leo, convallis et sagittis in, rhoncus eget arcu.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In aliquam lacinia nulla quis convallis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Mauris blandit, ligula vitae ornare tincidunt, mauris eros tincidunt diam, ac malesuada eros est ac turpis. In sed sollicitudin neque, eget malesuada leo. Phasellus gravida nisl ut mi dictum, sed pharetra metus fringilla. Ut laoreet suscipit consequat. Maecenas malesuada ex magna, quis hendrerit diam finibus eu. Nullam consectetur nunc sed rutrum consequat. Donec nulla leo, convallis et sagittis in, rhoncus eget arcu.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In aliquam lacinia nulla quis convallis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Mauris blandit, ligula vitae ornare tincidunt, mauris eros tincidunt diam, ac malesuada eros est ac turpis. In sed sollicitudin neque, eget malesuada leo. Phasellus gravida nisl ut mi dictum, sed pharetra metus fringilla. Ut laoreet suscipit consequat. Maecenas malesuada ex magna, quis hendrerit diam finibus eu. Nullam consectetur nunc sed rutrum consequat. Donec nulla leo, convallis et sagittis in, rhoncus eget arcu.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In aliquam lacinia nulla quis convallis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Mauris blandit, ligula vitae ornare tincidunt, mauris eros tincidunt diam, ac malesuada eros est ac turpis. In sed sollicitudin neque, eget malesuada leo. Phasellus gravida nisl ut mi dictum, sed pharetra metus fringilla. Ut laoreet suscipit consequat. Maecenas malesuada ex magna, quis hendrerit diam finibus eu. Nullam consectetur nunc sed rutrum consequat. Donec nulla leo, convallis et sagittis in, rhoncus eget arcu.
\vspace{2em}
\noindent \emph{The Byzantine generals problem} \dotfill \hyperlink{page.1}{1}
\noindent \textbf{Reference:} \cite{lamport2019byzantine} \fullcite{lamport2019byzantine}
\noindent \textbf{Ranking:} A*
\noindent \textbf{Abstract:}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In aliquam lacinia nulla quis convallis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Mauris blandit, ligula vitae ornare tincidunt, mauris eros tincidunt diam, ac malesuada eros est ac turpis. In sed sollicitudin neque, eget malesuada leo. Phasellus gravida nisl ut mi dictum, sed pharetra metus fringilla. Ut laoreet suscipit consequat. Maecenas malesuada ex magna, quis hendrerit diam finibus eu. Nullam consectetur nunc sed rutrum consequat. Donec nulla leo, convallis et sagittis in, rhoncus eget arcu.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In aliquam lacinia nulla quis convallis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Mauris blandit, ligula vitae ornare tincidunt, mauris eros tincidunt diam, ac malesuada eros est ac turpis. In sed sollicitudin neque, eget malesuada leo. Phasellus gravida nisl ut mi dictum, sed pharetra metus fringilla. Ut laoreet suscipit consequat. Maecenas malesuada ex magna, quis hendrerit diam finibus eu. Nullam consectetur nunc sed rutrum consequat. Donec nulla leo, convallis et sagittis in, rhoncus eget arcu.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In aliquam lacinia nulla quis convallis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Mauris blandit, ligula vitae ornare tincidunt, mauris eros tincidunt diam, ac malesuada eros est ac turpis. In sed sollicitudin neque, eget malesuada leo. Phasellus gravida nisl ut mi dictum, sed pharetra metus fringilla. Ut laoreet suscipit consequat. Maecenas malesuada ex magna, quis hendrerit diam finibus eu. Nullam consectetur nunc sed rutrum consequat. Donec nulla leo, convallis et sagittis in, rhoncus eget arcu.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In aliquam lacinia nulla quis convallis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Mauris blandit, ligula vitae ornare tincidunt, mauris eros tincidunt diam, ac malesuada eros est ac turpis. In sed sollicitudin neque, eget malesuada leo. Phasellus gravida nisl ut mi dictum, sed pharetra metus fringilla. Ut laoreet suscipit consequat. Maecenas malesuada ex magna, quis hendrerit diam finibus eu. Nullam consectetur nunc sed rutrum consequat. Donec nulla leo, convallis et sagittis in, rhoncus eget arcu.
\vspace{2em}
\noindent \emph{The part-time parliament} \dotfill \hyperlink{page.1}{1}
\noindent \textbf{Reference:} \cite{lamport2019part} \fullcite{lamport2019part}
\noindent \textbf{Ranking:} A*
\noindent \textbf{Abstract:}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In aliquam lacinia nulla quis convallis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Mauris blandit, ligula vitae ornare tincidunt, mauris eros tincidunt diam, ac malesuada eros est ac turpis. In sed sollicitudin neque, eget malesuada leo. Phasellus gravida nisl ut mi dictum, sed pharetra metus fringilla. Ut laoreet suscipit consequat. Maecenas malesuada ex magna, quis hendrerit diam finibus eu. Nullam consectetur nunc sed rutrum consequat. Donec nulla leo, convallis et sagittis in, rhoncus eget arcu.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In aliquam lacinia nulla quis convallis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Mauris blandit, ligula vitae ornare tincidunt, mauris eros tincidunt diam, ac malesuada eros est ac turpis. In sed sollicitudin neque, eget malesuada leo. Phasellus gravida nisl ut mi dictum, sed pharetra metus fringilla. Ut laoreet suscipit consequat. Maecenas malesuada ex magna, quis hendrerit diam finibus eu. Nullam consectetur nunc sed rutrum consequat. Donec nulla leo, convallis et sagittis in, rhoncus eget arcu.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In aliquam lacinia nulla quis convallis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Mauris blandit, ligula vitae ornare tincidunt, mauris eros tincidunt diam, ac malesuada eros est ac turpis. In sed sollicitudin neque, eget malesuada leo. Phasellus gravida nisl ut mi dictum, sed pharetra metus fringilla. Ut laoreet suscipit consequat. Maecenas malesuada ex magna, quis hendrerit diam finibus eu. Nullam consectetur nunc sed rutrum consequat. Donec nulla leo, convallis et sagittis in, rhoncus eget arcu.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In aliquam lacinia nulla quis convallis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Mauris blandit, ligula vitae ornare tincidunt, mauris eros tincidunt diam, ac malesuada eros est ac turpis. In sed sollicitudin neque, eget malesuada leo. Phasellus gravida nisl ut mi dictum, sed pharetra metus fringilla. Ut laoreet suscipit consequat. Maecenas malesuada ex magna, quis hendrerit diam finibus eu. Nullam consectetur nunc sed rutrum consequat. Donec nulla leo, convallis et sagittis in, rhoncus eget arcu.
\vspace{2em}
% \includepdf[pages=-]{./papers/A.pdf}
% \includepdf[pages=-]{./papers/B.pdf}
% \includepdf[pages=-]{./papers/C.pdf}
\end{document}
围兜(bibliography.bib
):
@incollection{lamport2019time,
title={Time, clocks, and the ordering of events in a distributed system},
author={Lamport, Leslie},
booktitle={Concurrency: the Works of Leslie Lamport},
pages={179--196},
year={2019}
}
@incollection{lamport2019byzantine,
title={The Byzantine generals problem},
author={Lamport, Leslie and Shostak, Robert and Pease, Marshall},
booktitle={Concurrency: the works of leslie lamport},
pages={203--226},
year={2019}
}
@incollection{lamport2019part,
title={The part-time parliament},
author={Lamport, Leslie},
booktitle={Concurrency: the Works of Leslie Lamport},
pages={277--317},
year={2019}
}
再次澄清我的问题:当我使用时,例如,\cite{lamport2019part}
ref 不会跳转到相应的\fullcite
条目。有没有办法实现这一点?
答案1
您可以添加目标。但当然,您应该只对每个条目使用一次 \fullcite。
\documentclass{article}
\usepackage[
firstinits=true,
bibstyle=ieee,citestyle=numeric-comp,
maxnames=99,
]{biblatex}
\makeatletter
\DeclareCiteCommand{\fullcite}
{\usebibmacro{prenote}}
{\MakeLinkTarget*{cite.\the\c@refsection @\thefield{entrykey}}{}% add target
\usedriver
{\DeclareNameAlias{sortname}{default}}
{\thefield{entrytype}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\addbibresource{hyp.bib}
\makeatother
\usepackage{hyperref}
\begin{document}
I want to cite this paper~\cite{lamport2019part} and jump directly to the fullcite entry on the second page.
\newpage
\fullcite{lamport2019part}
\end{document}