Re: [O] Slow usage of capture templates
Thanks Fabrice! I will continue to evaluate the WSL as I now have it installed and it seems to work. I think my strategy will be to try both the native windows version and the Ubuntu version of my key applications and just see which one works best for me. I installed XMing for X server and it seems to work well. BR / Johan On Mon, Aug 7, 2017 at 10:00 AM, Fabrice Popineau < fabrice.popin...@supelec.fr> wrote: > > > 2017-08-03 0:12 GMT+02:00 Tim Cross: > >> Probably no real help, but win10 is (or soon will be) bundling in bash >> shell, which may address many of the reasons to use Cygwin. From posts >> I've seen on a number of lists, I would not be surprised to see cygwin >> slowly decline into obscurity. I see little interest in the emacs devel >> list for cygwin since the native windows version has matured (and it has >> been suggested, is the largest emacs user base). >> >> I am a Windows user (very long time) and Cygwin has never been an option > to me. > Native Emacs works pretty well under Windows. > There is only one drawback: it is slow (slower than linux) at running > external processes and some emacs packages do that pretty heavily > (ivy/counsel, flycheck). > I have seen reports of slower startup times with the native Windows emacs > than with Linux, however I have not > been able to reproduce them (for example using helm default config or > spacemacs config). > > Depending on wheter you use a 32 bits emacs or a 64 bits emacs, you may > want to add > 32 bits Gnu utilities (https://sourceforge.net/projects/ezwinports/files/) > or 64 bits Gnu utilities (http://www.msys2.org/, provides a much better > environment than Cygwin in my opinion) > > Or you may want to try the new WSL (Windows Subsystem for Linux, as > described by Tim) > which provides a full Ubuntu distribution without the penalty for running > external processes, > and without the penalty of running a VM. > WSL is pretty impressive and emacs works pretty well once you get a good X > server (like MobaXTerm). > > Fabrice >
Re: [O] Slow usage of capture templates
Thanks Tim! I didn't know about this. Ive installed it and it seems to work very nice! I will continue to test it and maybe scrap both vmware (been using for 10+ years) and cygwin. Thanks alot! Johan On Thu, Aug 3, 2017 at 12:12 AM, Tim Cross <theophil...@gmail.com> wrote: > > Probably no real help, but win10 is (or soon will be) bundling in bash > shell, which may address many of the reasons to use Cygwin. From posts > I've seen on a number of lists, I would not be surprised to see cygwin > slowly decline into obscurity. I see little interest in the emacs devel > list for cygwin since the native windows version has matured (and it has > been suggested, is the largest emacs user base). > > Having bash, a native emacs and even a 'better' system shell in > powershell (better than bat scripts and VB that is), at some point, you > will likely have to switch and I can say, it is much less distasteful > than it was (I've been using Linux since 1993 and Emacs since 97 and am > also forced to run windows at work). > > Alternatively, do what I actually do - run vmware and Linux as a > virtual - technically, I'm running the work SOE and within policy! When > I absolutely have to do things in windows, I use native Emacs and a > small amount of powershell, but plan to use the bash shell once I find > time to sort it all out. > > Tim > > Johan Ekh writes: > > > Thanks Adam > > > > I've tried the native windows version and it does not have this problem. > > But I'm an old school Linux user that is forced to use windows at work. > > I've managed to set up Cygwin and it works quite well, in fact I think > > Emacs is working very well except for the issue in this post. Not slow. > > Thanks anyway. / Johan > > > > On Wed, Aug 2, 2017 at 12:55 PM, Adam Porter <a...@alphapapa.net> wrote: > > > >> This isn't much help, but the best suggestion I have is to try the > >> non-Cygwin, native Windows build. I use the Cygwin build myself, but it > >> is inherently slow compared to Linux builds for some reason. It takes > >> probably 10-20 times as long to startup, and everything I do it in it is > >> slow compared to in Linux. Maybe the native Windows build will perform > >> better. > >> > >> > >> > > > -- > Tim Cross >
Re: [O] Slow usage of capture templates
Thanks Adam I've tried the native windows version and it does not have this problem. But I'm an old school Linux user that is forced to use windows at work. I've managed to set up Cygwin and it works quite well, in fact I think Emacs is working very well except for the issue in this post. Not slow. Thanks anyway. / Johan On Wed, Aug 2, 2017 at 12:55 PM, Adam Porterwrote: > This isn't much help, but the best suggestion I have is to try the > non-Cygwin, native Windows build. I use the Cygwin build myself, but it > is inherently slow compared to Linux builds for some reason. It takes > probably 10-20 times as long to startup, and everything I do it in it is > slow compared to in Linux. Maybe the native Windows build will perform > better. > > >
Re: [O] Slow usage of capture templates
Hi again, I googled and found this. (setq x-select-enable-clipboard nil x-select-enable-primary t) It improves the situation but capture is still painfully slow. Any ideas? / Johan On Wed, Aug 2, 2017 at 9:10 AM, Johan Ekh <ekh.jo...@gmail.com> wrote: > Hi, thanks, > but I have 25.2.1 so that will not solve it for me. I'm using several > platforms, including Linux, Windows and Cygwin. Only seen this problem n > Cygwin, which of course is the platform I need to use at work... > > On Wed, Aug 2, 2017 at 8:51 AM, Nicolas Goaziou <m...@nicolasgoaziou.fr> > wrote: > >> Hello, >> >> Johan Ekh <ekh.jo...@gmail.com> writes: >> >> > Hi again, I tried with elp-instrument-package, see the results below. >> Seems >> > like function "org-get-x-clipboard" is taking a long time. CPU usage is >> > 100% for the process "emacs-X11" during this time. >> >> I also encountered this problem (even though I do not use Windows). It >> disappeared when I switched to Emacs 25.2. >> >> >> Regards, >> >> -- >> Nicolas Goaziou >> > >
Re: [O] Slow usage of capture templates
Hi, thanks, but I have 25.2.1 so that will not solve it for me. I'm using several platforms, including Linux, Windows and Cygwin. Only seen this problem n Cygwin, which of course is the platform I need to use at work... On Wed, Aug 2, 2017 at 8:51 AM, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote: > Hello, > > Johan Ekh <ekh.jo...@gmail.com> writes: > > > Hi again, I tried with elp-instrument-package, see the results below. > Seems > > like function "org-get-x-clipboard" is taking a long time. CPU usage is > > 100% for the process "emacs-X11" during this time. > > I also encountered this problem (even though I do not use Windows). It > disappeared when I switched to Emacs 25.2. > > > Regards, > > -- > Nicolas Goaziou >
Re: [O] Slow usage of capture templates
Hi again, I tried with elp-instrument-package, see the results below. Seems like function "org-get-x-clipboard" is taking a long time. CPU usage is 100% for the process "emacs-X11" during this time. Does anyone have a clue what I should do? BR / Johan [image: Inline image 1] On Wed, Jan 4, 2017 at 4:35 PM, Nick Dokos <ndo...@gmail.com> wrote: > Johan Ekh <ekh.jo...@gmail.com> writes: > > > Hi all > > > > I'm on Windows 10 with Cygwin-X and running Emacs 25.1.1 installed with > Cygwin installer. Org-mode version is 9.0 installed from Elpa. > > > > I am experiencing very slow usage of my capture templates. When I hit > C-c c my different templates show up but when I select one of them nothing > happens for a long time then after 30-60 > > seconds it suddenly works as usual. This happens every time regardless > of which template I select. > > > > When I start emacs without X, i.e. with the -nw flag, my capture > templates works fast as usual. > > > > Does anyone know what I need to do? > > > > BR / Johan > > > > First step is to probably profile org and see where time is spent: > > M-x elp-instrument package RET org RET > ... then try a capture ... > M-x elp-results > > Second step is to bring up a terminal and run htop in it, then try a > capture and see if > some process (maybe emacs, maybe something else) jumps up in CPU usage. > > Also try with a minimal org file and no other customizations: it may be > that something > in your configuration causes it (unless others can see the same slowness > on similar systems). > > This kind of problem may take a long time to debug, so it's important not > to get discouraged. > > -- > Nick > > >
[O] Slow usage of capture templates
Hi all I'm on Windows 10 with Cygwin-X and running Emacs 25.1.1 installed with Cygwin installer. Org-mode version is 9.0 installed from Elpa. I am experiencing very slow usage of my capture templates. When I hit C-c c my different templates show up but when I select one of them nothing happens for a long time then after 30-60 seconds it suddenly works as usual. This happens every time regardless of which template I select. When I start emacs without X, i.e. with the -nw flag, my capture templates works fast as usual. Does anyone know what I need to do? BR / Johan
[O] Define resources in ox-taskjuggler
Hi all I try to use ox-taskjuggler but I'm doing something wrong. I want to allocate resources to different tasks (see sample code below) but I get the error: Error: crc is not a defined resource I've read some documentation/tutorials and I've searched this list but I did not find an answer. Can anyone of you gurus see emmediately what is wrong or at least point me in the right direction? Best regards Johan Activities :taskjuggler_project: :PROPERTIES: :start:2014-03-31 :END: * Project Management :0010: :PROPERTIES: :start:2014-03-31 :Duration: 200d :allocate: crc :END: Resources :taskjuggler_resource: * CRC :PROPERTIES: :resource_id: CRC :END:
Re: [O] Inline plot with matplotlib
Thank you! This works! /Johan On Tue, Sep 10, 2013 at 1:08 AM, Rasmus ras...@gmx.us wrote: Johan Ekh ekh.jo...@gmail.com writes: Hi all, I would like to create a plot with matplotlib and have it exported to a beamer presentation without storing the plot in a file. Is that possible? I guess you'd want to plot is as a pgf file, whether real of 'virtual'. You could send the result to STDOUT but it may take a bit more effort. Also, a simple test with sys.stdout says the pgf backend doesn't support stdout. . . If *printing* to a pgf file everything works out of the box in recent versions of Org. Can someone point me to an example or a good starting point? http://matplotlib.org/users/pgf.html Here's an example of a simple plot. #+TITLE: =matplotlib= and =pgf= #+LATEX_HEADER: \usepackage{pgf} #+NAME:spectrum #+BEGIN_SRC python :var OUT=test.pgf :exports results :results value file import matplotlib as mpl pgf_with_pdflatex = { pgf.texsystem: pdflatex, text.usetex: True, 'pgf.rcfonts': False, 'font.size': 9, 'fond.family': 'serif', pgf.preamble: [ r\usepackage[utf8]{inputenc}, r\usepackage[T1]{fontenc}]} mpl.rcParams.update(pgf_with_pdflatex) import matplotlib.pyplot as plt from numpy import pi, cos, linspace s1, t1, t2 = 1, .8, .2 s = lambda w: s1 / (2 * pi) * (1 + t1 ** 1 + t2 ** 2 + (1 + t2) * 2 * t1 * cos(w) + 2 * t2 * cos(4 * w)) x = linspace(0, pi, 1000) plt.figure(figsize=(4,1.5)) plt.plot(x, s(x)) plt.xlim( 0, pi) plt.xlabel($\\omega$) plt.ylabel(Spectrum) plt.tight_layout(0) plt.savefig(OUT, format = 'pgf') return(OUT) #+END_SRC #+RESULTS: spectrum [[file:test.pgf]] -- . . . The proofs are technical in nature and provides no real understanding.
[O] Inline plot with matplotlib
Hi all, I would like to create a plot with matplotlib and have it exported to a beamer presentation without storing the plot in a file. Is that possible? Can someone point me to an example or a good starting point? BR / Johan
Re: [O] Export attached image files
Thanks for your answer Suvayu! Sorry for being unclear. What I mean is that when I write reports or papers using org-mode and latex exporter it is natural to take care in storing my image files in a structured way on my disk and use links in org-mode to incorporate the images in my latex document. These image files will live on my disk more or less forever. But if I write a note or some guide for myself regarding usage of some software, or the settings in my router, I would like to take a series of screenshots, quickly incorporate them into an org file together with some text without having to rename the screenshots with suitable names and organize them on my disk etc. I'd like org-mode to store the images somewhere in a data directory as an attachment, but of course I'd like the screenshots to be incorporated in the pdf-file when I export it. Is this possible? BR / Johan On Mon, Aug 19, 2013 at 1:03 PM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote: Hi Johan, On Mon, Aug 19, 2013 at 12:05:53PM +0200, Johan Ekh wrote: Hi all, How can I include attached image files in my pdf-file which is generated by the latex exporter. Short answer: not possible. I know how to work with links but what if I want to quickly attach files and then delete the files from my hard disk and only have them as attachments in my org-file? If you delete a file from the disk, attaching it won't help either. Org files are plain text, attachments are also stored as references. It would help us understand better if you could elaborate a bit on what is your eventual goal? Cheers, -- Suvayu Open source is the future. It sets us free.
[O] Export attached image files
Hi all, How can I include attached image files in my pdf-file which is generated by the latex exporter. I know how to work with links but what if I want to quickly attach files and then delete the files from my hard disk and only have them as attachments in my org-file? BR / Johan
Re: [O] Adding new heading results in not in an item
Thanks guys, Marc: I use git for installation and I don't think I have any old files in my load path. I have the files in my home directory but the compiled files are installed in the system emacs/site-lisp. Victor: Good, but please help a newbie. How do I apply this patch? Finally, I noticed that adding a new heading works with Ctrl-RET. But I still want M-RET to work! BR / Johan On Tue, Apr 23, 2013 at 11:15 PM, Viktor Rosenfeld listuse...@gmail.comwrote: Hi Johan, this is fixed in master. The relevant commit is here: http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=0fff0ba6da30e4ced73f84c8305d80c955bae132 Cheers, Viktor Johan Ekh wrote: Hi all, I've installed version 8 of org-mode and now I get the message not in an item when I try to add new headings with M-RET. What is wrong? BR / Johan
Re: [O] Adding new heading results in not in an item
Thank you! It worked again after a make up2. BR / Johan On Wed, Apr 24, 2013 at 9:39 AM, Bastien b...@gnu.org wrote: Hi Johan, Johan Ekh ekh.jo...@gmail.com writes: Marc: I use git for installation and I don't think I have any old files in my load path. I have the files in my home directory but the compiled files are installed in the system emacs/site-lisp. The compiled files *are* in your load-path, because Emacs loads them when you launch it. This is in /usr/.../emacs/lisp/loaddefs.el, which contains pointers to the autoloaded functions. Some Org's functions are autoloaded by Emacs, and these are functions from an older version than the one you installed manually. Victor: Good, but please help a newbie. How do I apply this patch? You don't need to install this particular patch, you just need to updated your Git installation. ~$ cd org-mode/ [change with the relevant path] ~$ git pull ~$ make This pull latest master branch and compile Org. Or you can do: ~$ cd org-mode/ [change with the relevant path] ~$ make update Finally, I noticed that adding a new heading works with Ctrl-RET. But I still want M-RET to work! Please follow the instructions above and report any problem you may have afterwards. HTH, -- Bastien
[O] Adding new heading results in not in an item
Hi all, I've installed version 8 of org-mode and now I get the message not in an item when I try to add new headings with M-RET. What is wrong? BR / Johan
[O] Colorized TODO in Latex export?
Hi all, I export minutes of meetings to latex and I would like to define colors for the TODO keywords, like they are shown in my emacs agenda buffer. How can I do this? Best regards, Johan
Re: [O] Actual eps picture size in beamer presentation
Ok, thanks! I seem to get the right size with #+ATTR_LATEX: width=128mm. But how can I make the lower left corner of my picture start exactly at the lower left corner of my slide? BR / Johan On Tue, Nov 27, 2012 at 4:33 PM, Rainer M Krug r.m.k...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 27/11/12 16:31, Rainer M Krug wrote: On 27/11/12 13:07, Johan Ekh wrote: Hi, I've created an eps picture with the exact width of a landscape A4 to be used in a beamer presentation. However, the latex exporter shrinks it. I'd like to pass an option to the exporter to use the actual size of the picture, is that possible? I am sure it is, but beamer slides are not A4. they are actually (if I remember correctly) something around 7 by 9 cm. So A4 actual size would go beyond the beamer slide. Found it: 128mm by 96mm ( http://tex.stackexchange.com/questions/14336/latex-beamer-presentation-package-169-aspect-ratio ) Cheers, Rainer Best regards, Johan -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlC03UIACgkQoYgNqgF2ego7EACfRWt+auDeG+bUlq46h1d+katz Y7kAn0/Ls8Up5h51oWeq4Rx5KxDRAJ7M =ZAou -END PGP SIGNATURE-
[O] Actual eps picture size in beamer presentation
Hi, I've created an eps picture with the exact width of a landscape A4 to be used in a beamer presentation. However, the latex exporter shrinks it. I'd like to pass an option to the exporter to use the actual size of the picture, is that possible? Best regards, Johan
Re: [O] Blank line in table?
Thanks Bastien! I will try it. I just noticed that putting a \ in one of the cells in the blank row made the latex exporter export an empty line too. BR / Johan On Tue, Nov 13, 2012 at 10:46 PM, Bastien b...@altern.org wrote: Hi Johan, Johan Ekh ekh.jo...@gmail.com writes: Is it possible to get blank lines in a table exported when creating a beamer presentation? It is only for creating a nice layout having different parts of the table separated with some vertical space. The exporter ignores my blank lines. (setq org-export-table-remove-empty-lines nil) HTH, -- Bastien
[O] Blank line in table?
Hi Is it possible to get blank lines in a table exported when creating a beamer presentation? It is only for creating a nice layout having different parts of the table separated with some vertical space. The exporter ignores my blank lines. BR / Johan
Re: [O] Use nomencl package with latex exporter?
Thanks, can you give some hints on how to customize it, or point me to some information? /Johan On Mon, Aug 6, 2012 at 9:35 PM, Nick Dokos nicholas.do...@hp.com wrote: Johan Ekh ekh.jo...@gmail.com wrote: Thank you Myles, I'm not that comfortable with cmake but I will give your solution a try and report My milage. / Johan Sent from my iPad On 6 aug 2012, at 14:14, Myles English mylesengl...@gmail.com wrote: Johan Ekh writes: Hi all, I use the default latex exporter in org-mode v7.8 to write documents using a custom latex class which is built on article. I would like to use the nomencl latex package if possible. From the shell I usually run something like makeindex filename.nlo -s nomencl.ist -o filename.nls followed by latex or pdflatex, but how can I get the exporter to do this? Customize the variable org-latex-to-pdf-process appropriately. Nick I don't know the answer to your question, but when I came across the same problem, I used a makefile-like solution because I felt that the building process was becoming sufficiently complicated to warrant using a specialised tool. If you are comfortable with CMake already it may be worth a look. Have a look for UseLatex.cmake. Basically you get emacs to export the .tex file from the .org file: add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mypaper.tex COMMAND emacs --batch --visit=${CMAKE_CURRENT_BINARY_DIR}/mypaper.org --load=/home/me/myfuncs.el --funcall org-export-as-latex-batch DEPENDS orgfile COMMENT Exporting orgmode file to LaTeX using emacs ) And then bibtex and nomenclature are asked to do their stuff, and a pdf is produced, with something like this directive: add_latex_document( mypaper.tex INPUTS tex/bibliography.tex texlib/mystyle.sty BIBFILES texlib/mylibrary.bib DEFAULT_PDF USE_NOMENCL ) I also get it to generate all my R plots. Other advantages are that you get an out-of-source build that is isolated (to some extent) in its own directory. And I think it is easier to diagnose the problems when things go wrong, better than staring at an elisp backtrace. Now if org would write my CMakeList.txt for me, that would be a fine thing. Myles
Re: [O] Fetch failed
Thanks guys! Now it works! /Johan On Sun, Aug 5, 2012 at 5:51 PM, Achim Gratz strom...@nexgo.de wrote: Johan Ekh writes: git pull error: Unable to find 16d23c07dd3697db790b14e6873c65404c912e3f under http://repo.or.cz/r/org-mode.git Cannot obtain needed object 16d23c07dd3697db790b14e6873c65404c912e3f error: Fetch failed. Check the files in .git/objects/pack — delete those *.idx files that have no corresponding *.pack file and do the upadte again. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ DIY Stuff: http://Synth.Stromeko.net/DIY.html
Re: [O] Use nomencl package with latex exporter?
Thank you Myles, I'm not that comfortable with cmake but I will give your solution a try and report My milage. / Johan Sent from my iPad On 6 aug 2012, at 14:14, Myles English mylesengl...@gmail.com wrote: Johan Ekh writes: Hi all, I use the default latex exporter in org-mode v7.8 to write documents using a custom latex class which is built on article. I would like to use the nomencl latex package if possible. From the shell I usually run something like makeindex filename.nlo -s nomencl.ist -o filename.nls followed by latex or pdflatex, but how can I get the exporter to do this? I don't know the answer to your question, but when I came across the same problem, I used a makefile-like solution because I felt that the building process was becoming sufficiently complicated to warrant using a specialised tool. If you are comfortable with CMake already it may be worth a look. Have a look for UseLatex.cmake. Basically you get emacs to export the .tex file from the .org file: add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mypaper.tex COMMAND emacs --batch --visit=${CMAKE_CURRENT_BINARY_DIR}/mypaper.org --load=/home/me/myfuncs.el --funcall org-export-as-latex-batch DEPENDS orgfile COMMENT Exporting orgmode file to LaTeX using emacs ) And then bibtex and nomenclature are asked to do their stuff, and a pdf is produced, with something like this directive: add_latex_document( mypaper.tex INPUTS tex/bibliography.tex texlib/mystyle.sty BIBFILES texlib/mylibrary.bib DEFAULT_PDF USE_NOMENCL ) I also get it to generate all my R plots. Other advantages are that you get an out-of-source build that is isolated (to some extent) in its own directory. And I think it is easier to diagnose the problems when things go wrong, better than staring at an elisp backtrace. Now if org would write my CMakeList.txt for me, that would be a fine thing. Myles
[O] Sagemath with org-babel?
Hi all, sage is not listed under languages that can be used with org-babel. But it is based on Python, is it possible to use it with org-babel? /Johan Sent from my iPad
[O] Fetch failed
Hi all, I try to update my org-mode v7.7 installation on my OpenSuse 11.4 laptop with make up2 but I get git pull error: Unable to find 16d23c07dd3697db790b14e6873c65404c912e3f under http://repo.or.cz/r/org-mode.git Cannot obtain needed object 16d23c07dd3697db790b14e6873c65404c912e3f error: Fetch failed. make: *** [update] Error 1 Does anyone know what I have to do? Best regards, Johan
[O] Agenda view side-by-side
Hi all, when I use C-c a a to create an agenda, my emacs window is split horizontally and the agenda is shown in the lower window. I'd rather have my emacs window splitted vertically and the agenda shown in the right window. How can I do this? Best regards, Johan
Re: [O] Agenda view side-by-side
Thanks Gustav! /J 2011/10/17 Gustav Wikström gustav.e...@gmail.com The following might be of interest: *** Vertical Split window Splits screen vertically if the width of the window is large enough. Inspired by the following post: - http://stackoverflow.com/questions/2081577/setting-emacs-split-to-horizontal #+begin_src emacs-lisp :tangle yes (setq split-height-threshold nil) (setq split-width-threshold 160) #+end_src Regards Gustav On Mon, Oct 17, 2011 at 11:12 AM, Johan Ekh ekh.jo...@gmail.com wrote: Hi all, when I use C-c a a to create an agenda, my emacs window is split horizontally and the agenda is shown in the lower window. I'd rather have my emacs window splitted vertically and the agenda shown in the right window. How can I do this? Best regards, Johan
Re: [O] Time estimates time format?
Thank you, I've changed to #+PROPERTY: Effort_ALL 2d 1w 2w 3w 4w 2m #+COLUMNS: %40ITEM(Task) %17Effort(Estimated Effort){:} %CLOCKSUM but there is no mapping between days, weeks, months and hours. For example, '2d' + '1w' is summed as '3:00'. How can I change this? The best for me would be to have the summed effort in weeks. Best regards, Johan On Tue, Sep 20, 2011 at 8:57 AM, Christian Egli christian.e...@sbs.chwrote: Johan Ekh ekh.jo...@gmail.com writes: But I'd like to make estimates in days, weeks or even months. You can certainly do that. Have a look at org-effort-durations. You could for example define the effort as '2d', '4w' or '7m'. And have spent time displayed in percentage of the estimate. Is this possible? You might be able to do something along this line. Have a look at the doc string of org-properties-postprocess-alist where it gives you an example on how to calculate the remaining time (clocked vs estimated). HTH -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland
[O] Time estimates time format?
Hi all, I'm trying to monitor my projects with org-mode. I'd like to make time estimates for different activities and then monitor time spent on the activities. In the manual I found #+PROPERTY: Effort_ALL 0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 7:00 #+COLUMNS: %40ITEM(Task) %17Effort(Estimated Effort){:} %CLOCKSUM which works. But I'd like to make estimates in days, weeks or even months. And have spent time displayed in percentage of the estimate. Is this possible? Best regards Johan
[O] Exporting subtree to LaTeX?
Hi all, is it possible to export a subtree to LaTeX, i.e. not the entire org-file? I just want a latex file that I later include manually in an existing LaTeX document. Best regards, Johan
Re: [O] Exporting subtree to LaTeX?
Thanks! That was what I was looking for. Best regards, Johan On Sun, Sep 18, 2011 at 1:28 PM, Bernt Hansen be...@norang.ca wrote: Johan Ekh ekh.jo...@gmail.com writes: Hi all, is it possible to export a subtree to LaTeX, i.e. not the entire org-file? I just want a latex file that I later include manually in an existing LaTeX document. Best regards, Johan Select the subtree first with C-c @ and then export normally. Regards, Bernt
[O] How to update Info Documentation?
Hi all, I keep up to date with org-mode using: git pull make clean make make doc make install It works very well except that my Info Documentation is not updated. It is still some old version. What do I have to do to get it updated? BR / Johan
[Orgmode] Export emails from Lotus Notes to org-mode?
Hi all, I have to use Lotus Notes at work. I often get emails with reference material, other than the text, e.g. attached files or inline pictures. Is it possible to export the entire email, including this reference material, into something that I can link to from within org-mode? Johan ___ 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
Re: [Orgmode] Iterate many tables
Hi, I've tried the functions but I get the error described above. I've put the functions in my .emacs exactly as written in the mail. I use the latest org-mode (using Git) and I use emacs 23.1.1 on a 64-bit openSuse 11.1 linux laptop. Do the cursor need to be located anywhere specific when executing the functions? I've tried to execute the functions while having all tables expanded and the cursor somewhere in the last table. Best regards, Johan On Fri, May 7, 2010 at 9:36 AM, Carsten Dominik carsten.domi...@gmail.comwrote: Hi, both functions work without any problem for me, so I do not know what you are doing differently. maybe you ned to describe exactly how you are calling the functions. - Carsten On May 6, 2010, at 1:34 PM, T Helms wrote: Thanks for bringing this up, it would be a useful tool. I get an error using the functions as well org-recalculate-all-tables: org-recalculate-all-tables: Wrong number of arguments: (lambda (function) Apply FUNCTION to the start of all tables in the buffer. (save-excursion (save-restriction (widen) (goto-char (point-min)) (while (re-search-forward org-table-any-line-regexp nil t) (message Mapping tables: %d%% (/ (* 100.0 (point)) (buffer-size))) (beginning-of-line 1) (when (looking-at org-table-line-regexp) (save-excursion (funcall function)) (or (looking-at org-table-line-regexp) (forward-char 1))) (re-search-forward org-table-any-border-regexp nil 1 (message Mapping tables: done)), 2 org-iterate-all-tables: while: Wrong number of arguments: (lambda (function) Apply FUNCTION to the start of all tables in the buffer. (save-excursion (save-restriction (widen) (goto-char (point-min)) (while (re-search-forward org-table-any-line-regexp nil t) (message Mapping tables: %d%% (/ (* 100.0 (point)) (buffer-size))) (beginning-of-line 1) (when (looking-at org-table-line-regexp) (save-excursion (funcall function)) (or (looking-at org-table-line-regexp) (forward-char 1))) (re-search-forward org-table-any-border-regexp nil 1 (message Mapping tables: done)), 2 On 05/05/2010 03:37 PM, Johan Ekh wrote: Any idea what could be wrong? Error meassage: org-recalculate-all-tables: Wrong number of arguments: #[(function) ŠŒ~ˆebˆÄ ÅÆ#ƒ: Best regards, Johan On Fri, Apr 30, 2010 at 5:03 PM, Carsten Dominik carsten.domi...@gmail.com wrote: On Apr 30, 2010, at 4:07 PM, Johan Ekh wrote: Hi all, I have a series of tables in a single file. Each table have some fields that depends on fields in the previous table. Thus, if I change something in the first table, I must go down manually and recalculate (or iterate) each table. Is there a way to recalculate all tables in a file simultaneously? Hi Johan, This should work if the dependence is only backwards. (defun org-recalculate-all-tables () (interactive) (org-table-map-tables (lambda () (org-table-recalculate t)) t)) If you have dependencies in both directions, this might work (untested): (defun org-iterate-all-tables () (interactive) (let* ((imax 10) (checksum (md5 (buffer-string))) c1 (i imax)) (catch 'exit (while ( i 0) (setq i (1- i)) (org-table-map-tables (lambda () (org-table-recalculate t)) t) (if (equal checksum (setq c1 (md5 (buffer-string (progn (message Convergence after %d iterations (- imax i)) (throw 'exit t)) (setq checksum c1))) (error No convergence after %d iterations imax If it does, this could be added to org-hacks on Worg. HTH - 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 - 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
Re: [Orgmode] Iterate many tables
Hi, You're right, I'm actually not using the latest version. It fails to install. I use the version 6.33trans. When I try to upgrade with Git I get the compilation error: In org-publish-get-base-files-1: org-publish.el:407:13:Warning: reference to free variable `sitemap-requested' org-publish.el:915:1:Error: Invalid read syntax: # make: *** [lisp/org-publish.elc] Error 1 Do you know what is wrong? I checked line 915 in org-publish.el but there is no # in that line. Do you know what is wrong? Best regards, Johan On Fri, May 14, 2010 at 2:32 PM, Carsten Dominik carsten.domi...@gmail.comwrote: Hi Johan, I think you are not using the latest version of Org? Please upgrade. - Carsten On May 14, 2010, at 12:07 PM, Johan Ekh wrote: Hi, I've tried the functions but I get the error described above. I've put the functions in my .emacs exactly as written in the mail. I use the latest org-mode (using Git) and I use emacs 23.1.1 on a 64-bit openSuse 11.1 linux laptop. Do the cursor need to be located anywhere specific when executing the functions? I've tried to execute the functions while having all tables expanded and the cursor somewhere in the last table. Best regards, Johan On Fri, May 7, 2010 at 9:36 AM, Carsten Dominik carsten.domi...@gmail.com wrote: Hi, both functions work without any problem for me, so I do not know what you are doing differently. maybe you ned to describe exactly how you are calling the functions. - Carsten On May 6, 2010, at 1:34 PM, T Helms wrote: Thanks for bringing this up, it would be a useful tool. I get an error using the functions as well org-recalculate-all-tables: org-recalculate-all-tables: Wrong number of arguments: (lambda (function) Apply FUNCTION to the start of all tables in the buffer. (save-excursion (save-restriction (widen) (goto-char (point-min)) (while (re-search-forward org-table-any-line-regexp nil t) (message Mapping tables: %d%% (/ (* 100.0 (point)) (buffer-size))) (beginning-of-line 1) (when (looking-at org-table-line-regexp) (save-excursion (funcall function)) (or (looking-at org-table-line-regexp) (forward-char 1))) (re-search-forward org-table-any-border-regexp nil 1 (message Mapping tables: done)), 2 org-iterate-all-tables: while: Wrong number of arguments: (lambda (function) Apply FUNCTION to the start of all tables in the buffer. (save-excursion (save-restriction (widen) (goto-char (point-min)) (while (re-search-forward org-table-any-line-regexp nil t) (message Mapping tables: %d%% (/ (* 100.0 (point)) (buffer-size))) (beginning-of-line 1) (when (looking-at org-table-line-regexp) (save-excursion (funcall function)) (or (looking-at org-table-line-regexp) (forward-char 1))) (re-search-forward org-table-any-border-regexp nil 1 (message Mapping tables: done)), 2 On 05/05/2010 03:37 PM, Johan Ekh wrote: Any idea what could be wrong? Error meassage: org-recalculate-all-tables: Wrong number of arguments: #[(function) ŠŒ~ˆebˆÄ ÅÆ#ƒ: Best regards, Johan On Fri, Apr 30, 2010 at 5:03 PM, Carsten Dominik carsten.domi...@gmail.com wrote: On Apr 30, 2010, at 4:07 PM, Johan Ekh wrote: Hi all, I have a series of tables in a single file. Each table have some fields that depends on fields in the previous table. Thus, if I change something in the first table, I must go down manually and recalculate (or iterate) each table. Is there a way to recalculate all tables in a file simultaneously? Hi Johan, This should work if the dependence is only backwards. (defun org-recalculate-all-tables () (interactive) (org-table-map-tables (lambda () (org-table-recalculate t)) t)) If you have dependencies in both directions, this might work (untested): (defun org-iterate-all-tables () (interactive) (let* ((imax 10) (checksum (md5 (buffer-string))) c1 (i imax)) (catch 'exit (while ( i 0) (setq i (1- i)) (org-table-map-tables (lambda () (org-table-recalculate t)) t) (if (equal checksum (setq c1 (md5 (buffer-string (progn (message Convergence after %d iterations (- imax i)) (throw 'exit t)) (setq checksum c1))) (error No convergence after %d iterations imax If it does, this could be added to org-hacks on Worg. HTH - 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 - 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
Re: [Orgmode] Iterate many tables
Hi again, I removed org-publish.el and the upgrade worked. Thus I now have the latest version of org-mode. Guess what, your functions now work perfectly! Thanks! Johan On Fri, May 14, 2010 at 3:05 PM, Johan Ekh ekh.jo...@gmail.com wrote: Hi, You're right, I'm actually not using the latest version. It fails to install. I use the version 6.33trans. When I try to upgrade with Git I get the compilation error: In org-publish-get-base-files-1: org-publish.el:407:13:Warning: reference to free variable `sitemap-requested' org-publish.el:915:1:Error: Invalid read syntax: # make: *** [lisp/org-publish.elc] Error 1 Do you know what is wrong? I checked line 915 in org-publish.el but there is no # in that line. Do you know what is wrong? Best regards, Johan On Fri, May 14, 2010 at 2:32 PM, Carsten Dominik carsten.domi...@gmail.com wrote: Hi Johan, I think you are not using the latest version of Org? Please upgrade. - Carsten On May 14, 2010, at 12:07 PM, Johan Ekh wrote: Hi, I've tried the functions but I get the error described above. I've put the functions in my .emacs exactly as written in the mail. I use the latest org-mode (using Git) and I use emacs 23.1.1 on a 64-bit openSuse 11.1 linux laptop. Do the cursor need to be located anywhere specific when executing the functions? I've tried to execute the functions while having all tables expanded and the cursor somewhere in the last table. Best regards, Johan On Fri, May 7, 2010 at 9:36 AM, Carsten Dominik carsten.domi...@gmail.com wrote: Hi, both functions work without any problem for me, so I do not know what you are doing differently. maybe you ned to describe exactly how you are calling the functions. - Carsten On May 6, 2010, at 1:34 PM, T Helms wrote: Thanks for bringing this up, it would be a useful tool. I get an error using the functions as well org-recalculate-all-tables: org-recalculate-all-tables: Wrong number of arguments: (lambda (function) Apply FUNCTION to the start of all tables in the buffer. (save-excursion (save-restriction (widen) (goto-char (point-min)) (while (re-search-forward org-table-any-line-regexp nil t) (message Mapping tables: %d%% (/ (* 100.0 (point)) (buffer-size))) (beginning-of-line 1) (when (looking-at org-table-line-regexp) (save-excursion (funcall function)) (or (looking-at org-table-line-regexp) (forward-char 1))) (re-search-forward org-table-any-border-regexp nil 1 (message Mapping tables: done)), 2 org-iterate-all-tables: while: Wrong number of arguments: (lambda (function) Apply FUNCTION to the start of all tables in the buffer. (save-excursion (save-restriction (widen) (goto-char (point-min)) (while (re-search-forward org-table-any-line-regexp nil t) (message Mapping tables: %d%% (/ (* 100.0 (point)) (buffer-size))) (beginning-of-line 1) (when (looking-at org-table-line-regexp) (save-excursion (funcall function)) (or (looking-at org-table-line-regexp) (forward-char 1))) (re-search-forward org-table-any-border-regexp nil 1 (message Mapping tables: done)), 2 On 05/05/2010 03:37 PM, Johan Ekh wrote: Any idea what could be wrong? Error meassage: org-recalculate-all-tables: Wrong number of arguments: #[(function) ŠŒ~ˆebˆÄ ÅÆ#ƒ: Best regards, Johan On Fri, Apr 30, 2010 at 5:03 PM, Carsten Dominik carsten.domi...@gmail.com wrote: On Apr 30, 2010, at 4:07 PM, Johan Ekh wrote: Hi all, I have a series of tables in a single file. Each table have some fields that depends on fields in the previous table. Thus, if I change something in the first table, I must go down manually and recalculate (or iterate) each table. Is there a way to recalculate all tables in a file simultaneously? Hi Johan, This should work if the dependence is only backwards. (defun org-recalculate-all-tables () (interactive) (org-table-map-tables (lambda () (org-table-recalculate t)) t)) If you have dependencies in both directions, this might work (untested): (defun org-iterate-all-tables () (interactive) (let* ((imax 10) (checksum (md5 (buffer-string))) c1 (i imax)) (catch 'exit (while ( i 0) (setq i (1- i)) (org-table-map-tables (lambda () (org-table-recalculate t)) t) (if (equal checksum (setq c1 (md5 (buffer-string (progn (message Convergence after %d iterations (- imax i)) (throw 'exit t)) (setq checksum c1))) (error No convergence after %d iterations imax If it does, this could be added to org-hacks on Worg. HTH - 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
Re: [Orgmode] Iterate many tables
I only have backward dependencies so I tried the first code block. I put it in ..emacs and tried, but I got a message starting as the message below. I could not paste it into the email for some reason... The tables work as expected when I do it manually. Any idea what could be wrong? Error meassage: org-recalculate-all-tables: Wrong number of arguments: #[(function) ~ebÄÅÆ#: Best regards, Johan On Fri, Apr 30, 2010 at 5:03 PM, Carsten Dominik carsten.domi...@gmail.comwrote: On Apr 30, 2010, at 4:07 PM, Johan Ekh wrote: Hi all, I have a series of tables in a single file. Each table have some fields that depends on fields in the previous table. Thus, if I change something in the first table, I must go down manually and recalculate (or iterate) each table. Is there a way to recalculate all tables in a file simultaneously? Hi Johan, This should work if the dependence is only backwards. (defun org-recalculate-all-tables () (interactive) (org-table-map-tables (lambda () (org-table-recalculate t)) t)) If you have dependencies in both directions, this might work (untested): (defun org-iterate-all-tables () (interactive) (let* ((imax 10) (checksum (md5 (buffer-string))) c1 (i imax)) (catch 'exit (while ( i 0) (setq i (1- i)) (org-table-map-tables (lambda () (org-table-recalculate t)) t) (if (equal checksum (setq c1 (md5 (buffer-string (progn (message Convergence after %d iterations (- imax i)) (throw 'exit t)) (setq checksum c1))) (error No convergence after %d iterations imax If it does, this could be added to org-hacks on Worg. HTH - 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
Re: [Orgmode] Tag table entries?
Thanks Darlan!! I will try this as soon as I can. Best regards, Johan On Wed, May 5, 2010 at 11:27 AM, Darlan Cavalcante Moreira darc...@gmail.com wrote: The snippet is attached. In my case I call the snippet inside a 2-level heading (also using odd number of start for each level) and you will probably want to modify the snippet to your needs. The snippet only asks the name of the current month, the current year and the name of the last month. I suppose this could be completely automatic if you know how to get this information with lisp. Darlan At Tue, 4 May 2010 16:35:07 +0200, Johan Ekh ekh.jo...@gmail.com wrote: [1 multipart/alternative (7bit)] [1.1 text/plain; ISO-8859-1 (7bit)] That sounds very good! This is the functionality I am looking for! Would you like to share your yasnippet and any other settings that you have worked out? It would help me alot! Thanks! Johan On Tue, May 4, 2010 at 10:36 AM, Darlan Cavalcante Moreira darc...@gmail.com wrote: For that I just use separate tables. I use a headline for each month, say May 2010 and subheadings for each category (groceries, bills, transport, etc.) with a corresponding table in each one. Each table calculates the total for that category and has a unique name, say BillsMay2010. All of the totals for each table are concatenated in a table ExpensesMay2010 (also in a subheadings of the month headline) that has one line for each category and calculates the total. There is even gnuplot code with org-babel to plot the amount spent in each category from the ExpensesMay2010 table. Of course there is a snippet (with yasnippet) for all of this and in the first day of the month I call the snippet and only provide the month name and the year (both used to make the name of each table unique). This snippet makes easy creating all the infrastructure for each month and org speedkeys makes easy navigating the categories to quickly add something. This works very well and I only need to be careful and update each table (C-u C-u C-c *) when I make some change. Darlan At Tue, 4 May 2010 08:36:05 +0200, Johan Ekh ekh.jo...@gmail.com wrote: Thanks Dan! My idea was to go through a long imported table and quickly categorize the different rows into a number of predefined categories, without having to actually type the category for each row. Can I do that? If babel is a way, I think I would prefer to use python as I am familiar with it. But I have not used it with babel, is that possible? Best regards, Johan On Mon, May 3, 2010 at 10:52 PM, Dan Davison davi...@stats.ox.ac.uk wrote: Johan Ekh ekh.jo...@gmail.com writes: Hi all, I wonder if it is possible to tag rows in a table? For example, if I have a table of expenses, i.e. columns with date, note and sum, and then want to group the entries into different categories such as groceries, car etc. Can I do this someway? Hi Johan, You can't attach metadata such as tags to table rows. Two things come to mind. 1. If you just want the table for visual purposes (as opposed for doing calculations with it), then you could use column-view. I.e. you would have a subtree for groceries and a subtree for car; categories such as date, note and sum would be stored in properties. http://orgmode.org/manual/Column-view.html#Column-view Visibility cycling works in column view so you can group and ungroup the rows. [is there anyway of creating a normal Org table from a column view table?] 2. org-babel: If you're happy with a suitable supported language, then store the category label in a column and you can transform the master table however you want. R would be a convenient language for working with a table like this. Dan Best regards, Johan ___ 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 [1.2 text/html; ISO-8859-1 (quoted-printable)] [2 text/plain; us-ascii (7bit)] ___ 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
Re: [Orgmode] Tag table entries?
Thanks Dan! My idea was to go through a long imported table and quickly categorize the different rows into a number of predefined categories, without having to actually type the category for each row. Can I do that? If babel is a way, I think I would prefer to use python as I am familiar with it. But I have not used it with babel, is that possible? Best regards, Johan On Mon, May 3, 2010 at 10:52 PM, Dan Davison davi...@stats.ox.ac.uk wrote: Johan Ekh ekh.jo...@gmail.com writes: Hi all, I wonder if it is possible to tag rows in a table? For example, if I have a table of expenses, i.e. columns with date, note and sum, and then want to group the entries into different categories such as groceries, car etc. Can I do this someway? Hi Johan, You can't attach metadata such as tags to table rows. Two things come to mind. 1. If you just want the table for visual purposes (as opposed for doing calculations with it), then you could use column-view. I.e. you would have a subtree for groceries and a subtree for car; categories such as date, note and sum would be stored in properties. http://orgmode.org/manual/Column-view.html#Column-view Visibility cycling works in column view so you can group and ungroup the rows. [is there anyway of creating a normal Org table from a column view table?] 2. org-babel: If you're happy with a suitable supported language, then store the category label in a column and you can transform the master table however you want. R would be a convenient language for working with a table like this. Dan Best regards, Johan ___ 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
Re: [Orgmode] Tag table entries?
That sounds very good! This is the functionality I am looking for! Would you like to share your yasnippet and any other settings that you have worked out? It would help me alot! Thanks! Johan On Tue, May 4, 2010 at 10:36 AM, Darlan Cavalcante Moreira darc...@gmail.com wrote: For that I just use separate tables. I use a headline for each month, say May 2010 and subheadings for each category (groceries, bills, transport, etc.) with a corresponding table in each one. Each table calculates the total for that category and has a unique name, say BillsMay2010. All of the totals for each table are concatenated in a table ExpensesMay2010 (also in a subheadings of the month headline) that has one line for each category and calculates the total. There is even gnuplot code with org-babel to plot the amount spent in each category from the ExpensesMay2010 table. Of course there is a snippet (with yasnippet) for all of this and in the first day of the month I call the snippet and only provide the month name and the year (both used to make the name of each table unique). This snippet makes easy creating all the infrastructure for each month and org speedkeys makes easy navigating the categories to quickly add something. This works very well and I only need to be careful and update each table (C-u C-u C-c *) when I make some change. Darlan At Tue, 4 May 2010 08:36:05 +0200, Johan Ekh ekh.jo...@gmail.com wrote: Thanks Dan! My idea was to go through a long imported table and quickly categorize the different rows into a number of predefined categories, without having to actually type the category for each row. Can I do that? If babel is a way, I think I would prefer to use python as I am familiar with it. But I have not used it with babel, is that possible? Best regards, Johan On Mon, May 3, 2010 at 10:52 PM, Dan Davison davi...@stats.ox.ac.uk wrote: Johan Ekh ekh.jo...@gmail.com writes: Hi all, I wonder if it is possible to tag rows in a table? For example, if I have a table of expenses, i.e. columns with date, note and sum, and then want to group the entries into different categories such as groceries, car etc. Can I do this someway? Hi Johan, You can't attach metadata such as tags to table rows. Two things come to mind. 1. If you just want the table for visual purposes (as opposed for doing calculations with it), then you could use column-view. I.e. you would have a subtree for groceries and a subtree for car; categories such as date, note and sum would be stored in properties. http://orgmode.org/manual/Column-view.html#Column-view Visibility cycling works in column view so you can group and ungroup the rows. [is there anyway of creating a normal Org table from a column view table?] 2. org-babel: If you're happy with a suitable supported language, then store the category label in a column and you can transform the master table however you want. R would be a convenient language for working with a table like this. Dan Best regards, Johan ___ 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
Re: [Orgmode] Iterate many tables
Thanks, I will try it and report back. //Johan On Fri, Apr 30, 2010 at 5:03 PM, Carsten Dominik carsten.domi...@gmail.comwrote: On Apr 30, 2010, at 4:07 PM, Johan Ekh wrote: Hi all, I have a series of tables in a single file. Each table have some fields that depends on fields in the previous table. Thus, if I change something in the first table, I must go down manually and recalculate (or iterate) each table. Is there a way to recalculate all tables in a file simultaneously? Hi Johan, This should work if the dependence is only backwards. (defun org-recalculate-all-tables () (interactive) (org-table-map-tables (lambda () (org-table-recalculate t)) t)) If you have dependencies in both directions, this might work (untested): (defun org-iterate-all-tables () (interactive) (let* ((imax 10) (checksum (md5 (buffer-string))) c1 (i imax)) (catch 'exit (while ( i 0) (setq i (1- i)) (org-table-map-tables (lambda () (org-table-recalculate t)) t) (if (equal checksum (setq c1 (md5 (buffer-string (progn (message Convergence after %d iterations (- imax i)) (throw 'exit t)) (setq checksum c1))) (error No convergence after %d iterations imax If it does, this could be added to org-hacks on Worg. HTH - 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
[Orgmode] Tag table entries?
Hi all, I wonder if it is possible to tag rows in a table? For example, if I have a table of expenses, i.e. columns with date, note and sum, and then want to group the entries into different categories such as groceries, car etc. Can I do this someway? Best regards, Johan ___ 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] Iterate many tables
Hi all, I have a series of tables in a single file. Each table have some fields that depends on fields in the previous table. Thus, if I change something in the first table, I must go down manually and recalculate (or iterate) each table. Is there a way to recalculate all tables in a file simultaneously? Best regards, Johan ___ 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
Re: [Orgmode] Increase width in agenda view?
Ha! I found it! Thanks Carsten. For this advice and for the super org-mode! Oh, the variable is Org Agenda Tags Column in the group Org Agenda/Org Agenda Line Format if someone else also wants to know... /Johan On Tue, Apr 20, 2010 at 3:33 PM, Carsten Dominik carsten.domi...@gmail.comwrote: Hi Johan, On Apr 19, 2010, at 6:49 PM, Johan Ekh wrote: Hi all, is it possible to increase the width in the Week-agenda view such that the TODO keyword and the title task text get more space? My tags to the right of the title text gets misaligned if the title text is too long. Take a look at this page http://orgmode.org/worg/org-tutorials/org-customize.php and then try if you can find the variable yourself. If not, get back to me and I will tell you :-) - Carsten Hint: this has to do with the line format. Best regards, Johan ___ 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
[Orgmode] Increase width in agenda view?
Hi all, is it possible to increase the width in the Week-agenda view such that the TODO keyword and the title task text get more space? My tags to the right of the title text gets misaligned if the title text is too long. Best regards, Johan ___ 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] Combine tag search and timeline view?
Hi all, how can I generate a timeline view that contains only tasks that have a certain tag attached to it? Let's say I have a project Project 1 and I attach a tag P1 to all TODO entries in this project. Can I generate a timeline view that contains only items with the tag P1 attached? BR Johan ___ 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: Plotting date on xaxis
Thanks guys, I really like the org-mode community. I allways get good help with my newbie questions! On Thursday, February 25, 2010, Eric S Fraga ucec...@ucl.ac.uk wrote: On Thu, 25 Feb 2010 10:44:33 -0700, Eric Schulte schulte.e...@gmail.com wrote: Eric S Fraga ucec...@ucl.ac.uk writes: [...] Well, good intentions is one thing, wrong behaviour is another? If the user has specified ind:1 deps:(2), even if org-plot identifies column 1 as having labels for the tic marks, the generated parameter to the plot command should be, at best: ... using 1:2:xticlabels(1) ... I just applied a patch which results in the above plotting command, and yields the following gnuplot error when the table contains an empty line illegal day of month which to me seems entirely appropriate. It does indeed seem perfectly appropriate! Thanks. All of the plots form the org-plot page on worg still work with this patch (which amounts to org-plot's test suite), so I relatively confident that it shouldn't break any existing functionality. One problem with org-plot's attempt to guess the best action in each situation is that the code will get increasingly ugly as these corner cases continue to arise, and as that happens it becomes increasingly difficult to know a-priori if a patch will cause unforeseen problems. Yes, I can imagine. I guess, for Johan's benefit, that it's best to move on to org-babel for the more complex problems leaving the direct gnuplot support for simple cases! Thanks again, eric ___ 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
Re: [Orgmode] Plotting date on xaxis
Thanks guys, the babel version worked perfect so I didn't try the other one thanks! Would it be possible to use python and matplotlib with babel instead of gnuplot? If so, could you just indicate how such a src code block would look like? Babel seems super cool! /Johan On Tue, Feb 23, 2010 at 3:47 PM, Eric Schulte schulte.e...@gmail.comwrote: Hi Johan, You could try plotting your table using standard org-mode date formats which org-plot will understand without any need to specify a timefmt string. #+PLOT: title:Weight ind:1 deps:(2) type:2d with:linespo set:xdata time set:yrange [90:] | Date | Kg | |--+--| | 2010-02-21 Sun | 95.0 | | 2010-02-22 Mon | 93.0 | | 2010-02-23 Tue | 92.0 | | 2010-02-24 Wed | 91.5 | | 2010-02-25 Thu | 91.0 | | 2010-02-26 Fri | 92.0 | Alternatively if you want more control over your plots and more direct access to gnuplot you can use org-babel to pass your table directly to gnuplot as follows. #+results: my-table | Date | Kg | |+--| | 2010-02-21 | 95.0 | | 2010-02-22 | 93.0 | | 2010-02-23 | 92.0 | | 2010-02-24 | 91.5 | | 2010-02-25 | 91.0 | | 2010-02-26 | 92.0 | #+begin_src gnuplot :var data=my-table set xdata time set timefmt '%Y-%m-%d' set yrange [90:] plot data using 1:2 with linespoints title 'Kg' #+end_src Best -- Eric Johan Ekh ekh.jo...@gmail.com writes: Hi all, I try to plot a table looking like this | Date| Kg | |-+| | 2010-02-21 | 95.0 | | 2010-02-22 | 93.0 | | 2010-02-23 | 92.0 | | 2010-02-24 | 91.5 | | 2010-02-25 | 91.0 | | 2010-02-29 | 92.0 | | || with the dates on the xaxis using #+PLOT: title:Weight ind:1 deps:(2) type:2d with:linespo set:xdata time timefmt:%Y-%m-%d set:yrange [90:] but no plot is generated. If I remove set:xdata time, the plot is generated but without interpreting the dates as dates. Can anyone see what I do wrong? Thanks in advance, Johan ___ 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] Plotting date on xaxis
Hi all, I try to plot a table looking like this | Date| Kg | |-+| | 2010-02-21 | 95.0 | | 2010-02-22 | 93.0 | | 2010-02-23 | 92.0 | | 2010-02-24 | 91.5 | | 2010-02-25 | 91.0 | | 2010-02-29 | 92.0 | | || with the dates on the xaxis using #+PLOT: title:Weight ind:1 deps:(2) type:2d with:linespo set:xdata time timefmt:%Y-%m-%d set:yrange [90:] but no plot is generated. If I remove set:xdata time, the plot is generated but without interpreting the dates as dates. Can anyone see what I do wrong? Thanks in advance, Johan ___ 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] Using orgtbl-mode for editing tables in reStructured text
Hi all, I'm using Sphinx to extract docstrings from my python code and create API documentation of my classes and methods. I like to have a small table at the top of each class where all variables are listed. It would be very useful to use the orgtbl-mode to create these tables but the format used by orgtbl-mode is slightly different from tables in reStructured text (which is used by Sphinx). Is there any way to make orgtbl-mode use the same format as reStructured text? E.g. vertical separator lines must start with +--- instead of |--- and some other small differences. Best regards, Johan ___ 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] Table in reStructured text format?
Hi all, is there any way to make org-mode tables in the reStructured text format? E.g. separator lines should start with +--- instead of |---. Best regards, Johan ___ 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
Re: [Orgmode] pstricks in org-mode?
No luck! I did not manage to create an interest in the AucTeX mailing list for using AucTeX preview-latex in org-mode. Does anyone have an idea how to proceed with this? I really think that it would be a good feature to be able to work with pstricks code in org-mode. I'm I the only one to think that way? Best regards, Johan On Thu, Oct 8, 2009 at 4:55 PM, Johan Ekh ekh.jo...@gmail.com wrote: OK! I'll report back. /Johan On Thu, Oct 8, 2009 at 12:25 PM, Carsten Dominik carsten.domi...@gmail.com wrote: On Oct 8, 2009, at 10:32 AM, Johan Ekh wrote: preview-latex in AucTeX works really well I think. It would be nice to use it in org-mode. I'm not a lisp programmer. I would be happy to contribute to org-mode but I need support. Could someone point me in the right direction to start developing such a patch? Or, if someone more skilled than me would like to pick it up and just do it, that would be fine with me! I think you could start by investigating if it would be possible to use preview-LaTeX in a file like an Org-mode file. For this you probably need to ask on the AUCTeX mailing lists. - Carsten //Johan On Mon, Oct 5, 2009 at 7:57 PM, Carsten Dominik carsten.domi...@gmail.com wrote: On Oct 5, 2009, at 7:29 PM, Darlan Cavalcante Moreira wrote: Even graphics made in tikz, that does not use postscript commands, do not appear in DVI viewers. I haven't used the preview-latex with graphics in AucTeX, but if it is able to view graphics made with pstricks, as it appears to be the case, then maybe it is better to first investigate how preview-latex is able to do this before searching for options to pass to dvipng in org-mode. IMHO it would be even better if it was possible to use the original preview-latex from AucTeX instead of reinventing the wheel. :-) I'd be happy to accept a patch! - Carsten Darlan PS: Please, when answering E-Mails do not forget to also CC to the the org mailing list. At Sat, 3 Oct 2009 10:28:37 +0200, Johan Ekh wrote: [1 text/plain; ISO-8859-1 (7bit)] Thanks for sharing with me! Your setup seems to give a good workflow. Before starting to use org-mode I worked with my graphics in emacs using the preview facility in AucTeX. Thus I could develop my picture and easily update the preview to see the effect of my last edit. Since starting to use org-mode I find that I have it open all the time and would like to include it as much as possible in my work flow. Many of my pictures share some content and it would be nice to develop some templates that I can start with when I do my pictures. Pstricks is postscript and usually do not display in dvi viewers. This is probably why dvipng doesn't work. Is there any way I can manipulate org-modes route to a png preview picture? Best regards, Johan On Fri, Oct 2, 2009 at 8:34 PM, Darlan Cavalcante Moreira darc...@gmail.com wrote: From the documentation it seems that org-mode uses dvipng. [[info:org:LaTeX%20fragments][info:org:LaTeX fragments]] But I don't know how it behaves with pstricks. I usually create the graphics in a separated file when I'm working with latex. It's a complete latex file with the necessary preamble that will be later turned into comments when I'm finished and want to actually include the graphic in my document. (using \input{graphic.tex}) When I'm working on it, Emacs occupies half of my screen (or more) and evince occupies the other half. Whenever I compile the document (using pdflatex since I use tikz to draw graphics) the pdf is automatically reloaded by evince. Since I don't rely on the preview-latex for developing the graphics I don't know if it works with tikz. I guess I'll give it a try. ... I tried with the simple example , | \begin{tikzpicture} | \draw (0,0) -- (1,1); | \end{tikzpicture} ` and it does not work. Only a little square is show in the Emacs buffer. Well, this is expected since the package tikz is not included in the temporary .tex file (and neither is pstricks as I could see). After included the usepackage{tikz} in org-format-latex-header the preview is created. However nothing is show, since the graphic generated by tikz (and pstricks) is not present at the DVI stage. This seems to be a limitation of dvipng and not org-mode. Darlan At Fri, 2 Oct 2009 16:53:54 +0200, Johan Ekh wrote: [1.1 text/plain; ISO-8859-1 (7bit)] But is pdflatex also used for rendering the previews in emacs? The most convenient thing for me would be to see the preview while I am developing the picture and then as a last step export it to my latex document. Do you this is possible somehow? Best regards, Johan On Fri, Oct 2, 2009 at 3:28 PM, Darlan Cavalcante Moreira darc...@gmail.com wrote: Remember that because pstricks use postscript commands it is necessary to take the long route in latex (latex-DVI-PS-PDF) instead of just using pdflatex. Therefore
Re: [Orgmode] pstricks in org-mode?
preview-latex in AucTeX works really well I think. It would be nice to use it in org-mode. I'm not a lisp programmer. I would be happy to contribute to org-mode but I need support. Could someone point me in the right direction to start developing such a patch? Or, if someone more skilled than me would like to pick it up and just do it, that would be fine with me! //Johan On Mon, Oct 5, 2009 at 7:57 PM, Carsten Dominik carsten.domi...@gmail.comwrote: On Oct 5, 2009, at 7:29 PM, Darlan Cavalcante Moreira wrote: Even graphics made in tikz, that does not use postscript commands, do not appear in DVI viewers. I haven't used the preview-latex with graphics in AucTeX, but if it is able to view graphics made with pstricks, as it appears to be the case, then maybe it is better to first investigate how preview-latex is able to do this before searching for options to pass to dvipng in org-mode. IMHO it would be even better if it was possible to use the original preview-latex from AucTeX instead of reinventing the wheel. :-) I'd be happy to accept a patch! - Carsten Darlan PS: Please, when answering E-Mails do not forget to also CC to the the org mailing list. At Sat, 3 Oct 2009 10:28:37 +0200, Johan Ekh wrote: [1 text/plain; ISO-8859-1 (7bit)] Thanks for sharing with me! Your setup seems to give a good workflow. Before starting to use org-mode I worked with my graphics in emacs using the preview facility in AucTeX. Thus I could develop my picture and easily update the preview to see the effect of my last edit. Since starting to use org-mode I find that I have it open all the time and would like to include it as much as possible in my work flow. Many of my pictures share some content and it would be nice to develop some templates that I can start with when I do my pictures. Pstricks is postscript and usually do not display in dvi viewers. This is probably why dvipng doesn't work. Is there any way I can manipulate org-modes route to a png preview picture? Best regards, Johan On Fri, Oct 2, 2009 at 8:34 PM, Darlan Cavalcante Moreira darc...@gmail.com wrote: From the documentation it seems that org-mode uses dvipng. [[info:org:LaTeX%20fragments][info:org:LaTeX fragments]] But I don't know how it behaves with pstricks. I usually create the graphics in a separated file when I'm working with latex. It's a complete latex file with the necessary preamble that will be later turned into comments when I'm finished and want to actually include the graphic in my document. (using \input{graphic.tex}) When I'm working on it, Emacs occupies half of my screen (or more) and evince occupies the other half. Whenever I compile the document (using pdflatex since I use tikz to draw graphics) the pdf is automatically reloaded by evince. Since I don't rely on the preview-latex for developing the graphics I don't know if it works with tikz. I guess I'll give it a try. ... I tried with the simple example , | \begin{tikzpicture} | \draw (0,0) -- (1,1); | \end{tikzpicture} ` and it does not work. Only a little square is show in the Emacs buffer. Well, this is expected since the package tikz is not included in the temporary .tex file (and neither is pstricks as I could see). After included the usepackage{tikz} in org-format-latex-header the preview is created. However nothing is show, since the graphic generated by tikz (and pstricks) is not present at the DVI stage. This seems to be a limitation of dvipng and not org-mode. Darlan At Fri, 2 Oct 2009 16:53:54 +0200, Johan Ekh wrote: [1.1 text/plain; ISO-8859-1 (7bit)] But is pdflatex also used for rendering the previews in emacs? The most convenient thing for me would be to see the preview while I am developing the picture and then as a last step export it to my latex document. Do you this is possible somehow? Best regards, Johan On Fri, Oct 2, 2009 at 3:28 PM, Darlan Cavalcante Moreira darc...@gmail.com wrote: Remember that because pstricks use postscript commands it is necessary to take the long route in latex (latex-DVI-PS-PDF) instead of just using pdflatex. Therefore, if you put some pstricks code in the org-file and export to PDF to see the result then this is the reason, since the exporter seems to use pdflatex to process the generated .tex file (I'm assuming this, since I don't see any DVI or PS file created by the exporter). Best, Darlan At Fri, 2 Oct 2009 14:52:33 +0200, Johan Ekh wrote: [1 multipart/alternative (7bit)] [1.1 text/plain; ISO-8859-1 (7bit)] It seems that I can use any latex package that I want except for the pstricks ones. No picture is produced. No error message either. I load the same packages and use the same pstricks code that I have in a regular latex document (on the same computer) and it works in that document. Any ideas? //Johan On Thu, Oct 1, 2009 at 10:46
Re: [Orgmode] pstricks in org-mode?
OK! I'll report back. /Johan On Thu, Oct 8, 2009 at 12:25 PM, Carsten Dominik carsten.domi...@gmail.comwrote: On Oct 8, 2009, at 10:32 AM, Johan Ekh wrote: preview-latex in AucTeX works really well I think. It would be nice to use it in org-mode. I'm not a lisp programmer. I would be happy to contribute to org-mode but I need support. Could someone point me in the right direction to start developing such a patch? Or, if someone more skilled than me would like to pick it up and just do it, that would be fine with me! I think you could start by investigating if it would be possible to use preview-LaTeX in a file like an Org-mode file. For this you probably need to ask on the AUCTeX mailing lists. - Carsten //Johan On Mon, Oct 5, 2009 at 7:57 PM, Carsten Dominik carsten.domi...@gmail.com wrote: On Oct 5, 2009, at 7:29 PM, Darlan Cavalcante Moreira wrote: Even graphics made in tikz, that does not use postscript commands, do not appear in DVI viewers. I haven't used the preview-latex with graphics in AucTeX, but if it is able to view graphics made with pstricks, as it appears to be the case, then maybe it is better to first investigate how preview-latex is able to do this before searching for options to pass to dvipng in org-mode. IMHO it would be even better if it was possible to use the original preview-latex from AucTeX instead of reinventing the wheel. :-) I'd be happy to accept a patch! - Carsten Darlan PS: Please, when answering E-Mails do not forget to also CC to the the org mailing list. At Sat, 3 Oct 2009 10:28:37 +0200, Johan Ekh wrote: [1 text/plain; ISO-8859-1 (7bit)] Thanks for sharing with me! Your setup seems to give a good workflow. Before starting to use org-mode I worked with my graphics in emacs using the preview facility in AucTeX. Thus I could develop my picture and easily update the preview to see the effect of my last edit. Since starting to use org-mode I find that I have it open all the time and would like to include it as much as possible in my work flow. Many of my pictures share some content and it would be nice to develop some templates that I can start with when I do my pictures. Pstricks is postscript and usually do not display in dvi viewers. This is probably why dvipng doesn't work. Is there any way I can manipulate org-modes route to a png preview picture? Best regards, Johan On Fri, Oct 2, 2009 at 8:34 PM, Darlan Cavalcante Moreira darc...@gmail.com wrote: From the documentation it seems that org-mode uses dvipng. [[info:org:LaTeX%20fragments][info:org:LaTeX fragments]] But I don't know how it behaves with pstricks. I usually create the graphics in a separated file when I'm working with latex. It's a complete latex file with the necessary preamble that will be later turned into comments when I'm finished and want to actually include the graphic in my document. (using \input{graphic.tex}) When I'm working on it, Emacs occupies half of my screen (or more) and evince occupies the other half. Whenever I compile the document (using pdflatex since I use tikz to draw graphics) the pdf is automatically reloaded by evince. Since I don't rely on the preview-latex for developing the graphics I don't know if it works with tikz. I guess I'll give it a try. ... I tried with the simple example , | \begin{tikzpicture} | \draw (0,0) -- (1,1); | \end{tikzpicture} ` and it does not work. Only a little square is show in the Emacs buffer. Well, this is expected since the package tikz is not included in the temporary .tex file (and neither is pstricks as I could see). After included the usepackage{tikz} in org-format-latex-header the preview is created. However nothing is show, since the graphic generated by tikz (and pstricks) is not present at the DVI stage. This seems to be a limitation of dvipng and not org-mode. Darlan At Fri, 2 Oct 2009 16:53:54 +0200, Johan Ekh wrote: [1.1 text/plain; ISO-8859-1 (7bit)] But is pdflatex also used for rendering the previews in emacs? The most convenient thing for me would be to see the preview while I am developing the picture and then as a last step export it to my latex document. Do you this is possible somehow? Best regards, Johan On Fri, Oct 2, 2009 at 3:28 PM, Darlan Cavalcante Moreira darc...@gmail.com wrote: Remember that because pstricks use postscript commands it is necessary to take the long route in latex (latex-DVI-PS-PDF) instead of just using pdflatex. Therefore, if you put some pstricks code in the org-file and export to PDF to see the result then this is the reason, since the exporter seems to use pdflatex to process the generated .tex file (I'm assuming this, since I don't see any DVI or PS file created by the exporter). Best, Darlan At Fri, 2 Oct 2009 14:52:33 +0200, Johan Ekh wrote: [1 multipart/alternative (7bit)] [1.1 text/plain; ISO-8859-1
Re: [Orgmode] pstricks in org-mode?
But is pdflatex also used for rendering the previews in emacs? The most convenient thing for me would be to see the preview while I am developing the picture and then as a last step export it to my latex document. Do you this is possible somehow? Best regards, Johan On Fri, Oct 2, 2009 at 3:28 PM, Darlan Cavalcante Moreira darc...@gmail.com wrote: Remember that because pstricks use postscript commands it is necessary to take the long route in latex (latex-DVI-PS-PDF) instead of just using pdflatex. Therefore, if you put some pstricks code in the org-file and export to PDF to see the result then this is the reason, since the exporter seems to use pdflatex to process the generated .tex file (I'm assuming this, since I don't see any DVI or PS file created by the exporter). Best, Darlan At Fri, 2 Oct 2009 14:52:33 +0200, Johan Ekh wrote: [1 multipart/alternative (7bit)] [1.1 text/plain; ISO-8859-1 (7bit)] It seems that I can use any latex package that I want except for the pstricks ones. No picture is produced. No error message either. I load the same packages and use the same pstricks code that I have in a regular latex document (on the same computer) and it works in that document. Any ideas? //Johan On Thu, Oct 1, 2009 at 10:46 PM, Johan Ekh ekh.jo...@gmail.com wrote: Thanks, I'll try it! /Johan On Thu, Oct 1, 2009 at 1:55 PM, Carsten Dominik carsten.domi...@gmail.com wrote: On Oct 1, 2009, at 12:30 AM, Johan Ekh wrote: Hi all, I'm using org-mode to write LaTeX snippets that I later (usually) transfer into a separate latex document. Can I also write and preview pstricks code in org-mode? Also, can I do usepackage(xxx) someway do use LaTeX extensions? #+LaTeX_HEADER: \usepackage{pstricks} or something along those lines. HTH - Carsten [1.2 text/html; ISO-8859-1 (quoted-printable)] [2 text/plain; us-ascii (7bit)] ___ 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] pstricks in org-mode?
Hi all, I'm using org-mode to write LaTeX snippets that I later (usually) transfer into a separate latex document. Can I also write and preview pstricks code in org-mode? Also, can I do usepackage(xxx) someway do use LaTeX extensions? Best regards, Johan ___ 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
Re: [Orgmode] Suport for pictures?
But how do I actually invoke the exporter? There is no latex option available when doing an export. Best regards, Johan 2007/8/8, Bastien [EMAIL PROTECTED]: Hello Johan, Johan Ekh [EMAIL PROTECTED] writes: Sorry for being ignorant, but how do I use the LaTeX exporter? I did not know about it. Can't find it in my version of the documentation. Oops sorry, i should have mentionned it: http://www.cognition.ens.fr/~guerry/u/org-export-latex.el One more question, can I use Pstricks with the latex exporter? The LaTeX exporter just prevents #+BEGIN_LaTeX sections from being converted into LaTeX - i.e. it leaves them as they are. So you can put whatever (La)TeX (and pstricks) code you want inside them. Let me know if you encounter any trouble. Regards, -- Bastien ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Suport for pictures?
Hi all, I'm a new user of org-mode. I wonder if it is possible to include graphics within LaTeX fragments? I'd be interested in using both external eps-files and internal code like Pstricks. Best regards, Johan ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Suport for pictures?
Thanks for your answers Bastien! Sorry for being ignorant, but how do I use the LaTeX exporter? I did not know about it. Can't find it in my version of the documentation. One more question, can I use Pstricks with the latex exporter? Best regards, Johan 2007/8/8, Bastien [EMAIL PROTECTED]: Hi Johan, Johan Ekh [EMAIL PROTECTED] writes: I wonder if it is possible to include graphics within LaTeX fragments? Have a look here: http://staff.science.uva.nl/~dominik/Tools/org/org.html#LaTeX-fragments For HTML export, the \includegraphics{...} won't produce anything. If you embed it in a \begin{figure} environment, this environment will be parsed by the dvipng utility, but AFAIK this program is not able to produce png files from images. For LaTeX export (and i guess you mostly need eps images for this), there are three options: 1. A simple image link [[file:image.eps]] will be converted as: \includegraphics[width=10em]{images.eps} 2. Simple LaTeX insertion: #+LaTeX: \includegraphics[width=5em]{~/images/image.eps} 3. More complex LaTeX insertion: #+BEGIN_LaTeX \begin{figure} \includegraphics[width=5em]{~/images/image.eps} \caption{Some descriptive text here} \end{figure} #+END_LaTeX PS: the LaTeX exporter still doesn't recognize \begin{...} environments when they are not specified by #+BEGIN_LaTeX and #+END_LaTeX delimiters. This will be fixed in the next release. Hope this helps, -- Bastien ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode