Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \newcommand{\Wedidthis}{% \legend{\textbf{Fonte:} O autor (\the\year).}
- \legend{\textbf{Fonte:} Os autores.}
- }
- %--------------------------------------------------------------------------------
- % Comando para inserir códigos - by @ruanmed
- %--------------------------------------------------------------------------------
- \usepackage{caption}
- \newenvironment{code}{\captionsetup{type=listing}}{}
- \SetupFloatingEnvironment{listing}{name=Código}
- \newcommand{\sourcecodenolist}[4]{
- \begin{code}
- \refstepcounter{sourcecode}
- \captionof{listing}{#1 }
- \label{code:#2}
- \inputminted[linenos, bgcolor=bg, tabsize=4,breaklines]{#3}{codes/#4}
- \Wedidthis
- \end{code}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement