emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [babel][bug] Export latex table using noweb suddenly broken?


From: Jeff Horn
Subject: Re: [O] [babel][bug] Export latex table using noweb suddenly broken?
Date: Wed, 2 Mar 2011 13:29:34 -0500

That's weird. This is what I get. Sorry I forgot to post it with the message:

----- begin tex source ------
\section{Endogenizing Policy}
\label{sec-1}

TEst table export.

\begin{verbatim}
\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}
\end{verbatim}
----- end tex source ------

On Wed, Mar 2, 2011 at 9:38 AM, Eric Schulte <address@hidden> wrote:
> 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 <address@hidden> 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?
>



-- 
Jeffrey Horn
http://www.failuretorefrain.com/jeff/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]