all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Feature request: enable toggling of \centering in Latex figure export
@ 2016-06-30  2:46 Spencer Hill
  2016-07-25 21:34 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Spencer Hill @ 2016-06-30  2:46 UTC (permalink / raw)
  To: emacs-orgmode

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

Hello,

First time contributor.  Emacs 24.5.1, Org mode 8.3.4.

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!

Best,
Spencer

Spencer Hill
spencerahill@gmail.com
(913) 515-8527


[-- Attachment #2: Type: text/html, Size: 3696 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Feature request: enable toggling of \centering in Latex figure export
  2016-06-30  2:46 Feature request: enable toggling of \centering in Latex figure export Spencer Hill
@ 2016-07-25 21:34 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2016-07-25 21:34 UTC (permalink / raw)
  To: Spencer Hill; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-25 21:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-30  2:46 Feature request: enable toggling of \centering in Latex figure export Spencer Hill
2016-07-25 21:34 ` Nicolas Goaziou

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.