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}
  • 相关阅读:
    JavaScript高度和宽度详解
    VC6程序图标
    VC++中的Dlg,App,Doc,view
    Vista桌面图标无法拖动
    VC2008中IE8脚本错误问题解决
    单文件安装包制作(转)
    AutoResetEvent与ManualResetEvent区别
    纯JavaScript中调用WebServices
    动态加载程序集Assembly.Load
    VC++小知识积累
  • 原文地址:https://www.cnblogs.com/yangxi/p/7502578.html
Copyright © 2011-2022 走看看