emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: Bug: incorrect export for LaTeX [8.2.10 (release_8.2.10 @ c:/emacs25-91/share/emacs/25.0.91/lisp/org/)]
Date: Sun, 06 Mar 2016 19:57:27 +0100	[thread overview]
Message-ID: <8760wzigdk.fsf@gmx.us> (raw)
In-Reply-To: <87povbw14p.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Fri, 04 Mar 2016 01:13:58 +0100")

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Rasmus <rasmus@gmx.us> writes:
>
>> I don’t think we need to do anything.
>
> Don't do anything? OK, done.
>
>> If we wanted to support this we’d probably need to load enumerate
>> (which is not a bad package...). We have worse offenders of manual
>> config. Local TOCs spring to mind. http://orgmode.org/org.html#fn-113
>
> Even if it isn't supported (I let you decide about it), It could be
> documented somewhere, if only as a FAQ, or even in the LaTeX export
> section of the manual.
>
> WDYT?

I would be happy with simply documenting this limitation and documenting a
solution, e.g. using enumitem one.  Enumitem is a wonderful package, but I
see no reason to add it as a standard package because of this.

Do any of you have a place in mind where we could add this to the manual?
How about the "Plain lists in LaTeX export".  I propose the following
change.  WDYT?  Can I commit/push?


modified   doc/org.texi
@@ -12297,12 +12297,30 @@ the @LaTeX{} @code{\includegraphics} macro will be commented out.
 
 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
+(e.g., @samp{itemize*} of @samp{enumitem}).  The second one specifies additional arguments for
 that environment.
 
 @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* :options [label={}, itemjoin={,}, itemjoin*={, and}]
+- Hola
+- Bonjour
+- Guten Tag
+@end example
+
+By default, @LaTeX{} only support four level of nesting for lists.  If deeper
+nesting is needed, the @samp{enumitem} @LaTeX{} package could be employed, as
+shown in this example:
+@example
+\usepackage{enumitem}
+\renewlist{itemize}{itemize}{9}
+\setlist[itemize]{label=$\circ$}
+- one
+  - two
+    - three
+      - four
+        - five
 @end example
 

Rasmus

-- 
A page of history is worth a volume of logic

  parent reply	other threads:[~2016-03-06 18:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-28 15:31 Bug: incorrect export for LaTeX [8.2.10 (release_8.2.10 @ c:/emacs25-91/share/emacs/25.0.91/lisp/org/)] 9661031
2016-02-29 21:16 ` Nicolas Goaziou
2016-03-02 21:20   ` Rasmus
2016-03-04  0:13     ` Nicolas Goaziou
2016-03-04 16:48       ` Nick Dokos
2016-03-06 19:07         ` Rasmus
2016-03-06 19:32           ` Nick Dokos
2016-03-06 19:57             ` Rasmus
2016-03-06 18:57       ` Rasmus [this message]
2016-03-07 11:12         ` Nicolas Goaziou
2016-03-07 13:35           ` Rasmus
2016-03-07 21:51             ` Nicolas Goaziou
2016-03-06 19:57     ` Marcin Borkowski
2016-03-14 11:05   ` 9661031

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8760wzigdk.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).