Skip to content

Instantly share code, notes, and snippets.

@jonls
jonls / glpk_clean.h
Created September 18, 2015 20:42
swiglpk 1.2.3 bdist_wheel failure (Linux)
/* glpk.h (GLPK API) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
*
* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
* 2009, 2010, 2011, 2013, 2014 Andrew Makhorin, Department for Applied
* Informatics, Moscow Aviation Institute, Moscow, Russia. All rights
* reserved. E-mail: <[email protected]>.
*
@jonls
jonls / texmath2pdf
Created May 4, 2017 19:13
Generate PDF of XeTeX typeset math
#!/bin/bash
# Generate PDF of XeTeX typeset math.
xelatex <<EOF
\documentclass[border=1pt]{standalone}
\usepackage{unicode-math}
\setmathfont{Cambria Math}
\begin{document}
$\displaystyle
$1
$
@jonls
jonls / texchem2pdf
Created May 4, 2017 19:14
Generate PDF of XeTeX typeset chemical formula
#!/bin/bash
# Generate PDF of XeTeX typeset chemical formula.
xelatex <<EOF
\documentclass[border=1pt]{standalone}
\usepackage{unicode-math}
\setmathfont{Cambria Math}
\usepackage{chemformula}
\setchemformula{font-spec=Cambria}
\begin{document}
\ch{$1}