org-latex-class basée sur tufte-handout
Publié le 19 août 2021 par Matthias David.
Voici une org-latex-class colorée et basée sur le style de tufte-handout pour la prise de notes sous emacs.
Capture d’écran
CODE
(add-to-list 'org-latex-classes '("tufnotes" "\\documentclass{tufte-handout} \\usepackage{xcolor} \\usepackage{graphicx} %% allow embedded images \\setkeys{Gin}{width=\\linewidth,totalheight=\\textheight,keepaspectratio} \\usepackage{amsmath} %% extended mathematics \\usepackage{booktabs} %% book-quality tables \\usepackage{units} %% non-stacked fractions and better unit spacing \\usepackage{multicol} %% multiple column layout facilities \\RequirePackage[many]{tcolorbox} \\usepackage{fancyvrb} %% extended verbatim environments \\fvset{fontsize=\\normalsize}%% default font size for fancy-verbatim environments \\definecolor{g1}{HTML}{077358} \\definecolor{g2}{HTML}{00b096} %%section format \\titleformat{\\section} {\\normalfont\\Large\\itshape\\color{g1}}%% format applied to label+text {\\llap{\\colorbox{g1}{\\parbox{1.5cm}{\\hfill\\color{white}\\thesection}}}}%% label {1em}%% horizontal separation between label and title body {}%% before the title body []%% after the title body %% subsection format \\titleformat{\\subsection}%% {\\normalfont\\large\\itshape\\color{g2}}%% format applied to label+text {\\llap{\\colorbox{g2}{\\parbox{1.5cm}{\\hfill\\color{white}\\thesubsection}}}}%% label {1em}%% horizontal separation between label and title body {}%% before the title body []%% after the title body \\newtheorem{note}{Note}[section] \\tcolorboxenvironment{note}{ boxrule=0pt, boxsep=2pt, colback={green!10}, enhanced jigsaw, borderline west={2pt}{0pt}{Green}, sharp corners, before skip=10pt, after skip=10pt, breakable, }" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))