我想用 tex 写这样的文本并对其进行修改,如果你有足够的序言,谢谢
答案1
这里有一个方法可以得到你想要的章节。它基于这个答案。
\documentclass{book}
\usepackage{lmodern}
\usepackage[explicit]{titlesec}
\usepackage{microtype}
\usepackage{tikz}
\definecolor{lbl}{RGB}{62,108,136}
\definecolor{mbl}{RGB}{120, 178, 210}
\definecolor{bbl}{RGB}{222, 233, 240}
\definecolor{myblue}{RGB}{0,82,155}
% from https://tex.stackexchange.com/a/169435/121799
\titleformat{\chapter}[display]
{\normalfont\bfseries\color{myblue}}
{%\filleft%
\begin{tikzpicture}
\draw[white,fill=bbl]
(0,0) -- (7,-2) -- (8,-2) --cycle;
\draw[white,fill=black]
(0,0) -- (6,-2) -- (7,-2) --cycle;
\draw[bbl,thick,left color=lbl,right color=lbl,middle color=mbl]
(0,0) |- (6,-2) --cycle;
\begin{scope}[yshift=-8cm]
\draw[white,fill=bbl]
(0,0) -- (7,-2) -- (8,-2) --cycle;
\draw[white,fill=black]
(0,0) -- (6,-2) -- (7,-2) --cycle;
\draw[bbl,thick,left color=lbl,right color=lbl,middle color=mbl]
(0,0) |- (6,-2) --cycle;
\end{scope}
\node[anchor=south,
outer sep=0pt,
font=\fontsize{40}{45}\selectfont,
align=center,text=myblue
] at (\textwidth/2,-5cm) {\chaptertitlename~\thechapter};
\node[anchor=north, font=\fontsize{40}{45}\selectfont,
align=center,font=\Huge,text=brown] at (\textwidth/2,-5.2cm)
{#1};
\end{tikzpicture}%
}
{10pt}
{}
\begin{document}
\tableofcontents
\chapter{Systems of linear equations}
\end{document}
答案2
要创建幻灯片,您可以使用可用于创建幻灯片和海报的 beamer 包,如以下示例所示:
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\title{Hello World}
\author{Davi}
\institute{StaxExchange}
\date{\today}
\begin{document}
\frame{\titlepage}
\begin{frame}
\frametitle{Title}
text
\end{frame}
\end{document}