编辑:编译代码的序言

编辑:编译代码的序言

包中是否有任何内置方法tikz可以相对于另一组或文档的页面移动/定位一整组路径和节点?

为了说明我的意思,以下是我正在做的事情:

tikz figure screenshot

如您所见,我将一个不同的绘图放在另一个绘图旁边。但我认为我实现它的方式不是最简单/最优雅的解决方案:我使用了tabular

\begin{minipage}{32em}\centering
\begin{tabular}{c c}
    \begin{tikzpicture}[scale=3]
        \coordinate (A) at (1,0);
        \coordinate (B) at (0,0);
        \coordinate (C) at ($ (0,0) +(30:1cm)$);
        \coordinate (D) at ($ (0,0) +(60:1cm)$);
        \coordinate (E) at ($ (0,0) +(90:1cm)$);
        %
        \draw (0,0) node [right=0.2cm, below=0.5mm] {\textcolor{blue}{$ \delta $}};
        \draw (A) -- (B) -- (E)
        pic [draw=red!50!black, fill=red!20, angle radius=2.4cm,
        "\textcolor{red}{$\alpha$}", pic text options={left=5.5mm, above=.3cm}] {angle = A--B--E};
        \draw (A) -- (B) -- (D)
        pic [draw=green!50!black, fill=green!20, angle radius=1.7cm,
        "\textcolor{dark green}{$\beta$}", pic text options={above=.1cm}] {angle = A--B--D};
        \draw (A) -- (B) -- (C)
        pic [draw=orange!50!black, fill=orange!20, angle radius=1cm,
        "\textcolor{orange}{$\gamma$}", pic text options={right=.05mm}] {angle = A--B--C};
        %
        \clip (-0.2, -0.2) rectangle (1.2,1.2);
        \draw (0,0) circle [radius=1cm];
        \fill [white] (0.95, -0.1) rectangle (1.05, 0.1);
        \draw (0, -0.2) -- (0,1.2);
        \draw (-0.2, 0) -- (1.2,0);
        \draw [thick] (A) -- +(90:0.5mm) -- +(270:0.5mm) node [below=.2mm, right=.1 mm] {$ 1 $};
        
        \draw [very thick, blue] (0,0) -- +(0:1cm);
        \draw [very thick, orange] (0,0) -- +(30:1cm);
        \draw [very thick, green] (0,0) -- +(60:1cm);
        \draw [very thick, red] (0,0) -- +(90:1cm);
        
        \draw [thick, dark blue] (C) arc [start angle = 30, end angle = 60, radius = 1cm] node [midway, sloped, above] {\small $ \frac{\pi}{6} - \varepsilon $};
        
        \draw (46:1cm) -- +(225:1pt) -- +(45:1pt);
        \draw (44:1cm) -- +(225:1pt) -- +(45:1pt);
        \draw (76:1cm) -- +(255:1pt) -- +(75:1pt);
        \draw (74:1cm) -- +(255:1pt) -- +(75:1pt);
        \draw (16:1cm) -- +(195:1pt) -- +(15:1pt);
        \draw (14:1cm) -- +(195:1pt) -- +(15:1pt);
    \end{tikzpicture} &
    \begin{tikzpicture}[scale=3]
        \coordinate (A) at (1,0);
        \coordinate (B) at (0,0);
        \coordinate (C) at ($ (0,0) +(30:1cm)$);
        \coordinate (D) at ($ (0,0) +(50:1cm)$);
        \coordinate (E) at ($ (0,0) +(90:1cm)$);
        %
        \draw (0,0) node [right=0.2cm, below=0.5mm] {\textcolor{blue}{$ \delta $}};
        \draw (A) -- (B) -- (E)
        pic [draw=red!50!black, fill=red!20, angle radius=2.4cm,
        "\textcolor{red}{$\alpha$}", pic text options={left=5.5mm, above=.3cm}] {angle = A--B--E};
        \draw (A) -- (B) -- (D)
        pic [draw=green!50!black, fill=green!20, angle radius=1.7cm,
        "\textcolor{dark green}{$\beta$}", pic text options={above=.1cm}] {angle = A--B--D};
        \draw (A) -- (B) -- (C)
        pic [draw=orange!50!black, fill=orange!20, angle radius=1cm,
        "\textcolor{orange}{$\gamma$}", pic text options={right=.05mm}] {angle = A--B--C};
        %
        \clip (-0.2, -0.2) rectangle (1.2,1.2);
        \draw (0,0) circle [radius=1cm];
        \fill [white] (0.95, -0.1) rectangle (1.05, 0.1);
        \draw (0, -0.2) -- (0,1.2);
        \draw (-0.2, 0) -- (1.2,0);
        \draw [thick] (A) -- +(90:0.5mm) -- +(270:0.5mm) node [below=.2mm, right=.1 mm] {$ 1 $};
        
        \draw [very thick, blue] (0,0) -- +(0:1cm);
        \draw [very thick, orange] (0,0) -- +(30:1cm);
        \draw [very thick, green] (0,0) -- +(50:1cm);
        \draw [very thick, red] (0,0) -- +(90:1cm);
        
        \draw [thick, dark blue] (C) arc [start angle = 30, end angle = 50, radius = 1cm] node [midway, sloped, above] {\small $ <\frac{\pi}{6} $};
        \draw [thick, plum] (50:1cm) arc [start angle = 50, end angle = 90, radius = 1cm] node [midway, sloped, above] {\small $ >\frac{\pi}{6} $};
    \end{tikzpicture}
\end{tabular}

\captionof{figure}{Angles $ \alpha,\beta,\gamma,\delta $} that correspond to $ a,b,c,d $ respectively. $ \varepsilon $ represents a positive infinitesimal.
\label{angles}

\end{minipage}

此外,在每个坐标中我tikzpicture必须定义相同的坐标(A)(B)和。(C)(D)

有没有更好的方法来做到这一点,在同一个范围内tikzpicture

在这种情况下,寻找替代解决方案似乎相对简单且没有必要,但这只是因为此处的预期定位很简单:两幅画,一幅挨着一幅。但想象一下,我们必须放置三、四幅图像,并且必须以特殊方式定位它们——例如,每幅图像位于正多边形的顶点。

编辑:编译代码的序言

我把用到的所有包都放在了我的文档中,这样我就不用通过乏味的反复试验来找出编译上述代码的最小集合了。

\documentclass[10pt,a4paper,usenames,dvipsnames]{article}

\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{textcomp}
\usepackage[labelfont=bf]{caption}
\usepackage{tikz}
\usepackage{changepage}
\usepackage{wrapfig}
\usepackage{siunitx}
\usepackage{calc}
\usepackage{array}
\usepackage{pythonhighlight}
\usepackage{multirow}
\usepackage{listings}
\usepackage{framed}
\usepackage[symbol, perpage]{footmisc}
\usepackage{lmodern}
\usepackage{hyperref}

\lstset{
    basicstyle=\ttfamily,
    columns=fullflexible,
    frame=single,
    breaklines=true,
    postbreak=\mbox{\textcolor{red}{$\hookrightarrow$}\space},
}

\usepackage{float}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{array}

\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}

\usepackage{makecell}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage{ragged2e}
\usepackage{amssymb}
\usepackage{longtable}
\usepackage{graphicx}

\usepackage{xcolor}

\author{Paolo Lammens}
\title{PROMYS - Problem Set Solutions}



\usepackage{chngcntr}
\counterwithin{figure}{section}
\counterwithin{equation}{section}

\newcommand\ddfrac[2]{\frac{\displaystyle #1}{\displaystyle #2}}


\usetikzlibrary{calc}
\usetikzlibrary{quotes, angles, arrows}

\newcommand{\degre}{\ensuremath{^\circ}}

\definecolor{dbwrru}{rgb}{0.8588235294117647,0.3803921568627451,0.0784313725490196}
\definecolor{dtsfsf}{rgb}{0.8274509803921568,0.1843137254901961,0.1843137254901961}
\definecolor{wrwrwr}{rgb}{0.3803921568627451,0.3803921568627451,0.3803921568627451}
\definecolor{rvwvcq}{rgb}{0.08235294117647059,0.396078431372549,0.7529411764705882}
\definecolor{cqcqcq}{rgb}{0.7529411764705882,0.7529411764705882,0.7529411764705882}
\definecolor{dark blue}{HTML}{002663}
\definecolor{dark green}{HTML}{085e23}
\definecolor{plum}{HTML}{3d085e}

\hypersetup{
    colorlinks=true,
    linkcolor=dark blue,
    filecolor=magenta,      
    urlcolor=cyan,
}

答案1

编辑 2:由于不建议嵌套 tikzpictures,scope因此您可以使用环境。我相应地更新了第二个代码片段。

\documentclass[]{article}
\usepackage{tikz}
\usetikzlibrary{calc,angles,positioning}

\begin{document}
    \begin{figure}
        \centering
        \begin{tikzpicture}[scale=3]
        \begin{scope}[]
            \coordinate (A) at (1,0);
            \coordinate (B) at (0,0);
            \coordinate (C) at ($ (0,0) +(30:1cm)$);
            \coordinate (D) at ($ (0,0) +(60:1cm)$);
            \coordinate (E) at ($ (0,0) +(90:1cm)$);
            \draw (0,0) node [right=0.2cm, below=0.5mm] {\textcolor{blue}{$ \delta $}};
            \draw (A) -- (B) -- (E) pic [draw=red!50!black, fill=red!20, angle radius=2.4cm, pic text options={left=5.5mm, above=.3cm}] {angle = A--B--E};
            \draw (A) -- (B) -- (D) pic [draw=green!50!black, fill=green!20, angle radius=1.7cm, pic text options={above=.1cm}] {angle = A--B--D};
            \draw (A) -- (B) -- (C) pic [draw=orange!50!black, fill=orange!20, angle radius=1cm, pic text options={right=.05mm}] {angle = A--B--C};
            \clip (-0.2, -0.2) rectangle (1.2,1.2);
            \draw (0,0) circle [radius=1cm];
            \fill [white] (0.95, -0.1) rectangle (1.05, 0.1);
            \draw (0, -0.2) -- (0,1.2);
            \draw (-0.2, 0) -- (1.2,0);
            \draw [thick] (A) -- +(90:0.5mm) -- +(270:0.5mm) node [below=.2mm, right=.1 mm] {$ 1 $};
            \draw [very thick, blue] (0,0) -- +(0:1cm);
            \draw [very thick, orange] (0,0) -- +(30:1cm);
            \draw [very thick, green] (0,0) -- +(60:1cm);
            \draw [very thick, red] (0,0) -- +(90:1cm);
            \draw [thick, blue] (C) arc [start angle = 30, end angle = 60, radius = 1cm] node [midway, sloped, above] {\small $ \frac{\pi}{6} - \varepsilon $};
            \draw (46:1cm) -- +(225:1pt) -- +(45:1pt);
            \draw (44:1cm) -- +(225:1pt) -- +(45:1pt);
            \draw (76:1cm) -- +(255:1pt) -- +(75:1pt);
            \draw (74:1cm) -- +(255:1pt) -- +(75:1pt);
            \draw (16:1cm) -- +(195:1pt) -- +(15:1pt);
            \draw (14:1cm) -- +(195:1pt) -- +(15:1pt);
            \end{scope}
            \begin{scope}[xshift=3cm,yshift=2cm]
            \coordinate (A) at (1,0);
            \coordinate (B) at (0,0);
            \coordinate (C) at ($ (0,0) +(30:1cm)$);
            \coordinate (D) at ($ (0,0) +(50:1cm)$);
            \coordinate (E) at ($ (0,0) +(90:1cm)$);
            \draw (0,0) node [right=0.2cm, below=0.5mm] {\textcolor{blue}{$     \delta $}};
            \draw (A) -- (B) -- (E) pic [draw=red!50!black, fill=red!20, angle     radius=2.4cm, pic text options={left=5.5mm, above=.3cm}] {angle = A--B--E};
            \draw (A) -- (B) -- (D) pic [draw=green!50!black, fill=green!20,     angle radius=1.7cm, pic text options={above=.1cm}] {angle = A--B--D};
            \draw (A) -- (B) -- (C) pic [draw=orange!50!black, fill=orange!20,     angle radius=1cm, pic text options={right=.05mm}] {angle = A--B--C};
            \clip (-0.2, -0.2) rectangle (1.2,1.2);
            \draw (0,0) circle [radius=1cm];
            \fill [white] (0.95, -0.1) rectangle (1.05, 0.1);
            \draw (0, -0.2) -- (0,1.2);
            \draw (-0.2, 0) -- (1.2,0);
            \draw [thick] (A) -- +(90:0.5mm) -- +(270:0.5mm) node [below=.2mm,     right=.1 mm] {$ 1 $};
            \draw [very thick, blue] (0,0) -- +(0:1cm);
            \draw [very thick, orange] (0,0) -- +(30:1cm);
            \draw [very thick, green] (0,0) -- +(50:1cm);
            \draw [very thick, red] (0,0) -- +(90:1cm);
            \draw [thick, blue] (C) arc [start angle = 30, end angle = 50, radius     = 1cm] node [midway, sloped, above] {\small $ <\frac{\pi}{6} $};
            \draw [thick] (50:1cm) arc [start angle = 50, end angle = 90, radius     = 1cm] node [midway, sloped, above] {\small $ >\frac{\pi}{6} $};
            \end{scope}
        \end{tikzpicture}
        \caption{Two figures \label{fig:figure}}
    \end{figure}
    Two figures next to each other
\end{document}

第一个答案是使用subcaption@percusse 建议的软件包。我不得不删除你的代码片段的一些特性,以使其可编译,但你知道该怎么做。

\documentclass[]{article}
\usepackage{tikz}
\usetikzlibrary{calc,angles}
\usepackage{subcaption}

\begin{document}
\begin{figure}
    \centering
    \begin{subfigure}{5cm}
        \centering
        \begin{tikzpicture}[scale=3]
            \coordinate (A) at (1,0);
            \coordinate (B) at (0,0);
            \coordinate (C) at ($ (0,0) +(30:1cm)$);
            \coordinate (D) at ($ (0,0) +(60:1cm)$);
            \coordinate (E) at ($ (0,0) +(90:1cm)$);
            \draw (0,0) node [right=0.2cm, below=0.5mm] {\textcolor{blue}{$ \delta $}};
            \draw (A) -- (B) -- (E) pic [draw=red!50!black, fill=red!20, angle radius=2.4cm, pic text options={left=5.5mm, above=.3cm}] {angle = A--B--E};
            \draw (A) -- (B) -- (D) pic [draw=green!50!black, fill=green!20, angle radius=1.7cm, pic text options={above=.1cm}] {angle = A--B--D};
            \draw (A) -- (B) -- (C) pic [draw=orange!50!black, fill=orange!20, angle radius=1cm, pic text options={right=.05mm}] {angle = A--B--C};  
            \clip (-0.2, -0.2) rectangle (1.2,1.2);
            \draw (0,0) circle [radius=1cm];
            \fill [white] (0.95, -0.1) rectangle (1.05, 0.1);
            \draw (0, -0.2) -- (0,1.2);
            \draw (-0.2, 0) -- (1.2,0);
            \draw [thick] (A) -- +(90:0.5mm) -- +(270:0.5mm) node [below=.2mm, right=.1 mm] {$ 1 $};

            \draw [very thick, blue] (0,0) -- +(0:1cm);
            \draw [very thick, orange] (0,0) -- +(30:1cm);
            \draw [very thick, green] (0,0) -- +(60:1cm);
            \draw [very thick, red] (0,0) -- +(90:1cm);

            \draw [thick, blue] (C) arc [start angle = 30, end angle = 60, radius = 1cm] node [midway, sloped, above] {\small $ \frac{\pi}{6} - \varepsilon $};

            \draw (46:1cm) -- +(225:1pt) -- +(45:1pt);
            \draw (44:1cm) -- +(225:1pt) -- +(45:1pt);
            \draw (76:1cm) -- +(255:1pt) -- +(75:1pt);
            \draw (74:1cm) -- +(255:1pt) -- +(75:1pt);
            \draw (16:1cm) -- +(195:1pt) -- +(15:1pt);
            \draw (14:1cm) -- +(195:1pt) -- +(15:1pt);
        \end{tikzpicture}
        \caption{Left subfigure \label{fig:lsubfig}}
    \end{subfigure}%
    \begin{subfigure}{5cm}
         \centering
         \begin{tikzpicture}[scale=3]
                \coordinate (A) at (1,0);
                \coordinate (B) at (0,0);
                \coordinate (C) at ($ (0,0) +(30:1cm)$);
                \coordinate (D) at ($ (0,0) +(50:1cm)$);
                \coordinate (E) at ($ (0,0) +(90:1cm)$);
                \draw (0,0) node [right=0.2cm, below=0.5mm] {\textcolor{blue}{$     \delta $}};
                \draw (A) -- (B) -- (E) pic [draw=red!50!black, fill=red!20, angle     radius=2.4cm, pic text options={left=5.5mm, above=.3cm}] {angle = A--B--E};
    \draw (A) -- (B) -- (D) pic [draw=green!50!black, fill=green!20,     angle radius=1.7cm, pic text options={above=.1cm}] {angle = A--B--D};
                \draw (A) -- (B) -- (C) pic [draw=orange!50!black, fill=orange!20,     angle radius=1cm, pic text options={right=.05mm}] {angle = A--B--C};
                \clip (-0.2, -0.2) rectangle (1.2,1.2);
                \draw (0,0) circle [radius=1cm];
                \fill [white] (0.95, -0.1) rectangle (1.05, 0.1);
                \draw (0, -0.2) -- (0,1.2);
                \draw (-0.2, 0) -- (1.2,0);
                \draw [thick] (A) -- +(90:0.5mm) -- +(270:0.5mm) node [below=.2mm,     right=.1 mm] {$ 1 $};

                \draw [very thick, blue] (0,0) -- +(0:1cm);
                \draw [very thick, orange] (0,0) -- +(30:1cm);
                \draw [very thick, green] (0,0) -- +(50:1cm);
                \draw [very thick, red] (0,0) -- +(90:1cm);

                \draw [thick, blue] (C) arc [start angle = 30, end angle = 50, radius     = 1cm] node [midway, sloped, above] {\small $ <\frac{\pi}{6} $};
                \draw [thick] (50:1cm) arc [start angle = 50, end angle = 90, radius     = 1cm] node [midway, sloped, above] {\small $ >\frac{\pi}{6} $};
            \end{tikzpicture}
            \caption{Right subfigure \label{fig:rsubfig}}
        \end{subfigure}
        \caption{Two figures \label{fig:figure}}
    \end{figure}
    Two figures next to each other 

\end{document}

编辑:如果您确实需要以奇怪的方式定位它们,您可以将您的tikzpictures 嵌套在一些nodes 中,并将它们相对定位。我不知道这对您来说是否有用,甚至是否推荐,但它可能会有所帮助。

答案2

  • 对于您的图像的基础,我使用了我在您的回答中的代码上一个问题
  • 为了使完整图形的代码更短,我定义了包含两个图像的公共部分的新命令
  • 图像由它们定位\centering\hfil它们之间:

\documentclass[10pt,a4paper,usenames,dvipsnames]{article}

\usepackage[skip=1ex, 
            labelfont=bf, font=footnotesize]{caption}
\usepackage{amsmath, amssymb, amsthm}
\input{insbox}%%%%%%%%%%%%%% TeX macro,
\usepackage{tikz}
\usetikzlibrary{angles, arrows,
                calc,
                quotes,
                }
\usepackage{siunitx}    % to write units. also defines `\ degree`

\definecolor{dark blue}{HTML}{002663}
\definecolor{dark green}{HTML}{085e23}

\begin{document}
    \begin{figure}[h]
\newcommand\ANGLES{ % <--- collected the common code of both images
\coordinate[label=below right:1]    (A) at (1,0);
\coordinate[label=below right:
            \textcolor{blue}{$\delta $}] (B) at (0,0);
\coordinate                         (C) at ($(B)+(30:1cm)$);
\coordinate                         (D) at ($(B)+(60:1cm)$);
\coordinate                         (E) at ($(B)+(90:1cm)$);
% axis
\draw (0, -0.2) -- (0,1.2);
\draw (-0.2, 0) -- (1.2,0);
% angles
\draw (A) -- (B) -- (E)
    pic [draw=red!50!black, fill=red!20, angle radius=2.4cm,
        "\textcolor{red}{$\alpha$}",
        pic text options={left=5.5mm, above=.3cm}]  {angle = A--B--E};
\draw (A) -- (B) -- (D)
    pic [draw=green!50!black, fill=green!20, angle radius=1.7cm,
        "\textcolor{dark green}{$\beta$}",
        pic text options={above=.1cm}]              {angle = A--B--D};
\draw (A) -- (B) -- (C)
    pic [draw=purple!50!black, fill=purple!20, angle radius=1cm,
        "\textcolor{orange!50!black}{$\gamma$}",
        pic text options={right=.05mm}]             {angle = A--B--C};
% circle
\clip (-0.2, -0.2) rectangle (1.2,1.2);
\draw (B) circle [radius=1cm];
\fill [white] (0.95, -0.1) rectangle (1.05, 0.1);
\draw [thick] (A) +(0,0.5mm) -- + (0,-0.5mm);
% angle lines
\draw [very thick, blue]    (B) -- +(0:1cm);
\draw [very thick, purple]  (B) -- +(30:1cm);
\draw [very thick, green]   (B) -- +(60:1cm);
\draw [very thick, red]     (B) -- +(90:1cm);
            } %%%%% end of command ANGLES

    \centering
%%%% left image
    \begin{tikzpicture}[scale=3]
\ANGLES
% arc labels
\path   (A) arc ( 0:30:1cm) node[midway,sloped,font=\footnotesize] {$\|$};
\draw [thick, dark blue] (C) arc (30:60:1cm)
        node[midway,sloped,font=\footnotesize] {$\|$}
        node [midway,sloped,above] {\small $ <\frac{\pi}{6} $};
\path   (E) arc (90:60:1cm) node[midway,sloped,font=\footnotesize] {$\|$};
     \end{tikzpicture}
\hfil %%%% distance between images
%%%% right image  
    \begin{tikzpicture}[scale=3]
\ANGLES
% arc labels
\draw [thick, dark blue] (C) arc (30:60:1cm)
        node[midway,sloped,above,font=\small] {$ <\frac{\pi}{6} $};
\path   (E) arc (90:60:1cm)
        node[midway,sloped,above,font=\small] {$ >\frac{\pi}{6} $};
    \end{tikzpicture}
\caption{Angles $\alpha,\beta,\gamma,\delta$ that correspond to $a,b,c,d$ respectively. $\varepsilon$ represents a positive infinitesimal.}
\label{angles}
    \end{figure}
\end{document}

enter image description here

答案3

您不需要表格,您可以tikzpictures像任何其他字母一样将两者放在一起:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{calc,angles}

\begin{document}
\begin{figure}
\centering
        \begin{tikzpicture}[scale=3]
            \coordinate (A) at (1,0);
            \coordinate (B) at (0,0);
            \coordinate (C) at ($ (0,0) +(30:1cm)$);
            \coordinate (D) at ($ (0,0) +(60:1cm)$);
            \coordinate (E) at ($ (0,0) +(90:1cm)$);
            \draw (0,0) node [right=0.2cm, below=0.5mm] {\textcolor{blue}{$ \delta $}};
            \draw (A) -- (B) -- (E) pic [draw=red!50!black, fill=red!20, angle radius=2.4cm, pic text options={left=5.5mm, above=.3cm}] {angle = A--B--E};
            \draw (A) -- (B) -- (D) pic [draw=green!50!black, fill=green!20, angle radius=1.7cm, pic text options={above=.1cm}] {angle = A--B--D};
            \draw (A) -- (B) -- (C) pic [draw=orange!50!black, fill=orange!20, angle radius=1cm, pic text options={right=.05mm}] {angle = A--B--C};  
            \clip (-0.2, -0.2) rectangle (1.2,1.2);
            \draw (0,0) circle [radius=1cm];
            \fill [white] (0.95, -0.1) rectangle (1.05, 0.1);
            \draw (0, -0.2) -- (0,1.2);
            \draw (-0.2, 0) -- (1.2,0);
            \draw [thick] (A) -- +(90:0.5mm) -- +(270:0.5mm) node [below=.2mm, right=.1 mm] {$ 1 $};

            \draw [very thick, blue] (0,0) -- +(0:1cm);
            \draw [very thick, orange] (0,0) -- +(30:1cm);
            \draw [very thick, green] (0,0) -- +(60:1cm);
            \draw [very thick, red] (0,0) -- +(90:1cm);

            \draw [thick, blue] (C) arc [start angle = 30, end angle = 60, radius = 1cm] node [midway, sloped, above] {\small $ \frac{\pi}{6} - \varepsilon $};

            \draw (46:1cm) -- +(225:1pt) -- +(45:1pt);
            \draw (44:1cm) -- +(225:1pt) -- +(45:1pt);
            \draw (76:1cm) -- +(255:1pt) -- +(75:1pt);
            \draw (74:1cm) -- +(255:1pt) -- +(75:1pt);
            \draw (16:1cm) -- +(195:1pt) -- +(15:1pt);
            \draw (14:1cm) -- +(195:1pt) -- +(15:1pt);
        \end{tikzpicture}
        \hspace{1cm}
         \begin{tikzpicture}[scale=3]
                \coordinate (A) at (1,0);
                \coordinate (B) at (0,0);
                \coordinate (C) at ($ (0,0) +(30:1cm)$);
                \coordinate (D) at ($ (0,0) +(50:1cm)$);
                \coordinate (E) at ($ (0,0) +(90:1cm)$);
                \draw (0,0) node [right=0.2cm, below=0.5mm] {\textcolor{blue}{$     \delta $}};
                \draw (A) -- (B) -- (E) pic [draw=red!50!black, fill=red!20, angle     radius=2.4cm, pic text options={left=5.5mm, above=.3cm}] {angle = A--B--E};
    \draw (A) -- (B) -- (D) pic [draw=green!50!black, fill=green!20,     angle radius=1.7cm, pic text options={above=.1cm}] {angle = A--B--D};
                \draw (A) -- (B) -- (C) pic [draw=orange!50!black, fill=orange!20,     angle radius=1cm, pic text options={right=.05mm}] {angle = A--B--C};
                \clip (-0.2, -0.2) rectangle (1.2,1.2);
                \draw (0,0) circle [radius=1cm];
                \fill [white] (0.95, -0.1) rectangle (1.05, 0.1);
                \draw (0, -0.2) -- (0,1.2);
                \draw (-0.2, 0) -- (1.2,0);
                \draw [thick] (A) -- +(90:0.5mm) -- +(270:0.5mm) node [below=.2mm,     right=.1 mm] {$ 1 $};

                \draw [very thick, blue] (0,0) -- +(0:1cm);
                \draw [very thick, orange] (0,0) -- +(30:1cm);
                \draw [very thick, green] (0,0) -- +(50:1cm);
                \draw [very thick, red] (0,0) -- +(90:1cm);

                \draw [thick, blue] (C) arc [start angle = 30, end angle = 50, radius     = 1cm] node [midway, sloped, above] {\small $ <\frac{\pi}{6} $};
                \draw [thick] (50:1cm) arc [start angle = 50, end angle = 90, radius     = 1cm] node [midway, sloped, above] {\small $ >\frac{\pi}{6} $};
            \end{tikzpicture}
          \caption{Angles $ \alpha,\beta,\gamma,\delta $ that correspond to $ a,b,c,d $ respectively. $ \varepsilon $ represents a positive infinitesimal.}
    \end{figure}
    Two figures next to each other 

\end{document}

(由于你的代码在添加了明显缺失的包后仍然无法编译,因此我使用了https://tex.stackexchange.com/a/423061/36296

相关内容