如何删除第一段的缩进

如何删除第一段的缩进

我正在尝试制作一份简历,但无法摆脱第一段中的第一个缩进。

\noindent和都\setlength{\parindent}{0pt}不起作用。


\documentclass[a4paper]{article}

\usepackage{array}
\makeatletter
\newcommand{\compress}{\@minipagetrue}
\makeatother

\usepackage[a4paper,bindingoffset=0.2in,%
            left=2cm,right=2cm,top=2cm,bottom=2cm,%
            footskip=.25in]{geometry}
\usepackage{multicol}
\usepackage{enumitem} % for formatting itemized lists
\usepackage{parskip}
\usepackage{tabularx} % allows for tables to be created by coloumn spacing instead of line spacing as in tabular
\usepackage[dvipsnames]{xcolor}%imports the a colour pallet for things like lines
\usepackage{colortbl} %allows colour fomratting for table lines

\setlength{\columnsep}{1cm} % sets the column divider space in between columns
\date{} % Removes the date
\hyphenpenalty=10000
\hfuzz=5pt % The \hfuzz setting specifies the maximum amount of box-overflow before a warning message will be issued.
\pagenumbering{gobble}%gets rid of page numbers
\title{\vspace{-1cm}\Huge Curriculum Vitae}
\author{\Large\textbf{NAME}\\EMAIL\\PHONE}

\begin{document}

\maketitle

\vspace{-10pt}{\color{RawSienna} \par\noindent\rule[3mm]{\linewidth}{0.4mm} } %[2mm] sets the vertical distance of the paragraph from the line 
BLA BLA BLA BLA BLA
{\color{RawSienna}\par\noindent\rule[1mm]{\linewidth}{0.4mm} }

\vspace{-10pt}

\end{document}

答案1

这是单词间距而不是段落缩进

\vspace{-10pt}{\color{RawSienna} \par\noindent\rule[3mm]{\linewidth}{0.4mm} } %[2mm] sets the vertical distance of the paragraph from the line 
                                                                           % %

删除多余的空格,因此该行是:

 \vspace{-10pt}{\color{RawSienna} \par\noindent\rule[3mm]{\linewidth}{0.4mm}}\par%[2mm] sets the vertical distance of the paragraph from the line 

在此处输入图片描述

相关内容