emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Spencer Hill <spencerahill@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Feature request: enable toggling of \centering in Latex figure export
Date: Mon, 25 Jul 2016 23:34:02 +0200	[thread overview]
Message-ID: <87d1m1v1v9.fsf@saiph.selenimh> (raw)
In-Reply-To: <CA906073-97E2-4E34-9774-DA82EFAD87CE@gmail.com> (Spencer Hill's message of "Wed, 29 Jun 2016 19:46:56 -0700")

Hello,

Spencer Hill <spencerahill@gmail.com> writes:

> MWE:
> #+CAPTION: Figure caption.
> [[file:figure01.pdf]]
>
> Issue:
> When an image is exported to LaTeX as a float, the \centering command
> is hard-coded into the export: see org-latex--inline-image in
> ox-latex.el. This is not the case for tables, for which centering can
> be toggled via #+ATTR_LATEX: centering t. I would like for this same
> centering option to be made available for figure floats also.
>
> Motivation:
> I am attempting to render a .tex file for an article submission to a journal, and the publisher requires the figures to be left-aligned.
>
> It seems like a simple enough patch, but I have 0 elisp experience so
> wouldn't be the person for the job.  Or let me know if I'm missing
> something.  Thanks!

Done in development branch. Please test it and report anything wrong.

Regards,

-- 
Nicolas Goaziou

      reply	other threads:[~2016-07-25 21:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-30  2:46 Feature request: enable toggling of \centering in Latex figure export Spencer Hill
2016-07-25 21:34 ` Nicolas Goaziou [this message]

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=87d1m1v1v9.fsf@saiph.selenimh \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=spencerahill@gmail.com \
    /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).