beamer插入图片_【beamer(1)】一个上课幻灯片实例

本文详细介绍了如何在Windows 10操作系统中,结合TeXLive2020和XeLaTeX编辑工具,有效地插入图片并创建专业的beamer幻灯片。对于需要制作学术报告或教学课件的用户,此教程提供了清晰的步骤指导。
摘要由CSDN通过智能技术生成

e322cd5070482cb26b20c504f5102dd9.png

0a909093625a4cc1b47dfa0d0d5ec7f8.png

d25da3bc7b831ba9531dd3649abc69a2.png

b83903f9a71388efcd3ccf608d028778.png

7ad2a854d3b10d9f2210cff31330b1ff.png

4751beb183d2a1c3949ac3821e307072.png

a718844574102a2fd286f39806f176f3.png

ddd32eed740d84fc83c6a54a8102a00c.png

ac29c9fa18a3812e8343e2e9050ee822.png

fc4e5ace83648ebdc28dbbaec70cca0c.png

ba5f0b2b00187c428344c658f2ca43d1.png

使用环境:win10+texlive2020+xelatex

% \documentclass[aspectratio=169]{beamer}	
\documentclass{beamer}
\usepackage[space,noindent]{ctex}
\usepackage{multicol}
\usepackage{amsmath,amssymb}
\usepackage{fourier}
\usepackage{indentfirst}
\usepackage{epigraph}
\setlength{\parindent}{2em}
\usepackage{amsthm}
%\setbeamertemplate{navigation symbols}{}
\usetheme{Warsaw}
%\useinnertheme{rectangles}
%\useoutertheme{infolines}
\useoutertheme[title,section,subsection=true]{smoothbars}
\newcommand{\tk}[1][2.5]{\,\underline{\mbox{\hspace{#1 cm}}}\,}
% -------------------
% Packages
% -------------------
\usepackage{
amsmath,
amssymb,
enumerate,
graphicx,
lastpage,
multicol,
multirow,
pifont,
stmaryrd
}

\usepackage{setspace}
\usepackage{ifthen}
\newlength{\xla}
\newlength{\lb}
\newlength{\lc}
\newlength{\ld}
\newlength{\lhalf}
\newlength{\lquarter}
\newlength{\lmax}
\newcommand{\xx}[4]{\\[.5pt]%
\settowidth{\xla}{A.~#1~~~}
\settowidth{\lb}{B.~#2~~~}
\settowidth{\lc}{C.~#3~~~}
\settowidth{\ld}{D.~#4~~~}
\ifthenelse{\lengthtest{\xla > \lb}} {\setlength{\lmax}{\xla}} {\setlength{\lmax}{\lb}}
\ifthenelse{\lengthtest{\lmax < \lc}} {\setlength{\lmax}{\lc}} {}
\ifthenelse{\lengthtest{\lmax < \ld}} {\setlength{\lmax}{\ld}} {}
\setlength{\lhalf}{0.5\linewidth}
\setlength{\lquarter}{0.25\linewidth}
\ifthenelse{\lengthtest{\lmax > \lhalf}} {\noindent{}A.~#1 \\ B.~#2 \\ C.~#3 \\ D.~#4 } {
\ifthenelse{\lengthtest{\lmax > \lquarter}} {\noindent\makebox[\lhalf][l]{A.~#1~~~}%
\makebox[\lhalf][l]{B.~#2~~~}\\ %
\makebox[\lhalf][l]{C.~#3~~~}%
\makebox[\lhalf][l]{D.~#4~~~}}%
{\noindent\makebox[\lquarter][l]{A.~#1~~~}%
\makebox[\lquarter][l]{B.~#2~~~}%
\makebox[\lquarter][l]{C.~#3~~~}%
\makebox[\lquarter][l]{D.~#4~~~}}}}

% -------------------
% 颜色配置
% -------------------
\definecolor{UniOrange}{RGB}{132, 151, 176}
% \definecolor{UniOrange}{RGB}{212,69,0}
\definecolor{UniGray}{RGB}{62,61,60}
%\definecolor{UniRed}{HTML}{B31B1B}
%\definecolor{UniGray}{HTML}{222222}
\setbeamercolor{title}{fg=UniGray}
\setbeamercolor{frametitle}{fg=UniOrange}
\setbeamercolor{structure}{fg=UniOrange}
\setbeamercolor{section in head/foot}{bg=UniGray}
\setbeamercolor{author in head/foot}{bg=UniGray}
\setbeamercolor{date in head/foot}{fg=UniGray}
\setbeamercolor{structure}{fg=UniOrange}
\setbeamercolor{local structure}{fg=black}
\beamersetuncovermixins{\opaqueness<1>{0}}{\opaqueness<2->{15}}


% -------------------
% 字体设置
% -------------------
\useinnertheme{default}
\usefonttheme{serif}
\usepackage{palatino}
\setbeamerfont{title like}{shape=\scshape}
\setbeamerfont{frametitle}{shape=\scshape}
\setbeamertemplate{itemize items}[circle]
%\setbeamertemplate{enumerate items}[default]

% -------------------
% Tikz & PGF
% -------------------
\usepackage{tikz}
\usepackage{pgf}
\usepackage{tikz-cd}
\usetikzlibrary{
calc,
decorations.pathmorphing,
matrix,arrows,
positioning,
shapes.geometric
}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}

\usepackage{tkz-euclide}

\usepackage{tkz-fct}

% -------------------
% 自定义环境
% -------------------
\theoremstyle{plain}
\newtheorem{dingli}{\bf{定理}}[section]
\newtheorem{prop}{Proposition}[section]
\newtheorem{lem}{Lemma}[section]
\newtheorem{cor}{Corollary}[section]
\theoremstyle{definition}
\newtheorem{liti}{例题}[section]
\newtheorem{lianxi}{练习}[section]
\newtheorem{dingyi}{定义}[section]
\theoremstyle{remark}
\newtheorem{rem}{Remark}[section]
\newtheorem{qianyan}{前言}[section]
\numberwithin{equation}{section}

% \setbeamertemplate{theorems}[numbered]

% -------------------
% 标题页
% -------------------
\usepackage{graphicx} %插入图片的包

\titlegraphic{\includegraphics[height=2cm]{xm1.jpg}}
\setbeamertemplate{title page}
{
\vbox{}
\begingroup
\centering

\begin{beamercolorbox}[sep=8pt,center]{title}
\usebeamerfont{title}\inserttitle\par%
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
\fi%
\end{beamercolorbox}%
\vskip1em\par
\begin{beamercolorbox}[sep=8pt,center]{author}
\usebeamerfont{author}\insertauthor
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center]{institute}
\usebeamerfont{institute}\insertinstitute
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center]{date}
\usebeamerfont{date}\insertdate
\end{beamercolorbox}
\vskip0.3cm{\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
\endgroup
\vfill
}


\title{\kaishu \textcolor{white}{含绝对值的函数}}
\subtitle{\kaishu \textcolor{white}{高一数学培优}}
\institute{\kaishu \large 绿西瓜数学}
\author{\kaishu 杨小京}
\date{\kaishu \today}
% \Logo(-5,5){\includegraphics[height=1cm]{1}}
% \logo{\pgfputat{\pgfxy(0,0)}{\pgfbox[center,base]{\includegraphics[width=1.5cm]{$logo$}}}}
% \MyLogo{%
% %\includegraphics[height=0.15\textwidth]{fig/school.jpg}
% \pgfputat{\pgfxy(0,8)}{\pgfbox[right,base]{\includegraphics[height=1 cm]{1}}}
% }
\MyLogo{%
%\includegraphics[height=0.15\textwidth]{fig/school.jpg}
\includegraphics[height=1cm]{xm1.jpg}
}
% \logo{\includegraphics[height=1cm]{1}}
% \pgfdeclareimage[width=2cm]{1}{1}
% \logo{\pgfuseimage{1}{\vspace{10cm}}}
\setbeamersize{text margin right=1.5cm}

% -------------------
% Content
% -------------------
\begin{document}
\LogoOff

% Title Page

\begin{frame}
\titlepage

\end{frame}

\LogoOn
\begin{frame}
\kaishu\centering \tableofcontents
\end{frame}

\section{基础回顾}

\subsection{绝对值的定义}
\subsubsection{代数定义}
\begin{frame}[t]
\begin{dingli}[绝对值的代数定义]

$$ |x|=\begin{cases} x,x>0\\ 0,x=0\\ -x ,x<0 \end{cases} $$
\end{dingli}
\pause
\begin{dingli}[绝对值的几何意义]

$|x-a|: $ 数轴上 $ x $ 到 $ a $ 的 {\color{red} 距离}

\end{dingli}
\end{frame}


\section{例题精析} % (fold)
\subsection{绝对值对函数图像的影响}
% section 常见问题 (end)


\begin{frame}
\begin{liti}[绝对值对函数图像的影响]

作函数 $ y=|\lg |x|| $ 的图像.


\end{liti}
\begin{block}{小总结}
(1) 让函数 $ y=f(x) $ 的图像在 $ x $ 轴上方的部分不变,下方的部分翻转到 $ x $ 轴上方,得到 $ y=|f(x)| $ 的图像.

(2) 让函数 $ y=f(x) $ 的图像在 $ y $ 轴右方的部分不变,左方的部分改由右方的图像沿 $ y $ 轴翻转得出,得到 $ y=f(|x|) $ 的图像.
\end{block}
\end{frame}


\begin{frame}
\begin{liti}[绝对值函数与数形结合]

已知 $ 0 ,试确定关于 $ x $ 的方程 $ |1-x^2|=kx+k $ 的解得个数. \end{liti} \end{frame}\begin{frame}\begin{liti}[绝对值函数与 $ \max $ 函数相结合]
规定 $ \max\{a,b\} $ 表示取 $ a、b $ 中较大者,求函数 $ f(x)=\max\{|x+1|,|x^2-5|\} $ 的最小值 \end{liti} \end{frame}\subsection{绝对值与分类讨论思想}\begin{frame}\begin{liti}[绝对值与分类讨论]
求下列函数的最小值 $ a_1\leq a_2 \leq a_3 \leq a_4 $
(1) $ f(x)=|x-a_1|+|x-a_2| $
(2) $ f(x)=|x-a_1|+|x-a_2|+|x-a_3| $
(3) $ f(x)=|x-a_1|+|x-a_2|+|x-a_3|+|x-a_4| $ \end{liti}\begin{block}{小总结}
现在你会求函数 $ f(x)=k_1|x-a_1|+k_2|x-a_2|+\cdots +k_n |x-a_n| $ 的最小值吗?\end{block}\end{frame}\begin{frame}\begin{liti}[绝对值与分类讨论]
设 $ a $ 为实数, 函数 $ f(x)=x^2+|x-a|+1 ,x\in \mathbf{R} $
(1) 讨论 $ f(x) $ 的奇偶性;
(2) 求 $ f(x) $ 的最小值. \end{liti} \end{frame}\begin{frame}\begin{liti}[绝对值不等式的等价转化]
设不等式 $ |2^x-a| 对所有 $ x\in [1,2] $ 成立,求实数 $ a $ 的取值范围. \end{liti} \end{frame}\subsection{绝对值经典难题}\begin{frame}\begin{liti}[思考:绝对值有关的“最大值的最小值”]
设不等式 $ f(x)=| x^2+px+q|,p,q \in \mathbf{R} $ 若 $ |f(x)| $ 在 $ -1\leq x \leq 1 $ 时的最大值为 $ M $ , 求 $ M $ 的最小值 . \end{liti}\end{frame}\end{document}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值