emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: avigoz <avigoz@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: "LATEX_HEADER includes are not copied to temp directories" [8.2.5c (8.2.5c-elpa @ /Users/avigoz/.emacs.d/elpa/org-20140107/)]
Date: Thu, 21 Aug 2014 16:40:23 +0100	[thread overview]
Message-ID: <87d2btyhp4.fsf@ucl.ac.uk> (raw)
In-Reply-To: <m2mwayrsiy.fsf@hezimacair.es.huji.ac.il> (avigoz@gmail.com's message of "Thu, 21 Aug 2014 14:28:21 +0300")

On Thursday, 21 Aug 2014 at 14:28, avigoz wrote:
> Remember to cover the basics, that is, what you expected to happen and
> what in fact did happen.  You don't know how to make a good report?  See
>
>      http://orgmode.org/manual/Feedback.html#Feedback
>
> Your bug report will be posted to the Org-mode mailing list.
> ------------------------------------------------------------------------
>
> in my orgmode files i include the line "#+LATEX_HEADER: \input{lib.tex}"
> in order to have the latex listings package included. (lib.tex includes
> only one line - \usepackage{listings} ). When I now use c-c c-x c-l in
> order to view an equation snippet inside an orgmode buffer, compilation fails
> because the temporary directory that orgmode uses does not include
> lib.tex . if I copy lib.tex manually to the temp directory, everything works.

I am not sure this really qualifies as a bug.  I think it would be
unrealistic to expect org to be able to parse LaTeX code.  

The solution is relatively straightforward, albeit maybe not the most
portable: specify a full path for the file name in the input command.

Alternatively, use org directives for including other org files?

Or modify the org-latex-classes variable to include your desired header
specifications if you always want them.

HTH,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.1, Org release_8.3beta-246-g77d0da

      reply	other threads:[~2014-08-21 15:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-21 11:28 Bug: "LATEX_HEADER includes are not copied to temp directories" [8.2.5c (8.2.5c-elpa @ /Users/avigoz/.emacs.d/elpa/org-20140107/)] avigoz
2014-08-21 15:40 ` Eric S Fraga [this message]

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=87d2btyhp4.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=avigoz@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).