wtf-plugin-latex
v1.0.0
Published
latex plugin for wtf_wikipedia
Downloads
16
Readme
Output all, or parts of a wikipedia article in LATEX format.
const wtf = require('wtf_wikipedia')
wtf.extend(require('wtf-plugin-latex'))
let doc = wtf('hello [[world]]')
doc.latex()
// 'hello \href{./world}{world}'
<script src="https://unpkg.com/wtf_wikipedia"></script>
<script src="https://unpkg.com/wtf-plugin-latex"></script>
<script defer>
wtf.plugin(window.wtfLatex)
wtf.fetch('Hamburg').then((doc) => {
console.log(doc.sentences()[0].latex())
// \textbf{Hamburg} officially the \textbf{Free and Hanseatic City of Hamburg}, is the \href{./List_of_cities_in_Germany_by_population}{second-largest city} ...
})
</script>
work-in-progress
MIT