emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Error when exporting to LaTeX
Date: Wed, 20 Jan 2010 14:37:44 +0100	[thread overview]
Message-ID: <87eilkc2xj.fsf@mundaneum.com> (raw)
In-Reply-To: 87eilnfurt.fsf@mundaneum.com

Hi Carsten en all,

Sébastien 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 problems
> 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={text centered}] \node[rectangle split, rectangle split parts=2, rectangle split part fill={blue!50,white}, line width=0.5mm, draw=blue, text width=#1, rounded corners](rs) {#2 \nodepart{second} #3}; \end{tikzpicture}}
>
>
> * Table in LaTeX environment
>
> #+BEGIN_etiket
> Nombre y apellidos del estudiante: \rfill
> Día(s) de la semana que tiene clase y de qué hora a qué hora:
> | lunes              | martes             | miércoles          | jueves             |
> | 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 workaround I'm
>   trying to use.
>
> \titlebox{8cm}{DECIR}{
>   - presentarse
>   - saludar
>   - despedirse
> }
>
> #+LaTeX: \titlebox{8cm}{LEER}{
>   - las instrucciones en clase
>   - algunos letreros públicos
> #+LaTeX: }
>
> #+LaTeX: {}\titlebox{8cm}{ESCRIBIR}{
>   - el nombre y apellido
>   - cuándo uno tiene clase (días de la semana)
>   - quién es el profesor
> #+LaTeX: }
>
> #+LaTeX: {}\titlebox{8cm}{OBJETIVOS GRAMATICALES}{
>   | - singular de SER y de LLAMARSE |
>   | - ¿Cómo?                        |
>   | - ¿Quién?                       |
> #+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=p{4cm}p{4cm}
>   | *LLAMARSE*              | *SER*            |
>   | *Me llam\rsh{}* Isabel. | *\rsh{}* Isabel. |
>   | ¿Cómo *te llam\rsh{}?*  | ¿Quién *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 this.

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

-- 
Sébastien 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

  reply	other threads:[~2010-01-20 13:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-13 22:54 Error when exporting to LaTeX Sébastien Vauban
2010-01-14 11:15 ` Sébastien Vauban
2010-01-15  7:04   ` Carsten Dominik
2010-01-18 12:43     ` Sébastien Vauban
2010-01-20 13:37       ` Sébastien Vauban [this message]
2010-03-20 14:59       ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eilkc2xj.fsf@mundaneum.com \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).