emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* export to latex
@ 2009-01-11  0:07 sergio_101
  2009-01-11  9:15 ` Carsten Dominik
  0 siblings, 1 reply; 9+ messages in thread
From: sergio_101 @ 2009-01-11  0:07 UTC (permalink / raw)
  To: Emacs-orgmode


okay, i am still having problems exporting to latex, so i did a few more
things and did some investigating.. hopefully this will be of some help.

platform:
_______

osx 10.5
Org-mode version 6.17trans
carbon emacs

what i did:
__________

- totally deleted my org-mode directory
- checked out the newest version from git
- did NOT make the file, so it would run from .el files

the results:
___________

this file, a one line file exports to tex just fine..

,----[ onelinefile.org ]
| one line file
`----

this file, a two line file, poops out..

----[ twolinefile.org ]
| one line file
| two line file
`----

the error:
_________

,----[ error ]
| Debugger entered--Lisp error: (quit)
|   add-text-properties(6 6 (org-protected t))
|   (while (re-search-forward org-latex-entities-regexp nil t) (add-text-properties (match-beginning 0) (match-end 0) (quote ...)))
|   org-export-latex-preprocess()
|   (progn (require (quote org-export-latex) nil) (org-export-latex-preprocess))
|   (if latexp (progn (require ... nil) (org-export-latex-preprocess)))
|   (when latexp (require (quote org-export-latex) nil) (org-export-latex-preprocess))
|   (save-current-buffer (set-buffer (get-buffer-create " org-mode-tmp")) (erase-buffer) (insert string) (setq case-fold-search t) (org-export-kill-licensed-text) (let (...) (org-mode)) (setq case-fold-search t) (run-hooks (quote org-export-preprocess-hook)) (untabify (point-min) (point-max)) (org-export-handle-include-files) (run-hooks (quote org-export-preprocess-after-include-files-hook)) (org-export-remove-archived-trees archived-trees) (org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags (plist-get parameters :select-tags) (plist-get parameters :exclude-tags)) (run-hooks (quote org-export-preprocess-after-tree-selection-hook)) (org-export-replace-src-segments-and-examples backend) (org-export-protect-colon-examples) (when (plist-get parameters :footnotes) (org-footnote-normalize nil t)) (setq target-alist (org-export-define-heading-targets target-alist)) (org-export-remove-or-extract-drawers drawers (plist-get parameters :drawers)) (when (plist-get parameters :skip-before-1st-heading) (goto-char ...) (when ... ... ... ...)) (when (plist-get parameters :add-text) (goto-char ...) (insert ... "\n")) (org-export-remove-headline-metadata parameters) (setq target-alist (org-export-handle-invisible-targets target-alist)) (org-export-select-backend-specific-text backend) (org-export-protect-quoted-subtrees) (org-export-protect-verbatim) (org-export-mark-blockquote-and-verse) (org-export-remove-clock-lines) (unless (plist-get parameters :timestamps) (org-export-remove-timestamps)) (setq target-alist (org-export-attach-captions-and-attributes backend target-alist)) (org-export-mark-radio-links) (org-export-concatenate-multiline-links) (org-export-normalize-links) (org-export-target-internal-links target-alist) (when (plist-get parameters :emph-multiline) (org-export-concatenate-multiline-emphasis)) (when org-export-table-remove-special-lines (org-export-remove-special-table-lines)) (run-hooks (quote org-export-preprocess-before-backend-specifics-hook)) (when latexp (require ... nil) (org-export-latex-preprocess)) (when asciip (org-export-ascii-preprocess)) (when htmlp (org-export-html-preprocess parameters)) (org-export-handle-comments (plist-get parameters :comments)) (run-hooks (quote org-export-preprocess-final-hook)) (setq rtn (buffer-string)))
|   (with-current-buffer (get-buffer-create " org-mode-tmp") (erase-buffer) (insert string) (setq case-fold-search t) (org-export-kill-licensed-text) (let (...) (org-mode)) (setq case-fold-search t) (run-hooks (quote org-export-preprocess-hook)) (untabify (point-min) (point-max)) (org-export-handle-include-files) (run-hooks (quote org-export-preprocess-after-include-files-hook)) (org-export-remove-archived-trees archived-trees) (org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags (plist-get parameters :select-tags) (plist-get parameters :exclude-tags)) (run-hooks (quote org-export-preprocess-after-tree-selection-hook)) (org-export-replace-src-segments-and-examples backend) (org-export-protect-colon-examples) (when (plist-get parameters :footnotes) (org-footnote-normalize nil t)) (setq target-alist (org-export-define-heading-targets target-alist)) (org-export-remove-or-extract-drawers drawers (plist-get parameters :drawers)) (when (plist-get parameters :skip-before-1st-heading) (goto-char ...) (when ... ... ... ...)) (when (plist-get parameters :add-text) (goto-char ...) (insert ... "\n")) (org-export-remove-headline-metadata parameters) (setq target-alist (org-export-handle-invisible-targets target-alist)) (org-export-select-backend-specific-text backend) (org-export-protect-quoted-subtrees) (org-export-protect-verbatim) (org-export-mark-blockquote-and-verse) (org-export-remove-clock-lines) (unless (plist-get parameters :timestamps) (org-export-remove-timestamps)) (setq target-alist (org-export-attach-captions-and-attributes backend target-alist)) (org-export-mark-radio-links) (org-export-concatenate-multiline-links) (org-export-normalize-links) (org-export-target-internal-links target-alist) (when (plist-get parameters :emph-multiline) (org-export-concatenate-multiline-emphasis)) (when org-export-table-remove-special-lines (org-export-remove-special-table-lines)) (run-hooks (quote org-export-preprocess-before-backend-specifics-hook)) (when latexp (require ... nil) (org-export-latex-preprocess)) (when asciip (org-export-ascii-preprocess)) (when htmlp (org-export-html-preprocess parameters)) (org-export-handle-comments (plist-get parameters :comments)) (run-hooks (quote org-export-preprocess-final-hook)) (setq rtn (buffer-string)))
|   (let* ((htmlp ...) (asciip ...) (latexp ...) (backend ...) (archived-trees ...) (inhibit-read-only t) (drawers org-drawers) (outline-regexp "\\*+ ") target-alist rtn) (setq org-export-target-aliases nil) (setq org-export-code-refs nil) (with-current-buffer (get-buffer-create " org-mode-tmp") (erase-buffer) (insert string) (setq case-fold-search t) (org-export-kill-licensed-text) (let ... ...) (setq case-fold-search t) (run-hooks ...) (untabify ... ...) (org-export-handle-include-files) (run-hooks ...) (org-export-remove-archived-trees archived-trees) (org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags ... ...) (run-hooks ...) (org-export-replace-src-segments-and-examples backend) (org-export-protect-colon-examples) (when ... ...) (setq target-alist ...) (org-export-remove-or-extract-drawers drawers ...) (when ... ... ...) (when ... ... ...) (org-export-remove-headline-metadata parameters) (setq target-alist ...) (org-export-select-backend-specific-text backend) (org-export-protect-quoted-subtrees) (org-export-protect-verbatim) (org-export-mark-blockquote-and-verse) (org-export-remove-clock-lines) (unless ... ...) (setq target-alist ...) (org-export-mark-radio-links) (org-export-concatenate-multiline-links) (org-export-normalize-links) (org-export-target-internal-links target-alist) (when ... ...) (when org-export-table-remove-special-lines ...) (run-hooks ...) (when latexp ... ...) (when asciip ...) (when htmlp ...) (org-export-handle-comments ...) (run-hooks ...) (setq rtn ...)) (kill-buffer " org-mode-tmp") rtn)
|   org-export-preprocess-string(#("Archive System Workflow:\n\nSome Definitions:\n\n1. Backup - This is the process of making a copy of live data in the\n	event that something horrible happens: accidental file deletion,\n   hardware failure, act of nature, call of nature, etc.\n2. Archive - The process of gathering necessary, but outdated data and\n	putting it into offline storage. This frees up space that the data\n   would have taken on the hard drive.\n3. Media - The actual stuff that the data lives on. This could be\n   tapes, CD's. DVD's, etc.\n4. Index - The act of keeping track of data so that the files can be searched.\n\nThings to think about:\n\n1. Data Aging - When is data old? When is it no longer useful to keep\n   on our system? At what point do we call access to data \"Not very often\"?\n2. Archive Format - some of the things that are generally considered\n   are:\n	1. Media Longevity - How long is the media thought to last? Does it\n      have a known shelf life?\n	2. Media Cost - Altough DATs can hold a  TON of data, the readers\n      and media are way expensive.\n	3. Accessibility - How easy is it to get at a file on the archive?\n      What is the least amount of information you will have when\n      looking for a file? A partial filename? A datestamp?\n	4. Complexity - What skills are needed to produce the archive? Can\n      a temp do it, or does it take an evil genius to do it?\n	5. Technology - Is the media technologically sound? Will it be\n      around in the next ten years? (Think JAZ and ZIP  drives)\n3. Indexing Archived Data - Where should this index live? What should\n   be the interface?\n4. Data Access - How do we get the data once it's archived? Do we need\n   any special programs or software to get it? How much training is\n   required to access data?\n5. Documentation - Is our archive system documented? What flags an\n   involved in accessing archive data? archive creation? Who is\n   reponsible for each step?\n\n\n\n\n\n\n" 0 25 (:org-license-to-kill t fontified nil) 25 509 (fontified nil) 509 1038 (fontified nil) 1038 1557 (fontified nil) 1557 1911 (fontified nil)) :for-LaTeX t :emph-multiline t :add-text nil :comments nil :skip-before-1st-heading nil :LaTeX-fragments nil)
|   (org-export-latex-content (org-export-preprocess-string (buffer-substring pt end) :for-LaTeX t :emph-multiline t :add-text nil :comments nil :skip-before-1st-heading nil :LaTeX-fragments nil))
|   (prog1 (org-export-latex-content (org-export-preprocess-string ... :for-LaTeX t :emph-multiline t :add-text nil :comments nil :skip-before-1st-heading nil :LaTeX-fragments nil)) (add-text-properties pt (max pt ...) (quote ...)))
|   (let* ((pt ...) (end ...)) (prog1 (org-export-latex-content ...) (add-text-properties pt ... ...)))
|   (save-excursion (goto-char (or beg ...)) (if (org-at-heading-p) (beginning-of-line 2)) (let* (... ...) (prog1 ... ...)))
|   org-export-latex-first-lines(nil)
|   (if skip "" (org-export-latex-first-lines rbeg))
|   (let* ((wcf ...) (opt-plist org-export-latex-options-plist) (region-p ...) (rbeg ...) (rend ...) (subtree-p ...) (opt-plist ...) (org-export-latex-options-plist opt-plist) (title ...) (filename ...) (filename ...) (buffer ...) (odd org-odd-levels-only) (header ...) (skip ...) (text ...) (first-lines ...) (coding-system ...) (coding-system-for-write ...) (save-buffer-coding-system ...) (region ...) (string-for-export ...)) (set-buffer buffer) (erase-buffer) (and (fboundp ...) (set-buffer-file-coding-system coding-system-for-write)) (unless (or ... body-only) (insert header)) (when (and text ...) (insert ... "\n\n")) (unless (or skip ...) (insert first-lines)) (org-export-latex-global (with-temp-buffer ... ... ...)) (unless body-only (insert "\n\\end{document}")) (or to-buffer (save-buffer)) (goto-char (point-min)) (message "Exporting to LaTeX...done") (prog1 (if ... ... ...) (set-window-configuration wcf)))
|   org-export-as-latex(nil)
|   call-interactively(org-export-as-latex)
|   (if (and bg (nth 2 ass) (not ...) (not ...)) (let (...) (set-process-sentinel p ...) (message "Background process \"%s\": started" p)) (call-interactively (nth 1 ass)))
|   (let* ((bg ...) (help "[t]   insert the export option template\n[v]   limit export to visible part of outline tree\n\n[a] export as ASCII\n\n[h] export as HTML\n[H] export as HTML to temporary buffer\n[R] export region as HTML\n[b] export as HTML and browse immediately\n[x] export as XOXO\n\n[l] export as LaTeX\n[p] export as LaTeX and process to PDF\n[d] export as LaTeX, process to PDF, and open the resulting PDF document\n[L] export as LaTeX to temporary buffer\n\n[i] export current file as iCalendar file\n[I] export all agenda files as iCalendar files\n[c] export agenda files into combined iCalendar file\n\n[F] publish current file\n[P] publish current project\n[X] publish... (project will be prompted for)\n[A] publish all projects") (cmds ...) r1 r2 ass) (save-window-excursion (delete-other-windows) (with-output-to-temp-buffer "*Org Export/Publishing Help*" ...) (org-fit-window-to-buffer ...) (message "Select command: ") (setq r1 ...)) (setq r2 (if ... ... r1)) (unless (setq ass ...) (error "No command associated with key %c" r1)) (if (and bg ... ... ...) (let ... ... ...) (call-interactively ...)))
|   org-export(nil)
|   call-interactively(org-export)
`----



-- 
___
peace,
sergio
http://www.village-buzz.com

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

end of thread, other threads:[~2009-01-13 18:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-11  0:07 export to latex sergio_101
2009-01-11  9:15 ` Carsten Dominik
2009-01-11 11:56   ` Manish
2009-01-11 13:08     ` Carsten Dominik
2009-01-11 17:43     ` sergio_101
2009-01-12 14:50     ` Uwe Jochum
2009-01-12 15:22       ` sergio_101
2009-01-13  9:14         ` Carsten Dominik
2009-01-13 18:56           ` sergio_101

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