public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Emil Tywoniak <emil.tywoniak-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Duplicate TOC entries
Date: Thu, 10 Nov 2022 14:56:00 -0800 (PST)	[thread overview]
Message-ID: <7713e9c1-1056-4891-996b-1297e2145913n@googlegroups.com> (raw)


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

             reply	other threads:[~2022-11-10 22:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-10 22:56 Emil Tywoniak [this message]
     [not found] ` <7713e9c1-1056-4891-996b-1297e2145913n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-11-10 23:59   ` John MacFarlane

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=7713e9c1-1056-4891-996b-1297e2145913n@googlegroups.com \
    --to=emil.tywoniak-re5jqeeqqe8avxtiumwx3w@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).