From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Hofer Subject: Re: Title page in latex export Date: Fri, 22 Apr 2011 16:36:40 +0200 Message-ID: <87aafi2w07.wl%sebhofer@gmail.com> References: <20110304020505.77bc12d1@bhishma.homelinux.net> <7925.1299253508@alphaville.dokosmarshall.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDHTh-0000U5-FA for emacs-orgmode@gnu.org; Fri, 22 Apr 2011 10:37:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QDHTf-00086o-UM for emacs-orgmode@gnu.org; Fri, 22 Apr 2011 10:37:01 -0400 Received: from lo.gmane.org ([80.91.229.12]:41093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDHTf-000821-Id for emacs-orgmode@gnu.org; Fri, 22 Apr 2011 10:36:59 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QDHTe-0004l7-6y for emacs-orgmode@gnu.org; Fri, 22 Apr 2011 16:36:58 +0200 Received: from d86-33-46-3.cust.tele2.at ([86.33.46.3]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Apr 2011 16:36:58 +0200 Received: from sebhofer by d86-33-46-3.cust.tele2.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Apr 2011 16:36:58 +0200 In-Reply-To: <7925.1299253508@alphaville.dokosmarshall.org> 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 Cc: sebhofer@gmail.com At Fri, 04 Mar 2011 10:45:08 -0500, Nick Dokos wrote: > > Suvayu Ali wrote: > > > > > I am trying to write my thesis as per my university style. It requires > > I use the \title{Thesis title} command before the > > > > \begin{document} > > ... > > \end{document} > > > > Is there any way to do that? Thanks for any thoughts. > > > > This is really a bug in your university's style. Lamport (p.21 of the > second edition) says: > > The \maketitle command comes after the \begin{document}, usually > before any other text. The \title, \author, and \date commands can > come *anywhere* before the \maketitle. > > [Emphasis added] \title etc. does not have to be in the > preamble. However, there are many styles out there that restrict the > placement of these macros to the preamble, just as your university's > style does (they probably cribbed from each other :-) ), so applying > Lawrence's patch is probably the best long term solution for org. > > Nick Hi all, I hate to bring this up again, but this problem is still not sufficiently fixed. As Nick pointed out, different packages give error messages depending on where the \title, \author,... tags are located in the document. Luck has it, that the revtex4-1 package (which is used as the default style for the American Physical Society's journals) chokes when these tags are _outside_ the document body (i.e. in the preamble). This is actually why the OP experienced problems in the first place, as I submitted a patch to move them there a couple of months ago (http://thread.gmane.org/gmane.emacs.orgmode/34208). I just noticed yesterday that the patch has been undone. As this will not be the last time this issue comes up (especially due to the increasing popularity of org-mode), I think it would be worthwhile to do it right and introduce the possibility to customize the placement of the title tags. Two possibilities came to my mind: - customization on a per class basis This would be the most logical step, but I think that the way configuration of latex classes is handled in org speaks against that (as org-export-latex-classes only concerns the preamble, but not the document body) - customization on a per file basis by setting options I think this would be a feasible alternative from the usability point of view. At the same time I have to admit that I have no clue if it is a complicated matter to introduce new options in org, a quick look through the code didn't give me any inside. What do you all think? Cheers, Sebastian