add text box for meal planner

This commit is contained in:
2026-09-10 10:51:53 -05:00
parent fce0dc16a7
commit 2855cef45b
2 changed files with 38 additions and 35 deletions
+29 -27
View File
@@ -5,38 +5,40 @@
\hfuzz=\maxdimen
\hbadness=10000
\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[utf8]{inputenc}
\usepackage[%
papersize={5.5in,8.5in},
margin=15mm,
top=5mm,
bottom=5mm
papersize={5.5in,8.5in},
margin=15mm,
top=5mm,
bottom=5mm
]{geometry}
\newcommand{\paste}{
\noindent
\begin{tblr}{width = \textwidth,
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{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
columns = {0.3\textwidth,c}}
\\Breakfast & Lunch & Supper\\ \\
\\Breakfast & Lunch & Supper\\ \\
\\Breakfast & Lunch & Supper\\ \\
\\Breakfast & Lunch & Supper\\ \\
\\Breakfast & Lunch & Supper\\ \\
\\Breakfast & Lunch & Supper\\ \\
\\Breakfast & Lunch & Supper\\ \\
\end{tblr}
\newcounter{mealday}
\newcommand{\paste}{\noindent\begin{tblr}{width = \textwidth,
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{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
columns = {0.3\textwidth,c}}
\\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\\ \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\\ \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\\ \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\\ \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\\ \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\\ \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}
}
\begin{document}
\pagestyle{empty}
{\fontfamily{lmss}\selectfont
\paste
\break
\paste
}\end{document}
\begin{Form}
\pagestyle{empty}
{\fontfamily{lmss}\selectfont
\paste\\
\paste
}
\end{Form}
\end{document}