[O] Org, latex and asymptote in a math project

2011-09-12 Thread Jarmo Hurri
thank the people behind org-mode for developing a brilliant system. -- Jarmo Hurri

[O] Printing in indent mode

2011-09-29 Thread Jarmo Hurri
for paper versions. -- Jarmo Hurri

Re: [O] Printing in indent mode

2011-09-29 Thread Jarmo Hurri
t either as a section or a subsection. -- Jarmo Hurri

Re: [O] Printing in indent mode

2011-10-01 Thread Jarmo Hurri
Giovanni Ridolfi writes: >> That would be very nice, but I do not know how to do this for a >> hierarchical list so that the result would look like a list. > > For a subtree: > * A list > :PROPERTIES: > :EXPORT_TITLE: > :EXPORT_OPTIONS: H:0 num:nil toc:nil \n:t @:t ::t |:t ^:t f:nil *:t tags:n

[O] Preserving the geometry of a table range

2012-08-25 Thread Jarmo Hurri
Greetings. If you pass a table range to an elisp function in a tblfm - say, using remote - the values in the range seem to be passed to the function as a single list. Thus the geometry of the region is lost. Is it possible to return a list of lists, e.g., a list of rows instead? Is this supported

Re: [O] Preserving the geometry of a table range

2012-08-26 Thread Jarmo Hurri
Greetings Michael. I can try. Here is an example of the desired low-level functionality with a simple function. The lookup functions would be built on this. Does this help? * an example of low level functionality Here is an example of an elisp function working on a range as a list of rows.

[O] Small contrib: lookup (was "Preserving the geometry of a table range")

2012-09-02 Thread Jarmo Hurri
Michael Brand writes: > Does this help? Yes indeed! It gave me both a better idea of what the call should look like and the way to implement it. The only problem with this approach - using a separate search and return list - when compared with the lookup functions of traditional spreadsheets, i

[O] [PATCH] Lookup functions for tables

2012-09-19 Thread Jarmo Hurri
* lisp/org-table.el: added functions org-lookup-first and org-lookup-last * doc/org.texi: documented the use of lookup functions TINYCHANGE --- doc/org.texi | 88 +++- lisp/org-table.el | 10 ++ 2 files changed, 96 insertions(+), 2 del

Re: [O] [PATCH] Lookup functions for tables

2012-09-19 Thread Jarmo Hurri
Greetings. The patch posted here is the first patch I have ever made with git, so I hope it is ok. I tested the new functions locally, as can be seen from the examples. I also ran make without problems. I am, however, unable to install org from the git version (for some unknown reason), so I was

Re: [O] [PATCH] Lookup functions for tables

2012-09-20 Thread Jarmo Hurri
Bastien writes: > The patch is longer than 20 lines, so we would need you to sign the > FSF papers to be able to accept it. Request submitted. -- Jarmo

Re: [O] [PATCH] Lookup functions for tables

2012-09-20 Thread Jarmo Hurri
Achim Gratz writes: > Well, it doesn't become a TINYCHANGE just because you put that stamp > on it. This patch clearly is over 20 non-trivial lines, so you will > need to assign copyright to the FSF. The program code (one macro and two calls) is less than 20 lines, and I was hoping documentatio

Re: [O] [PATCH] Lookup functions for tables

2012-09-20 Thread Jarmo Hurri
>> I tested the new functions locally, as can be seen from the >> examples. I also ran make without problems. I am, however, unable to >> install org from the git version (for some unknown reason), so I was >> unable to test the final, committed version. > > I can't decode that last part… you inst

Re: [O] [PATCH] Lookup functions for tables

2012-09-20 Thread Jarmo Hurri
>> --- a/doc/org.texi >> +++ b/doc/org.texi >> @@ -2399,6 +2399,7 @@ formula, moving these references by arrow keys >> * Formula syntax for Lisp:: Writing formulas in Emacs Lisp >> * Durations and time values:: How to compute durations and time values >> * Field and range formulas::Fo

Re: [O] Sending commits to Org

2012-09-22 Thread Jarmo Hurri
Philipp Kroos writes: > If you first create a branch on your side and switch to it before > making changes, you can run format-patch against your local copy of > master as well. Or, if you are a git newbie like me, and fail to read the relevant part of the org page on contributing, and make your

[O] Make errors from a fresh git clone

2012-09-23 Thread Jarmo Hurri
Greetings. I am getting a bunch of make errors (20 failed files) when trying to make the newest git version. This is from a clean git clone. The errors are all of the same form; two examples below: Compiling /home/jarmo/src/org/org-mode/lisp/org-ascii.el... In toplevel form: org-ascii.el:29:1:Er

Re: [O] Make errors from a fresh git clone

2012-09-23 Thread Jarmo Hurri
Achim Gratz writes: > Jarmo Hurri writes: >> Any ideas of what might be going wrong? > > Bastien committed a merge conflict in org-agenda. I've pushed up a > fix, but it should probably be reviewed again. Ok, it compiles now. Thanks! I thought the decription "fr

[O] [PATCH] Lookup functions, take two

2012-09-23 Thread Jarmo Hurri
uot; if you find it necessary. Have fun. -- Jarmo >From 238551583ecf381d576f42b718e16f1601a43e55 Mon Sep 17 00:00:00 2001 From: Jarmo Hurri Date: Sun, 23 Sep 2012 18:16:01 +0300 Subject: [PATCH] Lookup functions for tables * lisp/org-table.el: added functions org-lookup-first and org-lookup-last *

[O] [PATCH] Give possibility to start gnus with gnus-no-server

2012-09-24 Thread Jarmo Hurri
001 From: Jarmo Hurri Date: Mon, 24 Sep 2012 16:10:06 +0300 Subject: [PATCH] Give possibility to start gnus with gnus-no-server * lisp/org-gnus.el: Added a new customizable boolean variable org-gnus-no-server and support for it in function org-gnus-no-new-news. --- lisp/org-gnus.el |

Re: [O] [PATCH] Lookup functions, take two

2012-09-24 Thread Jarmo Hurri
Bastien writes: > I feel my brain is a bit slow today... so sorry in advance if the > question sounds stupid. What is the advantage of using org-lookup-* > functions instead of a simple reference in the table formulas? As noted in the documentation, most often you do something like this when f

Re: [O] [PATCH] Lookup functions, take two

2012-09-24 Thread Jarmo Hurri
> It is a nice spreadsheet utility function but my feeling is that > having it in Org's core does not really fit, as it introduces > functions where we usually have references. Functions are fine for > users to add, though, that's the whole point of allowing Elisp in > table formulas. So if it d

Re: [O] [PATCH] Give possibility to start gnus with gnus-no-server

2012-09-24 Thread Jarmo Hurri
Bastien writes: >> I tried to use org today together with gnus, but was unable to access >> gnus via org, because I always start gnus with gnus-no-server. > > (defalias 'gnus 'gnus-no-alias) > > in your .emacs.el should do, no? Greetings. You probably mean (defalias 'gnus 'gnus-no-server) wh

Re: [O] [PATCH] Give possibility to start gnus with gnus-no-server

2012-09-26 Thread Jarmo Hurri
Bastien writes: > Okay. I've pushed a slightly edited version of your patch, please > check the ChangeLog here: > > http://orgmode.org/w/org-mode.git?p=org-mode.git;a=commit;h=1086895 Thanks! -- Jarmo (one happy gnus user)

Re: [O] [PATCH] Lookup functions, take two

2012-09-26 Thread Jarmo Hurri
Bastien writes: > "Dominik, Carsten" writes: >> The documentation should be kept as compact as possible, I think without an >> example, just describe the functionality. Maybe Jarmo can write a little >> tutorial for Worg and document it there more extensively? > > Jarmo, would you be okay rewor

Re: [O] [PATCH] Lookup functions, take two

2012-09-26 Thread Jarmo Hurri
Bastien writes: > I suggest using this code: > > ... > > Less dense and elegant, of course, but more explicit. Users will be > able to check the docstring of org-lookup-first/last, which I think is > good for functions that we advertize in the manual. > > Jarmo, would you be okay if I commit thi

Re: [O] [PATCH] Lookup functions, take two

2012-09-26 Thread Jarmo Hurri
Bastien writes: > There was a typo, I attach the correct patch. Thanks! [A lot of good info snipped.] While you're waiting for my assignment papers, I will look into this and try to make everybody happy. Have fun. -- Jarmo

[O] [Patch] Table lookup functions: director's cut

2012-10-15 Thread Jarmo Hurri
look weird to a first-time user: the default use would then be to find a value and return the same value, which would not make much sense. Have fun! Jarmo >From dfa552f2e8b61ce301900dcce7da92d4f8f0854a Mon Sep 17 00:00:00 2001 From: Jarmo Hurri Date: Mon, 15 Oct 2012 09:54:24 +0300

Re: [O] [Patch] Table lookup functions: director's cut

2012-10-26 Thread Jarmo Hurri
Greetings. I got an email saying that the patch has now been committed to git. I also added a link to the tutorial on the tutorial index page at http://orgmode.org/worg/org-tutorials/ All the best. Jarmo

[O] Indenting source code blocks in lists

2012-01-24 Thread Jarmo Hurri
Greetings. I am a big fan of org mode, but occasionally I feel that it is quite difficult to figure out how to do a relatively simple task. So sorry for this newbie question. The manual clearly states the following: "Since indentation is what governs the structure of these lists, many structura

[O] Babel support for Processing-language

2014-09-15 Thread Jarmo Hurri
Greetings fellow org-fans! I have already designed a couple of programming courses, and am now considering getting involved in a new one. This one will be aimed at young novices. I have decided that I only want to do this if the programming language used is very visual. The two options I have co

Re: [O] Babel support for Processing-language

2014-09-16 Thread Jarmo Hurri
Nick Dokos writes: > Jarmo Hurri writes: > >> ... >> However, I have _no idea_ what kind of work supporting output capture of >> both static mode (image) and active mode (animation) would >> require. Ideally, Babel support for Processing output would mean t

[O] Babel: reusing language-specific functions

2014-10-07 Thread Jarmo Hurri
Greetings. I have a very basic Babel question, but I can not extract the solution from the manual. I have a language-specific function - in this case Asymptote, but it could be e.g. C as well - that I want to use in a number of different source blocks of the same language in an Org file. How do

Re: [O] Babel: reusing language-specific functions

2014-10-08 Thread Jarmo Hurri
t...@tsdye.com (Thomas S. Dye) writes: >> Jarmo Hurri writes: >>> I have a language-specific function - in this case Asymptote, but it >>> could be e.g. C as well - that I want to use in a number of different >>> source blocks of the same language in an Org f

Re: [O] Babel support for Processing-language

2015-02-02 Thread Jarmo Hurri
Jarmo Hurri writes: > Yep, I am going to start doing this if no-one is working on it yet. > > I woke up in the middle of the night to realize how amazingly easily > this can be done if I drop out the support for PDF export, that is, > only leave the option to export as HTML. Ther

[O] Special characters in tables (iso-latin-1 or utf-8)

2013-09-27 Thread Jarmo Hurri
Greetings. A lot of my tables contain special characters (such as ä and ö) because those are used in Finnish names. These are now causing problems for me in table formulas. Can someone tell me how to fix the table below so that the formula will work? * testing table | string | same string | |--

Re: [O] Special characters in tables (iso-latin-1 or utf-8)

2013-09-28 Thread Jarmo Hurri
Michael Brand writes: > A lisp formula is the easiest way to just copy fields: > #+TBLFM: $2 = '(identity $1) Great tip, thanks! Jarmo

[O] Hide some timestamp repetitions; timestamp property in agenda

2013-10-05 Thread Jarmo Hurri
Greetings. I am pretty sure that the following can be done, I just do not know how. 1. In general I want to see repeated timestamps, TODOs etc. appear at every repeat, so I need to have the value of org-agenda-repeating-timestamp-show-all set to t. However, for *some* repeated timestamp

Re: [O] Hide some timestamp repetitions; timestamp property in agenda

2013-10-06 Thread Jarmo Hurri
Suvayu Ali writes: > On Sat, Oct 05, 2013 at 05:45:28PM +0300, Jarmo Hurri wrote: >> 1. In general I want to see repeated timestamps, TODOs etc. appear at >>every repeat, so I need to have the value of >>org-agenda-repeating-timestamp-show-all set to t. However, for

Re: [O] recurring events with different notes for each occurrence

2013-10-06 Thread Jarmo Hurri
Greetings Karl. Karl Voit writes: > * Jarmo Hurri wrote: >> 2. I have some events that take place multiple times in a week. This is >>easy to accomplish: >> >>* Learn something new about org-mode >> <2013-10-05 Sat 17:00-18:00 +1w>

Re: [O] recurring events with different notes for each occurrence

2013-10-11 Thread Jarmo Hurri
Karl Voit writes: > As a programmer, I do understand your objection. However, I tend to > have following structure: > > * Events > ** LUGG meetings :LUGG:common:tags: > >- common information about this event > > *** <...> single occurrence > ***

[O] Run commands after html export

2013-10-12 Thread Jarmo Hurri
Greetings. I feel like a newbie most of the time when I try to do something a bit more complicated with org. And finding the solution in the manuals is often pretty hard. What I would like to do now is to automatically run some commands after I have exported an org file as html. (In particular,

Re: [O] Run commands after html export

2013-10-12 Thread Jarmo Hurri
Answering my own question... > What I would like to do now is to automatically run some commands > after I have exported an org file as html. I ended up circumventing the problem - that is, the exporter - by creating a code block in which I first run org-html-export-to-html and then do my git st

Re: [O] Run commands after html export

2013-10-13 Thread Jarmo Hurri
Iannis Zannos writes: Greetings Iannis. > Publish provides very extensive configuration capabilities, which > include a preparation-function and a completion-function hook. I saw the manual and worg pages on publishing, but thought that configuring publishing parameters was simply too much wor

Re: [O] recurring events with different notes for each occurrence

2013-10-13 Thread Jarmo Hurri
Karl Voit writes: Greetings again. >> Is there a way to associate a property with each repeating timestamp >> and show this property in the agenda? (There most likely is.) > > (setq org-agenda-skip-additional-timestamps-same-entry nil) > ... most probably fixing your issue IMHO. > > ;; Show all

[O] Beamer export: one question and one bug

2013-10-25 Thread Jarmo Hurri
Greetings. I am using org mode 8.2.1. 1. First the question: when I export the org file below as Beamer (C-c C-e l O), I get an empty outline. How do I fix this? 2. Then the bug. If you remove the comment character in the second slide, Beamer export gives an error, while a regular LaTeX e

Re: [O] Beamer export: one question and one bug

2013-10-26 Thread Jarmo Hurri
Greetings! Nicolas Goaziou writes: >> 1. First the question: when I export the org file below as Beamer (C-c >>C-e l O), I get an empty outline. How do I fix this? > > I cannot reproduce it. What happens with "-q"? The same thing: an empty outline. To be exact, I ran "emacs -q" and the ex

Re: [O] Beamer export: one question and one bug

2013-10-27 Thread Jarmo Hurri
Greetings again. 1. First the question: when I export the org file below as Beamer (C-c C-e l O), I get an empty outline. How do I fix this? > > Seems to work fine for me with the older version that I was running, > but I upgraded to latest and I get the beamer presentation I expecte

Re: [O] Beamer export: one question and one bug

2013-11-03 Thread Jarmo Hurri
Greetings. > Set '#OPTIONS: H:2', then top level headlines become sections (and are > listed in the table of contents) and second-level headlines become the > frames. Yep, that will happen. However, the original idea was to get frame headlines into the table of contents. In order to achieve thi

Re: [O] Beamer export: one question and one bug

2013-11-03 Thread Jarmo Hurri
> As far as I know this is a beamer design decision. The idea seems to > be that if your presentation is short enough that the individual frame > titles would fit in a table of contents then you don't actually need > one. Ok, so be it, I can live with that decision. All the best, Jarmo

[O] Exporting book handouts

2013-11-03 Thread Jarmo Hurri
Greetings. I have been writing a math book, and am still exploring the possibility of using org for the task. Currently all my material is still in plain LaTeX. The tools used are LaTeX, Asymptote, and R. We all know many advantages that the use of org would bring. ;-) For me, one of the possibl

Re: [O] Exporting book handouts

2013-11-04 Thread Jarmo Hurri
t...@tsdye.com (Thomas S. Dye) writes: > Aloha Jarmo, Greetings to Hawaii from the dark and cold north. > I find it easiest to use separate sub-trees for the various different > documents I create from a given body of material. In your case, I > would make a sub-tree for the book and a sub-tre

Re: [O] Exporting book handouts

2013-11-04 Thread Jarmo Hurri
Greetings Nicolas. Nicolas Goaziou writes: >> 1. A way to denote that a certain element (figure, equation, part of >>a longer equation, a piece of text etc.) goes into the Beamer >>export. By default, material should _not_ be included in the >>Beamer export. I don't know how to achi

[O] R contingency table axes labels in org

2013-11-04 Thread Jarmo Hurri
Greetings again. I need to represent a contingency table generated by R in an org file. R output shows the labes of the vertical and the horizontal axes, but these are pruned from the output in org-mode. Is there a nice way to reintroduce the axes labels? # --

Re: [O] R contingency table axes labels in org

2013-11-04 Thread Jarmo Hurri
t...@tsdye.com (Thomas S. Dye) writes: > library(ascii) > ... > print(ascii(table(data)), type="org") Great tip. I even got the result out as an interpreted org table by using ":results output raw". (For example, without "raw" it becomes literal.) Thanks! * interesting data #+BEGIN_SRC R :expo

[O] Babel: the disappearing hline

2013-11-11 Thread Jarmo Hurri
Greetings. While taking my first long tour in the land of Babel, I bumped into a minor hline issue. Can someone tell me why the hline has disappeared from the second table? # -- * test #+NAME: table-one #+BEGIN_SRC emacs-lisp

Re: [O] Babel: the disappearing hline

2013-11-11 Thread Jarmo Hurri
>> While taking my first long tour in the land of Babel, I bumped into a >> minor hline issue. Can someone tell me why the hline has disappeared >> from the second table? > > Because you use CALL without arguments and argument :hlines defaults > to 'no'? Ok, but why is there then a hline in the r

Re: [O] Babel: the disappearing hline

2013-11-11 Thread Jarmo Hurri
Eric Schulte writes: > The ":hlines yes" header argument must be set on the call line itself. Thanks, that works! Since this works differently for org results and raw results, can you explain whether I understand this correctly: a ":hlines yes" at the end of the line is needed to keep hlines i

Re: [O] Babel: the disappearing hline

2013-11-11 Thread Jarmo Hurri
Eric Schulte writes: Greetings Eric. > There are two paces to specify header arguments in a call line, the > arguments in the [] are applied to the input-table function, *not* to > the call line, so they change the inputs. The trailing header > arguments are applied to the call line. So there

Re: [O] Babel: the disappearing hline

2013-11-12 Thread Jarmo Hurri
Rick Frankel writes: Greetings Rick. > Note that in versions of org-mode prior to commit 6857d139 of > 2013-09-28 (below), this was overridden in the setting of > `org-babel-default-header-args:emacs-lisp, so this may be why you are > seeing and "inconsistency" between the call line and the ema

Re: [O] Babel: the disappearing hline

2013-11-12 Thread Jarmo Hurri
Rick Frankel writes: Greetings again. > Again, the solution is to globally set the :hline property to =yes= > instead of the default =no=, and you will get the results you want. The issue I am trying to raise here is the consistency of the system, not the way to solve this particular problem. P

Re: [O] Babel: the disappearing hline

2013-11-14 Thread Jarmo Hurri
Greetings Eric. Eric Schulte writes: > I understand that this particular use case is confusing, however there > are competing use cases and the case described here is not the most > common. > > Take for example the following. > > #+name: data > | header | > || > | one

[O] Controlling image width and placement in Beamer export

2013-11-26 Thread Jarmo Hurri
Greetings. I needed to create an Asymptote-generated centered image with a smaller width than the default .9\linewidth in a Beamer export. After trial and error I ended with the method shown below. In particular, to my surprise an #+ATTR_LATEX: :width 5cm _above_ the #+BEGIN_SRC did not work, s

Re: [O] Controlling image width and placement in Beamer export

2013-11-26 Thread Jarmo Hurri
Greetings John. John Hendy writes: > This comes up all the time. Perhaps we could lower the frequency by making a small change to the manual? > The key is to put it 1) before results (as you've done) and 2) to use > a named source block (with #+name: foo above your babel code) so that > Org

[O] Add time (duration) to timestamp

2015-12-07 Thread Jarmo Hurri
Greetings. Is there a way to add time to a timestamp, say, in a table? For example, say I have a series of events, each lasting 15 minutes, starting at a specified time on a specific day. I want to create a table of them as follows: | time | event | |--

Re: [O] Add time (duration) to timestamp

2015-12-07 Thread Jarmo Hurri
Greetings again. Answering my own question, the following seems to work (15 min is 1/96 of a day): | time | event | |+---| | <2015-12-07 Mon 12:00> | A | | <2015-12-07 Mon 12:15> | B | | <2015-12-07 Mon 12:30> | C | #+TBLFM: @3$1..@4$1=(<

[O] Org list source block

2016-01-03 Thread Jarmo Hurri
Greetings. Once again I fail when I try to do something very _simple_ with Org. I am trying to define a checklist and then use the same list in my exported document in multiple locations. I don't think macros would work here, since my org code has multiple lines. So I am trying to use Babel. Th

Re: [O] Org list source block

2016-01-03 Thread Jarmo Hurri
Richard Lawrence writes: > Hi Jarmo, > > Jarmo Hurri writes: > >> I am trying to define a checklist and then use the same list in my >> exported document in multiple locations. ... >> What is the correct solution to this? > > Would an #+INCLUDE file work

Re: [O] Org list source block

2016-01-04 Thread Jarmo Hurri
Nicolas Goaziou writes: >> Once again I fail when I try to do something very _simple_ with Org. > > You're building programmatically your document. I don't believe it > belongs to "very simple" tasks. Coming from a LaTeX background, Org is a real miracle tool, but it is difficult to figure out h

Re: [O] Org list source block

2016-01-04 Thread Jarmo Hurri
"Charles C. Berry" writes: > If so, you can get it with > > * Test list > #+NAME: my-list > #+BEGIN_SRC org :exports none :results value org > - [ ] foo > - [ ] bar > #+END_SRC > > #+BEGIN_SRC org :noweb yes :results replace :wrap org :exports results ><> > #+END_SRC Thanks, that w

[O] How exactly does "C-c ." work in an existing timestamp?

2016-01-05 Thread Jarmo Hurri
Greetings. Consider the following org file # -- * testing <2016-01-07 Thu 15:00-16:15> # -- When I move my cursor inside the timestamp and press "C-c .", control jumps to a minibuffer in the echo area. But when I try, in the echo

Re: [O] How exactly does "C-c ." work in an existing timestamp?

2016-01-05 Thread Jarmo Hurri
Nick Dokos writes: > Jarmo Hurri writes: > >> # -- >> * testing >> <2016-01-07 Thu 15:00-16:15> >> # -- >> >> When I move my cursor inside the timestamp and press "C-c .&quo

[O] Babel code indentation problem

2016-03-03 Thread Jarmo Hurri
Greetings. I would appreciate help in fixing a Babel indentation problem. I recently added support for Processing programming language in Babel. It is working very nicely except for an indentation problem I ran into. The Org snippet below shows two basically indentical code blocks, one in C and

Re: [O] Babel code indentation problem

2016-03-03 Thread Jarmo Hurri
Eric S Fraga writes: > On Thursday, 3 Mar 2016 at 10:01, Jarmo Hurri wrote: > > [...] > >> So the problem is not in indentation in Processing mode itself, but the >> error appears upon return from editing. This suggests that the issue >> is in the communication be

[O] Babel shell script issue

2016-04-25 Thread Jarmo Hurri
Greetings. I have trouble running shell scripts in Babel. I can't even reproduce examples from worg. For example, this piece of org #+begin_src sh :results drawer cat

Re: [O] Babel shell script issue

2016-04-25 Thread Jarmo Hurri
Sylvain Rousseau writes: > Hi, > > I had the same problem. You actually need to use: > > #+begin_src shell :results drawer > #+end_src > Ok, this removes the error, but I still get no reasonable output from the example from worg: #+begin_src shell :results drawer cat <

Re: [O] Babel shell script issue

2016-04-25 Thread Jarmo Hurri
Eric S Fraga writes: > On Monday, 25 Apr 2016 at 07:24, Jarmo Hurri wrote: >> Greetings. >> >> I have trouble running shell scripts in Babel. I can't even reproduce >> examples from worg. For example, this piece of org >> >> #+begin_

[O] New Beamer environment selection problem

2016-04-27 Thread Jarmo Hurri
Greetings. The newest versions of org (pulled from git) introduced a problem in my use of beamer. Consider the following org file #--- #+STARTUP: beamer * foo ** bar #-

Re: [O] New Beamer environment selection problem

2016-04-27 Thread Jarmo Hurri
Nicolas Goaziou writes: >> The newest versions of org (pulled from git) introduced a problem in my >> use of beamer. Consider the following org file >> >> #--- >> #+STARTUP: beamer >> * foo >> ** bar >> #-

Re: [O] New Beamer environment selection problem

2016-05-02 Thread Jarmo Hurri
Nicolas Goaziou writes: Greetings. >> Debugger entered--Lisp error: (wrong-number-of-arguments max 0) >> max() >> apply(max nil) >> org-fast-tag-selection(nil nil nil nil) >> org-set-tags() >> org-beamer-select-environment() >> call-interactively(org-beamer-select-environment nil ni

[O] org-babel-execute: being exported

2015-03-01 Thread Jarmo Hurri
Greetings. I have now partially implemented support for the Processing programming language in Babel. In particular, in my working branch Babel now recognizes Processing blocks, and shows the resulting sketch in an external viewer when the block is executed. The second part is HTML export. When

Re: [O] org-babel-execute: being exported

2015-03-03 Thread Jarmo Hurri
Aaron Ecay writes: > Hi Jarmo, > > 2015ko martxoak 2an, Jarmo Hurri-ek idatzi zuen: > > [...] > >> 1. How can I identify, in org-babel-execute:processing, if the code is >>executed for export or for some other reason? > > I think the test (not (null org

[O] Babel questions for finalising Processing support

2015-03-06 Thread Jarmo Hurri
Greetings. My implementation of Processing support in Babel is proceeding really well! I have now both external viewing of sketches and export to html (sketches drawn by browser) working. There are a number of details to fix, though. 1. When editing Processing code with C-c ' I get an error fro

[O] Babel: RESULTS for no value

2015-03-07 Thread Jarmo Hurri
Greetings. Would it be feasible to change Babel so that it would *not* output #+RESULTS: into the org buffer in case there is absolutely no value for a block? Consider the following example, which draws an Asymptote picture in an external viewer. # --

Re: [O] Babel: RESULTS for no value

2015-03-07 Thread Jarmo Hurri
Aaron Ecay writes: > It might be a little distracting to see it there, but it shouldn’t > interfere with the functionality in any way (for example, it should be > invisible on export). It the line’s presence causing any problems for > your code? It is a nuisance. To summarize, in my current im

Re: [O] Babel questions for finalising Processing support

2015-03-07 Thread Jarmo Hurri
Aaron Ecay writes: >> 3. In ob-processing.el I (require 'ob). However, to avoid a compiler >>warning about a free variable I still need to declare >> >>(eval-when-compile (defvar org-babel-temporary-directory)) >> >>Is this ok? > > This looks bogus. The defvar for org-babel-tempor

Re: [O] Babel: RESULTS for no value

2015-03-09 Thread Jarmo Hurri
Greetings Charles. "Charles C. Berry" writes: >> To achieve this behaviour, I have set >> >> (defvar org-babel-default-header-args:processing >> '((:results . "html") (:exports . "results")) >> "Default arguments when evaluating a Processing source block.") > > I think you can replace > > : (

[O] PATCH: Processing language support in Babel

2015-03-13 Thread Jarmo Hurri
Processing, and may add features to Processing support when and if I find the need. All the best, Jarmo >From 92318f56b2968b05cfbfb894d3b1eee4c7cdde13 Mon Sep 17 00:00:00 2001 From: Jarmo Hurri Date: Fri, 13 Mar 2015 14:36:46 +0200 Subject: [PATCH] ob-processing.el: Support for Process

Re: [O] PATCH: Processing language support in Babel

2015-03-31 Thread Jarmo Hurri
Greetings. Nicolas Goaziou writes: >> +;; This differs from most standard languages in that >> +;; >> +;; 1) there is no such thing as a "session" in processing >> +;; >> +;; 2) results can only be exported as html; in this case, the >> +;;processing code is embedded via a file into a javas

[O] [PATCH, take 2] Processing language support in Babel

2015-04-14 Thread Jarmo Hurri
combination of Org and Processing, and may add features to Processing support if I find the need. All the best, Jarmo >From c19d5fbca0c7d2faed26fb991430da15114a3dda Mon Sep 17 00:00:00 2001 From: Jarmo Hurri Date: Tue, 14 Apr 2015 16:51:15 +0300 Subject: [PATCH] ob-processing.el: Support

Re: [O] [PATCH, take 2] Processing language support in Babel

2015-04-26 Thread Jarmo Hurri
Nicolas Goaziou writes: >> 1. A patch implementing Processing programming language support in >>Babel. The commit message of the patch is the following: > > Thank you. > > Applied, with minor stylistic tweaks. I also removed the binding C-c C-v > C-k but suggested it in the the comments. Th

[O] A Microsoftesque detail in org

2015-05-15 Thread Jarmo Hurri
Greetings. I was just amazed by the following detail in org. In the example below, if my cursor is anywhere inside the word "Example", and I press Enter, a new line will be inserted below, and the cursor will jump to the next line. The location of the cursor inside the heading line is ignored, an

Re: [O] A Microsoftesque detail in org

2015-05-17 Thread Jarmo Hurri
Rasmus writes: Greetings Rasmus. >> I would suggest that the original interpretation of Enter would not >> be messed with. Messing with Alt-Enter and such is fine, but Enter, >> please no. > > I disagree. Consider the more complete example: > > * TODO [#A] foo bar:tag: > > With your be

Re: [O] A Microsoftesque detail in org

2015-05-18 Thread Jarmo Hurri
Titus von der Malsburg writes: > On 2015-05-17 Sun 14:15, Rasmus wrote: With your behavior you can (i) break the TODO tag; (ii) break the cookie; (iii) break the tag. At least (i) and (ii) are quite destructive. >>> >>> I am not sure what you mean, since a single undo will alway

[O] Local variables in an org file

2015-08-20 Thread Jarmo Hurri
Greetings. Is there a way to define a (preferably local) variable in an org file so that the value of that variable could be referenced in both plain text and code blocks? I often bump into situations where I have a value, say 768, and I use that value both in code blocks and in the accompanying

Re: [O] Local variables in an org file

2015-08-21 Thread Jarmo Hurri
Thomas S. Dye writes: > * Define a local variable > #+name: my-var > #+header: :exports none > #+begin_src R > 768 > #+end_src > #+name: pass-my-var-to-code-block > #+header: :var x=my-var > #+header: :exports both > #+begin_src emacs-lisp > (+ x 1) > #+end_src > > #+results: pass-my-var-to-code-

[O] HTML export / list issues

2015-08-21 Thread Jarmo Hurri
Author: Jarmo Hurri Created: 2015-08-21 Fri 13:56 Validate

Re: [O] HTML export / list issues

2015-08-23 Thread Jarmo Hurri
Greetings Nicolas and thank you for your prompt response. Nicolas Goaziou writes: >> * Example >> I am making a hierarchical list with some code in it. >> 1. level 1 first >> a) level 2 first; I was hoping this would be alphabetized in html >> like it is in org, but it is still

Re: [O] HTML export / list issues

2015-08-23 Thread Jarmo Hurri
Rick Frankel writes: >> > * Problem description >> > The examples below illustrate three problems I have with lists and >> > html export at the moment. >> > 1. lists alphabetized in org are enumerated in html >> >> Actually this is a wrong assumption. Org only distinguishes enumerated, >>

[O] Weird Asymptote mode behaviour in org

2015-08-24 Thread Jarmo Hurri
Greetings. When editing Asymptote code in org, a comma sometimes appears out of nowhere into the Asymptote code. The org code below explains how to reproduce this. (I am using the version of org pulled this morning.) Jarmo * description Move cursor into the code below. Press ~C-c '~ to edit t

Re: [O] HTML export / list issues

2015-08-24 Thread Jarmo Hurri
Nicolas Goaziou writes: >> == >> 1. level 1 first >> a) level 2 first; I was hoping this would be alphabetized in html >> like it is in org, but it is still enumerated >> b) the next item has some code in it;

Re: [O] Weird Asymptote mode behaviour in org

2015-08-26 Thread Jarmo Hurri
Nicolas Richard writes: >> * description >> Move cursor into the code below. Press ~C-c '~ to edit the code in >> Asymptote mode. Do not change anything in the code, just press ~C-c >> '~ to return to org. You will notice that a comma has been inserted >> into the code. >> * test case >>

  1   2   3   >