This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( function () { // start of anonymous wrapper function (needed to restrict variable scope on Opera) | |
// Opera does not support @match, so re-check that we're on SE chat before doing anything | |
// if ( location.hostname != 'slack.com' ) return; | |
// Baseline MathJax URL and config, copied from SE: | |
var mathJaxURL = "//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML-full"; | |
var config = { | |
"HTML-CSS": { preferredFont: "TeX", availableFonts: ["STIX","TeX"], linebreaks: { automatic:true }, EqnChunk: 50 }, | |
tex2jax: { inlineMath: [ ["$", "$"], ["\\\\(","\\\\)"] ], displayMath: [ ["$$","$$"], ["\\[", "\\]"] ], processEscapes: true, ignoreClass: "tex2jax_ignore|dno" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\def\testmode{old} | |
\def\testmode{new} | |
\usepackage{xifthen,url} | |
\newcommand{\ifnew}[2]{\ifthenelse{\equal{\testmode}{new}}{#1}{#2}} | |
\ifnew{% | |
\usepackage[backend=biber]{biblatex} |
NewerOlder