public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* pandoc-crossref "listing" labels and references
@ 2021-07-22 23:11 Leena Murgai
       [not found] ` <81830228-88be-4df5-9f8d-306b603b1080n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Leena Murgai @ 2021-07-22 23:11 UTC (permalink / raw)
  To: pandoc-discuss


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

Hi there,

I am converting from LaTeX to HTML5 and using pandoc-crossref version 
2.14.02 for cross references to figures, tables and now code listings. I 
managed to get it to work for figures and tables but for listings I'm 
seeing some unusual behaviour.

Input LaTeX:
```
\begin{lstlisting}[caption={caption_text},
                   label=lst:label]
code
\end{lstlisting}
```

Output HTML5:
```
<div id="lst:label" class="listing">
<p>Listing chap#. lst:label: caption_text </p>
<pre label="lst:label"><code>code</code></pre>
</div>
```

Instead of numbering the listing using (what I understood was the default) 
arabic, it's numbering the caption with the label ```lst:label```. I tried 
setting

lstLabel: "arabic" / "roman"
setLabelAttribute: true / false

in the pandoc-crossref.yml. None of these made any difference to any of the 
cross refs (to figures, tables or listings). Is there perhaps a setting I 
missed?

Thanks,
Leena


-- 
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/81830228-88be-4df5-9f8d-306b603b1080n%40googlegroups.com.

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

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

* Re: pandoc-crossref "listing" labels and references
       [not found] ` <81830228-88be-4df5-9f8d-306b603b1080n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-07-22 23:30   ` Leena Murgai
       [not found]     ` <c1c4c1b1-86cb-4a86-9d23-70dbd975d41dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Leena Murgai @ 2021-07-22 23:30 UTC (permalink / raw)
  To: pandoc-discuss


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

In addition the reference to the listing is also inconsistent, \ref{
lst:label} outputs [lst:label] in HTML.

On Thursday, 22 July 2021 at 16:11:21 UTC-7 Leena Murgai wrote:

> Hi there,
>
> I am converting from LaTeX to HTML5 and using pandoc-crossref version 
> 2.14.02 for cross references to figures, tables and now code listings. I 
> managed to get it to work for figures and tables but for listings I'm 
> seeing some unusual behaviour.
>
> Input LaTeX:
> ```
> \begin{lstlisting}[caption={caption_text},
>                    label=lst:label]
> code
> \end{lstlisting}
> ```
>
> Output HTML5:
> ```
> <div id="lst:label" class="listing">
> <p>Listing chap#. lst:label: caption_text </p>
> <pre label="lst:label"><code>code</code></pre>
> </div>
> ```
>
> Instead of numbering the listing using (what I understood was the default) 
> arabic, it's numbering the caption with the label ```lst:label```. I 
> tried setting
>
> lstLabel: "arabic" / "roman"
> setLabelAttribute: true / false
>
> in the pandoc-crossref.yml. None of these made any difference to any of 
> the cross refs (to figures, tables or listings). Is there perhaps a setting 
> I missed?
>
> Thanks,
> Leena
>
>
>

-- 
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/c1c4c1b1-86cb-4a86-9d23-70dbd975d41dn%40googlegroups.com.

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

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

* Re: pandoc-crossref "listing" labels and references
       [not found]     ` <c1c4c1b1-86cb-4a86-9d23-70dbd975d41dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-07-24  2:46       ` Leena Murgai
       [not found]         ` <05384018-5c8e-4011-a0bf-af624d24c7c0n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Leena Murgai @ 2021-07-24  2:46 UTC (permalink / raw)
  To: pandoc-discuss


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

I replaced this email with an issue 
<https://github.com/lierdakil/pandoc-crossref/issues/319> for 
pandoc-sidenote.


On Thursday, 22 July 2021 at 16:30:39 UTC-7 Leena Murgai wrote:

> In addition the reference to the listing is also inconsistent, \ref{
> lst:label} outputs [lst:label] in HTML.
>
> On Thursday, 22 July 2021 at 16:11:21 UTC-7 Leena Murgai wrote:
>
>> Hi there,
>>
>> I am converting from LaTeX to HTML5 and using pandoc-crossref version 
>> 2.14.02 for cross references to figures, tables and now code listings. I 
>> managed to get it to work for figures and tables but for listings I'm 
>> seeing some unusual behaviour.
>>
>> Input LaTeX:
>> ```
>> \begin{lstlisting}[caption={caption_text},
>>                    label=lst:label]
>> code
>> \end{lstlisting}
>> ```
>>
>> Output HTML5:
>> ```
>> <div id="lst:label" class="listing">
>> <p>Listing chap#. lst:label: caption_text </p>
>> <pre label="lst:label"><code>code</code></pre>
>> </div>
>> ```
>>
>> Instead of numbering the listing using (what I understood was the 
>> default) arabic, it's numbering the caption with the label ```lst:label
>> ```. I tried setting
>>
>> lstLabel: "arabic" / "roman"
>> setLabelAttribute: true / false
>>
>> in the pandoc-crossref.yml. None of these made any difference to any of 
>> the cross refs (to figures, tables or listings). Is there perhaps a setting 
>> I missed?
>>
>> Thanks,
>> Leena
>>
>>
>>

-- 
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/05384018-5c8e-4011-a0bf-af624d24c7c0n%40googlegroups.com.

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

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

* Re: pandoc-crossref "listing" labels and references
       [not found]         ` <05384018-5c8e-4011-a0bf-af624d24c7c0n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-08-04 17:12           ` Leena Murgai
  0 siblings, 0 replies; 4+ messages in thread
From: Leena Murgai @ 2021-08-04 17:12 UTC (permalink / raw)
  To: pandoc-discuss


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

pandoc-crossref sorry, not pandoc-sidenote!

On Friday, 23 July 2021 at 19:46:59 UTC-7 Leena Murgai wrote:

> I replaced this email with an issue 
> <https://github.com/lierdakil/pandoc-crossref/issues/319> for 
> pandoc-sidenote.
>
>
> On Thursday, 22 July 2021 at 16:30:39 UTC-7 Leena Murgai wrote:
>
>> In addition the reference to the listing is also inconsistent, \ref{
>> lst:label} outputs [lst:label] in HTML.
>>
>> On Thursday, 22 July 2021 at 16:11:21 UTC-7 Leena Murgai wrote:
>>
>>> Hi there,
>>>
>>> I am converting from LaTeX to HTML5 and using pandoc-crossref version 
>>> 2.14.02 for cross references to figures, tables and now code listings. I 
>>> managed to get it to work for figures and tables but for listings I'm 
>>> seeing some unusual behaviour.
>>>
>>> Input LaTeX:
>>> ```
>>> \begin{lstlisting}[caption={caption_text},
>>>                    label=lst:label]
>>> code
>>> \end{lstlisting}
>>> ```
>>>
>>> Output HTML5:
>>> ```
>>> <div id="lst:label" class="listing">
>>> <p>Listing chap#. lst:label: caption_text </p>
>>> <pre label="lst:label"><code>code</code></pre>
>>> </div>
>>> ```
>>>
>>> Instead of numbering the listing using (what I understood was the 
>>> default) arabic, it's numbering the caption with the label ```lst:label
>>> ```. I tried setting
>>>
>>> lstLabel: "arabic" / "roman"
>>> setLabelAttribute: true / false
>>>
>>> in the pandoc-crossref.yml. None of these made any difference to any of 
>>> the cross refs (to figures, tables or listings). Is there perhaps a setting 
>>> I missed?
>>>
>>> Thanks,
>>> Leena
>>>
>>>
>>>

-- 
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/b3027ee2-f607-4d58-a293-2baf177dfd66n%40googlegroups.com.

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

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

end of thread, other threads:[~2021-08-04 17:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-22 23:11 pandoc-crossref "listing" labels and references Leena Murgai
     [not found] ` <81830228-88be-4df5-9f8d-306b603b1080n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-07-22 23:30   ` Leena Murgai
     [not found]     ` <c1c4c1b1-86cb-4a86-9d23-70dbd975d41dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-07-24  2:46       ` Leena Murgai
     [not found]         ` <05384018-5c8e-4011-a0bf-af624d24c7c0n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-08-04 17:12           ` Leena Murgai

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