Lazy Diary @ Hatena Blog

PowerShell / Java / miscellaneous things about software development, Tips & Gochas. CC BY-SA 4.0/Apache License 2.0

YaTeX のバグ?

 \begin{itemize}
  \item hogehoge ...
        hugahuga ...
  \item piyopiyo ...
 \begin{itemize}
  \setlength{\itemsep}{0pt}
  \item hogehoge ...
                  hugahuga ...
  \item piyopiyo ...

\setlength{\itemsep}{0pt} みたいなのを入れると、複数行に渡る item のインデントが変になる。


対策としては、プリアンブルで以下のようにして……

\def\nospace{\setlength{\itemsep}{0pt}}

で、実際に使うときには

\begin{itemize}
    \nospace
    \item hoge ...

とする。この場合はインデントが変にならない。それに入力もラク