更新的答案:现在同时考虑单行和多行列表项。
一项(简单)逐项列出而不逐项...
Some text that is here and I want to see what it does. \\
\indent$\bullet$\,first item \\
\indent$\bullet$\,second item \\
Some text that is here and I want to see what it does.
Replace $\bullet$
随心所欲。
\indent- first item\\
\indent$\cdot$\,first item\\
\indent$\circ$\,first item\\
\indent$\ast$\,first item\\
如图所示,“-”似乎与空格配合得很好,但其余的需要尾随\,
它在数学符号和下一个单词之间插入一个空格。如果没有它,“项目符号”和后面的文本之间就没有空格。
多行项目(稍微复杂一点)嗯,没那么复杂。刚刚找到了关于执行“悬挂缩进”的参考,这似乎使其足够灵活,可以做任何您想做的事情。 [1]
\documentclass{article}
\begin{document}
\newlength{\originalParindent} %see comments below
\setlength{\originalParindent}{\parindent}
Some text that is here and I want to see what it does and to show the current
indentation behavior of a blob of text. Some text that is here and I want to
see what it does. Some text that is here and I want to see what it does. \par
\leftskip .3in % see comments below
\parindent -0.09in % see comments below
\indent$\bullet$\,first item that spills onto a second line to demonstrate the
function of leftskip and it's ability to make hanging indents. Might as well
make sure we hit three lines with this first item to be sure it works.\\
\indent$\bullet$\,second item can run onto a second line as well; hopefully
this solves the problem\par
\leftskip 0in %reset the defaults
\setlength{\parindent}{\originalParindent} %resent the defaults
Some text that is here and I want to see what it does. Just want to make sure
the defaults are restored and paragraphs indent with their proper functionality.
\end{document}
Comments
Parindent stuff:我们将让事情看起来像一个逐项项目符号,其中多行缩进以匹配第一个缩进的文本。为了做到这一点,我们摆弄parindent
and leftskip
价值观。 Leftskip 通常为零,但我不知道是什么parindent
设置为,以便我们将其保存在变量中并稍后恢复。在试图找到相当于的东西时发现了这个技巧\setlength{\parindent}{default}
.[2]
leftskip:这与整体缩进的距离有关。如果您希望它更靠右,只需增加该值即可。零表示项目符号与段落左侧齐平。
parindent:这会覆盖使后续行与项目符号左边缘对齐的默认行为。 -0.9 值恰好看起来适合补偿项目符号和空格,以便后续行看起来与第一行匹配。你也可以调整这个。例如,这样的东西可能看起来更好。
项目符号和文本之间的间距更大;家长相应调整:
\leftskip .3in % see comments below
\parindent -0.215in % see comments below
\indent$\bullet$\quad first item that spills onto a second line to demonstrate
the function of leftskip and it's ability to make hanging indents. Might as
well make sure we hit three lines with this first item to be sure it works.\\
希望有帮助! parindent 和 leftskip 手柄应该可以让您完善您想要的东西。
[1] http://www.wkiri.com/today/?p=76 http://www.wkiri.com/today/?p=76
[2] http://www.cs.cmu.edu/afs/cs/usr/bovik/database/tsf-bboard/Tex/enumerate http://www.cs.cmu.edu/afs/cs/usr/bovik/database/tsf-bboard/Tex/enumerate