public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Bastien DUMONT <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Reference to figures
Date: Fri, 24 Jun 2022 08:50:49 +0000	[thread overview]
Message-ID: <YrV66WEB39/1UXeK@localhost> (raw)
In-Reply-To: <ecffcdcd-1788-4565-881b-db436f030e8an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

Sorry for the typo... But, as far as I can see, the syntax is the same for headers:

```
## Header {#myhead}

Reference to [myhead].

Reference to [my header](#myhead).
```

Output:

```
<h2 id="myhead">Header</h2>
<p>Reference to [myhead].</p>
<p>Reference to <a href="#myhead">my header</a>.</p>
```

Le Friday 24 June 2022 à 01:41:33AM, Louis a écrit :
> I don't want an hyperlink but an internal link (<url>#mypic in html).
> 
> What I can eventually do is [my picture](#mypic)
> 
> ...while for other labels like headers, it only requires [mypic]
> 
> 
> Le vendredi 24 juin 2022 à 10:33:38 UTC+2, Bastien Dumont a écrit :
> 
>     If your only goal is to create a hyperlink to your picture, you can refer
>     to it with, e.g., [my picture](mypic).
> 
>     Le Friday 24 June 2022 à 01:27:28AM, Louis a écrit :
>     > Hello,
>     >
>     > I found some very old discussion on the subject, but I think it worth it
>     to
>     > start a new one.
>     >
>     > If I define a figure with an attribute:
>     > ![My pic](mypic.png){#mypic}
>     >
>     > I have indeed a label created. I can see it in latex or in html:
>     > latex: \caption{My pic}\label{mypic}
>     > html: <img src="mypic.png" id="mypic"
>     >
>     > I think I should be able to refer to it with the syntax [mypic].
>     >
>     > Unfortunately, the result differs:
>     > latex: {[}mypic{]}
>     > html: <p>Here is [s4overview]</p>
>     >
>     > What do you think ?
>     >
>     > Louis
>     >
>     > --
>     > You received this message because you are subscribed to the Google Groups
>     > "pandoc-discuss" group.
>     > To unsubscribe from this group and stop receiving emails from it, send an
>     email
>     > to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>     > To view this discussion on the web visit [2][1]https://groups.google.com/
>     d/msgid/
>     > pandoc-discuss/29a20ffb-c447-4645-8993-3e64938ae105n%[2]
>     40googlegroups.com.
>     >
>     > References:
>     >
>     > [1] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>     > [2] [3]https://groups.google.com/d/msgid/pandoc-discuss/
>     29a20ffb-c447-4645-8993-3e64938ae105n%40googlegroups.com?utm_medium=email&
>     utm_source=footer
> 
> 
> --
> You received this message because you are subscribed to the Google Groups
> "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to [4]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit [5]https://groups.google.com/d/msgid/
> pandoc-discuss/ecffcdcd-1788-4565-881b-db436f030e8an%40googlegroups.com.
> 
> References:
> 
> [1] https://groups.google.com/d/msgid/
> [2] http://40googlegroups.com/
> [3] https://groups.google.com/d/msgid/pandoc-discuss/29a20ffb-c447-4645-8993-3e64938ae105n%40googlegroups.com?utm_medium=email&utm_source=footer
> [4] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [5] https://groups.google.com/d/msgid/pandoc-discuss/ecffcdcd-1788-4565-881b-db436f030e8an%40googlegroups.com?utm_medium=email&utm_source=footer

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/YrV66WEB39/1UXeK%40localhost.


  parent reply	other threads:[~2022-06-24  8:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-24  8:27 Louis
     [not found] ` <29a20ffb-c447-4645-8993-3e64938ae105n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-24  8:33   ` Bastien DUMONT
2022-06-24  8:41     ` Louis
     [not found]       ` <ecffcdcd-1788-4565-881b-db436f030e8an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-24  8:50         ` Bastien DUMONT [this message]
2022-06-24  9:00           ` Louis
     [not found]             ` <f8ad317a-57d3-490e-b42a-d74769d242f4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-24  9:10               ` Bastien DUMONT
2022-06-24  9:26                 ` Louis
     [not found]                   ` <6c9c15fa-d57e-4348-bbf0-44f6a68a2e40n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-24  9:58                     ` Bastien DUMONT
2022-06-24  9:48         ` Albert Krewinkel
     [not found]           ` <874k0a1j19.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-06-24 11:31             ` Louis

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YrV66WEB39/1UXeK@localhost \
    --to=bastien.dumont-vwifzpto/vqstnjn9+bgxg@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /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.
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 NNTP newsgroup(s).