emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Help with writing plain list followed by description list [ox-latex]
@ 2016-03-16  3:15 Kaushal Modi
  2016-03-16  3:25 ` Kaushal Modi
  0 siblings, 1 reply; 2+ messages in thread
From: Kaushal Modi @ 2016-03-16  3:15 UTC (permalink / raw)
  To: emacs-org list

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-16  3:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-16  3:15 Help with writing plain list followed by description list [ox-latex] Kaushal Modi
2016-03-16  3:25 ` Kaushal Modi

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).