Skip to content

Commit 1b703d6

Browse files
atticus-sullivanwalshyb
andauthoredJan 28, 2025··
chore: Improve generating examples/assets (#21)
* add an example makefile for being able to update the assets/examples * only use a single tex file to generate all examples * Update examples/Makefile Co-authored-by: Super <[email protected]> * regenerate examples+assets after rebase * use lowecase packagename to avoid warning --------- Co-authored-by: Super <[email protected]>
1 parent 56aeaee commit 1b703d6

13 files changed

+26
-366
lines changed
 

‎assets/frappe.webp

3.31 KB
Binary file not shown.

‎assets/preview.webp

-72.5 KB
Binary file not shown.

‎catppuccinpalette.pdf

-5 Bytes
Binary file not shown.

‎examples/Makefile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
STYLES := latte frappe macchiato mocha
2+
3+
.PHONY: all clean distclean
4+
5+
all: $(addsuffix .pdf, $(STYLES)) ../assets/preview.webp
6+
@echo -e "\nyou might need to run this multiple times if there are unresolved references"
7+
8+
$(addsuffix .pdf, $(STYLES)): %.pdf: main.tex
9+
pdflatex -jobname "$(basename $@)" main.tex
10+
11+
$(addsuffix .webp, $(STYLES)): %.webp: %.pdf
12+
convert -density 300 "$<" "$@"
13+
14+
$(addprefix ../assets/,$(addsuffix .webp, $(STYLES))): ../assets/%: %
15+
cp "$<" "$@"
16+
17+
../assets/preview.webp: $(addprefix ../assets/,$(addsuffix .webp, $(STYLES)))
18+
catwalk -o "$@" $(addprefix ../assets/,$(addsuffix .webp, $(STYLES)))
19+
20+
clean:
21+
-$(RM) *.aux *.log *.out
22+
23+
distclean: clean
24+
-$(RM) *.pdf *.webp

‎examples/frappe.pdf

-7 Bytes
Binary file not shown.

‎examples/frappe.webp

3.31 KB
Binary file not shown.

‎examples/latte.pdf

0 Bytes
Binary file not shown.

‎examples/latte.tex

-121
This file was deleted.

‎examples/macchiato.pdf

0 Bytes
Binary file not shown.

‎examples/macchiato.tex

-121
This file was deleted.

‎examples/frappe.tex ‎examples/main.tex

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
\documentclass[12pt,a4paper]{article}
22

3-
% Imports the catppuccin theme, using the frappe flavor,
3+
% Imports the catppuccin theme, using the latte flavor,
44
% from the directory above. Actual implementation
55
% wouldn't need the import package unless the theme
66
% and the document are in different directories.
77
\usepackage{import}
8-
\usepackage[frappe,styleAll]{catppuccinpalette}
8+
\usepackage[\jobname,styleAll]{catppuccinpalette}
99

1010
\usepackage{hyperref}
1111

@@ -57,7 +57,6 @@
5757

5858
\section{\textcolor{CtpSky}{Simple Paragraph}}
5959
\textcolor{CtpYellow}{This is what a simple paragraph looks like.} You can see that all the colors in this pallet complement each other and maintain an elegance all within the same proximity. The default text color is called \textbf{\textcolor{CtpGreen}{CtpText}} while the background color is called \textbf{\textcolor{CtpGreen}{CtpBase}}.
60-
\\
6160

6261
\begin{minipage}{0.47\linewidth}
6362
\section{\textcolor{CtpSky}{Hyperref}}

‎examples/mocha.pdf

0 Bytes
Binary file not shown.

‎examples/mocha.tex

-121
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.