From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Title page for book latex export Date: Tue, 19 Oct 2010 08:18:13 +0200 Message-ID: <862280DB-598E-4797-9D6E-D812F6FF212D@gmail.com> References: <19644.5557.627178.686601@goeland.ups-tlse.fr> <9312871.193.1287423634931.JavaMail.root@zm-cesbio-01> <19644.43988.128890.607963@goeland.ups-tlse.fr> <12673.1287438229@alphaville.usa.hp.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=33017 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P85Wl-0001iV-24 for emacs-orgmode@gnu.org; Tue, 19 Oct 2010 02:18:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P85Wd-00044k-Mw for emacs-orgmode@gnu.org; Tue, 19 Oct 2010 02:18:26 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:45673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P85Wd-00044P-DW for emacs-orgmode@gnu.org; Tue, 19 Oct 2010 02:18:19 -0400 Received: by ewy5 with SMTP id 5so1295697ewy.0 for ; Mon, 18 Oct 2010 23:18:18 -0700 (PDT) In-Reply-To: <12673.1287438229@alphaville.usa.hp.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: Jordi Inglada , Jeff Horn , emacs-orgmode@gnu.org On Oct 18, 2010, at 11:43 PM, Nick Dokos wrote: > Jordi Inglada wrote: > >> Hi Jeff, >> >> Thanks for your reply. I actually did that as a first try, but the >> problem is that the org->tex export generates a standard title page >> (title, author, date), then the table of contents, and only after >> that >> my title page. >> >> So the question would rather be: how to deactivate the standard title >> page and put mine before anything else in the document? >> >> Thank you. >> >> Jordi >> >> Jeff Horn writes: >>> Any code between LaTeX code blocks should execute automatically. For >>> example, I could place an entire .tex source between >>> >>> #+BEGIN_LaTeX >>> [Code goes here] >>> #+END_LaTeX >>> >>> And name the file tex.org and it can be exported to PDF. So, I would >>> just place the normal LaTeX commands you would use to accomplish >>> what >>> you are trying to do in a code block, like above. >>> >>> Good luck, >>> Jeff >>> >>> On Mon, Oct 18, 2010 at 5:39 AM, Jordi Inglada >>> wrote: >>>> Hi all, >>>> >>>> I would like to export to LaTeX using "#+LaTeX_CLASS: book" and >>>> use a >>>> title page that I have built using the LaTeX titlepage >>>> environment. I >>>> don't know where to put the titlepage environment and how to >>>> deactivate the title page generation by the LaTeX export. >>>> >>>> Thank you for your help. >>>> >>>> Jordi >>>> > > > > Instead of saying: "I would like to do such and so", please consider > using > something like this: > > "I would like to do such and so. This is what I tried: > > > > This is what I got when I exported to LaTeX: > > > > As you can see, I get , instead of > what I would like to get: . > > How do I accomplish that?" > > > That helps in several ways: > > o it helps the submitter of the question:in the process of > explaining the problem you might hit upon the solution. > > o it helps the potential helpers: instead of having to deconstruct > the description and construct an example of their own (which > might or might not be related to the original problem), they > have > an exact specification of the problem. > > o it helps the submitter *and* the potential helpers: instead of > me > guessing what the problem is, replying, you pointing out that I > misunderstood, explaining the misunderstanding, etc. etc., we > avoid the extended conversation: the submitter gets a quicker > answer and the helpers can go back to what they were doing > faster. And saying: "I tried that - it didn't work", well, > that's adding insult to injury. > > o it helps the list: there is a crisp description of the problem > and > (hopefully) a crisp answer. Those who are interested can file it > away faster, those who are not can bypass it faster. > > o it helps future org-mode users: searching the archive for answers > is much easier. > > Also it places the burden where it should be: it is the submitter who > has the problem; it is only fair that it be the submitter who does > most > of the work to get it resolved: so tell me (nay, *show me*) what > you've > tried. At the very least, it will save some typing on my part. > > In general, the rule of thumb is "more information is better than > less." > Act accordingly. > > In your case, you mention the titlepage environment. Now sometime in > the > distant past, I might have used it but do I remember anything about > it? > Nope, not at this point. So the next step is to go do some research to > find out how to use it: oops, I packed away the LaTeX book for the > move > next week. Got to go to the web - oops, firefox is wedged, restart > it. > Now what? Ah, heck the wireless is having a bad day... > > The idea is to make the helper want to continue helping instead of > giving him/her a chance to say "Ah, screw it - it's not worth it, > I have better things to do." > > > > > OK, now that I've got that off my chest and as a reward for subjecting > you (and everybody else) to the rant, here's a way to do what you > want (I think - unless I've misunderstood the problem...) > > ,---- > | #+LATEX_HEADER: \input{mytitle} > | > | * Foo > | foo > | > | * Bar > | bar > `---- > > where the file mytitle.tex looks like this: > > ,---- > | \renewcommand\maketitle{\begin{titlepage}% > | FOO > | \end{titlepage}% > | } > `---- > > and where instead of "FOO", you put your titlepage stuff. > That's how \maketitle is defined in the first place, so > just redefine it. Alternatively, add an empty #+TITLE: line of inhibit the emission of a \maketitle line by Org. - Carsten > > HTH, > Nick > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode