emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Stefan Vollmar <vollmar@nf.mpg.de>
To: Richard Stanton <stanton@haas.berkeley.edu>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: New HTML exporter: Oddities with figure placement
Date: Mon, 25 Feb 2013 23:17:35 +0100	[thread overview]
Message-ID: <295371D3-609E-4B11-AC0C-7AFAF4D4B176@nf.mpg.de> (raw)
In-Reply-To: <CD50E11D.12FBE%stanton@haas.berkeley.edu>

[-- Attachment #1: Type: text/plain, Size: 1657 bytes --]

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: vollmar@nf.mpg.de   http://www.nf.mpg.de







[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4409 bytes --]

  reply	other threads:[~2013-02-25 22:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.115.1361811618.4057.emacs-orgmode@gnu.org>
2013-02-25 17:55 ` New HTML exporter: Oddities with figure placement Richard Stanton
2013-02-25 22:17   ` Stefan Vollmar [this message]
2013-02-25 23:14     ` Nicolas Goaziou
2013-02-26  0:05       ` Stefan Vollmar
2013-02-25 18:03 ` HTML export: no date in postamble unless set manually Richard Stanton
2013-02-25 20:10   ` Nick Dokos
2013-02-25 20:59     ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=295371D3-609E-4B11-AC0C-7AFAF4D4B176@nf.mpg.de \
    --to=vollmar@nf.mpg.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=stanton@haas.berkeley.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).