Skip to content

Instantly share code, notes, and snippets.

@FelipeCortez
Last active August 27, 2025 00:59
Show Gist options
  • Select an option

  • Save FelipeCortez/10729134 to your computer and use it in GitHub Desktop.

Select an option

Save FelipeCortez/10729134 to your computer and use it in GitHub Desktop.

Revisions

  1. FelipeCortez renamed this gist Apr 19, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. FelipeCortez revised this gist Apr 15, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.tex
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    \usepackage{listings}
    \usepackage{lstautogobble} % Fix relative indenting
    \usepackage{color} % Code coloring
    \usepackage{zi4} % Nice font
    \usepackage{zi4} % Nice font

    \definecolor{bluekeywords}{rgb}{0.13, 0.13, 1}
    \definecolor{greencomments}{rgb}{0, 0.5, 0}
  3. FelipeCortez created this gist Apr 15, 2014.
    31 changes: 31 additions & 0 deletions gistfile1.tex
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    \usepackage{listings}
    \usepackage{lstautogobble} % Fix relative indenting
    \usepackage{color} % Code coloring
    \usepackage{zi4} % Nice font

    \definecolor{bluekeywords}{rgb}{0.13, 0.13, 1}
    \definecolor{greencomments}{rgb}{0, 0.5, 0}
    \definecolor{redstrings}{rgb}{0.9, 0, 0}
    \definecolor{graynumbers}{rgb}{0.5, 0.5, 0.5}

    \usepackage{listings}
    \lstset{
    autogobble,
    columns=fullflexible,
    showspaces=false,
    showtabs=false,
    breaklines=true,
    showstringspaces=false,
    breakatwhitespace=true,
    escapeinside={(*@}{@*)},
    commentstyle=\color{greencomments},
    keywordstyle=\color{bluekeywords},
    stringstyle=\color{redstrings},
    numberstyle=\color{graynumbers},
    basicstyle=\ttfamily\footnotesize,
    frame=l,
    framesep=12pt,
    xleftmargin=12pt,
    tabsize=4,
    captionpos=b
    }