From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mikhail Titov" Subject: Re: How to get to work non-interactive publishing? Date: Mon, 21 May 2012 16:06:08 -0500 Message-ID: <009a01cd3795$8c04ec00$a40ec400$@us> References: <005401cd349f$a4382600$eca87200$@us> <87r4uhk7df.fsf@gmx.com> <4FB8373D.2030305@gmx.us> <87pq9zbxua.fsf@gmx.com> <008101cd378b$e993c5d0$bcbb5170$@us> <87zk91l80o.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWZnz-0003k4-Bz for emacs-orgmode@gnu.org; Mon, 21 May 2012 17:06:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWZnx-0002Na-G5 for emacs-orgmode@gnu.org; Mon, 21 May 2012 17:06:14 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:60264) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SWZnx-0002Ms-9r for emacs-orgmode@gnu.org; Mon, 21 May 2012 17:06:13 -0400 In-Reply-To: <87zk91l80o.fsf@gmx.com> Content-Language: en-us 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: 'Eric Schulte' Cc: emacs-orgmode@gnu.org > -----Original Message----- > From: Eric Schulte [mailto:eric.schulte@gmx.com] > Sent: Monday, May 21, 2012 1:11 PM > To: Mikhail Titov > Cc: emacs-orgmode@gnu.org > Subject: Re: [O] How to get to work non-interactive publishing? >=20 > ... > > > Another weird issue I experience when batch-publishing is that even > > with a separate init file, I get different "htmlization" of babel > > blocks. I mean if I load > > > > emacs -nw -Q -l myinit.el project_part.org > > > > and publish that with C-c C-e P , then I get nicely colored babel = block in > HTML starting like > > > >
  library(RODBC)
> >
> > However, if I do
> >
> > emacs -Q --batch -l myinit.el -f 'org-publish-all'
> >
> > then I get something like
> >
> > 
 underline;">library(RODBC)
> >
> > It seems odd to me that same config results in different outputs =
when
> > publishing interactively and in a batch mode. I would prefer colored
> > output.
> >
> > What should I pay attention to? I have a feeling that something is =
not
> loaded which does in interactive mode, or vice versa.
> >
>=20
> The library used to colorize source code relies on the actual Emacs
> colorization mechanisms, which aren't available in batch mode.  The =
best
> solution in this case is to save your colorized CSS information into a
> .css file with `org-export-htmlize-generate-css', and then use that =
file
> in all of your exports by setting `org-export-htmlize-output-type' to
> 'css.  This way your fontification will be consistent across batch or
> regular export.

Thank you for the explanation!

Also I just noticed [1]. For now, I can just use -nw and (kill-emacs) =
after publishing is done and deal with CSS fine tuning later.

[1] =
http://stackoverflow.com/questions/3591337/emacs-htmlize-in-batch-mode

M.