Skip to content

Instantly share code, notes, and snippets.

@spockz
Created June 28, 2011 21:11
Show Gist options
  • Select an option

  • Save spockz/1052218 to your computer and use it in GitHub Desktop.

Select an option

Save spockz/1052218 to your computer and use it in GitHub Desktop.
\documentclass{minimal}
\usepackage{minted}
\usepackage[LGR]{fontenc}
\usepackage{fontspec}
\begin{document}
Problem: β is not recognized. UTF8 characters have a red box surrounding them.
This is not really ruby, but hey.
\mint{ruby}|infl[β2] := {}|
\begin{minted}[showspaces]{python}
def boringØ (args = None):
pass
\end{minted}
\catcode`β=\active
\defβ{{\fontencoding{LGR}\selectfont b}}
And here the β character gets folded out.
\mint{ruby}|infl[β2] := {}|
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment