It looks like the noweb option is working, but the results are being inserted into the org-mode buffer verbatim, rather than in a latex block. Maybe we have different default header arguments.
If you add ":results latex" to the code block does that fix the problem? Similarly if you evaluate the code block interactively in the org-mode buffer, are the results inserted in a latex block or in an example block? Best -- Eric Jeff Horn <jrhorn...@gmail.com> writes: > 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 <schulte.e...@gmail.com> 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 <jrhorn...@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? >> -- Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode