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}

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