From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [babel][bug] Export latex table using noweb suddenly broken? Date: Wed, 02 Mar 2011 11:41:49 -0700 Message-ID: <87zkpdtlea.fsf@gmail.com> References: <87tyflwowb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=35461 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Puqzv-0006Lj-IR for emacs-orgmode@gnu.org; Wed, 02 Mar 2011 13:42:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Puqzm-0002TN-IO for emacs-orgmode@gnu.org; Wed, 02 Mar 2011 13:42:00 -0500 Received: from mail-gx0-f169.google.com ([209.85.161.169]:47970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Puqzm-0002T2-Ca for emacs-orgmode@gnu.org; Wed, 02 Mar 2011 13:41:58 -0500 Received: by gxk2 with SMTP id 2so101718gxk.0 for ; Wed, 02 Mar 2011 10:41:57 -0800 (PST) In-Reply-To: (Jeff Horn's message of "Wed, 2 Mar 2011 13:29:34 -0500") 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@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jeff Horn Cc: Org-mode ml 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 writes: > That's weird. This is what I get. Sorry I forgot to post it with the mess= age: > > ----- 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 wro= te: >> 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$, =C2=A0$\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 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: =C2=A0 =C2=A0 Table Export Test >>> >>> * Endogenizing Policy >>> Test table export. >>> #+source: tab-export >>> #+begin_src latex :exports results :results latex :noweb yes >>> =C2=A0 \begin{table}[htb!] >>> =C2=A0 \centering >>> =C2=A0 <> >>> =C2=A0 \end{table} >>> =C2=A0#+end_src >>> ** Tables =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :noexport: >>> #+tblname: tab-test >>> | Expectation =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| Pre-policy >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | Post-policy >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 | Cycle Summary =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| >>> |----------------------+-----------------------------------------------= --------------+------------------------------------------------------------= ----+------------------------------------| >>> | Larger gov't sector =C2=A0| $\downarrow C$, $\downarrow U$, $\uparrow= K$, >>> $\uparrow Y$ =C2=A0| $\downarrow C$, $\downarrow U$, $\downarrow K$, >>> $\downarrow Y$ | SR $\uparrow Y$, LR $\downarrow Y$ | >>> | Smaller gov't sector | $\uparrow C$, $\uparrow U$, =C2=A0$\downarrow = K$, >>> $\downarrow Y$ | $\uparrow C$, $\uparrow U$, $\uparrow K$, $\uparrow >>> Y$ =C2=A0 =C2=A0 =C2=A0 =C2=A0 | 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