From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo de Moraes Serpa Subject: Re: Org as a publishing toolkit Date: Tue, 10 May 2011 19:41:06 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJxUD-0004yi-HC for emacs-orgmode@gnu.org; Tue, 10 May 2011 20:41:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJxUB-0003oS-Vk for emacs-orgmode@gnu.org; Tue, 10 May 2011 20:41:09 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:36267) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJxUB-0003o9-NZ for emacs-orgmode@gnu.org; Tue, 10 May 2011 20:41:07 -0400 Received: by bwz17 with SMTP id 17so25865bwz.0 for ; Tue, 10 May 2011 17:41:06 -0700 (PDT) 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: "Thomas S. Dye" Cc: Org Mode Thanks Thomas. I got enough proof org can really be used to write a book after finding out that Avdi Grimm wrote and published his exceptional ruby book (http://exceptionalruby.com/) using org ;) It's nice to be part of such a great community. Orgmode ROCKS! Thank you for the help, now I'll get some much needed LaTeX knownledge. Marcelo. On Tue, May 10, 2011 at 5:26 PM, Thomas S. Dye wrote: > Aloha Marcelo, > > I don't /believe/ org will keep you from doing that. > > My guess is that you are going to end up redefining the LaTeX \maketitle > command, see > > http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-11_2 > > I've done this once or twice--it's an adventure for someone with my > limited programming skills. =A0You're likely to get needed advice from th= e > folks at comp.text.tex if your introductory LaTeX readings don't get you > where you want to be. > > Good luck! > > Tom > > Marcelo de Moraes Serpa writes: > >> Cool, I will do! >> >> But org doesn't impose some structure that might prevent me from >> putting the cover in the first page? Just curious. I wouldn't also >> like to have to edit the latex generated afterwards, but that's a >> possibility. >> >> Thanks! >> >> Marcelo. >> >> On Tue, May 10, 2011 at 4:35 PM, Thomas S. Dye wrote: >>> Aloha Marcelo, >>> >>> Others might do this differently, but I don't use LaTeX for book >>> covers. =A0I only use it for the pages of the book. >>> >>> It sounds like your cover image is floating, which is something that >>> LaTeX does with tables and images. =A0If you are new to LaTeX and don't >>> have a feel for how it handles "floats", then I recommend an >>> introductory text. =A0Leslie Lamport's book is terrific, but there are >>> other good introductions on the Internet. >>> >>> Org-mode and its LaTeX exporter are *not* going to insulate you from th= e >>> need to learn some LaTeX, especially if you intend to write something a= s >>> complex as a book. >>> >>> hth, >>> Tom >>> >>> Marcelo de Moraes Serpa writes: >>> >>>> Thomas, >>>> >>>> I have a more specific question. I have already managed to embed an >>>> image to act as the cover of the book. However, the image is being >>>> shown in the third page. I want the sequence to be like this: >>>> >>>> 1) Cover image >>>> 2) The sub-cover: >>>> >>>> =A0 =A0"Title"" >>>> =A0My Name >>>> =A0 =A0Date >>>> >>>> 3) TOC >>>> >>>> 4) Intro, chapters... >>>> >>>> How could I do that? >>>> >>>> Thanks in advance! >>>> >>>> Regards, >>>> >>>> Marcelo. >>>> >>>> On Tue, May 10, 2011 at 2:19 PM, Thomas S. Dye wrote: >>>>> Aloha Marcelo, >>>>> >>>>> The approach I would take here, which might not be what you want, wou= ld >>>>> be to use inline markup: >>>>> >>>>> http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-10_3 >>>>> >>>>> You would define the output for the various exporters in the link >>>>> definition, with something fancy for LaTeX and whatever else works in >>>>> the other export formats you care to support. >>>>> >>>>> All the best, >>>>> Tom >>>>> >>>>> Marcelo de Moraes Serpa writes: >>>>> >>>>>> Cool! Thanks. >>>>>> >>>>>> Now that you mention it, I was wondering if something like "conditio= n >>>>>> export" is possible. For very specific localized LaTeX fetures, it >>>>>> would be useful. Take this example: >>>>>> >>>>>> #+LaTeX_HEADER: \usepackage[T1]{fontenc} >>>>>> >>>>>> #+LaTeX:\yinipar{\color{red}H}ello World >>>>>> >>>>>> This created a first-letter that is stylized differently. This won't >>>>>> come out in any other exported, so I'd like to do something like >>>>>> (NOTE: pseudo-code!) >>>>>> >>>>>> #+LaTeX:\yinipar{\color{red}H}ello World >>>>>> >>>>>> #iif not LaTeX >>>>>> =A0 =A0Hello World >>>>>> #end >>>>>> >>>>>> If it is not possible what I can do is to pre-process the orgfile wi= th >>>>>> something like ERB (I'm familiar with Ruby) or another templating >>>>>> language before exporting (and even automate it all by calling emacs >>>>>> in batch mode ;) ), but it'd be nice if org supported that >>>>>> out-of-the-box. >>>>>> >>>>>> Cheers, >>>>>> >>>>>> Marcelo. >>>>>> >>>>>> >>>>>> On Tue, May 10, 2011 at 1:31 PM, Thomas S. Dye wrote= : >>>>>>> Marcelo de Moraes Serpa writes: >>>>>>> >>>>>>>> Hi list, >>>>>>>> >>>>>>>> So today I have been reseaching about higher-levels toolkits that >>>>>>>> could help me get into TeX (and or LaTeX) and at the same time >>>>>>>> allowing me to keep the text in a more human-readable format (easi= er >>>>>>>> to mantain and to convert to other formats if needed). >>>>>>>> >>>>>>>> I know that if I want beautiful formatted PDFs I will need to get = into >>>>>>>> TeX / LaTeX, and I already started doing that, but as I said, keep= ing >>>>>>>> the text in a higher level format has benefits that you already kn= ow >>>>>>>> about. >>>>>>>> >>>>>>>> So I looked at asciidoc, the lower-level XML-based docbook, markdo= wn, >>>>>>>> pandoc, ConTeXt, etc. >>>>>>>> >>>>>>>> Then I thought, why not try orgmode? >>>>>>>> >>>>>>>> So, after reading this article: >>>>>>>> http://orgmode.org/worg/org-tutorials/org-latex-export.html, I've = then >>>>>>>> realized how powerful the org-export feature is. >>>>>>>> >>>>>>>> I can basically do this: >>>>>>>> =A0* Keep the text in a (very) human readable format that I'm used= to >>>>>>>> and that is much better to maintain than any other format I know >>>>>>>> (markdown / asciidoc) and integrated with my own orgmode personal >>>>>>>> information manager! >>>>>>>> =A0* Add / customize the LaTeX output in *ANY* way I want to. Than= ks to >>>>>>>> org AND babel! From what I can see, there are no limitations on ho= w >>>>>>>> complex the LaTeX customizations can be, it can essentially match = up >>>>>>>> any other "pure" latex documents out there. >>>>>>>> =A0* As noted above, fully support LaTeX while still allowing me t= o export to: >>>>>>>> =A0 =A0* plaintext >>>>>>>> =A0 =A0* HTML >>>>>>>> =A0 =A0* DocBook (and hence an array of other formats) >>>>>>>> >>>>>>>> I mean, how cool is that? I'm only starting in TeX/LaTeX so I migh= t be >>>>>>>> overlooking some limitations, but from what I can see, orgmode is = the >>>>>>>> most pragmatic and powerful publishing framework I have ever come = to >>>>>>>> know. >>>>>>>> >>>>>>>> And what excites me even more is that I can keep my book in my >>>>>>>> preferred format and still output a beautifully-formatted PDF book >>>>>>>> *and* still support other formats (such as mobi or epub through >>>>>>>> docbook). Amazing! >>>>>>>> >>>>>>>> By the way, if I want to use raw TeX or maybe ConTeXt, is it possi= ble? >>>>>>>> Not that I need, only curious :) >>>>>>>> >>>>>>>> This needs more hype! I don't think people realize how powerful th= is is ;) >>>>>>>> >>>>>>>> Cheers! >>>>>>>> >>>>>>>> Marcelo. >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> Aloha Marcelo, >>>>>>> >>>>>>> The LaTeX export tutorial is a work in progress. =A0I hope you find= it >>>>>>> useful. =A0When you run across something that doesn't work (or make= sense) >>>>>>> don't hesitate to come back to the list with a query or suggestion. >>>>>>> >>>>>>> All the best, >>>>>>> Tom >>>>>>> >>>>>>> -- >>>>>>> Thomas S. Dye >>>>>>> http://www.tsdye.com >>>>>>> >>>>>> >>>>> >>>>> -- >>>>> Thomas S. Dye >>>>> http://www.tsdye.com >>>>> >>>> >>> >>> -- >>> Thomas S. Dye >>> http://www.tsdye.com >>> >> > > -- > Thomas S. Dye > http://www.tsdye.com >