From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id qOugIJx2gWfQAQAAe85BDQ:P1 (envelope-from ) for ; Fri, 10 Jan 2025 19:35:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id qOugIJx2gWfQAQAAe85BDQ (envelope-from ) for ; Fri, 10 Jan 2025 20:35:56 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rensoliemans.nl header.s=soverin header.b="jpqFZ/Tc"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1736537756; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=5LR2E6XQ8jQU7i/StIVbb80q9+8OQ//qaLnoEbXw+UU=; b=GLbSb2rB7PgMOrixOQkzjLOgdorBr3tTTdijbi/G8Br8zaXO+lqCo+Bf5iZP/8G10YRZxf AG21Mvf7TKQTWFgMGY+k9/tYfQArrfcancd0tjjJwigIMpWhVwE2ViS4cmPeMk5pKIWCFR RFy3/21FxQgSOpMWQ2jXytPCIUzd6r4ROr2Iocdp2Y/TBpDQbJen2exT0vmGb6sa/17isi +Te6RoqTiK/F1B9p3N4IGGXjK+gCbujZOe24IqEz5ntejW893v/09Ul5ZJFVGvOc7lU6qQ e1WcwuHhDdlOULOg05KzY0y+Vc6uffJTKnYs/wuTfj3wk2zi4I/aoyfdIz/c+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rensoliemans.nl header.s=soverin header.b="jpqFZ/Tc"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1736537756; a=rsa-sha256; cv=none; b=mMZg+6xT3lX/gOFNB+/PxFbE6yY2FJ+BofQzij5EUxiuHzzAkb2NFCuS2ePI5djBZ8UTdJ KI5VNsK83SiNNemVIjgoKm/8PowTP91yOyNQvV+twIzG2K2sL2Zb0hpra+MCJc7A7h/H/x qfQ6BQ9LeC2R05g4HQ1LwwV9ljammeMjoP66D9b6kcGJQztHv3t2DrPDklESbS2klOG9nq J19HXrY42atfisFOeHb6iGJDteEubzdTWLDYZ2dU6uXN8vHG05l+jzLcpw71BrV0tGnWcK G++trMM4t2km5+KqEQWswQGlIld0wJ/2T2797hYlcSE40kCqLcaF5nxTcGSpRg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2DF01340AF for ; Fri, 10 Jan 2025 20:35:56 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tWKDb-0008KP-71; Fri, 10 Jan 2025 13:58:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tWKDW-0008Jw-Rb for emacs-orgmode@gnu.org; Fri, 10 Jan 2025 13:58:48 -0500 Received: from outbound.soverin.net ([2a10:de80:1:4091:b9e9:2212:0:1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tWKDU-0002bc-Oo for emacs-orgmode@gnu.org; Fri, 10 Jan 2025 13:58:46 -0500 Received: from smtp.soverin.net (c04cst-smtp-sov01.int.sover.in [10.10.4.99]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4YV9sc5Tqpz22; Fri, 10 Jan 2025 18:58:28 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.99]) by soverin.net (Postfix) with ESMTPSA id 4YV9sc2kw4z7h; Fri, 10 Jan 2025 18:58:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rensoliemans.nl; s=soverin; t=1736535508; bh=jmltxqvIzdrtzOUJYr01cALBfDWjH0OMFyzi8GNcb+Y=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=jpqFZ/TcdnbB7ASMIfJxzWQ04emW97cpViFmsoDTZOa49KcV++5A5kIXgeCAAoyvH IxKAhDn2ALVtVaArmzQ6TMhzNZPbMdCxr9czC8QZqgSpZNug9rT/dKrqcQIQuyMGH5 o0k34xXTMDD34gUh1GtpQ/PHBxRF8CeT/dAYCmGaMgsxe+mktVfKS0yRIimdD/jn8y XOaaqC/LfqOfYCobbp4fU6q25E4uM5JxdewgS06+rM227y76SBhiGtLaONPYCfTueQ D/UdKc39QzVf8sEMW3CRVihAVieuf6CMQxySYadKJdP3xlAFlUm48p//icQzYeP6pz lwrtKFNlZQwjw== X-CMAE-Score: 0 X-CM-Envelope: MS4xfA4LVa9Yik0w6rPJFH+9LMy6mx8P6BX6PMsugbaiVwDV9krcCWqFMfdoOo7BdHx3VhQFR1VqBFQQpSAXChPAq7vpLfsqN9TQT2AtzmIOGxVyXw+WTO3M A3ns8hM4g8Lljes6xRYFN/oe6KLb6+HyyWW4/Z79MOYXXEbKeE/kNm5noT1nW1MNgAWm4p79PyOBlUMOKd626KbazjgfdnSBARZcEKyxOCqMiTX6F51FDuN8 SK8iJzolLqP/n+xLEnXHS/E8RqN5Yc7owsFJ/3viHLMmDMrAgVs++/5jYIN1OPNq X-CM-Analysis: v=2.4 cv=WMmFXmsR c=1 sm=1 tr=0 ts=67816dd4 a=4bom3OyIvp8zk49k3DLuvQ==:617 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=PJ7lTITSiy7sb0jG0t8A:9 a=QEXdDO2ut3YA:10 From: Rens Oliemans To: Richard H Stanton Cc: emacs-orgmode@gnu.org Subject: Re: How to specify column alignment in LaTeX table output? In-Reply-To: References: <87wmf4qoju.fsf@rensoliemans.nl> <9F2C7295-E505-47DA-BF76-078F0C28B9E6@berkeley.edu> <87wmf3vw3i.fsf@rensoliemans.nl> Date: Fri, 10 Jan 2025 19:59:20 +0100 Message-ID: <87r05acx6f.fsf@rensoliemans.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spampanel-Class: ham Received-SPF: pass client-ip=2a10:de80:1:4091:b9e9:2212:0:1; envelope-from=hallo@rensoliemans.nl; helo=outbound.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: 2.13 X-Spam-Score: 2.13 X-Migadu-Queue-Id: 2DF01340AF X-TUID: BlBDzjxwvkPV Richard H Stanton writes: > Here=E2=80=99s an example: > > #+begin_src python :results output replace raw=20 > print("a") > #+end_src > > Every time I run this code block, I get another line containing =E2=80=9C= a=E2=80=9D. If I don't use the raw option, e.g., > > #+begin_src python :results output > print("a") > #+end_src > > the multiple-output problem goes away, but now it appears as=20 > > #+RESULTS: > : a > > ... > > But is there a =E2=80=9Cpreferred=E2=80=9D way to output arbitrary text (= e.g., LaTeX equations) from Python code blocks so that they compile fine *a= nd* don=E2=80=99t append? Generally, I don't know. Perhaps someone else can enlighten us on this part. Since you are using \begin{equation} which is definitively LaTeX-specific, = you can always use the "latex" header option, say #+begin_src python :results output latex print("a") #+end_src #+RESULTS: #+begin_export latex a #+end_export This is more or less what you had with your flushleft drawer, so I'm not su= re whether this fixes anything or not. > Thanks for this discussion. This is about where I get to every time I thi= nk I want to use org mode to create LaTeX documents with embedded, live cal= culations, and then after wrestling with the headers for a while I tend to = go back again to separate .py and .tex files controlled by GNU Make... I know how you feel! I'm currently writing my master's thesis, and had writ= ten the first part of it in Org. However, there were some stumbling blocks, and whenever deadlines loom I tend to choose the quickest option, which was sep= arate .tex files in this case. This isn't too bad though, AUCTeX and RefTeX are fantastic, and I'm not really combinining LaTeX with the results of code bl= ocks.