LaTeX 是一个服务于高质量排版的文档准备系统。通常用于大量的技术和科学文档的排版。不过,你也可以使用 LaTex 排版各种形式的文档。教师可以编辑他们的考试和教学大纲,学生可以展示他们的论文和报告。这篇文章让你尝试使用 TeXstudio。TeXstudio 是一个便于编辑 LaTeX 文档的软件。 启动 TeXstudio如果你使用的是 Fedora Workstation,请启动软件管理,然后输入 TeXstudio 以搜索该应用程序。然后选择安装并添加 TeXstudio 到你的系统。你可以从软件管理中启动这个程序,或者像以往一样在概览中启动这个软件。 或者,如果你使用终端,请输入 $ texstudiobash: texstudio: command not found...Install package 'texstudio' to provide command 'texstudio'? [N/y] y 你的第一份文档LaTeX 命令通常以反斜杠 然后,在声明
使用间距要创建段落分隔符,请在文本之间保留一个或多个换行符。下面是一个包含四个段落的示例: 从该示例中可以看出,多个换行符不会在段落之间创建额外的空格。但是,如果你确实需要留出额外的空间,请使用 \documentclass{article}\begin{document}\hspace{2.5cm} The four essential freedoms\vspace{0.6cm} A program is free software if the program's users have the 4 essential freedoms:The freedom to run the program as you wish, for any purpose (freedom 0).\vspace{0.2cm} The freedom to study how the program works, and change it so it does your computing as you wish (freedom 1). Access to the source code is a precondition for this.\vspace{0.2cm}The freedom to redistribute copies so you can help your neighbour (freedom 2).\vspace{0.2cm}The freedom to distribute copies of your modified versions to others (freedom 3). By doing this you can give the whole community a chance to benefit from your changes. Access to the source code is a precondition for this.\end{document} 如果需要,你也可以使用 使用列表和格式如果把自由软件的四大基本自由列为一个清单,这个例子看起来会更好。通过在列表的开头使用 额外的格式也有助于使文本更具可读性。用于格式化的有用命令包括粗体、斜体、下划线、超大、大、小和 textsc 以帮助强调文本:
添加列、图像和链接列、图像和链接有助于为文本添加更多信息。LaTeX 包含一些高级功能的函数作为宏包。 例如,要使用图像,可以使用命令
下面是一个使用所有这些概念的示例。它还使用下载的两个 PNG 图片。试试你自己的图片,看看它们是如何工作的。 \documentclass{article} \usepackage{graphicx}\usepackage{multicol}\usepackage{hyperref}\begin{document} \textbf{GNU} \vspace{1cm} GNU is a recursive acronym for 'GNU's Not Unix!', chosen because GNU's design is Unix-like, but differs from Unix by being free software and containing no Unix code. Richard Stallman, the founder of the project, views GNU as a 'technical means to a social end'. Stallman has written about 'the social aspects of software and how Free Software can create community and social justice.' in his 'Free Society' book. \vspace{1cm} \textbf{Some Projects} \begin{multicols}{2} Fedora \url{https://} \includegraphics[width=1cm]{fedora.png} GNOME \url{https://} \includegraphics[width=1cm]{gnome.png} \end{multicols} \end{document} 这里的功能只触及 LaTeX 功能的表面。你可以在该项目的帮助和文档站点了解更多关于它们的信息。 via: https:///typeset-latex-texstudio-fedora/ |
|