latex使用

375 阅读1分钟
  • 换行
    • 直接两次回车,开头会空两行
    • \\ 开头不会空两格
  • 插入图片
  • 引用
    • 知网endnote引用转bib引用参考教程
    • 插入中文引用一直报错 在textstudio中,选项->设置texstudio->构建->默认编译器->xelatex 。文章格式\documentclass[]{ctexart}
    • 连续引用,中间序号改为破折号 \usepackage{cite} \cite{bibtex1,bibtex2,bibtex3}
  • 中英文摘要+关键字
\documentclass{ctexart}

\newcommand{\enabstractname}{Abstract}
\newcommand{\cnabstractname}{摘要}
\newenvironment{enabstract}{%
  \par\small
  \noindent\mbox{}\hfill{\bfseries \enabstractname}\hfill\mbox{}\par
  \vskip 2.5ex}{\par\vskip 2.5ex}
\newenvironment{cnabstract}{%
  \par\small
  \noindent\mbox{}\hfill{\bfseries \cnabstractname}\hfill\mbox{}\par
  \vskip 2.5ex}{\par\vskip 2.5ex}

\begin{document}
\begin{enabstract}
  This is the abstract in English.

  \textbf{Keywords:} Abstract, English, Chinese
\end{enabstract}
\begin{cnabstract}
  中文摘要。

  \textbf{关键字:}摘要、英文、中文
\end{cnabstract}



\end{document}
转自http://upl.io/rwb9ra

  • 日期
    • 删除默认显示的日期,加入\date{}