
如何使用 LaTeX 排版论文
Author:
Justin Wong
Last Updated:
před 9 lety
License:
Creative Commons CC BY 4.0
Abstract:

\begin
Discover why over 20 million people worldwide trust Overleaf with their work.

\begin
Discover why over 20 million people worldwide trust Overleaf with their work.
\documentclass[xcolor=table,dvipsnames,svgnames]{beamer}
% Author: alick<alick9188@gmail.com>
% Author: justin <justin.w.xd@gmail.com>
% This file is modified from a solution template for:
% - Giving a talk on some subject.
% - The talk is between 15min and 45min long.
% - Style is ornate.
% Copyright 2004 by Till Tantau <tantau@users.sourceforge.net>.
%
% In principle, this file can be redistributed and/or modified under
% the terms of the GNU Public License, version 2.
%
% However, this file is supposed to be a template to be modified
% for your own needs. For this reason, if you use this file as a
% template and not specifically distribute it as part of a another
% package/program, I grant the extra permission to freely copy and
% modify this file as you see fit and even to delete this copyright
% notice.
\usepackage{tikz}
\graphicspath{{fig/}}
\mode<presentation>
{
  \usetheme{material}
  \renewcommand{\MaterialIcon}{tuna.pdf}
  \usefonttheme[onlymath]{serif}
  \setbeamercovered{transparent=5}
  \setbeamercolor*{structure}{fg=primaryD}
  \setbeamertemplate{itemize item}{\raise1.25pt\hbox{\tikz\draw[fill=fg] (0,0) circle (.3ex);}}
  \setbeamertemplate{itemize subitem}{\color{fg}\tiny\raise1.25pt\hbox{\donotcoloroutermaths$\blacktriangleright$}}
  \setbeamertemplate{itemize subsubitem}{\raise2.5pt\hbox{\tikz\draw[fill=fg] (0,0) rectangle (.7ex, .2ex);}}
  \setlength\leftmargini{1.4em}
  \setlength\leftmarginii{1.4em}
  \setlength\leftmarginiii{1.4em}
  \setbeamersize{description width=0.24cm}
}
\usepackage{mflogo} % for \MF, \MP
\usepackage{graphicx}
\usepackage{listingsutf8}
\usepackage{xspace}
\usepackage{amsmath}
\usepackage{calligra}
\usepackage{cclicenses} % CC symbols
\usepackage{fontspec}
\usepackage[UTF8,fontset=ubuntu]{ctex}
\usepackage{hologo}
\usepackage{colortbl}
\usepackage{pstricks}
\usepackage{pst-node}
\usepackage{hyperxmp}
\usepackage{booktabs}
\usepackage[normalem]{ulem}
\usepackage{stackengine}
\hypersetup{
pdfauthor={Justin Wong, Alick Zhao},
pdfcopyright={Copyright (C) 2015 by Alick Zhao.
Licensed under CC-BY-SA 4.0. Some rights reserved.},
pdflicenseurl={http://creativecommons.org/licenses/by-sa/4.0/},
}
% From thuthesis user guide
\makeatletter
\def\psRotation#1(#2,#3)#4{%
  \rput{#1}(#2,#3){%
    \psellipticarc[linewidth=.4pt]{->}(0,-0.1)(0.6,0.15){120}{70}
    \ifdim#1pt>\z@\rput[l]{*0}(0.675,0){#4}\else\rput[l](0.675,0){#4}\fi
  }%
}
\makeatother
% For tipa to work.
\newfontfamily\useTIPAfont{Times New Roman}
% xeCJK conf setup
\punctstyle{kaiming}
\renewcommand\CJKfamilydefault{\CJKsfdefault} % for slides
\setCJKsansfont{WenQuanYi Micro Hei}
\setCJKmonofont{WenQuanYi Micro Hei Mono}
\renewcommand{\TeX}{\hologo{TeX}}
\renewcommand{\LaTeX}{\hologo{LaTeX}}
\newcommand{\BibTeX}{\hologo{BibTeX}}
\newcommand{\XeTeX}{\hologo{XeTeX}}
\newcommand{\pdfTeX}{\hologo{pdfTeX}}
\renewcommand{\CTeX}{C\TeX}
\newcommand{\MiKTeX}{\hologo{MiKTeX}}
\newcommand{\MacTeX}{Mac\hologo{TeX}}
\newcommand{\beamer}{\textsc{beamer}}
\def\TeXLive{\TeX{} Live\xspace}
\let\TL=\TeXLive
\newcommand{\ThuThesis}{\textsc{ThuThesis}\xspace}
% From thuthesis user guide.
\def\cmd#1{\texttt{\color{DarkBlue}\footnotesize $\backslash$#1}}
\def\env#1{\texttt{\color{DarkBlue}\footnotesize #1}}
\def\cmdxmp#1#2#3{\small{\texttt{\color{DarkBlue}$\backslash$#1}\{#2\}\hspace{1em}\\ $\Rightarrow$\hspace{1em} {#3}\par\vskip1em}}
% For debugging.
% \includeonlyframes{current}
% \includeonly{introduction}
\lstset{
  language=[LaTeX]TeX,
	basicstyle=\ttfamily\footnotesize,
	tabsize=2,
  keywordstyle=\bfseries\ttfamily\color{primaryD},
	commentstyle=\sl\ttfamily\color[RGB]{100,100,100},
	stringstyle=\ttfamily\color[RGB]{50,50,50},
	extendedchars=true,
	breaklines=true,
}
\title
{如何使用 \LaTeX 排版论文}
\author[汪彧之] % (optional, use only with lots of authors)
{汪彧之\\ \texttt{justin.w.xd@gmail.com}}
\institute{电子工程系 博士生 \\ 清华大学 TUNA 协会}
% - Use the \inst command only if there are several affiliations.
% - Keep it simple, no one is interested in your street address.
\date[图书馆专题培训讲座] % (optional)
{2016 年 4 月 19 日}
\subject{LaTeX, paper, ThuThesis}
% Delete this, if you do not want the table of contents to pop up at
% the beginning of each subsection:
\AtBeginSubsection[]
{
  \begin{frame}<beamer>{目录}
    \tableofcontents[currentsection,currentsubsection]
  \end{frame}
}
% If you wish to uncover everything in a step-wise fashion, uncomment
% the following command:
%\beamerdefaultoverlayspecification{<+->}
\hypersetup{
%pdfpagemode=FullScreen,
}
\logo{\includegraphics[height=.15\textheight]{libicon.pdf}}
\begin{document}
\begin{frame}
  \titlepage
\end{frame}
\begin{frame}{目录}
  \tableofcontents
  % You might wish to add the option [pausesections]
\end{frame}
% Since this a solution template for a generic talk, very little can
% be said about how it should be structured. However, the talk length
% of between 15min and 45min and the theme suggest that you stick to
% the following rules:
% - Exactly two or three sections (other than the summary).
% - At *most* three subsections per section.
% - Talk about 30s to 2min per frame. So there should be between about
%   15 and 30 frames, all told.
\include{introduction}
\include{basis}
\include{thuthesis}https://www.overleaf.com/read/bdynvrzpqmwq
\include{summary}
\section*{附录}
\begin{frame}
  \begin{itemize}
    \item 本幻灯片
      \begin{itemize}
        \item \url{https://github.com/tuna/thulib-latex-talk}
        \item \url{https://www.overleaf.com/read/bdynvrzpqmwq}
        \item Overleaf 版本有只包含第一章
      \end{itemize}
    \item 本幻灯片基于:
      \begin{itemize}
        \item \url{http://github.com/alick/fad-texlive-talk}
        \item \ThuThesis{}使用向导 v3.0
      \end{itemize}
    \item 许可证:CC BY-SA 4.0 Unported \cc\ccby\ccsa
  \end{itemize}
\end{frame}
\begin{frame}{扩展阅读}
  \begin{itemize}
    \item \LaTeX\ Tips:
      \url{https://alick.fedorapeople.org/fudcon-apac-2014/latex-tips.pdf} \\
      (例如:\LaTeX{} 中引号的正确输入姿势)
    \item Linux 用户:\url{https://github.com/alick/fad-texlive-talk}
    \item 网站推荐: http://www.latexstudio.net/
    \item 知乎专栏: http://zhuanlan.zhihu.com/LaTeX
    \item \ThuThesis{}使用向导 v3.0 (薛瑞尼)
    \item \LaTeX{}杂谈(刘海洋)
    \item 《\LaTeX{}入门》(刘海洋)
  \end{itemize}
\end{frame}
\begin{frame}
  \begin{center}
    {\Huge\calligra Thank you!}
  \end{center}
\end{frame}
\end{document}
%%% vim: set ts=2 sts=2 sw=2 isk+=\: et tw=80 cc=+1 formatoptions+=mM: