![段落缩进不正确](https://linux22.com/image/313627/%E6%AE%B5%E8%90%BD%E7%BC%A9%E8%BF%9B%E4%B8%8D%E6%AD%A3%E7%A1%AE.png)
段落缩进不正确。
这是我正在使用的代码
\documentclass[a4paper,10pt]{article}
%-----------------------------------------------------------
\usepackage{geometry}
\usepackage{url}
\fontfamily{SansSerif}
\selectfont
\usepackage[T1]{fontenc}
\usepackage{color}
\definecolor{mygrey}{gray}{0.75}
\textheight=9.75in
\raggedbottom
\setlength{\tabcolsep}{0in}
\newcommand{\lsep}{-0.5cm}
\renewcommand{\labelitemii}{$\circ$}
\pagestyle{empty}
%-----------------------------------------------------------
%Custom commands
\newcommand{\resheading}[1]{{\small \colorbox{mygrey}{\begin{minipage}{0.975\textwidth}{\textbf{#1 \vphantom{p\^{E}}}}\end{minipage}}}}
%-----------------------------------------------------------
\begin{document}
\resheading{\textbf{OBJECTIVE} }\\[\lsep]
\\ \\
\indent
To secure a position where Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah.
\end{document}
谁能告诉我问题出在哪里
答案1
只需将命令添加\noindent
到您的宏中即可。
% arara: pdflatex
\documentclass[a4paper]{article}
\usepackage{geometry}
\usepackage[T1]{fontenc}
\usepackage{lmodern} % load this whith [T1]{fontenc}
\usepackage{xcolor}
\definecolor{mygrey}{gray}{0.75}
\pagestyle{empty}
\newcommand{\resheading}[1]{{\noindent\small\colorbox{mygrey}{\begin{minipage}{0.975\textwidth}{\textbf{#1\vphantom{p\^{E}}}}\end{minipage}}}\bigskip}
\begin{document}
\resheading{\textbf{OBJECTIVE}}
To secure a position where Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah. Blah.
\end{document}