如何创建固定缩进?

如何创建固定缩进?

我正在尝试将我的简历从 word 转换为 tex。附图显示了总体布局,我不知道如何用 LaTeX 模仿。左边距是年份(例如 2023 年),然后与右边的引文/信息对齐。我希望年份右侧的文本在页面上水平对齐到同一位置。

这是我尽了最大努力,但效果不太好。

谢谢您的建议!

\documentclass{article}
\usepackage[margin=1in]{geometry}

\begin{document}

\textbf{Peer-Reviewed Publications}

In-Prep

2023 or 2024 \quad\quad
\begin{minipage}{.8\textwidth}
  Zoe Todd, Nicholas Wogan, David Catling (2023). Environmental influences on the formation of ferrocyanide and implications for prebiotic chemistry. In-prep.
\end{minipage}

\vspace*{3mm}

2023 \quad\quad
\begin{minipage}{.8\textwidth}
  Zoe Todd, Nicholas Wogan, David Catling (2023). Environmental influences on the formation of ferrocyanide and implications for prebiotic chemistry. In-prep.
\end{minipage}

\vspace*{3mm}

2023 \quad\quad
\begin{minipage}{.8\textwidth}
  Nicholas Wogan, David Catling, Kevin Zahnle (2023). Earth’s impact history and the timing of the origin of life. In-prep.
\end{minipage}

\vspace*{3mm}
Submitted
\vspace*{3mm}

2023 \quad\quad
\begin{minipage}{.8\textwidth}
  Nicholas Wogan, David Catling, Kevin Zahnle, Roxana Lupu (2023). Origin of Life Molecules in the Atmosphere After Big Impacts on the Early Earth. Submitted, Planetary Science Journal.
\end{minipage}

\end{document}

答案1

如果您手动执行此操作,我会使用此类格式的描述列表。以及适当的分段命令。

但随着时间的推移,你可能想要使用一些更自动化的东西,在这种情况下,使用biblatex样式publist(可以找到文档这里) 可能是可行的方法。

\documentclass{article}
\usepackage[margin=1in]{geometry}
\usepackage[tiny]{titlesec}
\usepackage{enumitem}
\newlist{cvlist}{description}{1}
\setlist[cvlist]{style=sameline,leftmargin=1in,font=\normalfont}
\setcounter{secnumdepth}{0}


\begin{document}

\section{Peer-Reviewed Publications}

\subsection{In-Prep}

\begin{cvlist}
\item[2023 or 2024]
  Zoe Todd, Nicholas Wogan, David Catling (2023). Environmental influences on the formation of ferrocyanide and implications for prebiotic chemistry. In-prep.
\item[2023]
  Zoe Todd, Nicholas Wogan, David Catling (2023). Environmental influences on the formation of ferrocyanide and implications for prebiotic chemistry. In-prep.
\item[2023]
  Nicholas Wogan, David Catling, Kevin Zahnle (2023). Earth’s impact history and the timing of the origin of life. In-prep.
\end{cvlist}


\subsection{Submitted}


\begin{cvlist}
\item[2023]
  Nicholas Wogan, David Catling, Kevin Zahnle, Roxana Lupu (2023). Origin of Life Molecules in the Atmosphere After Big Impacts on the Early Earth. Submitted, Planetary Science Journal.
\end{cvlist}

\end{document}

代码输出

相关内容