Skip to content

\(\LaTeX\) & Typst

\(\LaTeX\)

Usage

Tutorial

Project Structure

- main.tex
- ref.bib
- texes
  - 1.tex
  - 2.tex
- figs
  - 1.pdf
  - 2.jpg
  - 3.png

Template

Slides

\documentclass[9pt,aspectratio=169,hyperref=colorlinks]{beamer}
\usepackage{xeCJK}
% or \documentclass{ctexbeamer}

\usecolortheme{whale}
\usefonttheme{professionalfonts}
% \setbeamercolor{item}{fg=black}
\setbeamertemplate{page number in head/foot}[totalframenumber]\useoutertheme[footline=authorinstitutetitle]{miniframes}
\setbeamertemplate{itemize items}[circle]

\title{$\mathbf{AdS_3}$ 引力中的渐进对称性和守恒荷}
\subtitle{河海大学本科毕业论文答辩}
\institute{河海大学力学与工程科学学院}
\author{冯哲}

\usepackage{ragged2e}\justifying\let\raggedright\justifying

% \usepackage{tikz}
% \usebackgroundtemplate{\tikz\node[opacity=0.1]{\includegraphics[width=\paperwidth]{background.jpg}};}

\title{Title}
\subtitle{Subtitle}
\institute{Institute}
\author{Author}
% \date{}

\begin{document}

\frame{\titlepage}

\begin{frame}{frame title}
\end{frame}

\end{document}

Hohai University Bachelor Thesis

Typst

Usage

Tutorial

Template

中文文章:

#import "article.typ": *
#show: article

#import "@preview/cetz:0.3.0"
#import "@preview/physica:0.9.3": tensor

#let article(body) = {
  set heading(numbering: "1.1")
  set math.equation(numbering: "(1)")
  set page(numbering: "1")
  set par(leading: 0.55em, spacing: 0.55em, first-line-indent: 1.8em, justify: true)
  set text(font: ("New Computer Modern", "Noto Serif CJK JP"))

  show heading: set block(above: 1.4em, below: 1em)
  show math.equation: set block(breakable: true)

  body
}