gpt4 book ai didi

latex - 将 mediawiki 转换为 LaTeX 语法

转载 作者:行者123 更新时间:2023-12-04 22:52:30 25 4
gpt4 key购买 nike

我需要将 mediawiki 转换为 LaTeX 语法。公式应该保持不变,但我需要转换,例如 = something = 到\chapter{something}。

虽然这可以通过一些 sed 获得,但 itemize 环境会使事情变得有点脏,所以我想知道是否可以产生更好的解决方案。任何对这项任务有用的东西?

这是reverse of this question (优雅地复制)。 Pandoc 是该问题的答案,但可能 not yet for this .

最佳答案

wiki2latex 怎么样?

http://code.google.com/p/wiki2latex/

http://www.mediawiki.org/wiki/Extension:Wiki2LaTeX

引自媒体维基网站:

This extension converts Mediawiki syntax into LaTeX-code, and makes the result available as:

* a text area, from which the code can be copied
* a .tex file
* a .pdf file

The extension is written in php and uses its own parser, which is based on the original one of Mediawiki.

Since the parser supports Parser Extension Tags, this extension enables Mediawiki to be used as a tool to create nicely printable documents. The parser also uses Mediawiki's Hook-system, so you can hook in functions, which change the default behavior of Wiki2LaTeX.

关于latex - 将 mediawiki 转换为 LaTeX 语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2431530/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com