如何垂直对齐某一部分内的文本?

如何垂直对齐某一部分内的文本?

我是 LaTeX 新手,我想垂直对齐一些文本。

我用过模板,到目前为止我已经写了以下内容:

\section{\mysidestyle My\\Skills}
- How do I manage to get this line to align with the first word of the second line of text? It doesn't seem to align up? \\
- So that all of these lines sit flush\\
- And look presentable\\

输出如下: 在此处输入图片描述

如何获得以下输出:

在此处输入图片描述 注意 H 如何 s 似乎 垂直对齐,即缩进。我怎样才能做到这一点?


附录一:

我已经有过逐项列举'd 列出了输出为 • 的列表。我想保留它们原样(即:•)。我想再有一个逐项列举此功能适用于破折号(即:-)。


附录二: 我希望第一行与“我的技能”中的“我的”位于同一行: 在此处输入图片描述 并不是: 在此处输入图片描述

红线仅供参考——应该忽略。

答案1

您可以轻松地使用环境来执行此操作并更改所需环境内的itemize第一级标签(\labelitemi) :itemize

\documentclass[margin,line]{resume}
\usepackage[hidelinks]{hyperref}

\begin{document}

%\renewcommand\labelitemi{--}% < Setting the bullet as an en-dash GLOBALLY

\begin{resume}
 \section{\mysidestyle My\\Skills}

 \begin{itemize}
  \vspace{0mm}% < Aligns the first line of the "section" with the first "item"
  \renewcommand\labelitemi{--}% < Setting the bullet as an en-dash LOCALLY
  \item How do I manage to get this line to align with the first word of the second line of text? It doesn't seem to align up?
  \item So that all of these lines sit flush
  \item And look presentable
 \end{itemize}

 \begin{itemize}
  \item How do I manage to get this line to align with the first word of the second line of text? It doesn't seem to align up?
  \item So that all of these lines sit flush
  \item And look presentable
 \end{itemize}

\end{resume}
\end{document}

结果是:

在此处输入图片描述

相关内容