-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
258 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake .# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
\input{common_header_input.tex} | ||
\input{inputs/common_header_input.tex} | ||
|
||
\begin{document} | ||
\input{common_slides_input.tex} | ||
\input{inputs/common_slides_input.tex} | ||
\end{document} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
\input{common_header_input.tex} | ||
\input{inputs/common_header_input.tex} | ||
\usetheme[darkmode]{pureminimalistic} | ||
|
||
\begin{document} | ||
\input{common_slides_input.tex} | ||
\input{inputs/common_slides_input.tex} | ||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
\input{common_header_input.tex} | ||
\input{inputs/common_header_input.tex} | ||
\usetheme{pureminimalistic} | ||
|
||
\begin{document} | ||
\input{common_slides_input.tex} | ||
\input{inputs/common_slides_input.tex} | ||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
self, | ||
lib, | ||
stdenvNoCC, | ||
nix-filter, | ||
coreutils, | ||
findutils, | ||
version ? "git", | ||
tex-deps, | ||
use-lualatex ? false, | ||
use-pdflatex ? true, | ||
tex-directory ? "minimal_examples", | ||
}: | ||
# https://nixos.wiki/wiki/TexLive | ||
# https://flyx.org/nix-flakes-latex/ | ||
stdenvNoCC.mkDerivation rec { | ||
pname = "pure-minimalistic-${tex-directory}"; | ||
inherit version; | ||
|
||
src = nix-filter { | ||
root = ./..; | ||
include = [ | ||
# Include the "src" path relative to the root | ||
(nix-filter.lib.matchExt "sty") | ||
(nix-filter.lib.matchExt "bib") | ||
"logos/" | ||
"${tex-directory}/" | ||
]; | ||
}; | ||
|
||
# phases = ["unpackPhase" "buildPhase" "installPhase"]; | ||
|
||
buildInputs = [ | ||
tex-deps | ||
coreutils | ||
findutils | ||
# cntr is kinda broken. Requires these utils to be available | ||
# in buildinputs | ||
# cntr | ||
# breakpointHook | ||
# bash | ||
]; | ||
|
||
# TODO: Figure out how to wrap this in a shellchecker and with correct flags | ||
# -pretex="\pdfvariable suppressoptionalinfo 512\relax" \ # lualatex | ||
buildPhase = | ||
'' | ||
export PATH="${lib.makeBinPath buildInputs}"; | ||
mkdir -p .cache/texmf-var | ||
'' | ||
+ lib.optionalString (tex-directory != ".") '' | ||
mv ${tex-directory}/* . | ||
'' | ||
+ '' | ||
env TEXMFHOME=.cache TEXMFVAR=.cache/texmf-var \ | ||
SOURCE_DATE_EPOCH=${builtins.toString self.lastModified or 0} \ | ||
latexmk \ | ||
-file-line-error -interaction=nonstopmode \ | ||
-pdf \ | ||
'' | ||
+ lib.optionalString use-pdflatex '' | ||
-usepretex='\pdftrailerid{}' \ | ||
'' | ||
+ lib.optionalString use-lualatex '' | ||
-lualatex \ | ||
-usepretex='\pdfvariable suppressoptionalinfo 512\relax' \ | ||
'' | ||
+ '' | ||
*.tex | ||
''; | ||
|
||
installPhase = '' | ||
mkdir -p $out | ||
cp *.pdf $out/ | ||
''; | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.