From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Latex export error: There's no line here to end, with an image with a caption Date: Wed, 18 Jan 2017 23:38:33 +0100 Message-ID: <87eg00yowm.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTysL-0005xF-Qu for emacs-orgmode@gnu.org; Wed, 18 Jan 2017 17:38:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTysL-0002IV-8w for emacs-orgmode@gnu.org; Wed, 18 Jan 2017 17:38:41 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:47957) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cTysL-0002HZ-3M for emacs-orgmode@gnu.org; Wed, 18 Jan 2017 17:38:41 -0500 In-Reply-To: (Takeshi Teshima's message of "Fri, 6 Jan 2017 17:32:44 +0900") 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" To: Takeshi Teshima Cc: emacs-orgmode@gnu.org Hello, Takeshi Teshima writes: > When I try to export an org-mode file **that contains a figure with > a caption** with `#+OPTIONS: \n:t`, (See minimal example files) > > to a pdf via latex-export, the exported latex file doesn't compile and > I get the following error: > > ``` > > LaTeX Error: There's no line here to end. > > ``` > > in the `*Org PDF LaTeX Output*` buffer. Thus this is an error from the > command line. > > ## [2] > > So I go to the line of the .tex file that's specified in the error, > and the line always says: > > ``` latex > > \end{figure}\\ > > ``` It is fixed. Could you confirm it behaves as expected in non-trivial cases? Regards, -- Nicolas Goaziou