-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from livewires/add-macro-pad-worksheet
Added worksheet
- Loading branch information
Showing
17 changed files
with
6,039 additions
and
0 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,23 @@ | ||
name: Build LaTeX document | ||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
jobs: | ||
build_latex: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v2 | ||
- name: Compile LaTeX document | ||
uses: dante-ev/latex-action@latest | ||
with: | ||
entrypoint: ./build.sh | ||
- name: Publish PDF | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: worksheets | ||
path: worksheets |
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 |
---|---|---|
|
@@ -29,3 +29,10 @@ fp-info-cache | |
# Exported BOM files | ||
*.xml | ||
*.csv | ||
|
||
# Latex files | ||
*.aux | ||
*.fdb_latexmk | ||
*.fls | ||
*.log | ||
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,10 @@ | ||
#!/bin/bash | ||
mkdir worksheets | ||
|
||
cd macropad/worksheet/ | ||
# This is a bit of a cheat, there's probably a better way of doing it. | ||
cp -r ../../worksheet-components/* ./ | ||
make | ||
|
||
cd ../../worksheets | ||
cp ../macropad/worksheet/worksheet.pdf ./macropad.pdf |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3,482 changes: 3,482 additions & 0 deletions
3,482
macropad/macropad-rev1/output/macropad-rev1-B_Cu_Oversized.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,39 @@ | ||
# You want latexmk to *always* run, because make does not have all the info. | ||
# Also, include non-file targets in .PHONY so they are run regardless of any | ||
# file of the given name existing. | ||
.PHONY: worksheet.pdf all clean | ||
|
||
# This should point at the relative path where the worsksheet components are | ||
export TEXINPUTS := .:../../worksheet-components/: | ||
|
||
# The first rule in a Makefile is the one executed by default ("make"). It | ||
# should always be the "all" rule, so that "make" and "make all" are identical. | ||
all: worksheet.pdf | ||
|
||
# CUSTOM BUILD RULES | ||
|
||
# In case you didn't know, '$@' is a variable holding the name of the target, | ||
# and '$<' is a variable holding the (first) dependency of a rule. | ||
# "raw2tex" and "dat2tex" are just placeholders for whatever custom steps | ||
# you might have. | ||
|
||
%.tex: %.raw | ||
./raw2tex $< > $@ | ||
|
||
%.tex: %.dat | ||
./dat2tex $< > $@ | ||
|
||
# MAIN LATEXMK RULE | ||
|
||
# -pdf tells latexmk to generate PDF directly (instead of DVI). | ||
# -pdflatex="" tells latexmk to call a specific backend with specific options. | ||
# -use-make tells latexmk to call make for generating missing files. | ||
|
||
# -interaction=nonstopmode keeps the pdflatex backend from stopping at a | ||
# missing file reference and interactively asking you for an alternative. | ||
|
||
worksheet.pdf: worksheet.tex | ||
latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" -use-make worksheet.tex | ||
|
||
clean: | ||
latexmk -CA |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.