浏览代码

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>
Rasmus 9 年之前
父节点
当前提交
18b7661a84
共有 1 个文件被更改,包括 25 次插入5 次删除
  1. 25 5
      doc/org.texi

+ 25 - 5
doc/org.texi

@@ -12295,13 +12295,33 @@ the @LaTeX{} @code{\includegraphics} macro will be commented out.
 @cindex plain lists, in @LaTeX{} export
 
 Plain lists accept two optional attributes: @code{:environment} and
-@code{:options}.  The first one allows the use of a non-standard environment
-(e.g., @samp{inparaenum}).  The second one specifies additional arguments for
-that environment.
+@code{:options}.  The first can be used to specify the environment.  The
+second can be used to specifies additional arguments to the environment.
+Both attributes are illustrated in the following example:
 
 @example
-#+ATTR_LATEX: :environment compactitem :options [$\circ$]
-- you need ``paralist'' package to reproduce this example.
+#+LATEX_HEADER: \usepackage[inline]@{enumitem@}
+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
 
 @subsubheading Source blocks in @LaTeX{} export