From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Bug in LaTeX export with short captions Date: Thu, 10 Sep 2015 15:36:57 +0200 Message-ID: <20150910133657.GF6130@chitra.no-ip.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za22D-0006tt-9i for emacs-orgmode@gnu.org; Thu, 10 Sep 2015 09:37:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Za22C-0000f9-Du for emacs-orgmode@gnu.org; Thu, 10 Sep 2015 09:37:05 -0400 Received: from mail-io0-x231.google.com ([2607:f8b0:4001:c06::231]:35080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za22C-0000ey-8P for emacs-orgmode@gnu.org; Thu, 10 Sep 2015 09:37:04 -0400 Received: by ioiz6 with SMTP id z6so60415595ioi.2 for ; Thu, 10 Sep 2015 06:37:02 -0700 (PDT) Received: from chitra.no-ip.org ([2001:610:120:3001:2ad2:44ff:fe4a:b029]) by smtp.gmail.com with ESMTPSA id c97sm7075228ioj.41.2015.09.10.06.37.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Sep 2015 06:37:01 -0700 (PDT) Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs Org mode Hi, When I export the following table to latex, #+name: tab:foo #+caption[/s/-weights]: /s/-weights. | A | B | C | D | |-------+-------+-------+------| | 70347 | 10885 | 68502 | 4021 | | 68458 | 20310 | 66683 | 5853 | | 69418 | 22329 | 67617 | 6431 | | 71336 | 28674 | 69479 | 8160 | I get the following: \begin{table}[htb] \caption[\emph{s}-weights]{\label{tab:foo} weights]: \emph{s}-weights.} \centering \begin{tabular}{rrrr} A & B & C & D\\ \hline 70347 & 10885 & 68502 & 4021\\ 68458 & 20310 & 66683 & 5853\\ 69418 & 22329 & 67617 & 6431\\ 71336 & 28674 & 69479 & 8160\\ \end{tabular} \end{table} Note the extra "weights]:" in the long caption. This happens whenever there is some kind of emphasis in the short caption: /s/, *s*, etc. Cheers, -- Suvayu Open source is the future. It sets us free.