Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note type and functions to create endnotes #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add note type and functions to create endnotes #34

wants to merge 1 commit into from

Conversation

link2xt
Copy link
Contributor

@link2xt link2xt commented Nov 5, 2017

No description provided.

@link2xt
Copy link
Contributor Author

link2xt commented Jan 13, 2018

@jgm I rebased jgm/pandoc#4042 again, everything is fixed there except for dependencies which point to github now. All I need to fix it is merging of this PR, it is blocking.

@aparcar
Copy link

aparcar commented Apr 27, 2018

Any progress on that?

@link2xt
Copy link
Contributor Author

link2xt commented Apr 29, 2018

@aparcar You can compile my "endnotes" branch and test it. I keep it updated by rebasing it on top of jgm/pandoc master.

I am in the process of adding Lua Note constructor compatibility and tests. After that I think it will be ready for merge.

@aparcar
Copy link

aparcar commented Apr 29, 2018

Thank you very much for your quick response. I compiled it and it works - creating the same output as before.

What is required to add EndNote support to markdown, as that the file format I'm currently working on? An option like --default-note-type=EndNote would to the trick as well

@link2xt
Copy link
Contributor Author

link2xt commented Apr 29, 2018

@aparcar

What is required to add EndNote support to markdown, as that the file format I'm currently working on?

There is a jgm/pandoc#1425 issue with a discussion on markdown endnote syntax. The syntax for endnotes in Markdown is not decided, so I have not added endnote support to markdown reader.

If you want to keep using Markdown, you can easily extend it with a Lua filter. Take a look at test/lua/note.lua, which unconditionally replaces all footnotes with endnotes. You can add some condition to distinguish between footnotes that you want to turn into endnotes and those you want to keep being footnotes.

Also make sure the output format you use is supported. Currently it includes only ODT, Docx and Muse.

@aparcar
Copy link

aparcar commented Apr 29, 2018

It's okay to have only EndNotes so I added --lua-filter=../note.lua which results in a lot of "ok" and "FootNote" printing, however, the final documents stays the same. Anything else to look at?

@aparcar
Copy link

aparcar commented Apr 29, 2018

Great, with odt it does work!

Would it be possible to a] support PDF as output and b] to use numbers instead of roman numbering? Should I open additional issues for both?

@link2xt
Copy link
Contributor Author

link2xt commented Apr 29, 2018

@aparcar I have already removed that "ok" debug printing, you need to update to remove it.

For PDF output it is necessary to add endnote support to LaTeX writer. LaTeX does not have native support for endnotes, so it will be necessary to decide which package to use for that and things like that.
If you find ODT typography satisfactory, you may convert to ODT and then convert to PDF with headless LibreOffice. Another option is to convert to Muse and then use Text::Amuse::Compile Perl package to convert it to to LaTeX and PDF.

Roman numbering seems to be the default ODT style, you can probably change it somehow with templates. Text::Amuse::Compile uses numbers by default, so you will like it.

@aparcar
Copy link

aparcar commented Apr 29, 2018

@labdsf thank you very much for your kind help! I'd rather stick with the LaTeX typography, who complex is the process of integrating an external library package?

@link2xt
Copy link
Contributor Author

link2xt commented Apr 29, 2018

@aparcar I think this discussion is a bit off-topic for this PR. Just one more remark: if you just want to move all your footnotes to the end of the document, you can modify your LaTeX template by adding \let\footnote=\endnote as suggested here: https://tex.stackexchange.com/questions/56145/is-there-a-way-to-move-all-footnotes-to-the-end-of-the-document Then you don't need any pandoc modifications.

@link2xt
Copy link
Contributor Author

link2xt commented May 17, 2018

@jgm Is there any plan to get this merged? All the feedback for jgm/pandoc#4042 is addressed, I need this PR merged and new version of pandoc-types released to finalize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants