Init repo
This commit is contained in:
commit
44e31a0204
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
result*
|
6
README.md
Normal file
6
README.md
Normal file
@ -0,0 +1,6 @@
|
||||
# cletex2
|
||||
|
||||
|
||||
## Ressources
|
||||
|
||||
- https://www.latex-project.org/help/documentation/clsguide.pdf
|
7
build.lua
Normal file
7
build.lua
Normal file
@ -0,0 +1,7 @@
|
||||
module = "cletex2"
|
||||
|
||||
installfiles = {"tex/*.cls" }
|
||||
sourcefiles = installfiles
|
||||
unpackfiles = { }
|
||||
|
||||
typesetexe="lualatex"
|
27
flake.lock
Normal file
27
flake.lock
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1707451808,
|
||||
"narHash": "sha256-UwDBUNHNRsYKFJzyTMVMTF5qS4xeJlWoeyJf+6vvamU=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "442d407992384ed9c0e6d352de75b69079904e4e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
60
flake.nix
Normal file
60
flake.nix
Normal file
@ -0,0 +1,60 @@
|
||||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
};
|
||||
outputs = { self, nixpkgs, ... }: let
|
||||
forAllSystems = f: (nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (system: let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in f { inherit pkgs system; } ));
|
||||
in {
|
||||
packages = forAllSystems ({ pkgs, system, ...}: rec {
|
||||
cletex2 = pkgs.stdenvNoCC.mkDerivation {
|
||||
pname = "cletex2";
|
||||
version = "0.0.0";
|
||||
|
||||
outputs = [ "out" "tex" ];
|
||||
|
||||
src = ./.;
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
(texlive.withPackages (ps: with ps; [ l3build ]))
|
||||
];
|
||||
|
||||
unpackPhase = "";
|
||||
|
||||
dontConfigure = true;
|
||||
|
||||
buildPhase = ''
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
mkdir $tex
|
||||
TEXMFHOME=$tex l3build install
|
||||
'';
|
||||
};
|
||||
|
||||
cletex2-env = pkgs.texlive.withPackages (ps: with ps; [
|
||||
cletex2
|
||||
collection-langgerman
|
||||
collection-latex
|
||||
collection-luatex
|
||||
koma-script
|
||||
latexmk
|
||||
]);
|
||||
|
||||
cletex2mk = pkgs.writeShellApplication {
|
||||
name = "cletex2mk";
|
||||
runtimeInputs = [ self.packages.${system}.cletex2-env ];
|
||||
text = ''
|
||||
latexmk -lualatex -interaction=nonstopmode "$@"
|
||||
'';
|
||||
};
|
||||
});
|
||||
|
||||
hydraJobs = {
|
||||
inherit (self)
|
||||
packages;
|
||||
};
|
||||
};
|
||||
}
|
7
tex/cletex2-letter.cls
Normal file
7
tex/cletex2-letter.cls
Normal file
@ -0,0 +1,7 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{cletex2-letter}[2024-02-09]
|
||||
\LoadClass[a4paper,fromalign=right,fromrule=afteraddress]{scrlttr2}
|
||||
|
||||
\RequirePackage[ngerman]{babel}
|
||||
|
||||
\renewcommand*{\familydefault}{\sfdefault}
|
Loading…
Reference in New Issue
Block a user