From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Francesco Pizzolante" Subject: Re: ATTR_LATEX not being applied on dynamic blocks Date: Thu, 05 Sep 2013 10:18:46 +0200 Message-ID: <874n9zisux.fsf@somewhere.org> References: <871u5653or.fsf@somewhere.org> <87a9jt3o2l.fsf@gmail.com> <87a9jtt4er.fsf@somewhere.org> <878uzc4xwt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <878uzc4xwt.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> (Nicolas Goaziou's message of "Wed, 04 Sep 2013 13:41:06 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: Nicolas Goaziou Cc: mailing-list-org-mode , Francesco Pizzolante Hello Nicolas, Nicolas Goaziou wrote: > "Francesco Pizzolante" 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