最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

markdown - Pandoc: multiple sets of endnotes in an EPUB - Stack Overflow

programmeradmin1浏览0评论

I'm trying to make an EPUB book with two "parallel" sets of endnotes. The content itself is an old book, and the two sets of endnotes are supposed to be commentaries/annotations from two different literary critics.

Ideally, the EPUB should look something like this:

So far I've figured out how to convert a list of markdown files with notes into an EPUB like this:

chapter1.md

# Chapter 1

Hello world[^1].

[^1]: Foo.

chapter2.md

# Chapter 2

Lorem ipsum[^2].

[^2]: Bar.

title.txt

---
title: My book
author: My name
language: en-US
...

and running pandoc -o book.epub title.txt chapter1.md chapter2.md.

Still, this is just one list of notes, and if I try:

Lorem ipsum[^a1] dolor sit[^b1] amet.

[^a1]: Foo.

[^b1]: Bar.

then [^a1] gets numbered as 1, and [^b1] as 2.

If possible I'd like to stick with markdown files, just because they're a little easier to work with. If it's possible to style the two sets of notes differently with CSS, I'd like to look into that too.

Appreciate any help in advance.

发布评论

评论列表(0)

  1. 暂无评论