Created
June 28, 2011 21:11
-
-
Save spockz/1052218 to your computer and use it in GitHub Desktop.
This file contains hidden or 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{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