I have list of file names in a multicol
environment. I can use sort commands on them when needed e.g. (sort -u
).
I would like to temporarily make LaTeX recognize a single-newline (\n
) as a new line. Normally LaTeX recognizes only two newlines (\n\n
) as a new line.
The purpose is to get a nice list of file names without using a tabular environment. Multicols automatically determines the ideal height of the list based on the count of items and number of columns.
Code
\documentclass{article}
\usepackage{fontspec}
\usepackage{multicol}
\begin{document}
\begin{multicols}{2}
JPEG
JPEG2000
PDF
PNG
PPM
TIFF
XBM
ZIP
\end{multicols}
\end{document}
\obeylines
is the answer, which makes a newline a paragraph break (which is also what a blank line signifies: not a newline)