iT邦幫忙

0

[筆記本: Overleaf] 線上Latex文字格式化排版工具

Overleaf

Latex是一種文字排版的語言,雖然該公司有出品編輯軟體,但是容量很大,線上版本比較省空間。如果對Latex有興趣但是沒有足夠的空間可以下載,Overleaf是一個不錯的選擇。不管是寫大學論文、履歷表或其他刊物,Latex都可以將這些文字、圖片或是表格格式化。

使用

在使用前,先註冊Overleaf會員(Register)。
https://ithelp.ithome.com.tw/upload/images/20181213/20113622Bh05vD0xFK.png

登入後,可以看到所有的專案。
選擇New Project 可以新增專案。
https://ithelp.ithome.com.tw/upload/images/20181213/20113622XN94LmHVto.png

選擇Blank Project即可新增一個空白專案。
main.tex是Latex主要文件。
空白文件會產生

  • 標題\title{...}
  • 作者\author{...}
  • 日期\data{...}

在...內編輯即可
另外\begin{document}與]\end{document}為文件的開始與結尾,在這之間的內容都屬於會顯示的內容
\maketitle則是顯示\title{...}、\author{...}與\data{...}的位置
\section{...}是段落標題,在...內編輯即可改變標題

https://ithelp.ithome.com.tw/upload/images/20181213/20113622DbvV87CpZc.png

在編輯後(紅框),按下Recompile(紅圈)即可更新內容
https://ithelp.ithome.com.tw/upload/images/20181213/20113622Emfs5Z9Z8c.png
https://ithelp.ithome.com.tw/upload/images/20181213/20113622qialC8Nn4V.png

清單

在編輯時,Overleaf會顯示可以使用的Latex語言格式
點擊後即可套用
https://ithelp.ithome.com.tw/upload/images/20181213/20113622MNYipEihER.png

Latex提供有編號(橘框)及無編號(紅框)
https://ithelp.ithome.com.tw/upload/images/20181213/20113622WiGyZU8HuA.png

Latex也提供巢狀式有編號(橘框)及無編號(紅框)
https://ithelp.ithome.com.tw/upload/images/20181213/20113622zPi4h2uGNn.png

文字編排

Latex提供3種基本編排方式:

  • 向左對齊(紅框): flushleft
  • 置中對齊(橘框): center
  • 向右對齊(籃框): flushright

https://ithelp.ithome.com.tw/upload/images/20181213/201136220EwZnZxcRP.png

文字風格

Latex提供4種不同的文字風格:

  • 斜體(紅框): \textit{...}
  • 粗體(橘框): \textbf{...}
  • 下底線(籃框): \underline{...}
  • 強調: \emph{...}

https://ithelp.ithome.com.tw/upload/images/20181213/20113622W0rViFGIZ1.png

強調風格會因為文字目前的風格而有所改變

  • 無格式(紅框):變為斜體
  • 斜體(橘框):變為無格式
  • 粗體(籃框):變為斜粗體

https://ithelp.ithome.com.tw/upload/images/20181213/2011362249A7yGCvmf.png

圖片

新增圖片時,可以新增一個檔案夾儲存所有圖片
點擊左上方的資料夾圖示(紅框),輸入資料夾名並按下Create
新資料夾會顯示在左方列表
https://ithelp.ithome.com.tw/upload/images/20181213/20113622pqCM1xIEON.png
https://ithelp.ithome.com.tw/upload/images/20181213/20113622hCd59JvI6M.png

選擇資料夾後,點擊上傳圖示(紅框)
拖曳要上傳的圖片至虛線方框範圍內即可上傳
https://ithelp.ithome.com.tw/upload/images/20181213/201136229gQCwLI4xr.png

Latex無法自行處理圖片檔案,但是可以加入資料包\usepackage{graphicx}
在使用圖片前需要定義資料夾\graphicspath{ {...資料夾位置...} }
此範例使用\graphicspath{ {./Images} }
最後在要新增圖片的地方加上\includegraphics{...檔案名...}
此範例使用\includegraphics{Images/Logo.jpg}

https://ithelp.ithome.com.tw/upload/images/20181213/201136221CTzG5IIyj.png


圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言