emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] New HTML exporter: Oddities with figure placement


From: Stefan Vollmar
Subject: Re: [O] New HTML exporter: Oddities with figure placement
Date: Mon, 25 Feb 2013 23:17:35 +0100

Dear Richard,

On 25.02.2013, at 18:55, Richard Stanton wrote:

> It seems that figure placement has changed in HTML files generated by the
> new (compared with the old) exporter.
> 
> For example, here's a simple org file:
> 
> ---------
> 
> This is an org file
> 
> [[file:figure.png]]
> 
> * Abstract
> This is an abstract
> 
> ---------
> 
> When I export, all looks fine, except that the figure is centered (left to
> right) rather than being left-justified, which I could have sworn it used
> to be. Since I prefer left justification by default, I tried adding the
> line
[...]

You are right, the effect has to do with the new exporter but is easy to 
explain and change:

if you look at the HTML code generated by Org-mode you will find this line in 
the embedded CSS code (line 45):

  div.figure p { text-align: center; }

which causes the effect you have described.
This code used to be suppressed by

:style-include-default nil
:style-include-scripts nil

in the org-publish-project-alist - either this functionality is currently not 
available or the keyword has changed. Thanks for any help with this!

However, here is a simple fix for now: include this line in a CSS file (it will 
be parsed after the embedded CSS code and overwrites it):

  div.figure p { text-align: left; }

Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: address@hidden   http://www.nf.mpg.de






Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]