emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Emmanuel Charpentier <emm.charpentier@free.fr>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] Feature proposal : support "scale=" includegraphics option in the builtin latex exporter.
Date: Mon, 22 Apr 2019 17:12:58 +0200	[thread overview]
Message-ID: <12b293a7ce1786ae7e452818374298c6b8ede9e3.camel@free.fr> (raw)
In-Reply-To: <87bm0ytbl9.fsf@nicolasgoaziou.fr>

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

Le lundi 22 avril 2019 à 15:26 +0200, Nicolas Goaziou a écrit :
> Emmanuel Charpentier <emm.charpentier@free.fr> writes:
> 
> > Do you want a direct answer or a partch against /etc/ORG-NEWS ?
> 
> Anything that suits you.

A patch it is (enclosed).

If this documentation is customaty, this should be mentioned in the
"Contribute" page of Worg (which, IMHO, should be pointed to by the 
"Feedback" section of the manual).

--
Emmanuel Charpentier


[-- Attachment #2: 0002-Document-the-LATEX_ATTR-scale-parameter-in-ORG-NEWS.patch --]
[-- Type: text/x-patch, Size: 1683 bytes --]

From 99d503bb11ef7923393c7bbd0dd5cdc07e3fca6d Mon Sep 17 00:00:00 2001
From: Emmanuel Charpentier <emm.charpentier@free.fr>
Date: Mon, 22 Apr 2019 16:56:00 +0200
Subject: [PATCH 2/2] Document the LATEX_ATTR :scale parameter in ORG-NEWS

* etc/ORG-NEWS: document the new builtin LaTeX exporters' LATEX_ATTR
  :scale parameter
---
 etc/ORG-NEWS | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index 79659ea50..3285c91d9 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -192,6 +192,31 @@ This is a function for convenience.
 The new paramater ~:dbconnection~ allows to specify a connection name
 in a SQL block header: this name is used to look up connection
 parameters in ~sql-connection-alist~.
+
+*** New ~LATEX_ATTR~ ~:scale~ supported by the built-in LaTeX exporters
+
+The builtin ~org-latex-export*~ exporters now accept and use a
+~:scale~ attribute, which scales an image by a given factor.
+
+This attribute is wrapped adound the ~scale=~ parameter of LaTeX's
+~\\includegraphics~ (bitmap images) or a ~TiKZ~'s
+~\\scalebox~. Therefore, its value should be some string palatable to
+LaTeX as a positive float Its default value is an empty string
+(i.e. disabled).
+
+This attribute *overrides* the ~:width~ and ~:height~ attributes ;
+therefore, while it can be given a default value, this should be done
+only under exceptional circumstances.
+
+#+begin_example
+
+#+name: Beastie
+#+caption: I think I saw this curious horse already, but where ?
+#+LATEX_ATTR: :scale 2
+[[https://orgmode.org/img/org-mode-unicorn-logo.png]]
+
+#+end_example
+
 ** New functions
 *** ~org-dynamic-block-insert-dblock~
 
-- 
2.20.1


  parent reply	other threads:[~2019-04-22 15:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-19  7:27 Feature suggestion: support "scale=" includegraphics option in the builtin latex exporter Emmanuel Charpentier
2019-04-20  8:55 ` [PATCH] Feature proposal : " Emmanuel Charpentier
2019-04-22 12:04   ` Nicolas Goaziou
2019-04-22 12:52     ` Emmanuel Charpentier
     [not found]     ` <b0e5ee44ec52830a01beddae2bd2de468c706f40.camel@free.fr>
     [not found]       ` <87bm0ytbl9.fsf@nicolasgoaziou.fr>
2019-04-22 15:12         ` Emmanuel Charpentier [this message]
2019-04-23  8:26           ` Nicolas Goaziou
2019-06-16  5:39             ` Emmanuel Charpentier
2019-06-16  8:35               ` Nicolas Goaziou
2019-06-16  9:38                 ` Emmanuel Charpentier

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=12b293a7ce1786ae7e452818374298c6b8ede9e3.camel@free.fr \
    --to=emm.charpentier@free.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /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).