Latex排版系統使用

2021-08-11 18:36:32 字數 2078 閱讀 4050

最近在實習,需要寫一些文件,聽說latex排版比較方便,所以學習了一下latex基本使用操作:

latex使用,csdn上有一篇很詳細的latex使用入門部落格:

我使用過程中遇到的一些問題和解決方法記錄:

1.如何插入尖括號?<>

solution1:

$\langle html \rangle$表示

solution2:

放到數學環境中(使用巨集包amsthm  \usepackage)

$<>$

2.放到數學環境中的字型是斜體,如何轉換為正體?

latex斜體變正體需在**前加 rm

y=exp(log(x+1))

**:y=exp(log(x+1))

y=exp(log(x+1))

**:\rm y=exp(log(x+1))

y=exp(log(x+1))

**:y=((x+1))

{}可以控制作用域的範圍

3.latex中的中文的顯示;

\usepackage    %使用cjk巨集包

\begin    %使用宋體

\begin

正文\end

\end

4.新建乙個空白文件

\documentclass

\begin

hello latex

\end

標題、作者和注釋

建立乙個新文件,將以下內容複製進入文件中,儲存,儲存型別選擇為utf-8,編譯並觀察現象。

\documentclass 

\author

\title

\begin

\maketitle

hello, world % this is comment 

\end

5.章節和段落

建立乙個新文件,將以下內容複製進入文件中,儲存,儲存型別選擇為utf-8,編譯並觀察現象。

\documentclass 

\title

\begin 

\maketitle 

\section china is in east asia. 

\subsection beijing is the capital of china. 

\subsubsection

\paragraphis in the center of beijing 

\subparagraph is in the center of tian'anmen square 

\subsection  

\paragraph is the best university in guangzhou.

\end

加括號以後可以將字型加粗

6.加入目錄

建立乙個新文件,將以下內容複製進入文件中,儲存,儲存型別選擇為utf-8,編譯並觀察現象。

\documentclass

\begin

\tableofcontents 

\section china is in east asia. 

\subsection beijing is the capital of china. 

\subsubsection 

\paragraphis in the center of beijing 

\subparagraph is in the center of tian'anmen square

\end

7.換行

建立乙個新文件,將以下內容複製進入文件中,儲存,儲存型別選擇為utf-8,編譯並觀察對比現象。

\documentclass

\begin

beijing is

the capital

of china.

washington is   the capital

of america.

amsterdam is \\ the capital \\ 

of the netherlands.

\end

空一行為另起一段,\\為段內強制換行。



LaTex文字排版系統安裝與使用

latex文字排版系統,它是基於tex排版系統並由此發展而來,其優點是高質量 高專業水準,缺點是缺少視覺化效果,而且難度較大。以下開始建立 1.執行file new命令,新建乙個名為doc1的空檔案 2.輸入以下文字,並儲存為mylatex.tex 選擇好路徑 documentclass a4 11...

TeX排版系統

tex是一種排版系統,和其他計算機語言不同,tex是一種巨集語言。latex是在tex基礎上發展的,tex語言要求使用者關注寫作和排版,但是latex可以讓使用者關注寫作,而不用去過多的關注排版,從而提高工作效率。tex是史丹福大學的高德納教師發明的,而latex是有微軟的研究員lamport開發的...

文字排版系統中相關的概念

tex 文字排版系統 tex是由著名的計算機科學家donald e.knuth 高德納 發明的排版系統,利用tex可以很容易地生成高質量的dvi檔案,列印輸出。利用dvips,dvipdfmx,pdflatex等程式生成pdf,ps,檔案,latex2html生成html檔案。它在學術界十分流行,特...