From f404b064da6f8a5616e4d23a89c38955c68b6c9e Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 26 Dec 2024 18:54:08 +0100 Subject: [PATCH] embed file code --- latex/book/sections/section1.tex | 3 ++- latex/book/sections/section2.tex | 3 ++- latex/book/sections/section3.tex | 3 ++- latex/document/document.tex | 3 ++- latex/exam/test.tex | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) 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}