成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

使用 LaTeX 和 TeXstudio 排版文檔

系統(tǒng)
LaTeX 是一個(gè)服務(wù)于高質(zhì)量排版的文檔準(zhǔn)備系統(tǒng)。通常用于大量的技術(shù)和科學(xué)文檔的排版。不過(guò),你也可以使用 LaTex 排版各種形式的文檔。教師可以編輯他們的考試和教學(xué)大綱,學(xué)生可以展示他們的論文和報(bào)告。這篇文章讓你嘗試使用 TeXstudio。TeXstudio 是一個(gè)便于編輯 LaTeX 文檔的軟件。

[[382504]]

LaTeX 是一個(gè)服務(wù)于高質(zhì)量排版的文檔準(zhǔn)備系統(tǒng)。通常用于大量的技術(shù)和科學(xué)文檔的排版。不過(guò),你也可以使用 LaTex 排版各種形式的文檔。教師可以編輯他們的考試和教學(xué)大綱,學(xué)生可以展示他們的論文和報(bào)告。這篇文章讓你嘗試使用 TeXstudio。TeXstudio 是一個(gè)便于編輯 LaTeX 文檔的軟件。

啟動(dòng) TeXstudio

如果你使用的是 Fedora Workstation,請(qǐng)啟動(dòng)軟件管理,然后輸入 TeXstudio 以搜索該應(yīng)用程序。然后選擇安裝并添加 TeXstudio 到你的系統(tǒng)。你可以從軟件管理中啟動(dòng)這個(gè)程序,或者像以往一樣在概覽中啟動(dòng)這個(gè)軟件。

或者,如果你使用終端,請(qǐng)輸入 texstudio。如果未安裝該軟件包,系統(tǒng)將提示你安裝它。鍵入 y 開(kāi)始安裝。

  1. $ texstudio
  2. bash: texstudio: command not found...
  3. Install package 'texstudio' to provide command 'texstudio'? [N/y] y

你的第一份文檔

LaTeX 命令通常以反斜杠 \ 開(kāi)頭,命令參數(shù)用大括號(hào) {} 括起來(lái)。首先聲明 documentclass 的類型。這個(gè)例子向你展示了該文檔的類是一篇文章。

然后,在聲明 documentclass 之后,用 begin 和 end 標(biāo)記文檔的開(kāi)始和結(jié)束。在這些命令之間,寫一段類似以下的內(nèi)容:

  1. \documentclass{article}
  2. \begin{document}
  3. The Fedora Project is a project sponsored by Red Hat 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". The Fedora Project was founded on 22 September 2003 when Red Hat decided to split Red Hat Linux into Red Hat Enterprise Linux (RHEL) and a community-based operating system, Fedora.
  4. \end{document}

 

使用間距

要?jiǎng)?chuàng)建段落分隔符,請(qǐng)?jiān)谖谋局g保留一個(gè)或多個(gè)換行符。下面是一個(gè)包含四個(gè)段落的示例:

 

從該示例中可以看出,多個(gè)換行符不會(huì)在段落之間創(chuàng)建額外的空格。但是,如果你確實(shí)需要留出額外的空間,請(qǐng)使用 hspace 和 vspace 命令。這兩個(gè)命令分別添加水平和垂直空間。下面是一些示例代碼,顯示了段落周圍的附加間距:

  1. \documentclass{article}
  2. \begin{document}
  3.  
  4. \hspace{2.5cm} The four essential freedoms
  5.  
  6. \vspace{0.6cm}
  7. A program is free software if the program's users have the 4 essential freedoms:
  8.  
  9. The freedom to run the program as you wish, for any purpose (freedom 0).\vspace{0.2cm}
  10. 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}
  11.  
  12. The freedom to redistribute copies so you can help your neighbour (freedom 2).\vspace{0.2cm}
  13.  
  14. 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.
  15.  
  16. \end{document}

如果需要,你也可以使用 noindent 命令來(lái)避免縮進(jìn)。這里是上面 LaTeX 源碼的結(jié)果:

 

使用列表和格式

如果把自由軟件的四大基本自由列為一個(gè)清單,這個(gè)例子看起來(lái)會(huì)更好。通過(guò)在列表的開(kāi)頭使用\begin{itemize},在末尾使用 \end{itemize} 來(lái)設(shè)置列表結(jié)構(gòu)。在每個(gè)項(xiàng)目前面加上 \item 命令。

額外的格式也有助于使文本更具可讀性。用于格式化的有用命令包括粗體、斜體、下劃線、超大、大、小和 textsc 以幫助強(qiáng)調(diào)文本:

  1. \documentclass{article}
  2. \begin{document}
  3.  
  4. \hspace{2cm} {\huge The four essential freedoms}
  5.  
  6. \vspace{0.6cm}
  7. \noindent {\large A program is free software if the program's users have the 4 essential freedoms}:
  8. \begin{itemize}
  9. \item \vspace{0.2cm}
  10. \noindent \textbf{The freedom to run} the program as you wish, for any purpose \textit{(freedom 0)}. \vspace{0.2cm}
  11. \item \noindent \textbf{The freedom to study} how the program works, and change it so it does your computing as you wish \textit{(freedom 1)}. Access to the source code is a precondition for this.\vspace{0.2cm}
  12.  
  13. \item \noindent \textbf{The freedom to redistribute} copies so you can help your neighbour \textit{(freedom 2)}.\vspace{0.2cm}
  14.  
  15. \item \noindent \textbf{The freedom to distribute copies of your modified versions} to others \textit{(freedom 3)}. \tiny{By doing this you can give the whole community a chance to benefit from your changes.\underline{\textsc{ Access to the source code is a precondition for this.}}}
  16. \end{itemize}
  17. \end{document}

 

添加列、圖像和鏈接

列、圖像和鏈接有助于為文本添加更多信息。LaTeX 包含一些高級(jí)功能的函數(shù)作為宏包。\usepackage 命令加載宏包以便你可以使用這些功能。

例如,要使用圖像,可以使用命令 \usepackage{graphicx}。或者,要設(shè)置列和鏈接,請(qǐng)分別使用 \usepackage{multicol} 和 \usepackage{hyperref}

\includegraphics 命令將圖像內(nèi)聯(lián)放置在文檔中。(為簡(jiǎn)單起見(jiàn),請(qǐng)將圖形文件包含在與 LaTeX 源文件相同的目錄中。)

下面是一個(gè)使用所有這些概念的示例。它還使用下載的兩個(gè) PNG 圖片。試試你自己的圖片,看看它們是如何工作的。

  1. \documentclass{article}
  2. \usepackage{graphicx}
  3. \usepackage{multicol}
  4. \usepackage{hyperref}
  5. \begin{document}
  6. \textbf{GNU}
  7. \vspace{1cm}
  8.  
  9. 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.
  10.  
  11. 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.
  12. \vspace{1cm}
  13.  
  14. \textbf{Some Projects}
  15.  
  16. \begin{multicols}{2}
  17. Fedora
  18. \url{https://getfedora.org}
  19. \includegraphics[width=1cm]{fedora.png}
  20.  
  21. GNOME
  22. \url{https://getfedora.org}
  23. \includegraphics[width=1cm]{gnome.png}
  24. \end{multicols}
  25.  
  26. \end{document}

 

這里的功能只觸及 LaTeX 功能的表面。你可以在該項(xiàng)目的幫助和文檔站點(diǎn)了解更多關(guān)于它們的信息。 

責(zé)任編輯:龐桂玉 來(lái)源: Linux中國(guó)
相關(guān)推薦

2021-02-26 20:01:30

LaTex排版LaTeX排版

2021-02-24 16:15:20

LaTeX排版LaTeX列表

2021-02-24 16:50:07

LaTex排版表格

2010-09-10 14:54:12

DIV排版

2024-08-27 00:01:00

LaTeX語(yǔ)言符號(hào)

2022-08-23 14:13:36

LaTeX標(biāo)記語(yǔ)言

2023-11-23 08:00:00

OpenAILangChain

2021-04-21 21:11:38

鴻蒙HarmonyOS應(yīng)用開(kāi)發(fā)

2012-05-08 13:42:24

Erlang

2024-01-22 10:31:09

Kate文檔

2009-02-26 13:35:10

XMLSAXParserJDOM

2020-09-01 20:53:26

DocsifyGitHub Page文檔網(wǎng)站

2014-12-08 14:15:48

Material De字體排版

2022-12-23 10:37:41

JavaScript文檔

2012-06-27 09:44:28

ibmdw

2023-02-26 10:16:19

JavaPDF文檔

2021-06-26 07:54:21

Python字體分辨率

2024-04-26 11:54:10

Pygments代碼Pytho

2010-09-13 13:21:29

CSS排版

2010-09-14 10:41:24

DIV+CSS排版
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)

主站蜘蛛池模板: 91天堂| 成年精品 | 91免费在线| 欧美性大战久久久久久久蜜臀 | 午夜成人在线视频 | 在线观看中文字幕dvd播放 | 久久婷婷香蕉热狠狠综合 | 欧美精品一区在线 | 婷婷综合激情 | 新疆少妇videos高潮 | 一级a性色生活片久久毛片 一级特黄a大片 | 日韩中文字幕 | 成人免费久久 | 精品国产乱码久久久久久丨区2区 | 国产美女精品 | 在线免费观看亚洲 | 中文字幕乱码视频32 | 国产精品视频不卡 | 久久一久久 | 中文字幕第一页在线 | 久久一区精品 | 欧美日韩在线免费观看 | 免费看片在线播放 | 欧美视频在线观看 | 综合色久 | 欧美精品一二区 | 成人欧美一区二区三区黑人孕妇 | 久久国产精品-国产精品 | 成年人在线视频 | 欧美视频在线免费 | 青青久久| 日韩网站在线观看 | 鸳鸯谱在线观看高清 | 日韩一区二区免费视频 | 91免费看片 | 日韩男人天堂 | 欧美日韩一区在线观看 | 天天在线操 | 成年人在线观看 | 欧美在线 | 成人亚洲网站 |