3 ms·
I wrote a kind of markdown to latex script to help me writing my thesis, based in previous versions of md2html.awk. It had some more features than Paperman, suc
by yiyus 12y ago
I wrote a kind of markdown to latex script to help me writing my thesis, based in previous versions of md2html.awk. It had some more features than Paperman, such as ((footnotes)), [[bib references]] and [(references to labels)]. It also supported several heading levels, an abstract at the beginning, and even had some support for images and tables.
It was never publicly released because, since it was for my personal use, required a serious amount of work to make it usable for more people and better (or at least some) documentation. Anyway, if somebody is interested, I have no problem sharing it.
- misnome 12y agoHave you had a look at pandoc? It sounds like something a bit similar (for future reference).
- jhallenworld 12y agoPandoc does look cool- I will have to try it. I wonder which input format is the most useful (has the best balance of features and ease of use) for it. For example, can I use markdown if I need references? I wrote a preprocessor for plain TeX for chip documentation. You type 'make view' in your documentation source directory to convert text into pdf and view it with acrobat. It was interesting to write this to see how to make a full "style" for TeX. The input is somewhat like markdown in that all ASCII characters print as is except \. Use \\ to print \, otherwise it's TeX: "see table \ref{tag} on page \pageref{tag}." It supports math in that you can calculate derived table entries: |Position |Size | |\{D+DR} |\{3} | |\{D+DR} |\{22} | |\{D+DR} |\{2} | |\{0} |\{5} | 'D' means get the value from the cell below. 'DR' means get the value from the cell down and to the right. Also you can assign to and use variables in any order \{a*2} prints 20 because later I set \{a=10}. https://github.com/jhallen/joes-sandbox/tree/master/doc/nicetex https://github.com/jhallen/joes-sandbox/tree/master/doc/nice...
- aaren 12y agopandoc can do footnotes `[^1]` and citations `@citekey` but not internal references (like \ref{fig:blag} in latex). This is a problem for academic writing. I'm determined to write my thesis in markdown and recently wrote a pandoc filter that implements internal references using `#fig:blah`, with an `\autoref` like implementation. It works for figures, sections and equations and for html and latex output. https://github.com/aaren/pandoc-reference-filter https://github.com/aaren/pandoc-reference-filter