latex整理

1、表格換行

主文件添加

\newcommand{\tabincell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}

\begin{table}
  \centering
  \begin{tabular}{|c|c|c|}
  \hline
1 & \tabincell{c}{the first line \\ the next\\the next\\ last} & \tabincell{c}{one \\ one}\\
\hline
2 & \tabincell{c}{hello\\ aha\\ ok \\yes \\en} & \tabincell{c}{two \\ two \\ two} \\
\hline
\end{tabular}
  \caption{longtitle}
\end{table}

2、攝氏度

$^{\circ}$C

3、同行多圖

\begin{figure*}[ht!]
    \begin{minipage}[t]{0.33\linewidth}
    \centering
    \includegraphics[width=0.95\textwidth]{img/Erg4CAQOvsCHICttl}
    \caption{The consumed energy comparisons for SAQWR.} \label{fig:consumedenergycomparisonsforSAQWR}
    \end{minipage}
%\hspace{1ex}
\begin{minipage}[t]{0.33\linewidth}
    \centering
    \includegraphics[width=0.95\textwidth]{img/Erg4CAQOvsCHICttl}
    \caption{The consumed energy comparisons for MAQWR.} \label{fig:consumedenergycomparisonsforMAQWR}
\end{minipage}
%\hspace{1ex}
\begin{minipage}[t]{0.33\linewidth}
    \centering
    \includegraphics[width=0.95\textwidth]{img/Erg4CAQOvsCHICttl}
    \caption{The consumed energy comparisons for MAQSR.} \label{fig:consumedenergycomparisonsforMAQSR}
\end{minipage}
\end{figure*}



4、同列多圖

\begin{figure}
\centering
    \subfigure[fig1 caption...]{
    \begin{minipage}[b]{0.4\textwidth}
    \includegraphics[width=0.9\textwidth]{img/Erg4CAQOvsCHICDiffLamda} \\
    \end{minipage}
    }
    
    \subfigure[fig2 caption...]{
    \begin{minipage}[b]{0.4\textwidth}
    \includegraphics[width=0.9\textwidth]{img/Erg4CAQOvsCHICDiffLamda} \\
    \end{minipage}
    }
\label{fig:csd}
\end{figure}


5、添加作者

5.1 無圖類型可爲:

\footnotesize \text{ } \\
\textbf{xxx} is a professor ..... \\
\textbf{xxx} is a student .... \\ 



或者

\begin{IEEEbiographynophoto}{John Doe}
Biography text here.
\end{IEEEbiographynophoto}



5.2 有圖類型

\begin{IEEEbiography}[{\includegraphics[width=1in,height=1.25in,clip,keepaspectratio]{img/imagename}}]{xxx}
is a professor ....
\end{IEEEbiography}

\begin{IEEEbiography}[{\includegraphics[width=1in,height=1.25in,clip,keepaspectratio]{img/imagename}}]{xxx}
is a student .....
\end{IEEEbiography}






發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章