Skip to content

Instantly share code, notes, and snippets.

View mcnees's full-sized avatar

Robert McNees mcnees

View GitHub Profile
@mcnees
mcnees / graph paper.tex
Last active February 16, 2024 08:34
Make your own quadrille, graph, hex, etc paper! Uses the pgf/TikZ package for LaTeX, which should be part of any modern TeX installation.
%%-----------------------------------------------------------------------
%% Make your own quadrille, graph, hex, etc paper!
%% Uses the pgf/TikZ package for LaTeX, which should be part of
%% any modern TeX installation.
%% Email: mcnees@gmail.com
%% Twitter: @mcnees
%%-----------------------------------------------------------------------
\documentclass[11pt]{article}
@misc{FormulasWebsite,
title = {Conventions, Definitions, Identities, and Formulas},
howpublished = "\url{http://jacobi.luc.edu/Useful.html#Variations}",
author = {McNees, Robert},
year = {2019},
note = {Accessed on August 1, 2022}
}
@mcnees
mcnees / GaussianSurfaces.tex
Created October 18, 2016 02:35
Gaussian Surfaces with PGF/TikZ
%
% Send comments to rmcnees@luc.edu, or @mcnees on Twitter.
%
\documentclass[11pt]{article}
% ------------------------------------------------
% Specify the margins.
% ------------------------------------------------
\usepackage{vmargin}
\setmargrb{2cm}{1cm}{2cm}{2cm}
@mcnees
mcnees / Example3.tex
Created September 10, 2017 20:39
Shaded hemisphere in perspective using PGF/TikZ
\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 / graph paper.tex
Created March 13, 2021 20:33
A .tex file that uses pgf/tikz to create a variety of graph papers.
%%-----------------------------------------------------------------------
%% Make your own quadrille, graph, hex, etc paper!
%% Uses the pgf/TikZ package for LaTeX, which should be part of
%% any modern TeX installation.
%%
%% All the values here are hardcoded for letter size paper.
%%
%% This is the original standalone .tex file. The project is in the
%% process of being converted to a LaTeX package.
%%
@mcnees
mcnees / PoincareUHP.tex
Created December 1, 2020 17:29
Diagram of geodesics in the Poincare Upper Half-Plane
%% --------------------------------------------------------------
%% Code for the diagram in a twitter thread about Lobachevsky.
%% Tweet: https://twitter.com/mcnees/status/1333812403218354177
%% --------------------------------------------------------------
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{mathrsfs}
@mcnees
mcnees / UAO.tex
Created October 18, 2016 14:13
Spacetime diagrams for uniformly accelerated observers in LaTeX, using PGF/TikZ
%----------------------------------------------------------------------
% 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
%----------------------------------------------------------------------
@mcnees
mcnees / AlignmentGrid.tex
Created September 14, 2019 20:14
A 3x3 alignment grid for doing the meme
\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
\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}}
@mcnees
mcnees / Twin.tex
Created November 26, 2017 18:54
Visual resolution of the twin paradox in special relativity
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{decorations.markings}
\usepackage{tikz-3dplot}