From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Help with writing plain list followed by description list [ox-latex] Date: Tue, 15 Mar 2016 23:15:08 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e016348a8269afa052e21ee61 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag1w5-0008WS-Uv for emacs-orgmode@gnu.org; Tue, 15 Mar 2016 23:15:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ag1w4-0004ZR-OW for emacs-orgmode@gnu.org; Tue, 15 Mar 2016 23:15:49 -0400 Received: from mail-ob0-x22a.google.com ([2607:f8b0:4003:c01::22a]:34986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag1w4-0004ZN-IM for emacs-orgmode@gnu.org; Tue, 15 Mar 2016 23:15:48 -0400 Received: by mail-ob0-x22a.google.com with SMTP id fp4so38276851obb.2 for ; Tue, 15 Mar 2016 20:15:48 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-org list --089e016348a8269afa052e21ee61 Content-Type: text/plain; charset=UTF-8 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 --089e016348a8269afa052e21ee61 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I need help on generating a latex e= xport correctly for the case where a description list has to immediately fo= llow a plain list.

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

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

* Bad
- Plain list item
- Descrip= tion :: 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:orgheadl= ine1}
\begin{itemize}
\item Plain list item
\= item[{Description}] Description list became part of plain list here!
<= div>\end{itemize}
#+END_EXAMPLE
-----
Note th= at the description list item comes *before* =3D\end{itemize}=3D.
=
*How do I tell org to end the =3Ditemize=3D block at the las= t plain list item and begin =3Ddescription=3D block before the first descri= ption list item?*

-- OR --

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

<= div>-----
#+BEGIN_EXPORT latex
\section{Good}
\label{sec:orgheadline2}
\begin{itemize}
\item Plain l= ist item
\end{itemize}
\begin{description}
\i= tem[{Description}] This looks fine because I have moved the description lis= t out of the plain list.
\end{description}
#+END_EXPORT=
-----

=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D




=

--
Kausha= l Modi
--089e016348a8269afa052e21ee61--