emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: "LATEX_HEADER includes are not copied to temp directories" [8.2.5c (8.2.5c-elpa @ /Users/avigoz/.emacs.d/elpa/org-20140107/)]
@ 2014-08-21 11:28 avigoz
  2014-08-21 15:40 ` Eric S Fraga
  0 siblings, 1 reply; 2+ messages in thread
From: avigoz @ 2014-08-21 11:28 UTC (permalink / raw)
  To: emacs-orgmode


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.

Emacs  : GNU Emacs 24.3.1 (x86_64-apple-darwin12.3.0, NS apple-appkit-1187.37)
 of 2013-10-02 on avigozs-MacBook-Pro.local
Package: Org-mode version 8.2.5c (8.2.5c-elpa @ /Users/avigoz/.emacs.d/elpa/org-20140107/)

current state:
==============
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe
		      org-src-native-tab-command-maybe
		      org-babel-hide-result-toggle-maybe
		      org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook
			  org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-agenda-start-on-weekday 0
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-latex-format-inlinetask-function 'ignore
 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
		     org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
		   [org-add-hook change-major-mode-hook org-show-block-all
		    append local]
		   5]
		 turn-on-font-lock
		 #[nil "\300\301\302\303\304$\207"
		   [org-add-hook change-major-mode-hook
		    org-babel-show-result-all append local]
		   5]
		 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
			  org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
		  org-cycle-hide-inline-tasks org-cycle-show-empty-lines
		  org-optimize-window-after-visibility-change)
 org-babel-tangle-lang-exts '(("python" . "py") ("perl" . "pl")
			      ("latex" . "tex") ("emacs-lisp" . "el"))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-html-format-headline-function 'ignore
 org-startup-truncated nil
 org-babel-load-languages '((emacs-lisp . t) (latex . t) (octave . t)
			    (perl . t) (python . t) (sh . t))
 org-html-format-inlinetask-function 'ignore
 org-agenda-files '("~/Dropbox/gtd/work.org" "~/Dropbox/gtd/gtd_all.org"
		    "~/Dropbox/gtd/birthdays_anniv.org"
		    "~/Dropbox/gtd/jewish.org"
		    "~/Dropbox/gtd/private_google.org")
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-confirm-babel-evaluate nil
 org-src-fontify-natively t
 )

^ permalink raw reply	[flat|nested] 2+ messages in thread

* 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/)]
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Eric S Fraga @ 2014-08-21 15:40 UTC (permalink / raw)
  To: avigoz; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-21 15:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

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).