From: Manish <mailtomanish.sharma@gmail.com>
To: Austin Frank <austin.frank@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: possible latex export bug
Date: Thu, 2 Oct 2008 20:37:01 +0530 [thread overview]
Message-ID: <e7cdbe30810020807l3c1b50aamb67759f16d4d7503@mail.gmail.com> (raw)
In-Reply-To: <m063obbbn4.fsf@gmail.com>
On Thu, Oct 2, 2008 at 2:45 PM, Austin Frank wrote:
> Hello!
>
> I'll start by confessing up front that I've been tinkering with
> different exporting functions these past few weeks, so it's possible
> that the bug I'm reporting here is of my own making. I can't track it
> down, so here I am, hat in hand, to ask
>
> a) is this reproducible? and,
> b) if not, any idea which functions I should look at to chase it
> down?
>
> If I have the following org file
>
> --8<---------------cut here---------------start------------->8---
> * this is a test
> #+begin_latex
> \mu
> #+end_latex
> --8<---------------cut here---------------end--------------->8---
>
> and run org-export-as-latex, I get the following output
>
> --8<---------------cut here---------------start------------->8---
> % normal preamble stuff
> % ...
>
> \begin{document}
>
> \maketitle
>
>
> \section*{this is a test}
>
>
> \mu
>
> \end{document}
> --8<---------------cut here---------------end--------------->8---
>
> That's the correct behavior. If I use this org file
>
> --8<---------------cut here---------------start------------->8---
> * this is a test
> #+begin_latex
> \begin{quote}
> \mu
> \end{quote}
> #+end_latex
> --8<---------------cut here---------------end--------------->8---
>
>
> and run org-export-as-latex, I get
>
> --8<---------------cut here---------------start------------->8---
> % normal preamble stuff
> % ...
> \begin{document}
>
> \maketitle
>
>
> \section*{this is a test}
>
>
> \begin{quote}
> \mu
> \end{quote}
> #+end_latex
>
> \end{document}
> --8<---------------cut here---------------end--------------->8---
>
> In the second example, the #+end_latex line is not removed during
> org-export-to-latex.
>
> Possibly related, possibly unrelated, I'm also seeing that file-local
> variables defined at the end of a buffer are being exported verbatim
> during org-export-as-latex. This only happens in cases where the
> #+end_latex is also erroneously exported.
>
> --8<---------------cut here---------------start------------->8---
> * this is a test
> #+begin_latex
> \begin{quote}
> \mu
> \end{quote}
> #+end_latex
>
> #+ Local Variables:
> #+ org-export-latex-append-header: "
> #+ \\usepackage{graphicx}
> #+ "
> #+ End:
> --8<---------------cut here---------------end--------------->8---
>
> gives
>
> --8<---------------cut here---------------start------------->8---
> % normal preamble stuff
> % ...
>
> \begin{document}
>
> \maketitle
>
> \begin{quote}
> \mu
> \end{quote}
> #+end_latex
>
> #+ Local Variables:
> #+ org-export-latex-append-header: "
> #+ \\usepackage{graphicx}
> #+ "
> #+ End:
>
> \end{document}
> --8<---------------cut here---------------end--------------->8---
>
> This doesn't just apply to the quote environment, I've reproduced it
> with other #begin/end_latex blocks that contain latex environments.
> That is to say
>
> --8<---------------cut here---------------start------------->8---
> * this is a test
> #+begin_latex
> \begin{verbatim}
> \mu
> \end{verbatim}
> #+end_latex
> --8<---------------cut here---------------end--------------->8---
>
> has the same problem of including the #+end_latex tag after export.
>
> This is with Org-mode version 6.08-pre01, GNU Emacs 23.0.60.1
> (powerpc-apple-darwin8.11.0, *Step 9.0) of 2008-10-01.
>
>
> Can anyone reproduce this? Any debugging tips?
Yes, I can reproduce the issue in both the cases.
-- Manish
GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600)
Org-mode version 6.08-pre01 (commit 0ec6021)
next prev parent reply other threads:[~2008-10-02 15:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-02 9:15 possible latex export bug Austin Frank
2008-10-02 15:07 ` Manish [this message]
2008-10-10 21:13 ` Carsten Dominik
2008-10-13 3:56 ` Austin Frank
2008-10-14 18:46 ` Carsten Dominik
2008-10-15 2:54 ` Austin Frank
2008-10-15 11:06 ` Carsten Dominik
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=e7cdbe30810020807l3c1b50aamb67759f16d4d7503@mail.gmail.com \
--to=mailtomanish.sharma@gmail.com \
--cc=austin.frank@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).