From mboxrd@z Thu Jan 1 00:00:00 1970 From: solomon theNinja Subject: Custom image link types in LaTeX Date: Thu, 13 Feb 2020 19:47:30 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000823240059e78afe9" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:46133) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2IaW-0006vl-NK for emacs-orgmode@gnu.org; Thu, 13 Feb 2020 12:47:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2IaU-0001jO-Ng for emacs-orgmode@gnu.org; Thu, 13 Feb 2020 12:47:44 -0500 Received: from mail-ua1-x932.google.com ([2607:f8b0:4864:20::932]:45809) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j2IaU-0001ib-JE for emacs-orgmode@gnu.org; Thu, 13 Feb 2020 12:47:42 -0500 Received: by mail-ua1-x932.google.com with SMTP id 59so2559717uap.12 for ; Thu, 13 Feb 2020 09:47:42 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --000000000000823240059e78afe9 Content-Type: text/plain; charset="UTF-8" There does not currently exist a (pretty, without huge advices) way to create a custom link type, with a special export function, that would be handled as an image on LaTeX exports. By contrast, in HTML exports is possible by adding your custom link to `org-html-inline-image-rules` - but in LaTeX, a link must either be custom or image, and the figure-wrapping function `org-latex--inline-image` doesn't handle custom links; its not possible without modifying these functions Is this the intended behavior? If so, why? I'll be happy to implement exporting custom image links myself, given time, if that's the issue. - If it was not clear, in "custom links" I'm referring to links defined with `org-link-set-parameters` that have a special export behavior. --000000000000823240059e78afe9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
There does not currently exist a (pretty, without hug= e advices) way to create a custom link type, with a special export function= , that would be handled as an image on LaTeX exports.
By contrast= , in HTML exports is possible by adding your custom link to `org-html-inlin= e-image-rules` - but in LaTeX, a link must either be custom or image, and t= he figure-wrapping function `org-latex--inline-image` doesn't handle cu= stom links; its not possible without modifying these functions
Is this the intended behavior? If so, why?

I'= ;ll be happy to implement exporting custom image links myself, given time, = if that's the issue.

- If it was not clear, in= "custom links" I'm referring to links defined with `org-link= -set-parameters` that have a special export behavior.

<= /div> --000000000000823240059e78afe9--