[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] ATTR_LATEX not being applied on dynamic blocks
From: |
Francesco Pizzolante |
Subject: |
Re: [O] ATTR_LATEX not being applied on dynamic blocks |
Date: |
Thu, 05 Sep 2013 10:18:46 +0200 |
User-agent: |
Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.2 (windows-nt) |
Hello Nicolas,
Nicolas Goaziou wrote:
> "Francesco Pizzolante" <address@hidden> writes:
>
>> But if I try what you suggest and move the #+ATTR_LATEX line inside the
>> dynamic block (after the #+BEGIN: clocktable and just before the generated
>> table), then this line gets lost as soon as the dynamic block is
>> regenerated, which is not what I expect.
>
> Then some attribute could be added to dynamic block arguments in order to
> re-create the ATTR_LATEX keyword each time. IIRC we did that for #+CAPTION
> some months ago. It shouldn't be difficult to do it for this one.
I've seen, indeed (thanks!), that there was a ":header" option, which you can
use to add free text in front of the dynamic table.
--8<---------------cut here---------------start------------->8---
#+BEGIN: clocktable :maxlevel 2 :scope ("clock-file.org") :block 2013-08
:fileskip0 t :lang "en" :header "#+ATTR_LaTeX: :environment longtabu :align
lXrr\n"
#+ATTR_LaTeX: :environment longtabu :align lXrr
| File | Headline | Time | |
|----------------+---------------------+--------+------|
| | ALL Total time | 1:44 | |
|----------------+---------------------+--------+------|
| clock-file.org | File time | *1:44* | |
| | Projet management | 1:44 | |
| | \__ Writing reports | | 1:44 |
#+END:
Though, doing so, there is no CAPTION anymore...
I could add it in the "header", but then I loose the auto-generated (and
useful) stuff in the caption itself:
#+CAPTION: Clock summary at [2013-09-04 Wed 14:22], for August 2013.
--8<---------------cut here---------------end--------------->8---
^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^
useful very useful
Maybe adding a ":header" should not strip the autogenerated caption?
>> With Org 7, having the #+ATTR_LATEX line just before the #+BEGIN:
>> clocktable line applies the attributes to the inner table of the dynamic
>> block and the #+ATTR_LATEX line is not lost each time I regenerate the
>> dynamic block.
>
> This is not possible anymore.
OK.
Regards,
Francesco