Skip to content

Instantly share code, notes, and snippets.

Avatar

Robert McNees mcnees

View GitHub Profile
@mcnees
mcnees / Example5.tex
Created Sep 14, 2017
Shaded cylinder in perspective
View Example5.tex
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
% Some colors I like. The first six are modified versions of colors from
@mcnees
mcnees / milkshakeduck.tex
Created Sep 18, 2017
Milkshake Duck in LaTeX
View milkshakeduck.tex
% Requires latest version of tikzducks from github
% https://github.com/samcarter8/tikzducks
\documentclass{article}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\usepackage{tikzducks}
@mcnees
mcnees / RigidRocket.tex
Created Oct 26, 2017
Draw a spacetime diagram showing an accelerating rocket with constant proper length.
View RigidRocket.tex
\documentclass[border=10pt]{standalone}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{mathrsfs}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{decorations.markings}
@mcnees
mcnees / BarnAndPole.tex
Created Nov 26, 2017
A visual resolution of the barn-and-pole paradox of special relativity.
View BarnAndPole.tex
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{decorations.markings}
@mcnees
mcnees / Twin.tex
Created Nov 26, 2017
Visual resolution of the twin paradox in special relativity
View Twin.tex
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{decorations.markings}
\usepackage{tikz-3dplot}
@mcnees
mcnees / Example3.tex
Created Sep 10, 2017
Shaded hemisphere in perspective using PGF/TikZ
View Example3.tex
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
% Some colors I like. The first six are modified versions of colors from
View apsrev_cite_website.tex
\documentclass{revtex4-1}
\usepackage{hyperref}
\begin{filecontents}{\jobname.bib}
@unpublished{mcnees,
author = {{McNees}, Robert},
title = {Conventions, Definitions, Identities, and Formulas},
url = {http://jacobi.luc.edu/Useful.html},
note = {{http://jacobi.luc.edu/Useful.html}}
View ref.bib
@misc{ website:xxx,
author = “{Robert McNees}",
title = "Conventions, Definitions, Identities, and Formulas",
year = "2019",
url = "http://jacobi.luc.edu/Useful.html",
note = “[Accessed 8-September-2019]"
}
@mcnees
mcnees / AlignmentGrid.tex
Created Sep 14, 2019
A 3x3 alignment grid for doing the meme
View AlignmentGrid.tex
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
% Some colors I like. The first six are modified versions of colors from
@mcnees
mcnees / UAO.tex
Created Oct 18, 2016
Spacetime diagrams for uniformly accelerated observers in LaTeX, using PGF/TikZ
View UAO.tex
%----------------------------------------------------------------------
% Use TikZ/PGF to programmatically draw spacetime diagrams for
% uniformly accelerated observers. Set the acceleration, initial
% conditions, and other paramters below.
%
% Questions/Comments to Robert McNees at rmcnees@luc.edu
% http://jacobi.luc.edu
% @mcnees on Twitter
% January 2015, Updated October 2016
%----------------------------------------------------------------------