From mboxrd@z Thu Jan 1 00:00:00 1970 From: sergio_101 Subject: export to latex Date: Sat, 10 Jan 2009 19:07:22 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LLnrZ-0005Oe-Qp for emacs-orgmode@gnu.org; Sat, 10 Jan 2009 19:07:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LLnrX-0005OS-IX for Emacs-orgmode@gnu.org; Sat, 10 Jan 2009 19:07:32 -0500 Received: from [199.232.76.173] (port=44597 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LLnrX-0005OP-Dd for Emacs-orgmode@gnu.org; Sat, 10 Jan 2009 19:07:31 -0500 Received: from mx-7.zoominternet.net ([24.154.1.26]:41144 helo=cm-1.zoominternet.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LLnrW-0007Pu-Q7 for Emacs-orgmode@gnu.org; Sat, 10 Jan 2009 19:07:31 -0500 Received: from unknown (HELO sergiobook.local) ([24.144.188.219]) (envelope-sender ) by pop-1.zoominternet.net (qmail-ldap-1.03) with SMTP for ; 11 Jan 2009 00:07:20 -0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs-orgmode@gnu.org 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-pr= operties (match-beginning 0) (match-end 0) (quote ...))) | org-export-latex-preprocess() | (progn (require (quote org-export-latex) nil) (org-export-latex-preproc= ess)) | (if latexp (progn (require ... nil) (org-export-latex-preprocess))) | (when latexp (require (quote org-export-latex) nil) (org-export-latex-p= reprocess)) | (save-current-buffer (set-buffer (get-buffer-create " org-mode-tmp")) (= erase-buffer) (insert string) (setq case-fold-search t) (org-export-kill-li= censed-text) (let (...) (org-mode)) (setq case-fold-search t) (run-hooks (q= uote org-export-preprocess-hook)) (untabify (point-min) (point-max)) (org-e= xport-handle-include-files) (run-hooks (quote org-export-preprocess-after-i= nclude-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)) (r= un-hooks (quote org-export-preprocess-after-tree-selection-hook)) (org-expo= rt-replace-src-segments-and-examples backend) (org-export-protect-colon-exa= mples) (when (plist-get parameters :footnotes) (org-footnote-normalize nil = t)) (setq target-alist (org-export-define-heading-targets target-alist)) (o= rg-export-remove-or-extract-drawers drawers (plist-get parameters :drawers)= ) (when (plist-get parameters :skip-before-1st-heading) (goto-char ...) (wh= en ... ... ... ...)) (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-expor= t-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-ex= port-concatenate-multiline-links) (org-export-normalize-links) (org-export-= target-internal-links target-alist) (when (plist-get parameters :emph-multi= line) (org-export-concatenate-multiline-emphasis)) (when org-export-table-r= emove-special-lines (org-export-remove-special-table-lines)) (run-hooks (qu= ote org-export-preprocess-before-backend-specifics-hook)) (when latexp (req= uire ... nil) (org-export-latex-preprocess)) (when asciip (org-export-ascii= -preprocess)) (when htmlp (org-export-html-preprocess parameters)) (org-exp= ort-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-expo= rt-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 par= ameters :select-tags) (plist-get parameters :exclude-tags)) (run-hooks (quo= te org-export-preprocess-after-tree-selection-hook)) (org-export-replace-sr= c-segments-and-examples backend) (org-export-protect-colon-examples) (when = (plist-get parameters :footnotes) (org-footnote-normalize nil t)) (setq tar= get-alist (org-export-define-heading-targets target-alist)) (org-export-rem= ove-or-extract-drawers drawers (plist-get parameters :drawers)) (when (plis= t-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-back= end-specific-text backend) (org-export-protect-quoted-subtrees) (org-export= -protect-verbatim) (org-export-mark-blockquote-and-verse) (org-export-remov= e-clock-lines) (unless (plist-get parameters :timestamps) (org-export-remov= e-timestamps)) (setq target-alist (org-export-attach-captions-and-attribute= s backend target-alist)) (org-export-mark-radio-links) (org-export-concaten= ate-multiline-links) (org-export-normalize-links) (org-export-target-intern= al-links target-alist) (when (plist-get parameters :emph-multiline) (org-ex= port-concatenate-multiline-emphasis)) (when org-export-table-remove-special= -lines (org-export-remove-special-table-lines)) (run-hooks (quote org-expor= t-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-co= mments (plist-get parameters :comments)) (run-hooks (quote org-export-prepr= ocess-final-hook)) (setq rtn (buffer-string))) | (let* ((htmlp ...) (asciip ...) (latexp ...) (backend ...) (archived-tr= ees ...) (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") (er= ase-buffer) (insert string) (setq case-fold-search t) (org-export-kill-lice= nsed-text) (let ... ...) (setq case-fold-search t) (run-hooks ...) (untabif= y ... ...) (org-export-handle-include-files) (run-hooks ...) (org-export-re= move-archived-trees archived-trees) (org-export-remove-comment-blocks-and-s= ubtrees) (org-export-handle-export-tags ... ...) (run-hooks ...) (org-expor= t-replace-src-segments-and-examples backend) (org-export-protect-colon-exam= ples) (when ... ...) (setq target-alist ...) (org-export-remove-or-extract-= drawers drawers ...) (when ... ... ...) (when ... ... ...) (org-export-remo= ve-headline-metadata parameters) (setq target-alist ...) (org-export-select= -backend-specific-text backend) (org-export-protect-quoted-subtrees) (org-e= xport-protect-verbatim) (org-export-mark-blockquote-and-verse) (org-export-= remove-clock-lines) (unless ... ...) (setq target-alist ...) (org-export-ma= rk-radio-links) (org-export-concatenate-multiline-links) (org-export-normal= ize-links) (org-export-target-internal-links target-alist) (when ... ...) (= when org-export-table-remove-special-lines ...) (run-hooks ...) (when latex= p ... ...) (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 Defini= tions:\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 pro= cess of gathering necessary, but outdated data and\n putting it into offlin= e storage. This frees up space that the data\n would have taken on the ha= rd drive.\n3. Media - The actual stuff that the data lives on. This could b= e\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 Ag= ing - When is data old? When is it no longer useful to keep\n on our syst= em? 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. Me= dia 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 e= asy 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 file= name? 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 aro= und in the next ten years? (Think JAZ and ZIP drives)\n3. Indexing Archive= d 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 a= ny special programs or software to get it? How much training is\n require= d to access data?\n5. Documentation - Is our archive system documented? Wha= t 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 (f= ontified nil) 1557 1911 (fontified nil)) :for-LaTeX t :emph-multiline t :ad= d-text nil :comments nil :skip-before-1st-heading nil :LaTeX-fragments nil) | (org-export-latex-content (org-export-preprocess-string (buffer-substri= ng 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-hea= ding nil :LaTeX-fragments nil)) (add-text-properties pt (max pt ...) (quote= ...))) | (let* ((pt ...) (end ...)) (prog1 (org-export-latex-content ...) (add-t= ext-properties pt ... ...))) | (save-excursion (goto-char (or beg ...)) (if (org-at-heading-p) (beginn= ing-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-l= ines ...) (coding-system ...) (coding-system-for-write ...) (save-buffer-co= ding-system ...) (region ...) (string-for-export ...)) (set-buffer buffer) = (erase-buffer) (and (fboundp ...) (set-buffer-file-coding-system coding-sys= tem-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 (ins= ert "\n\\end{document}")) (or to-buffer (save-buffer)) (goto-char (point-mi= n)) (message "Exporting to LaTeX...done") (prog1 (if ... ... ...) (set-wind= ow-configuration wcf))) | org-export-as-latex(nil) | call-interactively(org-export-as-latex) | (if (and bg (nth 2 ass) (not ...) (not ...)) (let (...) (set-process-se= ntinel p ...) (message "Background process \"%s\": started" p)) (call-inter= actively (nth 1 ass))) | (let* ((bg ...) (help "[t] insert the export option template\n[v] l= imit export to visible part of outline tree\n\n[a] export as ASCII\n\n[h] e= xport 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 LaT= eX, process to PDF, and open the resulting PDF document\n[L] export as LaTe= X to temporary buffer\n\n[i] export current file as iCalendar file\n[I] exp= ort all agenda files as iCalendar files\n[c] export agenda files into combi= ned 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-t= o-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) `---- --=20 ___ peace, sergio http://www.village-buzz.com