org.texi: Add documentation on list nesting
* org.texi (@LaTeX{} specific attributes): Document how to get more than four levels. Suggested-by: 9661031 <9661031@gmail.com> <http://permalink.gmane.org/gmane.emacs.orgmode/105427>
This commit is contained in:
parent
0f512848ea
commit
18b7661a84
30
doc/org.texi
30
doc/org.texi
|
@ -12295,13 +12295,33 @@ the @LaTeX{} @code{\includegraphics} macro will be commented out.
|
||||||
@cindex plain lists, in @LaTeX{} export
|
@cindex plain lists, in @LaTeX{} export
|
||||||
|
|
||||||
Plain lists accept two optional attributes: @code{:environment} and
|
Plain lists accept two optional attributes: @code{:environment} and
|
||||||
@code{:options}. The first one allows the use of a non-standard environment
|
@code{:options}. The first can be used to specify the environment. The
|
||||||
(e.g., @samp{inparaenum}). The second one specifies additional arguments for
|
second can be used to specifies additional arguments to the environment.
|
||||||
that environment.
|
Both attributes are illustrated in the following example:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
#+ATTR_LATEX: :environment compactitem :options [$\circ$]
|
#+LATEX_HEADER: \usepackage[inline]@{enumitem@}
|
||||||
- you need ``paralist'' package to reproduce this example.
|
Some ways to say "Hello":
|
||||||
|
#+ATTR_LATEX: :environment itemize*
|
||||||
|
#+ATTR_LATEX: :options [label=@{@}, itemjoin=@{,@}, itemjoin*=@{, and@}]
|
||||||
|
- Hola
|
||||||
|
- Bonjour
|
||||||
|
- Guten Tag.
|
||||||
|
@end example
|
||||||
|
|
||||||
|
By default, @LaTeX{} only supports four levels of nesting for lists. If
|
||||||
|
deeper nesting is needed, the @samp{enumitem} @LaTeX{} package can be
|
||||||
|
employed, as shown in this example:
|
||||||
|
|
||||||
|
@example
|
||||||
|
#+LATEX_HEADER: \usepackage@{enumitem@}
|
||||||
|
#+LATEX_HEADER: \renewlist@{itemize@}@{itemize@}@{9@}
|
||||||
|
#+LATEX_HEADER: \setlist[itemize]@{label=$\circ$@}
|
||||||
|
- One
|
||||||
|
- Two
|
||||||
|
- Three
|
||||||
|
- Four
|
||||||
|
- Five
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
@subsubheading Source blocks in @LaTeX{} export
|
@subsubheading Source blocks in @LaTeX{} export
|
||||||
|
|
Loading…
Reference in New Issue