From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EJ0DGNs7jWFV6wAAgWs5BA (envelope-from ) for ; Thu, 11 Nov 2021 16:50:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id yOi9E9s7jWH8SAAA1q6Kng (envelope-from ) for ; Thu, 11 Nov 2021 15:50:51 +0000 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 93453C225 for ; Thu, 11 Nov 2021 16:50:50 +0100 (CET) Received: from localhost ([::1]:40008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mlCLf-0007oR-TM for larch@yhetil.org; Thu, 11 Nov 2021 10:50:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkqOo-0003w7-PH for emacs-orgmode@gnu.org; Wed, 10 Nov 2021 11:24:34 -0500 Received: from [2607:f8b0:4864:20::833] (port=36420 helo=mail-qt1-x833.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkqOc-0004I1-MR for emacs-orgmode@gnu.org; Wed, 10 Nov 2021 11:24:32 -0500 Received: by mail-qt1-x833.google.com with SMTP id t11so2634371qtw.3 for ; Wed, 10 Nov 2021 08:24:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bucknell-edu.20210112.gappssmtp.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=vtZrORFp7Z5tgkVmmht1ze2ouKVr2j26b13KhaJ1vmI=; b=vwjD2/2TlTGWgJDjO8sZqT8RmhEja7CmzCVtM+1xoXikyN6caV7mds8t11oeYLD7uW OxuEwfi5braabcLR02VkVk7QWxGfL+MMdIgw/dnZioTZbkHhKS2IFYLnwtohkaPLyGB7 hpq7oSRlC0CpULc28zmo2eH3zusU1HZMATKSphQe4L7V+OItPVejaCmz4C1RlrgcZGTB e+V5wP1seLHlBWD1dKM2Dyoe6DLj6q0sK24MSIxmlSrpGS9oeeqr+DMs755T9LBx51hd 7DyF9K6WBjbQ9oSCVcnwgYGvP63Btqc7GA2Pa5z9GWWaiTXwRgDFtmKgqrmNQFH8Ifh8 PbsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=vtZrORFp7Z5tgkVmmht1ze2ouKVr2j26b13KhaJ1vmI=; b=ndul+3JU3BnV7TynQw+7OPRAbZwYG4uvh+U59R68oLdMsLaqrnHf3KdQDIvsemc26Y sWaTNt1S1rhshGRDKEEcTsZ/Hz0UPi0QiTUKlQ82GK9Fq3Xl10Tfy5O9KVK/dDgzfhqc FCD9hfyqmE5keGoFnEd/tJOYmsxNPMdG43Jaq0qHw8wSlqiY2wyqZEpJc9t4rSrpLQXb /uvlEu8Mfw90XvcYNOPu7luiAJ8Plvyn0C2ek+/3Z9HGEBkfJxWyjS4FJtpJjtSNZk84 bFdgIC2irL2ZRKx8z0zLB1buBbpq0OyvFgQFK/g+Zmyep8wtFwZmvuLmIZ7skiuSJ8xn wvPA== X-Gm-Message-State: AOAM5311ZKwRhIslCpJU3qzl7FsQqSOQs+yE/zhYXaBvZf25qaGs18zk 8BviRKFRkMYPlTYvgszgkbY0FjiEC8uL1+jfy6EHOizrWHcW2Q== X-Google-Smtp-Source: ABdhPJzAarxKA9Ecws4lJpDBtTqUowamB8nuPjn4+YnBGTD5OizIyzyegCK8LLoWFDiqCxZPzWd1AasGkbqhRyOVAVE= X-Received: by 2002:ac8:56f9:: with SMTP id 25mr143300qtu.374.1636560981886; Wed, 10 Nov 2021 08:16:21 -0800 (PST) MIME-Version: 1.0 From: Stewart Thomas Date: Wed, 10 Nov 2021 11:16:10 -0500 Message-ID: Subject: [BUG] Tables with square brackets do not compile in PDF (latex) export [9.5 (release_9.5-59-g52e6f1 @ /home/sjt015/repo/emacs/lisp/org/)] To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::833 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::833; envelope-from=sjt015@bucknell.edu; helo=mail-qt1-x833.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, PDS_HP_HELO_NORDNS=0.001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 11 Nov 2021 10:47:32 -0500 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636645850; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=vtZrORFp7Z5tgkVmmht1ze2ouKVr2j26b13KhaJ1vmI=; b=ABrPHgdPKopSmvoR7JHFdCbZ3Sb4sOTOIxWX1IqeSbbl1CkG+So+BTg5aUQwrD63noqZ4h NxG3CytobXv1L6E1mSokQ7GME6tOZSWxueDpl2jHIfEsia1MleyPhRdsMonWGjuTNwUs8U oNzPVWpb16HieQDZjNaSqiSbz2ForydiaWA7eqzLYL6iZcSZp0CtZqVOgIHxIIiyPuLglW YajRikGgy5bzob7oQ6XA0b9/HzRSK7Ko1ZVf1hkMNGGo0zX0yoH1Ue09PS+FPo69pMh4iU SjFLOQNoKkfH/qyRB1nFrXyq2UIIrz0LL354IAB0ZU6iq52oAwmS13/MI6mkSQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636645850; a=rsa-sha256; cv=none; b=KGhRfJHic2kp/q2tvnTCki/LMPygCI7R7y7DA81OMAjlkuKKwERnNpWnrxEojD+9XvRylz Yr0DCQAxaTklZkFsICwRSdtGOLFt4FjCcfETJ9o7halNGKaUiEmkk9FuR3BvSbZZ3JyjUR NOaSV+CdOQmMi/IwMqFSqyCimaSz2aX+U967pUd1VjbdQnZcQG3ZSa6D0F61zgnPtKtB9e 5mh5dLihqxBrY46ofMeqg7jx/r3MpHqtLFoflYMomqjpdoGnkzusOAh2pKMKAJF8tZHvjK gNfcS+FEyAoWhJk7a1HW9VIMTGr2hBB29sMAuFBTQgpAhdew/JK78iH/dhL1qg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=bucknell-edu.20210112.gappssmtp.com header.s=20210112 header.b="vwjD2/2T"; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=bucknell-edu.20210112.gappssmtp.com header.s=20210112 header.b="vwjD2/2T"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=bucknell.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 93453C225 X-Spam-Score: -3.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0IgRZE40izqv (Apologies for sending this from gmail, my mail setup was not working with the -Q option in emacs.) A table in which a first column begins with square brackets is not compiling. The square bracket is interpreted by latex as an argument to the preceding line break. Example org table: | Input | Output | |--------+--------| | [1, 2] | {3, 4} | | [5, 6] | null | When exported to a PDF ( C-c C-e l o), I expect that the PDF to be rendered with the brackets in the table as shown in org. Instead, the result is a latex compilation error. The brackets are being interpreted as length arguments to the preceding line break. This is a relevant Stack Exchange issue (for pure latex) which suggests some possible solutions. [[https://tex.stackexchange.com/questions/34466/error-with-square-bracket-in-table][Error with square bracket in table]] To test, emacs was started with =emacs -q= to not load an init file. Emacs : GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.12) of 2021-10-27 Package: Org mode version 9.5 (release_9.5-59-g52e6f1 @ /home/sjt015/repo/emacs/lisp/org/) current state: ============== (setq org-link-elisp-confirm-function 'yes-or-no-p org-bibtex-headline-format-function #[257 "\300%1\236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-export-before-parsing-hook '(org-attach-expand-links) org-archive-hook '(org-attach-archive-delete-maybe) org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function org-ascii-format-drawer-function #[771 "%1\207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"] org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"] org-latex-format-headline-function 'org-latex-format-headline-default-function org-confirm-shell-link-function 'yes-or-no-p org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] outline-isearch-open-invisible-function 'outline-isearch-open-invisible org-odt-format-headline-function 'org-odt-format-headline-default-function org-agenda-before-write-hook '(org-agenda-add-entry-text) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-elisp-link-function 'yes-or-no-p org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-link-shell-confirm-function 'yes-or-no-p org-babel-pre-tangle-hook '(save-buffer) org-agenda-loop-over-headlines-in-active-region nil org-occur-hook '(org-first-headline-recenter) org-metadown-hook '(org-babel-pop-to-session-maybe) org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow org-eww-open :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("doi" :follow org-link-doi-open :export org-link-doi-export) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[514 "\301\300\302%4Q%2\"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("mailto" :follow #[514 "\301\300\302%4Q%2\"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("https" :follow #[514 "\301\300\302%4Q%2\"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("http" :follow #[514 "\301\300\302%4Q%2\"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("ftp" :follow #[514 "\301\300\302%4Q%2\"\207" ["ftp" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("help" :follow org-link--open-help :store org-link--store-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp)) org-html-format-headline-function 'org-html-format-headline-default-function org-metaup-hook '(org-babel-load-in-session-maybe) )