网页资讯视频图片知道文库贴吧地图采购
进入贴吧全吧搜索

 
 
 
日一二三四五六
       
       
       
       
       
       

签到排名:今日本吧第个签到,

本吧因你更精彩,明天继续来努力!

本吧签到人数:0

一键签到
成为超级会员,使用一键签到
一键签到
本月漏签0次!
0
成为超级会员,赠送8张补签卡
如何使用?
点击日历上漏签日期,即可进行补签。
连续签到:天  累计签到:天
0
超级会员单次开通12个月以上,赠送连续签到卡3张
使用连续签到卡
08月04日漏签0天
latex吧 关注:13,770贴子:26,061
  • 看贴

  • 图片

  • 吧主推荐

  • 游戏

  • 1 2 下一页 尾页
  • 16回复贴,共2页
  • ,跳到 页  
<<返回latex吧
>0< 加载中...

tikz与tcolorbox的使用案例

  • 取消只看楼主
  • 收藏

  • 回复
  • 向老师讲数学
  • 万
    11
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
本贴不定期发布关于tikz和tcolorbox包的一些使用案例,有需要的自取,不解答任何latex问题,欢迎访问我的博客yuxtech.github.io


  • 向老师讲数学
  • 万
    11
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
首先是昨天设计的母亲节贺卡

\documentclass[border=2pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{calligra}
\usepackage{pgfornament}
\usetikzlibrary{calc}
\begin{document}
\centering
\begin{tikzpicture}[
every node/.style ={inner sep=0pt},
pgfornamentstyle/.style={color=green!50!black,fill=green!80!black}]
\node[text width=8cm,outer sep=1.2cm,text centered,color=red!90! black](Greeting)
{\calligra \Huge Happy Mother's Day,\\ Dear Mom!\\
\pgfornament[color=red!90!black,width=4cm]{72}};
\foreach \corner/\sym in {north west/none, north east/v, south west/h, south east/c}{
\node[anchor=\corner](\corner)
at(Greeting.\corner)
{\pgfornament[width=2cm,symmetry=\sym]{63}};}
\path(north west)--(south west)
node[midway, anchor=east]
{\pgfornament[height=2cm]{9}}
(north east)--(south east)
node[midway,anchor=west]
{\pgfornament[height=2cm, symmetry=v]{9}};
\pgfornamenthline{north west}{north east}{north}{87}
\pgfornamenthline{south west}{south east}{south}{87}
\end{tikzpicture}
\end{document}


2025-08-04 10:17:24
广告
不感兴趣
开通SVIP免广告
  • 向老师讲数学
  • 万
    11
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
mindmap库绘制思维导图
\documentclass[tikz,border=2pt]{standalone}
\usetikzlibrary{mindmap}
\usepackage{metalogo}
\begin{document}
\begin{tikzpicture}
\path [
mindmap,
text = white,
level 1 concept/.append style =
{font=\Large\bfseries, sibling angle=90},
level 2 concept/.append style =
{font=\normalsize\bfseries},
level 3 concept/.append style =
{font=\small\bfseries},
tex/.style = {concept, ball color=blue,
font=\Huge\bfseries},
engines/.style = {concept, ball color=green!50!black},
formats/.style = {concept, ball color=blue!50!black},
systems/.style = {concept, ball color=red!90!black},
editors/.style = {concept, ball color=orange!90!black}
]
node [tex] {\TeX} [clockwise from=0]
child[concept color=green!50!black, nodes={engines}] {
node {Engines} [clockwise from=90]
child { node {\TeX} }
child { node {pdf\TeX} }
child { node {\XeTeX} }
child { node {Lua\TeX} }}
child [concept color=blue, nodes={formats}] {
node {Formats} [clockwise from=300]
child { node {\LaTeX} }
child { node {Con\TeX t} }}
child [concept color=red, nodes={systems}] {
node {Systems} [clockwise from=210]
child { node {\TeX Live} [clockwise from=300]
child { node {Mac \TeX} }}
child { node {MiK\TeX} [clockwise from=60]
child { node {Pro \TeX t} }}}
child [concept color=orange, nodes={editors}] {
node {Editors} };
\end{tikzpicture}
\end{document}


  • 向老师讲数学
  • 万
    11
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
从tikz包里面抠出来的图,适当修改可以设计成封面

\documentclass{book}
\usepackage[left=-0.52cm,right=0cm,top=0cm,bottom=0cm]{geometry}
\usepackage{tikz}
\usetikzlibrary{mindmap,shadows,calendar,backgrounds}
\begin{document}
\def\lecture#1#2#3#4#5#6{
\node [annotation, #3, scale=0.65, text width=4cm, inner sep=2mm] at (#4) {
Lecture #1: \textcolor{orange}{\textbf{#2}}
\list{--}{\topsep=2pt\itemsep=0pt\parsep=0pt
\parskip=0pt\labelwidth=8pt\leftmargin=8pt
\itemindent=0pt\labelsep=2pt}
#5
\endlist
};
}
\begin{tikzpicture}
\begin{scope}[
mindmap,
every node/.style={concept, circular drop shadow,execute at begin node=\hskip0pt},
root concept/.append style={
concept color=black,
fill=white, line width=1ex,
text=black, font=\large\scshape},
text=white,
computational problems/.style={concept color=red,faded/.style={concept color=red!50}},
computational models/.style={concept color=blue,faded/.style={concept color=blue!50}},
measuring complexity/.style={concept color=orange,faded/.style={concept color=orange!50}},
solving problems/.style={concept color=green!50!black,faded/.style={concept color=green!50!black!50}},
grow cyclic,
level 1/.append style={level distance=4.5cm,sibling angle=90,font=\scshape},
level 2/.append style={level distance=3cm,sibling angle=45,font=\scriptsize}]
\node [root concept] (Computational Complexity) {Computational Complexity} % root
child [computational problems] { node [yshift=-1cm] (Computational Problems) {Computational Problems}
child { node (Problem Measures) {Problem Measures} }
child { node (Problem Aspects) {Problem Aspects} }
child [faded] { node (problem Domains) {Problem Domains} }
child { node (Key Problems) {Key Problems} }
}
child [computational models] { node [yshift=-1cm] (Computational Models) {Computational Models}
child { node (Turing Machines) {Turing Machines} }
child [faded] { node (Random-Access Machines) {Random-Access Machines} }
child { node (Circuits) {Circuits} }
child [faded] { node (Binary Decision Diagrams) {Binary Decision Diagrams} }
child { node (Oracle Machines) {Oracle Machines} }
child { node (Programming in Logic) {Programming in Logic} }
}
child [measuring complexity] { node [yshift=1cm] (Measuring Complexity) {Measuring Complexity}
child { node (Complexity Measures) {Complexity Measures} }
child { node (Classifying Complexity) {Classifying Complexity} }
child { node (Comparing Complexity) {Comparing Complexity} }
child [faded] { node (Describing Complexity) {Describing Complexity} }
}
child [solving problems] { node [yshift=1cm] (Solving Problems) {Solving Problems}
child { node (Exact Algorithms) {Exact Algorithms} }
child { node (Randomization) {Randomization} }
child { node (Fixed-Parameter Algorithms) {Fixed-Parameter Algorithms} }
child { node (Parallel Computation) {Parallel Computation} }
child { node (Partial Solutions) {Partial Solutions} }
child { node (Approximation) {Approximation} }
};
\end{scope}
\tiny
\calendar [day list downward,
month text=\%mt\ \%y0,
month yshift=3.5em,
name=cal,
at={(-.5\textwidth-5mm,.5\textheight-1cm)},
dates=2009-04-01 to 2009-06-last]
if (weekend)
[black!25]
if (day of month=1) {
\node at (0pt,1.5em) [anchor=base west] {\small\tikzmonthtext};
};
\lecture{1}{Computational Problems}{above,xshift=-5mm,yshift=5mm}{Computational Problems.north}{
\item Knowledge of several key problems
\item Knowledge of problem encodings
\item Being able to formalize problems
}{2009-04-08}
\lecture{2}{Computational Models}{above left}
{Computational Models.west}{
\item Knowledge of Turing machines
\item Being able to compare the computational power of different
models
}{2009-04-15}
\begin{pgfonlayer}{background}
\clip[xshift=-1cm] (-.5\textwidth,-.5\textheight) rectangle ++(\textwidth,\textheight);
\colorlet{upperleft}{green!50!black!25}
\colorlet{upperright}{orange!25}
\colorlet{lowerleft}{red!25}
\colorlet{lowerright}{blue!25}
% The large rectangles:
\fill [upperleft] (Computational Complexity) rectangle ++(-20,20);
\fill [upperright] (Computational Complexity) rectangle ++(20,20);
\fill [lowerleft] (Computational Complexity) rectangle ++(-20,-20);
\fill [lowerright] (Computational Complexity) rectangle ++(20,-20);
% The shadings:
\shade [left color=upperleft,right color=upperright]
([xshift=-1cm]Computational Complexity) rectangle ++(2,20);
\shade [left color=lowerleft,right color=lowerright]
([xshift=-1cm]Computational Complexity) rectangle ++(2,-20);
\shade [top color=upperleft,bottom color=lowerleft]
([yshift=-1cm]Computational Complexity) rectangle ++(-20,2);
\shade [top color=upperright,bottom color=lowerright]
([yshift=-1cm]Computational Complexity) rectangle ++(20,2);
\end{pgfonlayer}
\end{tikzpicture}
\end{document}


  • 向老师讲数学
  • 万
    11
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
绘制流程图
\documentclass[border=2pt,tikz]{standalone}
\usepackage{ctex,amsmath}
\usetikzlibrary{positioning,shapes.geometric,calc}
\begin{document}
\tikzset{
every picture/.style={
>=latex,
node distance=5mm and 5mm
}}
%定义框形状
\tikzstyle{SS} %开始结束
=[rounded corners, draw]
\tikzstyle{IO} %输入输出
=[trapezium, trapezium left angle=70, trapezium right angle=110, draw]
\tikzstyle{NR} %内容
=[draw]
\tikzstyle{PD} %判断
=[diamond, aspect=4, draw, inner sep=1.5pt]
\begin{tikzpicture}[->]
\node[draw,rounded corners,minimum width=1.3cm,minimum height=0.6cm](start){开始};
\node[IO, below=of start](in){输入$x$, $t$};
\node[NR, below=of in](n1){$M=1$, $S=3$, $k=1$};
\node[PD, below=of n1](pd){$k\le t$};
\node[NR, on grid, below left=1cm and 2cm of pd](n3){$M=\dfrac Mkx$};
\node[IO, on grid, below right=1cm and 2cm of pd](out){输出$S$};
\node[NR, below=of n3](n4){$S=M+S$};
\node[NR, below=of n4](n5){$k=k+1$};
\node[SS, below=of out](stop){结束};
\path (start) edge (in)
(in) edge (n1)
(n1) edge (pd)
(n3) edge (n4)
(n4) edge (n5)
(out) edge (stop);
\draw (pd) -| node[left]{是} (n3);
\draw (pd) -| node[right]{否} (out);
\draw (n5.west)--++(-0.5,0) |- ($(n1.south)!0.5!(pd.north)$);
\end{tikzpicture}
\end{document}


  • 向老师讲数学
  • 万
    11
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
用tikz的矩阵绘制流程图
\documentclass[border=2pt,tikz]{standalone}
\usetikzlibrary{shapes.geometric}
\begin{document}
\begin{tikzpicture}[scale=0.4,auto,decision/.style={diamond,draw=blue,thick,fill=blue!20,
text width=4.5em,align=flush center,inner sep=1pt},
block/.style={rectangle,draw=blue,thick,fill=blue!20,
text width=5em,align=center,rounded corners,minimum height=4em},
line/.style={draw,thick,-stealth,shorten >=2pt},
cloud/.style={draw=red,thick,ellipse,fill=red!20,minimum height=2em}]
\matrix[column sep=4mm,row sep=7mm]
{\node[cloud](expert){expert};&
\node[block](init){initialize model};&
\node[cloud](system){system};\\
&\node[block](identify){identify candidate model};&\\
\node[block](update){update model};&
\node[block](evaluate){evaluate candidate models};&\\
&\node[decision](decide){is best candidate};&\\
&\node[block](stop){stop};&\\
};
\begin{scope}[every path/.style=line]
\path (init)--(identify);
\path (identify)--(evaluate);
\path (evaluate)--(decide);
\path (update)|-(identify);
\path (decide)-|node[near start]{yes}(update);
\path (decide)--(stop);
\path[dashed] (expert)--(init);
\path[dashed] (system)--(init);
\path[dashed] (system)|-(evaluate);
\end{scope}
\end{tikzpicture}
\end{document}


  • 向老师讲数学
  • 万
    11
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
tcolorbox定制的青蛙盒子
\documentclass{article}
\usepackage[a4paper,left=3cm,right=3cm]{geometry}
\usepackage[most]{tcolorbox}
\usepackage{amsmath,amssymb}
\begin{document}
{\tcbset{frogbox/.style={enhanced,colback=green!10,colframe=green!65!black,
enlarge top by=5.5mm,
overlay={\foreach \x in {2cm,3.5cm}{
\begin{scope}[shift={([xshift=\x]frame.north west)}]
\path[draw=green!65!black,fill=green!10,line width=1mm] (0,0) arc (0:180:5mm);
\path[fill=black] (-0.2,0) arc (0:180:1mm);
\end{scope}}}}}
\begin{tcolorbox}[frogbox,title=My title,bicolor,sidebyside,righthand width=2.8cm,
sharp corners,boxrule=0.4pt,colback=green!5,colbacklower=green!50!black!50]
\begin{align*}
\frac{x^4}{\left( y-1 \right) ^2}+\frac{y^4}{\left( z-1 \right) ^2}+\frac{z^4}{\left( x-1 \right) ^2}&\geqslant \frac{1}{3}\left( \frac{x^2}{y-1}+\frac{y^2}{z-1}+\frac{z^2}{x-1} \right) ^2\\
&\geqslant \frac{1}{3}\left( \frac{\left( x+y+z \right) ^2}{x+y+z-3} \right) ^2\\
&=\frac{1}{3}\left( \frac{\left( t+3 \right) ^2}{t} \right) ^2=\frac{1}{3}\left( t+\frac{9}{t}+6 \right) ^2\\
&\geqslant \frac{1}{3}\left( 6+6 \right) ^2=48
\end{align*}
\tcblower
This is a \textbf{tcolorbox}
\end{tcolorbox}}
\end{document}


  • 向老师讲数学
  • 万
    11
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
带有花样悬挂标题的tcolorbox

\documentclass[UTF8]{ctexbook}
\usepackage[most]{tcolorbox}
\usepackage{varwidth}
\begin{document}
\newtcolorbox{MYBOX}[2][]{breakable,enhanced,skin=enhancedlast jigsaw,before skip=2mm,
after skip=2mm,colback=black!5,colframe=black!50,boxrule=0.2mm,
attach boxed title to top left={xshift=3mm,yshift*=1mm-\tcboxedtitleheight},
varwidth boxed title*=-3cm,
boxed title style={frame code={
\path[fill=tcbcolback!30!black]
([yshift=-1mm,xshift=-1mm]frame.north west)
arc[start angle=0,end angle=180,radius=1mm]
([yshift=-1mm,xshift=1mm]frame.north east)
arc[start angle =180,end angle=0,radius=1mm];
\path[left color=tcbcolback!60!black,right color=tcbcolback!60!black,
middle color=tcbcolback!80!black]
([xshift=-2mm]frame.north west) -- ([xshift=2mm]frame.north east)
[rounded corners=1mm]-- ([xshift=1mm,yshift=-1mm]frame.north east)
-- (frame.south east) -- (frame.south west)
-- ([xshift=-1mm,yshift=-1mm]frame.north west)
[sharp corners]-- cycle;
},interior engine=empty,
},
fonttitle=\bfseries,
title={#2},#1}
\begin{MYBOX}[colbacktitle=red]{牛顿莱布尼茨公式}
\[\int_a^bf(x)\,\mathrm dx=F(b)-F(a)\]
\end{MYBOX}
\end{document}


2025-08-04 10:11:24
广告
不感兴趣
开通SVIP免广告
  • 向老师讲数学
  • 万
    11
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
循环句法,calc库绘制垂线
\documentclass[tikz,border=2pt]{standalone}
\usepackage{mathabx}
\usetikzlibrary{arrows,calc,arrows.meta}
\begin{document}
\begin{tikzpicture}[>=Stealth]
\draw(0,0)grid(12,7);\node[above left]at(4,2){$O$};
\draw[->](0,0)--(12,0)node[below]{$x$};\draw[->](0,0)--(0,7)node[left]{$y$};
\draw[->](0.673,0)coordinate(A)--(12,7)coordinate(B)node[right]{$\xi$};
\foreach \x in{2,...,11}\node at(\x,{0.618*\x-0.416}){$\blacktriangleup$};
\foreach \x/\y in {2/0,3/1,5/2,6/3,7/3,8/4,9/5,10/5,11/6}
{\draw(\x,\y)coordinate(\x+\y)--($(A)!(\x,\y)!(B)$)coordinate(\x-\y);
\fill(\x-\y)circle(1pt);\filldraw[fill=white](\x+\y)circle(1pt);}
\draw(1.2,0)arc(0:33:0.527)(1.6,-0.5)node[right]{$\theta$}--(1.2,0.15);
\end{tikzpicture}
\end{document}


  • 向老师讲数学
  • 万
    11
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
用tikz绘制中文数学符号,相似,全等,平行,以及定义弧

\documentclass{article}
\usepackage{amsmath,tikz}
%平行
\newcommand\pxx{%
\mathrel{\text{\tikz[baseline] \draw (0em,-0.3ex) -- (.4em,1.7ex) (.2em,-0.3ex) -- (.6em,1.7ex);}%
}}
%平行且等于
\newcommand*\pxqdy{%
\mathrel{\hspace{.03555em}\text{\tikz[baseline]
\draw (.1em,0ex) -- (.9em,0ex)
(.1em,-.25ex) -- (.9em,-.25ex)
(.375em,.1ex) -- (.675em,1.5ex)
(.525em,.1ex) -- (.825em,1.5ex);}\hspace{.03555em}%
}}
%新的平行且等于
\newcommand*\pxdy{%
\mathrel{\hspace{.03555em}\text{\tikz[baseline]
\draw (.1em,0ex) -- (.9em,0ex)
(.1em,.3ex) -- (.9em,.3ex)
(.375em,.4ex) -- (.675em,1.8ex)
(.55em,.4ex) -- (.85em,1.8ex);}\hspace{.03555em}}%
}
%相似
\newcommand*\xiangs{%
\mathrel{\text{%
\tikz \draw[baseline] (-.25em,1.15ex) .. controls (-.55em,1.15ex) and (-.51em,.23ex) .. (-.275em,.23ex) .. controls (0,.23ex) and (0,1.15ex) .. (.275em,1.15ex) .. controls (.51em,1.15ex) and (.55em,.23ex) .. (.25em,.23ex);%
}}}
%全等
\newcommand*\quand{%
\mathrel{\text{%\small%
\tikz \draw[baseline] (-.2em,1.35ex) .. controls (-.46em,1.6ex) and (-.54em,.65ex) .. (-.25em,.65ex) .. controls (-.06em,.65ex) and (.06em,1.35ex) .. (.25em,1.35ex) .. controls (.54em,1.35ex) and (.46em,.4ex) .. (.2em,.65ex) (-.46em,.4ex) -- (.46em,.4ex) (-.46em,0ex) -- (.46em,0ex);%
}}}
%中文真子集
\newcommand*\zhziji{%
\mathrel{\text{\tikz
\draw[baseline] (.6636em,1.57ex) -- (.192em,1.57ex) arc (90:270:0.4022ex) -- (.6636em,.7674ex) (0,.2558ex) -- (.6636em,.2558ex) (0,.5116ex) -- (.6636em,.5116ex) (.2323em,0ex) -- (.4313em,.7674ex);%
}}%
}
%中文子集
\newcommand*\ziji{%
\mathrel{\text{\raisebox{.15ex}{\tikz
\draw[baseline] (.6636em,1.57ex) -- (.20235em,1.57ex) arc (90:270:0.4797ex) -- (.6636em,.61ex) (0,.305ex) -- (.6636em,.305ex);%
}}}%
}
%中文反向子集
\newcommand*\zijif{%
\mathrel{\text{\raisebox{.15ex}{\tikz
\draw[baseline] (-.6636em,1.57ex) -- (-.20235em,1.57ex) arc (90:-90:0.4797ex) -- (-.6636em,.61ex) (-.6636em,.305ex) -- (0,.305ex);%
}}}%
}
%中文反向真子集
\newcommand*\zhzijif{%
\mathrel{\text{\tikz
\draw[baseline] (-.6636em,1.57ex) -- (-.192em,1.57ex) arc (90:-90:0.4022ex) -- (-.6636em,.7674ex) (0,.2558ex) -- (-.6636em,.2558ex) (0,.5116ex) -- (-.6636em,.5116ex) (-.4313em,0ex) -- (-.2323em,.7674ex);%
}}%
}
%平行四边形
\newcommand*\pxsbx{%
\mathord{\text{%
\tikz[baseline]
\draw (0,.1ex) -- (.8em,.1ex) -- (1em,1.4ex) -- (.2em,1.4ex) -- cycle;}}}
%定义弧
\DeclareSymbolFont{ugmL}{OMX}{mdugm}{m}{n}
\DeclareMathAccent{\wideparen}{\mathord}{ugmL}{"F3}
\begin{document}
$A\pxsbx B\pxx C\pxqdy D\pxdy E\xiangs F\quand G\wideparen{ABCD}$
\end{document}


  • 向老师讲数学
  • 万
    11
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
柱状图
\begin{tikzpicture}[y=0.03cm,z=3mm]
\foreach \y in {0,20,40,60,80,100}
\draw[dashed] (0,\y,0) node[left] {\y} -- (0,\y,1) -- (6,\y,1);
\draw (0,0,0) -- (0,100,0) (0,0,1) -- (0,100,1);
\draw (0,0,0) -- (6,0,0);
\foreach \x/\xtext/\height in {1/very good/10,2/good/30,3/ok/33,4/bad/27,5/very bad/0}
{
\draw (\x,0) node[rotate=90,anchor=east] {\xtext};
\begin{scope}[xshift=\x cm]
\filldraw[fill=blue!50] (-.3,0,0) rectangle (.3,\height,0);
\filldraw[fill=blue!30] (.3,0,0) -- (.3,0,1) -- (.3,\height,1) -- (.3,\height,0) --cycle;
\filldraw[fill=blue!20] (-.3,\height,0) -- (.3,\height,0) --
(.3,\height,1) -- (-.3,\height,1) --cycle;
\end{scope}
}
\end{tikzpicture}


  • 向老师讲数学
  • 万
    11
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
扇形图
\begin{tikzpicture}
\colorlet{good}{green!75!black}
\colorlet{bad}{red}
\colorlet{neutral}{black!60}
\colorlet{none}{white}
\node[align=center,text width=3cm]{Ratings given by 50~participants};
\begin{scope}[line width=4mm,rotate=270]
\draw[good] (-123:2cm) arc (-123:-101:2cm);
\draw[good!60!white] (-36:2cm) arc (-36:-101:2cm);
\draw[neutral] (-36:2cm) arc (-36:36:2cm);
\draw[bad!60!white] (36:2cm) arc (36:93:2cm);
\newcount\mycount
\foreach \angle in {0,72,...,3599}
{
\mycount=\angle\relax
\divide\mycount by 10\relax
\draw[black!15,thick] (\the\mycount:18mm) -- (\the\mycount:22mm);
}
\draw (0:2.2cm) node[below] {``ok'': 10 (20\%)};
\draw (165:2.2cm) node[above] {none: 20 (40\%)};
\draw (-111:2.2cm) node[left] {``very good'': 3 (6\%)};
\draw (-68:2.2cm) node[left] {``good'': 9 (18\%)};
\draw (65:2.2cm) node[right] {``bad'': 8 (16\%)};
\draw (93:2.2cm) node[right] {``very bad'': 0 (0\%)};
\end{scope}
\draw[gray] (0,0) circle (2.2cm) circle (1.8cm);
\end{tikzpicture}


  • 向老师讲数学
  • 万
    11
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
带渐变色的斜二扇形图

\begin{tikzpicture}
\begin{scope}[xscale=3.2,yscale=1.2]
\sffamily
\coordinate (right border) at (2.0cm,-1.7cm);
\coordinate (left border) at (-2.5cm,2.1cm);
\fill[black!25] ([xshift=-2mm,yshift=1.1cm]left border) rectangle ([xshift=2mm,yshift=-.3cm]right border);
\node[below right,text width=10cm,inner sep=0pt] at ([yshift=.9cm,xshift=-1mm]left border)
{ {\color{black!75} \Large Kohle ist am wichtigsten}\\
Energiemix bei der deutschen Stromerzeugung 2004};
\filldraw[draw=gray,fill=white] ([xshift=-1mm]left border) node[below right,black]
{\footnotesize Gesamte Netto-Stromerzeugung in Prozent, in
Milliarden Kilowattstunden (Mrd.\ kWh)}
rectangle ([xshift=1mm]right border);
% The 3D stuff
\pgfdeclarehorizontalshading{zeit}{100bp}
{color(0pt)=(black);
color(25bp)=(black);
color(37bp)=(white);
color(50bp)=(black);
color(62bp)=(white);
color(75bp)=(black);
color(100bp)=(black)}
\shadedraw[very thin,shading=zeit,yshift=-1.5mm] (0,0) circle (1cm);
\fill[green!20!gray] (0,0) -- (90:1cm) arc (90:-5:1cm);
\fill[white!20!gray] (0,0) -- (-5:1cm) arc (-5:-105:1cm);
\fill[orange!20!gray] (0,0) -- (-105:1cm) arc (-105:-180:1cm);
\fill[orange!60!white] (0,0) -- (180:1cm) arc (180:150:1cm);
\fill[black!75!white] (0,0) -- (150:1cm) arc (150:145:1cm);
\fill[blue!90!white] (0,0) -- (145:1cm) arc (145:135:1cm);
\fill[blue!50!white] (0,0) -- (135:1cm) arc (135:92:1cm);
\fill[yellow!50!black] (0,0) -- (92:1cm) arc (92:90:1cm);
\begin{scope}[very thin]
\draw (0,0) -- (90:1cm);
\draw (0,0) -- (-5:1cm);
\draw (0,0) -- (-105:1cm);
\draw (0,0) -- (-180:1cm);
\draw (0,0) -- (150:1cm);
\draw (0,0) -- (145:1cm);
\draw (0,0) -- (135:1cm);
\draw (0,0) -- (92:1cm);
\draw(0,0) circle (1cm);
\end{scope}
\node (Regenerative) at (115:.75cm) {\bfseries 9,4\%};
\node (Kernenergie) at (30:.5cm) {\bfseries 27,8\%};
\node (Braunkohle) at (-45:.6cm) {\bfseries 25,6\%};
\node (Steinkohle) at (-135:.6cm) {\bfseries 22,3\%};
\node (Erdgas) at (168:.75cm) {\bfseries 10,4\%};
\coordinate (Mineral) at (147:.9cm);
\coordinate (Sonstige) at (140:.9cm);
\small
\draw (Regenerative.north) |- ([yshift=.25cm]Regenerative.north -| right border) coordinate (Regenerative label);
\draw (91:.9cm) |- (Regenerative label);
\node[above left] at (Regenerative label) {Regenerative\
{\footnotesize (53,7 kWh)/davon} Wind \textbf{4,4\%} \footnotesize (25,0 kWh)};
\draw (Kernenergie.base east) -- (Kernenergie.base east -| right border) coordinate (Kernenergie label);
\node[above left] at (Kernenergie label) {Kernenergie};
\node[below left] at (Kernenergie label) {\footnotesize (158,4 kWh)};
\draw (Braunkohle.south) |- ([yshift=-.75cm]Braunkohle.south -| right border) coordinate (Braunkohle label);
\node[above left] at (Braunkohle label) {Braunkohle\ \ \footnotesize (146,0 kWh)};
\draw (Steinkohle.south) |- ([yshift=-.75cm]Steinkohle.south -| left border) coordinate (Steinkohle label);
\node[above right] at (Steinkohle label) {Steinkohle\ \ \footnotesize (127,1 kWh)};
\draw (Erdgas.base west) -- (Erdgas.base west -| left border) coordinate (Erdgas label);
\node[above right] at (Erdgas label) {Erdgas\ \ \footnotesize (59,2 kWh)};
\draw (Mineral) -- (Mineral -| left border) coordinate (Mineral label);
\node[above right] at (Mineral label) {Mineral\"olprodukte\ \
\footnotesize (9,2 kWh) \ \ \normalsize\textbf{1,6\%}};
\draw (Sonstige) |- (Regenerative label -| left border) coordinate (Sonstige label);
\node[above right] at (Sonstige label) {Sonstige\ \
\footnotesize (16,5 kWh) \hskip1.5cm\
\normalsize\textbf{2,9\%}};
\end{scope}
\end{tikzpicture}


  • 向老师讲数学
  • 万
    11
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
tikz手册封面

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{%
decorations.fractals%
,decorations.pathmorphing%
,shadows%
}
\begin{document}
\parindent0pt
\null
\colorlet{mintgreen}{green!50!black!50}
\thispagestyle{empty}
\vskip3cm
\vfill
\hfil
\begin{tikzpicture}[overlay]
\coordinate (front) at (0,0);
\coordinate (horizon) at (0,.31\paperheight);
\coordinate (bottom) at (0,-.6\paperheight);
\coordinate (sky) at (0,.57\paperheight);
\coordinate (left) at (-.51\paperwidth,0);
\coordinate (right) at (.51\paperwidth,0);
\shade [bottom color=blue!30!black!10,top color=blue!30!black!50]
([yshift=-5mm]horizon -| left) rectangle (sky -| right);
\shade [bottom color=black!70!green!25,top color=black!70!green!10]
(front -| left) -- (horizon -| left)
decorate [decoration=random steps] { -- (horizon -| right) }
-- (front -| right) -- cycle;
\shade [top color=black!70!green!25,bottom color=black!25]
(front -| left) -- (horizon -| left)
decorate [decoration=random steps] { -- (horizon -| right) }
-- (front -| right) -- cycle;
\shade [top color=black!70!green!25,bottom color=black!25]
([yshift=-5mm-1pt]front -| left) rectangle ([yshift=1pt]front -| right);
\fill [black!25] (bottom -| left) rectangle ([yshift=-5mm]front -| right);
\def\nodeshadowed[#1]#2;{\node[scale=2,above,#1]{#2};\node[scale=2,
above,#1,yscale=-1,scope fading=south,opacity=0.4]{#2};}
\nodeshadowed [at={(-5,5 )},yslant=0.05]
{\Huge Ti\textcolor{orange}{\emph{k}}Z};
\nodeshadowed [at={( 0,5.3)}] {\huge \textcolor{mintgreen}{\&}};
\nodeshadowed [at={( 5,5 )},yslant=-0.05] {\Huge \textsc{PGF}};
\nodeshadowed [at={( 0,2 )}] {Manual for Version \pgftypesetversion};
\foreach \i in {0.5,0.6,...,2}
\fill [white,decoration=Koch snowflake,opacity=.9]
[shift=(horizon),shift={(rand*11,rnd*7)},scale=\i]
[double copy shadow={opacity=0.2,shadow xshift=0pt,shadow
yshift=3*\i pt,fill=white,draw=none}]
decorate {
decorate {
decorate {
(0,0) -- ++(60:1) -- ++(-60:1) -- cycle
}
}
};
\end{tikzpicture}
\vfill
\end{document}


2025-08-04 10:05:24
广告
不感兴趣
开通SVIP免广告
  • 向老师讲数学
  • 万
    11
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
我设计的的IMC合集封面,大家可以适当修改设计成其他的封面,其中有两个字体需要下载
\documentclass[tikz]{standalone}
\usetikzlibrary{shadings,3d,positioning,patterns,mindmap,fadings}
\usepackage{ctex,amsmath,fontspec}
\definecolor{tou}{RGB}{94,125,89}
\definecolor{author}{RGB}{225,244,225}
\definecolor{title}{RGB}{255,253,127}
\definecolor{left}{RGB}{148,176,107}
\definecolor{body}{RGB}{144,192,108}
\definecolor{body1}{RGB}{90,182,90}
\definecolor{topbot}{RGB}{60,92,76}
\newcommand{\yp}[1]{{\CJKfontspec{印品赤壁赋体}#1}}
\newcommand{\fz}[1]{{\CJKfontspec{方正黑体简体}#1}}
\setmainfont{Times New Roman}
\everymath{\displaystyle}
\newcommand{\ii}{\,\!\mathrm i\,\!}
\usepackage[hidelinks]{hyperref}
\begin{document}
\begin{tikzpicture}
\node[minimum width=17.7cm,minimum height=25cm,inner sep=0pt,outer sep=0pt,](box){};
\fill[body,top color=body1,bottom color=body](box.north west)--(box.north east)--(box.south east)--(box.south west)--cycle;
\draw[help lines,step=0.8cm,opacity=0.4](-8.85,-12.5)grid(8.85,12.5);
\node[align=center,text=author] at (box.center)
{\zihao{-2}\fz{向禹} \tikz{\draw(0.25,0.25)circle(0.25);\draw(0.25,0.25)circle(0.2);} \fz{译}
};
\fill[tou](-8.85,6.5)[bend left=25]to(8.85,10.8)--(box.north east)--(box.north west)--cycle;
\fill[left color=left,right color=tou](-8.85,6.5)[bend left=24]to(8.85,10.6)
--(8.85,9.6)[bend right=23]to(-8.85,6.5);
\node[text=title,align=center,scale=3]at(0,4){\fz{1994-2018年国际大学生}\\[-0.2cm]\fz{数学竞赛}};
\node[text=orange!20,align=center,scale=1.5]at(0,2){\fz{International Mathematics Competition}\\[-0.2cm]\fz{for University Students (1994-2018)}};
\node[opacity=0.5,draw,rounded corners] at(-2,7.8){$\int_a^bf(x)\,\mathrm dx=F(b)-F(a)$};
\node[opacity=0.5] at(5.4,7.8){\tikz{\draw[-stealth](-0.3,0)--(0,0)node[below left]{$O$}--(3.6,0)node[below=2pt]{$x$};
\draw[-stealth](0,-0.42)--(0,2)node[left]{$y$};
\draw(0,1.3)node[left]{$A$}..controls(1.4,0.6)and(2.2,2.4)..(2.8,1.7)node[right]{$B$}
--(2.8,0)node[below]{$C$};\node at(0.65,1.4){$f(x)$};}};
\node[opacity=0.6] at(-3.5,-3.5)
{
\scalebox{0.5}{\begin{tikzpicture}
\path [
mindmap,
text = white,
level 1 concept/.append style =
{font=\Large\bfseries, sibling angle=90},
level 2 concept/.append style =
{font=\normalsize\bfseries},
level 3 concept/.append style =
{font=\small\bfseries},
tex/.style = {concept, ball color=white,
font=\Huge\bfseries},
分析/.style = {concept, ball color=purple!90!black},
formats/.style = {concept, ball color=blue!50!black},
systems/.style = {concept, ball color=red!90!black},
editors/.style = {concept, ball color=orange!90!black}
]
node [tex,text=blue!80] {\scalebox{1.4}{IMC}} [clockwise from=0]
child[concept color=green!50!black, nodes={分析}] {
node {分析} [clockwise from=90]
child { node {数学分析} }
child { node {实分析} }
child { node {复分析} }
child { node {泛函分析} }
}
child [concept color=red, nodes={systems}] {
node {图论组合}}
child [concept color=blue, nodes={formats}] {
node {代数} [clockwise from=240]
child { node {线性代数} }
child { node {抽象代数} }
child { node {初等数论} }}
child [concept color=orange, nodes={editors}] {
node {概率论} };
\end{tikzpicture}}
};
\node[opacity=0.4]at(5.5,-2){
\begin{tikzpicture}[scale=10]
\begin{scope}
\clip (0,0) arc (-90:0:1/8) arc (90:180:1/8);
\fill[pattern=horizontal lines]
(0,0) arc (-90:0:1/8) --(1/16,1/16) arc (90:0:1/16);
\fill[pattern=vertical lines]
(0,0) arc (180:90:1/8) --(1/16,1/16) arc (0:90:1/16);
\end{scope}\node[below left](0,0){$O$};
\draw [-stealth](-1/8,0)--(0.34,0);\draw [-stealth](0,-1/8)--(0,0.34);
\node[below]at(0.34,0){$x$};\node[left]at(0,0.34){$y$};
\draw (0,0) arc (-90:90:1/8) (0,0) arc (-90:90:1/16)
(0,0) arc (180:0:1/8) (0,0) arc (180:0:1/16) (0,0)--(1/8,1/8);
\fill[fill=body](0.085,0.085)node[inner sep=0pt]{$D$}circle(0.01);
\draw(0,1/8)circle(1/8);\draw(0,1/16)circle(1/16);
\draw(1/8,0)circle(1/8);\draw(1/16,0)circle(1/16);
\node[above left]at(0,1/4){$\tfrac12$};\node[above left]at(0,1/8){$\tfrac14$};
\end{tikzpicture}
};
\node[opacity=0.3] at(3,-6.5){$\left( \sum_{n=1}^{\infty}{a_{n}^{2}} \right) \left( \sum_{n=1}^{\infty}{b_{n}^{2}} \right) \geqslant \left( \sum_{n=1}^{\infty}{a_nb_n} \right) ^2$};
\node[opacity=0.3] at(0,-8){$f(z)=\frac1{2\pi\ii}\oint_C\frac{f(\xi)}{\xi-z}\,\mathrm d\xi$};
\fill[tou](-8.85,-10.5)--(-8.85,-12.5)--(8.85,-12.5)--(8.85,-10.5)--cycle;
\node[anchor=north,align=left,text=author]at(0,-10.7){
\begin{tikzpicture}[color=author]
\draw[very thick,rounded corners](0,0)--(0,1.3)--(1.3,1.3)--(1.3,0)--cycle;
\fill(0.65,1.08)circle(0.12);
\fill(0.15,0.93)--(0.65,0.8)--(1.15,0.93)--(1.15,0.98)--(0.65,0.85)--(0.15,0.98)--cycle;
\foreach \x in{-0.12cm,-0.16cm,-0.2cm}
\fill[yshift=\x](0.15,0.93)--(0.65,0.8)--(1.15,0.93)--(1.15,0.98)--(0.65,0.85)
--(0.15,0.98)--cycle;
\foreach \x in{-0.32cm,-0.36cm,-0.4cm,-0.44cm,-0.48cm,-0.52cm,-0.56cm,-0.6cm,-0.64cm}
\fill[yshift=\x](0.15,0.93)--(0.65,0.8)--(1.15,0.93)--(1.15,0.98)--(0.65,0.85)
--(0.15,0.98)--cycle;
\end{tikzpicture}
\parbox{4cm}{\vspace{-1.2cm}
\scalebox{1.7}{\yp{无名出版社}}\\[-2mm]
\scalebox{0.5}[1]{PUBLISHING HOUSE OF NONAME}\\[-2mm]
\href{yuxtech.github.io}{yuxtech.github.io}
}};
\end{tikzpicture}
\end{document}


登录百度账号

扫二维码下载贴吧客户端

下载贴吧APP
看高清直播、视频!
  • 贴吧页面意见反馈
  • 违规贴吧举报反馈通道
  • 贴吧违规信息处理公示
  • 1 2 下一页 尾页
  • 16回复贴,共2页
  • ,跳到 页  
<<返回latex吧
分享到:
©2025 Baidu贴吧协议|隐私政策|吧主制度|意见反馈|网络谣言警示