如何在LaTeX中实现水平项目符号列表?
在LaTeX中创建水平项目符号列表的方法
你当前使用inparaenum环境生成的是带数字编号的水平列表,要替换为项目符号,可通过以下两种常用方法实现:
方法一:使用enumitem包定制标签
enumitem包提供了高度灵活的列表定制功能,只需导入包后修改inparaenum的标签样式即可:
\documentclass[twoside = false, % doppelseitiger Druck DIV=17, % DIV Faktor für Satzspiegelberechnung, sie Doku zu KOMA Script BCOR=15mm, % Bindekorrektur chapterprefix=false, headinclude=true, footinclude=false, pagesize, % write pagesize to DVI or PDF fontsize=11pt, % use this font size paper=a4, % use ISO A4 bibliography=totoc, % write bibliography-chapter to table of contents index=totoc, % write index-chapter to table of contents cleardoublepage=plain, % \cleardoublepage generates pages with pagestyle empty headings=big, % A4/B5 listof=flat, % improved list of tables numbers=noenddot ]{scrbook} \usepackage{enumitem} % 导入enumitem包 \begin{document} \begin{inparaenum}[label=\labelitemi] % 将标签设置为默认项目符号 \item A \item B \item C \item D \item E \item F \item G \end{inparaenum} \end{document}
方法二:使用paralist包的inparaitem环境
paralist包自带的inparaitem环境专门用于生成水平项目符号列表,无需额外配置标签:
\documentclass[twoside = false, % doppelseitiger Druck DIV=17, % DIV Faktor für Satzspiegelberechnung, sie Doku zu KOMA Script BCOR=15mm, % Bindekorrektur chapterprefix=false, headinclude=true, footinclude=false, pagesize, % write pagesize to DVI or PDF fontsize=11pt, % use this font size paper=a4, % use ISO A4 bibliography=totoc, % write bibliography-chapter to table of contents index=totoc, % write index-chapter to table of contents cleardoublepage=plain, % \cleardoublepage generates pages with pagestyle empty headings=big, % A4/B5 listof=flat, % improved list of tables numbers=noenddot ]{scrbook} \usepackage{paralist} % 导入paralist包 \begin{document} \begin{inparaitem} % 直接生成水平项目符号列表 \item A \item B \item C \item D \item E \item F \item G \end{inparaitem} \end{document}
以上两种方法都能将原有的数字编号水平列表替换为项目符号样式的水平列表,满足你的需求。
内容的提问来源于stack exchange,提问作者Sanchit Jain
相关产品推荐
相关产品推荐

