emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Symbol's value as variable is void: org-version
@ 2012-04-28 17:59 Thomas S. Dye
  2012-04-28 18:19 ` Martyn Jago
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Thomas S. Dye @ 2012-04-28 17:59 UTC (permalink / raw)
  To: Org-mode

Aloha all,

In the last day or so, I started running into a problem with a variable,
org-version.  

When I look at Org/Documentation/Show Version, I get:
Org-mode version N/A (N/A @ /Users/dk/.emacs.d/src/org/lisp/org-install.el)

When I export to LaTeX with -Q and the appended initialization file,
export fails with the error message in the subject line.

Here is the call:

/Applications/Emacs-23-4.app/Contents/MacOS/Emacs --batch -Q -l
init-old.el sigproc-sp-org-new.org -f org-export-as-latex

The org file I'm exporting doesn't refer to org-version anywhere.

I don't know how to figure out what's going on.  Can someone help?

Thanks,
Tom

---- init-old.el
(add-to-list 'load-path "~/.emacs.d/src/org/lisp") ;; <- adjust
(add-to-list 'load-path "~/.emacs.d/src/org") ;; <- adjust

(require 'org-install)
(require 'org-latex)

;; this line only required until the upcomming Org-mode/Emacs24 sync
(load "~/.emacs.d/src/org/lisp/org-exp-blocks.el")


;; Configure Babel to support all languages included in the manuscript
(org-babel-do-load-languages
 'org-babel-load-languages
 '((emacs-lisp . t)
   (org        . t)))
(setq org-confirm-babel-evaluate nil)

;; Configure Org-mode
  (setq org-export-latex-hyperref-format "\\ref{%s}")
  (setq org-entities-user '(("space" "\\ " nil " " " " " " " ")))
  (setq org-latex-to-pdf-process '("texi2dvi --pdf --clean --verbose --batch %f"))

  (require 'org-special-blocks)
  (defun org-export-latex-no-toc (depth)  
    (when depth
      (format "%% Org-mode is exporting headings to %s levels.\n"
              depth)))
  (setq org-export-latex-format-toc-function 'org-export-latex-no-toc)
  (setq org-export-pdf-remove-logfiles nil)

  (add-to-list 'org-export-latex-classes
               '("acm-proc-article-sp"
                 "\\documentclass{acm_proc_article-sp}
              [NO-DEFAULT-PACKAGES]
              [EXTRA]"
                 ("\\section{%s}" . "\\section*{%s}")
                 ("\\subsection{%s}" . "\\subsection*{%s}")
                 ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
                 ("\\paragraph{%s}" . "\\paragraph*{%s}")
                 ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
----
-- 
Thomas S. Dye
http://www.tsdye.com

-- 
Thomas S. Dye
http://www.tsdye.com

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

end of thread, other threads:[~2012-04-29 10:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-28 17:59 Symbol's value as variable is void: org-version Thomas S. Dye
2012-04-28 18:19 ` Martyn Jago
2012-04-28 18:22   ` Martyn Jago
2012-04-28 19:30     ` Thomas S. Dye
2012-04-28 20:01 ` Carsten Dominik
2012-04-28 21:34   ` Achim Gratz
2012-04-29 10:20 ` Bastien

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