Re: Custom image link types in LaTeX
Also, it would be nice to get access to the "info" variable for custom links; that way, custom image links could handle attributes like "#+WIDTH". But straight up giving the ":export" function (registered through "org-link-set-parameters") another argument would break all existing custom links, so I'm not sure whats the way to go about this. Regards, -- Solomon
Re: Custom image link types in LaTeX
Alright, I'll wait. Meanwhile I have a few crude advises in my config that allow some functionality, so no hurry :) On Fri, Feb 14, 2020 at 7:17 PM Nicolas Goaziou wrote: > Hello, > > Bastien writes: > > > solomon theNinja writes: > > > >> I'll be happy to implement exporting custom image links myself, given > >> time, if that's the issue. > > > > Sure, please go ahead! If your change is more than 15 lines or so, > > you might need to sign the FSF copyright assignment: > > > > https://orgmode.org/request-assign-future.txt > > > >> - 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. > > > > Yes, that's what they are for. > > Note that I need to slightly improve the tooling in "ol.el", so > I suggest to wait for these changes, as it might make this feature > trivial. > > Regards, > > -- > Nicolas Goaziou >
Custom image link types in LaTeX
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.