From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: Org and LaTeX tables Date: Wed, 06 Jan 2010 12:10:13 +0100 Message-ID: <87tyuzo5ey.fsf@mundaneum.com> References: <87d41nplun.fsf@mundaneum.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 Carsten, Carsten Dominik wrote: > On Jan 6, 2010, at 11:29 AM, S=C3=A9bastien Vauban wrote: >> >> In the PDF output, I need to have tables somehow highlighted. For examp= le, >> 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 = 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- bab= el, 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 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 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 feature= to still be supported in the future? Or would/should such a feature be implemented in a different manner? Am I = the only one having that need? Can others give a feedback on this? Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode