emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Jeff Horn <jrhorn424@gmail.com>
Cc: Org-mode ml <emacs-orgmode@gnu.org>
Subject: Re: [babel][bug] Export latex table using noweb suddenly broken?
Date: Wed, 02 Mar 2011 07:38:48 -0700	[thread overview]
Message-ID: <87tyflwowb.fsf@gmail.com> (raw)
In-Reply-To: AANLkTinytNBPv1i+4u-AZJ6QjKws=TFDr2bLWrHDZpKT@mail.gmail.com

Hi Jeff,

When I export your org-mode file below (or when I simply evaluate the
code block with C-c C-c) it results in the following content under
"Endogenizing Policy" header, which appears correct to me.

--8<---------------cut here---------------start------------->8---
\section{Endogenizing Policy}
\label{sec-1}

Test table export.

\begin{table}[htb!]
\centering

\begin{tabular}{llll}
\toprule
Expectation & Pre-policy & Post-policy & Cycle Summary \\
\midrule
Larger gov't sector & $\downarrow C$, $\downarrow U$, $\uparrow K$, $\uparrow Y$ & $\downarrow C$, $\downarrow U$, $\downarrow K$, $\downarrow Y$ & SR $\uparrow Y$, LR $\downarrow Y$ \\
Smaller gov't sector & $\uparrow C$, $\uparrow U$,  $\downarrow K$, $\downarrow Y$ & $\uparrow C$, $\uparrow U$, $\uparrow K$, $\uparrow Y$ & SR $\downarrow Y$, LR $\uparrow Y$ \\
\bottomrule
\end{tabular}

\end{table}
--8<---------------cut here---------------end--------------->8---

Best -- Eric

Jeff Horn <jrhorn424@gmail.com> writes:

> Hey orgsters,
>
> A sample document like the one below was compiling fine on an older
> git commit, say about 10 days ago. Now, the tabular environment is
> wrapped in latex verbatim. It's as if it is no longer respecting the
> :noweb header.
>
> ----- begin org doc ------
> #+TITLE:     Table Export Test
>
> * Endogenizing Policy
> Test table export.
> #+source: tab-export
> #+begin_src latex :exports results :results latex :noweb yes
>   \begin{table}[htb!]
>   \centering
>   <<booktabs(table=tab-test,align="llll",env="tabular")>>
>   \end{table}
>  #+end_src
> ** Tables                                                         :noexport:
> #+tblname: tab-test
> | Expectation          | Pre-policy
>               | Post-policy
>         | Cycle Summary                      |
> |----------------------+-------------------------------------------------------------+----------------------------------------------------------------+------------------------------------|
> | Larger gov't sector  | $\downarrow C$, $\downarrow U$, $\uparrow K$,
> $\uparrow Y$  | $\downarrow C$, $\downarrow U$, $\downarrow K$,
> $\downarrow Y$ | SR $\uparrow Y$, LR $\downarrow Y$ |
> | Smaller gov't sector | $\uparrow C$, $\uparrow U$,  $\downarrow K$,
> $\downarrow Y$ | $\uparrow C$, $\uparrow U$, $\uparrow K$, $\uparrow
> Y$         | SR $\downarrow Y$, LR $\uparrow Y$ |
> ------ end org doc ------
>
> Can anyone else confirm?

  reply	other threads:[~2011-03-02 14:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-02  4:24 [babel][bug] Export latex table using noweb suddenly broken? Jeff Horn
2011-03-02 14:38 ` Eric Schulte [this message]
2011-03-02 18:29   ` Jeff Horn
2011-03-02 18:41     ` Eric Schulte
2011-03-03  7:40       ` Jeff Horn
2011-03-03 12:59         ` Eric Schulte

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=87tyflwowb.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jrhorn424@gmail.com \
    /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).