marginnote宏包,用在列表环境中出现空行情况

2020-10-28 23:09发布

## 编译环境 操作系统 * [ ] Windows 7/8/10 Tex发行版 * [ ] TexLive `2019` ## 我的问题 ``` [tex] \documentclass{boo...

## 编译环境 操作系统 * [ ] Windows 7/8/10 Tex发行版 * [ ] TexLive `2019` ## 我的问题 ``` [tex] \documentclass{book} \usepackage{marginnote} \begin{document} \begin{enumerate} \item the first line \item \marginnote{empty line?}\begin{enumerate} \item test \end{enumerate} \end{enumerate} \end{document} ``` 使用marginnote 当出现两层嵌套列表环境使用时会出现空白行,该如何处理去除这个空白行?望赐教。 ![](https://wenda.latexstudio.net/data/attach/201028/jVVIf4RG.PNG) 希望(a)test能在蓝色框的位置
3条回答
嵌套的时候不是 `marginnote` 的问题,只要嵌套时那一行有内容,嵌套的就会跑到下一行去,比如说 ``` \documentclass{book} \usepackage{marginnote} \begin{document} \begin{enumerate} \item the first line \item x \begin{enumerate} \item test \end{enumerate} \end{enumerate} \end{document} ``` 如果你想让 marginnote 在 (a) test 那一行,只要把它写在下面就行了,因为 `marginnote` 和上面的 x 一样,是要占用一行空间的,自然不会再把嵌套的环境再挤在一行了 ``` \documentclass{book} \usepackage{marginnote} \begin{document} \begin{enumerate} \item the first line \item \begin{enumerate} \item test \marginnote{empty line?} \end{enumerate} \end{enumerate} \end{document} ```

一周热门 更多>