LaTeX 是一个服务于高质量排版的。通常用于大量的技术和科学文档的排版。不过,你也可以使用 LaTex 排版各种形式的文档。教师可以编辑他们的考试和教学大纲,学生可以展示他们的论文和报告。这篇文章让你尝试使用 TeXstudio。TeXstudio 是一个便于编辑 LaTeX 文档的软件。
启动 TeXstudio
如果你使用的是 Fedora Workstation,请启动软件管理,然后输入 TeXstudio 以搜索该应用程序。然后选择安装并添加 TeXstudio 到你的系统。你可以从软件管理中启动这个程序,或者像以往一样在概览中启动这个软件。
或者,如果你使用终端,请输入 texstudio。如果未安装该软件包,系统将提示你安装它。键入 y 开始安装。
$ texstudio
bash: texstudio: command not found...
Installpackage'texstudio' to provide command 'texstudio'?[N/y] y
你的第一份文档
LaTeX 命令通常以反斜杠 \ 开头,命令参数用大括号 {} 括起来。首先声明 documentclass 的类型。这个例子向你展示了该文档的类是一篇文章。
然后,在声明 documentclass 之后,用 begin 和 end 标记文档的开始和结束。在这些命令之间,写一段类似以下的内容:
\documentclass{article}
\begin{document}
TheFedoraProjectis a project sponsored by RedHat primarily to co-ordinate the development of the Linux-based Fedora operating system, operating with the vision that the project "creates a world where free culture is welcoming and widespread, collaboration is commonplace, and people control their content and devices".TheFedoraProject was founded on 22September2003whenRedHat decided to splitRedHatLinux into RedHatEnterpriseLinux(RHEL)and a community-based operating system,Fedora.