feat(emacs): tufte-latex

This commit is contained in:
2025-09-22 11:20:33 -06:00
parent 3814fa6760
commit 5f70c126c3
4 changed files with 47 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
sydnix.users.msyds.emacs = { sydnix.users.msyds.emacs = {
jinx.enable = true; jinx.enable = true;
tufte-latex.enable = true;
}; };
sydnix.emacs = { sydnix.emacs = {

View File

@@ -39,6 +39,7 @@
syd/org/transclusion syd/org/transclusion
syd/org/superstar syd/org/superstar
syd/org/noter syd/org/noter
syd/org/tufte-latex
syd/smartparens syd/smartparens
syd/snippets syd/snippets
syd/ptemplate syd/ptemplate

View File

@@ -0,0 +1,14 @@
;; -*- lexical-binding: t; -*-
(require 'syd/base)
(with-eval-after-load 'org
(add-to-list 'org-latex-classes
'("tufte-handout"
"\\documentclass{tufte-handout}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))))
(provide 'syd/org/tufte-latex)

View File

@@ -0,0 +1,31 @@
{ config, lib, pkgs, ... }:
let cfg = config.sydnix.users.msyds.emacs.tufte-latex;
in {
options.sydnix.users.msyds.emacs.tufte-latex = {
enable = lib.mkEnableOption "Tufte LaTeX";
};
config = lib.mkIf cfg.enable {
sydnix.emacs.tex.extraTexPackages = {
inherit (pkgs.texlive)
tufte-latex
xkeyval
changepage
fancyhdr
geometry
natbib
paralist
placeins
ragged2e
setspace
textcase
titlesec
xcolor
hardwrap
xifthen
catchfile
;
};
};
}