From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Org and LaTeX tables Date: Wed, 6 Jan 2010 14:27:19 +0100 Message-ID: References: <87d41nplun.fsf@mundaneum.com> <87tyuzo5ey.fsf@mundaneum.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NSVv5-0006rS-3T for emacs-orgmode@gnu.org; Wed, 06 Jan 2010 08:27:27 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NSVv0-0006oN-76 for emacs-orgmode@gnu.org; Wed, 06 Jan 2010 08:27:26 -0500 Received: from [199.232.76.173] (port=45084 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSVv0-0006oC-0T for emacs-orgmode@gnu.org; Wed, 06 Jan 2010 08:27:22 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:46249) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NSVuz-0001xR-Md for emacs-orgmode@gnu.org; Wed, 06 Jan 2010 08:27:21 -0500 Received: by ewy24 with SMTP id 24so20364114ewy.26 for ; Wed, 06 Jan 2010 05:27:21 -0800 (PST) In-Reply-To: <87tyuzo5ey.fsf@mundaneum.com> 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@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?ISO-8859-1?Q?S=E9bastien_Vauban?= Cc: emacs-orgmode@gnu.org On Jan 6, 2010, at 12:10 PM, S=E9bastien Vauban wrote: > Hi Carsten, > > Carsten Dominik wrote: >> On Jan 6, 2010, at 11:29 AM, S=E9bastien Vauban wrote: >>> >>> In the PDF output, I need to have tables somehow highlighted. For =20= >>> example, >>> by placing a border around them, or by putting a background color. >>> >>> Some months ago, I did that by using =3Dorg-special-blocks=3D, such = in =20 >>> the >>> following example: >>> >>> #+BEGIN_shaded >>> | Code | 1st | 2nd | >>> |--------+--------+--------| >>> | 361-94 | 830.00 | 830.00 | >>> | 364-91 | 0.00 | 347.00 | >>> #+END_shaded >>> >>> But =3Dorg-special-blocks=3D turns out to be incompatible with Org- =20= >>> babel, and >>> since the latter grows in importance... >>> >>> ** Quoting LaTeX code >>> >>> #+LaTeX: \begin{shaded} >>> | Code | 1st | 2nd | >>> |--------+--------+--------| >>> | 361-94 | 830.00 | 830.00 | >>> | 364-91 | 0.00 | 347.00 | >>> #+LaTeX: \end{shaded} >>> >>> Is there any other working alternative to get the power of Org =20 >>> tables and >>> LaTeX code surrounding them, in order to get this: >>> >>> \begin{shaded} >>> \begin{tabular}{rrr} >>> Code & 1st & 2nd \\ >>> \hline >>> 361-94 & 830.00 & 830.00 \\ >>> 364-91 & 0.00 & 347.00 \\ >>> \end{tabular} >>> \end{shaded} >> >> Here is a dirty trick that might work. Environments are only =20 >> detected if >> they are the first thing in a new line: >> >> #+LaTeX: {}\begin{shaded} >> | Code | 1st | 2nd | >> |--------+--------+--------| >> | 361-94 | 830.00 | 830.00 | >> | 364-91 | 0.00 | 347.00 | >> #+LaTeX: \end{shaded} > > That DOES work. Thanks a lot. > > Now, regarding "long term" (whatever it means), can I count on that =20= > feature to > still be supported in the future? > > Or would/should such a feature be implemented in a different =20 > manner? Am I the > only one having that need? Can others give a feedback on this? I think Chris Gray's special blocks were actually not a bad idea for this kind of problem. What is the source of the incompatibility with babel? - Carsten