-
I am not totally sure if this is Pandoc or an extension I need to change the way appendix chapters are numbers to meet style rules. I copied the built-in tex template and added the following at the end: $body$
\chapterstyle{myappendix}
\renewcommand{\chaptername}{Appendix}
\renewcommand{\thechapter}{\Alph{chapter}}
%\cftaddtitleline{toc}{chapter}{Appendices}{}
\appendix
\addtocontents{toc}{\protect\setcounter{tocdepth}{0}}
$for(include-after)$
$include-after$
$endfor$
\backmatter
\end{document} In my main
The back pages are included and the table of contents is properly built, but I can't add references to the contents of the appendices (although I can add references to the chapter titles). Example appendix contains # `myprogram` Code Listing {#sec:a_coderef}
This is the code listing for the program...
...
![Control Flow Graph for `myprogram`](../visio_export/CFG - Basic - labeled.png){#fig:simple_cfg_a width=95%}
Works: A code listing for `myprogram` with cross-references to its Configuration Flow Graph is in [appendix @sec:a_coderef].
Doesn't work: In the Control Flow Graph in [figure @fig:simple_cfg_a], Command
Pandoc version? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Since pandoc can pass through raw latex content in a markdown file, you could just put this at the beginning of your first appendix file.
And then put the appendix files on the command line as arguments, after |
Beta Was this translation helpful? Give feedback.
citeproc
only runs over the document's body, so it won't affect things you put ininclude-after
.Since pandoc can pass through raw latex content in a markdown file, you could just put this at the beginning of your first appendix file.
And then put the appendix files on the command line as arguments, after
mypaper.md
.