From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Re: \newpage in HTML export Date: Wed, 20 Nov 2013 15:20:02 -0600 Message-ID: <20131120212002.GC5155@cardamom.adamsinfoserv.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjFCF-00076a-8f for emacs-orgmode@gnu.org; Wed, 20 Nov 2013 16:20:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjFC9-0003it-3p for emacs-orgmode@gnu.org; Wed, 20 Nov 2013 16:20:27 -0500 Received: from tropicana.asmallorange.com ([108.165.20.17]:37402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjFC8-0003fA-Ve for emacs-orgmode@gnu.org; Wed, 20 Nov 2013 16:20:21 -0500 Received: from adsl-99-101-208-193.dsl.hstntx.sbcglobal.net ([99.101.208.193]:32777 helo=localhost) by tropicana.asmallorange.com with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.80.1) (envelope-from ) id 1VjFBy-0000n8-0G for emacs-orgmode@gnu.org; Wed, 20 Nov 2013 16:20:10 -0500 Content-Disposition: inline In-Reply-To: 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-orgmode@gnu.org On Wed, Nov 20, 2013 at 09:15:43PM +0000, Luke Crook wrote: > > That works. But that means I need both #+HTML: and #+Latex: for the same > thing. \newpage should convert as appropriate depending on the export. > > So, \newpage should translate to the HTML equivalent on HTML export, and the > Latex equivalent on Latex export. > > It only works correctly on Latex export \newpage is a Latex command, and so you need the #+Latex: prefix if you're exporting to multiple formats. That will prevent it from happening. You could use both the #+Latex newpage and the #+HTML snippet together at the same point to have the same behavior in both modes. ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3