下面的程式碼
\documentclass{article}
\begin{document}
\begin{itemize}
\item[A very long line that will be in the margin of my document]
This is a test
\end{itemize}
\end{document}
產生
但文件中沒有警告log
(沒有任何超滿框)。
- 是否有任何機制可以確保
item
列印可選字段中的文字? - 在頁邊空白處寫下某個項目的圖例或簡報的可接受程度如何?
答案1
這是因為列出物理建構的方式:標籤框在清單左邊距,具有指令的效果\llap{labelbox}
。
解決方案包括align=left
從enumitem
包中設定密鑰並從包中抑制標籤縮排。頁左邊距:
\documentclass{article}
\usepackage[showframe]{geometry}
\usepackage{enumitem}
\begin{document}
\mbox{}
\vskip1cm
\begin{itemize}[align = left]
\item[A very long line that will be in the margin of my document]
This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test.
\item A normal item.
\end{itemize}
\end{document}