[Orgmode] How to export =\'= as a table entry in latex

2010-09-19 Thread zwz
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 | St

[Orgmode] Re: How to export =\'= as a table entry in latex

2010-09-29 Thread zwz
Carsten Dominik 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 | >> | \"

[Orgmode] [beamer] export a long source block as in several frames

2010-09-29 Thread zwz
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 al

[Orgmode] Re: [babel] Enabling language mode for plantuml?

2010-12-03 Thread zwz
de/ 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: [babel] Enabling language mode for plantuml?

2010-12-04 Thread zwz
Rainer M Krug writes: > On 12/03/2010 12:31 PM, zwz wrote: >> Rainer M Krug 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: plan

[Orgmode] Re: [babel] Enabling language mode for plantuml?

2010-12-04 Thread zwz
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 writes: > Hi zwz > > That looks great. Do you have a repository, where I could check for > updates? > > Rainer > > On Fri, Dec 3, 2010

[Orgmode] How to do this by MACRO? (feature request)

2009-10-29 Thread zwz
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 pla

[Orgmode] a bug @ remember template

2010-01-31 Thread zwz
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}" work

[Orgmode] Re: a bug @ remember template

2010-02-01 Thread zwz
Carsten Dominik 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"

[Orgmode] [feature request] use relative path in the file set by org-agenda-files

2010-03-23 Thread zwz
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 s

[Orgmode] org-feed and http_proxy

2010-04-09 Thread zwz
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";

[Orgmode] Re: org-feed and http_proxy

2010-04-09 Thread zwz
Magnus Henoch writes: > zwz 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&

[Orgmode] Re: org-feed and http_proxy

2010-04-09 Thread zwz
Carsten Dominik 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-fee

[Orgmode] add a table entry by org-remember template

2010-06-17 Thread zwz
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 fea

[Orgmode] Re: add a table entry by org-remember template

2010-06-17 Thread zwz
Matt Lundin writes: > zwz 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

[Orgmode] Re: add a table entry by org-remember template

2010-06-18 Thread zwz
Matt Lundin writes: > zwz writes: > >> Matt Lundin writes: >> >>> zwz 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

[Orgmode] org-feed not working for codeproject

2010-06-18 Thread zwz
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

[Orgmode] Re: org-feed not working for codeproject

2010-06-19 Thread zwz
David Maus 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. > >>

[Orgmode] is it a bug in org-capture

2010-07-30 Thread zwz
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

[Orgmode] [babel] support plantuml

2010-08-25 Thread zwz
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 qui

[Orgmode] Re: [babel] support plantuml

2010-08-26 Thread zwz
Mike Gauland writes: > Mike Gauland 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 f

[Orgmode] Re: [babel] support plantuml

2010-08-26 Thread zwz
"Eric Schulte" 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/w

[Orgmode] Re: [babel] support plantuml

2010-08-27 Thread zwz
"Eric Schulte" writes: > zwz writes: > >> "Eric Schulte" 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-mo

[O] two tools may be useful for org-export

2011-08-24 Thread zwz
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://

Re: [O] HTML5 presentations

2011-08-26 Thread zwz
Eric Schulte writes: > Matt Price writes: > >> On Wed, Aug 24, 2011 at 8:14 AM, zwz 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

[O] [beamer] source code in two column

2011-09-22 Thread zwz
, zwz

Re: [O] [beamer] source code in two column

2011-09-22 Thread zwz
Eric S Fraga writes: > zwz 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-ex

Re: [O] Using org-babel in other modes?

2011-10-10 Thread zwz
Bernt Hansen writes: > Dave Abrahams 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 o

[O] BUG: footnote conflicts with code export to pdf

2011-10-22 Thread zwz
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-pr

Re: [O] BUG: footnote conflicts with code export to pdf

2011-10-23 Thread zwz
Nick Dokos writes: > zwz 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_SR

Re: [O] BUG: footnote conflicts with code export to pdf

2011-10-25 Thread zwz
Nick Dokos writes: > zwz wrote: > > >> >> Then you modify it: >> >> #+begin_src org >> >> * test >> >> #+BEGIN_SRC c >> >> void main(){ >> >> int a[5]; >> >> } >> >> #+END_

[O] [beamer] Can I just export one frame?

2011-11-20 Thread zwz
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] [beamer] Can I just export one frame?

2011-11-21 Thread zwz
Herbert Sitz writes: > zwz 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 > conven

[O] [beamer] a bug in exporting

2011-05-11 Thread zwz
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 b

Re: [O] [beamer] a bug in exporting

2011-05-12 Thread zwz
Eric S Fraga writes: > zwz writes: > >> 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

[O] [beamer] blank outline slide?

2011-05-12 Thread zwz
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

Re: [O] [beamer] blank outline slide?

2011-05-14 Thread zwz
Eric S Fraga writes: > zwz writes: > >> In a org file, I have >> >> * item1 >> ** aaa >> *** bbb >> 123 >> * item2 >> ** ccc >> *** ddd >> 123 >> >> The generated slides have just a blank outline page.

Re: [O] [beamer] blank outline slide?

2011-05-15 Thread zwz
Eric S Fraga writes: > zwz writes: > > [...] > >> >> And here is Here is "does_not_work.org" (which result in a blank > outline >> slide): >> --8<->8-- >> #+startup: beamer >> #+LaTeX_CLASS: beamer >>

[O] [feature request] set text color and size

2013-01-07 Thread zwz
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 popul

[Orgmode] One unified .org to .html and .tex

2009-07-29 Thread zwz
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

[Orgmode] How do you use org for other formats

2009-07-30 Thread zwz
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 $

[Orgmode] Re: How do you use org for other formats

2009-07-31 Thread zwz
Bernt Hansen writes: > zwz 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

[Orgmode] 6.29c export latex bug?

2009-08-10 Thread zwz
Here is the content of my org file: > > > > * Test> > | | A | B | > > |-+---+---| > > | com | 1 | 2 | > > | org | 3 | 4 | > >

[Orgmode] Re: 6.29c export latex bug?

2009-08-10 Thread zwz
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/

[Orgmode] how do you compose mails in Gnus with org-mode

2009-08-25 Thread zwz
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-or

[Orgmode] feature request: transpose a table

2009-09-10 Thread zwz
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

[O] About indentation when the src block is under a list

2013-04-28 Thread zwz
--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(; i - test The indentation of the src block is OK, but it is re

Re: [O] About indentation when the src block is under a list

2013-04-30 Thread zwz
Thanks! :) Charles Berry writes: > zwz gmail.com> writes: > > >> Here is an example: >> >> * array >> ** search >>- example >> #+BEGIN_SRC c >> /* find score in scores >>,* return the index if found or -1 */ >&

[O] export latex in a table

2013-09-21 Thread zwz
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,

Re: [O] export latex in a table

2013-09-21 Thread zwz
Rasmus gmx.us> writes: > > zwz 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\

Re: [O] export latex in a table

2013-09-21 Thread zwz
Nicolas Goaziou gmail.com> writes: > > Hello, > > You can also use an export snippet: > > | latex:\textcolor{blue}{0\sim2^{8}-1} | > > Regards, > Yes, it works. Thanks.

Re: [O] Change Todo colors

2014-02-28 Thread zwz
You should use "custom-set-faces" instead of "setq". Chris Henderson 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

[O] Babel should not work in the subtree marked as not exported

2014-03-11 Thread zwz
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

[O] org-edit-special cannot tell ditaa from table

2014-03-11 Thread zwz
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] org-edit-special cannot tell ditaa from table

2014-03-12 Thread zwz
Thomas Holst writes: > Hi, > > zwz wrote: > >> Here is an example: >> >> * test >> #+BEGIN_SRC ditaa >> ++ +-+ >> || | | >> || | | >> ++ +-+ >> #+END_SRC >> When I hit C-c '

Re: [O] org-edit-special cannot tell ditaa from table

2014-03-12 Thread zwz
Thomas Holst writes: > Hi, > > zwz wrote: > >> Here is an example: >> >> * test >> #+BEGIN_SRC ditaa >> ++ +-+ >> || | | >> || | | >> ++ +-+ >> #+END_SRC >> When I hit C-c '

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-12 Thread zwz
Sebastien Vauban writes: > Rainer M Krug wrote: >> Ken Mankoff writes: >>> On 2014-03-11 at 08:47, zwz wrote: >>>> In my setup, there is >>>> (setq org-export-exclude-tags '("private" "exclude") >>>> >>>

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-12 Thread zwz
Ken Mankoff writes: > Hi Andreas, > > On 2014-03-11 at 09:41, Andreas Leha wrote: >> Hi Ken, >> >> Ken Mankoff writes: >> >>> On 2014-03-11 at 08:47, zwz wrote: >>>> In my setup, there is >>>> (setq org-export-exclude-tags &#x

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-12 Thread zwz
Rainer M Krug writes: > Ken Mankoff 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: >>> >>

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-14 Thread zwz
Samuel Wales 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 n

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-15 Thread zwz
Eric Schulte 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 treat

[O] org-todo-keywords-1 detection in asyn export

2014-03-31 Thread zwz
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

Re: [O] org-todo-keywords-1 detection in asyn export

2014-04-17 Thread zwz
Bastien writes: > zwz 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 ex

Re: [O] org-todo-keywords-1 detection in asyn export

2014-04-18 Thread zwz
Nicolas Goaziou writes: > Hello, > > zwz 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) > >

Re: [O] org-todo-keywords-1 detection in asyn export

2014-04-19 Thread zwz
Nicolas Goaziou writes: > zwz 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) &g