diff --git a/latex/book/sections/section1.tex b/latex/book/sections/section1.tex index a6708cb..b22d36a 100644 --- a/latex/book/sections/section1.tex +++ b/latex/book/sections/section1.tex @@ -1,8 +1,9 @@ \documentclass[class=article]{standalone} % Code integration -%\usepackage{minted} +%\usepackage{minted,embedfile} %\usemintedstyle{emacs} +%\NewDocumentCommand{\code}{O{}mm}{\inputminted[#1]{#2}{#3}\embedfile{#3}} \begin{document} diff --git a/latex/book/sections/section2.tex b/latex/book/sections/section2.tex index 9c4b7aa..f14548e 100644 --- a/latex/book/sections/section2.tex +++ b/latex/book/sections/section2.tex @@ -1,8 +1,9 @@ \documentclass[class=article]{standalone} % Code integration -%\usepackage{minted} +%\usepackage{minted,embedfile} %\usemintedstyle{emacs} +%\NewDocumentCommand{\code}{O{}mm}{\inputminted[#1]{#2}{#3}\embedfile{#3}} \begin{document} diff --git a/latex/book/sections/section3.tex b/latex/book/sections/section3.tex index 80fc928..9e05af6 100644 --- a/latex/book/sections/section3.tex +++ b/latex/book/sections/section3.tex @@ -1,8 +1,9 @@ \documentclass[class=article]{standalone} % Code integration -%\usepackage{minted} +%\usepackage{minted,embedfile} %\usemintedstyle{emacs} +%\NewDocumentCommand{\code}{O{}mm}{\inputminted[#1]{#2}{#3}\embedfile{#3}} \begin{document} diff --git a/latex/document/document.tex b/latex/document/document.tex index 29a9dc4..f2a6ce8 100644 --- a/latex/document/document.tex +++ b/latex/document/document.tex @@ -7,9 +7,10 @@ \usepackage[nopatch=footnote]{microtype} % Code integration -%\usepackage{minted} +%\usepackage{minted,embedfile} %\setminted{autogobble,breaklines} %\usemintedstyle{emacs} +%\NewDocumentCommand{\code}{O{}mm}{\inputminted[#1]{#2}{#3}\embedfile{#3}} % Languages \usepackage[french]{babel} diff --git a/latex/exam/test.tex b/latex/exam/test.tex index c8c37de..8dae081 100644 --- a/latex/exam/test.tex +++ b/latex/exam/test.tex @@ -6,9 +6,10 @@ \usepackage{microtype} % Code integration -%\usepackage{minted} +%\usepackage{minted,embedfile} %\setminted{autogobble,breaklines} %\usemintedstyle{emacs} +%\NewDocumentCommand{\code}{O{}mm}{\inputminted[#1]{#2}{#3}\embedfile{#3}} % Languages \usepackage[french]{babel}