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 09:58:48 +0000	[thread overview]
Message-ID: <YrWK2MIKkkx1yG/i@localhost> (raw)
In-Reply-To: <6c9c15fa-d57e-4348-bbf0-44f6a68a2e40n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

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.


  parent reply	other threads:[~2022-06-24  9:58 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
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 [this message]
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=YrWK2MIKkkx1yG/i@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).