Skip to content

trihedral/ArduinoLatexListing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArduinoLatexListing

A project to enable Arduino IDE syntax highlighting in LaTeX

Place arduinoLanguage.tex file in your working directory (next to the latex file you're working on).
To add it to your project, place:

\input{arduinoLanguage.tex}  

somewhere before \begin{document} in your latex file.

In your document, place your arduino code between:

\begin{lstlisting}[language=Arduino]  
    %% arduino code here %%  
\end{lstlisting}

Or create your own style to make changes like adding non-built-in functions and variables. After \input{arduinoLanguage.tex}, but before \begin{document}, place:

  \lstdefinestyle{myArduino}{  
    language=Arduino,  
    %% make listing changes here %%  
  }  

And in your document place your arduino code between:

  \begin{lstlisting}[style=myArduino]  
    %% arduino code here %%  
  \end{lstlisting}  

About

A project to enable Arduino IDE syntax highlighting in LaTeX

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages