Referring to a bibliography in another file without showing it #10147
Replies: 3 comments 3 replies
-
I just realized I can use |
Beta Was this translation helpful? Give feedback.
-
This might be more complex than you want, but an alternative is to use a single file (assuming it's not so large that this is impracticable) and use JavaScript to hide/show sections in order to give the appearance of a multi-file site. See https://usp.technology/specification for an example (it's all done with lua filters). |
Beta Was this translation helpful? Give feedback.
-
(Of course you can still have your markdown in multiple files (and we do) but they all come together for the pandoc run.) |
Beta Was this translation helpful? Give feedback.
-
I am trying to build a simple static website with Pandoc-generated HTML files. The site has a main page generated from
index.md
. This main page contains links to other pages corresponding to various topics. Here’s a sample of what the markdown looks like:Within the various topic pages, I would like to include citations such as
[@my-citation]
, which would refer to any one of a number of citations stored in areferences.json
file in the root directory.Here’s the catch though, I don’t want to generate a (visible) bibliography in each topic page. I want to generate the bibliography once in
references.html
, but have the citations in all the topic pages refer and link to this same bibliography using theieee.csl
style.I was able to successfully generate a lone bibliography as follows:
pandoc .\references.json --metadata title:References --citeproc -o references.html --csl ieee.csl -f csljson -t html
However I’m not sure how to prevent the bibliography from appearing on each topic page, because using
--bibliography references.json
and the--citeproc
flag will result in a bibliography on the page currently being compiled.Is there a flag or some workaround to prevent the bibliography from appearing in each topic page?
Beta Was this translation helpful? Give feedback.
All reactions