Re: [O] org-todo-keywords-1 detection in asyn export
Nicolas Goaziou n.goaz...@gmail.com writes: zwz zhangwe...@gmail.com writes: Can you give me some example code? I was thinking about something like this (untested): (let (template) (defun ngz-set-template (new) (setq template new)) (defun ngz-latex-process (file) (case template (a (do-something-with file)) (b (do-something-else-with file)) (otherwise (do-default-with file) (defun ngz-latex-class-to-template (info backend) (when (org-export-derived-backend-p backend 'latex) (ngz-set-template (let ((value (plist-get info :latex-class))) (cond ((string= value classA) 'a) ((string= value classB) 'b) (t nil info)) (add-to-list 'org-export-filter-options-functions 'ngz-latex-class-to-template) (setq org-latex-pdf-process #'ngz-latex-process) Obviously, you need to activate lexical binding. I am not sure if I get you totally. I was talking about BIND keyword, not about your initial implementation. Thank you, Nicolas. I used BIND before, but never like what your example code does. Here is what I put in my org-export-async-init-file: (defun ox-xetex-setup () (if (member XeTeX org-todo-keywords-1) (setq org-latex-default-packages-alist (remove '(AUTO inputenc t) org-latex-default-packages-alist) org-latex-pdf-process '(latexmk -xelatex -pdf -silent -f %f (add-hook 'org-mode-hook (lambda () (ox-xetex-setup))) ;; instead of add-hook as above, you can just put ;; (ox-xetex-setup) ;; but again, it still calls pdflatex when export asynchronously [...] When I export it asynchronously, org-export calls pdflatex rather than xelatex to generate pdf. I think the problem comes from `org-todo-keywords-1'. Its value is probably not updated during export. Yes, I guess so. But it worked during *synchronous* export, even when I put #+TODO: XeTeX in a common option-template file, which is then included by #+SETUPFILE in many org files. Regards,
Re: [O] org-todo-keywords-1 detection in asyn export
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, zwz zhangwe...@gmail.com writes: So here what I mean by locally is to adjust the org-latex-pdf-process by some keywords, instead of binding it with some specific code/value (which is difficult for modification) `org-latex-pdf-process' can be a function. You could send it a message telling it what functions to use. For example, a hook could find out what LaTeX class you're using and send the appropriate message to the function. Thank you, Nicolas. Can you give me some example code? However I found it does not work in asyn export. Is is not related to async export. I am not sure if I get you totally. Here is what I put in my org-export-async-init-file: (defun ox-xetex-setup () (if (member XeTeX org-todo-keywords-1) (setq org-latex-default-packages-alist (remove '(AUTO inputenc t) org-latex-default-packages-alist) org-latex-pdf-process '(latexmk -xelatex -pdf -silent -f %f (add-hook 'org-mode-hook (lambda () (ox-xetex-setup))) ;; instead of add-hook as above, you can just put ;; (ox-xetex-setup) ;; but again, it still calls pdflatex when export asynchronously And in some test.org: #+TODO: XeTeX * test blah blah When I export it asynchronously, org-export calls pdflatex rather than xelatex to generate pdf. And even I put (ox-xetex-setup) directly in org-export-async-init-file, it still does not work as expected. A few variables live outside the scope of BIND keywords. `org-latex-pdf-process' is one of them. Though, you can always define it as a file local variable. Regards,
Re: [O] org-todo-keywords-1 detection in asyn export
Bastien b...@gnu.org writes: zwz zhangwe...@gmail.com writes: How to locally set org-latex-pdf-process? #+BIND: org-latex-pdf-process ... should work. Thank you, Bastien. Sometimes my org-latex-pdf-process is quite complicated, as I will set or add-to-list some extra process, for example: if XeTeX is a member of org-todo-keywords-1, I would set the local org-latex-pdf-process to use xelatex instead of pdflatex; if handout is a member of org-todo-keywords-1, I would add-to-list some preprocessing steps and even pdfnup into org-latex-pdf-process to generate a ready-for-print version at the same time; ... So here what I mean by locally is to adjust the org-latex-pdf-process by some keywords, instead of binding it with some specific code/value (which is difficult for modification) However I found it does not work in asyn export.
[O] org-todo-keywords-1 detection in asyn export
Before I adopt asyn export, I config in an org file #+TODO: XeTeX to locally set xelatex for org-latex-pdf-process by: (if (member XeTeX org-todo-keywords-1) (setq org-latex-default-packages-alist (remove '(AUTO inputenc t) org-latex-default-packages-alist) org-latex-pdf-process '(latexmk -xelatex -pdf -silent -f %f))) But when I move the config to my org-export-async-init-file, it does not take effect in asyn export. The default org-latex-pdf-process pdflatex runs instead of xelatex. How to locally set org-latex-pdf-process?
Re: [O] Babel should not work in the subtree marked as not exported
Eric Schulte schulte.e...@gmail.com writes: Sorry for being unclear here. I wanted to propose different behaviour for TAGs (lets say :noexport:) and the COMMENT keyword. I am perfectly fine with :noexport: only prohibiting export but still allowing evaluation. But I propose that COMMENT be more treated like a comment, so more like a shorthand for commenting out that subtree using '# '. That way, evaluation would be disabled. I see two benefits: 1. It serves the use-case where one wants a subtree to be not exported and not evaluated. 2. It more resembles Orgs idea of comments. And since the other use case (no export but still evaluation) is still very well supported via :noexport: there would be not too much loss. (IIRC, the COMMENT keyword was close to removal from Orgs syntax recently. So, why not add some real additional functionality to it?) WDYT? This sounds like a good compromise to me. As you say, this should easily and visually support both use cases and is intuitive. I've not touched the export machinery myself, so I'll leave the implementation to Nicolas but I definitely support this approach. Best, COMMENT is a good proposal. However, for someone new to org-mode, it is difficult to tell the subtle difference between COMMENT and :noexport:. IMO, it is more intuitive that :noexport: prohibits *both* export and evaluation, and if some code in a :noexport: subtree is to be evaluated, then it should be named and called in some other place.
Re: [O] Babel should not work in the subtree marked as not exported
Samuel Wales samolog...@gmail.com writes: how about call lines? to me, they should not run if they are not supposed to be exported. is this a bug? * babel should not export a call line via todo kw *** NEXT to reproduce set org-export-with-tasks to nil *** NEXT this should not run #+call: hi(a=2) *** hi #+name: hi #+begin_src sh :var a=1 echo hi $a #+end_src Maybe this is a simple and clear way: noexport means no export and no code running, either. While if you want to get the code run, just call it somewhere explicitly. What do you think?
Re: [O] org-edit-special cannot tell ditaa from table
Thomas Holst thomas.ho...@de.bosch.com writes: Hi, zwz zhangwe...@gmail.com wrote: Here is an example: * test #+BEGIN_SRC ditaa ++ +-+ || | | || | | ++ +-+ #+END_SRC When I hit C-c ', the minibuffer says Recognizing tables...done, and the org src scratch buffer does not turn picture-mode on. I had the same problem. If you insert a blank line at top of the ditaa block and hit C-c ' with point in that line artist mode comes up. At least for me. HTH Yes, same here. And I also find that it works when the point is in the line #+BEGIN_SRC without an extra blank line.
Re: [O] org-edit-special cannot tell ditaa from table
Thomas Holst thomas.ho...@de.bosch.com writes: Hi, zwz zhangwe...@gmail.com wrote: Here is an example: * test #+BEGIN_SRC ditaa ++ +-+ || | | || | | ++ +-+ #+END_SRC When I hit C-c ', the minibuffer says Recognizing tables...done, and the org src scratch buffer does not turn picture-mode on. I had the same problem. If you insert a blank line at top of the ditaa block and hit C-c ' with point in that line artist mode comes up. At least for me. HTH Yes, same here. And I also find that it works when the point is in the line #+BEGIN_SRC without an extra blank line.
Re: [O] Babel should not work in the subtree marked as not exported
Sebastien Vauban sva-n...@mygooglest.com writes: Rainer M Krug wrote: Ken Mankoff mank...@gmail.com writes: On 2014-03-11 at 08:47, zwz wrote: In my setup, there is (setq org-export-exclude-tags '(private exclude) and In my test.org: * test ** Not exported:exclude: #+BEGIN_SRC ditaa :file test.png :cmdline -E ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ x | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ #+END_SRC ** blah blah blah blah blah When I try to export it to pdf, the test.png is still generated, although it is not used for the pdf at all. So I think the export procedure may be optimized for more efficiency. No, because I often have code and sections I don't want exported, but I want their side-effects active. For example, code with sessions where part is not exported, but I need that code run so code elsewhere, using the same session, is able to run and be exported. AFAIK, this depends if you use a session. When you are using a session, *all* code blocks are evaluated, if you do not set the header argument session, only the ones which are exported are evaluated - precisely the reason you give. We should know if zwz uses a session or not. Because, IIUC, what he reports is that all code blocks are evaluated, even the ones which are not exported. Best regards, Seb I checked my org settings, and did not found anything about session. And here is the options in the file: #+OPTIONS: H:2 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :t Is session turned on by default?
Re: [O] Babel should not work in the subtree marked as not exported
Ken Mankoff mank...@gmail.com writes: Hi Andreas, On 2014-03-11 at 09:41, Andreas Leha wrote: Hi Ken, Ken Mankoff mank...@gmail.com writes: On 2014-03-11 at 08:47, zwz wrote: In my setup, there is (setq org-export-exclude-tags '(private exclude) and In my test.org: * test ** Not exported:exclude: #+BEGIN_SRC ditaa :file test.png :cmdline -E ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ x | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ #+END_SRC ** blah blah blah blah blah When I try to export it to pdf, the test.png is still generated, although it is not used for the pdf at all. So I think the export procedure may be optimized for more efficiency. No, because I often have code and sections I don't want exported, but I want their side-effects active. For example, code with sessions where part is not exported, but I need that code run so code elsewhere, using the same session, is able to run and be exported. -k. So what is your suggestion for the OP to achieve what he is after? noexport and noeval at the same time. I do not have a suggestion. I'm not very familiar with the various options, and didn't know noeval exists. That sounds like a good solution. The OP suggestion of may be optimized is vague, but I took it, perhaps incorrectly, to mean don't run code in noexport sections, hence my disagreement. -k. I totally get you. As I was not aware of the fact that it is session related, I used the vague phrase. Now I just want to know how to turn off session for some source block.
Re: [O] Babel should not work in the subtree marked as not exported
Rainer M Krug rai...@krugs.de writes: Ken Mankoff mank...@gmail.com writes: On 2014-03-11 at 08:47, zwz wrote: In my setup, there is (setq org-export-exclude-tags '(private exclude) and In my test.org: * test ** Not exported:exclude: #+BEGIN_SRC ditaa :file test.png :cmdline -E ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ x | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ #+END_SRC ** blah blah blah blah blah When I try to export it to pdf, the test.png is still generated, although it is not used for the pdf at all. So I think the export procedure may be optimized for more efficiency. No, because I often have code and sections I don't want exported, but I want their side-effects active. For example, code with sessions where part is not exported, but I need that code run so code elsewhere, using the same session, is able to run and be exported. AFAIK, this depends if you use a session. When you are using a session, *all* code blocks are evaluated, if you do not set the header argument session, only the ones which are exported are evaluated - precisely the reason you give. Rainer -k. In my example, I did not set the header argument session, and variable org-babel-default-header-args has the value: (:results . replace) (:exports . code) (:cache . no) (:noweb . no) (:hlines . no) (:tangle . no)) However, the block still runs.
[O] Babel should not work in the subtree marked as not exported
In my setup, there is (setq org-export-exclude-tags '(private exclude) and In my test.org: * test ** Not exported:exclude: #+BEGIN_SRC ditaa :file test.png :cmdline -E ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ x | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | ++---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ #+END_SRC ** blah blah blah blah blah When I try to export it to pdf, the test.png is still generated, although it is not used for the pdf at all. So I think the export procedure may be optimized for more efficiency.
[O] org-edit-special cannot tell ditaa from table
Here is an example: * test #+BEGIN_SRC ditaa ++ +-+ || | | || | | ++ +-+ #+END_SRC When I hit C-c ', the minibuffer says Recognizing tables...done, and the org src scratch buffer does not turn picture-mode on.
Re: [O] Change Todo colors
You should use custom-set-faces instead of setq. Chris Henderson henders...@gmail.com writes: I'd like to change the color of Next to Red and Started to brown. At the moment, todo/ next and started all showing as red. Here is my .emacs snippet. (setq org-todo-keywords '((sequence TODO(t) Next(n) Started(s) | DONE(d!)) (sequence | CANCELED(c (setq org-todo-keyword-faces '((CANCELED . (:foreground blue :weight bold
[O] export latex in a table
Hi, I want to export a table to pdf as follows: * test | \textcolor{red}{range} | \textcolor{blue}{0\sim2^{8}-1} | I checked the generated tex. The first column is OK. While in the second column, the result is something like: \textcolor{blue}\{...\} I don't know what is the right way doing this, but it worked for org-mode 8.0. May somebody help me out?
Re: [O] export latex in a table
Rasmus rasmus at gmx.us writes: zwz zhangweize at gmail.com writes: I'm assuming you're only interested in LaTeX output here. Hi, I want to export a table to pdf as follows: * test | \textcolor{red}{range} | \textcolor{blue}{0\sim2^{8}-1} | How about this? #+MACRO: color \textcolor{$1}{$2} | {{{color(red, range)}}} | {{{color(blue, 0\sim2^8-1)}}} | Unless you're doing something that's not systematic, or which has a very particular logic it's probably not the right way. If all entries in a column/row need to be colored you should specify that rather than doing it manually. You could use tabu, but be warned that the interface will change at some point, or you could use colortbl. See here: http://texblog.org/2011/04/19/highlight-table-rowscolumns-with-color/ –Rasmus The macro-way does not work. The generated tex still contains the extra \ before {. My org version is 8.0.7. Thanks for your tips. But I just want to color some column/row. And I really enjoy the convenience of org table.
Re: [O] export latex in a table
Nicolas Goaziou n.goaziou at gmail.com writes: Hello, You can also use an export snippet: | at at latex:\textcolor{blue}{0\sim2^{8}-1} at at | Regards, Yes, it works. Thanks.
Re: [O] About indentation when the src block is under a list
Thanks! :) Charles Berry ccbe...@ucsd.edu writes: zwz zhangweize at gmail.com writes: Here is an example: * array ** search - example #+BEGIN_SRC c /* find score in scores ,* return the index if found or -1 */ int search(int scores[], int n, int score){ int i = 0; for(; in; ++i) if(scores[i]==score) return i; return -1; } #+END_SRC point - test If you want a manual fix, put point in the begin_src line then use M-right down C-c ' C-c ' that's org-metaright, next-line, org-edit-special, org-edit-src-exit HTH,
[O] About indentation when the src block is under a list
--text follows this line-- Here is an example: * array ** search - example #+BEGIN_SRC c /* find score in scores ,* return the index if found or -1 */ int search(int scores[], int n, int score){ int i = 0; for(; in; ++i) if(scores[i]==score) return i; return -1; } #+END_SRC point - test The indentation of the src block is OK, but it is relative to the second-level headline (**search), rather than the list - example. In this way, I can not create another list item (- test) at the point (illustrated by point) by Alt+Enter. I tried the variable org-indent-indentation-per-level, org-adapt-indentation and so on, but failed to indent the src block relative to the list item. So anyone please give me some hint.
[O] [feature request] set text color and size
I made presentations with org-mode + beamer quite a lot. Now and then I'd like to set a different color for some text to draw the students' attention. For example, #+begin_src org * test blah blah ... We should \textcolor{red}{NEVER} do it. #+end_src As HTML5 slides are getting popular these days, I am trying org-mode + HTML5. But I find I have to keep a separate edition of org file for HTML5 slides from the beamer ones, since the color setting is quite different. Here comes my feature request: set text color in a consistent way. We may introduce a new syntax and rewrite the test org-file above as follows: #+begin_src org * test blah blah ... We should [#ff NEVER] do it. #+end_src In the brackets, the first item is the color to be set for the rest text. And this item must start with #, followed by RGB hex numbers (css-like) or a color name. If the format is not right, we can just treat it like normal text. The syntax can be extended for setting text size as well. That is, # followed by some numbers (ie. less than 6 numbers).
Re: [O] [beamer] Can I just export one frame?
Herbert Sitz hes...@gmail.com writes: zwz zhangweize at gmail.com writes: It takes long to export the whole file when it contains many babel stuff. And in many cases, I just want to check if the current frame is arranged as expected. SO I just want to know if there is some convenient way to export just one frame without tagging all the other frames as :noexport. Have you tried just tagging the tree you want with :export:? Once that select tag is present in the buffer Org will automatically exclude any trees that don't have it. From the docs: Org first checks if any of the select tags is present in the buffer. If yes, all trees that do not carry one of these tags will be excluded. If a selected tree is a subtree, the heading hierarchy above it will also be selected for export, but not the text below those headings. http://orgmode.org/manual/Selective-export.html#index-export_002c-selective-by-tags-or-TODO-keyword-1424 I did not know this! It is what I want. Thanks.
[O] [beamer] Can I just export one frame?
It takes long to export the whole file when it contains many babel stuff. And in many cases, I just want to check if the current frame is arranged as expected. SO I just want to know if there is some convenient way to export just one frame without tagging all the other frames as :noexport.
Re: [O] BUG: footnote conflicts with code export to pdf
Nick Dokos nicholas.do...@hp.com writes: zwz zhangwe...@gmail.com wrote: Then you modify it: #+begin_src org * test #+BEGIN_SRC c void main(){ int a[5]; } #+END_SRC #+end It says org-export-latex-preprocess: Wrong type argument: stringp, nil when you try to export the file. You didn't say what version of org you are using. I cannot reproduce it in Org-mode version 7.7 (release_7.7.416.g93bd.dirty) Nick I am using org-mode 7.7-1 (installed by pacman on Archlinux). Just for future reference: this version does not exist in git, so it doesn't tell me much. What does M-x org-version say? That's the important thing (of course, the Archlinux people might have modified it but it's still the best bet when reporting versions). Be that as it may, I checked that release_7.7 had the problem, so I tried a bisection and found that the fix is in the following commit: , | commit c3631aae7e68565978433cad8c4a2b286e91dfac | Author: Nicolas Goaziou n.goaz...@gmail.com | Date: Sat Jul 30 12:38:06 2011 +0200 | | org-footnote: prevent LaTeX export from catching footnotes in protect environment | | * lisp/org-footnote.el (org-footnote-in-valid-context-p): check | `org-protected' property before allowing to match a footnote. | (org-footnote-at-reference-p): remove an obsolete test. It's now done | in the previous function. ` Nick Thanks for pointing this out. Now I get the latest org, and it is smooth.
Re: [O] BUG: footnote conflicts with code export to pdf
Nick Dokos nicholas.do...@hp.com writes: zwz zhangwe...@gmail.com wrote: Steps to reproduce it: This org file can be exported to pdf correctly. #+begin_src org * test #+BEGIN_SRC c void main(){ int a; } #+END_SRC #+end Then you modify it: #+begin_src org * test #+BEGIN_SRC c void main(){ int a[5]; } #+END_SRC #+end It says org-export-latex-preprocess: Wrong type argument: stringp, nil when you try to export the file. You didn't say what version of org you are using. I cannot reproduce it in Org-mode version 7.7 (release_7.7.416.g93bd.dirty) Nick I am using org-mode 7.7-1 (installed by pacman on Archlinux).
[O] BUG: footnote conflicts with code export to pdf
Steps to reproduce it: This org file can be exported to pdf correctly. #+begin_src org * test #+BEGIN_SRC c void main(){ int a; } #+END_SRC #+end Then you modify it: #+begin_src org * test #+BEGIN_SRC c void main(){ int a[5]; } #+END_SRC #+end It says org-export-latex-preprocess: Wrong type argument: stringp, nil when you try to export the file.
Re: [O] Using org-babel in other modes?
Bernt Hansen be...@norang.ca writes: Dave Abrahams d...@boostpro.com writes: Org-babel does a magic thing where you get to edit and view your source code blocks in their native modes. Wow! I also happen to use markdown-mode to write blog articles. How hard, on a scale from read the source and figure it out to org-babel already has the hooks; you can do it in 5 minutes, would it be to integrate the org-babel stuff with markdown? Seems like this trick would be extremely useful for quite a few modes (RestructuredText, anyone?) Thanks, Is it just a matter of defining the mode to use for some new source? For plantuml I have the following: (org-babel-do-load-languages (quote org-babel-load-languages) (quote ((emacs-lisp . t) (dot . t) (ditaa . t) (R . t) (python . t) (ruby . t) (gnuplot . t) (clojure . t) (sh . t) (ledger . t) (org . t) (plantuml . t) (latex . t (add-to-list 'org-src-lang-modes (quote (plantuml . fundamental))) This enables fundamental-mode when I C-c ' on a plantuml block #+begin_src plantuml :file foo.png #+end_src Hey Bernt, there is a plantuml-mode. Just google it. ;) Does that help? Regards, Bernt
[O] [beamer] source code in two column
I use org to make presentations for C class. Sometimes the code is quite long. And I want to arrange it in two column so that it will be presented in one slide. I wonder how to do it easily using org-export. My current setting just hides the code that beyond the page in one column. Best regards, zwz
Re: [O] [beamer] source code in two column
Eric S Fraga e.fr...@ucl.ac.uk writes: zwz zhangwe...@gmail.com writes: I use org to make presentations for C class. Sometimes the code is quite long. And I want to arrange it in two column so that it will be presented in one slide. I wonder how to do it easily using org-export. My current setting just hides the code that beyond the page in one column. Best regards, zwz I cannot help you directly in that I don't know how to /flow/ text (or code) from one column to the next. I don't think it is actually possible in beamer. However, it *is* straightforward to flow text from one slide to the next by simply adding =allowframebreaks= to the beamer environment arguments. For instance, #+begin_src org *** Code example :PROPERTIES: :BEAMER_envargs: [allowframebreaks] :END: #+LATEX: {\scriptsize #+begin_example code goes here #+end_example #+LATEX: } #+end_src The slides will automatically be numbered using roman numerals should more than one slide (aka frame in beamer speak) be required. I use latex directives to make the font a little smaller to ensure that lines with within the slide width-wise. HTH, eric It is a nice workaround. But here in my org file, I have to put the allowframebreaks in level two headlines (probably because of my setting #+BEAMER_FRAME_LEVEL: 2), otherwise it does not take effect.
Re: [O] HTML5 presentations
Eric Schulte schulte.e...@gmail.com writes: Matt Price mopto...@gmail.com writes: On Wed, Aug 24, 2011 at 8:14 AM, zwz zhangwe...@gmail.com wrote: Those days I came across two tools which I thought interesting and helpful if could be combined with org-export in some way. 1. Deck.js: a js lib for making modern html presentation. See http://imakewebthings.github.com/deck.js/#intro for more info. I would really like to see an exporter for this, in part because Drupal integration for deck.js is underway. Having just walked through the introduction I will say that deck appears to be the most polished of the html presentation engines I have yet seen. It would be nice to see some support for fitting html exported from Org into deck. Yes, that is why I mention it here even though there have been several html exporters already. HTML5+CSS3+JS really make deck cool.
[O] two tools may be useful for org-export
Those days I came across two tools which I thought interesting and helpful if could be combined with org-export in some way. 1. Deck.js: a js lib for making modern html presentation. See http://imakewebthings.github.com/deck.js/#intro for more info. 2. Tralics: a LaTeX to XML translator, http://www-sop.inria.fr/apics/tralics/
Re: [O] [beamer] blank outline slide?
Eric S Fraga e.fr...@ucl.ac.uk writes: zwz zhangwe...@gmail.com writes: [...] And here is Here is does_not_work.org (which result in a blank outline slide): --8-8-- #+startup: beamer #+LaTeX_CLASS: beamer #+LaTeX_CLASS_OPTIONS: [presentation] #+BEAMER_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default} #+BEAMER_FRAME_LEVEL: 2 #+COLUMNS: %40ITEM %10BEAMER_env(Env) %9BEAMER_envargs(Env Args) %4BEAMER_col(Col) %10BEAMER_extra(Extra) #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t :t * item1 ** aaa *** bbb 123 * item2 ** ccc *** ddd 123 --8-8-- Well, this one works for me just fine. The outline slide has both item1 and item2 on it. My setting for org-latex-to-pdf-process is (pdflatex -interaction nonstopmode -output-directory %o %f pdflatex -interaction nonstopmode -output-directory %o %f pdflatex -interaction nonstopmode -output-directory %o %f) Which looks just fine. Can you export the above org file to latex and send that? You might like to look at the log file generated by pdflatex just in case there is some strange error message. You may need to change =org-export-pdf-remove-logfiles= to nil to have these files left behind after exporting. I found the problem. In fact I forgot there's a hook (add-hook 'org-mode-hook (lambda () (org-set-local 'yas/trigger-key [tab]) (define-key yas/keymap [tab] 'yas/next-field) (if (member XeTeX org-todo-keywords-1) (setq org-latex-to-pdf-process '(xelatex -interaction nonstopmode -output-directory %o %f) As org-latex-to-pdf-process is not a buffer-local variable, the value is changed after the first exporting. Now to get the outline slide, I just (setq org-latex-to-pdf-process '(xelatex -interaction nonstopmode -output-directory %o %f xelatex -interaction nonstopmode -output-directory %o %f))
Re: [O] [beamer] blank outline slide?
Eric S Fraga e.fr...@ucl.ac.uk writes: zwz zhangwe...@gmail.com writes: In a org file, I have * item1 ** aaa *** bbb 123 * item2 ** ccc *** ddd 123 The generated slides have just a blank outline page. However, if I modify the org content as * item1 ** aaa *** bbb * item2 ** ccc *** ddd The outline page contains item1 and item2, just as expected. here is my settings: #+startup: beamer #+LaTeX_CLASS: beamer #+LaTeX_CLASS_OPTIONS: [presentation] #+BEAMER_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default} #+BEAMER_FRAME_LEVEL: 2 #+COLUMNS: %40ITEM %10BEAMER_env(Env) %9BEAMER_envargs(Env Args) %4BEAMER_col(Col) %10BEAMER_extra(Extra) #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t :t Is there anything wrong with my settings or is it a bug? I think you may need to be a bit more specific. Can you attach an org file which demonstrates the problem? However, as a stab in the dark, latex will need to be run more than once on the same input in order to pick up the section headings generated in the first run. What is the setting for org-latex-to-pdf-process? OK. Here is works.org (which is all right with the outline slide): --8-8-- #+startup: beamer #+LaTeX_CLASS: beamer #+LaTeX_CLASS_OPTIONS: [presentation] #+BEAMER_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default} #+BEAMER_FRAME_LEVEL: 2 #+COLUMNS: %40ITEM %10BEAMER_env(Env) %9BEAMER_envargs(Env Args) %4BEAMER_col(Col) %10BEAMER_extra(Extra) #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t :t * item1 ** aaa *** bbb * item2 ** ccc *** ddd --8-8-- And here is Here is does_not_work.org (which result in a blank outline slide): --8-8-- #+startup: beamer #+LaTeX_CLASS: beamer #+LaTeX_CLASS_OPTIONS: [presentation] #+BEAMER_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default} #+BEAMER_FRAME_LEVEL: 2 #+COLUMNS: %40ITEM %10BEAMER_env(Env) %9BEAMER_envargs(Env Args) %4BEAMER_col(Col) %10BEAMER_extra(Extra) #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t :t * item1 ** aaa *** bbb 123 * item2 ** ccc *** ddd 123 --8-8-- My setting for org-latex-to-pdf-process is (pdflatex -interaction nonstopmode -output-directory %o %f pdflatex -interaction nonstopmode -output-directory %o %f pdflatex -interaction nonstopmode -output-directory %o %f)
[O] [beamer] a bug in exporting
In a org file I have * what is x? #+BEGIN_SRC c char (*(*x())[])(); #+END_SRC \pause char \fbox{\fbox{(*\fbox{\fbox{(*\fbox{x()})}[]})}()}; The latex generated for the last line turned out to be char \fbox\{\fbox\{(*\fbox{\fbox{(*\fbox{x()})}[]})\}()\}; which is not expected. Is it a bug? I am using Emacs 23.3.1 and org 7.4, by the way.
[Orgmode] Re: [babel] Enabling language mode for plantuml?
Rainer M Krug r.m.k...@gmail.com writes: On 12/03/2010 12:31 PM, zwz wrote: Rainer M Krug r.m.k...@gmail.com writes: Hi I would like to be able to edit code blocks of plantuml via C-', but I get the message No such language mode: plantuml-mode Is there an easy way of defining this new language mode, so that I can edit it via C-'? I don't need syntax highlighting at the moment, although ' as the comment character would be nice. Thanks, Rainer Hi, Rainer I wrote a plantuml-mode, which is now not perfect but usable. It is available on: http://zhangweize.wordpress.com/2010/09/20/update-plantuml-mode/ Just copy the code and save it as plantuml-mode.el in a path where emacs finds its libraries. Just a quick question: whenever I add the line #+begin_src emacs-lisp (load-file ~/.emacs.d/site-lisp/plantuml-mode.el) #+end_src to load the plantuml-mode into my emacs.org file, the message window opens when starting emacs --- when I comment it out, it doesn't. Am I doing something wrong here? Rainer try (require 'plantuml-mode) btw, you should have the latest plantuml.jar ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [babel] Enabling language mode for plantuml?
No, but I am considering to make a repository on github for all my emacs-stuff. I will inform you when it is done :) Rainer M Krug r.m.k...@gmail.com writes: Hi zwz That looks great. Do you have a repository, where I could check for updates? Rainer On Fri, Dec 3, 2010 at 12:31 PM, zwz zhangwe...@gmail.com wrote: Rainer M Krug r.m.k...@gmail.com writes: Hi I would like to be able to edit code blocks of plantuml via C-', but I get the message No such language mode: plantuml-mode Is there an easy way of defining this new language mode, so that I can edit it via C-'? I don't need syntax highlighting at the moment, although ' as the comment character would be nice. Thanks, Rainer Hi, Rainer I wrote a plantuml-mode, which is now not perfect but usable. It is available on: http://zhangweize.wordpress.com/2010/09/20/update-plantuml-mode/ Just copy the code and save it as plantuml-mode.el in a path where emacs finds its libraries. Best regards, zwz ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [babel] Enabling language mode for plantuml?
Rainer M Krug r.m.k...@gmail.com writes: Hi I would like to be able to edit code blocks of plantuml via C-', but I get the message No such language mode: plantuml-mode Is there an easy way of defining this new language mode, so that I can edit it via C-'? I don't need syntax highlighting at the moment, although ' as the comment character would be nice. Thanks, Rainer Hi, Rainer I wrote a plantuml-mode, which is now not perfect but usable. It is available on: http://zhangweize.wordpress.com/2010/09/20/update-plantuml-mode/ Just copy the code and save it as plantuml-mode.el in a path where emacs finds its libraries. Best regards, zwz ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: How to export =\'= as a table entry in latex
Carsten Dominik carsten.domi...@gmail.com writes: On Sep 19, 2010, at 4:29 PM, zwz wrote: Those days when I was preparing a presentation about the special chars that starts with a =\= in C programming language, I made such a table | \' | signle quote | | \ | double quote | It did not work after I hit C-c C-e p. So I modified it as | =\'= | signle quote | | =\= | double quote | Still it did not produce the right thing. This was at first puzzling, because you did exactly the right thing. The reason why it is not working is that quotes cannot be last in an emphasis string. I do not remember the reason for this I am sure there was one at some point. What you can do is this: Customize the variable org-emphasis-regexp- components and remove \ and ' from the third element in that variable. The your second version above should work. - Carsten Thanks for your instructions. And yes, it puzzled me a lot. Maybe there should be an easier workaround, e.g. by #+OPTIONS. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [beamer] export a long source block as in several frames
Now I am preparing a presentation using the beamer feature supported by org-mode. When exporting, I want some long source code (more than one frame can contain) to be arranged in several frames rather than partially invisible. I know there's once a discussion on the support of the frame option allowframebreaks, but I am thinking would it be good to add the option by default when exporting for the frame that contains some source code? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] How to export =\'= as a table entry in latex
Those days when I was preparing a presentation about the special chars that starts with a =\= in C programming language, I made such a table | \' | signle quote | | \ | double quote | It did not work after I hit C-c C-e p. So I modified it as | =\'= | signle quote | | =\= | double quote | Still it did not produce the right thing. Does anyone have a workaround? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [babel] support plantuml
Eric Schulte schulte.e...@gmail.com writes: zwz zhangwe...@gmail.com writes: Eric Schulte schulte.e...@gmail.com writes: Hi, I agree plantuml certainly makes sense as a new code block type. I'd like to include your ob-plantuml.el file into Org-mode/Babel, would you be willing to complete the FSF assignment process for contributing to Org-mode as described at http://orgmode.org/worg/org-contribute.php? Thanks! -- Eric Yes, I am glad to. And I just fill the form and send it. Great! Please do send in the form and then keep me and Carsten posted of the progress of your FSF assignment so that we can add you to the Org-mode contributors list when it's complete. I've just added ob-plantuml.el to Org-mode and pushed it up to the git repository. It's now part of `org-babel-load-languages' so it can be activated just like any other language, the only other configuration required is to set the value of `org-plantuml-jar-path' to point to the plantuml.jar file. I just tried this out myself and it works wonderfully. Thanks! -- Eric Thank you, Eric. Org-babel is great. I use it a lot. And I am happy to give something back. :) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [babel] support plantuml
Mike Gauland mikely...@gmail.com writes: Mike Gauland mikelygee at gmail.com writes: I can get an image if I evaluate the block manually (e.g., via 'C-c C-c' with the cursor on the BEGIN block), but when I export the file the image is invalid. I figured it out. I was getting extra carriage returns in the file. I've fixed them by setting coding-system-for-write to 'no-conversion within the (let). --Mike I also encountered the same problem. But it seems not work perfectly by letting coding-system-for-write be 'no-conversion. For example: In my test.org * test #+BEGIN_SRC plantuml :file test.png Alice - Bob: Authentication Request Bob -- Alice: Authentication Response #+END_SRC #+BEGIN_SRC plantuml :file test2.png Alice2 - Bob: Authentication Request Bob -- Alice: Authentication Response #+END_SRC C-c C-c on the second src block does not create a right image. So here is a new version of ob-plantuml.el, which utilizes the io redirection in shell directly. Hope that it addresses the problem. ob-plantuml.el Description: application/emacs-lisp ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [babel] support plantuml
Eric Schulte schulte.e...@gmail.com writes: Hi, I agree plantuml certainly makes sense as a new code block type. I'd like to include your ob-plantuml.el file into Org-mode/Babel, would you be willing to complete the FSF assignment process for contributing to Org-mode as described at http://orgmode.org/worg/org-contribute.php? Thanks! -- Eric Yes, I am glad to. And I just fill the form and send it. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [babel] support plantuml
I came across Ian Yang's [[http://www.emacswiki.org/emacs/org-export-blocks-format-plantuml.el][org-export-blocks-format-plantuml]] a few days ago, which brought me in front of the great software [[http://plantuml.sourceforge.net/][Plantuml]]. It is an open-source tool in java that allows to quickly write: - sequence diagram, - use case diagram, - class diagram, - activity diagram, - component diagram, - state diagram - object diagram using a simple and intuitive language. Although Ian Yang's code has incorporated plantuml in org-mode by =#+BEGIN_UML= and =#+END_UML=, I think it should be a good idea to introduce the plantuml as a new language into org-babel. Here is the ob-plantuml.el: ob-plantuml.el Description: application/emacs-lisp I am not sure if it is qualified to be part of org-babel, so I just put it here first. In addition, I also wrote a new major mode “plantuml-mode.el” which provides preliminary font-lock function for plantuml scripts, see http://zhangweize.wordpress.com/. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] is it a bug in org-capture
Hi, all I have a item of type table-line in org-capture-templates like (t test table-line (file test.org) | %i%? | %U | :prepend t) When I hit C-c c t, and then C-c C-k immediately, the file test.org is still modified with an new blank row inserted in the table, which is out of expectation, since C-c C-k is known as abort capture. The minibuffer says org-capture-finalize: Capture process aborted, but target buffer could not be cleaned up correctly. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-feed not working for codeproject
David Maus dm...@ictsoc.de writes: zwz wrote: I have the feed (codeproject http://www.codeproject.com/webservices/articlerss.aspx?cat=2; ~/feeds.org C++ on CodeProject) in the org-feed-alist. Everytime I update the feed, I got a new headline * codeproject added into the file feeds.org without any new items. I can reproduce this. Although I get the headline C++ on CodeProject but this one without entries. Going to look into this one. -- David Yes, you are right. The new added headline is C++ on CodeProject. :) And if you try org-feed-update again, a new headline C++ on CodeProject is added again without any entries. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: add a table entry by org-remember template
Matt Lundin m...@imapmail.org writes: zwz zhangwe...@gmail.com writes: Matt Lundin m...@imapmail.org writes: zwz zhangwe...@gmail.com writes: AFAIK, it is now impossible to add a table entry by org-template. But I think it is very useful. For example, in my private.org, there is a section * Contacts | name | tel. | email | addr | |--+--+-+---| | A| 12 | a...@a.com | somewhere | If it is feasible with such a template (Contact ?c | %^{Name} | %^{tel} | %^{email} | %^{addr} |\n ~/private.org Contacts) to add new contacts, it would be very nice to organize (e.g. sort) all the contacts based on org-table. One solution would be to use properties to store contact information: Yes, this is how I am doing now. I forgot the column view thing. :) BTW, how to sort the headings (names) by the properties? Typing C-c ^ r will prompt you for a property. If you are above the first headline, all first level headlines will be sorted. If you are on a headline, all subheadings will be sorted. and what is dblocks? Sorry for the shorthand. Dynamic blocks can be used to refresh dynamic information (such as a table generated from properties) within an org file. Are they mentioned in the manual? - (info (org) Dynamic blocks) - (info (org) Capturing column view) Best, Matt Thank you, Matt. I have never tried dblocks before. But it is interesting. I will learn to used it. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-feed not working for codeproject
I have the feed (codeproject http://www.codeproject.com/webservices/articlerss.aspx?cat=2; ~/feeds.org C++ on CodeProject) in the org-feed-alist. Everytime I update the feed, I got a new headline * codeproject added into the file feeds.org without any new items. It is weird and I do not know why. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] add a table entry by org-remember template
AFAIK, it is now impossible to add a table entry by org-template. But I think it is very useful. For example, in my private.org, there is a section * Contacts | name | tel. | email | addr | |--+--+-+---| | A| 12 | a...@a.com | somewhere | If it is feasible with such a template (Contact ?c | %^{Name} | %^{tel} | %^{email} | %^{addr} |\n ~/private.org Contacts) to add new contacts, it would be very nice to organize (e.g. sort) all the contacts based on org-table. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: add a table entry by org-remember template
Matt Lundin m...@imapmail.org writes: zwz zhangwe...@gmail.com writes: AFAIK, it is now impossible to add a table entry by org-template. But I think it is very useful. For example, in my private.org, there is a section * Contacts | name | tel. | email | addr | |--+--+-+---| | A| 12 | a...@a.com | somewhere | If it is feasible with such a template (Contact ?c | %^{Name} | %^{tel} | %^{email} | %^{addr} |\n ~/private.org Contacts) to add new contacts, it would be very nice to organize (e.g. sort) all the contacts based on org-table. One solution would be to use properties to store contact information: * Name :PROPERTIES: :NAME: A :TEL: 12 :EMAIL:a...@a.com :ADDR: somewhere :END: It would be easy to set up a remember template to capture such information. You could then sort all the headings in the contacts file by property. And there are other advantages. You could view the information in contact view or capture it (or a subset) in tables using dblocks. You could add notes and additional metadata to each contact. And you could access this data in other emacs modes by using org's APIs. - (info (org) Using the property API) - (info (org) Using the mapping API) HTH, Matt Yes, this is how I am doing now. I forgot the column view thing. :) BTW, how to sort the headings (names) by the properties? and what is dblocks? Are they mentioned in the manual? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-feed and http_proxy
Now and then I have to set http_proxy for internet access. I do it in emacs, e.g. by (setenv http_proxy http://10.10.10.10:808;) Ok, now org-feed will use this proxy and works great. Later, I find the proxy is down, so I switch to another proxy (setenv http_proxy http://10.10.10.20:808;) and then M-x org-feed-update-all, the message shows that org-feed is still using the old proxy http://10.10.10.10:808; I don't know if it is related to org-feed, hope someone has the answer. By the way, I can not get the feeds from codeproject. My setting: (codeproject http://www.codeproject.com/webservices/articlerss.aspx?cat=2; ~/.org/feeds.org C++ on CodeProject :parse-feed org-feed-parse-atom-feed :parse-entry org-feed-parse-atom-entry) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-feed and http_proxy
Magnus Henoch magnus.hen...@gmail.com writes: zwz zhangwe...@gmail.com writes: By the way, I can not get the feeds from codeproject. My setting: (codeproject http://www.codeproject.com/webservices/articlerss.aspx?cat=2; ~/.org/feeds.org C++ on CodeProject :parse-feed org-feed-parse-atom-feed :parse-entry org-feed-parse-atom-entry) When I open that URL in Firefox and view the source, it turns out to be an RSS file. So just remove the :parse-feed and :parse-entry items; the default is to parse the file as an RSS file. Ooooh, my fault ;) Thanks! ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-feed and http_proxy
Carsten Dominik carsten.domi...@gmail.com writes: On Apr 9, 2010, at 2:44 PM, zwz wrote: Now and then I have to set http_proxy for internet access. I do it in emacs, e.g. by (setenv http_proxy http://10.10.10.10:808;) Ok, now org-feed will use this proxy and works great. Later, I find the proxy is down, so I switch to another proxy (setenv http_proxy http://10.10.10.20:808;) and then M-x org-feed-update-all, the message shows that org-feed is still using the old proxy http://10.10.10.10:808; I don't know if it is related to org-feed, hope someone has the answer. Org-mode is using url-retrieve-synchonously, so this must be a cacheing issue in the url package. One thing you might try is to use curl or wget instead - see the variable `org-feed-retrieve-method'. I do not know there is such a variable is it introduced in 6.35? I will try out the latest version. Thanks! By the way, I can not get the feeds from codeproject. My setting: (codeproject http://www.codeproject.com/webservices/articlerss.aspx?cat=2; ~/.org/feeds.org C++ on CodeProject :parse-feed org-feed-parse-atom-feed :parse-entry org-feed- parse-atom-entry) This is an atom feed, and I did not write that part. magnus.hen...@gmail.com did, maybe ask him? - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [feature request] use relative path in the file set by org-agenda-files
The variable org-agenda-files can be a list of file names or a single file name. I prefer the latter, since it is much easier to maintain one ordinary file without modifying the .emacs. So in my .emacs I just use: (setq org-agenda-files (expand-file-name agenda org-directory)) However, it seems that only absolute path works in that agenda file, e.g. - in /path/to/org-directory/agenda: /path/to/org-directory/home.org /path/to/org-directory/lab.org - Here I hope that I can use ./home.org and ./lab.org instead, so that when I copy the /path/to/org-directory/ to another place, I do not have to modify the agenda file at all. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: a bug @ remember template
Carsten Dominik carsten.dominik at gmail.com writes: On Jan 31, 2010, at 5:00 PM, zwz wrote: I use org-remember for my contact records. This is a template in org-remember-templates (Contact ?c * %^{Name} \n%[~/.contact]\n contact.org Contacts) the content of the file ~/.contact: :PROPERTIES: :Mobile: %^{mobile} :Email: :Added: %u :END: I found that the prompt %^{mobile} works, but *the inactive time stamp %u does not.* It is not replaced. I guess it is a bug. Maybe not a bug - this simplt depends on the sequence in which % escapes are expanded in the template. Yes, it indeed depend on the expanding-order. Yesterday, I tried a workaround. I moved :Added: %u \n :END: from ~/.contact to ~/.emacs, which makes the new template in org-remember-templates as (Contact ?c * %^{Name} \n%[~/.contact] :Added: %u \n :END: contact.org Contacts) But then I found that the content of the file ~/.contact was not inserted at all. *Maybe this is a bug.* I added \n before :Added:: (Contact ?c * %^{Name} \n%[~/.contact]\n :Added: %u \n :END: contact.org Contacts) then it did the work, but the result was not perfect. However, I can see that it could be nice to define the templates in a separate file like you do - so I have changed the sequence now. File insertion happens first, so that this should now work (untested). HTH - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode at gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode at gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] a bug @ remember template
I use org-remember for my contact records. This is a template in org-remember-templates (Contact ?c * %^{Name} \n%[~/.contact]\n contact.org Contacts) the content of the file ~/.contact: :PROPERTIES: :Mobile: %^{mobile} :Email: :Added: %u :END: I found that the prompt %^{mobile} works, but *the inactive time stamp %u does not.* It is not replaced. I guess it is a bug. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] How to do this by MACRO? (feature request)
I want to insert a series of images in the org file. The images are located in a directory, with names in such a pattern cat-N0.png, where N is a number. The direct and compact macro is something like this: #+MACRO: cat-imgs /path/to/cat-${1}0.png Here the {} is used to separate the placeholder from the zeros, which in fact is not supported in current version. I know that I can use #+MACRO: cat-imgs2 /path/to/cat-$1.png but it is a little tedious when I use it. I also tried to define a null macro first, which was then used as a separator separating the placeholder from the zeros. But it fails. #+MACRO null #+MACRO: cat-imgs /path/to/cat-$1{{{null}}}0.png I wonder if there is a feasible way. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] feature request: transpose a table
Hi, I do not know if I can do org-plot on rows instead of columns. But today after I finished a table, I found I have to transpose the table by hand so that I can plot it as I want. Here is original table: | x | y | x | y | ... | |-++++-| | 1 | 2 | 3 | 4 | | | 5 | 6 | 7 | 8 | | | 9 | 0 | 1 | 2 | | | ... |||| | And I have to convert it into: | x | y | x | y | x | y | ... | |-+---+---+---+---+---+-| | 1 | 2 | 5 | 6 | 9 | 0 | | | 3 | 4 | 7 | 8 | 1 | 2 | | | ... | | | | | | | so that every two columns stand for a line. I also wonder how do you guys draw multiple lines in one image, since here there are multiple inds. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] how do you compose mails in Gnus with org-mode
Hi, all Would you like to share your configuration of how to compose mails by org-mode. I start org-mode by M-x org-mode, and found it not appelling at all. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] 6.29c export latex bug?
Here is the content of my org file: * Test | | A | B | |-+---+---| | com | 1 | 2 | | org | 3 | 4 | Some math formulae: y = x_1^2 + x_2^2 y^2 = 2x^2 + 1 z_2 = x_1 + x_2 + 2 (y_1 + y_2 + r) Then I press C-c C-e l, I get the debug back-trace: Debugger entered--Lisp error: (wrong-type-argument arrayp nil) replace-regexp-in-string(|| | nil) org-export-latex-tables(t) org-export-latex-content(#(\n | | A | B |\n |-+---+---|\n | com | 1 | 2 |\n | org | 3 | 4 |\n\n Some math formulae:\n\n y = x_1^2 + x_2^2\n\n y^2 = 2x^2 + 1\n\n z_2 = x_1 + x_2 + 2 (y_1 + y_2 + r)\n\n\n 0 1 (fontified nil) 1 3 (fontified nil org-caption nil org-attributes nil org-label nil) 3 5 (fontified nil org-caption nil org-attributes nil org-label nil) 5 6 (fontified nil hilit-chg hilit-chg org-caption nil org-attributes nil org-label nil) 6 7 (fontified nil hilit-chg hilit-chg org-caption nil org-attributes nil org-label nil) 7 8 (fontified nil hilit-chg hilit-chg org-caption nil org-attributes nil org-label nil) 8 9 (fontified nil hilit-chg hilit-chg org-caption nil org-attributes nil org-label nil) 9 10 (fontified nil hilit-chg hilit-chg org-caption nil org-attributes nil org-label nil) 10 18 (fontified nil org-caption nil org-attributes nil org-label nil) 18 19 (fontified nil) 19 21 (fontified nil) 21 36 (fontified nil) 36 37 (fontified nil) 37 39 (fontified nil org-caption nil org-attributes nil org-label nil) 39 54 (fontified nil org-caption nil org-attributes nil org-label nil) 54 55 (fontified nil) 55 57 (fontified nil org-caption nil org-attributes nil org-label nil) 57 72 (fontified nil org-caption nil org-attributes nil org-label nil) 72 117 (fontified nil) 117 174 (fontified nil) 174 175 (fontified nil) 175 176 (fontified nil))) org-export-latex-subcontent(((pos . 2) (level . 1) (occur . 1) (heading . #( Test 1 2 ... 2 5 ...)) (content . #(\n | | A | B |\n |-+---+---|\n | com | 1 | 2 |\n | org | 3 | 4 |\n\n Some math formulae:\n\n y = x_1^2 + x_2^2\n\n y^2 = 2x^2 + 1\n\n z_2 = x_1 + x_2 + 2 (y_1 + y_2 + r)\n\n\n 0 1 ... 1 3 ... 3 5 ... 5 6 ... 6 7 ... 7 8 ... 8 9 ... 9 10 ... 10 18 ... 18 19 ... 19 21 ... 21 36 ... 36 37 ... 37 39 ... 39 54 ... 54 55 ... 55 57 ... 57 72 ... 72 117 ... 117 174 ... 174 175 ... 175 176 ...)) (subcontent)) t) #[(x) Â \ [x num org-export-latex-subcontent] 3](((pos . 2) (level . 1) (occur . 1) (heading . #( Test 1 2 ... 2 5 ...)) (content . #(\n | | A | B |\n |-+---+---|\n | com | 1 | 2 |\n | org | 3 | 4 |\n\n Some math formulae:\n\n y = x_1^2 + x_2^2\n\n y^2 = 2x^2 + 1\n\n z_2 = x_1 + x_2 + 2 (y_1 + y_2 + r)\n\n\n 0 1 ... 1 3 ... 3 5 ... 5 6 ... 6 7 ... 7 8 ... 8 9 ... 9 10 ... 10 18 ... 18 19 ... 19 21 ... 21 36 ... 36 37 ... 37 39 ... 39 54 ... 54 55 ... 55 57 ... 57 72 ... 72 117 ... 117 174 ... 174 175 ... 175 176 ...)) (subcontent))) mapc(#[(x) Â\ [x num org-export-latex-subcontent] 3] (((pos . 2) (level . 1) (occur . 1) (heading . #( Test 1 2 ... 2 5 ...)) (content . #(\n | | A | B |\n |-+---+---|\n | com | 1 | 2 |\n | org | 3 | 4 |\n\n Some math formulae:\n\n y = x_1^2 + x_2^2\n\n y^2 = 2x^2 + 1\n\n z_2 = x_1 + x_2 + 2 (y_1 + y_2 + r)\n\n\n 0 1 ... 1 3 ... 3 5 ... 5 6 ... 6 7 ... 7 8 ... 8 9 ... 9 10 ... 10 18 ... 18 19 ... 19 21 ... 21 36 ... 36 37 ... 37 39 ... 39 54 ... 54 55 ... 55 57 ... 57 72 ... 72 117 ... 117 174 ... 174 175 ... 175 176 ...)) (subcontent org-export-latex-subpos . 2) (level . 1) (occur . 1) (heading . #( Test 1 2 ... 2 5 ...)) (content . #(\n | | A | B |\n |-+---+---|\n | com | 1 | 2 |\n | org | 3 | 4 |\n\n Some math formulae:\n\n y = x_1^2 + x_2^2\n\n y^2 = 2x^2 + 1\n\n z_2 = x_1 + x_2 + 2 (y_1 + y_2 + r)\n\n\n 0 1 ... 1 3 ... 3 5 ... 5 6 ... 6 7 ... 7 8 ... 8 9 ... 9 10 ... 10 18 ... 18 19 ... 19 21 ... 21 36 ... 36 37 ... 37 39 ... 39 54 ... 54 55 ... 55 57 ... 57 72 ... 72 117 ... 117 174 ... 174 175 ... 175 176 ...)) (subcontent org-export-latex-global... ... ... ... ... ... org-export-as-latex(nil) call-interactively(org-export-as-latex) org-export(nil) call-interactively(org-export nil nil) ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: 6.29c export latex bug?
And as far as I have tested, I found that when there's a bland line or a headline right before the table, this error pops. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: How do you use org for other formats
Bernt Hansen be...@norang.ca writes: zwz zhangwe...@gmail.com writes: I recently found the problem when I want to export the org file to html and pdf. I guess there will be some people (who are also not so familiar with the powerful org-mode) bothered by the same issue, that is, html and pdf requires different org format sometimes. - I use $ y = x_1^2 + x_2^2 $ in org, it works for pdf, but not for html - _ in text will introduce mess in pdf, not in html I definitely want to keep only one org which I can export to other formats correctly. I do not know if it is already implemented in org-mode. I just wondered if it is possible to introduce a abstract level (or notations) so that org can translate it according to the target format, just like how org treat the headlines (*). The following test file works fine for me as far as I can tell ,[ x.org ] | #+TITLE: x.org | #+AUTHOR:Bernt Hansen | #+EMAIL: be...@norang.ca | #+DATE: 2009-07-30 Thu | #+DESCRIPTION: | #+KEYWORDS: | #+LANGUAGE: en | #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :t | #+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil tags:not-in-toc | #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js | #+EXPORT_SELECT_TAGS: export | #+EXPORT_EXCLUDE_TAGS: noexport | #+LINK_UP: | #+LINK_HOME: | | * Test | | Some math formulae: | | y = x_1^2 + x_2^2 | | y^2 = 2x^2 + 1 | | z_2 = x_1 + x_2 + 2 (y_1 + y_2 + r) ` This renders HTML (C-c C-e b) [*1*] and PDF (C-c C-e d) [*2*] that look fine to me -Bernt [*1*] http://www.norang.ca/tmp/x.html [*2*] http://www.norang.ca/tmp/x.pdf Wow, so many options I have not used before ... I copied the text, but the exported HTML and PDF looks the same as the formula in ORG. Then I found it was because in my .emacs, there is (setq org-export-with-sub-superscripts nil) After I comment this, it works. But in this way, I have to pay special attention to sub- and super- scripts. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] How do you use org for other formats
Hi, I recently found the problem when I want to export the org file to html and pdf. I guess there will be some people (who are also not so familiar with the powerful org-mode) bothered by the same issue, that is, html and pdf requires different org format sometimes. - I use $ y = x_1^2 + x_2^2 $ in org, it works for pdf, but not for html - _ in text will introduce mess in pdf, not in html I definitely want to keep only one org which I can export to other formats correctly. I do not know if it is already implemented in org-mode. I just wondered if it is possible to introduce a abstract level (or notations) so that org can translate it according to the target format, just like how org treat the headlines (*). ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] One unified .org to .html and .tex
I like org-mode. I use it for taking notes and writing papers. One problem pops up when I try to export one org file, which contains some maths, to multiple formats, specifically html and tex. For tex, it is required to enclose the maths by $/$$; For html, there is no need to use $/$$. I just wondered if there is an unified way to generate those different formats with one org file which still has good readability. I guess there should be such a way. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode