微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何在 LaTex 中对齐有和没有项目符号的句子的编号

如何解决如何在 LaTex 中对齐有和没有项目符号的句子的编号

我想写一个段落,其中所有的句子都有编号,但只有少数有一个项目符号方块,同时保持数字对齐(请参见下图了解所需的输出)。

enter image description here

\documentclass[jou]{apa7}
\begin{document}

1. This is an example sentence.

$\bullet$$\bullet$ 2. This is an example sentence. 

This is another example sentence. 

\end{document}

在上面的代码中,1和2没有对齐。

提前致谢!

解决方法

我认为最简单的方法是使用 enumerate 环境让 Latex 进行编号,然后手动调整项目符号句子的标签:

\documentclass{article}

\begin{document}

\begin{enumerate}
\item This is an example sentence.
\item[\textbullet\textbullet] sentence
\item This is an example sentence.
\end{enumerate}

\end{document}

enter image description here

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。