public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Reference to figures
@ 2022-06-24  8:27 Louis
       [not found] ` <29a20ffb-c447-4645-8993-3e64938ae105n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Louis @ 2022-06-24  8:27 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 918 bytes --]

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 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/29a20ffb-c447-4645-8993-3e64938ae105n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1777 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Reference to figures
       [not found] ` <29a20ffb-c447-4645-8993-3e64938ae105n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-06-24  8:33   ` Bastien DUMONT
  2022-06-24  8:41     ` Louis
  0 siblings, 1 reply; 10+ messages in thread
From: Bastien DUMONT @ 2022-06-24  8:33 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit [2]https://groups.google.com/d/msgid/
> pandoc-discuss/29a20ffb-c447-4645-8993-3e64938ae105n%40googlegroups.com.
> 
> References:
> 
> [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [2] 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 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/YrV23JlkSmoiCNvm%40localhost.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Reference to figures
  2022-06-24  8:33   ` Bastien DUMONT
@ 2022-06-24  8:41     ` Louis
       [not found]       ` <ecffcdcd-1788-4565-881b-db436f030e8an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Louis @ 2022-06-24  8:41 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 2186 bytes --]

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]
> https://groups.google.com/d/msgid/
> > pandoc-discuss/29a20ffb-c447-4645-8993-3e64938ae105n%40googlegroups.com.
> > 
> > References:
> > 
> > [1] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [2] 
> 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 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/ecffcdcd-1788-4565-881b-db436f030e8an%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 4004 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Reference to figures
       [not found]       ` <ecffcdcd-1788-4565-881b-db436f030e8an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-06-24  8:50         ` Bastien DUMONT
  2022-06-24  9:00           ` Louis
  2022-06-24  9:48         ` Albert Krewinkel
  1 sibling, 1 reply; 10+ messages in thread
From: Bastien DUMONT @ 2022-06-24  8:50 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

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.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Reference to figures
  2022-06-24  8:50         ` Bastien DUMONT
@ 2022-06-24  9:00           ` Louis
       [not found]             ` <f8ad317a-57d3-490e-b42a-d74769d242f4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Louis @ 2022-06-24  9:00 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 3843 bytes --]

I agree, but as I wrote in my fist post, the result is different...

Le vendredi 24 juin 2022 à 10:50:54 UTC+2, Bastien Dumont a écrit :

> 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-discus...-/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-discus...-/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/f8ad317a-57d3-490e-b42a-d74769d242f4n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 8247 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Reference to figures
       [not found]             ` <f8ad317a-57d3-490e-b42a-d74769d242f4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-06-24  9:10               ` Bastien DUMONT
  2022-06-24  9:26                 ` Louis
  0 siblings, 1 reply; 10+ messages in thread
From: Bastien DUMONT @ 2022-06-24  9:10 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

What differs from what and how should it be?

Le Friday 24 June 2022 à 02:00:47AM, Louis a écrit :
> I agree, but as I wrote in my fist post, the result is different...
> 
> Le vendredi 24 juin 2022 à 10:50:54 UTC+2, Bastien Dumont a écrit :
> 
>     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][1]https://
>     groups.google.com/
>     > d/msgid/
>     > > pandoc-discuss/29a20ffb-c447-4645-8993-3e64938ae105n%[2]
>     > [2]40googlegroups.com.
>     > >
>     > > References:
>     > >
>     > > [1] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>     > > [2] [3][3]https://groups.google.com/d/msgid/pandoc-discuss/
>     > 29a20ffb-c447-4645-8993-3e64938ae105n%[4]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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>     > To view this discussion on the web visit [5][5]https://groups.google.com/
>     d/msgid/
>     > pandoc-discuss/ecffcdcd-1788-4565-881b-db436f030e8an%[6]
>     40googlegroups.com.
>     >
>     > References:
>     >
>     > [1] [7]https://groups.google.com/d/msgid/
>     > [2] [8]http://40googlegroups.com/
>     > [3] [9]https://groups.google.com/d/msgid/pandoc-discuss/
>     29a20ffb-c447-4645-8993-3e64938ae105n%40googlegroups.com?utm_medium=email&
>     utm_source=footer
>     > [4] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>     > [5] [10]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 [11]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit [12]https://groups.google.com/d/msgid/
> pandoc-discuss/f8ad317a-57d3-490e-b42a-d74769d242f4n%40googlegroups.com.
> 
> References:
> 
> [1] https://groups.google.com/
> [2] http://40googlegroups.com/
> [3] https://groups.google.com/d/msgid/pandoc-discuss/
> [4] http://40googlegroups.com/?utm_medium=email&
> [5] https://groups.google.com/d/msgid/
> [6] http://40googlegroups.com/
> [7] https://groups.google.com/d/msgid/
> [8] http://40googlegroups.com/
> [9] https://groups.google.com/d/msgid/pandoc-discuss/29a20ffb-c447-4645-8993-3e64938ae105n%40googlegroups.com?utm_medium=email&utm_source=footer
> [10] https://groups.google.com/d/msgid/pandoc-discuss/ecffcdcd-1788-4565-881b-db436f030e8an%40googlegroups.com?utm_medium=email&utm_source=footer
> [11] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [12] https://groups.google.com/d/msgid/pandoc-discuss/f8ad317a-57d3-490e-b42a-d74769d242f4n%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/YrV/eyQ1FfOkWA3C%40localhost.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Reference to figures
  2022-06-24  9:10               ` Bastien DUMONT
@ 2022-06-24  9:26                 ` Louis
       [not found]                   ` <6c9c15fa-d57e-4348-bbf0-44f6a68a2e40n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Louis @ 2022-06-24  9:26 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 6013 bytes --]

As I wrote in my first post:

Unfortunately, the result differs:
  latex: {[}mypic{]}
  html: <p>Here is [s4overview]</p>

And you just wrote:
<p>Reference to <a href="#myhead">my header</a>.</p> 

I guess in latex, the result should also be the same as headers:
  \protect\hyperlink{header}{Header}\ldots{}


Le vendredi 24 juin 2022 à 11:10:24 UTC+2, Bastien Dumont a écrit :

> What differs from what and how should it be?
>
> Le Friday 24 June 2022 à 02:00:47AM, Louis a écrit :
> > I agree, but as I wrote in my fist post, the result is different...
> > 
> > Le vendredi 24 juin 2022 à 10:50:54 UTC+2, Bastien Dumont a écrit :
> > 
> > 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][1]https://
> > groups.google.com/
> > > d/msgid/
> > > > pandoc-discuss/29a20ffb-c447-4645-8993-3e64938ae105n%[2]
> > > [2]40googlegroups.com.
> > > >
> > > > References:
> > > >
> > > > [1] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > > > [2] [3][3]https://groups.google.com/d/msgid/pandoc-discuss/
> > > 29a20ffb-c447-4645-8993-3e64938ae105n%[4]
> 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > > To view this discussion on the web visit [5][5]
> https://groups.google.com/
> > d/msgid/
> > > pandoc-discuss/ecffcdcd-1788-4565-881b-db436f030e8an%[6]
> > 40googlegroups.com.
> > >
> > > References:
> > >
> > > [1] [7]https://groups.google.com/d/msgid/
> > > [2] [8]http://40googlegroups.com/
> > > [3] [9]https://groups.google.com/d/msgid/pandoc-discuss/
> > 29a20ffb-c447-4645-8993-3e64938ae105n%
> 40googlegroups.com?utm_medium=email&
> > utm_source=footer
> > > [4] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > > [5] [10]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 [11]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit [12]
> https://groups.google.com/d/msgid/
> > pandoc-discuss/f8ad317a-57d3-490e-b42a-d74769d242f4n%40googlegroups.com.
> > 
> > References:
> > 
> > [1] https://groups.google.com/
> > [2] http://40googlegroups.com/
> > [3] https://groups.google.com/d/msgid/pandoc-discuss/
> > [4] http://40googlegroups.com/?utm_medium=email&
> > [5] https://groups.google.com/d/msgid/
> > [6] http://40googlegroups.com/
> > [7] https://groups.google.com/d/msgid/
> > [8] http://40googlegroups.com/
> > [9] 
> https://groups.google.com/d/msgid/pandoc-discuss/29a20ffb-c447-4645-8993-3e64938ae105n%40googlegroups.com?utm_medium=email&utm_source=footer
> > [10] 
> https://groups.google.com/d/msgid/pandoc-discuss/ecffcdcd-1788-4565-881b-db436f030e8an%40googlegroups.com?utm_medium=email&utm_source=footer
> > [11] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [12] 
> https://groups.google.com/d/msgid/pandoc-discuss/f8ad317a-57d3-490e-b42a-d74769d242f4n%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/6c9c15fa-d57e-4348-bbf0-44f6a68a2e40n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 15572 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Reference to figures
       [not found]       ` <ecffcdcd-1788-4565-881b-db436f030e8an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2022-06-24  8:50         ` Bastien DUMONT
@ 2022-06-24  9:48         ` Albert Krewinkel
       [not found]           ` <874k0a1j19.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
  1 sibling, 1 reply; 10+ messages in thread
From: Albert Krewinkel @ 2022-06-24  9:48 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Louis <lrannou-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> writes:

> 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]

Pandoc has a Markdown extension named `implicit_header_references` that
allows [mypic] instead of the longer syntax:
https://pandoc.org/MANUAL#extension-implicit_header_references

So if I understand correctly, you are asking for something like an
`implicit_image_references` extension that would allow to reference a
picture like `![my image caption](mypic.png)` with just `[my image
caption]`.

Did I get that right?


-- 
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe  e836 388d c0b2 1f63 1124


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Reference to figures
       [not found]                   ` <6c9c15fa-d57e-4348-bbf0-44f6a68a2e40n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-06-24  9:58                     ` Bastien DUMONT
  0 siblings, 0 replies; 10+ messages in thread
From: Bastien DUMONT @ 2022-06-24  9:58 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Sorry, I don't understand. Your explanations are simply too fragmentary. Maybe someone else understood, but as a general rule, please give a sample input file and the output you get in both LaTeX and HTML and explain what is problematic and why. In your commentary, please refer only to things that are in your sample file.

Le Friday 24 June 2022 à 02:26:31AM, Louis a écrit :
> As I wrote in my first post:
> 
> Unfortunately, the result differs:
>   latex: {[}mypic{]}
>   html: <p>Here is [s4overview]</p>
> 
> And you just wrote:
> <p>Reference to <a href="#myhead">my header</a>.</p>
> 
> I guess in latex, the result should also be the same as headers:
>   \protect\hyperlink{header}{Header}\ldots{}
> 
> 
> Le vendredi 24 juin 2022 à 11:10:24 UTC+2, Bastien Dumont a écrit :
> 
>     What differs from what and how should it be?
> 
>     Le Friday 24 June 2022 à 02:00:47AM, Louis a écrit :
>     > I agree, but as I wrote in my fist post, the result is different...
>     >
>     > Le vendredi 24 juin 2022 à 10:50:54 UTC+2, Bastien Dumont a écrit :
>     >
>     > 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][1]https://
>     > [1]groups.google.com/
>     > > d/msgid/
>     > > > pandoc-discuss/29a20ffb-c447-4645-8993-3e64938ae105n%[2]
>     > > [2][2]40googlegroups.com.
>     > > >
>     > > > References:
>     > > >
>     > > > [1] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>     > > > [2] [3][3][3]https://groups.google.com/d/msgid/pandoc-discuss/
>     > > 29a20ffb-c447-4645-8993-3e64938ae105n%[4][4]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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>     > > To view this discussion on the web visit [5][5][5]https://
>     groups.google.com/
>     > d/msgid/
>     > > pandoc-discuss/ecffcdcd-1788-4565-881b-db436f030e8an%[6]
>     > [6]40googlegroups.com.
>     > >
>     > > References:
>     > >
>     > > [1] [7][7]https://groups.google.com/d/msgid/
>     > > [2] [8][8]http://40googlegroups.com/
>     > > [3] [9][9]https://groups.google.com/d/msgid/pandoc-discuss/
>     > 29a20ffb-c447-4645-8993-3e64938ae105n%[10]40googlegroups.com?utm_medium=
>     email&
>     > utm_source=footer
>     > > [4] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>     > > [5] [10][11]https://groups.google.com/d/msgid/pandoc-discuss/
>     > ecffcdcd-1788-4565-881b-db436f030e8an%[12]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 [11]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>     > To view this discussion on the web visit [12][13]https://
>     groups.google.com/d/msgid/
>     > pandoc-discuss/f8ad317a-57d3-490e-b42a-d74769d242f4n%[14]
>     40googlegroups.com.
>     >
>     > References:
>     >
>     > [1] [15]https://groups.google.com/
>     > [2] [16]http://40googlegroups.com/
>     > [3] [17]https://groups.google.com/d/msgid/pandoc-discuss/
>     > [4] [18]http://40googlegroups.com/?utm_medium=email&
>     > [5] [19]https://groups.google.com/d/msgid/
>     > [6] [20]http://40googlegroups.com/
>     > [7] [21]https://groups.google.com/d/msgid/
>     > [8] [22]http://40googlegroups.com/
>     > [9] [23]https://groups.google.com/d/msgid/pandoc-discuss/
>     29a20ffb-c447-4645-8993-3e64938ae105n%40googlegroups.com?utm_medium=email&
>     utm_source=footer
>     > [10] [24]https://groups.google.com/d/msgid/pandoc-discuss/
>     ecffcdcd-1788-4565-881b-db436f030e8an%40googlegroups.com?utm_medium=email&
>     utm_source=footer
>     > [11] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>     > [12] [25]https://groups.google.com/d/msgid/pandoc-discuss/
>     f8ad317a-57d3-490e-b42a-d74769d242f4n%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 [26]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit [27]https://groups.google.com/d/msgid/
> pandoc-discuss/6c9c15fa-d57e-4348-bbf0-44f6a68a2e40n%40googlegroups.com.
> 
> References:
> 
> [1] http://groups.google.com/
> [2] http://40googlegroups.com/
> [3] https://groups.google.com/d/msgid/pandoc-discuss/
> [4] http://40googlegroups.com/?utm_medium=
> [5] https://groups.google.com/
> [6] http://40googlegroups.com/
> [7] https://groups.google.com/d/msgid/
> [8] http://40googlegroups.com/
> [9] https://groups.google.com/d/msgid/pandoc-discuss/
> [10] http://40googlegroups.com/?utm_medium=email&
> [11] https://groups.google.com/d/msgid/pandoc-discuss/
> [12] http://40googlegroups.com/?utm_medium=email&
> [13] https://groups.google.com/d/msgid/
> [14] http://40googlegroups.com/
> [15] https://groups.google.com/
> [16] http://40googlegroups.com/
> [17] https://groups.google.com/d/msgid/pandoc-discuss/
> [18] http://40googlegroups.com/?utm_medium=email&
> [19] https://groups.google.com/d/msgid/
> [20] http://40googlegroups.com/
> [21] https://groups.google.com/d/msgid/
> [22] http://40googlegroups.com/
> [23] https://groups.google.com/d/msgid/pandoc-discuss/29a20ffb-c447-4645-8993-3e64938ae105n%40googlegroups.com?utm_medium=email&utm_source=footer
> [24] https://groups.google.com/d/msgid/pandoc-discuss/ecffcdcd-1788-4565-881b-db436f030e8an%40googlegroups.com?utm_medium=email&utm_source=footer
> [25] https://groups.google.com/d/msgid/pandoc-discuss/f8ad317a-57d3-490e-b42a-d74769d242f4n%40googlegroups.com?utm_medium=email&utm_source=footer
> [26] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [27] https://groups.google.com/d/msgid/pandoc-discuss/6c9c15fa-d57e-4348-bbf0-44f6a68a2e40n%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/YrWK2MIKkkx1yG/i%40localhost.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Reference to figures
       [not found]           ` <874k0a1j19.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
@ 2022-06-24 11:31             ` Louis
  0 siblings, 0 replies; 10+ messages in thread
From: Louis @ 2022-06-24 11:31 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1709 bytes --]

Hello,

I actually know implicit_header_references but I actually misunderstood it. 
I thought this extension was managing the implicit identifier that exists 
in headers.

Then indeed, I think that would be fair to have something similar, maybe 
implicit_caption_references. But maybe that would also be possible to 
extend the implicit_header_references to any identifier ?

Louis

Le vendredi 24 juin 2022 à 11:56:58 UTC+2, Albert Krewinkel a écrit :

> Louis <lra...-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> writes:
>
> > 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]
>
> Pandoc has a Markdown extension named `implicit_header_references` that
> allows [mypic] instead of the longer syntax:
> https://pandoc.org/MANUAL#extension-implicit_header_references
>
> So if I understand correctly, you are asking for something like an
> `implicit_image_references` extension that would allow to reference a
> picture like `![my image caption](mypic.png)` with just `[my image
> caption]`.
>
> Did I get that right?
>
>
> -- 
> Albert Krewinkel
> GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124
>

-- 
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/b080bbbc-2ed5-4a1d-a8af-edfd50e7a679n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 2686 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-06-24 11:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-24  8:27 Reference to figures 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
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

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).