Skip to content

Instantly share code, notes, and snippets.

View leingang's full-sized avatar

leingang

  • Department of Mathematics, Courant Institute of Mathematical Sciences, New York University @nyumathclinic
  • New York, New York
View GitHub Profile
@leingang
leingang / gist:c49cbf37100ecbb6e2f58ca7761ef712
Last active October 26, 2017 13:37
How to change @inc to point to a relative directory
use File::Basename qw(dirname);
use FindBin qw($Bin);
use lib dirname($Bin) . '/lib';
\documentclass[png]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}
% See http://tex.stackexchange.com/questions/276935/tikz-projection-parallel-to-given-line
\makeatletter
\tikzset{/tikz/parallel cs/.cd,
to line initial coordinate/.store in=\tikz@parallelcs@toA,
to line final coordinate/.store in=\tikz@parallelcs@toB,
@leingang
leingang / 2D.asy
Last active May 3, 2016 16:09
My first attempts at asymptote
settings.outformat="png";
settings.render=16;
size (10cm,0);
pair O = (0,0);
pair A = (sqrt(3),1);
pair B = (-sqrt(3),1);
pen surfacepen=rgb(0,0,0.8)+opacity(0.75);
pen notthere=opacity(0.5);
@leingang
leingang / only.tex
Last active August 29, 2015 14:11 — forked from anonymous/only.tex
\documentclass{beamer}
% http://tex.stackexchange.com/q/217628/1402
\begin{document}
\begin{frame}{Uncover}
\begin{itemize}
\item<1> a really long item, which takes up almost the entire page
\item<2> another item
\item<3> yet another one
\end{itemize}