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

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