From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Papior Andersen Subject: Re: [bug] Latex export of lists (was Re: Problem with BEGIN_SRC export-as-latex and FORTRAN code) Date: Tue, 21 Jun 2011 18:53:17 +0200 Message-ID: References: <87aadbyzmg.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001517478484710ae104a63bb1e2 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ4Cr-0002l9-BQ for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 12:53:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZ4Cp-0006KZ-3S for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 12:53:41 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:49496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ4Co-0006KK-G2 for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 12:53:38 -0400 Received: by fxm18 with SMTP id 18so97059fxm.0 for ; Tue, 21 Jun 2011 09:53:37 -0700 (PDT) In-Reply-To: <87aadbyzmg.fsf@ucl.ac.uk> 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: Nick Papior Andersen , emacs-orgmode@gnu.org --001517478484710ae104a63bb1e2 Content-Type: text/plain; charset=UTF-8 Hi Eric Thanks. I can see why the new thing would work as it utilizes the listing environment. If the bug is fully removed then great. It shows when the verbatim environment is used in my version. If a newer version of org-mode will ever be used with only the verbatim environment, then what happens? No actual reason for not writing fortran besides it is shorter... However it will produce the same error nonetheless. Another error in your above shown result, is that the listing should have been exported inside the enumerate environment. I have speculated whether the error is due to fortran is not in language list. http://orgmode.org/worg/org-contrib/babel/languages.html As to my installation of org-mode, i downloaded and make, make install.. Have installed correctly, i just couldn't figure out to setup the new installation of org (i.e. it still uses the old which is shipped by standard!). I think i can overcome this issue if i spend some more time on it. :) Kind regards Nick 2011/6/21 Eric S Fraga > Nick Papior Andersen writes: > > > Hi all > > > > I have attached a sample which produces a wrong output in my org-mode > > installation. Both the output TeX file and the org file are attached. > > > > The wrong doing happens when i do "org-export-as-latex". The output tex > file > > has removed a certain string length (i counted 23) and inserted some from > > the code below as a description in the item field (which it shouldn't do > as > > we are in an enumerate environment). > > The problem you describe does not exist in the current git head so I > recommend you try upgrading again. Maybe explain what problems you had > with 7.5? > > In any case, using the same example file you posted, I see a different > problem when I export to latex. Here is a snippet of the resulting > latex: > > ,---- > | \section{Test} > | \label{sec-1} > | > | > | \begin{enumerate} > | \item Try and use \verb=org-export-as-latex=, it will produce error > segment. > | \end{enumerate} > | \lstset{language=C} > | \begin{lstlisting} > | MODULE m_global_precision > | IMPLICIT NONE > | INTEGER, PARAMETER :: SP = SELECTED_REAL_KIND(6,30) > | END MODULE m_global_precision > | \end{lstlisting} > | > | ORG-LIST-END-MARKER > | \section{Test2} > `---- > > *Note* the =ORG-LIST-END-MARKER=. > > Finally, why not specify language=Fortran? > > -- > : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 > : using Org-mode version 7.5 (release_7.5.414.g56de5) > --001517478484710ae104a63bb1e2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Eric

Thanks.

= I can see why the new thing would work as it utilizes the listing environme= nt. If the bug is fully removed then great.

It sho= ws when the verbatim environment is used in my version. If a newer version = of org-mode will ever be used with only the verbatim environment, then what= happens?

No actual reason for not writing fortran besides it is = shorter... However it will produce the same error nonetheless.
Another error in your above shown result, is that the listing = should have been exported inside the enumerate environment. I have speculat= ed whether the error is due to fortran is not in language list. http://orgmode.or= g/worg/org-contrib/babel/languages.html

As to my installation of org-mode, i downloaded and mak= e, make install.. Have installed correctly, i just couldn't figure out = to setup the new installation of org (i.e. it still uses the old which is s= hipped by standard!).
I think i can overcome this issue if i spend some more time on it. :)<= /div>

Kind regards Nick


2011/6/21 Eric S Fraga <e.fraga@ucl.ac.uk>
Nick Papior Andersen <nickpapior@gmail.com> writes:

> Hi all
>
> I have attached a sample which produces a wrong output in my org-mode<= br> > installation. Both the output TeX file and the org file are attached.<= br> >
> The wrong doing happens when i do "org-export-as-latex". The= output tex file
> has removed a certain string length (i counted 23) and inserted some f= rom
> the code below as a description in the item field (which it shouldn= 9;t do as
> we are in an enumerate environment).

The problem you describe does not exist in the current git head so I
recommend you try upgrading again. =C2=A0Maybe explain what problems you ha= d
with 7.5?

In any case, using the same example file you posted, I see a different
problem when I export to latex. =C2=A0Here is a snippet of the resulting latex:

,----
| \section{Test}
| \label{sec-1}
|
|
| \begin{enumerate}
| \item Try and use \verb=3Dorg-export-as-latex=3D, it will produce error s= egment.
| \end{enumerate}
| \lstset{language=3DC}
| \begin{lstlisting}
| =C2=A0 =C2=A0MODULE m_global_precision
| =C2=A0 =C2=A0 =C2=A0IMPLICIT NONE
| =C2=A0 =C2=A0 =C2=A0INTEGER, PARAMETER :: SP =3D SELECTED_REAL_KIND(6,30)=
| =C2=A0 =C2=A0END MODULE m_global_precision
| \end{lstlisting}
|
| ORG-LIST-END-MARKER
| \section{Test2}
`----

*Note* the =3DORG-LIST-END-MARKER=3D.

Finally, why not specify language=3DFortran?

--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.414.g56de5)

--001517478484710ae104a63bb1e2--