Re: [O] Tangling without clutter?
Hi Jos'h, have you looked at the :session header argument? I use it to define environment variables in bash that are used in later code blocks. Something like this: #+BEGIN_SRC sh :session foo export W=world. #+END_SRC #+RESULTS: #+BEGIN_SRC sh :session foo echo Hello $W #+END_SRC If these code blocks are executed in order, the latter returns Hello world. Not sure though, how it interacts with Python. Cheers, Viktor Jos'h Fuller wrote: Hi! It seems like I almost need some variant of the tangle argument to :noweb where syntax references are expanded for evaluation, but not for anything else. Why would you want to tangle out a python src file with an un-expanded noweb reference? Either way, who am I to judge. I've just added a new eval option to the noweb header argument which will expand noweb references *only* during interactive evaluation. Please allow me to explain, I think it's a legitimate use case... I would like to provide a listing of a Python function, then later in the document show a demonstration of how it's used. I just did this when preparing some documentation for another programmer who is porting an application between languages. So I listed the function, then after a discussion, I had a demonstration of how to use the function. I wanted the output from the demonstration to be live, generated from the demonstration code. Therefore, I needed to reference the function defined above. Unfortunately, the reference was expanded during export so that the same block of code appeared /twice/, presenting the reader with something like this: : Here's a function: : def gorking(): : return gork : : Here's how to use the function: : def gorking(): : return gork : : print gorking() : : Which gives us: : gork As you can see, it's rather clumsy to have the function in the output twice. It's not too bad for this example, but anything more than a few lines becomes quite a distraction! This would have been preferable: : Here's a function: : def gorking(): : return gork : : Here's how to use the function: : function-gorking : : print gorking() : : Which gives us: : gork The original %.org file would look like this: : Here's a function: : #+name: function-gorking : #+begin_src python :tangle yes : def gorking(): : return gork : #+end_src : : Here's how to use the function: : #+name: function-gorking-demo : #+begin_src python :tangle yes : function-gorking : : print gorking() : #+end_src : : Which gives us: : #+results: function-gorking-demo : gork Does that explain it better? Thanks! Jos'h
Re: [O] org-odt, org-e-html, org-e-odt needs new maintainers
On 3/15/12 5:49 AM, Jambunathan K wrote: If you would like to bring specific issue to my attention, mail me directly. I am signing off from the list and I will not be keeping track of the issues - specifically org-odt/ELPA ones - posted in this list. Not for good, I hope? Thanks again for the ODT exporter. Yours, Christian
[O] Exporting a presentation to both slides and handouts?
Hello, I'm finishing a presentation with org-mode which is exported as beamer slides. I would like to also export it as a handouts, which basically means changing a couple lines in the preamble. Is there a way to do it from the org-mode file, or do I need to edit the generated LaTeX manually? (If the solution is to have some lines that specify the options and the name of the exported LaTeX file commented out, it would work fine with me.) Thanks, Alan
Re: [O] Tangling without clutter?
At Thu, 15 Mar 2012 07:25:47 +0100, Viktor Rosenfeld wrote: Hi Jos'h, have you looked at the :session header argument? I use it to define environment variables in bash that are used in later code blocks. Something like this: #+BEGIN_SRC sh :session foo export W=world. #+END_SRC #+RESULTS: #+BEGIN_SRC sh :session foo echo Hello $W #+END_SRC If these code blocks are executed in order, the latter returns Hello world. Which is exactly how I was planning to use org babel to prepare a lot of Python-based teaching material. Unfortunately ... Not sure though, how it interacts with Python. ... it interacts with Python in a less than ideal way. In effect, it pretends you typed the code in the Python source block, into Python's standard interactive shell. This leads to problems: Imagine that you want to demonstrate how to write a simple class in Python, and that you wish to follow Python's style guide, which states that Method definitions inside a class are separated by a single blank line. So you present this example code #+begin_src python :session :results output class Foo: def __init__(self, state): self.state = state def get(self): return self.state #+end_src in the hope of writing some explanatory notes about it, before demonstrating its use #+begin_src python :session :results output f = Foo('frustrated') print f.get() #+end_src Unfortunately, the plan is foiled because the class definiton in the first block fails to execute properly. This happens because Python's standard interactive shell (in contrast to Python's non interactive mode) understands blank lines to close all currently open blocks. This results in the =class Foo:= block being closed before any of its components have been defined, at which point the whole thing goes pear-shaped. Currently there are two things you can do to get around this problem. 1. Remove any blank lines which are inside any block in any of your code (resulting in very ugly and heterodox formatting of your Python code: not the sort of thing you want to be doing in tutorials, lectures, documentation, etc.). 2. Hunt down all blank lines which are inside a block, and add enough whitespace to match the indentation of the next non-whitespace line in that block (very tedious and very fragile). Last week I had a short exchange about this, on list, with Eric Schulte, and seem to have persuaded him that the current state of affairs is not the desired one. I am planning to have a look at how the situation can be improved with the aim of providing a patch, but 1. I have zero time to devote to this in the next few weeks. 2. I have never tinkered with babel's internals before, so I cannot guarantee success, or quality of output. In the meantime, I have *slightly* changed my position, since the exchange with Eric. Last week I claimed that what the session mode should do is, essentially, emulate Emacs' python-mode's C-c C-c (execute the code block in the context of the session without choking on blank lines, and without echoing any of the code itself). I stand by this being the desired primary behaviour, but I do admit that an alternative valid (though less important) use case would be to have the code in the src block be 'typed' into a standard interactive session, and have the whole session (prompt, input, output) be produced as the result. (IIRC, this currently doesn't work properly either: the prompts and the inputs are out of sync, and you get a horrible mess.)
Re: [O] Exporting a presentation to both slides and handouts?
At Thu, 15 Mar 2012 09:14:00 +0100, Alan Schmitt wrote: Hello, I'm finishing a presentation with org-mode which is exported as beamer slides. I would like to also export it as a handouts, which basically means changing a couple lines in the preamble. On a related note, I'm looking to produce both slides (sparse) and notes (dense) from a single org file. (Something akin to S5's handout class, though I would be happy for the slides and notes to be completely separate products, as long as their contents are extracted from the same org source). Any hints on org mode goodies which can help with this sort of thing?
[O] [PATCH] LaTeX export: added support for sidewaystable from the rotating package
Hi all, below you find a small patch that allows to use sidewaystable during latex export, i.e. this file should export as expected: ,[ test.org ] | * Test sidewaystable | | #+CAPTION: A sideways table | #+ATTR_LaTeX: sidewaystable | | The | header | | |-+| | | entries | here | | | * LaTeX Options :noexport: | #+LATEX_HEADER: \usepackage{rotating} ` This is a patch for the old LaTeX exporter. Still, it might lead to cleaner documents for somebody. Cheers, Andreas --- lisp/org-latex.el | 12 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 03664b4..aec4f1d 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1917,10 +1917,14 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER. 'org-label raw-table) longtblp (and attr (stringp attr) (string-match \\longtable\\ attr)) - tblenv (if (and attr (stringp attr) - (or (string-match (regexp-quote table*) attr) - (string-match \\multicolumn\\ attr))) -table* table) + tblenv (if (and attr (stringp attr)) +(cond ((string-match \\sidewaystable\\ attr) + sidewaystable) + ((or (string-match (regexp-quote table*) attr) + (string-match \\multicolumn\\ attr)) + table*) + (t table)) + table) tabular-env (if (and attr (stringp attr) (string-match \\(tabular.\\) attr)) -- 1.7.9.1
Re: [O] Org-mode and icicles - tags
Hi Nick, On Wed, Mar 14, 2012 at 20:12, Nick Bell m...@nickbell.org wrote: Does anyone else use Icicles and Org-mode, and if so have they found a way around this? I would suggest you either include the icicles author (Drew Adams) in the CC: or add the Emacs general mailing list help-gnu-em...@gnu.org. -- Suvayu Open source is the future. It sets us free.
Re: [O] Org-mode and icicles - tags
On 15/03/12 09:58, suvayu ali wrote: Hi Nick, On Wed, Mar 14, 2012 at 20:12, Nick Bellm...@nickbell.org wrote: Does anyone else use Icicles and Org-mode, and if so have they found a way around this? I would suggest you either include the icicles author (Drew Adams) in the CC: or add the Emacs general mailing list help-gnu-em...@gnu.org. Thanks Suvayu, in the end I just switched back to Ido-mode which feels less crazily complicated anyway. Nick
Re: [O] Org-mode and icicles - tags
On Thu, Mar 15, 2012 at 11:01, Nick Bell m...@nickbell.org wrote: I would suggest you either include the icicles author (Drew Adams) in the CC: or add the Emacs general mailing list help-gnu-em...@gnu.org. Thanks Suvayu, in the end I just switched back to Ido-mode which feels less crazily complicated anyway. Okay, my suggestion was simply because I think Drew doesn't use org-mode, but e is very helpful and active on the general Emacs mailing list. -- Suvayu Open source is the future. It sets us free.
Re: [O] org-odt, org-e-html, org-e-odt needs new maintainers
Hi Jambunathan, On Thu, Mar 15, 2012 at 08:50, Christian Moe m...@christianmoe.com wrote: On 3/15/12 5:49 AM, Jambunathan K wrote: If you would like to bring specific issue to my attention, mail me directly. I am signing off from the list and I will not be keeping track of the issues - specifically org-odt/ELPA ones - posted in this list. Not for good, I hope? Thanks again for the ODT exporter. Thanks a lot for this wonderful exporter. :) -- Suvayu Open source is the future. It sets us free.
Re: [O] Timezone/Encoding issues when exporting as ics and importing to Google Calendar
Tassilo Horn tass...@member.fsf.org writes: Nick Dokos nicholas.do...@hp.com writes: Hi Nick, 2. Timezone: I live in Germany and thus all my timestamps are CEST. The exported ics file properly declare X-WR-TIMEZONE:CEST. However, since we also have DST, in summer all appointments show up 2 hours late, and in winter my appointments show up 1 hour late. Is there anything I can do about it? The google calendar settings have CEST as timezone... I don't know if this is the problem you are running into, but icalendar--convert-tz-offset is buggy as-is: it looks as if additional work was planned for it, but it never got done. In particular, it assumes there is an RRULE in the icalendar file and does not translate timezones otherwise. I don't know the iCalendar spec so I don't know what an RRULE is. But as far as I can see, `icalendar--convert-tz-offset' is used while converting an ics file to the diary format. Reading your mail again, I guess you are having problems in the other direction, Right. ;-) but IME, if there is a bug somewhere, there is at least one more going the other way :-) Probably. Looking at the ical spec, this X-WR-TIMEZONE property is an optional extension nobody has to obey. Org exports the times like DTSTART:20110317T091500 which means local time. So probably the google server has UTC as local time, my preferences say I want to use Berlin-time, so all events get two hours added in summer. Now I've tried to explicitly set the timezone information using org-icalendar-timezone Europe/Berlin org-icalendar-date-time-format ;TZID=%Z:%Y%m%dT%H%M%S and now the events are like DTSTART;TZID=EUROPE/BERLIN:20110322T14 DTEND;TZID=EUROPE/BERLIN:20110322T16 However, that doesn't change anything in google calendar... Finally, I've set GMT+0 as my current timezone in google calendar, and now my appointments are shown correctly. Ok, that's not really a solution but only a workaround... Oh, there's another possibility; setting org-icalendar-date-time-format :%Y%m%dT%H%M%SZ which then seems to correctly recalculate the local times in my org files to GMT. So for an entry that starts at 14:30 and ends an 16:30, that's what exported. DTSTART:20100518T123000Z DTEND:20100518T143000Z Looks good, I'd say. But when importing that to google calendar, it shows that entry starting at 16:30 and ending at 18:30 Berlin-time. Now what's that?!? Oh, it seems to be some caching issue. Although the new ics file is on the server now, it seems that a reload of google calendar doesn't reimport all imported calendars. So I'll wait a bit and report back what methods work (explicit TZIDs and/or export as UTC). Did you ever find out what methods worked best? I just bumped into the same problem with 30boxes, which shows DTSTART:20120228T18Z as 19:00 (should be 18:00) and DTSTART:20120228T18 as 00:00 the day after (the web calender is set to GMT+1, the exported ics shows X-WR-TIMEZONE:CET) I guess I'll have to upgrade my org-mode version (6.33x) to get org-icalendar-date-time-format? best regards, Kevin Brubeck Unhammer
[O] [babel] [bug] bug in R-specific header argument for graphics driver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 When giving the header argument :title: the graph is not produced in a file: * This works Display boxplot of spread of Mff over time for each release strategy :PROPERTIES: :results: graphics :file: SpreadOverTime.pdf :width: 4 :height: 8 :pointsize: 8 :END: #+begin_src R plot(runif(100)) #+end_src * This doesn't Display boxplot of spread of Mff over time for each release strategy :PROPERTIES: :results: graphics :file: test.pdf :width: 4 :height: 8 :pointsize: 8 :title: test :END: #+begin_src R plot(runif(100)) #+end_src Error message: Error in pdf(file = test.pdf, width = 4, height = 8, pointsize = 8, : object 'test' not found Calls: Anonymous - Anonymous - pdf Execution halted Cheers, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9h34AACgkQoYgNqgF2egpEAgCfWUPrimW6av6/m7PU+KgBnNu+ BegAn2ZWnAhWvflhDKw8225qt9vCkqJg =4gNf -END PGP SIGNATURE-
[O] GSOC Proposal
Hello org-mode, I am Abhiram studying 3rd year B.Tech in GRIET at India. I am enthusiastic towards GSOC 2012 as it brings the gap down , between students and developers mainly. I would like to participate with org-mode . I would like to here from the respected mentor. I would like to know more about org-mode. Currently , i am going through the ideas list of org-mode. I would be gracefull , for the help you guys give me. Regards, Abhiram
[O] Including SVG images in html document
Hello, according to org mode documentation it is possible to include SVG images while exporting to Docbook, but is it possible to use them in html export too? Small example: #+TITLE: Export to HTML with SVG image #+AUTHOR: Vladimir Lomov * SVG image in HTML document #+name: gnuplot-img1 #+begin_src gnuplot :exports both set term svg set output gnuplot-img1.svg plot [-pi:pi] sin(x) #+end_src The graph of \sin(x) function in range [-\pi;\pi] [[file:gnuplot-img1.svg]] --- WBR, Vladimir Lomov -- No one can feel as helpless as the owner of a sick goldfish.
Re: [O] GSOC Proposal
Abhiram Ampabathina abhiram.ampabath...@gmail.com writes: Hello Abhiram, I am Abhiram studying 3rd year B.Tech in GRIET at India. I am enthusiastic towards GSOC 2012 as it brings the gap down , between students and developers mainly. I would like to participate with org-mode . I would like to here from the respected mentor. I would like to know more about org-mode. Currently , i am going through the ideas list of org-mode. I would be gracefull , for the help you guys give me. I'm trying to participate as a student in GSoC 2012 just like you, but I was a bit involved in the application process. Tomorrow is the day when Google announces the successfull organisations on the gsoc2012 homepage, lets hope Org Mode will be among them. If not, there is still a chance to go back under the GNU umbrella and get a few slots there - if GNU succeeded with its application. If you have a proposal for a project, we can still put it on the ideas page today, although it might be a bit late for the Google selection process. Otherwise I would suggest to wait until tomorrow and watch the gsoc2012 homepage, and then (in case Org Mode made it) apply for a specific proposal from the ideas list - or develop your own idea with a potential mentor. -- cheers, Thorsten
Re: [O] Exporting a presentation to both slides and handouts?
On Thu, Mar 15, 2012 at 3:49 AM, Jacek Generowicz jacek.generow...@cern.ch wrote: At Thu, 15 Mar 2012 09:14:00 +0100, Alan Schmitt wrote: Hello, I'm finishing a presentation with org-mode which is exported as beamer slides. I would like to also export it as a handouts, which basically means changing a couple lines in the preamble. On a related note, I'm looking to produce both slides (sparse) and notes (dense) from a single org file. (Something akin to S5's handout class, though I would be happy for the slides and notes to be completely separate products, as long as their contents are extracted from the same org source). Any hints on org mode goodies which can help with this sort of thing? So are you just looking for something to automate this? It seems that the generation of the beamer slides themselves are the hard part and, as you say, it would be pretty easy to tweak the resultant .tex file to give you handouts. Would that work? You can add LaTeX class options to org-mode, and so you could export once for the beamer presentation and then export again with the handout class option added? #+latex_class_options: [handout] which produces: \documentclass[handout]{beamer} in the resultant file. I haven't made handouts before, but this email got me interested. It seems that all this option does is flatten the transitions and overlays and whatnot? From there it seems one still needs to do something to the file to layout the handouts n-up on a page. So... if you don't have overlays, perhaps you don't need to do anything to the presentation at all. Just use a new document to layout the handouts how you want? I also stumbled upon pdfjam, which looks like it aims to accomplish this step more easily: http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic-research/firth/software/pdfjam They have this example: --- A useful application of pdfjam is for producing a handout from a file of presentation slides. For slides made with the standard 4:3 aspect ratio a nice 6-up handout on A4 paper can be made by pdfjam --nup 2x3 --frame true --noautoscale false --delta 0.2cm 0.3cm \ --scale 0.95 myslides.pdf --outfile myhandout.pdf --- Good luck! John
[O] GSOC 2012 Proposal
Hello Orgmode, I am Abhiram. I introduced myself in the mailing list earlier. I have gone through the ideas list of org-mode for GSOC 2012. The idea that i liked was to implement real web programming with org mode and Pico lisp. The idea is to turn the current web programming environment to Picolisp along with some org-mode. I would like to take up this project for GSOC under Org-mode. It would be awesome if the concerned mentor and i work for preparation of the project. And also, i would like to know more about the project like where should be the picolisp environment should be setup, for what should the environment is(for orgmode.org website or for anything other ). Hope to here from you soon, Regards, Abhiram
Re: [O] [PATCH] LaTeX export: added support for sidewaystable from the rotating package
On Thu, Mar 15, 2012 at 4:15 AM, Andreas Leha andreas.l...@med.uni-goettingen.de wrote: Hi all, below you find a small patch that allows to use sidewaystable during latex export, i.e. this file should export as expected: ,[ test.org ] | * Test sidewaystable | | #+CAPTION: A sideways table | #+ATTR_LaTeX: sidewaystable | | The | header | | |-+| | | entries | here | | | * LaTeX Options :noexport: | #+LATEX_HEADER: \usepackage{rotating} ` Cool. I use this on occasion and found that this also works (assuming you have \usepackage{rotating}, as you show): - #+latex: \begin{sidewaystable} | a | b | c | |---+---+---| | 1 | 2 | 3 | #+latex: \end{sidewaystable} - Thanks! John This is a patch for the old LaTeX exporter. Still, it might lead to cleaner documents for somebody. Cheers, Andreas --- lisp/org-latex.el | 12 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 03664b4..aec4f1d 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1917,10 +1917,14 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER. 'org-label raw-table) longtblp (and attr (stringp attr) (string-match \\longtable\\ attr)) - tblenv (if (and attr (stringp attr) - (or (string-match (regexp-quote table*) attr) - (string-match \\multicolumn\\ attr))) - table* table) + tblenv (if (and attr (stringp attr)) + (cond ((string-match \\sidewaystable\\ attr) + sidewaystable) + ((or (string-match (regexp-quote table*) attr) + (string-match \\multicolumn\\ attr)) + table*) + (t table)) + table) tabular-env (if (and attr (stringp attr) (string-match \\(tabular.\\) attr)) -- 1.7.9.1
Re: [O] Exporting a presentation to both slides and handouts?
On 15 mars 2012, at 14:26, John Hendy wrote: So are you just looking for something to automate this? It seems that the generation of the beamer slides themselves are the hard part and, as you say, it would be pretty easy to tweak the resultant .tex file to give you handouts. Would that work? Yes, this is what I'm currently doing. More precisely, I - copy the tex file to another name - edit the prelude You can add LaTeX class options to org-mode, and so you could export once for the beamer presentation and then export again with the handout class option added? #+latex_class_options: [handout] which produces: \documentclass[handout]{beamer} in the resultant file. Yes. When I don't want it anymore, I can remove it. But I'd rather keep it for next time. Is there a way to comment out a local setup line? (Add an extra '#' at the beginning?) I haven't made handouts before, but this email got me interested. It seems that all this option does is flatten the transitions and overlays and whatnot? From there it seems one still needs to do something to the file to layout the handouts n-up on a page. Yes, what I'm doing is this (using a package described here http://www.guidodiepen.nl/2009/07/creating-latex-beamer-handouts-with-notes/): #+LaTeX_HEADER: \usepackage{handoutWithNotes} #+LaTeX_HEADER: \pgfpagesuselayout{3 on 1 with notes}[a4paper,border shrink=5mm] #+LaTeX_HEADER: \renewcommand\pgfsetupphysicalpagesizes{% #+LaTeX_HEADER: \pdfpagewidth\pgfphysicalwidth\pdfpageheight\pgfphysicalheight% #+LaTeX_HEADER: } (The last 3 lines are for xelatex compatibility.) Just use a new document to layout the handouts how you want? I also stumbled upon pdfjam, which looks like it aims to accomplish this step more easily: http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic-research/firth/software/pdfjam They have this example: --- A useful application of pdfjam is for producing a handout from a file of presentation slides. For slides made with the standard 4:3 aspect ratio a nice 6-up handout on A4 paper can be made by pdfjam --nup 2x3 --frame true --noautoscale false --delta 0.2cm 0.3cm \ --scale 0.95 myslides.pdf --outfile myhandout.pdf --- Thanks for the suggestion. I could use that as well indeed. Alan
Re: [O] GSOC 2012 Proposal
Hi Abhiram, thanks for your email -- great to know that Org/GSOC is attracting more students. The Picolisp/org-mode project is already taken by another student, Thorsten, who convinced me to go for GSOC this year. I'm sure Thorsten will welcome your contributions and reply any question you might have about the Picolisp setup and the numerous ideas/applications behind this project. Perhaps you can work out something else? or even better: coordinate with Thorsten to articulate a related idea? Students should apply in April -- so this is a good time to discuss potential project and to write them down on Worg. Good luck! -- Bastien
Re: [O] Exporting a presentation to both slides and handouts?
At Thu, 15 Mar 2012 08:26:13 -0500, John Hendy wrote: On Thu, Mar 15, 2012 at 3:49 AM, Jacek Generowicz jacek.generow...@cern.ch wrote: At Thu, 15 Mar 2012 09:14:00 +0100, Alan Schmitt wrote: Hello, I'm finishing a presentation with org-mode which is exported as beamer slides. I would like to also export it as a handouts, which basically means changing a couple lines in the preamble. On a related note, I'm looking to produce both slides (sparse) and notes (dense) from a single org file. (Something akin to S5's handout class, though I would be happy for the slides and notes to be completely separate products, as long as their contents are extracted from the same org source). Any hints on org mode goodies which can help with this sort of thing? So are you just looking for something to automate this? It seems that the generation of the beamer slides themselves are the hard part and, as you say, it would be pretty easy to tweak the resultant .tex file to give you handouts. Would that work? You can add LaTeX class options to org-mode, and so you could export once for the beamer presentation and then export again with the handout class option added? #+latex_class_options: [handout] which produces: \documentclass[handout]{beamer} in the resultant file. I haven't made handouts before, but this email got me interested. It seems that all this option does is flatten the transitions and overlays and whatnot? From there it seems one still needs to do something to the file to layout the handouts n-up on a page. So... if you don't have overlays, perhaps you don't need to do anything to the presentation at all. Just use a new document to layout the handouts how you want? I also stumbled upon pdfjam, which looks like it aims to accomplish this step more easily: http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic-research/firth/software/pdfjam They have this example: --- A useful application of pdfjam is for producing a handout from a file of presentation slides. For slides made with the standard 4:3 aspect ratio a nice 6-up handout on A4 paper can be made by pdfjam --nup 2x3 --frame true --noautoscale false --delta 0.2cm 0.3cm \ --scale 0.95 myslides.pdf --outfile myhandout.pdf --- Although I (who wrote the followup to the OP) can't speak for Alan (the OP), it seems that his requirement is different from mine. It looks like you are addressing Alan's requirement. Perhaps a few more words to explain what I'm after wouldn't go amiss. When giving, talks, presentations, lectures, tutorials, etc. I would like to have sparse slides, whose main purpose is to establish an order for the talk (remind me what to say next), and to highlight the key messages. They need to be easily legible from the back of the room and should not drown the listeners in detail. By this very nature, they are almost useless as a handout, because their information content is visible. I want the handout to go into detail: it should contain pretty much anything that I might say in the talk while any given slide is being displayed, as well as anticipating any questions that might be raised in relation to that slide. But the important thing is that the slides an the handout belong together: they are the same material, presented in (essentially) the same order, the only difference being that the slides are a view from 1 ft, while the handout is the real thing. You might think of the slides as the highlights of the handout. I've done this with S5 in the past, where it looks like this: div class=slide h1Broad Topic/h1 ul class=incremental li My first point div class=handout A few additional words/div/li li My second point div class=handout My second point is a really involved one, so here I might write many paragraphs, explaining it in great detail. /div /li li My third point, which doesn't need any further explanation/li /ul div class=handout Some more stuff, which isn't directly pertinent to any of the first three specific points, but pertains to the Broad Topic discussed on this slide. Again, there might be many paragraphs or even pages here, source code, graphs, bibliography, etc. /div /div Anything belonging to the handout class, will *not* be displayed on the slides, everything else will appear on the slides. In summary, what appears on the slides is entirely different from what appears on the handout, (though the former might be a subset of the latter), but the contents of both documents should be extracted from the same flow of information in a single org file. (Also, I'm not necessarily committed to LaTeX-based export options: I am approximately equally interested in HTML-based ones too.) If anybody has any experience with, or ideas about this sort of thing, I'd love to hear them.
Re: [O] Exporting a presentation to both slides and handouts?
On 15 mars 2012, at 15:11, Jacek Generowicz wrote: Anything belonging to the handout class, will *not* be displayed on the slides, everything else will appear on the slides. Could you play with export tags? http://orgmode.org/manual/Selective-export.html#Selective-export Then setting the ~org-export-select-tags~ or ~org-export-exclude-tags~ could get you selective export (for instance, excluding the ~handout~ tag when exporting slides). (I would want the same thing for local setup lines, the one that start with ~#+~ …) Alan
Re: [O] Including SVG images in html document
Vladimir Lomov lomov...@gmail.com wrote: Hello, according to org mode documentation it is possible to include SVG images while exporting to Docbook, but is it possible to use them in html export too? Small example: #+TITLE: Export to HTML with SVG image #+AUTHOR: Vladimir Lomov * SVG image in HTML document #+name: gnuplot-img1 #+begin_src gnuplot :exports both set term svg set output gnuplot-img1.svg plot [-pi:pi] sin(x) #+end_src The graph of \sin(x) function in range [-\pi;\pi] [[file:gnuplot-img1.svg]] It works if you add a :session *G* header argument to the code block - without it, I get a blank image. I'm not sure what the rules are, so I can't say whether it should work without :session. Nick
Re: [O] Including SVG images in html document
Nick Dokos nicholas.do...@hp.com wrote: Vladimir Lomov lomov...@gmail.com wrote: Hello, according to org mode documentation it is possible to include SVG images while exporting to Docbook, but is it possible to use them in html export too? Small example: #+TITLE: Export to HTML with SVG image #+AUTHOR: Vladimir Lomov * SVG image in HTML document #+name: gnuplot-img1 #+begin_src gnuplot :exports both set term svg set output gnuplot-img1.svg plot [-pi:pi] sin(x) #+end_src The graph of \sin(x) function in range [-\pi;\pi] [[file:gnuplot-img1.svg]] It works if you add a :session *G* header argument to the code block - without it, I get a blank image. I'm not sure what the rules are, so I can't say whether it should work without :session. No, that's wrong: it seems to produce a blank image the first time that the block is executed, but it works if it is executed a second time (with or without :session). Not sure why. Nick
Re: [O] Exporting a presentation to both slides and handouts?
Hi Jacek, Jacek Generowicz wrote: When giving, talks, presentations, lectures, tutorials, etc. I would like to have sparse slides, whose main purpose is to establish an order for the talk (remind me what to say next), and to highlight the key messages. They need to be easily legible from the back of the room and should not drown the listeners in detail. By this very nature, they are almost useless as a handout, because their information content is visible. I want the handout to go into detail: it should contain pretty much anything that I might say in the talk while any given slide is being displayed, as well as anticipating any questions that might be raised in relation to that slide. But the important thing is that the slides an the handout belong together: they are the same material, presented in (essentially) the same order, the only difference being that the slides are a view from 1 ft, while the handout is the real thing. You might think of the slides as the highlights of the handout. Did you look at the Notes? See 12.6.6 Beamer class export of http://www.bookshelf.jp/texi/org/org_12.html#SEC197, and the possility to use C-c C-b n/N (with heading ignored or not). Best regards, Seb -- Sebastien Vauban
Re: [O] I'm tripping over #+BABEL: vs. #+PROPERTY:
Hi Nick and Eric, Nick Dokos wrote: Eric Schulte eric.schu...@gmx.com wrote: Did you press C-c C-c on each property line after it was written? Just to clarify: do I really have to C-c C-c on each line? If I add a bunch of them and then do C-c C-c on one of them, shouldn't that be enough to refresh the setup? I got no reaction on my idea of automagic C-c C-c (on 2012-03-04 Sun, see http://www.mail-archive.com/emacs-orgmode@gnu.org/msg52739.html): The automagic C-c C-c should be NOT[1] done after each key press or some such. That certainly would be a killer feature, in its real acception: performance would be unbearable. In my mind, automatically (re-)parsing the meta options should be each time the user presses `C-c C-v C-e' (eval code blocks); that is, when the user expects his options to be taken into account. Does it make sense? Best regards, Seb Footnotes: [1] This word was missing (in the original post)! -- Sebastien Vauban
[O] question about org2blog and latex
Hello, I am working on blogging using org2blog, allowing me to update my wordpress blog with org-mode. All is working well except latex. I was expecting latex images but instead just get things like: $latex z * k^\theta$ The header to my blogpost.org file has #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: en #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+LINK_UP: #+LINK_HOME: #+XSLT: Am I doing something wrong? Thanks, Stephen
Re: [O] I'm tripping over #+BABEL: vs. #+PROPERTY:
Sebastien Vauban wxhgmqzgw...@spammotel.com wrote: Hi Nick and Eric, Nick Dokos wrote: Eric Schulte eric.schu...@gmx.com wrote: Did you press C-c C-c on each property line after it was written? Just to clarify: do I really have to C-c C-c on each line? If I add a bunch of them and then do C-c C-c on one of them, shouldn't that be enough to refresh the setup? I got no reaction on my idea of automagic C-c C-c (on 2012-03-04 Sun, see http://www.mail-archive.com/emacs-orgmode@gnu.org/msg52739.html): The automagic C-c C-c should be NOT[1] done after each key press or some such. That certainly would be a killer feature, in its real acception: performance would be unbearable. In my mind, automatically (re-)parsing the meta options should be each time the user presses `C-c C-v C-e' (eval code blocks); that is, when the user expects his options to be taken into account. Does it make sense? Best regards, Seb Footnotes: [1] This word was missing (in the original post)! Well, it might make sense but you can try it out and let us know: - make files with 10, 100, 1000 trivial (or even empty) code blocks, just enough to make sure that org-babel-execute-maybe is really called on them: I think that it will be called even on empty code blocks, but I'm not sure if there is some optimization in there. - measure the time it takes to export each one to html (say). - add a call to org-mode-restart into org-babel-execute-maybe, and time the same operation again: how significant is the slowdown? If the slowdown is bearable in these cases, then it will be bearable in realistic situations, where block execution is going to be a much more significant fraction of the total. BTW, what's the biggest file you (all, not just Seb) have in terms of the number of code blocks it contains? In my case, the largest one had about two dozen code blocks, so the 100 case would easily cover me, but I suspect there are much bigger ones out there. Nick
Re: [O] I'm tripping over #+BABEL: vs. #+PROPERTY:
Nick Dokos nicholas.do...@hp.com writes: Sebastien Vauban wxhgmqzgw...@spammotel.com wrote: Hi Nick and Eric, Nick Dokos wrote: Eric Schulte eric.schu...@gmx.com wrote: Did you press C-c C-c on each property line after it was written? Just to clarify: do I really have to C-c C-c on each line? If I add a bunch of them and then do C-c C-c on one of them, shouldn't that be enough to refresh the setup? I got no reaction on my idea of automagic C-c C-c (on 2012-03-04 Sun, see http://www.mail-archive.com/emacs-orgmode@gnu.org/msg52739.html): The automagic C-c C-c should be NOT[1] done after each key press or some such. That certainly would be a killer feature, in its real acception: performance would be unbearable. In my mind, automatically (re-)parsing the meta options should be each time the user presses `C-c C-v C-e' (eval code blocks); that is, when the user expects his options to be taken into account. Does it make sense? Best regards, Seb Footnotes: [1] This word was missing (in the original post)! Well, it might make sense but you can try it out and let us know: - make files with 10, 100, 1000 trivial (or even empty) code blocks, just enough to make sure that org-babel-execute-maybe is really called on them: I think that it will be called even on empty code blocks, but I'm not sure if there is some optimization in there. - measure the time it takes to export each one to html (say). - add a call to org-mode-restart into org-babel-execute-maybe, and time the same operation again: how significant is the slowdown? If the slowdown is bearable in these cases, then it will be bearable in realistic situations, where block execution is going to be a much more significant fraction of the total. BTW, what's the biggest file you (all, not just Seb) have in terms of the number of code blocks it contains? In my case, the largest one had about two dozen code blocks, so the 100 case would easily cover me, but I suspect there are much bigger ones out there. Hi Nick, 118 source code blocks and growing. Tom Nick -- Thomas S. Dye http://www.tsdye.com
[O] Capture the mouse-highlight help-text in a file?
* I know that this will toggle the mouse-highlight messages that pop-up when you move a mouse over a LINK: in OrgMode: (setq mouse-highlight (not mouse-highlight)) ** Now, is there a simple way to send the messages that pop-up to a file? *** Maybe to a FIFO?
Re: [O] question about org2blog and latex
Stephen J. Barr stephenjb...@gmail.com wrote: Hello, I am working on blogging using org2blog, allowing me to update my wordpress blog with org-mode. All is working well except latex. I was expecting latex images but instead just get things like: $latex z * k^\theta$ Not sure what that latex is doing in there. The following works as normal HTML for me: --8---cut here---start-8--- * foo Here's a formula $\int_0^\infty e^{-x^2} dx = {{\sqrt{\pi}}\over{2}}$ $latex z * k^\theta$ --8---cut here---end---8--- A few things: the default way to export fragments is through MathJax: there may be some sort of a setup problem that prevents MathJax from working with the blogging stuff. You might want to fall back to png images and see if that works better for you (you'll need dvipng), although that's usually seen as a step back. The preferred way to enter math in latex (and in org) is with \(...\) for inline formulas and \[...\] for displayed ones. $...$ will work with certain restrictions noted in the org docs (see below) for the inline case, $$...$$ does *not* work for the displayed case (it's not even legal LaTeX). C-h v org-export-with-LaTeX-fragments RET has the details. (info (org) LaTeX fragments) has more on $...$, mathJax etc. Nick The header to my blogpost.org file has #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: en #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+LINK_UP: #+LINK_HOME: #+XSLT: Am I doing something wrong? Thanks, Stephen o
Re: [O] Capture the mouse-highlight help-text in a file?
brian powell briangpowel...@gmail.com wrote: * I know that this will toggle the mouse-highlight messages that pop-up when you move a mouse over a LINK: in OrgMode: (setq mouse-highlight (not mouse-highlight)) ** Now, is there a simple way to send the messages that pop-up to a file? They are already in a file: the org file that contains the link. A link like this [[file:foo.txt][foo]] pops up a LINK: file:foo.txt balloon, so a suitable grep/sed combination suffices. But I suspect that this is not a satisfactory answer: what exactly are you trying to do? Nick *** Maybe to a FIFO? Alternatives:
[O] Mail composed using emacs --- saving a copy in an org file.
I am partial to just opening a mail buffer and writing email in Emacs. Just that. However, it would be great to save a copy in an org file. An emacs FAQ suggests sending a BCC or FCC to oneself. What I want is a copy stored in an org-mode subtree, with a convenient headline indicating the name of the recipient and the date. So far, I haven't gotten my head around the idea of using BABEL, and I still like text for email. My experiments with GNUS have not been very successful. So far. I apologize for the naive level of this and some of my other questions. Though I may not be getting the maximum usefulness of all of org-mode's features, those features I do use are awesome. Thank you. Alan Davis
Re: [O] Mail composed using emacs --- saving a copy in an org file.
Hi! You could try doing something with org-capture and the org-capture-templates so that you would be creating your email from the start as an org tree entry under the appropriate location. You can override the org-capture-before-finalize hook (see org-capture.el) to send the mail when you're done typing in the indirect buffer and hit C-c C-c (or org-capture-finalize). I have org-capture set up so I can use it immediately from anywhere in Emacs with the C-cc keys: (define-key global-map \C-cc 'org-capture) That combined with a suitable template and the hook override might give you what you're looking for. Hope this helps! Jos'h Fuller, Production Programmer p: 416.682.5200 x5395 | f: 416.682.5209 | Arc Productions Ltd. | 230 Richmond Street East | Toronto, ON M5A 1P4 | www.arcproductions.com -Original Message- From: emacs-orgmode-bounces+jos'h.fuller=arcproductions@gnu.org [mailto:emacs-orgmode-bounces+jos'h.fuller=arcproductions@gnu.org] On Behalf Of Alan E. Davis Sent: Thursday, March 15, 2012 1:24 PM To: org-mode Subject: [O] Mail composed using emacs --- saving a copy in an org file. I am partial to just opening a mail buffer and writing email in Emacs. Just that. However, it would be great to save a copy in an org file. An emacs FAQ suggests sending a BCC or FCC to oneself. What I want is a copy stored in an org-mode subtree, with a convenient headline indicating the name of the recipient and the date. So far, I haven't gotten my head around the idea of using BABEL, and I still like text for email. My experiments with GNUS have not been very successful. So far. I apologize for the naive level of this and some of my other questions. Though I may not be getting the maximum usefulness of all of org-mode's features, those features I do use are awesome. Thank you. Alan Davis
Re: [O] Capture the mouse-highlight help-text in a file?
* Thanks, Nick--I have been pursuing that idea--maybe just extract the regexp, sed/grep etc. ** But I was just thinking maybe there is a simple way to capture the pop up LINK: file:foo.txt balloon as you put it--into a file or fifo. *** Then all sorts of things could be done with it--I'm thinking maybe OrgMode could be used with the lights out/if your blind/screen blinks out---well, OrgMode could be partially used...one could pipe it to a text-to-speech program for example---and/or logging where the mouse has been in an OrgMode document. On Thu, Mar 15, 2012 at 1:06 PM, Nick Dokos nicholas.do...@hp.com wrote: brian powell briangpowel...@gmail.com wrote: * I know that this will toggle the mouse-highlight messages that pop-up when you move a mouse over a LINK: in OrgMode: (setq mouse-highlight (not mouse-highlight)) ** Now, is there a simple way to send the messages that pop-up to a file? They are already in a file: the org file that contains the link. A link like this [[file:foo.txt][foo]] pops up a LINK: file:foo.txt balloon, so a suitable grep/sed combination suffices. But I suspect that this is not a satisfactory answer: what exactly are you trying to do? Nick *** Maybe to a FIFO? Alternatives:
[O] Latex Listings Floats
Folks, I've had to fight in the past to set placement on every graphic I include in a Latex document to insert *RIGHT HERE* instead of floating to the end of the section. I just encountered this issue on source listings (listing / lstlisting), and can't seem to get the placement to stick. Does anyone know how to force a global default to force all placements to *RIGHT HERE*? I am including the float package, because it adds the H option versus h. Now I just need a way to set a global default. Thanks. -- Russell Adamsrlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
Re: [O] Mail composed using emacs --- saving a copy in an org file.
I thought of this too. But the problem is that when opening an indirect buffer under an org tree entry, or even opening a capture buffer, the org star heading appears at the top of the buffer. Whereas to send e-mail, at least using the mail-send command I've been using, the e-mail header (recipient, subject header, etc) needs to be at the very top of the buffer. You could always enter the e-mail headers, send the e-mail, then delete them again. But there must be a better solution. On Thu, Mar 15, 2012 at 1:34 PM, Jos'h Fuller Jos'h.ful...@arcproductions.com wrote: Hi! You could try doing something with org-capture and the org-capture-templates so that you would be creating your email from the start as an org tree entry under the appropriate location. You can override the org-capture-before-finalize hook (see org-capture.el) to send the mail when you're done typing in the indirect buffer and hit C-c C-c (or org-capture-finalize). I have org-capture set up so I can use it immediately from anywhere in Emacs with the C-cc keys: (define-key global-map \C-cc 'org-capture) That combined with a suitable template and the hook override might give you what you're looking for. Hope this helps! Jos'h Fuller, Production Programmer p: 416.682.5200 x5395 | f: 416.682.5209 | Arc Productions Ltd. | 230 Richmond Street East | Toronto, ON M5A 1P4 | www.arcproductions.com -Original Message- From: emacs-orgmode-bounces+jos'h.fuller=arcproductions@gnu.org [mailto:emacs-orgmode-bounces+jos'h.fuller=arcproductions@gnu.org] On Behalf Of Alan E. Davis Sent: Thursday, March 15, 2012 1:24 PM To: org-mode Subject: [O] Mail composed using emacs --- saving a copy in an org file. I am partial to just opening a mail buffer and writing email in Emacs. Just that. However, it would be great to save a copy in an org file. An emacs FAQ suggests sending a BCC or FCC to oneself. What I want is a copy stored in an org-mode subtree, with a convenient headline indicating the name of the recipient and the date. So far, I haven't gotten my head around the idea of using BABEL, and I still like text for email. My experiments with GNUS have not been very successful. So far. I apologize for the naive level of this and some of my other questions. Though I may not be getting the maximum usefulness of all of org-mode's features, those features I do use are awesome. Thank you. Alan Davis
Re: [O] Mail composed using emacs --- saving a copy in an org file.
* Josh's answer seems great. ** I used to use VM in EMACS, worked great, highly recommend it--you could then use EMACS hooks like: vm-mail-hook List of hook functions to be run after a Mail mode composition buffer has been created to send a non specialized message, i.e. a message that is not a reply, forward, digest, etc. VM runs this hook and then runs vm-mail-mode-hook before leaving you in the Mail mode buffer. --and hook those hooks (the list of hooks is 20+ long) up to creating an OrgMode document---maybe somewhat in the way Josh suggested--e.g.: (add-hook 'vm-summary-update-hook 'org-capture) On Thu, Mar 15, 2012 at 1:24 PM, Alan E. Davis lngn...@gmail.com wrote: I am partial to just opening a mail buffer and writing email in Emacs. Just that. However, it would be great to save a copy in an org file. An emacs FAQ suggests sending a BCC or FCC to oneself. What I want is a copy stored in an org-mode subtree, with a convenient headline indicating the name of the recipient and the date. So far, I haven't gotten my head around the idea of using BABEL, and I still like text for email. My experiments with GNUS have not been very successful. So far. I apologize for the naive level of this and some of my other questions. Though I may not be getting the maximum usefulness of all of org-mode's features, those features I do use are awesome. Thank you. Alan Davis
Re: [O] Mail composed using emacs --- saving a copy in an org file.
* This would probably be a better main hook to use if you elaborate/implement my suggestion: vm-visit-folder-hook List of hook functions called just after VM visits a folder. It doesn't matter if the folder buffer already exists, this hook is run each time vm or vm-visit-folder is called interactively. It is not run after vm-mode is called. ** Then you change the mail folder into an OrgMode doc? *** I vaguely remember this, may be wrong; but, I believe VM when saved as folders, it is saved as simple text document you can then easily change into .org docs using SED/AWK/PERL/PANDOC whatever. On Thu, Mar 15, 2012 at 1:55 PM, brian powell briangpowel...@gmail.comwrote: * Josh's answer seems great. ** I used to use VM in EMACS, worked great, highly recommend it--you could then use EMACS hooks like: vm-mail-hook List of hook functions to be run after a Mail mode composition buffer has been created to send a non specialized message, i.e. a message that is not a reply, forward, digest, etc. VM runs this hook and then runs vm-mail-mode-hook before leaving you in the Mail mode buffer. --and hook those hooks (the list of hooks is 20+ long) up to creating an OrgMode document---maybe somewhat in the way Josh suggested--e.g.: (add-hook 'vm-summary-update-hook 'org-capture) On Thu, Mar 15, 2012 at 1:24 PM, Alan E. Davis lngn...@gmail.com wrote: I am partial to just opening a mail buffer and writing email in Emacs. Just that. However, it would be great to save a copy in an org file. An emacs FAQ suggests sending a BCC or FCC to oneself. What I want is a copy stored in an org-mode subtree, with a convenient headline indicating the name of the recipient and the date. So far, I haven't gotten my head around the idea of using BABEL, and I still like text for email. My experiments with GNUS have not been very successful. So far. I apologize for the naive level of this and some of my other questions. Though I may not be getting the maximum usefulness of all of org-mode's features, those features I do use are awesome. Thank you. Alan Davis
Re: [O] Capture the mouse-highlight help-text in a file?
brian powell briangpowel...@gmail.com wrote: * Thanks, Nick--I have been pursuing that idea--maybe just extract the regexp, sed/grep etc. ** But I was just thinking maybe there is a simple way to capture the pop up LINK: file:foo.txt balloon as you put it--into a file or fifo. *** Then all sorts of things could be done with it--I'm thinking maybe OrgMode could be used with the lights out/if your blind/screen blinks out---well, OrgMode could be partially used...one could pipe it to a text-to-speech program for example---and/or logging where the mouse has been in an OrgMode document. I see - afaik, the balloon appears only on the screen and is not logged anywhere. I certainly don't know of any way to capture it as it happens. It seems to happen deep in emacs's nether regions (in C code afaict), but I didn't chase it down too far. Nick On Thu, Mar 15, 2012 at 1:06 PM, Nick Dokos nicholas.do...@hp.com wrote: brian powell briangpowel...@gmail.com wrote: * I know that this will toggle the mouse-highlight messages that pop-up when you move a mouse over a LINK: in OrgMode: (setq mouse-highlight (not mouse-highlight)) ** Now, is there a simple way to send the messages that pop-up to a file? They are already in a file: the org file that contains the link. A link like this [[file:foo.txt][foo]] pops up a LINK: file:foo.txt balloon, so a suitable grep/sed combination suffices. But I suspect that this is not a satisfactory answer: what exactly are you trying to do? Nick *** Maybe to a FIFO? Alternatives: Alternatives:
Re: [O] Feature request for noweb mode that strips references on export
On Wed, Feb 1, 2012 at 10:21 AM, Eric Schulte eric.schu...@gmx.com wrote: I've just added tested and documented such a strip-export argument to :noweb. Please let me know if it doesn't work as you expected. I just wanted to let you know I finally tried this out and it works beautifully. Thank you! -- Avdi Grimm http://avdi.org
Re: [O] question about org2blog and latex
On Thu, Mar 15, 2012 at 10:21 PM, Nick Dokos nicholas.do...@hp.com wrote: Stephen J. Barr stephenjb...@gmail.com wrote: Hello, I am working on blogging using org2blog, allowing me to update my wordpress blog with org-mode. All is working well except latex. I was expecting latex images but instead just get things like: $latex z * k^\theta$ Not sure what that latex is doing in there. The following works as normal HTML for me: --8---cut here---start-8--- * foo Here's a formula $\int_0^\infty e^{-x^2} dx = {{\sqrt{\pi}}\over{2}}$ $latex z * k^\theta$ --8---cut here---end---8--- A few things: the default way to export fragments is through MathJax: there may be some sort of a setup problem that prevents MathJax from working with the blogging stuff. You might want to fall back to png images and see if that works better for you (you'll need dvipng), although that's usually seen as a step back. I'd like to clarify that the initial implementation of org2blog, IIRC, did make use of the png images and upload them to the blog. Sometime, later support was added to support Wordpress's LaTeX plugin. To render your LaTeX using this, in your wordpress blog, just set the variable `org2blog/wp-use-wp-latex`. [Btw, I hope you are indeed talking about org to wordpress org2blog. There's another one that publishes to blogspot, with the same name.] The preferred way to enter math in latex (and in org) is with \(...\) for inline formulas and \[...\] for displayed ones. $...$ will work with certain restrictions noted in the org docs (see below) for the inline case, $$...$$ does *not* work for the displayed case (it's not even legal LaTeX). C-h v org-export-with-LaTeX-fragments RET has the details. (info (org) LaTeX fragments) has more on $...$, mathJax etc. Also, all of these ways which do work with HTML export should work with the org2blog. Also, thanks Nick for the detailed answer. :) HTH, Puneeth
Re: [O] Mail composed using emacs --- saving a copy in an org file.
Alan E. Davis lngn...@gmail.com wrote: I am partial to just opening a mail buffer and writing email in Emacs. Just that. However, it would be great to save a copy in an org file. Are you using an emacs package to send email? Or are you just composing your email in emacs, saving it as a file and sending it with some external MUA? If the former, you can probably find a hook that the emacs package uses (e.g. for mh-e, the appropriate hook would probably be mh-before-send-letter-hook), so that you can save the email in a file, possibly after transforming it suitably. In some sense this is similar, but in another sense opposite, to Jos'h Fuller's suggestion: in his scenario, you use org-capture to compose the message and use an org-capture hook to transform it suitably and actually send it; in this scenario, you compose the mail in some mail package (there are several) and you use a hook that the mail package provides to transform it suitably and save it in some org file. OTOH, if you use an external MUA, Jos'h 's approach might still work whereas this one has no hope. But if you can live in emacs, why live anywhere else? :-) Nick An emacs FAQ suggests sending a BCC or FCC to oneself. What I want is a copy stored in an org-mode subtree, with a convenient headline indicating the name of the recipient and the date. So far, I haven't gotten my head around the idea of using BABEL, and I still like text for email. My experiments with GNUS have not been very successful. So far. I apologize for the naive level of this and some of my other questions. Though I may not be getting the maximum usefulness of all of org-mode's features, those features I do use are awesome. Thank you.
Re: [O] Mail composed using emacs --- saving a copy in an org file.
* Fully agree with nick--especially about the please be more specific about the MUA-part--mh-e is another possibility--written by another person I used to work with (mh)--vm was written by Kyle Jones--yet another person I used to work with... ** Come to think of it; I used to use RMAIL too in EMACS--Kyle wrote VM to include MIME/mail extensions, etc. You mentioned that you tried GNUS as a mail reader, etc.--and you didn't get what you wanted: = In a nutshell: MH/mh-e is the quintessential all-in-one extremely customizable mail package and mh-e is the EMACS mode for it--absolutely amazing and useful for email (written by W3Org/consortium people I used to work with)--probably overkill for you. RMAIL is old, slightly outdated--but very useful and simple, VM, is better for you probably: This site/guru agrees with me--VM is your best choice: Emacs has three built-in mail reading and sending interfaces: RMAIL RMAIL is a basic (and the default) mail reading package. MH-E MH-E is a front-end for the MH mail tools. Gnus Gnus is mainly a Usenet reading package but has capabilities for reading mail and doing other strange things. Now that you know your options inherent in Emacs I'm going to tell you about my favorite non-standard mail user agent (MUA): VM (View Mail) written by Kyle Jones. = http://linuxgazette.net/109/simpson.html Back to hooks (that one may use to hook to org-capture) VM has a lot of them ready for you to play with!: http://www.wonderworks.com/vm/user-manual/vm_21.html On Thu, Mar 15, 2012 at 3:19 PM, Nick Dokos nicholas.do...@hp.com wrote: Alan E. Davis lngn...@gmail.com wrote: I am partial to just opening a mail buffer and writing email in Emacs. Just that. However, it would be great to save a copy in an org file. Are you using an emacs package to send email? Or are you just composing your email in emacs, saving it as a file and sending it with some external MUA? If the former, you can probably find a hook that the emacs package uses (e.g. for mh-e, the appropriate hook would probably be mh-before-send-letter-hook), so that you can save the email in a file, possibly after transforming it suitably. In some sense this is similar, but in another sense opposite, to Jos'h Fuller's suggestion: in his scenario, you use org-capture to compose the message and use an org-capture hook to transform it suitably and actually send it; in this scenario, you compose the mail in some mail package (there are several) and you use a hook that the mail package provides to transform it suitably and save it in some org file. OTOH, if you use an external MUA, Jos'h 's approach might still work whereas this one has no hope. But if you can live in emacs, why live anywhere else? :-) Nick An emacs FAQ suggests sending a BCC or FCC to oneself. What I want is a copy stored in an org-mode subtree, with a convenient headline indicating the name of the recipient and the date. So far, I haven't gotten my head around the idea of using BABEL, and I still like text for email. My experiments with GNUS have not been very successful. So far. I apologize for the naive level of this and some of my other questions. Though I may not be getting the maximum usefulness of all of org-mode's features, those features I do use are awesome. Thank you.
Re: [O] Latex Listings Floats
Russell Adams rlad...@adamsinfoserv.com wrote: Folks, I've had to fight in the past to set placement on every graphic I include in a Latex document to insert *RIGHT HERE* instead of floating to the end of the section. I just encountered this issue on source listings (listing / lstlisting), and can't seem to get the placement to stick. I don't understand: from the docs, it seems you *can* make listings float by adding a [float,caption=foo] option to the lstlisting environment, but they do not float by default. So why do yours float? A small org example (plus the tex file) might help. Does anyone know how to force a global default to force all placements to *RIGHT HERE*? I am including the float package, because it adds the H option versus h. Now I just need a way to set a global default. From a cursory read of the float doc, I don't think you can. Nick
[O] org-protocol in windows and Acrobat Reader
Hi, I try to use a function proposed with org-protocol as explained in this link. http://orgmode.org/worg/org-contrib/org-protocol.html#sec-2 I would like to launch a pdf file in Acrobat Reader and to use org-store- link.js to capture the full path of the document in an org file.I try to use what it was explained on the link I have already and I have a look on the following link. http://article.gmane.org/gmane.emacs.orgmode/6810 It doesn't work as I expect. As I just want to capture the full path of the file (example here is file.pdf in C:\Temp), I use the following javascript call org-store-link accessible in menu File of Acrobat Reader : app.addMenuItem({cName:org-store-link, cParent:File, cExec:app.launchURL('org-protocol://store-link://'+ encodeURIComponent(this.URL));}); I get the following string given to org-protocol: org-protocol://store-link://file%3A%2F%2F%2FC%7C%2FTemp%2Ffile.pdf There is several issue. The escaped character is not interpreted when feed in emacs and when I use C-c C-l (org-insert-link) I have the following proposition : file: (C|). Then I try the following script, to get '/' character to feed org-protocol: app.addMenuItem({cName:org-store-link, cParent:File, cExec:app.launchURL('org-protocol://store-link://'+ unescape (encodeURIComponent(this.URL)).replace('|',':'));}); I get the following the expected string : org-protocol://store-link://file:///C:/Temp/File.pdf Again when I use C-c C-l, I have the proposition : file: (C|). I made the assumption that it is a problem of interpretation of '/'.Then I replace this character with ++. app.addMenuItem({cName:org-store-link, cParent:File, cExec:app.launchURL('org-protocol://store-link://'+ unescape (encodeURIComponent(this.URL)).replace('|',':').replace('\/','++','gi'));}); Then I obtain the following string : org-protocol://store-link://file:++C:++Temp++File.pdf This time when I use C-c C-l, I have the proposition : file:++C:++Temp++File.pdf So I can get the full path when I replace afterwards each '++' to '/'. Quite tricky to get the final full link !! Do you have a more direct and simplest way to get the direct right link ?
Re: [O] Latex Listings Floats
Hi Russell, Russell Adams wrote: I've had to fight in the past to set placement on every graphic I include in a Latex document to insert *RIGHT HERE* instead of floating to the end of the section. I just encountered this issue on source listings (listing / lstlisting), and can't seem to get the placement to stick. I never experienced it -- while I don't have (let's say, I don't find) any particular custom which I'd have done!? Would you have an ECM? Does anyone know how to force a global default to force all placements to *RIGHT HERE*? If really, really, really right here: same as the one you propose -- there is no other better. I am including the float package, because it adds the H option versus h. Now I just need a way to set a global default. #+BIND: org-latex-default-figure-position H for a value local to a file. setq for a global value for all files... Best regards, Seb -- Sebastien Vauban
[O] Calculated Properties Column View Totals
I was moving my budget into Org, and while trying to make it work via column view and properties I ran into two major impediments. First, properties can't be calculated from one another ala spreadsheet or elisp (ie: Property C = Property A + Property B). Thus I had to add conversion to a dynamic block capturing the column view as formulas. Second, though column view and captured columns support totaling by tree hierarchy (ie: parent shows sum of children), I can't add a total row to the bottom of the dynamic blocks that is preserved across updates. Here's a sample: * Summaries #+BEGIN: columnview :hlines 3 :id Budget | ITEM| VENDOR | DUE | FREQ | AMOUNT | BIMONTHLY | MONTHLY |YEARLY | |-++-+--+-+---+-+---+ | *** Optional|| | | -250.00 | -250.00 | -250.00 | -250.00 | | TODO Russell Fun Money || 1 | 0.5 | -250.00 | -250.00 | -500.00 | -6000.00 | #+TBLFM: $6=$5*(1/$4)/2;%.2f::$7=$5*(1/$4);%.2f::$8=$5*(1/$4)*12;%.2f #+END: No entry has a BIMONTHLY, MONTHLY, or YEARLY property. I used that to create the columns for my formulas so that I can populate those numbers. The parent has the wrong sum because it is using the property values, not summing from the spreadsheet calculation. * Budget Items :PROPERTIES: :COLUMNS: %25ITEM %15VENDOR %3DUE %3FREQ %AMOUNT{+;%.2f} %BIMONTHLY %MONTHLY %YEARLY :ID: Budget :END: ** Expenses :PROPERTIES: :FREQ:1 :END: *** Optional TODO Russell Fun Money :PROPERTIES: :DUE: 1 :AMOUNT: -250.00 :FREQ: 0.5 :END: I've reverted to using spreadsheet with hyperlinks for items so I can keep notes... I really thought that column view would be superior though. Perhaps this will inspire some new features. Thanks. -- Russell Adamsrlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
Re: [O] question about org2blog and latex
Thanks for the help. I just checked the variables and org2blog/wp-use-wp-latex was set, but the wp-latex plugin was not installed :) All is working now, although it is definitely a little grainy. But, it'll certainly lead to an awesome series of blog posts nonetheless. Puneeth, thank you so much for the fantastic plugin. One other quick question: Does org-mode and org2blog work with numbered equations and equation references? If so, could someone provide a simple example? Thanks, Stephen On Thu, Mar 15, 2012 at 2:51 PM, Puneeth Chaganti puncha...@gmail.com wrote: On Thu, Mar 15, 2012 at 10:21 PM, Nick Dokos nicholas.do...@hp.com wrote: Stephen J. Barr stephenjb...@gmail.com wrote: Hello, I am working on blogging using org2blog, allowing me to update my wordpress blog with org-mode. All is working well except latex. I was expecting latex images but instead just get things like: $latex z * k^\theta$ Not sure what that latex is doing in there. The following works as normal HTML for me: --8---cut here---start-8--- * foo Here's a formula $\int_0^\infty e^{-x^2} dx = {{\sqrt{\pi}}\over{2}}$ $latex z * k^\theta$ --8---cut here---end---8--- A few things: the default way to export fragments is through MathJax: there may be some sort of a setup problem that prevents MathJax from working with the blogging stuff. You might want to fall back to png images and see if that works better for you (you'll need dvipng), although that's usually seen as a step back. I'd like to clarify that the initial implementation of org2blog, IIRC, did make use of the png images and upload them to the blog. Sometime, later support was added to support Wordpress's LaTeX plugin. To render your LaTeX using this, in your wordpress blog, just set the variable `org2blog/wp-use-wp-latex`. [Btw, I hope you are indeed talking about org to wordpress org2blog. There's another one that publishes to blogspot, with the same name.] The preferred way to enter math in latex (and in org) is with \(...\) for inline formulas and \[...\] for displayed ones. $...$ will work with certain restrictions noted in the org docs (see below) for the inline case, $$...$$ does *not* work for the displayed case (it's not even legal LaTeX). C-h v org-export-with-LaTeX-fragments RET has the details. (info (org) LaTeX fragments) has more on $...$, mathJax etc. Also, all of these ways which do work with HTML export should work with the org2blog. Also, thanks Nick for the detailed answer. :) HTH, Puneeth
[O] Sending and archiving emails with capture...
Hi! Assuming I've got everything set up correctly and this email makes it to the list, this is in response to Alan E. Davis' question about sending an email from Emacs and saving a copy in org-mode. I make the assumption here that your Emacs is set up to properly send emails using the ~mail~ command. Also note that my ~org-capture-templates~ setup has more than just an email template. Install the lines below just after your org-mode install. To use: - Invoke org-capture from any buffer with C-cc. - Choose the Mail template ([m] key). - Enter the recipient's address, then [enter]. - Enter the mail subject, then [enter]. - Your cursor is positioned at the start of the email. - Write your email. - C-c C-c sends it on its way! This is very crude and could certainly be improved. However, perhaps it's a reasonable starting point! Jos'h -- snip! ;; Capture Setup (setq org-capture-templates (quote ((m Mail entry (file+olp org-default-notes-file Emails) ** Email %T From: Your Name yourn...@yourcompany.com To: %^{Send mail to} Subject: %^{Subject} --text follows this line-- %? ___ This is a signature...) (t todo entry (file org-default-notes-file) * TODO %?\n%U\n%a\n %i :clock-in t :clock-resume t) (n note entry (file org-default-notes-file) * %? :NOTE:\n%U\n%a\n %i :clock-in t :clock-resume t) (h Habit entry (file org-default-notes-file) * NEXT %?\n%U\n%a\nSCHEDULED: %t .+1d/3d\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n %i (defun my-finalize-capture () This is run from the org-capture-before-finalize hook just before the indirect buffer is closed. If the current local capture is a 'Mail' message, I extract it and send it on it's way. Because I am cautious, I extract the text from the org buffer and put it into a private temporary buffer before sending it as an email. This may not be the best way to do this... (message * Running custom finalize hook...) (if (string= Mail (org-capture-get :description)) (save-excursion (goto-char (org-capture-get :begin-marker t)) (next-line) ; Skip past org slug line. (let* ((msg (buffer-substring (point) (org-capture-get :end-marker t (with-temp-buffer (insert msg) (mail-send) )) )) ) (add-hook 'org-capture-before-finalize-hook 'my-finalize-capture) (define-key global-map \C-cc 'org-capture) ___ Jos'h Fuller, Production Programmer Arc Productions Ltd. p: 416.682.5237 | f: 416.682.5209 | http://www.arcproductions.com 230 Richmond Street East | Toronto, ON M5A 1P4 |
Re: [O] question about org2blog and latex
Hi Stephen, Stephen J. Barr stephenjb...@gmail.com writes: Hello, I am working on blogging using org2blog, allowing me to update my wordpress blog with org-mode. All is working well except latex. I was expecting latex images but instead just get things like: $latex z * k^\theta$ I don't use org2blog myself. But I see org2blog parse org entry to wordpress post. (setq org2blog/wp-latex-to-wp nil) if you put above may stop org2blog parse the latex bits. However original author Puneeth will have better answers. -- YYR
Re: [O] Sending and archiving emails with capture...
Amazing. I tried it and I get Heading not found on level 1: Emails I must missing a step? On Thu, Mar 15, 2012 at 5:22 PM, Jos'h Fuller Jos'h.ful...@arcproductions.com wrote: Hi! Assuming I've got everything set up correctly and this email makes it to the list, this is in response to Alan E. Davis' question about sending an email from Emacs and saving a copy in org-mode. I make the assumption here that your Emacs is set up to properly send emails using the ~mail~ command. Also note that my ~org-capture-templates~ setup has more than just an email template. Install the lines below just after your org-mode install. To use: - Invoke org-capture from any buffer with C-cc. - Choose the Mail template ([m] key). - Enter the recipient's address, then [enter]. - Enter the mail subject, then [enter]. - Your cursor is positioned at the start of the email. - Write your email. - C-c C-c sends it on its way! This is very crude and could certainly be improved. However, perhaps it's a reasonable starting point! Jos'h -- snip! ;; Capture Setup (setq org-capture-templates (quote ((m Mail entry (file+olp org-default-notes-file Emails) ** Email %T From: Your Name yourn...@yourcompany.com To: %^{Send mail to} Subject: %^{Subject} --text follows this line-- %? ___ This is a signature...) (t todo entry (file org-default-notes-file) * TODO %?\n%U\n%a\n %i :clock-in t :clock-resume t) (n note entry (file org-default-notes-file) * %? :NOTE:\n%U\n%a\n %i :clock-in t :clock-resume t) (h Habit entry (file org-default-notes-file) * NEXT %?\n%U\n%a\nSCHEDULED: %t .+1d/3d\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n %i (defun my-finalize-capture () This is run from the org-capture-before-finalize hook just before the indirect buffer is closed. If the current local capture is a 'Mail' message, I extract it and send it on it's way. Because I am cautious, I extract the text from the org buffer and put it into a private temporary buffer before sending it as an email. This may not be the best way to do this... (message * Running custom finalize hook...) (if (string= Mail (org-capture-get :description)) (save-excursion (goto-char (org-capture-get :begin-marker t)) (next-line) ; Skip past org slug line. (let* ((msg (buffer-substring (point) (org-capture-get :end-marker t (with-temp-buffer (insert msg) (mail-send) )) )) ) (add-hook 'org-capture-before-finalize-hook 'my-finalize-capture) (define-key global-map \C-cc 'org-capture) ___ Jos'h Fuller, Production Programmer Arc Productions Ltd. p: 416.682.5237 | f: 416.682.5209 | http://www.arcproductions.com 230 Richmond Street East | Toronto, ON M5A 1P4 |
Re: [O] Sending and archiving emails with capture...
Hi! I tried it and I get Heading not found on level 1: Emails Sorry, I forgot to say that you need to make a heading in your org-default-notes-file (whatever that is) called Emails: * Tasks * Done * Emails The emails will be filed under there, like this: :* Emails :** Email 2012-03-15 Thu 15:20 : :From: Me m...@me.com :To: y...@you.com :Subject: Testing! :--text follows this line-- :This is a test... : : ___ : :Signature! See if that fixes it! Jos'h Fuller, Production Programmer p: 416.682.5200 x5395 | f: 416.682.5209 | Arc Productions Ltd. | 230 Richmond Street East | Toronto, ON M5A 1P4 | www.arcproductions.com
[O] [PATCH] tags search: faster tags matcher by trusting scanner tags
The attached patch speeds up tags matching ( 50s -- 5s for my most common search ), by turning on org-trust-scanner-tags within the matcher. (When it's off, getting a non-inherited property's value causes a call to org-entry-properties to fetch all properties into a cache, including ALLTAGS; fetching ALLTAGS involves calling (org-get-tags-at), which is slow when org-trust-scanner-tags is off.) Can this cause problems / was this off for a reason? thanks, ilya 0022-Tags-matcher-turned-on-org-trust-scanner-tags-within.patch Description: Binary data
Re: [O] How to sort table in blocks.
Hi Suvayu (Subayu?), Thanks for your answer- I wanted to know that if there is a way to go about it in orgmode. Ultimately took your advice and used the N in the column. best. In all bongness. Debaditya On Wed, Mar 14, 2012 at 10:13 PM, suvayu ali fatkasuvayu+li...@gmail.comwrote: Hi Debaditya, On Thu, Mar 15, 2012 at 01:47, Debaditya Mukhopadhyay debadi...@gmail.com wrote: 2. I would like to sort the table based on date, but instead of sorting each line is it possible to sort by block (defined by the horizontal lines.)? What you are asking about is a table.el table. You can use those with org, but the support is spotty at best. You will loose the ability use table formulae, sorting or even nice export to multiple backends. In short, the answer is no you can't. That said, I believe you can put the multiple lines in one long line and specify how wide the column can be so it appears to be small and neatly folded in buffer. While editing you can call org-edit-special and edit the long line conveniently. You also retain all the other awesome org table features. Hope this helps. -- Suvayu Open source is the future. It sets us free.
Re: [O] How to sort table in blocks.
Hi Debaditya, On Fri, Mar 16, 2012 at 02:10, Debaditya Mukhopadhyay debadi...@gmail.com wrote: Hi Suvayu (Subayu?), :D Well ideally it should be Shubhayu but alas I'm stuck with the misspelling, Suvayu. Thanks for your answer- I wanted to know that if there is a way to go about it in orgmode. Ultimately took your advice and used the N in the column. best. Glad that I was of help. In all bongness. :) -- Suvayu Open source is the future. It sets us free.
Re: [O] Bug: columnview times don't accumulate properly [7.8.03 (release_7.8.03.576.gbeb02)]
On Tue, 13 Mar 2012 12:00:07 +, Myles English said: 1. start with emacs -q 2. find file test-sums.org (attached) 3. adjust paths in the source block at the top of the file and evaluate (execute?) it with C-c 4. goto the columnview block and C-c I would expect a table like this to be inserted: | ITEM| Sum | |-+--| | * Introduction | 5:40 | |-+--| | ** test sums| 0:30 | |-+--| | ** Getting warmed up| 5:10 | |-+--| | *** Nitty gritty| 5:10 | | *** TODO Do something fantastic | 5:00 | | *** END | | |-+--| | This is not added | 0:10 | | *** TODO Do something else | 0:10 | | *** END | | Hoever, the table looks like this: | ITEM| Sum | |-+--| | * Introduction | 5:30 | |-+--| | ** test sums| 0:30 | |-+--| | ** Getting warmed up| 5:00 | |-+--| | *** Nitty gritty| 5:00 | | *** TODO Do something fantastic | 5:00 | | *** END | | |-+--| | This is not added | 0:10 | | *** TODO Do something else | 0:10 | | *** END | | i.e. the 0:10 is not being picked up in the accumulation. The attached patch produces the expected output, for the same test file: I am an elisp novice so please would someone check this before I tag it as a [PATCH]. In particular, something I am not sure about is the (require 'org-inlinetask) which obviously introduces a dependency. diff --git a/lisp/org-colview.el b/lisp/org-colview.el index 04d2b62..5645ed3 100644 --- a/lisp/org-colview.el +++ b/lisp/org-colview.el @@ -931,6 +931,7 @@ Don't set this, this is meant for dynamic scoping.) (defun org-columns-compute (property) Sum the values of property PROPERTY hierarchically, for the entire buffer. (interactive) + (require 'org-inlinetask) (let* ((re org-outline-regexp-bol) (lmax 30) ; Does anyone use deeper levels??? (lvals (make-vector lmax nil)) @@ -942,7 +943,8 @@ Don't set this, this is meant for dynamic scoping.) (fun (nth 6 ass)) (calc (or (nth 7 ass) 'identity)) (beg org-columns-top-level-marker) -last-level val valflag flag end sumpos sum-alist sum str str1 useval) +(last-level org-inlinetask-min-level) +val valflag flag end sumpos sum-alist sum str str1 useval) (save-excursion ;; Find the region to compute (goto-char beg) @@ -951,16 +953,24 @@ Don't set this, this is meant for dynamic scoping.) ;; Walk the tree from the back and do the computations (while (re-search-backward re beg t) (setq sumpos (match-beginning 0) - last-level level + last-level (if (and (not (equal level 0) ) + (not (equal level org-inlinetask-min-level))) +level last-level) level (org-outline-level) val (org-entry-get nil property) valflag (and val (string-match \\S- val))) (cond (( level last-level) ;; put the sum of lower levels here as a property - (setq sum (when (aref lvals last-level) + (setq sum (when (and + (not (equal last-level org-inlinetask-min-level)) + (aref lvals last-level)) (apply fun (aref lvals last-level))) - flag (aref lflag last-level) ; any valid entries from children? + sum2 (when (aref lvals org-inlinetask-min-level) + (apply fun (aref lvals org-inlinetask-min-level))) + sum (+ (or sum 0) (or sum2 0)) + flag (or (aref lflag last-level) ; any valid entries from children? +(aref lflag org-inlinetask-min-level)) ; or inline tasks? str (org-columns-number-to-string sum format printf) str1 (org-add-props (copy-sequence str) nil 'org-computed t 'face 'bold) useval (if flag str1 (if valflag val )) Thanks, Myles
Re: [O] Bug: columnview times don't accumulate properly [7.8.03 (release_7.8.03.576.gbeb02)]
The patch I just sent should be named org-colview.el.diff instead of org-inlinetasks.el.diff Myles
Re: [O] [PATCH] tags search: faster tags matcher by trusting scanner tags
Ilya Shlyakhter ilya_...@alum.mit.edu wrote: The attached patch speeds up tags matching ( 50s -- 5s for my most common search ), by turning on org-trust-scanner-tags within the matcher. (When it's off, getting a non-inherited property's value causes a call to org-entry-properties to fetch all properties into a cache, including ALLTAGS; fetching ALLTAGS involves calling (org-get-tags-at), which is slow when org-trust-scanner-tags is off.) Can this cause problems / was this off for a reason? I haven't looked at your patch carefully enough to know if it will or will not cause problems, but check the doc for org-map-entries: it has some guidelines about where the technique can be used and where it cannot: , | If your function needs to retrieve the tags including inherited tags | at the *current* entry, you can use the value of the variable | `org-scanner-tags' which will be much faster than getting the value | with `org-get-tags-at'. If your function gets properties with | `org-entry-properties' at the *current* entry, bind `org-trust-scanner-tags' | to t around the call to `org-entry-properties' to get the same speedup. | Note that if your function moves around to retrieve tags and properties at | a *different* entry, you cannot use these techniques. ` There are warnings that this variable is for internal dynamical scoping only, so I suspect you should not mess with the default. If your search can make the needed guarantees, then you can just wrap it in a let to get the speedup. Otherwise, it probably should be left alone. Nick
Re: [O] [PATCH] tags search: faster tags matcher by trusting scanner tags
, | If your function needs to retrieve the tags including inherited tags | at the *current* entry, 'Function' here refers to the FUNC parameter of org-map-entries, not the MATCHER parameter. The matcher is constructed by org-make-tags-matcher, so we know everything it does -- it does not move around and only asks about the current entry's tags and properties. org-scan-tags only invokes the matcher at the current entry, and sets org-scanner-tags correctly for that call. But, you're right that there is a problem: while org-scan-tags sets org-scanner-tags correctly before (eval matcher), other users of the matcher -- e.g. org-clock-get-table-data -- might not. So, org-trust-scanner-tags should be set not in the matcher, but in the function that calls the matcher. A corrected patch is attached. thanks, ilya On Thu, Mar 15, 2012 at 11:13 PM, Nick Dokos nicholas.do...@hp.com wrote: Ilya Shlyakhter ilya_...@alum.mit.edu wrote: The attached patch speeds up tags matching ( 50s -- 5s for my most common search ), by turning on org-trust-scanner-tags within the matcher. (When it's off, getting a non-inherited property's value causes a call to org-entry-properties to fetch all properties into a cache, including ALLTAGS; fetching ALLTAGS involves calling (org-get-tags-at), which is slow when org-trust-scanner-tags is off.) Can this cause problems / was this off for a reason? I haven't looked at your patch carefully enough to know if it will or will not cause problems, but check the doc for org-map-entries: it has some guidelines about where the technique can be used and where it cannot: , | If your function needs to retrieve the tags including inherited tags | at the *current* entry, you can use the value of the variable | `org-scanner-tags' which will be much faster than getting the value | with `org-get-tags-at'. If your function gets properties with | `org-entry-properties' at the *current* entry, bind `org-trust-scanner-tags' | to t around the call to `org-entry-properties' to get the same speedup. | Note that if your function moves around to retrieve tags and properties at | a *different* entry, you cannot use these techniques. ` There are warnings that this variable is for internal dynamical scoping only, so I suspect you should not mess with the default. If your search can make the needed guarantees, then you can just wrap it in a let to get the speedup. Otherwise, it probably should be left alone. Nick 0002-Tags-properties-matcher-faster-matching-by-trusting-.patch Description: Binary data
Re: [O] [PATCH] tags search: faster tags matcher by trusting scanner tags
Here is a similar patch for org-clock's use of tags/properties matcher. On Fri, Mar 16, 2012 at 12:31 AM, Ilya Shlyakhter ilya_...@alum.mit.eduwrote: , | If your function needs to retrieve the tags including inherited tags | at the *current* entry, 'Function' here refers to the FUNC parameter of org-map-entries, not the MATCHER parameter. The matcher is constructed by org-make-tags-matcher, so we know everything it does -- it does not move around and only asks about the current entry's tags and properties. org-scan-tags only invokes the matcher at the current entry, and sets org-scanner-tags correctly for that call. But, you're right that there is a problem: while org-scan-tags sets org-scanner-tags correctly before (eval matcher), other users of the matcher -- e.g. org-clock-get-table-data -- might not. So, org-trust-scanner-tags should be set not in the matcher, but in the function that calls the matcher. A corrected patch is attached. thanks, ilya On Thu, Mar 15, 2012 at 11:13 PM, Nick Dokos nicholas.do...@hp.comwrote: Ilya Shlyakhter ilya_...@alum.mit.edu wrote: The attached patch speeds up tags matching ( 50s -- 5s for my most common search ), by turning on org-trust-scanner-tags within the matcher. (When it's off, getting a non-inherited property's value causes a call to org-entry-properties to fetch all properties into a cache, including ALLTAGS; fetching ALLTAGS involves calling (org-get-tags-at), which is slow when org-trust-scanner-tags is off.) Can this cause problems / was this off for a reason? I haven't looked at your patch carefully enough to know if it will or will not cause problems, but check the doc for org-map-entries: it has some guidelines about where the technique can be used and where it cannot: , | If your function needs to retrieve the tags including inherited tags | at the *current* entry, you can use the value of the variable | `org-scanner-tags' which will be much faster than getting the value | with `org-get-tags-at'. If your function gets properties with | `org-entry-properties' at the *current* entry, bind `org-trust-scanner-tags' | to t around the call to `org-entry-properties' to get the same speedup. | Note that if your function moves around to retrieve tags and properties at | a *different* entry, you cannot use these techniques. ` There are warnings that this variable is for internal dynamical scoping only, so I suspect you should not mess with the default. If your search can make the needed guarantees, then you can just wrap it in a let to get the speedup. Otherwise, it probably should be left alone. Nick 0003-Clocking-work-time-faster-filtering-of-clock-entries.patch Description: Binary data
[O] exporting org to html using an external css stylesheet
I am trying to set up a website using org-mode and would like to use an external css stylesheet. I am currently using the #+STYLE: option with the argument link rel=stylesheet type=text/css href=./stylesheet.css /. The exported html documents seem to be using the default org-mode styling though. I can't seem to get the exported html documents to recognize and use the css. Help! -- Zachary M. Jones
[O] [PATCH] Fixed compiler warnings including typo in ob-lilypond
Fixed compiler warnings, including one typo in ob-lilypond * lisp/ob-lilypond.el (ly-compile-lilyfile): Fixed misplaced comma in a quoting expression. * lisp/org-pcomplete.el: added missing defvar definitions for org vars * lisp/org-src.el: added declare-function line for org-babel-tangle * lisp/ob.el (org-scan-tags): protected the variable tags-list with a let (other) added missing defvar declarations. 0001-Fixed-compiler-warnings-including-one-typo-in-ob-lil.patch Description: Binary data