Author SHA1 Message Date
david 2855cef45b add text box for meal planner 2026-09-10 10:51:53 -05:00
david fce0dc16a7 Merge pull request 'add Buttermilk biscuits' (#2) from buttermilk-biscuits into master
Reviewed-on: #2
2026-09-02 16:15:07 -05:00
2 changed files with 38 additions and 35 deletions
+19 -17
View File
@@ -5,7 +5,7 @@
\hfuzz=\maxdimen \hfuzz=\maxdimen
\hbadness=10000 \hbadness=10000
\documentclass{article} \documentclass{article}
\usepackage{xcolor,environ,lipsum,fontawesome5,calc,tikz,tabularray,graphicx,microtype,lmodern} \usepackage{xcolor,environ,lipsum,fontawesome5,calc,tikz,tabularray,graphicx,microtype,lmodern,hyperref}
\usepackage[T1]{fontenc} \usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
\usepackage[% \usepackage[%
@@ -15,28 +15,30 @@
bottom=5mm bottom=5mm
]{geometry} ]{geometry}
\newcommand{\paste}{ \newcounter{mealday}
\noindent
\begin{tblr}{width = \textwidth, \newcommand{\paste}{\noindent\begin{tblr}{width = \textwidth,
vline{2,3} = {3,6,9,12,15,18,21}{solid}, % vertical lines vline{2,3} = {3,6,9,12,15,18,21}{solid}, % vertical lines
hline{2,5,8,11,14,17,20} = {2}{dotted}, % horizontal lines above Lunch hline{2,5,8,11,14,17,20} = {2}{dotted}, % horizontal lines above Lunch
hline{3,4,6,7,9,10,12,13,15,16,18,19,21,22} = {solid}, % horizontal lines above text boxes hline{3,4,6,7,9,10,12,13,15,16,18,19,21,22} = {solid}, % horizontal lines above text boxes
row{3,6,9,12,15,18,21} = {4.6em}, % the text boxes to write in row{3,6,9,12,15,18,21} = {4.6em}, % the text boxes to write in
columns = {0.3\textwidth,c}} columns = {0.3\textwidth,c}}
\\Breakfast & Lunch & Supper\\ \\ \\Breakfast & Lunch & Supper\\ \stepcounter{mealday}\TextField[name=B\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{} & \TextField[name=L\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{} & \TextField[name=S\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{}\\
\\Breakfast & Lunch & Supper\\ \\ \\Breakfast & Lunch & Supper\\ \stepcounter{mealday}\TextField[name=B\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{} & \TextField[name=L\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{} & \TextField[name=S\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{}\\
\\Breakfast & Lunch & Supper\\ \\ \\Breakfast & Lunch & Supper\\ \stepcounter{mealday}\TextField[name=B\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{} & \TextField[name=L\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{} & \TextField[name=S\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{}\\
\\Breakfast & Lunch & Supper\\ \\ \\Breakfast & Lunch & Supper\\ \stepcounter{mealday}\TextField[name=B\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{} & \TextField[name=L\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{} & \TextField[name=S\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{}\\
\\Breakfast & Lunch & Supper\\ \\ \\Breakfast & Lunch & Supper\\ \stepcounter{mealday}\TextField[name=B\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{} & \TextField[name=L\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{} & \TextField[name=S\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{}\\
\\Breakfast & Lunch & Supper\\ \\ \\Breakfast & Lunch & Supper\\ \stepcounter{mealday}\TextField[name=B\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{} & \TextField[name=L\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{} & \TextField[name=S\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{}\\
\\Breakfast & Lunch & Supper\\ \\ \\Breakfast & Lunch & Supper\\ \stepcounter{mealday}\TextField[name=B\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{} & \TextField[name=L\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{} & \TextField[name=S\themealday,width=\linewidth,height=4.4em,multiline=true,bordercolor=,backgroundcolor=]{}\\
\end{tblr} \end{tblr}
} }
\begin{document} \begin{document}
\pagestyle{empty} \begin{Form}
{\fontfamily{lmss}\selectfont \pagestyle{empty}
\paste {\fontfamily{lmss}\selectfont
\break \paste\\
\paste \paste
}\end{document} }
\end{Form}
\end{document}
+9 -8
View File
@@ -2,6 +2,7 @@
cd "$(dirname "$0")" cd "$(dirname "$0")"
# these are so that later it can be edited through the web on gitea and automagically recompile without having to run anything on the webserver manually. MUST be commented out when modifying/running locally. I'm not gonna maintain two copies just for that automation, especially while I'm still actively creating stuff # these are so that later it can be edited through the web on gitea and automagically recompile without having to run anything on the webserver manually. MUST be commented out when modifying/running locally. I'm not gonna maintain two copies just for that automation, especially while I'm still actively creating stuff
#git stash
#git fetch --all #git fetch --all
#git reset --hard origin/master #git reset --hard origin/master
@@ -10,15 +11,15 @@ pdflatex -file-line-error -interaction nonstopmode -draftmode -shell-escape -job
pdflatex -file-line-error -interaction nonstopmode -shell-escape -jobname=Recipes main.tex pdflatex -file-line-error -interaction nonstopmode -shell-escape -jobname=Recipes main.tex
mv -v -t /home/david/fileshare/LaTeX/Recipes Recipes.pdf mv -v -t /home/david/fileshare/LaTeX/Recipes Recipes.pdf
#printf "\n-_-_-_-_-_-_-_-_- Meal Planner -_-_-_-_-_-_-_-_-\n" printf "\n-_-_-_-_-_-_-_-_- Meal Planner -_-_-_-_-_-_-_-_-\n"
#pdflatex -file-line-error -interaction nonstopmode -draftmode -shell-escape -jobname="Meal Planner" meal-planner.tex pdflatex -file-line-error -interaction nonstopmode -shell-escape -jobname="Meal Planner" meal-planner.tex
#pdflatex -file-line-error -interaction nonstopmode -shell-escape -jobname="Meal Planner" meal-planner.tex qpdf "Meal Planner.pdf" --pages . 2-3 -- --replace-input # easier than trying to figure out how to remove the blank pages it auto-creates lol
#mv -v -t /home/david/fileshare/LaTeX/Recipes "Meal Planner.pdf" mv -v -t /home/david/fileshare/LaTeX/Recipes "Meal Planner.pdf"
#printf "\n-_-_-_-_-_-_-_-_- Shopping list -_-_-_-_-_-_-_-_-\n" printf "\n-_-_-_-_-_-_-_-_- Shopping list -_-_-_-_-_-_-_-_-\n"
#pdflatex -file-line-error -draftmode -shell-escape -jobname="Shopping List" shopping-list.tex pdflatex -file-line-error -draftmode -shell-escape -jobname="Shopping List" shopping-list.tex
#pdflatex -file-line-error -shell-escape -jobname="Shopping List" shopping-list.tex pdflatex -file-line-error -shell-escape -jobname="Shopping List" shopping-list.tex
#mv -v -t /home/david/fileshare/LaTeX/Recipes "Shopping List.pdf" mv -v -t /home/david/fileshare/LaTeX/Recipes "Shopping List.pdf"
rm *.aux *.out *.log *.toc *.fls *.fdb_latexmk rm *.aux *.out *.log *.toc *.fls *.fdb_latexmk