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

发布于 2024-07-15 03:57:42 字数 422 浏览 4 评论 0原文

当我撰写论文或文档时,我会觉得使用 LaTeX 或 OpenOffice 太过分了,因为我通常只需要一些标记元素(粗体、标题、列表等)。 我想使用 wiki 样式标记来编写我的文档,因为这非常有效。

例如:

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

最后我想简单地将其转换为PDF。 (跨平台也很好。)

compiler.exe -pdf input.wiki output.pdf

有一个工具(或简单的工具链)可以完成这项工作吗?

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

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.

For example:

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

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?

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

生来就爱笑 2024-07-22 03:57:42

您可能会发现 MarkDown 非常接近您想要的。

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

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

PanDoc 看起来它可能是一个很好的伴侣工具,可以将 MarkDown 直接转换为 PDF 文件。 很可能还有其他选择 - PanDoc 只是我通过快速 Google 搜索找到的最好的工具。

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

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:

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 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.

滥情空心 2024-07-22 03:57:42

reStructuredText

您可以使用 Sphinx 生成 HTML 和 LaTeX(以及后来使用 pdflatex 生成的 PDF)。

还有rst2pdf,不知道是否成熟。

reStructuredText.

You can use Sphinx to generate HTML and LaTeX (and later PDF with pdflatex).

There is also rst2pdf, don't know if it's mature.

若有似无的小暗淡 2024-07-22 03:57:42

您可以使用 Markdown (示例),然后使用 Pandoc (也适用于 reStructuredText以及其他一些类似 wiki 的语法)来转换为 PDF。

You could use Markdown (example) and then use Pandoc (which also works with reStructuredText and several other wiki-like syntaxes) to convert to PDF.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文