📄 12-7-1.tex
字号:
\pgfrect[stroke]{\pgfxy(5,1)}{\pgfxy(1,1)}
\end{pgfpictureboxed}
\vspace{2mm}
图~15
\end{center}
\vspace{2mm}
\begin{center}
\pgfdeclarehorizontalshading{colorful}{5cm}{color(0cm)=(red);
color(2cm)=(green); color(4cm)=(blue); color(6cm)=(red);
color(8cm)=(green); color(10cm)=(blue); color(12cm)=(red);
color(14cm)=(green); color(16cm)=(blue)}
\hbox{\pgfuseshading{colorful}\hskip-16cm\hskip1cm
\pgfimage[height=4cm]{pic/pgf-apple}\hskip1cm
\pgfimage[height=4cm]{pic/pgf-apple.mask}\hskip1cm
\pgfdeclaremask{mymask}{pic/pgf-apple.mask}
\pgfimage[mask=mymask,height=4cm,interpolate=true]{pic/pgf-apple}}
\vspace{2mm}
图~16
\end{center}
\vspace{2mm}
\begin{center}
\begin{pgfpicture}{0cm}{0cm}{10.5cm}{2cm}
\pgfxyline(1,1.25)(1,0)
\pgfputat{\pgfxy(1,1)}{\pgfbox[left,base]{左}}
\pgfputat{\pgfxy(1,0.5)}{\pgfbox[center,base]{中}}
\pgfputat{\pgfxy(1,0)}{\pgfbox[right,base]{右}}
\pgfxyline(3,1)(10.5,1)
\pgfputat{\pgfxy(3,1)}{\pgfbox[left,bottom]{底部对齐}}
\pgfputat{\pgfxy(5,1)}{\pgfbox[left,base]{基线对齐}}
\pgfputat{\pgfxy(7,1)}{\pgfbox[left,center]{中线对齐}}
\pgfputat{\pgfxy(9,1)}{\pgfbox[left,top]{顶部对齐}}
\end{pgfpicture}
\vspace{2mm}
图~17
\end{center}
\newcommand{\bs}{$\backslash$}
\vspace{2mm}
\begin{center}
\begin{pgfpicture}{0cm}{-0.25cm}{7.5cm}{5.5cm}
\pgfsetendarrow{\pgfarrowto}
\pgfxyline(0,0)(1,0)
\pgfputat{\pgfxy(1.5,0)}{\pgfbox[left,center]{\texttt{\bs pgfarrowto}}}
\pgfsetendarrow{\pgfarrowsingle}
\pgfxyline(0,0.5)(1,0.5)
\pgfputat{\pgfxy(1.5,0.5)}{\pgfbox[left,center]{\texttt{\bs pgfarrowsingle}}}
\pgfsetendarrow{\pgfarrowbar}
\pgfxyline(0,1.0)(1,1.0)
\pgfputat{\pgfxy(1.5,1.0)}{\pgfbox[left,center]{\texttt{\bs pgfarrowbar}}}
\pgfsetendarrow{\pgfarrowsquare}
\pgfxyline(0,1.5)(1,1.5)
\pgfputat{\pgfxy(1.5,1.5)}{\pgfbox[left,center]{\texttt{\bs pgfarrowsquare}}}
\pgfsetendarrow{\pgfarrowround}
\pgfxyline(0,2.0)(1,2.0)
\pgfputat{\pgfxy(1.5,2.0)}{\pgfbox[left,center]{\texttt{\bs pgfarrowround}}}
\pgfsetendarrow{\pgfarrowpointed}
\pgfxyline(0,2.5)(1,2.5)
\pgfputat{\pgfxy(1.5,2.5)}{\pgfbox[left,center]{\texttt{\bs pgfarrowpointed}}}
\pgfsetendarrow{\pgfarrowdot}
\pgfxyline(0,3.0)(1,3.0)
\pgfputat{\pgfxy(1.5,3.0)}{\pgfbox[left,center]{\texttt{\bs pgfarrowdot}}}
\pgfsetendarrow{\pgfarrowdiamond}
\pgfxyline(0,3.5)(1,3.5)
\pgfputat{\pgfxy(1.5,3.5)}{\pgfbox[left,center]{\texttt{\bs pgfarrowdiamond}}}
\pgfsetendarrow{\pgfarrowcircle{4pt}}
\pgfxyline(0,4.0)(1,4.0)
\pgfputat{\pgfxy(1.5,4.0)}{\pgfbox[left,center]{\texttt{\bs pgfarrowcirvle$\{$4pt$\}$}}}
\pgfsetendarrow{\pgfarrowtriangle{4pt}}
\pgfxyline(0,4.5)(1,4.5)
\pgfputat{\pgfxy(1.5,4.5)}{\pgfbox[left,center]{\texttt{\bs pgfarrowtriangle$\{$4pt$\}$}}}
\pgfsetendarrow{\pgfarrowlargepointed{6pt}}
\pgfxyline(0,5.0)(1,5.0)
\pgfputat{\pgfxy(1.5,5.0)}{\pgfbox[left,center]{\texttt{\bs pgfarrowlargepointed$\{$6pt$\}$}}}
\end{pgfpicture}
\vspace{2mm}
图~18
\end{center}
\vspace{2mm}
\begin{center}
\begin{pgfpicture}{0cm}{-0.25cm}{7.5cm}{2cm}
\pgfsetendarrow{\pgfarrowswap{\pgfarrowto}}
\pgfxyline(0,0)(1,0)
\pgfputat{\pgfxy(1.5,0)}{\pgfbox[left,center]{\texttt{\bs pgfarrowswap$\{$\bs pgfarrowto$\}$}}}
\pgfsetendarrow{\pgfarrowswap{\pgfarrowsingle}}
\pgfxyline(0,0.5)(1,0.5)
\pgfputat{\pgfxy(1.5,0.5)}{\pgfbox[left,center]{\texttt{\bs pgfarrowswap$\{$\bs pgfarrowsingle$\}$}}}
\pgfsetendarrow{\pgfarrowswap{\pgfarrowbar}}
\pgfxyline(0,1.0)(1,1.0)
\pgfputat{\pgfxy(1.5,1.0)}{\pgfbox[left,center]{\texttt{\bs pgfarrowswap$\{$\bs pgfarrowbar$\}$}}}
\pgfsetendarrow{\pgfarrowswap{\pgfarrowsquare}}
\pgfxyline(0,1.5)(1,1.5)
\pgfputat{\pgfxy(1.5,1.5)}{\pgfbox[left,center]{\texttt{\bs pgfarrowswap$\{$\bs pgfarrowsquare$\}$}}}
\end{pgfpicture}
\vspace{2mm}
图~19
\end{center}
\vspace{2mm}
\begin{center}
\begin{pgfpicture}{0cm}{-0.25cm}{7.5cm}{2cm}
\pgfsetendarrow{\pgfarrowdouble{\pgfarrowto}}
\pgfxyline(0,0)(1,0)
\pgfputat{\pgfxy(1.5,0)}{\pgfbox[left,center]{\texttt{\bs pgfarrowdouble$\{$\bs pgfarrowto$\}$}}}
\pgfsetendarrow{\pgfarrowdouble{\pgfarrowsingle}}
\pgfxyline(0,0.5)(1,0.5)
\pgfputat{\pgfxy(1.5,0.5)}{\pgfbox[left,center]{\texttt{\bs pgfarrowdouble$\{$\bs pgfarrowsingle$\}$}}}
\pgfsetendarrow{\pgfarrowdouble{\pgfarrowbar}}
\pgfxyline(0,1.0)(1,1.0)
\pgfputat{\pgfxy(1.5,1.0)}{\pgfbox[left,center]{\texttt{\bs pgfarrowdouble$\{$\bs pgfarrowbar$\}$}}}
\pgfsetendarrow{\pgfarrowdouble{\pgfarrowsquare}}
\pgfxyline(0,1.5)(1,1.5)
\pgfputat{\pgfxy(1.5,1.5)}{\pgfbox[left,center]{\texttt{\bs pgfarrowdouble$\{$\bs pgfarrowsquare$\}$}}}
\end{pgfpicture}
\vspace{2mm}
图~20
\end{center}
\vspace{2mm}
\begin{center}
\begin{pgfpicture}{0cm}{-0.25cm}{7.5cm}{2cm}
\pgfsetendarrow{\pgfarrowtriple{\pgfarrowto}}
\pgfxyline(0,0)(1,0)
\pgfputat{\pgfxy(1.5,0)}{\pgfbox[left,center]{\texttt{\bs pgfarrowtriple$\{$\bs pgfarrowto$\}$}}}
\pgfsetendarrow{\pgfarrowtriple{\pgfarrowsingle}}
\pgfxyline(0,0.5)(1,0.5)
\pgfputat{\pgfxy(1.5,0.5)}{\pgfbox[left,center]{\texttt{\bs pgfarrowtriple$\{$\bs pgfarrowsingle$\}$}}}
\pgfsetendarrow{\pgfarrowtriple{\pgfarrowbar}}
\pgfxyline(0,1.0)(1,1.0)
\pgfputat{\pgfxy(1.5,1.0)}{\pgfbox[left,center]{\texttt{\bs pgfarrowtriple$\{$\bs pgfarrowbar$\}$}}}
\pgfsetendarrow{\pgfarrowtriple{\pgfarrowsquare}}
\pgfxyline(0,1.5)(1,1.5)
\pgfputat{\pgfxy(1.5,1.5)}{\pgfbox[left,center]{\texttt{\bs pgfarrowtriple$\{$\bs pgfarrowsquare$\}$}}}
\end{pgfpicture}
\vspace{2mm}
图~21
\end{center}
\vspace{2mm}
\begin{center}
\begin{pgfpicture}{0cm}{-0.25cm}{13.5cm}{2cm}
\pgfsetendarrow{\pgfarrowcombine{\pgfarrowto}{\pgfarrowsingle}}
\pgfxyline(0,0)(1,0)
\pgfputat{\pgfxy(1.5,0)}{\pgfbox[left,center]{\texttt{\bs pgfarrowcombine$\{$\bs pgfarrowto$\}\{$\bs pgfarrowsingle$\}$}}}
\pgfsetendarrow{\pgfarrowcombine{\pgfarrowsquare}{\pgfarrowround}}
\pgfxyline(0,0.5)(1,0.5)
\pgfputat{\pgfxy(1.5,0.5)}{\pgfbox[left,center]{\texttt{\bs pgfarrowcombine$\{$\bs pgfarrowsquare$\}\{$\bs pgfarrowround$\}$}}}
\pgfsetendarrow{\pgfarrowcombine{\pgfarrowswap{\pgfarrowsingle}}{\pgfarrowsingle}}
\pgfxyline(0,1.0)(1,1.0)
\pgfputat{\pgfxy(1.5,1.0)}{\pgfbox[left,center]{\texttt{\bs
pgfarrowcombine$\{$\bs pgfarrowswap$\{$\bs pgfarrowsingle$\}\}\{$\bs pgfarrowsingle$\}$}}}
\pgfsetendarrow{\pgfarrowcombineloose{\pgfarrowbar}{\pgfarrowdot}}
\pgfxyline(0,1.5)(1,1.5)
\pgfputat{\pgfxy(1.5,1.5)}{\pgfbox[left,center]{\texttt{\bs pgfarrowcombineloose$\{$\bs pgfarrowbar$\}\{$\bs pgfarrowdot$\}$}}}
\end{pgfpicture}
\vspace{2mm}
图~22
\end{center}
\vspace{2mm}
\begin{center}
\begin{pgfpicture}{0cm}{0cm}{5cm}{2cm}
\pgfxyline(0,0)(5,2)
\pgfputat{\pgflabel{.5}{\pgfxy(0,0)}{\pgfxy(5,2)}{5pt}}{\pgfcircle[stroke]{\pgforigin}{5pt}}
\pgfputat{\pgflabel{.75}{\pgfxy(0,0)}{\pgfxy(5,2)}{5pt}}{\pgfbox[center,base]{标注}}
\end{pgfpicture}
\vspace{2mm}
图~23
\end{center}
\vspace{2mm}
\begin{center}
\begin{pgfpicture}{0cm}{0cm}{5cm}{2cm}
\pgfxyline(0,0)(5,2)
\pgfputlabelrotated{.5}{\pgfxy(0,0)}{\pgfxy(5,2)}{5pt}{\pgfcircle[stroke]{\pgforigin}{5pt}}
\pgfputlabelrotated{.75}{\pgfxy(0,0)}{\pgfxy(5,2)}{5pt}{\pgfbox[center,base]{标注}}
\end{pgfpicture}
\vspace{2mm}
图~24
\end{center}
\vspace{2mm}
\begin{center}
\pgfdeclarehorizontalshading{myshading}{1cm}{rgb(0cm)=(1,0,0); color(2cm)=(green); color(4cm)=(blue)}
\pgfuseshading{myshading}
\vspace{2mm}
图~25
\end{center}
\vspace{2mm}
\begin{center}
\pgfdeclarehorizontalshading[mycolor]{myshading}{1cm}{rgb(0cm)=(1,0,0); color(2cm)=(mycolor)}
\colorlet{mycolor}{green}
\pgfuseshading{myshading}
\colorlet{mycolor}{blue}
\pgfuseshading{myshading}
\vspace{2mm}
图~26
\end{center}
\vspace{2mm}
\begin{center}
\pgfdeclareverticalshading{myshading2}{5cm}{rgb(0cm)=(1,0,0); rgb(1.5cm)=(0,1,0); rgb(2cm)=(0,0,1)}
\pgfuseshading{myshading2}
\vspace{2mm}
图~27
\end{center}
\vspace{2mm}
\begin{center}
\pgfdeclareradialshading{sphere}{\pgfpoint{0.5cm}{0.5cm}}%
{rgb(0.3cm)=(0.9,0,0); rgb(0.7cm)=(0.7,0,0); rgb(1cm)=(0.5,0,0); rgb(1.05cm)=(1,1,1)}
\begin{pgfpicture}{-1.05cm}{-1.05cm}{1.05cm}{1.05cm}
\pgfputat{\pgforigin}{\pgfbox[center,center]{\pgfuseshading{sphere}}}
\end{pgfpicture}
\vspace{2mm}
图~28
\end{center}
\end{CJK*}
\end{document}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -