使用 Overleaf 时 minipage 中的另一个缩进问题

使用 Overleaf 时 minipage 中的另一个缩进问题

我很快就要写我的硕士论文了,所以现在我正在用 Overleaf 学习 tex。我从制作简历开始,但我一直遇到缩进问题。我遇到很多建议并尝试了它们,但我的缩进看起来仍然不对。

在此处输入图片描述

从图片中可以看出,我的小页面中的最后一项总是有不同的缩进,即使我将缩进设置为\noindent。这是我的代码。我已经挣扎了 2-3 天。我很感激建议和建议。[更新了我的代码]

\documentclass[a4paper]{article}
\usepackage{fontspec}

\usepackage{titling}
\usepackage[margin=.1in]{geometry}
\usepackage{titlesec}

\usepackage{enumitem}
\setlist{noitemsep,topsep =0pt,parsep =0pt,partopsep =0pt,leftmargin =*}

\titleformat{\section}
{\titlerule\addvspace{5pt}\normalfont\bfseries}
{}
{0cm}
{}[\titlerule]

\titleformat{\subsection}
{\footnotesize\bfseries}
{}
{0cm}
{}

\titlespacing{\subsection}
{0cm}
{.5cm}
{0cm}

\newcommand{\ul}{University of Landscape}
\newcommand{\uoa}{University of Architecture}

\newcommand{\entry}[4]{
    \begin{minipage}[t]{.15 \textwidth}
    \small\textsc{#1}
    \end{minipage}
    \begin{minipage}[t]{.80\textwidth}
    \bfseries\footnotesize #2

    \textit{\hspace{-.12cm}\footnotesize }#3
    {\normalfont #4}\end{minipage}
}

\begin{document}
\begin{minipage}[t]{0.7\textwidth}
\section{Education}
    \entry{2010 - 2013}{\ul}{\emph { Thesis : City Landscape Visualization using Augmented Reality}}{\begin{itemize} \item Diploma 3 in Architecture Engineering 
    \item GPA 3.63 (Cum laude Honor)
\end{itemize}}{}
    \entry{2014- 2016} {\uoa}{\emph{ Thesis : City Landscape Design using Probability Method}}{\begin{itemize} \item Bachelor in Architecture Design .\item GPA 3.53 \end{itemize}}{}
\entry{2017 - Now}{Unievrsity of College}{\emph{ Thesis : Improving Architecture Accuracy \\}} {Master candidate in Architecture Design }
\section{Seminars}
\entry{2010}{Guide Hand-Design for Beginner}{}{\ul}
\entry{2013}{Work-space within the Virtual Reality Scope}{}{\ul}
\entry{2013}{Workshop in Photography in the Green Living Creativity}{}{\ul}
\entry{2014}{Creative Architecture Industry}{}{\uoa}

\end{minipage}

\end{document}

答案1

虽然我不太相信这个奇怪的设置,但我认为下面的方法可以解决你的几个问题。不过我建议你读一下 latex 的介绍,而不是网上的一些随机指南。看看对于 LaTeX 初学者来说有哪些好的学习资源?

我认为从头开始用乳胶制作简历是一个好的开始,但仅供参考,已经有很多漂亮的简历模板。

\documentclass[a4paper]{article}
\usepackage{fontspec}

\usepackage{titling}
\usepackage[margin=.1in]{geometry}
\usepackage{titlesec}

\usepackage{enumitem}
\setlist{noitemsep,topsep =0pt,parsep =0pt,partopsep =0pt,leftmargin =*}

\titleformat{\section}
{\titlerule\vspace{2pt}\normalfont\bfseries}
{}
{0cm}
{}[\titlerule]

\titleformat{\subsection}
{\footnotesize\bfseries}
{}
{0cm}
{}

\titlespacing{\subsection}
{0cm}
{.5cm}
{0cm}

\newcommand{\ul}{University of Landscape}
\newcommand{\uoa}{University of Architecture}

\newcommand{\entry}[4]{%
  \begin{minipage}[t]{.15\textwidth}%
  \small\textsc{#1}%
  \end{minipage}%
  \begin{minipage}[t]{.80\textwidth}%
  \bfseries\footnotesize#2

  \ifx#3\empty\else\textit{\footnotesize #3}\fi

  {\normalfont #4}\end{minipage}\par\addvspace{2ex}
}

\begin{document}
\begin{minipage}[t]{0.7\textwidth}
\section{Education}
  \entry{2010 -- 2013}{\ul}
    {Thesis : City Landscape Visualization using Augmented Reality}
    {\begin{itemize}
      \item Diploma 3 in Architecture Engineering 
      \item GPA 3.63 (Cum laude Honor)
     \end{itemize}}{}
  \entry{2014 -- 2016}{\uoa}
    {Thesis : City Landscape Design using Probability Method}
    {\begin{itemize}
      \item Bachelor in Architecture Design
      \item GPA 3.53
     \end{itemize}}{}
  \entry{2017 -- Now}{University of College}
    {Thesis : Improving Architecture Accuracy}
    {Master candidate in Architecture Design}

\section{Seminars}
\entry{2010}{Guide Hand-Design for Beginner}{}{\ul}
\entry{2013}{Work-space within the Virtual Reality Scope}{}{\ul}
\entry{2013}{Workshop in Photography in the Green Living Creativity}{}{\ul}
\entry{2014}{Creative Architecture Industry}{}{\uoa}

\end{minipage}

\end{document}

结果

答案2

根据以下建议Reddit,这是因为最后一行没有对齐。所以我需要添加

\unskip\parfillskip 0pt \par

在命令的末尾\entry。它起作用了!

相关内容