mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 20:07:46 +00:00
ox-latex: Do not center images in image links
* lisp/ox-latex.el (org-latex--inline-image): Do not center image when it is the description of a link. Reported-by: Arne Babenhauserheide <arne_bab@web.de> <http://lists.gnu.org/r/emacs-orgmode/2020-05/msg00157.html>
This commit is contained in:
parent
6076f40cae
commit
20f0299bc3
|
@ -2389,8 +2389,11 @@ used as a communication channel."
|
|||
(format "[%s]" (plist-get info :latex-default-figure-position)))
|
||||
(t ""))))
|
||||
(center
|
||||
(if (plist-member attr :center) (plist-get attr :center)
|
||||
(plist-get info :latex-images-centered)))
|
||||
(cond
|
||||
;; If link is an image link, do not center.
|
||||
((eq 'link (org-element-type (org-export-get-parent link))) nil)
|
||||
((plist-member attr :center) (plist-get attr :center))
|
||||
(t (plist-get info :latex-images-centered))))
|
||||
(comment-include (if (plist-get attr :comment-include) "%" ""))
|
||||
;; It is possible to specify scale or width and height in
|
||||
;; the ATTR_LATEX line, and also via default variables.
|
||||
|
|
Loading…
Reference in a new issue