* Duplicate TOC entries
@ 2022-11-10 22:56 Emil Tywoniak
[not found] ` <7713e9c1-1056-4891-996b-1297e2145913n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Emil Tywoniak @ 2022-11-10 22:56 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1698 bytes --]
Hello everybody,
I'm building a pdf with a latex template, and every single entry in the TOC
as well as the .toc file is duplicated likle this:
\contentsline {section}{Verification}{11}{section*.20}%
\contentsline {section}{Verification}{11}{section*.20}%
I'm absolutely stumped, I would like to untangle pandoc's and latexmk's
invocations to at least know what source code to read but I can't figure
that out. The repository is at
https://gitlab.com/tywonemi-school-stuff/titania/doc and you need latexmk,
inkscape, and this latex template/cls <https://github.com/tohecz/ctuthesis>
to build it. If it helps, here's what the Makefile runs:
pandoc analysis.md \
-s \
--filter pandoc-minted/pandoc-minted.py \
--filter pandoc-svg/pandoc-svg.py \
--data-dir=. \
--template=ctuthesis.tex \
--bibliography bibliography.bib \
--pdf-engine=latexmk \
--pdf-engine-opt=-outdir=temp \
--pdf-engine-opt=-shell-escape \
--pdf-engine-opt=-bibtex \
-o doc.pdf
If I let it generate .tex, it has sections looking as expected:
\hypertarget{verification}{%
\section{Verification}\label{verification}}
Any suggestions where to look would be much appreciated. I found zero cases
of somebody's .toc items being duplicated and zero information on how the
.toc is even generated.
Thanks,
Emil J
--
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/7713e9c1-1056-4891-996b-1297e2145913n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 2576 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Duplicate TOC entries
[not found] ` <7713e9c1-1056-4891-996b-1297e2145913n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-11-10 23:59 ` John MacFarlane
0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2022-11-10 23:59 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Try removing the filters to rule that out.
Then try without the custom template.
> On Nov 10, 2022, at 2:56 PM, Emil Tywoniak <emil.tywoniak-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> Hello everybody,
> I'm building a pdf with a latex template, and every single entry in the TOC as well as the .toc file is duplicated likle this:
>
> \contentsline {section}{Verification}{11}{section*.20}%
> \contentsline {section}{Verification}{11}{section*.20}%
>
> I'm absolutely stumped, I would like to untangle pandoc's and latexmk's invocations to at least know what source code to read but I can't figure that out. The repository is at https://gitlab.com/tywonemi-school-stuff/titania/doc and you need latexmk, inkscape, and this latex template/cls to build it. If it helps, here's what the Makefile runs:
>
> pandoc analysis.md \
> -s \
> --filter pandoc-minted/pandoc-minted.py \
> --filter pandoc-svg/pandoc-svg.py \
> --data-dir=. \
> --template=ctuthesis.tex \
> --bibliography bibliography.bib \
> --pdf-engine=latexmk \
> --pdf-engine-opt=-outdir=temp \
> --pdf-engine-opt=-shell-escape \
> --pdf-engine-opt=-bibtex \
> -o doc.pdf
>
> If I let it generate .tex, it has sections looking as expected:
>
> \hypertarget{verification}{%
> \section{Verification}\label{verification}}
>
> Any suggestions where to look would be much appreciated. I found zero cases of somebody's .toc items being duplicated and zero information on how the .toc is even generated.
>
> Thanks,
> Emil J
>
> --
> 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/7713e9c1-1056-4891-996b-1297e2145913n%40googlegroups.com.
--
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/DB0608E9-A288-4299-832D-9B81C03A042F%40gmail.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-10 23:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-10 22:56 Duplicate TOC entries Emil Tywoniak
[not found] ` <7713e9c1-1056-4891-996b-1297e2145913n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-11-10 23:59 ` John MacFarlane
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).