如何隐藏 LaTeX 列表中的项目符号?
从语义上讲,我想要一个逐项列表,但在视觉上我只想要一些空间。 怎样才能隐藏子弹呢?
Semantically, I want an itemized list, but visually I just want some space. How can I hide the bullets?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
或者,您可以在 [] 内放置一些内容。
Optionally, you can put something inside the [].
我不能谈论任何其他设置,但我在 MacTex 上使用 Tufte-Latex,并且我只需输入以下内容:
\begin{itemize}[]
它有效。 :-) 我喜欢猜测这样做。 因此,只需尝试在后面添加
[]
即可。PS lindelof 的“通用”列表也有效,但它们没有像 itemize 那样很好地排列。 Jakub 的建议激发了我的猜测,当我尝试时,我得到了一堆“label=”字符串作为要点。
编辑:正如其他人指出的那样,更标准的方法是再次使用 [],但在列表中的每个项目旁边,如本页面上的其他答案所示。 如果您厌倦了在每行上看到方括号,请尝试本页上的其他方法:)
I can't speak for any other setup, but I'm using Tufte-Latex on MacTex, and I just typed the following:
\begin{itemize}[]
It worked. :-) I love it when guessing does that. So just try adding
[]
after.P.S. the "generalized" list from lindelof worked also, but they didn't line up as nicely as with itemize. Jakub's suggestion was what inspired my guess, when I tried it, I got a bunch of "label=" strings as bullet points.
Edit: As others have pointed out, the more standard approach is to again use [], but next to each item in the list as in other answers on this page. If you tire of seeing square brackets on each line, try other approaches on this page :)
我的回复对于这个帖子来说已经很晚了,但我想我会添加它,以方便未来搜索者的利益。
我通过使用描述环境并在 \item 命令中使用空格来完成此操作。
例如,
这对我来说效果很好。
My response is quite late for this thread but thought I will add it for the benefit of any future searchers.
I accomplished this by using the description environment and using blanks for the \item commands.
e.g
That worked fine for me.
您可能想要的是一个通用列表:
此环境的第二个参数是将插入到每个项目前面的符号。
What you probably want is a generalized list:
The second argument to this environment is the symbol that will be inserted in front of every item.
我认为最好的解决方案是使用 CTAN 的
enumitem
包:它存在于 teTeX 和 LaTex 中,并且也应该存在于大多数其他 TeX 发行版中。 然后您就可以使用:I think the best solution would be to use
enumitem
package from CTAN: It is present in teTeX and LaTex and should also be present in most other TeX distribution. Then you are able to use:项目符号本身是一个宏,因此您可以轻松地在全局范围内重新定义它,如下所示:
\renewcommand{\labelitemi}{$\star$}
在您的情况下,只需将宏留空即可。 请参阅此页面 了解详情。
The bullet itself is a macro so you can easily redefine it globally like this:
\renewcommand{\labelitemi}{$\star$}
In your case just leave the macro empty. See this page for details.
如果您想要的只是空间,而不是列表环境,您可以使用选项卡环境
If all you want is the space, rather than a list environment you could use the tabbing environment
您可以通过多种方式执行此操作:
You can do this in several ways: