Convert LaTeX to MediaWiki syntax

前端 未结 4 1385
伪装坚强ぢ
伪装坚强ぢ 2021-01-31 17:43

I need to convert LaTeX into MediaWiki syntax. The formulas should stay the same, but I need to transform, for example \\chapter{something} into = something =

4条回答
  •  萌比男神i
    2021-01-31 18:15

    Pandoc should be able to do it:

    $ pandoc -f latex -t mediawiki << END
    > \documentclass{paper}
    > \begin{document}
    > \section{Heading}
    > 
    > Hello
    > 
    > \subsection{Sub-heading}
    > 
    > \textbf{World}!
    > \end{document}
    > END
    == Heading ==
    
    Hello
    
    === Sub-heading ===
    
    '''World'''!
    

提交回复
热议问题