From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: LaTeX export bugs? Date: Mon, 06 Jul 2009 22:31:04 +0200 Message-ID: <87r5wtk0zb.fsf@mundaneum.com> References: <87vdmjglto.fsf@mundaneum.com> <874otwduhr.fsf@mundaneum.com> <13C7ED92-A0C1-40E0-873A-F6A9143167DB@gmail.com> <87skhehl7w.fsf@mundaneum.com> <81A4AEEC-8843-4D86-89F5-31227882A9D4@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi all, Carsten Dominik wrote: > S=C3=A9bastien Vauban wrote: >> Carsten Dominik wrote: >>> S=C3=A9bastien Vauban wrote: >> [This is not working...] >> --8<---------------cut here---------------start------------->8--- #+LaTeX: \begin{framed} #+ATTR_LaTeX: align=3Dlrrr | Code | \euro{} | \% | \euro{} | |-----------+---------+-----+---------| | GSM | | | 0.00 | | Internet | 168.45 | 100 | 168.45 | | Mat=C3=A9riel | 295.99 | 100 | 295.99 | | Publicit=C3=A9 | 214.25 | 33 | 70.70 | | Autres | | | 0.00 | |-----------+---------+-----+---------| | Total | | | 535.14 | #+TBLFM: $4=3D$2*$3/100;%.2f::@7$4=3Dvsum(@-I..@-II) #+LaTeX: \end{framed} --8<---------------cut here---------------end--------------->8--- >> >> Am I misunderstanding section 12.7.2 or is this a feature? > > This does not work. What is happening here is that during LaTeX export, > these begin/end lines are inserted into the buffer. Then the LaTeX export= er > marks the entire content of this environment as something that should be > exported literally to LaTeX, this is why you can write > > \begin{equation} > a=3Db > \end{equation} > > and it will all be exported literally to LaTeX. > > The fact that the table is transformed into a LaTeX table at all is actua= lly > a bug which I will fix. I'm not sure I understand what's the impact of your last sentence. But, may= be, I don't have too... Related to this: >> Now, more important question, one of the few that's not answered from my >> previous post: how can I shade or frame a table? For me, inserting #+LaT= eX >> tags is different from inserting #+BEGIN_LaTeX and #+END_LaTeX tags: the >> first one should have no impact on the rest of the text. Rephrasing my question, asking it again in other words (showing you I did n= ot follow correctly): for me, --8<---------------cut here---------------start------------->8--- #+BEGIN_framed XXX #+END_framed --8<---------------cut here---------------end--------------->8--- is equivalent to: --8<---------------cut here---------------start------------->8--- #+LaTeX: \begin{framed} XXX #+LaTeX: \end{framed} --8<---------------cut here---------------end--------------->8--- If not, that's not what I understand from reading section 12.7.2 about the quoting of LaTeX code? Though, it seems (seemed) clear... > So there is not really a standard way to do what you want. > > However, you could take a look as Chris Gray's contributes package > org-special-blocks.el > > http://orgmode.org/worg/org-contrib/org-special-blocks.php > > which was made just for this use case. Excellent. Tested. Work perfectly, except for: >>>> - Even with version 6.28, the `#+TBLNAME' tag must be located in colum= n 0 >>>> (at least, for the highlighting features to work) >>> >>> Fixed, thanks. Same problem with the Org-special-blocks constructs: they need to be declar= ed in column 0; otherwise, they're just ignored... A detail, though: putting my table in a `framed' block makes the highlighti= ng of the keywords such as TBLNAME and TBLFM disappear... Many thanks for all the help you all provide us with! Best regards, Seb PS- Hoping desperately Org-mode will win! --=20 S=C3=A9bastien=C2=A0Vauban _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode