在表格环境中添加 BibTex 条目列表

在表格环境中添加 BibTex 条目列表

我正在编写我的学术简历,想知道如何在表格环境中将出版物列表添加为 BibTex 条目。

我目前正在使用该longtable包编写我的简历。我查看了这里的一些其他答案,其中许多答案似乎建议使用multicolumnmultirow命令,但我想知道是否有办法在不更改代码基本框架的情况下做到这一点。事实上,在我的表中添加一个类似列表的对象通常会导致很多错误。

以下是 MWE:

\documentclass[letterpaper,11pt,oneside]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{setspace}
\usepackage{hyperref}
\usepackage{bibentry}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{kotex}
\usepackage{url}
\usepackage{xcolor}

\newcommand{\MYhref}[3][blue]{\href{#2}{\color{#1}{#3}}}

\usepackage{tgtermes}

\usepackage{graphicx}
\graphicspath{ {images/}}

\usepackage[left=0.75in, right=0.75in, bottom=1in, top=1in]{geometry}

%Changes the page numbers - {arabic}=arabic numerals, {gobble}=no page numbers, {roman}=Roman numerals
\pagenumbering{gobble}


\begin{document}

\noindent \begin{longtable}{@{} l l l}

\noindent  \LARGE{\textbf{John A. Doe}} \\
\vspace{-2ex}
\\\toprule
\normalsize \\

\Large{Contact} & \textbf{Full name} \  John Albert Doe \\
\Large{Information} & \textbf{Email} [email protected] \\
                    & \indent  \quad  \  [email protected] \\
                    & \textbf{Mobile} 123456789 \\
                    & \textbf{Address} Home address \\

\\
     
\Large{Research} & \textbf{LaTeX} \\
\Large{Interests} & \indent Stuff. \\
     
\\
     
\Large{Projects} & \\

\Large{Publications}    & \textbf{International} \\
     & \cite{something2020} \\
     & \\
\\

\end{longtable}

\end{document}

编辑

感谢@Bernard 的评论,我将环境更改为xltabular。我还尝试执行如下操作这个答案,但不幸的是我仍然无法弄清楚如何将列表放入表格环境而不是作为单独的部分。

答案1

也许你可以使用类似的东西:

\documentclass[letterpaper,11pt,oneside]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{setspace}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{kotex}
\usepackage{url}
\usepackage{xcolor}
\usepackage{xltabular}

\newcommand{\MYhref}[3][blue]{\href{#2}{\color{#1}{#3}}}

\usepackage{tgtermes}

\usepackage{graphicx}
\graphicspath{ {images/}}

\usepackage[left=0.75in, right=0.75in, bottom=1in, top=1in]{geometry}


%%% hyperref should be last package in preamble, 
%%% to solve lonely \item error see also:
%%% https://tex.stackexchange.com/a/65401/134144
\usepackage{bibentry}
\makeatletter\let\saved@bibitem\@bibitem\makeatother
\usepackage{hyperref}
\makeatletter\let\@bibitem\saved@bibitem\makeatother


%Changes the page numbers - {arabic}=arabic numerals, {gobble}=no page numbers, {roman}=Roman numerals
\pagenumbering{gobble}




\begin{filecontents}{\jobname.bib}
@book{key,
  author = {Author, A.},
  year = {2001},
  title = {Title},
  publisher = {Publisher},
}
@article{key2,
  author = {Author, A. and Author B. and Author C.},
  year = {2001},
  title = {a very long article title a very long article title},
  journal = {Journal Name},
}
\end{filecontents}

\bibliographystyle{plain}


\begin{document}


\nobibliography{\jobname}

\noindent \begin{xltabular}{\textwidth}{@{} l X l}

\noindent  \LARGE{\textbf{John A. Doe}} \\
\vspace{-2ex}
\\\toprule
\normalsize \\

\Large{Contact} & \textbf{Full name} \  John Albert Doe \\
\Large{Information} & \textbf{Email} [email protected] \\
                    & \indent  \quad  \  [email protected] \\
                    & \textbf{Mobile} 123456789 \\
                    & \textbf{Address} Home address \\

\\
     
\Large{Research} & \textbf{LaTeX} \\
\Large{Interests} & \indent Stuff. \\
     
\\
     
\Large{Projects} & \\

\Large{Publications}    & \textbf{International} \\
     & \bibentry{key} \\
     & \bibentry{key2}\\
\\

\end{xltabular}



\end{document}

在此处输入图片描述


以下是带有编号列表的版本:

\documentclass[letterpaper,11pt,oneside]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{setspace}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{kotex}
\usepackage{url}
\usepackage{xcolor}
\usepackage{xltabular}

\newcommand{\MYhref}[3][blue]{\href{#2}{\color{#1}{#3}}}

\usepackage{tgtermes}

\usepackage{graphicx}
\graphicspath{ {images/}}

\usepackage[left=0.75in, right=0.75in, bottom=1in, top=1in]{geometry}

\usepackage{enumitem}
\newlist{tabenum}{enumerate}{1}

\setlist[tabenum,1]{label*=[\arabic*],
                    leftmargin=*,
                    nosep,
                    leftmargin=*,
                    before=\begin{minipage}{\hsize},
                    after=\end{minipage}}


%%% hyperref should be last package in preamble, 
%%% to solve lonely \item error see also:
%%% https://tex.stackexchange.com/a/65401/134144
\usepackage{bibentry}
\makeatletter\let\saved@bibitem\@bibitem\makeatother
\usepackage{hyperref}
\makeatletter\let\@bibitem\saved@bibitem\makeatother


%Changes the page numbers - {arabic}=arabic numerals, {gobble}=no page numbers, {roman}=Roman numerals
\pagenumbering{gobble}




\begin{filecontents}{\jobname.bib}
@book{key,
  author = {Author, A.},
  year = {2001},
  title = {Title},
  publisher = {Publisher},
}
@article{key2,
  author = {Author, A. and Author B. and Author C.},
  year = {2001},
  title = {a very long article title a very long article title},
  journal = {Journal Name},
}
\end{filecontents}

\bibliographystyle{plain}


\begin{document}


\nobibliography{\jobname}

\noindent \begin{xltabular}{\textwidth}{@{} l X l}

\noindent  \LARGE{\textbf{John A. Doe}} \\
\vspace{-2ex}
\\\toprule
\normalsize \\

\Large{Contact} & \textbf{Full name} \  John Albert Doe \\
\Large{Information} & \textbf{Email} [email protected] \\
                    & \indent  \quad  \  [email protected] \\
                    & \textbf{Mobile} 123456789 \\
                    & \textbf{Address} Home address \\

\\
     
\Large{Research} & \textbf{LaTeX} \\
\Large{Interests} & \indent Stuff. \\
     
\\
     
\Large{Projects} & \\

\Large{Publications}    & \textbf{International} \\
                        & \begin{tabenum}
                            \item \bibentry{key} 
                            \item \bibentry{key2}
                          \end{tabenum}\\
\\

\end{xltabular}



\end{document}

在此处输入图片描述

相关内容