Re: [O] tikz for multiple targets
I updated the example again. Try this: --8---cut here---start-8--- #+LATEX_HEADER: \usepackage{tikz} * Tikz test #+name: contents #+header: :exports (if (and (boundp 'backend) (eq (org-export-backend-name backend) (intern latex))) results none) #+header: :results latex #+begin_src latex \begin{tikzpicture} \node[red!50!black] (a) {A}; \node (b) [right of=a] {B}; \draw[-] (a) -- (b); \end{tikzpicture} #+end_src #+header: :exports (if (and (boundp 'backend) (eq (org-export-backend-name backend) (intern latex))) none results) #+header: :results raw :file test.png #+header: :imagemagick yes :iminoptions -density 600 :imoutoptions -geometry 400 #+header: :fit yes :noweb yes :headers '(\\usepackage{tikz}) #+begin_src latex contents #+end_src --8---cut here---end---8--- Building from this example, the attached patch to ob-latex.el combined with the attached org-mode file should export the latex (tikz) code as an inline SVG image to HTML and as embedded tikz to latex. If this works generally I can commit the patch to ob-latex.el. #+LATEX_HEADER: \usepackage{tikz} First execute the second code block, to define the convenience macro and to set the required new variables in ob-latex.el. Then export to HTML and to pdf to see the tree exported as an SVG image and as embedded tikz respectively. * Tikz test Here's a tree, exported to both html and pdf. #+header: :file (by-backend (html tree.svg) (t 'nil)) #+header: :results (by-backend (html raw) (t latex)) #+begin_src latex \usetikzlibrary{trees} \begin{tikzpicture} \node [circle, draw, fill=red!20] at (0,0) {1} child { node [circle, draw, fill=blue!30] {2} child { node [circle, draw, fill=green!30] {3} } child { node [circle, draw, fill=yellow!30] {4} }}; \end{tikzpicture} #+end_src * COMMENT setup #+begin_src emacs-lisp :results silent (setq org-babel-latex-htlatex htlatex) (defmacro by-backend (rest body) `(case (if (boundp 'backend) (org-export-backend-name backend) nil) ,@body)) #+end_src From 703ccbe2a4aeb87eaef4cfe0af2e9550877d09b0 Mon Sep 17 00:00:00 2001 From: Eric Schulte schulte.e...@gmail.com Date: Thu, 11 Jul 2013 00:08:22 -0600 Subject: [PATCH] optional svg output for latex code blocks * lisp/ob-latex.el (org-babel-latex-htlatex): Set this variable to htlatex (or path to said) to enable svg generation from latex code blocks. (org-babel-latex-htlatex-packages): Libraries required for automatic svg generation. (org-babel-execute:latex): Generate SVG images directly from latex code blocks (assumes tikz). --- lisp/ob-latex.el | 44 1 file changed, 44 insertions(+) diff --git a/lisp/ob-latex.el b/lisp/ob-latex.el index 94d5133..f916eb0 100644 --- a/lisp/ob-latex.el +++ b/lisp/ob-latex.el @@ -50,6 +50,17 @@ '((:results . latex) (:exports . results)) Default arguments to use when evaluating a LaTeX source block.) +(defcustom org-babel-latex-htlatex nil + The htlatex command to enable conversion of latex to SVG or HTML. + :group 'org-babel + :type 'string) + +(defcustom org-babel-latex-htlatex-packages + '([usenames]{color} {tikz} {color} {listings} {amsmath}) + Packages to use for htlatex export. + :group 'org-babel + :type '(list string)) + (defun org-babel-expand-body:latex (body params) Expand BODY according to PARAMS, return the expanded body. (mapc (lambda (pair) ;; replace variables @@ -124,6 +135,39 @@ This function is called by `org-babel-execute-src-block'. transient-pdf-file out-file im-in-options im-out-options) (when (file-exists-p transient-pdf-file) (delete-file transient-pdf-file)) + ((and (or (string-match \\.svg$ out-file) + (string-match \\.html$ out-file)) + org-babel-latex-htlatex) + (with-temp-file tex-file + (insert (concat + \\documentclass[preview]{standalone} +\\def\\pgfsysdriver{pgfsys-tex4ht.def} + + (mapconcat (lambda (pkg) + (concat \\usepackage pkg)) +org-babel-latex-htlatex-packages +\n) + \\begin{document} + body + \\end{document}))) + (when (file-exists-p out-file) (delete-file out-file)) + (let ((default-directory (file-name-directory tex-file))) + (shell-command (format %s %s org-babel-latex-htlatex tex-file))) + (cond + ((file-exists-p (concat (file-name-sans-extension tex-file) -1.svg)) + (if (string-match \\.svg$ out-file) + (progn + (shell-command pwd) + (shell-command (format mv %s %s + (concat (file-name-sans-extension tex-file) -1.svg) + out-file))) + (error SVG file produced but HTML file requested.))) + ((file-exists-p (concat (file-name-sans-extension tex-file) .html)) + (if (string-match \\.html$ out-file) + (shell-command mv %s %s + (concat (file-name-base tex-file) .html) + out-file) + (error HTML file produced but
Re: [O] RSS back-end: blogging with Org-mode is now easy
flammable project flammable.proj...@gmail.com writes: Any ideas? Can you check if you have `url-encode-url'? C-h f url-encode-url RET will tell you. It is an autoloaded function, so you don't need to (require 'url-util), but if you can browse your Emacs sources, it should be in there. HTT, -- Bastien
Re: [O] [BUG] org-agenda-list
Hi Nick, Nick Dokos ndo...@gmail.com writes: I just pulled and I get the attached backtrace from org-agenda-list. I tried with -q -l minimal.emacs and it's still there. It's probably caused by commit 42691788273cecb75ec620d40cc5394d2cd95ed1. When I revert that, the agenda comes up properly. I'm in a hurry and can't really test right now. Can you confirm the following patch fixes it for you? Thanks, diff --git a/lisp/org.el b/lisp/org.el index 7cbad97..f8cd447 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -4841,6 +4841,7 @@ Support for group tags is controlled by the option (lambda (tg) (cond ((eq (car tg) :startgroup) {) ((eq (car tg) :endgroup) }) ((eq (car tg) :grouptags) :) + ((eq (car tg) :newline) \n) (t (concat (car tg) (if (characterp (cdr tg)) (format (%s) (char-to-string (cdr tg))) ) -- Bastien
Re: [O] default export templates broken?
Hello, Eric Abrahamsen e...@ericabrahamsen.net writes: I wonder if something in the new export backend system has broken inserting export option templates? Choosing anything but default as the backend gives me this backtrace, in this case html. The offending functions seem to have no definition (compiler macros?) so I couldn't poke further, but it looks like a symbol's being given to something that expects the new struct-based backend. Indeed. This should now be fixed. Thank you. Regards, -- Nicolas Goaziou
[O] org-publish error: Stack overflow in regexp matcher
When I try to publish my site built with org-mode, it scans through all files to create the sitemap, and hangs up with error: Stack overflow in regexp matcher. Oddly, it scans through all files including the static content. It goes through all tar.gz files, pdf files, and what not. My project specification is pasted below. Sitemap is supposed to be made only with the project indianstatistics-notes and not with indianstatistics-static. But orgmode scans through the whole thing anyway, and gives the above mentioned error. Will be grateful for help. # Org-mode version 8.0.5 (release_8.0.5-333-g507499 @ /home/vikas/lisp/org-mode/lisp/) # Am enclosing backtrace also for reference. Vikas # Project specification: (indianstatistics-notes :base-directory ~/indianstatistics/source/ :base-extension org :publishing-directory ~/indianstatistics/web/ :recursive t :publishing-function org-html-publish-to-html :headline-levels 2 :auto-preamble t :author VR :with-timestamps t :auto-sitemap t :sitemap-title Sitemap for www.indianstatistics.org :sitemap-sort-files anti-chronologically :sitemap-file-entry-format %t (last updated on %d) :html-postamble pStatistics on Indian Economy and Society/pp class=\date\This page last updated on: %d/ppCopyrights as specified in http://www.indianstatistics.org/citation.html./p ) (indianstatistics-static :base-directory ~/indianstatistics/source/ :base-extension css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|csv\\|pdf\\|ogg\\|zip\\|gz\\|TXT\\|swf\\|ico\\|htaccess :include (bibliobase_bib.html) :publishing-directory ~/indianstatistics/web/ :recursive t :publishing-function org-publish-attachment ) (indianstatistics :components (indianstatistics-notes indianstatistics-static) ) Debugger entered--Lisp error: (error Stack overflow in regexp matcher) re-search-forward(\\(?:label{\\([^}]*\\)}\\|\\[[^]]*label[[:space:]]*=[[:space:]]*{?\\(?1:[^],}]+\\)}?\\)\\|\\(^\\)[ ]*\\(part\\|chapter\\|section\\|subsection\\|subsubsection\\|paragraph\\|subparagraph\\|addchap\\|addsec\\)\\*?\\(\\[[^]]*\\]\\)?[[{ \n\\]\\|\\(^\\)[]*\\(include\\|input\\)[{ ]+\\([^}\n ]+\\)\\|\\(^\\)[ ]*\\(appendix\\)\\|\\(glossary\\|index\\)[[{] nil t) byte-code(\306\307 #\211\204 \310!\211\203 \311!\n\204% \312D\fB\313\314\315\\210\212\316\317\\210\320\n \321=?\\211@q\210\311 \322D\fB\323 A\324\216\325B!\210\315C\212\214~\210\326b\210\327D\315\321#\203g\326\225\203q \330\331\326!E#\fB\202U \332\225\203\276 \333\224E`Sf\334=\203\205 \335u\210\336!\211F\203U \337F8GHG^HGHU\203\262 \316\340\341GI\@\342F8#\210F\fBFJ\202U \343\225\203\335 \331\343!K\344\315\345\346L\\\204U \347K\f #\202U \350\225\203\360 \351\315\321\\210\352\321B\fB\202U \353\225\203M\203U \354!\211N\203U \355\356NA@\\210N\fB\202U \357\225\203`\212\331\357!O\357\225b\210\360 P\361\216\362\363O!!*Q\364OR\A@\211S\203F\333\225b\210\202M\357\225b\210\365 \210\330QE\315\211%\211T\fB-\202U \366\367!\210\202U \370 !\211U\203w\371UB\fB\326b\210\327\372\315\321#\203\210\373B\fB\326b\210\327\374\315\321#\203\241\375\331\376!\331\332!E\fB\202\213\377D\fB.\201V @!\207 [file master-dir file-found buf docstruct reftex-keep-temporary-buffers reftex-locate-file tex reftex-get-buffer-visiting buffer-file-name file-error throw exit nil message Scanning file %s reftex-get-file-buffer-force t bof syntax-table ((set-syntax-table saved-syntax)) set-syntax-table 1 re-search-forward reftex-label-info reftex-match-string 3 0 92 -1 reftex-section-info 5 Scanning %s %s ... rassoc 6 7 delq mapcar #[(x) \302 \\207 [x include-file string-match] 3] reftex-parse-from-file 9 reftex-init-section-numbers appendix 10 reftex-index-info add-to-list index-tags 11 match-data ((byte-code \301\302\\207 [save-match-data-internal set-match-data evaporate] 3)) ...] 7) reftex-parse-from-file(/home/vikas/indianstatistics/source/scripts/nss661_type2_scripts.tar.gz nil /home/vikas/indianstatistics/source/scripts/) reftex-do-parse(1 nil) reftex-access-scan-info((16)) reftex-parse-all() (and (buffer-file-name) (file-exists-p (buffer-file-name)) (reftex-parse-all)) org-mode-reftex-setup() run-hooks(change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook) apply(run-hooks (change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook)) run-mode-hooks(org-mode-hook) org-mode() org-publish-find-date(/home/vikas/indianstatistics/source/scripts/nss661_type2_scripts.tar.gz) org-publish-compare-directory-files(/home/vikas/indianstatistics/source/scripts/nss661_type2_scripts.zip
Re: [O] fill-paragraph broken
Hello, Samuel Wales samolog...@gmail.com writes: C-M-j in a comment also seems to work now. I doubt it does. However, there is just one small bug: at the end of a line, it inserts a # on the next line, in the comment or outside of it depending on whether it is the last line. newcomment.el doesn't provide any variable or hook to provide our own function in this area. A possible workaround would be to write our function anyway and bind it to M-j in Org keymap. I'm not sure it's worth it. Regards, -- Nicolas Goaziou
[O] [Feature request] Add :export option to ox-bibtex.el
bibtex2html can't recognize the style file in current dir ( -s ./customstyle.bst ) and it can't deal with customize bib style file very well. So, is it possible use different bibtex styles when I export to html? For example: #+BIBLIOGRAPHY: hbuuthesis plain limit:t option:-i export:html \bibliographystyle{customstyle} \bibliography{foo} or: #+BIBLIOGRAPHY: hbuuthesis plain limit:t option:-i export:html #+BIBLIOGRAPHY: hbuuthesis customstyle limit:t option:-i export:latex
Re: [O] tikz for multiple targets
Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi Eric, [...] I updated the example again. Try this: Brilliant. Thanks. This works perfectly. I can see the changes you've made and they make sense (in hindsight for me) except for the (intern latex) bit... but this is probably to do with how eq works I guess. Anyway, thanks again. eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.0.5-326-g325e40
Re: [O] fill-paragraph broken
Is there a way to just get C-M-j to do what it does in other modes? I almost never need Org-specific behavior for these things, actually. -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. ANYBODY can get it. Denmark: free Karina Hansen NOW.
Re: [O] fill-paragraph broken
Samuel Wales samolog...@gmail.com writes: Is there a way to just get C-M-j to do what it does in other modes? Short answer: no. Long answer: please read again this thread. Regards, -- Nicolas Goaziou
[O] [bug] latex export ascii encoding
All, exporting latex causes some trouble here. - exporting utf-8 ascii does work - exporting latin-1 ascii does not work, - the file format is set correctly (1 in mode-line displayed) - inputenc option is set to latin1 - content is corrupted, e.g. üöä becomes üöä using Org-mode version 8.0.5 (8.0.5-6-g426917-elpa @ xxx .emacs.d/elpa/org-20130708/) and GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.2) of 2013-06-25 on sochi, modified by Debian Interestingly, on WinXP the problem is vice versa: - latin1 export does work (no corrupted umlaute) - utf-8 export fails. äöü becomes \344\366\374 BTW, Ascii-export from org does work correctly for both encodings. Any hint is appreciated Jan-Mark -- Jan-Mark Batke bad...@gmx.net FON +49 511 33 64 800 FAX +49 511 22 09 521
Re: [O] tikz for multiple targets
Eric Schulte schulte.e...@gmail.com writes: Building from this example, the attached patch to ob-latex.el combined with the attached org-mode file should export the latex (tikz) code as an inline SVG image to HTML and as embedded tikz to latex. If this works generally I can commit the patch to ob-latex.el. Looks good to me, although it would make ox-html depend on ox-latex which may or may not be desirable. . . For instance math stuff is handled internally by ox-html, it seems (correct me if I'm wrong). While TikZ clearly is a LaTeX feature, producing SVGs are more of a way of support this type of figures in html output, although it depends on TeX binaries. File links to tikz files [[file:pix.pgf]] (e.g. produced with R or matplotlib) won't be understood with this patch. It should automatically convert the picture to an svg figure, I think. Perhaps support for file links can be added later. —Rasmus -- In theory, practice and theory are the same. In practice they are not
[O] How can I write side by side code comparison table
I can write a table: | Python | Emacs Lisp | |+| ||| and I can write two source code blocks: #+BEGIN_SRC python a = [0, 1, 2] a[0] += 10 #+END_SRC #+BEGIN_SRC elisp (setq a (vector 0 1 2)) (cl-incf (elt a 0) 10) #+END_SRC but I don't know how to combine the two-column table with the two source code blocks in a way that exports to code tables like in Emergency Elisp
[O] Starting agenda commands fail with error: cond: Wrong type argument: sequencep, :newline
Hi, since the last pull I cannot start any agenda without getting this message: cond: Wrong type argument: sequencep, :newline setting debug-on-error to t does not show more info. Any idea what could be wrong? Regards, Rainer
Re: [O] Starting agenda commands fail with error: cond: Wrong type argument: sequencep, :newline
Rainer Stengele rainer.steng...@online.de writes: Hi, since the last pull I cannot start any agenda without getting this message: cond: Wrong type argument: sequencep, :newline setting debug-on-error to t does not show more info. Any idea what could be wrong? A fix was pushed recently for this. You might be lagging begind. Thanks and Regards Noorul
Re: [O] Starting agenda commands fail with error: cond: Wrong type argument: sequencep, :newline
Am 11.07.2013 11:45, schrieb Noorul Islam K M: Rainer Stengele rainer.steng...@online.de writes: Hi, since the last pull I cannot start any agenda without getting this message: cond: Wrong type argument: sequencep, :newline setting debug-on-error to t does not show more info. Any idea what could be wrong? A fix was pushed recently for this. You might be lagging begind. Thanks and Regards Noorul I am at Org-mode version 8.0.5 (release_8.0.5-334-g203f4c) That looks pretty current. Error is still there! Cheers, Rainer
Re: [O] [BUG] org-agenda-list
Am 11.07.2013 08:38, schrieb Bastien: Hi Nick, Nick Dokos ndo...@gmail.com writes: I just pulled and I get the attached backtrace from org-agenda-list. I tried with -q -l minimal.emacs and it's still there. It's probably caused by commit 42691788273cecb75ec620d40cc5394d2cd95ed1. When I revert that, the agenda comes up properly. I'm in a hurry and can't really test right now. Can you confirm the following patch fixes it for you? Thanks, Yes, the fix works!
Re: [O] Starting agenda commands fail with error: cond: Wrong type argument: sequencep, :newline
Am 11.07.2013 11:49, schrieb Rainer Stengele: Am 11.07.2013 11:45, schrieb Noorul Islam K M: Rainer Stengele rainer.steng...@online.de writes: Hi, since the last pull I cannot start any agenda without getting this message: cond: Wrong type argument: sequencep, :newline setting debug-on-error to t does not show more info. Any idea what could be wrong? A fix was pushed recently for this. You might be lagging begind. Thanks and Regards Noorul I am at Org-mode version 8.0.5 (release_8.0.5-334-g203f4c) That looks pretty current. Error is still there! Cheers, Rainer I already confirmed that this will be fixed by including the patch from Bastien: (see thread [BUG] org-agenda-list): diff --git a/lisp/org.el b/lisp/org.el index 7cbad97..f8cd447 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -4841,6 +4841,7 @@ Support for group tags is controlled by the option (lambda (tg) (cond ((eq (car tg) :startgroup) {) ((eq (car tg) :endgroup) }) ((eq (car tg) :grouptags) :) + ((eq (car tg) :newline) \n) (t (concat (car tg) (if (characterp (cdr tg)) (format (%s) (char-to-string (cdr tg))) )
Re: [O] Starting agenda commands fail with error: cond: Wrong type argument: sequencep, :newline
Rainer Stengele rainer.steng...@online.de writes: Am 11.07.2013 11:45, schrieb Noorul Islam K M: Rainer Stengele rainer.steng...@online.de writes: Hi, since the last pull I cannot start any agenda without getting this message: cond: Wrong type argument: sequencep, :newline setting debug-on-error to t does not show more info. Any idea what could be wrong? A fix was pushed recently for this. You might be lagging begind. Thanks and Regards Noorul I am at Org-mode version 8.0.5 (release_8.0.5-334-g203f4c) That looks pretty current. Error is still there! My bad, it was a patch submitted to the list for verification. Someone has verified it. Let us wait for this to be committed. The thread's subject line is: [BUG] org-agenda-list Thanks and Regards Noorul
Re: [O] tikz for multiple targets
Hi Eric, Eric Schulte schulte.e...@gmail.com writes: I updated the example again. Try this: --8---cut here---start-8--- #+LATEX_HEADER: \usepackage{tikz} * Tikz test #+name: contents #+header: :exports (if (and (boundp 'backend) (eq (org-export-backend-name backend) (intern latex))) results none) #+header: :results latex #+begin_src latex \begin{tikzpicture} \node[red!50!black] (a) {A}; \node (b) [right of=a] {B}; \draw[-] (a) -- (b); \end{tikzpicture} #+end_src #+header: :exports (if (and (boundp 'backend) (eq (org-export-backend-name backend) (intern latex))) none results) #+header: :results raw :file test.png #+header: :imagemagick yes :iminoptions -density 600 :imoutoptions -geometry 400 #+header: :fit yes :noweb yes :headers '(\\usepackage{tikz}) #+begin_src latex contents #+end_src --8---cut here---end---8--- Building from this example, the attached patch to ob-latex.el combined with the attached org-mode file should export the latex (tikz) code as an inline SVG image to HTML and as embedded tikz to latex. If this works generally I can commit the patch to ob-latex.el. #+LATEX_HEADER: \usepackage{tikz} First execute the second code block, to define the convenience macro and to set the required new variables in ob-latex.el. Then export to HTML and to pdf to see the tree exported as an SVG image and as embedded tikz respectively. * Tikz test Here's a tree, exported to both html and pdf. #+header: :file (by-backend (html tree.svg) (t 'nil)) #+header: :results (by-backend (html raw) (t latex)) #+begin_src latex \usetikzlibrary{trees} \begin{tikzpicture} \node [circle, draw, fill=red!20] at (0,0) {1} child { node [circle, draw, fill=blue!30] {2} child { node [circle, draw, fill=green!30] {3} } child { node [circle, draw, fill=yellow!30] {4} }}; \end{tikzpicture} #+end_src * COMMENT setup #+begin_src emacs-lisp :results silent (setq org-babel-latex-htlatex htlatex) (defmacro by-backend (rest body) `(case (if (boundp 'backend) (org-export-backend-name backend) nil) ,@body)) #+end_src From 703ccbe2a4aeb87eaef4cfe0af2e9550877d09b0 Mon Sep 17 00:00:00 2001 From: Eric Schulte schulte.e...@gmail.com Date: Thu, 11 Jul 2013 00:08:22 -0600 Subject: [PATCH] optional svg output for latex code blocks * lisp/ob-latex.el (org-babel-latex-htlatex): Set this variable to htlatex (or path to said) to enable svg generation from latex code blocks. (org-babel-latex-htlatex-packages): Libraries required for automatic svg generation. (org-babel-execute:latex): Generate SVG images directly from latex code blocks (assumes tikz). --- lisp/ob-latex.el | 44 1 file changed, 44 insertions(+) diff --git a/lisp/ob-latex.el b/lisp/ob-latex.el index 94d5133..f916eb0 100644 --- a/lisp/ob-latex.el +++ b/lisp/ob-latex.el @@ -50,6 +50,17 @@ '((:results . latex) (:exports . results)) Default arguments to use when evaluating a LaTeX source block.) +(defcustom org-babel-latex-htlatex nil + The htlatex command to enable conversion of latex to SVG or HTML. + :group 'org-babel + :type 'string) + +(defcustom org-babel-latex-htlatex-packages + '([usenames]{color} {tikz} {color} {listings} {amsmath}) + Packages to use for htlatex export. + :group 'org-babel + :type '(list string)) + (defun org-babel-expand-body:latex (body params) Expand BODY according to PARAMS, return the expanded body. (mapc (lambda (pair) ;; replace variables @@ -124,6 +135,39 @@ This function is called by `org-babel-execute-src-block'. transient-pdf-file out-file im-in-options im-out-options) (when (file-exists-p transient-pdf-file) (delete-file transient-pdf-file)) + ((and (or (string-match \\.svg$ out-file) +(string-match \\.html$ out-file)) +org-babel-latex-htlatex) + (with-temp-file tex-file + (insert (concat + \\documentclass[preview]{standalone} +\\def\\pgfsysdriver{pgfsys-tex4ht.def} + + (mapconcat (lambda (pkg) + (concat \\usepackage pkg)) + org-babel-latex-htlatex-packages + \n) + \\begin{document} + body + \\end{document}))) + (when (file-exists-p out-file) (delete-file out-file)) + (let ((default-directory (file-name-directory tex-file))) + (shell-command (format %s %s org-babel-latex-htlatex tex-file))) + (cond +((file-exists-p (concat (file-name-sans-extension tex-file) -1.svg)) + (if (string-match \\.svg$ out-file) + (progn + (shell-command pwd) + (shell-command (format mv %s %s +
Re: [O] How can I write side by side code comparison table
Jisang Yoo jisang.yoo...@gmail.com writes: I can write a table: | Python | Emacs Lisp | |+| ||| and I can write two source code blocks: #+BEGIN_SRC python a = [0, 1, 2] a[0] += 10 #+END_SRC #+BEGIN_SRC elisp (setq a (vector 0 1 2)) (cl-incf (elt a 0) 10) #+END_SRC but I don't know how to combine the two-column table with the two source code blocks in a way that exports to code tables like in Emergency Elisp The ODT exporter - I believe it is *the only* exporter - that has something called list tables. See attachments. You can make a special request to turn it on for other exporters. As far as HTML export is concerned there are some special CSS tricks that you can use. Search for posts by Christian Moe and look for the keywords side-by-side, list table or something like that. You will see atleast 3-5 threads where this question has popped up. list-table.odt Description: application/vnd.oasis.opendocument.text #+attr_odt: :list-table t - Python - Elisp - #+BEGIN_SRC python a = [0, 1, 2] a[0] += 10 #+END_SRC - #+BEGIN_SRC elisp (setq a (vector 0 1 2)) (cl-incf (elt a 0) 10) #+END_SRC
Re: [O] [BUG] org-agenda-list
Rainer Stengele rainer.steng...@online.de writes: Yes, the fix works! Applied, thanks. -- Bastien
Re: [O] Starting agenda commands fail with error: cond: Wrong type argument: sequencep, :newline
Hi Noorul, Noorul Islam K M noo...@noorul.com writes: My bad, it was a patch submitted to the list for verification. Someone has verified it. Let us wait for this to be committed. Done, thanks! -- Bastien
[O] How can I set the maximum height of the other window created with org-agenda-follow-mode?
I like turning on agenda-follow-mode by default, but I don't like how it automatically uses up half the frame real estate when it shows the other window. Is there a way to make that other window take only 25% of the frame? Leaving the remainder for the actual agenda? I didn't find any mention in the documentation or the defcustoms in org.el and org-agenda.el. I realize this may be a more emacs-general question about controlling window configuration, but I'm also stuck on that front as well. Google searches about controlling emacs window size take me to SO answers for how to maximize the frame on startup. -- Trevor Murphy GnuPG Key: 0xCB06EAAF
Re: [O] How can I set the maximum height of the other window created with org-agenda-follow-mode?
Hi Trevor, Trevor Murphy trevor.m.mur...@gmail.com writes: I like turning on agenda-follow-mode by default, but I don't like how it automatically uses up half the frame real estate when it shows the other window. C-h v org-agenda-window-frame-fractions RET HTH, -- Bastien
Re: [O] [BUG] org-agenda-list
Bastien b...@gnu.org writes: Rainer Stengele rainer.steng...@online.de writes: Yes, the fix works! Applied, thanks. Thanks! I just pulled again and I don't see the error any more. -- Nick
Re: [O] Cannot convert to Odt
Ok, there is a lot going on that I have no explanation for. The document in question converts just fine on my home laptop with org-version 7.8.11 (or does it? need to go home and check the resulting doc. It does convert, and libreoffice starts and opens the converted document) On my work laptop, both the document in question and my small test document failed with both 7.8.11 and 8.0.5 (from elpa) I don't know why the minimalistic file was failing. It is working today (alignment of the planets? phase of the moon? stupid user? -- I'll never admit to this) Since I got the minimalistic file running, I started adding more content from my original content, piece by piece, until it failed (using org-mode 8.0.5 from elpa). These messages should have clued me in originally: sh-syntax-propertize-function: Beginning of buffer and org-odt-format-source-code-or-example-colored: Symbol's function The problem was a shell code fragment, the parser did not know what to do with: #+BEGIN_SRC sh nodaemon) nodaemon() ;; #+END_SRC Just making the code more comprehensible as shell code as thus: #+BEGIN_SRC sh case $1 in nodaemon) nodaemon() ;; esac #+END_SRC or changing the code segment into EXAMPLE instead, fixes it. It converts under 7.8.11 and 8.0.5 What I am curious about is why doesn't this fail in html or latex conversion, but even more important, what bone-head thing did I do to make it work on my home laptop, with an un-corrected version of the same document (both home and work laptops are getting the file from my Dropbox folder, so I know it is the same file) I guess the other question is, what bone-headed thing did I do that caused the minimalistic file to fail with both versions of org-mode on my work laptop? The world may never know... The important thing is now I am converting this document to odt on the work laptop. Afterall, the document in question is a work document. Jambunathan K writes: Tim Hawes haw...@anx.com writes: Jambunathan K writes: I am able to convert the same file on my home laptop with org-version 7.8.11 Nonetheless, I tried it with this minimal file: #+STARTUP: showeverything * Heading 1 1. Item 1 starting emacs with emacs -Q I am getting this error: (emacs) Loading term/xterm...done For information about GNU Emacs and the GNU system, type C-h C-a. kmacro-call-macro: No kbd macro has been defined Making completion list... [2 times] Export buffer: Debug (org-odt): Searching for OpenDocument schema files... Debug (org-odt): Trying /usr/pkg/share/emacs/24.2/lisp/contrib/odt/etc/schema/... Debug (org-odt): No OpenDocument schema files installed Debug (org-odt): Searching for OpenDocument styles files... Debug (org-odt): Trying /usr/pkg/share/emacs/24.2/lisp/etc/styles/... Debug (org-odt): Trying /usr/pkg/share/emacs/24.2/lisp/org/etc/styles/... Debug (org-odt): Trying /usr/pkg/share/emacs/24.2/etc/org/... Debug (org-odt): Using styles under /usr/pkg/share/emacs/24.2/etc/org/ Exporting to ODT using org-lparse... ^^ ^^ Using vacuous schema org-babel-exp processing... [2 times] org-odt-format-source-code-or-example-colored: Symbol's function ^ ^ definition is void: copy-seq byte-code: Beginning of buffer [16 times] The ODT exporter is 7.8.11 version. (The presence of org-lparse says it is a 7.8 version) You are having a old version of Emacs and hence org-odt.el. Try upgrading it to emacs-24.3 (or whatever is the newest stable version) or the latest Org-7.8.X version. I see no correspondence between the example Org file and the problem reported. Problematic path gets triggered only if there are source blocks. The Org file has no source block. Definitely there is something amiss at your side. Org-7.8.11 is more or less on life-support. Issues with Org-8.0 will be more interesting. Make sure to use GNU ELPA package and isolate the issue further. Start Emacs *normally*. (Otherwise the exporter used will be the old one.) *After* export, try M-x org-version RET M-x locate-library RET org-compat RET and ensure that the right version of Org is picked up. The problem comes from one of the shell blocks (either babel execution or source block coloration.) (New file) It may have something to do with what you have in your Org file. Try minimizing your Org file one by one until you find where the problem is.
[O] Best way to let M-/ (dabbrev-expand) work for with code variables in prose via the =code= notation
I am enjoying literate programming with org-mode. I'd like to solicit advice on good ways to go about making one of my favorite emacs keycombinations, M-/ (dabbrev-expand), work with literate programming in org-mode. The setup: I have a code block in which a variable name is used. Later, outside the code block, I'd like to refer to that variable name, and since it's code, I'd like it to be inside =equal sign= markup. The starting = prevents M-/ from matching the first few characters of the variable name. Example: #+BEGIN_SRC python my_cool_variable = 42 #+END_SRC I'd like to now type =my and have M-/ be smart enough to consider my_cool_variable and complete it to =my_cool_variable=. I can try hacking up something simple-minded to do this but would like some guidance to find a way that will break the least number of things for the least number of people. Many thanks, Ahmed
Re: [O] Help with new exporter
Hi, Robert -- This gets me still closer. Using the revised class definition, I get exactly what I need except that I'm still left with square brackets in tex file. That is, I want this: \begin{questions} or \begin{parts} but instead I get this: \begin[]{questions} or \begin[]{parts} (Those two places are now the only places where the empty square brackets show up, and I don't have any of the empty curly brackets.) If I remove those square brackets and run latex on the changed file, then I get what I want in the pdf. I was using a fairly recent version (8.0.3) from git; I've now upgraded to 8.0.5 from git and get the same result. I see Charles's suggestion to define a filter to take out the brackets (thanks for that) -- I'm afraid I'm on the edge of my knowledge so I'll need more time to sort that one out. Thanks for your help. -- John Rakestraw
Re: [O] tikz for multiple targets
Eric S Fraga e.fr...@ucl.ac.uk writes: Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi Eric, [...] I updated the example again. Try this: Brilliant. Thanks. This works perfectly. I can see the changes you've made and they make sense (in hindsight for me) except for the (intern latex) bit... but this is probably to do with how eq works I guess. Anyway, thanks again. eric I actually dropped the intern bit from the previous approach. I'm happy this looks useful, I will go ahead and commit. -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] tikz for multiple targets
Rasmus ras...@gmx.us writes: Eric Schulte schulte.e...@gmail.com writes: Building from this example, the attached patch to ob-latex.el combined with the attached org-mode file should export the latex (tikz) code as an inline SVG image to HTML and as embedded tikz to latex. If this works generally I can commit the patch to ob-latex.el. Looks good to me, although it would make ox-html depend on ox-latex which may or may not be desirable. . . For instance math stuff is handled internally by ox-html, it seems (correct me if I'm wrong). While TikZ clearly is a LaTeX feature, producing SVGs are more of a way of support this type of figures in html output, although it depends on TeX binaries. Nope, this patch only touches ob-latex not ox-latex (easily mistaken names). File links to tikz files [[file:pix.pgf]] (e.g. produced with R or matplotlib) won't be understood with this patch. It should automatically convert the picture to an svg figure, I think. Perhaps support for file links can be added later. Correct. I think that users of R or gnuplot should use R or gnuplot to produce SVG or PDF images directly. I don't think htlatex makes sense in those use cases. —Rasmus -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] tikz for multiple targets
This is very nice and works well for me. I would very much like to see that in orgmode. Thanks a lot! Great, I've just committed this patch. Thanks for your original example which this simply extends. How do I extend your example to output latex for latex, svg for html and png in all other cases? The attached does this. The catch is that the :imagemagick header argument is required for png (and other) image types to be used. #+LATEX_HEADER: \usepackage{tikz} First execute the second code block, to define the convenience macro and to set the required new variables in ob-latex.el. Then export to HTML and to pdf to see the tree exported as an SVG image and as embedded tikz respectively. * Tikz test Here's a tree, exported to both html and pdf. #+header: :file (by-backend (html tree.svg) (pdf 'nil) (t tree.png)) #+header: :imagemagick #+header: :results (by-backend (pdf latex) (t raw)) #+begin_src latex \usetikzlibrary{trees} \begin{tikzpicture} \node [circle, draw, fill=red!20] at (0,0) {1} child { node [circle, draw, fill=blue!30] {2} child { node [circle, draw, fill=green!30] {3} } child { node [circle, draw, fill=yellow!30] {4} }}; \end{tikzpicture} #+end_src #+RESULTS: [[file:tree.png]] * COMMENT setup #+begin_src emacs-lisp :results silent (setq org-babel-latex-htlatex htlatex) (defmacro by-backend (rest body) `(case (if (boundp 'backend) (org-export-backend-name backend) nil) ,@body)) #+end_src Cheers, -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] Cannot convert to Odt
Tim Hawes haw...@anx.com writes: The problem was a shell code fragment, the parser did not know what to do with: #+BEGIN_SRC sh nodaemon) nodaemon() ;; #+END_SRC Just making the code more comprehensible as shell code as thus: #+BEGIN_SRC sh case $1 in nodaemon) nodaemon() ;; esac #+END_SRC or changing the code segment into EXAMPLE instead, fixes it. It converts under 7.8.11 and 8.0.5 I don't use Org-mode or Babel myself. I don't understand shell code. Different backends use different engines for colorizing source blocks. ODT uses htmlfontify. HTML uses htmlize. LaTeX probably relies on TeX packages like minted etc. I suspect the problem could be in htmlfontify library or the exporter interfaces with it. If you could post a complete minimal snippet by removing ellipses etc., I can do some post-mortem and narrow the issue further. You can turn off the colors on source blocks by customizing, M-x customize-variable RET org-odt-fontify-srcblocks RET So, instead of switching to EXAMPLE blocks you can just turn off colorization and see whether problem is reproducible. This is a sure proof that there is something amiss in htmlfontify.el or how the expoter interfaces with it.
Re: [O] [BUG] org-agenda-list
On 7/11/2013 8:50 AM, Nick Dokos wrote: Bastien b...@gnu.org writes: Rainer Stengele rainer.steng...@online.de writes: Yes, the fix works! Applied, thanks. Thanks! I just pulled again and I don't see the error any more. Thank you Nick. I can now uncomment my (:newline . t)'s Charlie
Re: [O] How can I write side by side code comparison table
On 2013-07-10 18:00, Jisang Yoo wrote: I can write a table: ... but I don't know how to combine the two-column table with the two source code blocks in a way that exports to code tables like in Emergency Elisp how about for scalars as example blocks: #+name: emacs-scalar #+BEGIN_SRC emacs-lisp emacs-lisp #+END_SRC #+name: perl-scalar #+BEGIN_SRC perl :results value return perl; #+END_SRC #+HEADER: :colnames '(emacs perl) #+BEGIN_SRC emacs-lisp :var a=emacs-scalar b=perl-scalar `((,a ,b)) #+END_SRC #+RESULTS: | emacs | perl | |+--| | emacs-lisp | perl | and generalized for lists: #+name: list1 #+BEGIN_SRC emacs-lisp '(a1 a2) #+END_SRC #+name: list2 #+BEGIN_SRC emacs-lisp '(b1 b2) #+END_SRC #+HEADER: :colname-names '((nil list1 list2)) #+BEGIN_SRC emacs-lisp :var l1=list1 l2=list2 (require 'cl) (mapcar* 'list l1 l2) #+END_SRC #+RESULTS: | list1 | list2 | |---+---| | a1| b1| | a2| b2| rick
Re: [O] [BUG] org-agenda-list
On 7/11/2013 1:51 PM, Charles wrote: Thank you Nick. I can now uncomment my (:newline . t)'s Charlie Oops, that's (:newline . nil)
Re: [O] tikz for multiple targets
Hi Eric, Eric Schulte schulte.e...@gmail.com writes: This is very nice and works well for me. I would very much like to see that in orgmode. Thanks a lot! Great, I've just committed this patch. Thanks for your original example which this simply extends. How do I extend your example to output latex for latex, svg for html and png in all other cases? The attached does this. The catch is that the :imagemagick header argument is required for png (and other) image types to be used. thanks for the quick answer. I am aware, that imagemagick is needed. Let me rephrase my question using your example: #+LATEX_HEADER: \usepackage{tikz} First execute the second code block, to define the convenience macro and to set the required new variables in ob-latex.el. Then export to HTML and to pdf to see the tree exported as an SVG image and as embedded tikz respectively. * Tikz test Here's a tree, exported to both html and pdf. #+header: :file (by-backend (html tree.svg) (pdf 'nil) (t tree.png)) #+header: :imagemagick I seem not to be able to apply (by-backend ) at the 'top-level, like so: #+header: (by-backend (html 'nil) (pdf 'nil) (t :imagemagick)) Why is that? Regards, Andreas
Re: [O] tikz for multiple targets
Thanks for the quick answer. I am aware, that imagemagick is needed. Let me rephrase my question using your example: #+LATEX_HEADER: \usepackage{tikz} First execute the second code block, to define the convenience macro and to set the required new variables in ob-latex.el. Then export to HTML and to pdf to see the tree exported as an SVG image and as embedded tikz respectively. * Tikz test Here's a tree, exported to both html and pdf. #+header: :file (by-backend (html tree.svg) (pdf 'nil) (t tree.png)) #+header: :imagemagick I seem not to be able to apply (by-backend ) at the 'top-level, like so: #+header: (by-backend (html 'nil) (pdf 'nil) (t :imagemagick)) Why is that? Because elisp evaluation is available for header argument *values*, not for the entire header argument line. Instead you could do the following, or just use the example in my previous email which sets :imagemagick in all cases. #+header: :imagemagick (by-backend ((html pdf) 'nil) (t yes)) Cheers, -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] RSS back-end: blogging with Org-mode is now easy
So here we are, The package provided in (X)ubuntu 13.4 is this one : GNU Emacs 24.2.1 (i686-pc-linux-gnu, GTK+ Version 3.6.4) of 2013-04-09 on komainu, modified by Debian. I tried C-h f url-encode-url RET but wihout the expected results. I tried to find something with google and I seems that the version of Emacs must greater than 24.2.1. I used the PAA for Damien CASSOU, install Emacs 24.3.1. The command 'url-encode-url' was listed in. I tried both org-rss-export-as/to-rss and it worked. I also tested the org-publish-project-alist approach with success. So my problem comes from the Emacs version. Thanks for your help! 2013/7/11 Bastien b...@gnu.org flammable project flammable.proj...@gmail.com writes: Any ideas? Can you check if you have `url-encode-url'? C-h f url-encode-url RET will tell you. It is an autoloaded function, so you don't need to (require 'url-util), but if you can browse your Emacs sources, it should be in there. HTT, -- Bastien
Re: [O] How can I set the maximum height of the other window created with org-agenda-follow-mode?
Bastien b...@gnu.org writes: Hi Trevor, Trevor Murphy trevor.m.mur...@gmail.com writes: I like turning on agenda-follow-mode by default, but I don't like how it automatically uses up half the frame real estate when it shows the other window. C-h v org-agenda-window-frame-fractions RET HTH, Bastien, I am not sure if this actually addresses Trevor's question. I think his question is about the supplementary window that shows the agenda item entry as you move about in the main agenda window. That supplementary window's size changes depending on the contents of the text within the headline associated with an agenda item and, if the text is long enough, the window can be quite large. But, then again, I may have misunderstood the point... in which case just ignore my late night musings! -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.0.5-326-g325e40
[O] Embedded Tikz Picture
What would be the best way to use some tikz code in an org-file ? I've succeeded so far by putting it in a #+BEGIN_LaTeX #+END_LaTeX structure but from what I understand, this code will only be evaluated when I export to LaTeX. I also tried embedding the corresponding LaTeX code, but I only got a white square for the picture. I guess the relevant packages weren't loaded. Is it possible to make the embedded LaTeX code use the class defined by #+LATEX_CLASS ? Finally it seems Babel could be the way to go but I'm not sure what it offers for LaTeX source with respect to Embedded LaTeX in this case. Thanks for your help. I'm trying to make the switch to Orgmode for all my LaTeX needs and it's quite a steep learning curve. Julien.
[O] Several questions about beamer export
I'm trying to switch all my LaTeX needs to orgmode but I'm still confused by several little things I could not understand in the manual. I'm not sure what the policy is on the mailing-list, let me know if it's best to split this message into several ones. * What's the difference between BEAMER_ENV and BEAMER_env ? * What is the best way to generate \only2-3{Some text of picture} without creating a new heading ? * Is there a shortcut/easy template to ATTR_BEAMER ? I know I could use a yas snippet but maybe there is already something in place. * in LaTeX you can use \graphicspath to define the directories in which to look for picture files. Does org mode offer the same possibility ? * All the headers I add end up on the same line when I define them like in the following (even with an empty line). #+LATEX_HEADER_EXTRA: \institute{My Institure} #+LATEX_HEADER:\usepackage{mypackage} The LaTeX file produced is not very readable. How can I produce linebreaks between different LATEX_HEADER entries ? Julien.
[O] Export to LaTeX and Beamer
I need to export different parts of an org file with different LaTeX classes, one of which is a beamer style. I've come up with the following solution: manually switching the LATEX_CLASS for each export, and using SELECT_TAGS to choose which headings to export. For the following file * First section ** First subsection *** This is for beamer:beamer: Some text *** This is for plain LaTeX :latex: Some other text *** This is for both :beamer:latex: Changing the preamble from: #+LATEX_CLASS: beamer #+SELECT_TAGS: beamer to: #+LATEX_CLASS: latex #+SELECT_TAGS: latex does the trick but what if I don't want to export the title of the heading but just the text ? I can use the noheading BEAMER_ENV for beamer export but I couldn't find a corresponding option for plain LaTeX. How would you go about doing it ? Julien.
Re: [O] Embedded Tikz Picture
Julien Cubizolles j.cubizol...@free.fr writes: What would be the best way to use some tikz code in an org-file ? I've succeeded so far by putting it in a #+BEGIN_LaTeX #+END_LaTeX structure but from what I understand, this code will only be evaluated when I export to LaTeX. I also tried embedding the corresponding LaTeX code, but I only got a white square for the picture. I guess the relevant packages weren't loaded. Is it possible to make the embedded LaTeX code use the class defined by #+LATEX_CLASS ? Finally it seems Babel could be the way to go but I'm not sure what it offers for LaTeX source with respect to Embedded LaTeX in this case. I actually just added this example to worg today, it should answer your question. Cheers, http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html#sec-4-3 Thanks for your help. I'm trying to make the switch to Orgmode for all my LaTeX needs and it's quite a steep learning curve. Julien. -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] tikz for multiple targets
Eric Schulte schulte.e...@gmail.com writes: This is very nice and works well for me. I would very much like to see that in orgmode. Thanks a lot! Great, I've just committed this patch. Thanks for your original example which this simply extends. Thanks for this Eric! I've tried it out just now (on a real document) and it works well. I do have a problem in the SVG creation in that I need a special package included to generate the figure in question. Time to search on the list as I think this has come up before for LaTeX snippets. Thanks again, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.0.5-337-g9f3bed
Re: [O] Help with new exporter
Hi, list -- I understand the value of working on this myself -- what better way to learn? -- but after a few hours of reading the docs and scouring the list, I've reached the point of seeking at least a hint for where to go. (There's much more information higher in this thread, but I'm trying to focus rather narrowly on the problem here to keep the email relatively short.) I'm trying to export to a pdf, using Phil Hirschhorn's exam.cls. The document class definition I have (thanks, Robert!) gets me almost to where I need to be. However, it leaves me with square brackets at several points in the tex file. I need to delete those brackets. That is, I need to change \begin[]{questions} to {\begin{questions}. Following Charles's advice, I'm trying to define and use a filter. However, I know little enough about LaTeX and lisp that I can't figure out why what I have isn't working. At the risk of making it very clear I know even less than nothing, here's what I've worked up: --8---cut here---start-8--- (defun jr-org-delete-brackets-from-tex-file (text backend info) (while (re-search-forward \\[] nil t) (replace-match )) text) (add-to-list 'org-export-filter-final-output-functions 'jr-org-delete-brackets-from-tex-file) --8---cut here---end---8--- This doesn't work. Can someone at least give me a hint on what I need to do differently? Thanks very much. -- John Rakestraw
Re: [O] tikz for multiple targets
Hi Eric, Eric Schulte schulte.e...@gmail.com writes: Thanks for the quick answer. I am aware, that imagemagick is needed. Let me rephrase my question using your example: #+LATEX_HEADER: \usepackage{tikz} First execute the second code block, to define the convenience macro and to set the required new variables in ob-latex.el. Then export to HTML and to pdf to see the tree exported as an SVG image and as embedded tikz respectively. * Tikz test Here's a tree, exported to both html and pdf. #+header: :file (by-backend (html tree.svg) (pdf 'nil) (t tree.png)) #+header: :imagemagick I seem not to be able to apply (by-backend ) at the 'top-level, like so: #+header: (by-backend (html 'nil) (pdf 'nil) (t :imagemagick)) Why is that? Because elisp evaluation is available for header argument *values*, not for the entire header argument line. Instead you could do the following, or just use the example in my previous email which sets :imagemagick in all cases. #+header: :imagemagick (by-backend ((html pdf) 'nil) (t yes)) Cheers, I understand. Thanks a lot for the clarification. Regards, Andreas
Re: [O] How can I set the maximum height of the other window created with org-agenda-follow-mode?
Eric's correct. My original message must not have been clear enough, my bad. I did find org-agenda-window-frame-fractions, and I tried setting it to '(0.75 . 0.75). On a lark I also tried '(0.9 . 0.9). In those cases, the agenda window initially popped up at 75% and 90% of the frame, respectively (as expected), but as soon as I moved to an agenda item the follow window stole half the frame. -- Trevor Murphy GnuPG Key: 0xCB06EAAF
Re: [O] tikz for multiple targets
Eric S Fraga e.fr...@ucl.ac.uk writes: Eric Schulte schulte.e...@gmail.com writes: This is very nice and works well for me. I would very much like to see that in orgmode. Thanks a lot! Great, I've just committed this patch. Thanks for your original example which this simply extends. Thanks for this Eric! I've tried it out just now (on a real document) and it works well. I do have a problem in the SVG creation in that I need a special package included to generate the figure in question. Time to search on the list as I think this has come up before for LaTeX snippets. My patch introduced a new variable `org-babel-latex-htlatex-packages' which controls the packages added to these latex to SVG code block snippets. The following should work. (push {your-package} org-babel-latex-htlatex-packages) -- Eric Schulte http://cs.unm.edu/~eschulte
[O] Fwd: [Feature request] Add :export option to ox-bibtex.el
Forgot to mention: the main reason of adding this feature is that I want to use biblatex instead of bibtex when I export to latex. -- Forwarded message -- From: feng shu tuma...@gmail.com Date: Thu, Jul 11, 2013 at 3:20 PM Subject: [Feature request] Add :export option to ox-bibtex.el To: emacs-orgmode@gnu.org bibtex2html can't recognize the style file in current dir ( -s ./customstyle.bst ) and it can't deal with customize bib style file very well. So, is it possible use different bibtex styles when I export to html? For example: #+BIBLIOGRAPHY: hbuuthesis plain limit:t option:-i export:html \bibliographystyle{customstyle} \bibliography{foo} or: #+BIBLIOGRAPHY: hbuuthesis plain limit:t option:-i export:html #+BIBLIOGRAPHY: hbuuthesis customstyle limit:t option:-i export:latex
Re: [O] Help with new exporter
Hi John, I think your search string might better be \[\], or something along those lines (perhaps it needs to be \\[\\]). hth, Tom John Rakestraw li...@johnrakestraw.com writes: Hi, list -- I understand the value of working on this myself -- what better way to learn? -- but after a few hours of reading the docs and scouring the list, I've reached the point of seeking at least a hint for where to go. (There's much more information higher in this thread, but I'm trying to focus rather narrowly on the problem here to keep the email relatively short.) I'm trying to export to a pdf, using Phil Hirschhorn's exam.cls. The document class definition I have (thanks, Robert!) gets me almost to where I need to be. However, it leaves me with square brackets at several points in the tex file. I need to delete those brackets. That is, I need to change \begin[]{questions} to {\begin{questions}. Following Charles's advice, I'm trying to define and use a filter. However, I know little enough about LaTeX and lisp that I can't figure out why what I have isn't working. At the risk of making it very clear I know even less than nothing, here's what I've worked up: (defun jr-org-delete-brackets-from-tex-file (text backend info) (while (re-search-forward \\[] nil t) (replace-match )) text) (add-to-list 'org-export-filter-final-output-functions 'jr-org-delete-brackets-from-tex-file) This doesn't work. Can someone at least give me a hint on what I need to do differently? Thanks very much. -- Thomas S. Dye http://www.tsdye.com
Re: [O] Several questions about beamer export
Julien Cubizolles j.cubizol...@free.fr writes: ... * All the headers I add end up on the same line when I define them like in the following (even with an empty line). #+LATEX_HEADER_EXTRA: \institute{My Institure} #+LATEX_HEADER:\usepackage{mypackage} The LaTeX file produced is not very readable. How can I produce linebreaks between different LATEX_HEADER entries ? You need to modify the code to get them: that's probably an omission (ngz will probably respond in much more detail than I can). They are only cosmetic of course, but if you have to have them, you can try adding them in org-beamer-template around line 880: (concat (plist-get info :latex-header) \n (plist-get info :latex-header-extra) \n (plist-get info :beamer-header-extra) \n))) The problem with this is that the newlines are added even if the various items are empty, so you may end up with more newlines than are necessary. -- Nick
Re: [O] Several questions about beamer export
Nick Dokos ndo...@gmail.com writes: Julien Cubizolles j.cubizol...@free.fr writes: ... * All the headers I add end up on the same line when I define them like in the following (even with an empty line). #+LATEX_HEADER_EXTRA: \institute{My Institure} #+LATEX_HEADER:\usepackage{mypackage} The LaTeX file produced is not very readable. How can I produce linebreaks between different LATEX_HEADER entries ? You need to modify the code to get them: that's probably an omission (ngz will probably respond in much more detail than I can). They are only cosmetic of course, but if you have to have them, you can try adding them in org-beamer-template around line 880: (concat (plist-get info :latex-header) \n (plist-get info :latex-header-extra) \n (plist-get info :beamer-header-extra) \n))) Let's make it an improvement suggestion then: getting \usepackage{} and \date{} commands mixed in the LaTeX file isn't very nice. The problem with this is that the newlines are added even if the various items are empty, so you may end up with more newlines than are necessary. I'd personally prefer having empty lines instead of everything on the same line. Julien.
Re: [O] Embedded Tikz Picture
Eric Schulte schulte.e...@gmail.com writes: Julien Cubizolles j.cubizol...@free.fr writes: Finally it seems Babel could be the way to go but I'm not sure what it offers for LaTeX source with respect to Embedded LaTeX in this case. I actually just added this example to worg today, it should answer your question. Cheers, http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html#sec-4-3 Thanks, I don't need the html export for now (although your example makes me want to try it) but I guess one could adapt it to display the corresponding png or pdf image in the org file. Julien.