Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

LaTeX Beamer Presentations and Resume Templates

LaTeX Beamer Presentations and Resume Templates

This section introduces two high-frequency "finished forms" of LaTeX: the academic slides Beamer, and resumes typeset with the moderncv template.


Beamer: The Standard Tool for Academic Slides

Beamer is a slide document class for LaTeX and the mainstream tool for academic talks in math and computer science - the formula slides it produces are hard for PPT to match.

There is only one core concept: the frame. One frame is one slide; the rest of the syntax is exactly the same as the LaTeX you learned in the previous eleven parts.

Example: First Chinese Slides

\

documentclass

{

ctexbeamer

}

       

% Chinese slide document class (beamer + Chinese support)

\usetheme

{

Madrid

}

               

% theme: determines color scheme, header/footer, and layout

\

title

{

LaTeX Quick Start}
\author{RUNOOB}
\date{\today}

  \begin{document}       

    

  \begin{frame

}

                   

% title page

 

\titlepage

\end

{

frame}

  \begin{frame}{大纲

}

             

% the text in braces is the page title

 

\

tableofcontents

\end

{

frame}

  \section{引言}       

  \begin{frame}{为什么用 LaTeX}       

  \begin{itemize

}

   

\

item

High-quality math formula typesetting

   

\

item

Numbering, table of contents, and references are fully automatic

   

\pause

                       

% during presentation, the first two show first, then this one appears after a key press

   

\

item

Consistent formatting for long documents

 

\end

{

itemize}
\end{frame}

  \section{公式示例}       

  \begin{frame}{公式排版示例}       

  Inline formula $E = mc^2$, display formula:
  [
    \int_0^1 x^2 ,\mathrm{d}x = \frac{1}{3}
  \ ]
\end{frame}

  \end{document

}

Compilation produces a 16:9 PDF that can be shown full-screen. A few key effects:

Title page (Madrid theme includes a bottom navigation bar):

Beamer title slide

Outline page (\tableofcontents automatically aggregates all \section; click to jump):

Beamer outline slide

Formula page (the title bar shows the current subsection name; formula typesetting is exactly the same as in a paper):

Beamer formula slide

Key Points Syntax Description
One slide \begin{frame}{title}...\end{frame} The brace title can be omitted
Switch theme \usetheme{Madrid} One line in the preamble changes the look of the whole document
Stepwise display \pause Items appear one by one during the talk; most common when lecturing
Chinese slides ctexbeamer document class Zero configuration; write Chinese directly
Pages with pasted code \begin{frame}[fragile] Pages with verbatim/listings must add

The theme is Beamer's wardrobe switch: Madrid is formal, Boadilla is compact, Berlin has column navigation; all are changed by one word. For academic talks, Madrid or default will not go wrong.

Beamer's strength is academic talks of "formulas + bullets + figures"; if the presentation is mainly graphics, animation, and multimedia, PPT or Keynote is more suitable - no need to force it.


Resume: The moderncv Template

The resume is the scenario that best shows "separation of content and style": the template handles the looks, you only fill in content.

Example: moderncv Chinese Resume

\

documentclass

[

11pt

]{

moderncv}
\moderncvstyle{classic

}

         

% layout style: classic / casual / banking

\moderncvcolor

{

blue

}

             

% primary color

\

usepackage

[

UTF8

]{

ctex

}

         

% Chinese support

\name

{

San}{Zhang

}

                   

% given name and family name

\

title

{

Algorithm Engineer}
\address{Haidian District, Beijing}{100000}
\phone{138-0000-0000}
\email{zhangsan@runoob.com}

  \begin{document

}

\makecvtitle

                     

% generate resume header (name, title, contact info)

\

section

{

Education}
\cventry{2018--2022}{Computer Science and Technology}{Some University}{Beijing}{}{Bachelor's, GPA 3.8/4.0}

  \section{工作经历}       

  \cventry{2022--至今}{算法工程师}{某科技公司}{北京}{}{负责推荐系统排序模块研发}       

    

  \section{技能}       

  \cvitem{编程语言}{Python、C++、SQL}       

  \cvitem{专业能力}{机器学习、深度学习、大数据处理}       

    

  \end{document

}

Compilation result of moderncv Chinese resume

Three sets of commands are enough to remember: \cventry lays out experience items of "time + title + organization", \cvitem lays out skill rows of "label + content", and \section generates blue group headings.

Customization Options Command Optional values
Layout Style \moderncvstyle{...} classic, casual, banking, oldstyle
Primary Color \moderncvcolor{...} blue, green, red, grey, etc.
Photo \photo[64pt][0.4pt]{photo} Square brackets set size and border

Besides moderncv, for Chinese and English resumes you can also look at open-source templates like Awesome-CV and Deedy-Resume (searchable on GitHub); they are mature solutions of "fill in content and get a ready file".


Learning resources

After getting started, the following resources can take you far.

Resource Type Description
The Not So Short Introduction to LaTeX (lshort Chinese version) Free e-book The most classic beginner manual; read through in a few hours, use as a reference anytime
Overleaf Documentation Online Documentation Hundreds of tutorials covering specific issues
TeX StackExchange Q&A Community Search here first for errors; nine out of ten problems have been asked before
CTAN Package Repository Official documentation for all packages (texdoc package-name can be viewed locally)
LaTeX Introduction (by Liu Haiyang) Paper Book The most systematic Chinese advanced textbook
texdoc Command Local Tool Type texdoc geometry in the terminal to open the package manual directly

Advanced Directions

This tutorial covers "writing documents with LaTeX"; there are three deeper layers to explore.

Direction What to Learn What You Can Do
TikZ Drawing Draw flowcharts, function graphs, and geometric shapes with code Paper illustrations and vector graphics, precise to coordinates
Font Customization fontspec package (XeLaTeX exclusive) Freely call system fonts; specify Chinese and English fonts separately
Template and Package Development Writing document class .cls files, LaTeX3 syntax Creating unified templates for a team or school