如果文章內容有分成好幾個章節,擔心一個tex檔,包含太多內容在裡面,過於複雜的話。可以選澤用input或include把各個部分拆開來存。
使用方式很簡單,
(1) 只要把想分開的內容,存進一個chap_1_1.tex。
(2) 再用
\include{chap_1_1}
或
\input{chap_1_1}
就可以了。(使用include/input時,不需要加.tex。)
如果文章內容有分成好幾個章節,擔心一個tex檔,包含太多內容在裡面,過於複雜的話。可以選澤用input或include把各個部分拆開來存。
使用方式很簡單,
(1) 只要把想分開的內容,存進一個chap_1_1.tex。
(2) 再用
\include{chap_1_1}
或
\input{chap_1_1}
就可以了。(使用include/input時,不需要加.tex。)
Command:
\underline{ xxx }
xxx 預輸入的文字。
Command:
\textbf{ xxx }
xxx = 預輸入的文字。
Step 1:
改字的方法,一開始要在文件的上方加上
\usepackage{color}
使用 color 這個 package
Step 2:
在要改的文字加上 : { \color{red} 要修改成紅色的文字 }
Step 3:
顏色有 red(紅), white(白), black(黑), green(綠), blue(藍), cyan(青), magenta(洋紅ㄥ紅紫), yellow(黃) 可以設定。
Example 2 : (multicolumn)
Code:
Package:
Example 4:
Code:
Package:
Example 3:
Code:
Package:
Example of inserting a table into LaTeX document:
Code:
Example for inserting a figure into document:
Code:
(1)
(2) Package:
另一種更簡單的方法讓數學符號從黑色換成其他顏色。
Example 2:
Code:
以下範例是將方程式的某些數學符號從黑色換成其他顏色,可以用來強調方程式中改變的地方或想強調的地方。
Example:
Code:
\documentclass{article}
\usepackage[usenames, dvipsnames]{color}
\definecolor{myred}{RGB}{255, 0, 0}
\definecolor{mygreen}{RGB}{0, 255, 0}
Case 1:
Code:
\documentclass[12pt,a4paper]{article}
\usepackage{stackengine}
% define link-line - start -
\stackMath
\def\rldp{2.0ex}
\def\rlht{1.0ex}
Examples:
Case (1) (for two-column):
First part:
\usepackage{float}
\usepackage{multicol}
Second part:
\begin{figure}[H]
\includegraphics[width=0.45\textwidth]{frog.eps}
\caption{Frog .}
\end{figure}
Examples:
\begin{enumerate}
\item
\begin{tabular}{ l c r }
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9 \\
\end{tabular}
\item
\begin{tabular}{ l | c | r }
Commands:
Step 1. \usepackage{multicol}
Step 2.
\begin{multicols}{#} - # = 2 -> two-column, if # = 3 -> three-column.
...
\end{multicols}
Example:
\documentclass[a4paper]{article}
%% Language and font encodings
Commands:
Example:
{\tiny sans-serif family}, {\scriptsize boldface}, {\footnotesize upright shape}
Result:
Commands:
Example:
\textsf{\textbf{sans-serif family, boldface, upright shape}}\\
\textrm{\textsl{roman family, medium, slanted shape}}
Result:
Commands:
\begin{flushleft} \end{flushleft} - to typeset the text between them exactly at the left of the page. 靠左
\begin{flushright} \end{flushright} - to typeset the text between them exactly at the right of the page. 靠右
\begin{center} \end{center} - to typeset the text between them exactly at the center of the page. 置中
Example:
\begin{flushleft}First line.\\[10pt] Second Line.\end{flushleft}
\begin{flushright}Third line.\\[10pt] Fourth Line.\end{flushright}
\begin{center}Fifth line.\\[10pt] Sixth Line.\end{center}
Command:
\\[12pt] - to increase the vertical distance between the lines.
Explain:
One can also give an optional argument to \\ to increase the vertical distance between the lines.
Example:
First line. \\[20pt] Second Line.
Result: