latex配置、基本使用、表格及公式

  1. 基本配置:CTEX(基本編譯環境)+texstudio(帶自動補全的編輯器),直接支持IEEE模板,編譯器選擇是PDFLatex,F5運行
  2. 基本使用:按照模板的提示,加入對應的內容
  3. 圖片:
    引用: \autoref{fig:figure3}
    \begin{figure}[tb]
     \centering % avoid the use of \begin{center}...\end{center} and use \centering instead (more compact)
     \includegraphics[width=150pt]{pictures/33333.jpg}
     \caption{The task was to align the cube with the virtual pillar.}
     \label{fig:figure3}
    \end{figure}
  4. 表格:不要直接在編輯器裏面輸入,安裝excel轉latex表述的插件,https://ctan.org/tex-archive/support/excel2latex/


    引用:\autoref{tab:result}

    %\renewcommand{\arraystretch}{1.5} 
    \begin{table}[tp]  
    %   \scriptsize%
        \centering%
      \caption{The means and standard errors of the subjective measurements and ANOVA results.}
      
      \label{tab:result}
        \begin{tabular}[b]{c|c|c|c|c|c|c}  
        \hline  
        \multirow {2}*{Items}&  
        \multicolumn {2}{c|}{VF}&
        \multicolumn{2}{c|}{BOTH}  &
        \multirow{2}* {F}   &
        \multirow{2}*{p  \textless 0.05?}     \\\cline{2-5}  
        
        &Mean&SE&Mean&SE&&\cr\hline  
     
     Offset/mm&    23.20&    3.05&    5.60&    0.32&    32.89& Yes \cr
    Time/s&    57.44&    4.81&    114.72&    11.87&    20.01&     Yes \cr\hline  

        \end{tabular}  
    \end{table} 
     

  5. 公式:簡短的公式可直接用$$包含之後嵌入文本,長公式不要直接在latex編輯,安裝mathtype,公式編輯完成後選中公式,轉換成latex格式(Alt+\)

    直接寫:
    $ f=\sum_{a}^{b}+{Y_{2}}^{4}$

    引用:\ref{key}
    \begin{equation}\label{key}
    f=\sum\limits_{i=a}^{b}{{{i}^{4}}}+\int\limits_{1}^{t}{x_{2}^{3}}dx
    \end{equation}

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