我应该使用什么语言来编辑文档?

发布于 2024-10-02 23:23:38 字数 133 浏览 10 评论 0原文

文档编辑器很好,但也有其局限性。 有什么好的替代品吗? 我已经了解 HTML 和 CSS,虽然它们可以完成这项工作,但它们不适合打印文档。 我正在考虑学习LaTeX,因为很多学者都使用它。但我想知道是否有人会推荐另一种语言,例如 postscript。

Document editors are nice but they have their limitations.
What is a good alternative to them?
I already know HTML and CSS and while they can do the job, they are ill-suited for printed documents.
I was thinking in learning LaTeX, because many scholars use it. But I wonder if someone would recommend another language such as postscript.

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

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

发布评论

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

评论(5

暗地喜欢 2024-10-09 23:23:38

乳胶很好。你不想用手写后记。

LaTeX is fine. You don't want to write postscript by hand.

惯饮孤独 2024-10-09 23:23:38

我现在几乎只使用LaTeX,至少对于文本文档(从简历到信件到手册的所有内容)。

对于快速的一次性笔记,我实际上使用 Markdown (没有渲染器。我只是认为 Markdown 即使在纯文本模式下使用时也能很好地保留文档结构)。

不过,对于演示文稿和电子表格,我会使用适当的应用程序。特别是,我认为 LaTeX 不太适合前者(显然取决于您的演示风格。但我的几乎没有文本......)。

I’m using LaTeX almost exclusively nowadays, at least for text documents (everything from CV over letters to manuals).

For quick one-off notes, I’m actually using Markdown (without a renderer. I just think that Markdown preserves document structure quite nicely even when used in text-only mode).

For presentations and spreadsheets, I use appropriate applications, though. In particular, I don’t think LaTeX is that well-suited to do the former (depending on your style of presentations, obviously. Mine have next to no text though …).

笛声青案梦长安 2024-10-09 23:23:38

我终于有机会在大学最后一个学期用 LaTeX 写一篇整篇论文并发现它比我想象的要容易。我发现它的一些好处是

  1. 对于大多数事情来说都是相当轻量级的语法(表格是唯一真正的罪犯,但没有人能够正确地获得文本表格)。
  2. 极其广泛的语法,可用于执行从自动标记化学式到编写内联列表等任何操作。
  3. 自动精美输出。
  4. 编写模块化文档非常容易,我可以将一个章节存储在一个文件中,然后简单地 \include{} 将其存储在另一个文件中。我发现的一个特别好的用途是通过引用文件来包含我在文档中编写的代码。
  5. 对脚注和参考书目的出色支持。
  6. 几乎包含您能想象到的任何内容。

恕我直言,主要缺点是:

  1. 该语言缺乏任何真正的方向或生命力。感觉已经死了,并不是因为它已经完成了。
  2. 一个令人沮丧的构建过程,尽管有一些工具可以帮助解决这个问题,从一个简单的 bash 脚本 到完整的 make 文件

如果您有兴趣学习 LaTeX,我建议您首先阅读 LaTeX 2e PDF 的简短介绍

然而,我决定不使用 LaTeX 来完成我这些天所写的大部分内容,因为它感觉已经死了并且构建过程令人沮丧。我改用了 MultiMarkdown,因为它得到了很好的支持,并且可以转换为大量其他格式,包括 LaTeX,如果您确实需要的话,可以手动按摩它,以获得某些出版物所期望的格式。如果您还没有使用过 MultiMarkdownMarkdown 之前,那么我强烈建议您检查一下。即使与 LaTeX 相比,其语法也非常轻量且自然。我发现除了一些更高级别的印刷结构之外,MultiMarkdown 支持我定期需要的一切。

我的2分钱。

I finally got a chance to write an entire paper in LaTeX for my final semester of College and found it to be easier than I thought it would be. A couple of the nice things I found about it were

  1. A fairly lightweight syntax for most things (tables being the only real offender, but no one can get text tables right).
  2. An extremely wide array of syntax for doing anything from automatically marking up a chemical formula to writing inline lists.
  3. Beautiful output automatically.
  4. Extremely easy to write modular documents where I might store a chapter in a file and then simply \include{} it in another. One particularly nice use I found for this was to include code that I had written in the document simply by referencing the files.
  5. Wonderful support for footnotes and bibliographic references.
  6. Libraries for just about anything you can imagine.

The major drawbacks are, IMHO:

  1. A lack of any real direction or life in the language. It feels dead, and not because it's done.
  2. A frustrating build process, although there are tools to help with that, from a simple bash script to a full fledged make file.

If you're interested in learning LaTeX, I would recommend starting out by reading the Not So Short Introduction to LaTeX 2e PDF.

However, I decided against using LaTeX for most things that I write these days specifically because it feels dead and has a frustrating build process. I instead switched over to MultiMarkdown, as it is well supported and can be transformed into a large array of other formats, including LaTeX which can then be hand massaged if you really need to in order to get it the format expected by some publication. If you haven't played with MultiMarkdown or Markdown before, then I highly recommend checking them out. The syntax is extremely lightweight and natural, even compared to LaTeX. I find that except for some of the higher level typographical constructs, MultiMarkdown supports everything I need on a regular basis.

My 2 cents.

北恋 2024-10-09 23:23:38

这取决于你想做什么。如果您打算编写正式文档(也许也用于打印),那么就选择 LaTex。

并不像一开始看起来那么困难,而是专业且令人满意。

如果 Web 是您的目标,请选择 HTML / CSS。

大多数情况下,OpenOffice 或 Word 就可以解决问题;不要低估它们,如果您要使用它们(例如工作),请花时间学习它们。

It depends on what you want to do. If you are planning to write a formal document, maybe for printing too, just go for LaTex.

Not difficolt as it may appear at the very beginning but professional and fulfilling.

If Web is your goal, go for HTML / CSS.

OpenOffice or Word would do the trick in most cases; do not underestimate them, if you are going to use them (example for job) take time to learn them.

盛夏已如深秋| 2024-10-09 23:23:38

为了扩展 zzzzBov 的评论,LaTeX 应该允许作者专注于内容并允许编译器/文档类处理格式(通常是这样)。如果您使用 HTML/CSS 进行格式化,您可能会花费更多(而不是更少)的时间进行格式化。想象一下 LaTeX 文档类就是 CSS,只是它已经为您编写了,而您的 LaTeX 源代码就是内容,只是标签比 HTML 和 CSS 之间的修补功能更强大(例如斜体或方程)(

)。我推荐 LaTeX wikibook 作为简单的入门方法,以及 short-math-guide,如果你需要数学的话。享受!

To expand on zzzzBov's commmment, LaTeX is SUPPOSED to allow the writer to concentrate on the content and allow the compiler/documentclass to handle formatting (and that usually is true). If you use HTML/CSS to format you will probably be spending more time (rather than less) doing formatting. Imagine that the LaTeX documentclass is the CSS, only it is already written for you, and your LaTeX source is the content, only the tags are more functional (such as italics or equations) than for patching between the HTML and the CSS (<div ...>). I recommend the LaTeX wikibook as an easy way to start, and the short-math-guide, it if you need mathematics. Enjoy!

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