Re: [O] ATTR_LATEX not being applied on dynamic blocks

2013-09-05 Thread Francesco Pizzolante


Hello Nicolas,

Nicolas Goaziou wrote:
 Francesco Pizzolante f...@missioncriticalit.com 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




Re: [O] ATTR_LATEX not being applied on dynamic blocks

2013-09-04 Thread Nicolas Goaziou


Hello,

Francesco Pizzolante f...@missioncriticalit.com 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.

 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.


Regards,

-- 
Nicolas Goaziou




Re: [O] ATTR_LATEX not being applied on dynamic blocks

2013-09-03 Thread Nicolas Goaziou


Hello,

Francesco Pizzolante
fpz-djc/ipccudyqhejpep6iedvlejwur...@public.gmane.org writes:

 Hi,

 I have an issue with ATTR_LATEX attributes not being applied to the clocktable
 dynamic block.

 This issue is similar to the one exposed by Sebastien in his post [1], so I 
 took
 his ECM and modified it a little bit.

Attributes are correctly applied to the block, but you want them to
apply on the inner table instead, which is different.  Correct syntax
should be something along the lines of:

  #+BEGIN: clocktable :maxlevel 4 :scope file :block 2013-06 :lang en :narrow 
80! :indent t
  Clock summary at [2013-09-03 Tue 17:16], for June 2013.
  #+ATTR_LATEX: :environment tabularx :width \linewidth :align Xrrr
  | Headline| Time |  |  |
  |-+--+--+--|
  | Total time  | 6:07 |  |  |
  |-+--+--+--|
  | Tasks   | 6:07 |  |  |
  | \__ Design  |  | 1:11 |  |
  | \_ TODO Do this |  |  | 1:11 |
  | \__ Develop |  | 4:56 |  |
  | \_ TODO Do that |  |  | 4:56 |
  #+END:


Regards,

-- 
Nicolas Goaziou