From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 6MjWBHB3gWcwEQEA62LTzQ:P1 (envelope-from ) for ; Fri, 10 Jan 2025 19:39:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 6MjWBHB3gWcwEQEA62LTzQ (envelope-from ) for ; Fri, 10 Jan 2025 20:39:28 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=berkeley.edu header.s=google header.b=TXPyJCGD; 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=pass (policy=reject) header.from=berkeley.edu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1736537968; 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=kMd24gASuBUZjvW7RjZ3bFsvZXqHien47d7iAEdAnco=; b=F2g1LbmPK6O5adrsSFF6OGPPS6nFeYIDAvd6U0ozOaBiVtcIRxbvypvubHAGhUsDoJjB+e 3niPyAVwEQLii7HOLUrc4GvFC1Lob4/WvT1Y+EMq3Cpy39wq5hGiRyMGacXZosNaCOYfKC wyjrTJJsYelX6rawiWqF2lM1rn3vPKbqsSJe+/ZX5GwTl10FTTOXzDSS3iZyChTQOLfGWs fwNNQGXOnNHqxDPc8zMRAgYBIU75TkM3aZ/b5x4rfdx4dEIGTi2W9icIC31MTQawJQsBYm 9xPJbNKAdFA9RVlCo5VnIWlZv7WO/iTthshX8c/0f+ktWDj4wXuOUHx/1pLT2A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=berkeley.edu header.s=google header.b=TXPyJCGD; 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=pass (policy=reject) header.from=berkeley.edu ARC-Seal: i=1; s=key1; d=yhetil.org; t=1736537968; a=rsa-sha256; cv=none; b=PDocL6bWI4hb2yqiOo8YVZKtR+2nGylY++5KAZSMKC1U43OtWXd2aT69VZYfe6k7CHgv1j P1fN/ePMd+iE90iTVcA4aPTf7CtkXHlTqa1Wb8Z+n1hxFKYy1axLuhH6AwGNz1QWXOzwmG WmefYBNIUVdtWhIVLeiYEWFOZ5+Uhrm7uOpdR5ncrNWWbnpMTXWw8kIaqWi2Hn2yx8qduZ xtuSgmiCzFxovMHHUwPdgWs3qlfZpkjtiEsVJEsEYukac5miEl8VTs6HsCg10VnD0bNR8b 8QquzKmr5pZNDKSM0o9JqCSyig0HB/+VLlpXl81ItcUNJPabzeS1lik5B67+tQ== 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 A000C40E0A for ; Fri, 10 Jan 2025 20:39:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tWKq2-0007Mi-SJ; Fri, 10 Jan 2025 14:38:34 -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 1tWKq0-0007Lu-HP for emacs-orgmode@gnu.org; Fri, 10 Jan 2025 14:38:32 -0500 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tWKpy-0007as-Hy for emacs-orgmode@gnu.org; Fri, 10 Jan 2025 14:38:32 -0500 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-2166360285dso42142745ad.1 for ; Fri, 10 Jan 2025 11:38:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berkeley.edu; s=google; t=1736537908; x=1737142708; darn=gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=kMd24gASuBUZjvW7RjZ3bFsvZXqHien47d7iAEdAnco=; b=TXPyJCGDF7Fl+fGG2mGgPvtCDy+xMC1VEmq0eW8JBCAVdwv664kcwT0vqk5hrYCnOT FHgIDF9yQ2KxcCqBqKD4tnFmhVebugjC73hXNIew5f9kLWKRjo7GHImxjNuKpHSxpE3d ASX4lCWyrJs9ANokCDPIdGhL7/MRad+zn1QuCP2FUNrCqvQU6gH0CaFksjVfHakUFWm7 FPgB2IZQ/Ccr+qbZANnD9cRvhriT66X/tFem4hOarXLcmj2OKWC0QjEzNqA7ueQUiqs2 WQ5Zl0uz8Xc2JKpPxu0K08gVDcOANcCVwwGonMdAOjGoj4EZp77gfYgYTo3oz345h/7L JfmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736537908; x=1737142708; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kMd24gASuBUZjvW7RjZ3bFsvZXqHien47d7iAEdAnco=; b=MY25ohg8LMIuwIEfwpIoDTr9WkSuZlFnPLKTCTJqSO906Xr2DcQP8ydnGAxFq7fpzJ CNWzRxgeYHD9qjdin11OGX9D9Fw28RUQNHOg3vo1xHXMq3vDEEmahEoJj3z1UOMWm1pL Ik3I81pGpPI0e4DhCJ4Saap1eUf2NlC8PhF3STDZYrgYlkAWWjQ4TiSN4GgjBNZun81W SBBMrmhjvdcaXdvV8Q/Sw+UfwGeNySgcA/wRze/t+k0ozOy65W15K958GLUr1LLXE102 H+xOTqUHBv0DRwJGxFkJ8Wr1Fo5p+05Js53jJYQyZAdPSceKCM8Faq5UI4Y/bZe9N0ff 4sMA== X-Gm-Message-State: AOJu0YxAuJd45OGQRk3ni8D2LxaiuOPj1MfO7tOnlV43A14iUHTFstL8 I9mxY4Z0vkfFVSYag72Iof7oaozhPOOYjO8YYA3W6NWZcb7vr5KxyEMlqGiUNo4ckcdluPNumLs 5aA== X-Gm-Gg: ASbGncuEQjiDLSt2ExZrjS+Br6KIEGEBEMATbRNGhC73DF9rLjaOsqQjG/MMlJrFQ3n 2LnfVber3m0HAlNup2GH6ZyrlKa39n6wjmNFQttVwhJkf0iQiyDHajPyiU932Lv8XWpWVHBlER9 sJ4qliFf+zgEqz2xByjcIf7CD+d2RTNjAGGCAYOhMdDQV517EFpnlLPsb+GO8QUhVNizJElvIfs vjnnvgfWqi+833cgbKZ11vzK8MpkSJBpTMzqr6z2RBcMlHDR8H/rax8u2oCfDC4EFg6/Uvnp1TG mulFdBbu1JdmlwF3rVYf6guB77ILJpyS0L0Ypthd2SHDQCg= X-Google-Smtp-Source: AGHT+IH7iZzmLHNtObPsiKklmSkKkhzhvL2JhoH9+5urWHegxj7yLrDHm1/pjYNr7bNv4/ZlMZrjmA== X-Received: by 2002:a05:6a00:9294:b0:725:cfa3:bc76 with SMTP id d2e1a72fcca58-72d21f115b4mr18595613b3a.4.1736537907744; Fri, 10 Jan 2025 11:38:27 -0800 (PST) Received: from smtpclient.apple (157-131-199-171.fiber.dynamic.sonic.net. [157.131.199.171]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72d40658b41sm1879445b3a.120.2025.01.10.11.38.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jan 2025 11:38:27 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.300.87.4.3\)) Subject: Re: How to specify column alignment in LaTeX table output? From: Richard H Stanton In-Reply-To: <87r05acx6f.fsf@rensoliemans.nl> Date: Fri, 10 Jan 2025 11:38:16 -0800 Cc: emacs-orgmode@gnu.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <87wmf4qoju.fsf@rensoliemans.nl> <9F2C7295-E505-47DA-BF76-078F0C28B9E6@berkeley.edu> <87wmf3vw3i.fsf@rensoliemans.nl> <87r05acx6f.fsf@rensoliemans.nl> To: Rens Oliemans X-Mailer: Apple Mail (2.3826.300.87.4.3) Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=rhstanton@berkeley.edu; helo=mail-pl1-x62a.google.com X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.369, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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: mx11.migadu.com X-Migadu-Spam-Score: -3.25 X-Spam-Score: -3.25 X-Migadu-Queue-Id: A000C40E0A X-TUID: CWv+0OjMHrsx > On Jan 10, 2025, at 10:59=E2=80=AFAM, Rens Oliemans = wrote: >=20 > Richard H Stanton writes: >=20 >> Here=E2=80=99s an example: >>=20 >> #+begin_src python :results output replace raw=20 >> print("a") >> #+end_src >>=20 >> Every time I run this code block, I get another line containing = =E2=80=9Ca=E2=80=9D. If I don't use the raw option, e.g., >>=20 >> #+begin_src python :results output >> print("a") >> #+end_src >>=20 >> the multiple-output problem goes away, but now it appears as=20 >>=20 >> #+RESULTS: >> : a >>=20 >> ... >>=20 >> 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 *and* don=E2=80=99t append? >=20 > Generally, I don't know. Perhaps someone else can enlighten us on this = part. >=20 > Since you are using \begin{equation} which is definitively = LaTeX-specific, you > can always use the "latex" header option, say >=20 > #+begin_src python :results output latex > print("a") > #+end_src >=20 > #+RESULTS: > #+begin_export latex > a > #+end_export >=20 > This is more or less what you had with your flushleft drawer, so I'm = not sure > whether this fixes anything or not. If you do this, the output doesn=E2=80=99t show if you export to HTML. = flushleft and the :results: drawer both seem to work fine exporting to = both PDF and HTML.=