-
Notifications
You must be signed in to change notification settings - Fork 46
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 #6 from duetosymmetry/package
Overhaul to create a package, and address page size/margin issues
- Loading branch information
Showing
29 changed files
with
851 additions
and
433 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,45 @@ | ||
name: Build examples | ||
on: | ||
push: | ||
branches-ignore: | ||
- 'gh-action-result/examples' | ||
jobs: | ||
build_latex: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v2 | ||
- name: Compile LaTeX document | ||
uses: xu-cheng/latex-action@v2 | ||
with: | ||
working_directory: examples | ||
root_file: | | ||
dot-grid-10spi.tex | ||
dot-grid-5spi.tex | ||
engineer-pad.tex | ||
engineer-paper-8spi.tex | ||
graph-paper-8spi.tex | ||
graph-paper.tex | ||
grid-with-light-cones.tex | ||
hex-grid-large.tex | ||
hex-grid-small.tex | ||
isometric-grid.tex | ||
plum-graph-paper.tex | ||
precocious-young-engineer.tex | ||
quadrille-10spi.tex | ||
quadrille-8spi.tex | ||
red-graph.tex | ||
triangular-grid.tex | ||
- name: Commit to orphan branch | ||
run: | | ||
git checkout --orphan gh-action-result/examples | ||
git rm -rf . | ||
zip pdfs.zip examples/*.pdf | ||
git add pdfs.zip | ||
git -c user.name='GitHub Action' -c user.email='[email protected]' commit -m "Built examples" | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-action-result/examples | ||
force: true |
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,2 @@ | ||
*-*-*-fullpage.tex | ||
*-*-*-textarea.tex |
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,36 @@ | ||
LATEX = pdflatex -interaction=nonstopmode | ||
|
||
SOURCES = $(wildcard *.tex) | ||
SOURCESDEFAULT = $(wildcard *-default.tex) | ||
|
||
PDFS = $(SOURCES:.tex=.pdf) | ||
PDFSDEFAULT = $(SOURCESDEFAULT:.tex=.pdf) | ||
|
||
.PHONY: warn all tex-examples default | ||
|
||
warn: | ||
@echo "My default action is just to emit this message." | ||
@echo "Are you sure you want to build _all_ PDFs?" | ||
@echo "If so, use 'make all' to build all *.tex files in this directory." | ||
@echo "Run 'make tex-examples' to make the *.tex files from a template." | ||
@echo "Run 'make default' to compile only the *-default.tex files." | ||
|
||
all: $(PDFS) | ||
|
||
default: $(PDFSDEFAULT) | ||
|
||
tex-examples: | ||
./make-examples.sh | ||
|
||
%.pdf: %.tex | ||
$(LATEX) $< | ||
$(LATEX) $< | ||
|
||
.PHONY: clean reallyclean | ||
|
||
clean: | ||
rm -f *.aux *.log *.synctex.gz *~ | ||
|
||
reallyclean: clean | ||
rm -f *-*-*-*.tex | ||
rm -f *-*-*-*.pdf |
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,18 @@ | ||
\documentclass{article} | ||
|
||
\usepackage{xcolor} | ||
|
||
% See the documentation of the xcolor package to learn about different | ||
% color models for specifying colors | ||
\definecolor{mydeepgreen}{rgb}{0.07, 0.56, 0.04} | ||
|
||
% You can easily mix colors by using the ! syntax from xcolor. Here | ||
% we use it to mix 40% of our color with 60% white. | ||
\usepackage[pattern=majmin, | ||
majorcolor=mydeepgreen, | ||
minorcolor={mydeepgreen!40}]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[pattern=dot]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[pattern=dot, dotgridsize=0.2in]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[pattern=majmin, colorset=engineer]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[pattern=majmin, colorset=engineer, bgcolor=white]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[pattern=majmin]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[pattern=std]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../graphpaper.sty |
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,8 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[pattern=lightcone]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[pattern=hex, colorset=engineer, fullpage, geometry={letterpaper}]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[pattern=hex]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[pattern=hex, hexagonsize=0.0833in]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[pattern=iso]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
for pat in `grep -A1 "Allowed values for pattern" graphpaper.sty | tail -n1 | cut -d\{ -f2 | cut -d\} -f1 | tr , ' '`; do | ||
for col in `grep -A1 "Allowed values for colorset" graphpaper.sty | tail -n1 | cut -d\{ -f2 | cut -d\} -f1 | tr , ' '`; do | ||
for paper in letterpaper a4paper; do | ||
for area in fullpage textarea; do | ||
sed -e "s/%PATTERN%/${pat}/" \ | ||
-e "s/%COLORSET%/${col}/" \ | ||
-e "s/%PAPERSIZE%/${paper}/" \ | ||
-e "s/%AREA%/${area}/" \ | ||
template-complex.notex > ${pat}-${col}-${paper}-${area}.tex | ||
done | ||
done | ||
done | ||
sed -e "s/%PATTERN%/${pat}/" \ | ||
template-default.notex > ${pat}-default.tex | ||
done |
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,8 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[pattern=majmin, colorset=plumpad]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[pattern=majmin, colorset=precocious]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[pattern=std]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[pattern=stdeight]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[pattern=majmin, colorset=brickred]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[pattern=%PATTERN%, colorset=%COLORSET%, %AREA%, geometry={%PAPERSIZE%}]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[pattern=%PATTERN%]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[pattern=tri]{graphpaper} | ||
|
||
\begin{document} | ||
\thispagestyle{empty} | ||
~ | ||
\end{document} |
Oops, something went wrong.