Breaking a list into multiple columns in Latex

后端 未结 5 910
遇见更好的自我
遇见更好的自我 2021-01-29 18:55

Hopefully this is simple: I have a relatively long list where each list item contains very little text. For example:

* a
* b
* c
* d
* e
* f

I wish to form

5条回答
  •  囚心锁ツ
    2021-01-29 19:15

    Another option to avoid nesting two different environments (like multicols and enumerate).

    The environment called tasks from the package with the same name seems to me very easy to customize thanks to a variety of options (pdf guide here).

    This code:

    \documentclass{article}
    \usepackage{tasks}
    
    %\settasks{style=itemize}
    
    \begin{document}
    Text text text text text text text text text text text text 
    text text text text text text text text text text text text 
    text text text text text text text text text text text text.
    
    \begin{tasks}(2)
    \task[*] a
    \task[*] b
    \task[*] c
    \task[*] d
    \task[*] e
    \task[*] f
    \end{tasks}    
    
    Text text text text text text text text text text text text 
    text text text text text text text text text text text text 
    text text text text text text text text text text text text.
    \end{document}
    

    produces this output

    The package tasks was updated in August 2020 and it was originally created specifically for horizontally columned lists (see the screenshot just above here), the motivations behind this are resumed in the guide. If such arrangement of the items/tasks is acceptable, then this may be a good choice since it keeps - IMHO - the code tidy and flexible.

提交回复
热议问题