emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: emacs-org list <emacs-orgmode@gnu.org>
Subject: Help with writing plain list followed by description list [ox-latex]
Date: Tue, 15 Mar 2016 23:15:08 -0400	[thread overview]
Message-ID: <CAFyQvY2aUSwjxs1jhZ=XW0S50=383uVJXngEO5k+6foTafHKew@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1464 bytes --]

Hi,

I need help on generating a latex export correctly for the case where a
description list has to immediately follow a plain list.

Below is a MWE that demonstrates the problem and here is a screenshot of
the generated PDF ( http://i.imgur.com/FEjN099.png ). Note how the
Description list item looks under "Bad" section (generated using org) vs
"Good" section (generated using latex code directly).

==============================================================

* Bad
- Plain list item
- Description :: Description list became part of plain list here!
-----
Above does not work because org exports it to \LaTeX as below.
#+BEGIN_EXAMPLE
\section{Bad}
\label{sec:orgheadline1}
\begin{itemize}
\item Plain list item
\item[{Description}] Description list became part of plain list here!
\end{itemize}
#+END_EXAMPLE
-----
Note that the description list item comes *before* =\end{itemize}=.

*How do I tell org to end the =itemize= block at the last plain list item
and begin =description= block before the first description list item?*

-- OR --

*What should I write in org to generate the below?*

-----
#+BEGIN_EXPORT latex
\section{Good}
\label{sec:orgheadline2}
\begin{itemize}
\item Plain list item
\end{itemize}
\begin{description}
\item[{Description}] This looks fine because I have moved the description
list out of the plain list.
\end{description}
#+END_EXPORT
-----

==============================================================





--
Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 2169 bytes --]

             reply	other threads:[~2016-03-16  3:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-16  3:15 Kaushal Modi [this message]
2016-03-16  3:25 ` Help with writing plain list followed by description list [ox-latex] Kaushal Modi

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='CAFyQvY2aUSwjxs1jhZ=XW0S50=383uVJXngEO5k+6foTafHKew@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --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).