用于记录的轻量级标记 (wiki) 语言

人气:795 发布:2022-10-16 标签: wiki latex markup openoffice.org

问题描述

当我写论文或文档时,我会认为使用 LaTeX 或 OpenOffice 是多余的,因为我通常只需要一些标记元素(粗体、标题、列表等).我想使用 wiki 样式标记来编写我的文档,因为这非常有效.

When I write papers or documentation it makes think using LaTeX or OpenOffice is overkill as I usually only need some markup elements (bold, headlines, lists, ...) . I'd like to write my documents using a wiki style markup as this is very efficient.

例如:

= Introduction =
'''HTML''' is a markup language...

最后我想简单地将其转换为 PDF.(跨平台也不错.)

In the end I'd like to simply convert it to PDF. (Cross-platform was nice too.)

compiler.exe -pdf input.wiki output.pdf

是否有工具(或简单的工具链)来完成这项工作?

Is there a tool (or simple tool chain) to do this job?

我个人希望不使用 LaTeX 作为转换步骤.有一些工具可以将轻量级语法转换为 TeX,然后转换为 PDF/PS.

I'd personally like to not make use of LaTeX as a transformation step. There are tools doing this job transforming lightweight syntax to TeX and then to PDF/PS.

推荐答案

你可能会发现 MarkDown非常接近你想要的.

You might find that MarkDown gets pretty close to what you want.

MarkDown 是一种用于标记文本文件的简单技术,以便可以将它们后处理为其他形式.MarkDown 的一大优点是他们的目标是标记的文档应该可以作为纯文本文件简单地阅读:

MarkDown is a simple technique for marking up text files so that they can be post-processed into other forms. One of the nice things about MarkDown is their goal that a marked-up document should be simply readable as a straight text file:

最重要的设计目标Markdown 的格式化语法是使其尽可能可读.这想法是 Markdown 格式的文件应按原样发布,作为纯文本,看起来不像它被标记了标签或格式说明.

The overriding design goal for Markdown’s formatting syntax is to make it as readable as possible. The idea is that a Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions.

PanDoc 看起来它可能是将 MarkDown 直接转换为 PDF 文件的好工具.可能还有其他选择 - PanDoc 是我通过快速 Google 搜索找到的最佳工具.

PanDoc looks like it might be good companian tool to convert the MarkDown straight into PDF files. There may well be other choices - PanDoc is just the best tool I found with a quick Google search.

510