Re: [O] Sub-totals

2014-02-19 Thread Michael Brand
Hi Cecil

On Sun, Feb 16, 2014 at 10:06 AM, Michael Brand
 wrote:

> #+TBLFM: @>$2 = vsum(@II..@>>) :: $3 = if(vlen(@-I$2..@0$2) == 
> vlen(@-I$2..@+I$2), vsum(@-I$2..@+I$2) +.0, string("")); EN f-1 :: @>$3 = 
> string("")

I should have simplified the condition in "if" to

#+TBLFM: @>$2 = vsum(@II..@>>) :: $3 = if(vlen(@0..@+I) == 1,
vsum(@-I$2..@+I$2) +.0, string("")); EN f-1 :: @>$3 = string("")

It's now also in the ERT.

Michael



[O] [PATCH] Fix clock table when there are links in headings.

2014-02-19 Thread Alexey Lebedeff
Hi,

This screenshot
https://www.dropbox.com/s/g3obxpigr8gg69f/-Org%20Agenda-%20-%20emacs_017.png
shows how it looked before the patch. It's no good unless you have
very good memory for numbers )
From d14eac26b0a452b39e0f8231d2c7a552f16ffe1b Mon Sep 17 00:00:00 2001
From: Alexey Lebedeff 
Date: Thu, 20 Feb 2014 08:43:21 +0400
Subject: [PATCH] Fix clock table when there are links in headings.

* lisp/org.el (org-all-links-display-format): New function which
  replaces all links in string with their descriptions.

* lisp/org-clock.el (org-clock-get-table-data): When linking table
  entry to original heading, replace all links there with their
  descriptions. It's because when nesting org links they are converted
  to something like "{{some-link}{some-description}}" and as a result
  mulitple rows such as that can become almost indistinguishable.

TINYCHANGE
---
 lisp/org-clock.el | 3 ++-
 lisp/org.el   | 7 +++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 8e1d632..31e59a8 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -2709,7 +2709,8 @@ TIME:  The sum of all time spend in this tree, in minutes.  This time
    (save-match-data
  (org-make-org-heading-search-string
   (match-string 2
-			   (match-string 2)))
+			   (org-all-links-display-format
+			(match-string 2
 		tsp (when timestamp
 			  (setq props (org-entry-properties (point)))
 			  (or (cdr (assoc "SCHEDULED" props))
diff --git a/lisp/org.el b/lisp/org.el
index ac53e56..a9a5bd7 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -24095,6 +24095,13 @@ If there is no description, use the link target."
 		   nil t link)
   link)))
 
+(defun org-all-links-display-format (string)
+  "Replaces all links in string with their descriptions."
+  (loop
+   for result = string then (org-link-display-format result)
+   while (string-match org-bracket-link-regexp result)
+   finally (return result)))
+
 (defun org-toggle-link-display ()
   "Toggle the literal or descriptive display of links."
   (interactive)
-- 
1.8.5.3



Re: [O] [patch] Support CUSTOM_ID property in latex export

2014-02-19 Thread Richard Lawrence
Nicolas Goaziou  writes:

> Richard Lawrence  writes:
>
>> Would using a different property---say, LATEX_LABEL---resolve your
>> concerns?  This property could be explicitly documented as overriding
>> Org's default labeling, with the value passed down directly to LaTeX.
>
> I'd rather have a variable, e.g., `org-latex-custom-id-as-label'. When
> this variable is non-nil, Org uses raw custom ID value instead of
> auto-generated value for labels.
>
> Its docstring should explain the limitations that are introduced when
> using this variable, and in which cases it is interesting to enable it
> (i.e, your use-case). IOW the docstring should be informative about the
> trade-off.

Ah, yes, that is more elegant.

> So, it's basically your patch with an additional variable and its
> docstring. Do you want to take care of it?

Sure, I can do this in the next couple of days.

Best,
Richard


(If possible, please encrypt your reply to me using my PGP key:
Key ID: CF6FA646
Fingerprint: 9969 43E1 CF6F A646.
See http://www.ocf.berkeley.edu/~rwl/encryption.html for more information.)



Re: [O] Graph not hierarchical?

2014-02-19 Thread Lawrence Bottorff
Is this ID spoken of? http://orgmode.org/worg/org-api/org-id-api.html

So far it's just a field in Property, correct?


On Tue, Feb 18, 2014 at 12:46 PM, Samuel Wales  wrote:

> there is also <>.
>


[O] dynamic block for ordered list of all clock intervals

2014-02-19 Thread Andrea Rossetti
Hello Org users,

  recently I had to clock several small tasks,
switching repeatedly from one to the other, and
wanted to see the chronological history of all
the CLOCK intervals, i.e. no sums/aggregations
by day/week.

  So I wrote a (first rough version of a) dynamic
block function for it, you may see it in this example:

https://raw.github.com/thesoftwarebin/the-emacs-software-bin/master/clock-history/clock-history.org

  May I please ask if that function "reinvents
the wheel", i.e. if there's already a function
in Org to extract that same list.

  Thanks, kindest regards.

  Andrea




Re: [O] org-export-latex-hyperref-options-format

2014-02-19 Thread Joe Hirn
Hi just sat down to code this up. I assume the keywords are so we can use
data within the plist argument (info) passed to `org-latex-template'. But
I'm not exactly sure what you mean by %k for keywords.

Are you suggesting we could do something like:

"\\hypersetup{\n  pdfkeywords={%kkeywords},\n
 pdfsubject={%kdescription},\n  pdfcreator={%kcreator}}\n"

If that's the idea, is there a more powerful construct than regex matching
for achieving this? Otherwise, can you give me an example of what you had
in mind for the keyword placeholders.

Thanks


On Wed, Feb 19, 2014 at 7:05 AM, Nicolas Goaziou wrote:

> Hello,
>
> Joe Hirn  writes:
>
> > So I understand, you're recommending I disable org-latex-with-hyperref
> and
> > then add my own \\hypersetup. My goal would be to avoid placing a #+
> entry
> > into every .org file I compose. Which var would be the easiest to to
> adjust
> > so I can emit \\hypersetup by default and still access the info map that
> is
> > passed to org-latex-template. I'd like to get the keywords, subject and
> > creator variables that are emitted right now.
>
> On a personal level, if you only need to add keyword-value pairs,
> I think the simplest solution is to add a class in `org-latex-classes',
> where you insert an additional "\hypersetup{...}" command. You don't
> need to change `org-latex-with-hyperref' in this case.
>
> You can also use a (final) filter to install this command if you don't
> want to bother creating a new class.
>
> On a more general level, I'll welcome a solution replacing
> `org-latex-with-hyperref' with `org-latex-hyperref-template', which
> could be either nil (no hyperref command) or a string with some
> placeholders (e.g. %k for keywords).
>
> What do you think?
>
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] css classes to tables in html export

2014-02-19 Thread Rick Frankel
On Tue, Feb 18, 2014 at 06:08:50PM +0100, Vikas Rawal wrote:
> Sorry, you forgot to reply to the mailing list. I am copying mailing
> list in my reply. I hope it sticks to the thread.
>
> My intent was to add classes, so that when I export to html, I get
> something like this:
>
> 

So, use the class attribute.

#+ATTR_HTML: :class table table-striped table-bordered table-condensed
| a | b | c |
|---+---+---|
| 1 | 2 | 3 |




>
> On Mon, Feb 17, 2014 at 03:22:13PM -0500, Rick Frankel wrote:
> > On Sun, Feb 16, 2014 at 10:31:04PM +0100, Vikas Rawal wrote:
> > > How do I add custom css classes to tables while publishing my project?
> > >
> >
> > * Table attributes
> > This
> > #+BEGIN_EXAMPLE
> > #+ATTR_HTML: :style background-color:grey :cellpadding 1em
> > | a | b | c |
> > |---+---+---|
> > | 1 | 2 | 3 |
> > #+END_EXAMPLE
> >
> > results in this:
> >
> > #+BEGIN_HTML
> >  > frame="hsides" style="background-color:grey">
> >
> > 
> > 
> >
> > 
> >
> > 
> > 
> > 
> > 
> > a
> > b
> > c
> > 
> > 
> > 
> > 
> > 1
> > 2
> > 3
> > 
> > 
> > 
> > 
> > 
> > #+END_HTML
> >
> >
> > rick



Re: [O] C-c C-c in Org Footnotes

2014-02-19 Thread Samuel Wales
this doesn't answer your question, but i find that inline footnotes
keep everything together.

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY can get it.

Denmark: free Karina Hansen NOW.



Re: [O] [RFC] Move ox-koma-letter into core?

2014-02-19 Thread Viktor Rosenfeld

Hi Tom,

Am 17.02.14 22:56, schrieb Thomas S. Dye:


FWIW, as a small businessman, the indemnification clause looks fairly
standard to me.  The contracts for archaeological services that we
routinely sign typically have a clause like this, usually coupled with a
request for a certificate of insurance that specifies the levels of
liability insurance that the business carries.

As I read the clause, FSF is in the position of accepting 1) a code
contribution from a developer, and 2) the developer's assurance that the
contributed code can't be claimed as property by a third party.  It
seems prudent that, in the event of a successful property claim by a
third party to a piece of code contributed by a developer, the developer
who gave the false assurance should be held responsible. Otherwise, FSF
might be brought down by copyleft opponents who knowingly contribute
code to which others have property rights in order to create a basis for
lawsuits.


Thanks for your reply. I was hoping to get some feedback on how other 
Orgmode contributors see this issue (although this list is obviously 
self-selective). The problem I have is that I'm not a lawyer or a 
businessman and not a native English speaker. I do know enough though 
not to lightly sign documents I don't fully understand.


At this point, I'm considering to actually get proper legal advice about 
this form, because I'm not satisfied in the state of affairs where I 
have stopped participating in the Orgmode community because I do not 
understand the copyright assignment form.


Cheers,
Viktor




[O] Problem upgrading org mode

2014-02-19 Thread Arunabha Ghosh
Hi,
I'm using emacs 24 on OSX and I'm unable to upgrade org mode.

I did the following

1) Checkout the org mode git repo
2) Checkout the latest release tag : git checkout release_8.2.5h
3) Tell emacs to load the relevant paths
 ;; Setup org mode
 (add-to-list 'load-path "/Users/agh/arun/dev/org-mode/lisp" t)
 (add-to-list 'load-path "/Users/agh/arun/dev/org-mode/contrib/lisp" t)

 (require 'org)
 (define-key global-map "\C-cl" 'org-store-link)
 (define-key global-map "\C-ca" 'org-agenda)
 (setq org-log-done t)
 (setq org-agenda-files (list "~/Google Drive/orgmode/work.org"
 "~/Google Drive/orgmode/personal.org"))
 (require 'ox-taskjuggler)
 ;; End Setup org mode

It looks like Emacs is loading the new libraries correctly
locate-library ox-taskjuggler returns the path to the git directory

However, emacs is still using the org mode files which came with the
distribution. Specifically when I run taskjuggler export, the old exporter
is being used.

locate-library org-taskjuggler returns a path in the emacs installation
files (an elc file).

How do I get emacs to use the latest org mode files from the git repo ?

Thanks,
Arunabha


Re: [O] Sub-totals

2014-02-19 Thread Michael Brand
On Wed, Feb 19, 2014 at 1:54 PM, Nick Dokos  wrote:
> Nice! Worth a mention in the org-hacks section on Worg I think.

Maybe. Instead I would like to favor to look at the page with the Worg
tutorials and in the spreadsheet section to follow the link to the
"Emacs Regression Test (ERT) for Org tables" with example use cases
for TBLFM:
http://orgmode.org/worg/org-tutorials/index.html#Spreadsheet

Michael



Re: [O] css classes to tables in html export

2014-02-19 Thread Vikas Rawal
Sorry, you forgot to reply to the mailing list. I am copying mailing
list in my reply. I hope it sticks to the thread.

My intent was to add classes, so that when I export to html, I get
something like this:



Vikas

On Mon, Feb 17, 2014 at 03:22:13PM -0500, Rick Frankel wrote:
> On Sun, Feb 16, 2014 at 10:31:04PM +0100, Vikas Rawal wrote:
> > How do I add custom css classes to tables while publishing my project?
> >
> 
> * Table attributes
> This
> #+BEGIN_EXAMPLE
> #+ATTR_HTML: :style background-color:grey :cellpadding 1em
> | a | b | c |
> |---+---+---|
> | 1 | 2 | 3 |
> #+END_EXAMPLE
> 
> results in this:
> 
> #+BEGIN_HTML
>  frame="hsides" style="background-color:grey">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> a
> b
> c
> 
> 
> 
> 
> 1
> 2
> 3
> 
> 
> 
> 
> 
> #+END_HTML
> 
> 
> rick



Re: [O] Does org export have something like Lisp quasiquote and unquote?

2014-02-19 Thread Oleh
> The following will do what you want.
>
> set the value
> #+begin_src lisp :results silent
> (defvar foo '(defun square (x)  (* x x)))
> #+end_src
>
> #+begin_src lisp :results output pp code
> foo
> #+end_src
>
> #+RESULTS:
> #+BEGIN_SRC lisp
>
> (DEFUN SQUARE (X) (* X X))
> #+END_SRC
>
> Best,
>
> --
> Eric Schulte
> https://cs.unm.edu/~eschulte
> PGP: 0x614CA05D

Thanks, Eric,

but this isn't what I had in mind.
I want the org-mode file to remain unchanged while behaving as if it
was changed,
something like C macros: C compiler is not aware of macros and I'm not aware
of the expanded code, but we get along nicely anyway.

First use-case is that I'm writing documentation for a library of
functions, so some of
them are mentioned a few times. I'd like to refer to them not by name, which
can be subjected to change but by a file local variable.
For instance, I've got a link in a table referring to a heading. They
both have the same
name and I'd like to keep them consistent, but I don't want to do it manually.

Second use-case is that I'm generating a HTML block with
`htmlize-buffer' that I want to
include in the document. I'd prefer not to have hundreds of lines of
HTML that correspond
to 3 lines of code that they're supposed to represent. I'd rather
generate this HTML
via this macro mechanism that I hope exists in some form, maybe in
conjunction with a
makefile-like mechanism.

Here's the org file that I'm working on:
https://raw.github.com/abo-abo/lispy/gh-pages/index.org.
As you see a lot of redundancy there and also several huge ugly HTML blocks.
Btw, is there a way to #include HTML blocks?
Here's the export result: http://abo-abo.github.io/lispy/.

regards,
Oleh



Re: [O] Does org export have something like Lisp quasiquote and unquote?

2014-02-19 Thread Eric Schulte
Oleh  writes:

> Hi all,
>
> I'd like to perform Elisp operations on org-mode buffer while exporting.
>
> Something like this (the comma unquotes like in Lisp quasiquote):
>
> ,(setq foo "(defun square (x)\n  (* x x))")
>
> #+begin_src lisp
> ,foo
> #+end_src
> #+BEGIN_HTML
> ,(with-current-buffer
>(with-current-buffer (get-buffer-create "*temp*")
>  (lisp-mode)
>  (insert (upcase foo))
>  (htmlize-buffer))
>  (kill-buffer "*temp*")
>  (buffer-string))
> #+END_HTML
>
> And I want it to be equivalent to:
>
> #+begin_src lisp
> (defun square (x)
>   (* x x))
> #+end_src
> #+BEGIN_HTML
> 
> #+END_HTML
>
> Is something like this possible?
>
> regards,
> Oleh
>

The following will do what you want.

set the value
#+begin_src lisp :results silent
(defvar foo '(defun square (x)  (* x x)))
#+end_src

#+begin_src lisp :results output pp code
foo
#+end_src

#+RESULTS:
#+BEGIN_SRC lisp

(DEFUN SQUARE (X) (* X X))
#+END_SRC

Best,

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D



Re: [O] C-c C-c in Org Footnotes

2014-02-19 Thread Samuel Schaumburg
Thanks Eric,

I think that will do.

Cheers
Samuel

e...@ericabrahamsen.net writes:

> Samuel Schaumburg  writes:
>
>> Hi there,
>>
>> I frequently use org to write outlines for my thesis-papers. This often
>> requires lenghty footnotes. The manual says, that I can use C-c C-c to
>> jump back into the main text, where the footnote was originally set.
>>  back to the footnotemark. I can use C-a if it is just a one line, but
>>  often it is not, and I find myself moving around in the buffer some
>>  way, to get back to the footnote mark and then C-c C-c.
>>
>> What I would like to know is, wether there is an easy way, to just make
>> C-c C-c work whenever I am in a footnote paragraph, no mater where the
>> cursor currently is positioned.
>>
>> If you have any idea on how to do that, I would appreciate that.
>>
>> Thanks
>> Samuel
>
> I'm not sure if this counts as an "easy" way, but you could add a
> function to org-ctrl-c-ctrl-c-final-hook, that checks if you're in a
> multi-line footnote definition and then calls org-footnote-action as if
> you were. I say put it in the final hook just so it doesn't clobber
> anything else that C-c C-c might want to do at point. It could look
> like (very lightly tested):
>
> (defun my-return-from-fn ()
>   (let* ((context (org-element-context))
>(parent (org-element-property :parent context)))
> (when (eq (org-element-type parent) 'footnote-definition)
>   (goto-char (org-element-property :post-affiliated context))
>   (call-interactively 'org-footnote-action
>
> (add-hook 'org-ctrl-c-ctrl-c-final-hook 'my-return-from-fn)
>
> It still tells you "C-c C-c can do nothing useful at this location", but
> at least it returns you to the right place!
>
> E



Re: [O] org-export-latex-hyperref-options-format

2014-02-19 Thread Joe Hirn
I think that's a great idea.

Thanks for helping me workaround my individual problem and advice on what
type of patch you're welcoming.

I just happen to have the free time today so I'll try to get a patch to
you.


On Wed, Feb 19, 2014 at 7:05 AM, Nicolas Goaziou wrote:

> Hello,
>
> Joe Hirn  writes:
>
> > So I understand, you're recommending I disable org-latex-with-hyperref
> and
> > then add my own \\hypersetup. My goal would be to avoid placing a #+
> entry
> > into every .org file I compose. Which var would be the easiest to to
> adjust
> > so I can emit \\hypersetup by default and still access the info map that
> is
> > passed to org-latex-template. I'd like to get the keywords, subject and
> > creator variables that are emitted right now.
>
> On a personal level, if you only need to add keyword-value pairs,
> I think the simplest solution is to add a class in `org-latex-classes',
> where you insert an additional "\hypersetup{...}" command. You don't
> need to change `org-latex-with-hyperref' in this case.
>
> You can also use a (final) filter to install this command if you don't
> want to bother creating a new class.
>
> On a more general level, I'll welcome a solution replacing
> `org-latex-with-hyperref' with `org-latex-hyperref-template', which
> could be either nil (no hyperref command) or a string with some
> placeholders (e.g. %k for keywords).
>
> What do you think?
>
>
> Regards,
>
> --
> Nicolas Goaziou
>


[O] [export] Tables in ox-reveal export

2014-02-19 Thread Alexander Vorobiev
Hi,
Is it possible to control appearance of tables in reveal.js
presentations created with ox-reveal? The resulting html tables appear
on the left and I want to be able to have them centered.

There is a comment at
http://stackoverflow.com/questions/20583341/tables-and-div-elements-are-not-centred-in-reveal-js
that defining tables with  would produce
centered tables. Is it possible to have ox-reveal use that additional
attribute and/or other table-formatting directives?

Thanks,
Alex



Re: [O] Post() evaluates but fails in export

2014-02-19 Thread Jarmo Hurri

Hi again.

Need to repost my own question (below), since there was no response to
this.

All the best,

Jarmo

> The following code evaluates just fine with C-c C-c, but fails during
> export. This is with the newest org-mode just pulled and built. How do I
> fix the issue?
>
> # ---
> Here is a function I want to define (use below), but which I do not
> want to export (neither code nor results).
> #+name: foo
> #+begin_src emacs-lisp :exports none :var bar="baz"
>   (concat "bar" bar)
> #+end_src
>
> #+RESULTS: foo
> : barbaz
>
> Here is a function that uses foo() defined above. This evaluates just
> fine with C-c C-c, but fails in export. It fails both in ASCII export
> (C-c C-e t a) and LaTeX export (C-c C-e l p). The error is
>
> org-babel-ref-resolve: Reference 'foo' not found in this buffer
>
> #+name: nofun
> #+BEGIN_SRC emacs-lisp :exports results :post foo("nofun")
> #+END_SRC
>
> #+RESULTS: nofun
> : barnofun
> # ---




[O] Does org export have something like Lisp quasiquote and unquote?

2014-02-19 Thread Oleh
Hi all,

I'd like to perform Elisp operations on org-mode buffer while exporting.

Something like this (the comma unquotes like in Lisp quasiquote):

,(setq foo "(defun square (x)\n  (* x x))")

#+begin_src lisp
,foo
#+end_src

#+BEGIN_HTML
,(with-current-buffer
   (with-current-buffer (get-buffer-create "*temp*")
 (lisp-mode)
 (insert (upcase foo))
 (htmlize-buffer))
 (kill-buffer "*temp*")
 (buffer-string))
#+END_HTML

And I want it to be equivalent to:

#+begin_src lisp
(defun square (x)
  (* x x))
#+end_src

#+BEGIN_HTML

#+END_HTML

Is something like this possible?

regards,
Oleh



[O] [bug] Incompatible agenda commands

2014-02-19 Thread Sebastien Vauban
"Sebastien Vauban" wrote:
> Bastien wrote:
>> "Sebastien Vauban" writes:
>>
>>> While a custom agenda command such as the following used to work some time
>>> ago, it does not anymore.
>>>
>>>   (add-to-list 'org-agenda-custom-commands
>>>'("D" "Stuck + agenda"
>>>  ((stuck "")
>>>   (agenda ""
>>>   ((org-agenda-span 'week) t)
>>>
>>> Now, it seems that the "stuck" block view inhibits any extra view to be
>>> displayed afterward.
>>
>> do I understand correctly that you only get the stuck view and not the
>> agenda view?  If so, I cannot reproduce it.
>
> I'll try to provide you with a reproducible recipe, then.

Add the following line to this ECM:

--8<---cut here---start->8---
  (setq org-agenda-sticky nil)
--8<---cut here---end--->8---

and you'll be bitten by that bug!

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] org-export-latex-hyperref-options-format

2014-02-19 Thread Nicolas Goaziou
Hello,

Joe Hirn  writes:

> So I understand, you're recommending I disable org-latex-with-hyperref and
> then add my own \\hypersetup. My goal would be to avoid placing a #+ entry
> into every .org file I compose. Which var would be the easiest to to adjust
> so I can emit \\hypersetup by default and still access the info map that is
> passed to org-latex-template. I'd like to get the keywords, subject and
> creator variables that are emitted right now.

On a personal level, if you only need to add keyword-value pairs,
I think the simplest solution is to add a class in `org-latex-classes',
where you insert an additional "\hypersetup{...}" command. You don't
need to change `org-latex-with-hyperref' in this case.

You can also use a (final) filter to install this command if you don't
want to bother creating a new class.

On a more general level, I'll welcome a solution replacing
`org-latex-with-hyperref' with `org-latex-hyperref-template', which
could be either nil (no hyperref command) or a string with some
placeholders (e.g. %k for keywords).

What do you think?


Regards,

-- 
Nicolas Goaziou



Re: [O] Sub-totals

2014-02-19 Thread Nick Dokos
Cecil Westerhof  writes:

> 2014-02-16 10:06 GMT+01:00 Michael Brand :
>
> > - I would like to have only the last element of the range filled.
>
> I always thought that this would not be possible with reasonable
> effort. Your question made me think again and it is possible, now I
> can change my own use cases with sub-total :-) . See docstring and
> take the procedure with vlen etc. from the TBLFM of the new ERT
> test-org-table/sub-total here:
> 
> http://orgmode.org/w/org-mode.git?p=org-mode.git;a=blob;f=testing/lisp/test-org-table.el
>
> Or read the docstring there and just take this copy that I used to
> build the ERT:
> |---+---+---|
> | Item  |  Item |  Sub- |
> | name  | value | total |
> |---+---+---|
> | a1    |   4.1 |       |
> | a2    |   8.2 |       |
> | a3    |       |  12.3 |
> |---+---+---|
> | b1    |  16.0 |  16.0 |
> |---+---+---|
> | c1    |    32 |       |
> | c2    |    64 |  96.0 |
> |---+---+---|
> | Total | 124.3 |       |
> |---+---+---|
> #+TBLFM: @>$2 = vsum(@II..@>>) :: $3 = if(vlen(@-I$2..@0$2) ==
> vlen(@-I$2..@+I$2), vsum(@-I$2..@+I$2) +.0, string("")); EN f-1 ::
> @>$3 = string("")
>
> I made:
>     #+TBLFM: @>$2 = vsum(@<<..@>>) :: @<<$3..@>>$3 = if(vlen(@-I$2..@0$2) == 
> vlen(@-I$2..@+I$2), vsum(@-I$2..@+I$2), string(""))
>

Nice! Worth a mention in the org-hacks section on Worg I think.

-- 
Nick




Re: [O] [patch] Support CUSTOM_ID property in latex export

2014-02-19 Thread Nicolas Goaziou
Hello,

Richard Lawrence  writes:

> Would using a different property---say, LATEX_LABEL---resolve your
> concerns?  This property could be explicitly documented as overriding
> Org's default labeling, with the value passed down directly to LaTeX.

I'd rather have a variable, e.g., `org-latex-custom-id-as-label'. When
this variable is non-nil, Org uses raw custom ID value instead of
auto-generated value for labels.

Its docstring should explain the limitations that are introduced when
using this variable, and in which cases it is interesting to enable it
(i.e, your use-case). IOW the docstring should be informative about the
trade-off.

So, it's basically your patch with an additional variable and its
docstring. Do you want to take care of it?

> The worrisome situation I have in mind is if I find that I eventually
> need to move away from Org to straight LaTeX.

OK. Since you had developed this idea in another paragraph, I thought
there was another reason. Never mind then.


Regards,

-- 
Nicolas Goaziou