Skip to content

Instantly share code, notes, and snippets.

@vermiculus
Created July 1, 2014 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vermiculus/95ea52de7399beb2fa8e to your computer and use it in GitHub Desktop.
Save vermiculus/95ea52de7399beb2fa8e to your computer and use it in GitHub Desktop.
% arara: xelatex
\documentclass{article}
\usepackage{fontspec}
\setmonofont{Courier}
\usepackage{listings}
\lstset{
basicstyle=\ttfamily,
language=bash,
frame=tb,
}
\begin{document}
\begin{lstlisting}[float,caption={Hello, World!}]
$ echo "Hello, World!"
\end{lstlisting}
\end{document}
% Local Variables:
% TeX-engine: xetex
% TeX-PDF-mode: t
% End:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment