Skip to content

Instantly share code, notes, and snippets.

View pjohansson's full-sized avatar

Petter Johansson pjohansson

View GitHub Profile
@pjohansson
pjohansson / GMXRC.fish
Last active September 26, 2021 12:52
GMXRC file for the Fish shell. Add to `$GROMACS/bin` directory and source to set path and variables.
##########################################################
# Utilitary functions
##########################################################
function __gmxrc_replace_in_path --description="remove all occurrences of a value from a path variable, then prepend a new value to it"
if test (count $argv) -lt 2
return
end
set -l variable_name $argv[1]
set -l new_value $argv[2]
@pjohansson
pjohansson / skolar.sty
Created June 16, 2017 21:48
Styling which (in a roundabout way) implements the Skolar (PE) typeface for XeLaTeX
\usepackage{mathspec}
\usepackage{adjustbox}
\setmainfont{Skolar PE TEST}
\setmathfont(Digits,Latin,Greek){Skolar PE TEST}
\setsansfont{Skolar Sans Latin}
%%%%%%%%%%%%%%%%%%%%%
% OpenType Features %
%%%%%%%%%%%%%%%%%%%%%