Latex

表示代码:
角度:\circ;太阳符号:\odot;导数:\dot{};




插入公式:
\usepackage{amsmath}                        %调动的包
\begin{equation}\label{eq.eq_lab}      %  eq.eq_name为公式标号,方便下来引用。前面的eq.声明为公式,便于自己识别\begin{aligned}                                     %   多个公式并列环境
x=r sin\theta cos\phi=\lambda r,\\     %  公式1
y=r sin\theta sin\phi=\mu r,\\         %  公式2
z=r cos\theta=\nu r,\\                 %  公式3
\end{aligned}
\end{equation}




插入图片:
\begin{figure}[!htbp]\centering
\includegraphics[width=1\textwidth]{fig_name}
\caption{This is about ABC.}\label{fig.fig_lab}
\end{figure}




插入表格:
1.注释表格
\usepackage{threeparttable} %调用的包
\begin{table}[!ht] \centering
\caption[]{This table is about ABC.\label{tab.tab_lab}}
\setlength{\tabcolsep}{5pt}  %resize the length
\begin{threeparttable}
\begin{tabular}{ccc}   
\hline\noalign{\smallskip}
name & name & name\tnote{a}\\
\hline\noalign{\smallskip}
term&term&term\\
term&term&term\\
\noalign{\smallskip}\hline
\end{tabular}
      \begin{tablenotes}
        \footnotesize
        \item[a] This is the note.
      \end{tablenotes}
\end{threeparttable}
\end{table}


2.长表格
\usepackage{longtable}%导入包\setlength{\tabcolsep}{2pt}  %resize the length    
\begin{longtable}{ccc}          %环境
\caption{This table is about ABC.}\label{tab.tab_lab}\\   \hline
name1 & name2 & name3\\                       \hline     \endfirsthead  %1第一页表头
\multicolumn{3}{r}{continue ~\ref{tab.tab_lab}}\\         \hline   %注意此处的{3}要与你表格的栏数一致
name1 & name2 &   name3\\                            \hline     \endhead       %2续页表头
term & term & term \\                            %表格内容
term & term & term \\                            %表格内容
\hline
\end{longtable}




自定义命令:
例:角度:\newcommand{\degree}{^\circ}

猜你喜欢

转载自blog.csdn.net/fallingelf/article/details/79969834