* Custom image link types in LaTeX
@ 2020-02-13 17:47 solomon theNinja
2020-02-14 10:02 ` Bastien
0 siblings, 1 reply; 5+ messages in thread
From: solomon theNinja @ 2020-02-13 17:47 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 759 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 905 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Custom image link types in LaTeX
2020-02-13 17:47 Custom image link types in LaTeX solomon theNinja
@ 2020-02-14 10:02 ` Bastien
2020-02-14 17:17 ` Nicolas Goaziou
0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2020-02-14 10:02 UTC (permalink / raw)
To: solomon theNinja; +Cc: emacs-orgmode
Hi Solomon,
solomon theNinja <solomontheninja@gmail.com> 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.
Thanks!
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Custom image link types in LaTeX
2020-02-14 10:02 ` Bastien
@ 2020-02-14 17:17 ` Nicolas Goaziou
2020-02-14 19:18 ` solomon theNinja
0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2020-02-14 17:17 UTC (permalink / raw)
To: Bastien; +Cc: solomon theNinja, emacs-orgmode
Hello,
Bastien <bzg@gnu.org> writes:
> solomon theNinja <solomontheninja@gmail.com> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Custom image link types in LaTeX
2020-02-14 17:17 ` Nicolas Goaziou
@ 2020-02-14 19:18 ` solomon theNinja
2020-02-14 20:13 ` solomon theNinja
0 siblings, 1 reply; 5+ messages in thread
From: solomon theNinja @ 2020-02-14 19:18 UTC (permalink / raw)
To: Bastien, solomon theNinja, emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 984 bytes --]
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 <mail@nicolasgoaziou.fr>
wrote:
> Hello,
>
> Bastien <bzg@gnu.org> writes:
>
> > solomon theNinja <solomontheninja@gmail.com> 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
>
[-- Attachment #2: Type: text/html, Size: 1676 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-02-14 20:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-13 17:47 Custom image link types in LaTeX solomon theNinja
2020-02-14 10:02 ` Bastien
2020-02-14 17:17 ` Nicolas Goaziou
2020-02-14 19:18 ` solomon theNinja
2020-02-14 20:13 ` solomon theNinja
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).