zoukankan      html  css  js  c++  java
  • Latex常用整理

    会不断更新添加,以便写论文的时候快速查找。

    项目

    带编号

    egin{enumerate}
    setlength{itemsep}{0pt}
    setlength{parsep}{0pt}
    setlength{parskip}{0pt}
    item[(1)] 
    item[(2)] 
    item[(3)] 
    end{enumerate}

     无编号

    egin{itemize}
    item[-]
    item[-]
    item[-]
    end{itemize}

     网址

    usepackage{url}
    
    url{}

     文字数字带圈

    	extcircled{}

     上标下标

    $^{}$
    $_{}$

     

    usepackage{graphicx}

    一般

    egin{figure}[h]
      egin{center}
        includegraphics[width=0.8	extwidth]{xxx.eps}
        caption{}
        label{fig:}
      end{center}
    end{figure}

     简单多幅并排

    egin{figure}[htb]
      egin{center}
       includegraphics[width=1.9cm]{1.eps}
       includegraphics[width=1.8cm]{2.eps}
       includegraphics[width=1.4cm]{3.eps}
       includegraphics[width=0.7cm]{4.eps}
       \ ~~~$1$~~~~$2$~~~~~~$3$~~~~$4$
      end{center}
    centering
    includegraphics[width=7.0cm]{xxx.eps}
    caption{}
    label{fig:}
    end{figure}

    使用minipage,可以分别添加标题,并且可以使大小不同的图居中

    egin{figure}[h]
      egin{minipage}[c]{0.5linewidth}
      centering
        includegraphics[width=0.8	extwidth]{xxx.eps}
      caption{} 
      label{fig:}
      end{minipage}
      egin{minipage}[c]{0.5linewidth}
      centering
        includegraphics[width=0.8	extwidth]{xxx.eps}
      caption{}
      label{fig:}
    end{minipage}
    end{figure}

    图标题引用缩写

    caption[short]{long}

     文本高亮

    usepackage{color}
    
    {color{red} text}

     调整断字

    可以将下面语句放在导言区:

    	olerance=1000
    emergencystretch=maxdimen
    hyphenpenalty=1000
    hbadness=10000

    hyphenpenalty值越大,断字越少。tolerance越大,换行越少。

    分文档编译

    include{xxx} 配合 includeonly{xxx} 使用

    % main.tex
    documentclass{book}
    
    includeonly{chap1}
    
    egin{document}
    	itle{A LaTeX Book}
    author{cohomo@blogbus}
    date{}maketitle
    
    include{chap1}
    include{chap2}
    include{chap3}
    
    end{document}
  • 相关阅读:
    C#动态对象(dynamic)示例(实现方法和属性的动态)
    Mysql学习实践---SELECT INTO的替代方案
    mongoDB学习--建库、删库、插入、更新
    MySQL:日期类型
    Bootstrap-table学习笔记
    12个非常有用的JavaScript技巧
    [C#.Net]判断文件是否被占用的两种方法
    设置实体类型中String类型的属性值为String.Empty
    Jquery基础之DOM操作
    ASP.NET的运行原理与运行机制
  • 原文地址:https://www.cnblogs.com/yangxi/p/7502578.html
Copyright © 2011-2022 走看看