1nTy / code.tex

a preference file for LaTeX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

code.tex

code.tex is a template for rendering codes in LaTeX with a nice looking syntax highlighting for most used languages.

Installation

All you need to do is add \input{\path\code.tex} before \begin{document} in your LaTeX document.

Usage

code.tex use this syntax:

\begin{code_<language>}
 ...
\end{code_<language>}

Example

\begin{code_c}
// B. Kernighan & D. Ritchie

#include <stdio.h>

int main(int argc, char *argv[])
{
    printf("hello, world\n");
}
\end{code_c}

screen

About

a preference file for LaTeX

License:MIT License


Languages

Language:TeX 100.0%