emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sebastian Rose <sebastian_rose@gmx.de>
To: "Flávio de Souza" <flaviostz@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Latex enumerate item problem
Date: Sat, 07 Feb 2009 02:52:26 +0100	[thread overview]
Message-ID: <87wsc32eud.fsf@kassiopeya.MSHEIMNETZ> (raw)
In-Reply-To: <87prhvksk9.fsf@gmail.com> ("Flávio de Souza"'s message of "Fri, 06 Feb 2009 22:18:46 -0200")

HI Flavio (?),


Lists are made from indentation in the first place, I think. Hence the 

#+BEGIN_EXAMPLE

breaks the list.


It would be OK to export it like that, since, funny enough, a `<pre>'
element is indeed allowed inside an `<li>' element in XHTML (it is _not_
allowed in a <p> element _and_ a <ol> element is _not_ allowed inside a
<p>).



To check the validity of XHTML fragments, goto

    http://validator.w3.org/#validate_by_input+with_options

ensure that `Validate HTML fragment' is checked (under `Options') and
choose org's DOCTYPE (XHTML 1.0).

Finally put this into the textarea on top before you submit:

<p>
 <ol>
  <li>blabllabla
   <pre>
     function lowerThan(a,b){return (a &lt; b); }
   </pre>
  </li>
 </ol>
</p>


As a second test remove the <p> element:


 <ol>
  <li>blabllabla
   <pre>
     function lowerThan(a,b){return (a &lt; b); }
   </pre>
  </li>
 </ol>




flaviostz@gmail.com (Flávio de Souza) writes:
> I think I found a problem when exporting to Latex.
>
> If my org file is like this:
>
> * Blablablbalbala
>
> 1) Blablablbalbala 
>
> 2) Blablablbalbala 
>
> #+BEGIN_EXAMPLE
>
> sudo apt-get install openoffice.org-java-common
>
> #+END_EXAMPLE
>
> 3) Blablablbalbala 
>
> 4) Blablablbalbala 
>
> 5) Blablablbalbala 
>
> When I export to latex I got two enumerated lists instead of only one. See how the code will look:
>
> \begin{enumerate}
> \item Blablablbalbala 
> \item Blablablbalbala 
> \end{enumerate}
>
> \begin{verbatim}
>
>       sudo apt-get install openoffice.org-java-common
>
> \end{verbatim}
>
>
> \begin{enumerate}
> \item Blablablbalbala 
> \item Blablablbalbala 
> \item Blablablbalbala 
> \end{enumerate}
>
> Then I need to fix it by deleting the \end and \begin that apperead in the wrong lines.
>
> Regards,

-- 
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Email: s.rose@emma-stil.de, sebastian_rose@gmx.de
Http:  www.emma-stil.de

  reply	other threads:[~2009-02-07  1:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-07  0:18 Latex enumerate item problem Flávio de Souza
2009-02-07  1:52 ` Sebastian Rose [this message]
2009-02-07 13:56 ` Carsten Dominik
2009-02-07 15:18   ` Flávio de Souza

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=87wsc32eud.fsf@kassiopeya.MSHEIMNETZ \
    --to=sebastian_rose@gmx.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=flaviostz@gmail.com \
    /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).