在LaTeX中缩进Word Wrap

Jas*_*n B 4 text latex typesetting

我正在LaTeX中编写一个文档,当我有一行环绕的文本时,我遇到了一个问题.我需要的是文本,当它环绕时,缩进以便它与标签匹配(很像\ item [Label:]文本函数,除了我不能使用{description}上下文.任何想法?

这发生在上下文中

\newcommand{\objectiveresheading}[1]{%
  {\parashade[.9]{sharpcorners{\textbf{\Large{Objective: }\large{#1}}}}}
Run Code Online (Sandbox Code Playgroud)

Wil*_*son 5

有一个内部LaTeX宏来执行这个函数调用\@hangfrom.这是一个例子:

\documentclass{article}
\usepackage{lipsum}
\begin{document}
\makeatletter
\newcommand*\objectiveresheading[1]{%
  \@hangfrom{\Large\bfseries Objective: }%
  {\large\bfseries #1\par}%
} 
\makeatother
\objectiveresheading{\lipsum[1]}
\end{document}

请注意,包装文本只能是单个段落.如果您需要多个段落,那么更类似于列表环境的内容会更好.