将两张 tikz 图片并排放置 LaTeX
Place two tikzpictures next to eachother LaTeX
我希望在 LaTeX 中放置两个 tikzpitctures side-by-side。有人知道实现这一目标的可靠方法吗?如果没有,是否有另一种创建 side-by-side 维恩图的方法?
代码:
% %%%%%%%%%%%%%%%%%%%
\section*{Question 1}
% %%%%%%%%%%%%%%%%%%%
{\bfseries Determine the relationship between $P = (A-B)-C$ and $Q = (A-C)-(B-C)$}
{\bfseries Answer: $P = Q$}
% %%%%%%%%%%%%%%%%%%%
\subsection*{Justification 1: Venn Diagram}
% %%%%%%%%%%%%%%%%%%%
\def\firstcircle{ (0.0, 0.0) circle (1.5)}
\def\secondcircle{(2.0, 0.0) circle (1.5)}
\def\thirdcircle{ (1.0,-1.5) circle (1.5)}
\def\rectangle{ (-1.5,-3.0) rectangle (3.5,1.0) }
\colorlet{circle edge}{black}
\colorlet{circle area}{blue!30}
\tikzset{filled/.style={fill=circle area, draw=circle edge, thick},
outline/.style={draw=circle edge, thick}}
\begin{tikzpicture}
\begin{scope}
\fill[filled] \firstcircle;
\fill[white] \secondcircle;
\fill[white] \thirdcircle;
\end{scope}
\draw[outline] \firstcircle node[left] {$A$};
\draw[outline] \secondcircle node[right] {$B$};
\draw[outline] \thirdcircle node[below] {$C$};
\node[anchor=south] at (current bounding box.north)
{$P = (A - B) - C$};
\end{tikzpicture}
\begin{tikzpicture}
\begin{scope}
\fill[filled] \firstcircle;
\fill[white] \secondcircle;
\fill[white] \thirdcircle;
\end{scope}
\draw[outline] \firstcircle node[left] {$A$};
\draw[outline] \secondcircle node[right] {$B$};
\draw[outline] \thirdcircle node[below] {$C$};
\node[anchor=south] at (current bounding box.north)
{$Q = (A - C) - (B - C)$};
\end{tikzpicture}
\pagebreak
结果:
您通过在两张图片之间留空行来强制将两张图片放在不同的行中。对于乳胶,空行表示新段落的开始。
\documentclass{article}
\usepackage{tikz}
\begin{document}
% %%%%%%%%%%%%%%%%%%%
\section*{Question 1}
% %%%%%%%%%%%%%%%%%%%
{\bfseries Determine the relationship between $P = (A-B)-C$ and $Q = (A-C)-(B-C)$}
{\bfseries Answer: $P = Q$}
% %%%%%%%%%%%%%%%%%%%
\subsection*{Justification 1: Venn Diagram}
% %%%%%%%%%%%%%%%%%%%
\def\firstcircle{ (0.0, 0.0) circle (1.5)}
\def\secondcircle{(2.0, 0.0) circle (1.5)}
\def\thirdcircle{ (1.0,-1.5) circle (1.5)}
\def\rectangle{ (-1.5,-3.0) rectangle (3.5,1.0) }
\colorlet{circle edge}{black}
\colorlet{circle area}{blue!30}
\tikzset{filled/.style={fill=circle area, draw=circle edge, thick},
outline/.style={draw=circle edge, thick}}
\begin{tikzpicture}
\begin{scope}
\fill[filled] \firstcircle;
\fill[white] \secondcircle;
\fill[white] \thirdcircle;
\end{scope}
\draw[outline] \firstcircle node[left] {$A$};
\draw[outline] \secondcircle node[right] {$B$};
\draw[outline] \thirdcircle node[below] {$C$};
\node[anchor=south] at (current bounding box.north)
{$P = (A - B) - C$};
\end{tikzpicture}
%
\begin{tikzpicture}
\begin{scope}
\fill[filled] \firstcircle;
\fill[white] \secondcircle;
\fill[white] \thirdcircle;
\end{scope}
\draw[outline] \firstcircle node[left] {$A$};
\draw[outline] \secondcircle node[right] {$B$};
\draw[outline] \thirdcircle node[below] {$C$};
\node[anchor=south] at (current bounding box.north)
{$Q = (A - C) - (B - C)$};
\end{tikzpicture}
\pagebreak
\end{document}
你总能画出巨大的
网格,我有这个确切的问题......我画了一个网格,
特别是如果你的计划是一个进展,其中大多数事情保持不变..但是每个新图像都有一些变化......就像卡通......当你复制新图片时你只会改变坐标..
space一切都非常容易,并根据您的审美进行定制...
您甚至可以在网格上使用不同的步长。
绘制完总体方案后,将网格线更改为白色,它不会显示在渲染的 pdf 中..
希望对您有所帮助
我希望在 LaTeX 中放置两个 tikzpitctures side-by-side。有人知道实现这一目标的可靠方法吗?如果没有,是否有另一种创建 side-by-side 维恩图的方法?
代码:
% %%%%%%%%%%%%%%%%%%%
\section*{Question 1}
% %%%%%%%%%%%%%%%%%%%
{\bfseries Determine the relationship between $P = (A-B)-C$ and $Q = (A-C)-(B-C)$}
{\bfseries Answer: $P = Q$}
% %%%%%%%%%%%%%%%%%%%
\subsection*{Justification 1: Venn Diagram}
% %%%%%%%%%%%%%%%%%%%
\def\firstcircle{ (0.0, 0.0) circle (1.5)}
\def\secondcircle{(2.0, 0.0) circle (1.5)}
\def\thirdcircle{ (1.0,-1.5) circle (1.5)}
\def\rectangle{ (-1.5,-3.0) rectangle (3.5,1.0) }
\colorlet{circle edge}{black}
\colorlet{circle area}{blue!30}
\tikzset{filled/.style={fill=circle area, draw=circle edge, thick},
outline/.style={draw=circle edge, thick}}
\begin{tikzpicture}
\begin{scope}
\fill[filled] \firstcircle;
\fill[white] \secondcircle;
\fill[white] \thirdcircle;
\end{scope}
\draw[outline] \firstcircle node[left] {$A$};
\draw[outline] \secondcircle node[right] {$B$};
\draw[outline] \thirdcircle node[below] {$C$};
\node[anchor=south] at (current bounding box.north)
{$P = (A - B) - C$};
\end{tikzpicture}
\begin{tikzpicture}
\begin{scope}
\fill[filled] \firstcircle;
\fill[white] \secondcircle;
\fill[white] \thirdcircle;
\end{scope}
\draw[outline] \firstcircle node[left] {$A$};
\draw[outline] \secondcircle node[right] {$B$};
\draw[outline] \thirdcircle node[below] {$C$};
\node[anchor=south] at (current bounding box.north)
{$Q = (A - C) - (B - C)$};
\end{tikzpicture}
\pagebreak
结果:
您通过在两张图片之间留空行来强制将两张图片放在不同的行中。对于乳胶,空行表示新段落的开始。
\documentclass{article}
\usepackage{tikz}
\begin{document}
% %%%%%%%%%%%%%%%%%%%
\section*{Question 1}
% %%%%%%%%%%%%%%%%%%%
{\bfseries Determine the relationship between $P = (A-B)-C$ and $Q = (A-C)-(B-C)$}
{\bfseries Answer: $P = Q$}
% %%%%%%%%%%%%%%%%%%%
\subsection*{Justification 1: Venn Diagram}
% %%%%%%%%%%%%%%%%%%%
\def\firstcircle{ (0.0, 0.0) circle (1.5)}
\def\secondcircle{(2.0, 0.0) circle (1.5)}
\def\thirdcircle{ (1.0,-1.5) circle (1.5)}
\def\rectangle{ (-1.5,-3.0) rectangle (3.5,1.0) }
\colorlet{circle edge}{black}
\colorlet{circle area}{blue!30}
\tikzset{filled/.style={fill=circle area, draw=circle edge, thick},
outline/.style={draw=circle edge, thick}}
\begin{tikzpicture}
\begin{scope}
\fill[filled] \firstcircle;
\fill[white] \secondcircle;
\fill[white] \thirdcircle;
\end{scope}
\draw[outline] \firstcircle node[left] {$A$};
\draw[outline] \secondcircle node[right] {$B$};
\draw[outline] \thirdcircle node[below] {$C$};
\node[anchor=south] at (current bounding box.north)
{$P = (A - B) - C$};
\end{tikzpicture}
%
\begin{tikzpicture}
\begin{scope}
\fill[filled] \firstcircle;
\fill[white] \secondcircle;
\fill[white] \thirdcircle;
\end{scope}
\draw[outline] \firstcircle node[left] {$A$};
\draw[outline] \secondcircle node[right] {$B$};
\draw[outline] \thirdcircle node[below] {$C$};
\node[anchor=south] at (current bounding box.north)
{$Q = (A - C) - (B - C)$};
\end{tikzpicture}
\pagebreak
\end{document}
你总能画出巨大的 网格,我有这个确切的问题......我画了一个网格, 特别是如果你的计划是一个进展,其中大多数事情保持不变..但是每个新图像都有一些变化......就像卡通......当你复制新图片时你只会改变坐标..
space一切都非常容易,并根据您的审美进行定制...
您甚至可以在网格上使用不同的步长。
绘制完总体方案后,将网格线更改为白色,它不会显示在渲染的 pdf 中..
希望对您有所帮助