From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: Error when exporting to LaTeX Date: Wed, 20 Jan 2010 14:37:44 +0100 Message-ID: <87eilkc2xj.fsf@mundaneum.com> References: <876375d3aj.fsf@mundaneum.com> <87zl4hj5ty.fsf@mundaneum.com> <50EF1D2C-DF86-4644-A49E-148AA67DCAEB@gmail.com> <87eilnfurt.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 en all, S=C3=A9bastien Vauban wrote: > The "accolade workaround" (in front of the LaTeX environment), work fine = in > some cases. > > Though, here is a relatively simple Org file that exposes some of the pro= blems > I'm still confronted with: > > #+TITLE: Spanish manual > #+AUTHOR: Me > #+EMAIL: no-LMehjL4SQ+Y@public.gmane.org > #+DATE: 2010-01-18 > #+OPTIONS: H:4 num:t toc:nil > #+LaTeX_CLASS: article > > #+LaTeX_HEADER: \usepackage{xcolor} > #+LaTeX_HEADER: \usepackage{fancybox} > #+LaTeX_HEADER: \usepackage{tikz} > #+LaTeX_HEADER: \usetikzlibrary{shapes,calc} > #+LaTeX_HEADER: \newenvironment{etiket} {\fboxsep 10pt \begin{Sbox}\begin= {minipage}{\linewidth}} {\end{minipage}\end{Sbox}\shadowbox{\TheSbox}} > #+LaTeX_HEADER: \newcommand{\rfill}{{\leavevmode \color{blue!80}\leaders = \hrule height 0.7pt\hfill} \\} > #+LaTeX_HEADER: \newcommand{\rsh}{{\color{blue!80}\rule{0.7cm}{0.7pt}}} > #+LaTeX_HEADER: \newcommand{\titlebox}[3]{\begin{tikzpicture}[every text = node part/.style=3D{text centered}] \node[rectangle split, rectangle split = parts=3D2, rectangle split part fill=3D{blue!50,white}, line width=3D0.5mm,= draw=3Dblue, text width=3D#1, rounded corners](rs) {#2 \nodepart{second} #= 3}; \end{tikzpicture}} > > > * Table in LaTeX environment > > #+BEGIN_etiket > Nombre y apellidos del estudiante: \rfill > D=C3=ADa(s) de la semana que tiene clase y de qu=C3=A9 hora a qu=C3=A9 ho= ra: > | lunes | martes | mi=C3=A9rcoles | jue= ves | > | de \rsh{} a \rsh{} | de \rsh{} a \rsh{} | de \rsh{} a \rsh{} | de \rsh{= } a \rsh{} | > #+END_etiket > > Here, you just see a nice result of mixing a table and a LaTeX > environment... Excellent!!! > > > * List items > > DECIR > - presentarse > - saludar > - despedirse > > Here, though, I can't get such *list items* framed, what ever workaroun= d I'm > trying to use. > > \titlebox{8cm}{DECIR}{ > - presentarse > - saludar > - despedirse > } > > #+LaTeX: \titlebox{8cm}{LEER}{ > - las instrucciones en clase > - algunos letreros p=C3=BAblicos > #+LaTeX: } > > #+LaTeX: {}\titlebox{8cm}{ESCRIBIR}{ > - el nombre y apellido > - cu=C3=A1ndo uno tiene clase (d=C3=ADas de la semana) > - qui=C3=A9n es el profesor > #+LaTeX: } > > #+LaTeX: {}\titlebox{8cm}{OBJETIVOS GRAMATICALES}{ > | - singular de SER y de LLAMARSE | > | - =C2=BFC=C3=B3mo? | > | - =C2=BFQui=C3=A9n? | > #+LaTeX: } > > > * Other table > > Here, I'm trying to use the "accolades" workaround for allowing Org to > interpret what will be inside LaTeX environments. > > #+LaTeX: {}\titlebox{8cm}{El presente (singular): Llamarse y ser.}{ > #+ATTR_LaTeX: align=3Dp{4cm}p{4cm} > | *LLAMARSE* | *SER* | > | *Me llam\rsh{}* Isabel. | *\rsh{}* Isabel. | > | =C2=BFC=C3=B3mo *te llam\rsh{}?* | =C2=BFQui=C3=A9n *eres*? | > | *Se llam\rsh{}* Ana. | *\rsh{}* Ana. | > #+LaTeX: } > > Though, it fails converting the above table to a LaTeX table. > > *Removing the ATTR LaTeX line* allows a conversion to a compilable LaTeX > document, but, still, the table is not converted. > > Any idea of how to get these working? I am still trying to get around this, but I currently find no escape to thi= s. One of the problem is, maybe, that we can't pass extra information to the environments through Chris Gray's (excellent) org-special-blocks? Any hint or direction to search? 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