From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 sCx3JJTa/mb7PgAA62LTzQ:P1 (envelope-from ) for ; Thu, 03 Oct 2024 17:55:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id sCx3JJTa/mb7PgAA62LTzQ (envelope-from ) for ; Thu, 03 Oct 2024 19:55:32 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=SPaA3B4D; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727978132; a=rsa-sha256; cv=none; b=cCbL0oY6i+M/3MP0ZTYbyLx4KYErZNG3ionTBm0YNez6iXEGbKXzi9mKXMRRG5pfZz8TCr 8pYGAynautv9dtd5OV+sGDLLV9+Q6bIcqnyTPK1VQFWYWe6c/lw2GZH2PF1TC8HZlxn4HT 9CPIBPTD0gnXVz70982xMz/iLsBn36E2YlDHyt3CXZhB7YBEtcHHF5uaDxZrxf/zKIAFgM 4rQQRVZPSEMVF3etgJspOmX+c9zSW9yIiduOMbYkpIiehEwrHJGqoOLSvj4JUCYFt7KFPA Bf99WglRegcpC4qOhHP1XZPR4SbPsNOJvMMUE6MRquM2dvGMx9srHBrXO8OhmA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=SPaA3B4D; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1727978132; 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:in-reply-to:in-reply-to:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=hxZQ7Yuuzy8fPELDexnJVjSQH+uniZ843k7CIZKvKos=; b=Vzchz0YJHyaFrpgrqy2FyY5WxGSQ9p7u8hf9aUKG4y3mIvXWa+3fa4fV0ZKB8jrmakL0QU yYgf3J/8EJuaZP44XIJAqVTVTBazdnE9NnVrIE4XQroWCSe2l+AAbmWsZ42FnPjbPL68UL RrIjI5y6KSnz/vLW3WHDQ+Ul5+0WOj/QSoCWT3jm6e5UIWDFygLtRh6B0Szf0teJgbsIkW go7C8Nbv1/WolLdWLVcy/7ASEBUGwmcgay6OQ5gSNUBYv+1tmwsyluMFYj52MivV8KwT/L lU40CY1Q3x7tMvgxpWHTj7bWUyhlCu5m+H1uxOsHzPpui6iKZ4ezrlAA32zTDQ== 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 18284F6F for ; Thu, 03 Oct 2024 19:55:31 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1swQ23-00008h-Ep; Thu, 03 Oct 2024 13:54:31 -0400 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 1swQ21-000088-6V for emacs-orgmode@gnu.org; Thu, 03 Oct 2024 13:54:29 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1swQ1z-0002ev-HP for emacs-orgmode@gnu.org; Thu, 03 Oct 2024 13:54:28 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 774C2240101 for ; Thu, 3 Oct 2024 19:54:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1727978063; bh=fiL11nvYNLQLTvzsrHmSMI/piHzBEhFlloF/XmsRlFI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=SPaA3B4DLOKA4CBHb6/2XcA1OvUZDkgorzIgxXvVmp1KYbQ7vECk4ocYlzFtLZDxA gGOvTfzQtGZfM7rP8BtB13h3xmgkDpqgTKc0Un983CSIbbQ1XS9d8WtN1D3ANqB7oe DJPUNQSvtt7GWOj/zDHeA8s3s5IIoEL7Fhupoyo0aQynpmpOkLZulLy0DTm+X1UujK C+oMEZdH6Ybpd3miLIYTsghJo0TOD+Wc3IfL8j7YeIRzfEsr0JvzG/qyVmoHWC1s+N 5tgwa5ZYiMPMGZmecf2ZqOWrUkYNjxgS1iVM18yGhCRBw8HEoQi6YbqKg0K4flf6SK B+wHDOPpsJTZQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XKK7M0MXrz9rxP; Thu, 3 Oct 2024 19:54:23 +0200 (CEST) From: Ihor Radchenko To: aurelien@francillon.net Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Org export to latex/pdf with longtabu adds extra line (\\) when #+NAME is present but no #+CAPTION [9.8-pre (release_9.7.11-145-g28b631 @ /home/aurel/admin/org-bugreport/org/lisp/)] In-Reply-To: Date: Thu, 03 Oct 2024 17:56:07 +0000 Message-ID: <87r08xcbpk.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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-Spam-Score: -1.39 X-Spam-Score: -1.39 X-Migadu-Queue-Id: 18284F6F X-Migadu-Scanner: mx12.migadu.com X-TUID: xB956uJAI6Cj > when exporting org table to latex/pdf with longtabu environment the > generated latex includes extra \\ if the #+NAME tag is present, > inserting an needed row, the resulting table look ugly in some cases. Thanks for reporting! Confirmed. > The extra \\ seem to be added at ox-latex.el line 3937 (current git head): > > (concat (and fontsize (concat "{" fontsize)) > (format "\\begin{%s}%s{%s}\n" table-env width alignment) > (and above? > (org-string-nw-p caption) > (concat caption "\\\\\n")) ; <= HERE > contents > (and (not above?) > (org-string-nw-p caption) > (concat caption "\\\\\n")) > (format "\\end{%s}" table-env) > (and fontsize "}")))) > > When I remove the "\\\\" the generated code is correct, but I suspect > this is may be useful in some other cases and this may not be a suitable > fix? Yes, the problem occurs where you pointed. The "\\\\" part is present there from the very first commit in ox-latex. I am not sure why it is there. What happens if you remove "\\\\" part from the code and play around with tables with/without #+caption/#+name? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at