Really easy 3D graphics in LaTeX

Note: The word “easy” is relative to the other solutions I found for doing 3D graphics in LaTeX.

The following template is adapted from the annotated 3d box example.

% Template for drawing with tikz 3D package
\documentclass[]{article}
\usepackage{tikz}
\usetikzlibrary{3d}
 
\begin{document}
 
% Draw a 3D coordinate system
 
\begin{center}
\begin{tikzpicture}[x  = {(1cm,0cm)},
                    y  = {(0.4cm,0.6cm)},
                    z  = {(0cm,1cm)},
                    scale = 1,
                    color = {lightgray}]
 
\begin{scope}[canvas is xy plane at z=0]
  % x-axis
  \draw[blue,->] (0,0) -- (5,0) node (x-axis) [right] {$x$};
  % y-axis
  \draw[red,->] (0,0) -- (0,5) node (y-axis) [above] {$y$};
\end{scope}
 
\begin{scope}[canvas is yz plane at x=0]
  % z-axis
  \draw[green,->] (0,0) -- (0,5) node (z-axis) [above] {$z$};
\end{scope}
 
\end{tikzpicture}
\end{center}
\end{document}

Read more

Easy two column layout in latex

Include the packages. The blindtext package is just an easy way to type Lorem ipsum etc.

\usepackage{multicol}
\usepackage{blindtext}

Make a two column section of a page.

\begin{multicols}{2}[\textbf{Example for a two column text}]
\blindtext
\end{multicols}