I need your help regarding these figures. For some reason, I cannot display them in PDF, and the system gives me errors. I cannot figure out what the problems are. I had already printed out the PDF document, but for some reason, I am getting errors now. Moreover, if I write in document class "Standalone", I can display Figures 2 and 3 but not the others. Here I attach my whole code. Please let me know what the mistakes are because I have no clue. I also attach how the article should look like.
Code: Select all
\documentclass{article}
\usepackage{tikz, amsmath,spath3}
\usetikzlibrary{decorations.shapes}
\usetikzlibrary{hobby}
\usetikzlibrary{calc}
\usepgfplotslibrary{fillbetween}
\usetikzlibrary{intersections}
\usepackage[font=normalsize,labelfont=bf]{caption}
\usetikzlibrary{patterns}
\begin{document}
\section{List of Figures}
\begin{figure}
\centering
\caption{Size of the Winset with Two Veto Players}
\label{fig:two}
\begin{tikzpicture}
\begin{scope} [fill opacity = .4]
\draw (-8,5) rectangle (6,-4.5) ;
% name the paths:
\path[name path=A, draw, fill=green] (-4.5,0) circle (3) node(NA){};
\path[name path=C, draw, fill=red] (1.5,0) circle (4) node(NC){};
\begin{scope}[fill opacity=1]% punch out the intersecting area of circles A and C:
\clip (NA) circle (3);% half the line width smaller than the circle's radius
% to keep the circle's line (B) intact.
% (= 3cm - 0.2pt * 2.54cm/in / 72.27pt/in)
\fill[blue] (NC) circle (4);% same here for circle A
\end{scope}% end the scope to be able to draw something outside its clip area
\begin{scope}[fill opacity=1]% punch out the intersecting area of circles A and C:
\clip (NC) circle (4);% half the line width smaller than the circle's radius
% to keep the circle's line (B) intact.
% (= 3cm - 0.2pt * 2.54cm/in / 72.27pt/in)
\fill[white, dashed, postaction={pattern=north west lines}] (NA) circle (3);
%\fill[white] (NA) circle (3);% same here for circle A
\end{scope}% end the scope to be able to draw something outside its clip area
% get the intersection points between circles A and B:
\path[name intersections={of=A and C}];
\begin{scope}[fill opacity=0]% put some solid dots at the intersecting points:
\fill (intersection-2) circle (3pt) node[below=3pt]{SQ};
\end{scope}
\node at (-4,3.5) {\LARGE\textbf{A}};
\node at (3,4) {\LARGE\textbf{C}};
\end{scope}
% Point a
\coordinate (a) at (-4.5,0);
\fill (a) circle [radius=3pt];
\node [below] at (a) {$A$};
% Point c
\coordinate (c) at (1.5,0);
\fill (c) circle [radius=3pt];
\node [below] at (c) {$C$};
\draw (a) -- (c);
% get the intersection points between circles A and B:
\path[name intersections={of=A and B}];
\begin{scope}[fill opacity=1]% put some solid dots at the intersecting points:
\fill (intersection-1) circle (3pt) node[above=3pt]{SQ1};
\end{scope}
% get the intersection points between circles A and B:
\path[name intersections={of=A and B}];
\begin{scope}[fill opacity=1]% put some solid dots at the intersecting points:
\fill (intersection-2) circle (3pt) node[below=3pt]{SQ2};
\end{scope}
\node at ([yshift=-7mm] current bounding box.south)
{
\begin{tabular}{r@{: }l r@{: }l}
$Green$ & Veto Player A Indifference Curve & Pink& Veto Player C Indifference
Curve &
$SQ& Status Quo & $Dashed& Winset Area of A-C
\end{tabular}
};
\end{tikzpicture}
\end{figure}
\begin{figure}
\centering
\caption{Smaller Size of the Winset after ideological differences have increased}
\label{fig:my_label}
\begin{tikzpicture}
\begin{scope} [fill opacity = .4]
\draw (-8,5) rectangle (6.5,-4.5) ;
% name the paths:
\path[name path=A, draw, fill=green] (-4.5,0) circle (3) node(NA){};
\path[name path=C, draw, fill=red] (2.2,0) circle (4) node(NC){};
\begin{scope}[fill opacity=1]% punch out the intersecting area of circles A and C:
\clip (NA) circle (3);% half the line width smaller than the circle's radius
% to keep the circle's line (B) intact.
% (= 3cm - 0.2pt * 2.54cm/in / 72.27pt/in)
\fill[blue] (NC) circle (4);% same here for circle A
\end{scope}% end the scope to be able to draw something outside its clip area
\begin{scope}[fill opacity=1]% punch out the intersecting area of circles A and C:
\clip (NC) circle (4);% half the line width smaller than the circle's radius
% to keep the circle's line (B) intact.
% (= 3cm - 0.2pt * 2.54cm/in / 72.27pt/in)
\fill[white] (NA) circle (3);% same here for circle A
\end{scope}% end the scope to be able to draw something outside its clip area
% get the intersection points between circles A and B:
\path[name intersections={of=A and C}];
\begin{scope}[fill opacity=0]% put some solid dots at the intersecting points:
\fill (intersection-2) circle (3pt) node[below=3pt]{SQ};
\end{scope}
\node at (-4,3.5) {\LARGE\textbf{A}};
\node at (3,4.4) {\LARGE\textbf{C}};
\end{scope}
% Point a
\coordinate (a) at (-4.5,0);
\fill (a) circle [radius=3pt];
\node [below] at (a) {$A$};
% Point c
\coordinate (c) at (2.2,0);
\fill (c) circle [radius=3pt];
\node [below] at (c) {$C$};
\draw (a) -- (c);
% get the intersection points between circles A and B:
\path[name intersections={of=A and B}];
\begin{scope}[fill opacity=1]% put some solid dots at the intersecting points:
\fill (intersection-1) circle (3pt) node[above=3pt]{SQ1};
\end{scope}
% get the intersection points between circles A and B:
\path[name intersections={of=A and B}];
\begin{scope}[fill opacity=1]% put some solid dots at the intersecting points:
\fill (intersection-2) circle (3pt) node[below=3pt]{SQ2};
\end{scope}
\node at ([yshift=-7mm] current bounding box.south)
{
\begin{tabular}{r@{: }l r@{: }l}
$Green$ & Veto Player A Indifference Curve & Pink& Veto Player C Indifference Curve &
$SQ& Status Quo & $White& Winset Area of A-C
\end{tabular}
};
\end{tikzpicture}
\end{figure}
\begin{figure}
\centering
\caption{Size of the Winset after adding a Third Veto Player}
\label{fig:three}
\begin{tikzpicture}
\begin{scope} [fill opacity = .4]
\draw (-8,5) rectangle (6,-4.5) ;
% name the paths:
\path[name path=A, draw, fill=green] (-4.5,0) circle (3) node(NA){};
\path[name path=B, draw, fill=blue] (-4.1,1.8) circle (2) node(NB){};
\path[name path=C, draw, fill=red] (1.5,0) circle (4) node(NC){};
\begin{scope}[fill opacity=1]% punch out the intersecting area of circles A and C:
\clip (NC) circle (4);% half the line width smaller than the circle's radius
% to keep the circle's line (B) intact.
% (= 3cm - 0.2pt * 2.54cm/in / 72.27pt/in)
\fill[pink] (NA) circle (3);% same here for circle A
\end{scope}% end the scope to be able to draw something outside its clip area
\begin{scope}[fill opacity=1]% punch out the intersecting area of circles A and C:
\clip (NC) circle (4);
\clip (NB) circle (2);% half the line width smaller than the circle's radius
% to keep the circle's line (B) intact.
% (= 3cm - 0.2pt * 2.54cm/in / 72.27pt/in)
\fill[white] (NA) circle (3);
%\fill[white] (NA) circle (3);% same here for circle A
\end{scope}% end the scope to be able to draw something outside its clip area
% get the intersection points between circles A and B:
\path[name intersections={of=A and C}];
\begin{scope}[fill opacity=0]% put some solid dots at the intersecting points:
\fill (intersection-2) circle (3pt) node[below=3pt]{SQ};
\end{scope}
\node at (-6.6,2.5) {\LARGE\textbf{A}};
\node at (-4,4.1) {\LARGE\textbf{B}};
\node at (3,4) {\LARGE\textbf{C}};
\end{scope}
% Point a
\coordinate (a) at (-4.5,0);
\fill (a) circle [radius=3pt];
\node [below] at (a) {$A$};
% Point b
\coordinate (b) at (-4.1,1.8);
\fill (b) circle [radius=2pt];
\node [below] at (b) {$B$};
% Point c
\coordinate (c) at (1.5,0);
\fill (c) circle [radius=3pt];
\node [below] at (c) {$C$};
\draw (a) -- (b);
\draw (a) -- (c);
\draw (b) -- (c);
% get the intersection points between circles A and B:
\path[name intersections={of=A and B}];
\begin{scope}[fill opacity=1]% put some solid dots at the intersecting points:
\fill (intersection-1) circle (3pt) node[above=3pt]{SQ1};
\end{scope}
\node at ([yshift=-7mm] current bounding box.south)
{
\begin{tabular}{r@{: }l r@{: }l}
$Green$ & Veto Player A Indifference Curve & Pink& Veto Player C Indifference
Curve & Blue& Veto Player B Indifference
Curve &$SQ& Status Quo & $White& Winset Area of A-C
\end{tabular}
};
\end{tikzpicture}
\end{figure}
\begin{figure}
\centering
\caption{Absorption of Veto Player B}
\label{fig:absorption}
\begin{tikzpicture}
\begin{scope} [fill opacity = .4]
\draw (-8,5) rectangle (6,-4.5) ;
% name the paths:
\path[name path=A, draw, fill=green] (-4.5,0) circle (3) node(NA){};
\path[name path=C, draw, fill=red] (1.5,0) circle (4) node(NC){};
\path[name path=B, draw, fill=blue] (-1,0) circle (2) node(NB){};
\begin{scope}[fill opacity=1]% punch out the intersecting area of circles A and C:
\clip (NA) circle (3);% half the line width smaller than the circle's radius
% to keep the circle's line (B) intact.
% (= 3cm - 0.2pt * 2.54cm/in / 72.27pt/in)
\fill[blue] (NB) circle (2);% same here for circle A
\end{scope}% end the scope to be able to draw something outside its clip area
\begin{scope}[fill opacity=1]% punch out the intersecting area of circles A and C:
\clip (NC) circle (4);% half the line width smaller than the circle's radius
% to keep the circle's line (B) intact.
% (= 3cm - 0.2pt * 2.54cm/in / 72.27pt/in)
\fill[blue] (NB) circle (2);% same here for circle A
\end{scope}% end the scope to be able to draw something outside its clip area
\begin{scope}[fill opacity=1]% punch out the intersecting area of circles A and C:
\clip (NC) circle (4);% half the line width smaller than the circle's radius
% to keep the circle's line (B) intact.
% (= 3cm - 0.2pt * 2.54cm/in / 72.27pt/in)
\fill[white] (NA) circle (3);% same here for circle A
\end{scope}% end the scope to be able to draw something outside its clip area
% get the intersection points between circles A and B:
\path[name intersections={of=A and C}];
\begin{scope}[fill opacity=0]% put some solid dots at the intersecting points:
\fill (intersection-2) circle (3pt) node[below=3pt]{SQ};
\end{scope}
\node at (-4,3.5) {\LARGE\textbf{A}};
\node at (-0.5,1) {\LARGE\textbf{B}};
\node at (3,4) {\LARGE\textbf{C}};
\end{scope}
% Point a
\coordinate (a) at (-4.5,0);
\fill (a) circle [radius=3pt];
\node [below] at (a) {$A$};
% Point b
\coordinate (b) at (-1,0);
\fill (b) circle [radius=3pt];
\node [below] at (b) {$B$};
% Point c
\coordinate (c) at (1.5,0);
\fill (c) circle [radius=3pt];
\node [below] at (c) {$C$};
\draw (a) -- (b);
\draw (a) -- (c);
% get the intersection points between circles A and B:
\path[name intersections={of=A and B}];
\begin{scope}[fill opacity=1]% put some solid dots at the intersecting points:
\fill (intersection-1) circle (3pt) node[above=3pt]{SQ1};
\end{scope}
% get the intersection points between circles A and B:
\path[name intersections={of=A and B}];
\begin{scope}[fill opacity=1]% put some solid dots at the intersecting points:
\fill (intersection-2) circle (3pt) node[below=3pt]{SQ2};
\end{scope}
\node at ([yshift=-7mm] current bounding box.south)
{
\begin{tabular}{r@{: }l r@{: }l}
$Green$ & Veto Player A Indifference Curve & $Blue& Veto Player B Indifference Curve & Pink& Veto Player C Indifference Curve &
$SQ& Status Quo & $White& Winset Area of A-C = Winset Area of A-B-C
\end{tabular}
};
\end{tikzpicture}
\end{figure}
\end{document}