3 ms·
Have you had a look at pandoc? It sounds like something a bit similar (for future reference).
by misnome 12y ago
Have 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