Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TorbjornT/8c97a755c7efef7a04bc9c694ef22feb to your computer and use it in GitHub Desktop.
Save TorbjornT/8c97a755c7efef7a04bc9c694ef22feb to your computer and use it in GitHub Desktop.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{backgrounds}
\begin{document}
What you have now:
\tikz\fill[blue](0,0)circle(1); \kern-0.5cm\tikz \fill[red](0,0)circle(1);
What you want to do:
\begin{tikzpicture}
\fill[blue](0,0)circle(1);
\scoped[on background layer]
\fill[red](1.5,0)circle(1);
\end{tikzpicture}
My inconvenient, hacky suggestion:
\hspace{1.75cm}\tikz\fill[red](0,0)circle(1); \hspace{-3.75cm}\tikz \fill[blue](0,0)circle(1);
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment