Skip to content

Commit

Permalink
Template reformatting
Browse files Browse the repository at this point in the history
Rewrite original 3-column template to use article class so it's more
flexible. Create new 4-column template based on the new template. Add
separate paginator TeX files to compile the single pages produced by
those templates.
  • Loading branch information
snay2 committed Jul 28, 2014
1 parent 7d1b69f commit 5691b1c
Show file tree
Hide file tree
Showing 4 changed files with 285 additions and 23 deletions.
44 changes: 21 additions & 23 deletions template.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[10pt,nofoldmark,notumble]{leaflet}
\documentclass[10pt]{article}
% paperwidth must be for each panel, thus 14/3=4.66
\usepackage[paperwidth=4.66in, paperheight=8.5in, margin=.3in]{geometry}

Expand All @@ -11,14 +11,14 @@
% example: \ThisCenterWallPaper{0.75}{../images/bike-wheel2.png}
\usepackage{multirow} % for multi-row cells in tabularx \multirow{2}{*}{hi}

% The following were taken care of automatically by leaflet package:
\usepackage{parskip} % disable paragraph indents when using article class
\usepackage[compact]{titlesec} % reduce space after headings
\setlength{\parskip}{1ex}

\MakeOuterQuote{"}
\renewcommand{\familydefault}{\sfdefault} % use a sans-serif font

% my own version of cutline and foldmark
\AddToBackground{1}{
\put(0,0){\rotatebox{90}{\makebox(\LenToUnit{.5in},0){
\normalsize\dotfill}}}}

\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand All @@ -41,15 +41,15 @@
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Today at Church}
\section*{Today at Church}
\subsection{Gospel Doctrine}
\subsection*{Gospel Doctrine}
$sunday_school.this_week
\subsection{Priesthood and Relief Society}
\subsection*{Priesthood and Relief Society}
$priesthood_rs.this_week
\subsection{Primary}
\subsection*{Primary}
The following children have assignments in Opening Exercises:
\renewcommand{\arraystretch}{1} % decrease space between table rows
Expand All @@ -68,15 +68,15 @@ \subsection{Primary}
\end{tabularx}
\vspace{\fill}
\section{Next Week at Church}
\section*{Next Week at Church}
\subsection{Gospel Doctrine}
\subsection*{Gospel Doctrine}
$sunday_school.next_week
\subsection{Priesthood and Relief Society}
\subsection*{Priesthood and Relief Society}
$priesthood_rs.next_week
\subsection{Primary}
\subsection*{Primary}
The following children will have assignments in Opening Exercises:
\renewcommand{\arraystretch}{1} % decrease space between table rows
Expand Down Expand Up @@ -105,10 +105,9 @@ \subsection{Primary}
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Organizations}
\section*{Organizations}
#for $org in $orgs
\subsection{$org['name']}
\subsection*{$org['name']}
$org['descr']
#end for
Expand All @@ -129,20 +128,18 @@ \subsection{$org['name']}
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Sacrament Meeting}
\section*{Sacrament Meeting}
\renewcommand{\arraystretch}{1.75} % increase space between table rows
\begin{tabular}{ p{.3\linewidth} p{.6\linewidth} }
\begin{tabular}{ p{.25\linewidth} p{.65\linewidth} }
\textbf{Presiding} & $presiding \\
\textbf{Conducting} & $conducting \\
\textbf{Music Director} & $music_director \\
\textbf{Organist} & $organist \\
& \\
\hline
& \\
\textbf{Welcome} & $conducting \\
\textbf{Opening Hymn} & $opening_hymn \\
\textbf{Invocation} & $invocation \\
\textbf{Ward Business} & $conducting \\
\textbf{Sacrament Hymn} & $sacrament_hymn \\
& \\
\multicolumn{2}{c}{\textit{\large{Administration of the Sacrament}}} \\
Expand Down Expand Up @@ -179,9 +176,9 @@ \section{Sacrament Meeting}
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Calendar}
\section*{Calendar}
\renewcommand{\arraystretch}{1.75} % increase space between table rows
\begin{tabular}{ p{.3\linewidth} p{.6\linewidth}}
\begin{tabular}{ p{.25\linewidth} p{.65\linewidth}}
\textbf{Date and Time} & \textbf{Event} \\
\hline
\multicolumn{2}{c}{\textbf{This week}} \\
Expand All @@ -204,6 +201,7 @@ \section{Calendar}
#end if
\\
#end for
\\
\hline
\multicolumn{2}{c}{\textbf{Next week}} \\
Expand Down
248 changes: 248 additions & 0 deletions template4.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,248 @@
\documentclass[10pt]{article}
% paperwidth must be for each panel, thus 14/4=3.5
\usepackage[paperwidth=3.5in, paperheight=8.5in, margin=.2in]{geometry}

\usepackage{url} % for URL formatting
\usepackage{graphicx} % for images
\usepackage{tabularx} % for Primary assignments table
\usepackage{paralist} % for "compactitem" list type
\usepackage{csquotes} % for smart quotes
\usepackage{wallpaper} % for image watermarks
% example: \ThisCenterWallPaper{0.75}{../images/bike-wheel2.png}
\usepackage{multirow} % for multi-row cells in tabularx \multirow{2}{*}{hi}

% The following were taken care of automatically by leaflet package:
\usepackage{parskip} % disable paragraph indents when using article class
\usepackage[compact]{titlesec} % reduce space after headings
\setlength{\parskip}{1ex}

\MakeOuterQuote{"}
\renewcommand{\familydefault}{\sfdefault} % use a sans-serif font

\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{center}
{\huge \textbf{Anywhere First Ward}} \\
\vspace{1.5ex}
{\LARGE Anywhere Somewhere Stake} \\
\vspace{2.5ex}
{\Large $bulletin_date} \\
\end{center}
\vspace{\fill}
% trim is l b r t
\includegraphics[width=\linewidth, clip=true, trim=$image_trim_l $image_trim_b $image_trim_r $image_trim_t ]{$image_src}
\vspace{2ex}
\vspace{\fill}
$front_quote
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section*{Sacrament Meeting}
\renewcommand{\arraystretch}{1.75} % increase space between table rows
\begin{tabular}{ p{.4\linewidth} p{.5\linewidth} }
\textbf{Presiding} & $presiding \\
\textbf{Conducting} & $conducting \\
\textbf{Music Director} & $music_director \\
\textbf{Organist} & $organist \\
& \\
\hline
& \\
\textbf{Opening Hymn} & $opening_hymn \\
\textbf{Invocation} & $invocation \\
\textbf{Sacrament Hymn} & $sacrament_hymn \\
& \\
\multicolumn{2}{c}{\textit{\large{Administration of the Sacrament}}} \\
& \\
#if $has_testimonies
\multicolumn{2}{c}{\textit{\large{Bearing of Testimonies}}} \\
& \\
#else
#for $speaker in $speakers_before
\textbf{$speaker.type} & $speaker.name \\
#end for
#if $has_musical_num
\textbf{Musical Number} & $mn_title \newline
\textit{$mn_group}
#if $mn_director
\newline \textit{Directed by $mn_director}
#end if
#if $mn_accompanist
\newline \textit{Accompanied by $mn_accompanist}
#end if
\\
#end if
#if $has_rest_hymn
\textbf{Intermediate Hymn} & $rest_hymn \\
#end if
#for $speaker in $speakers_after
\textbf{$speaker.type} & $speaker.name \\
#end for
#end if
\textbf{Closing Hymn} & $closing_hymn \\
\textbf{Benediction} & $benediction \\
\end{tabular} \\
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section*{Calendar}
\renewcommand{\arraystretch}{1.75} % increase space between table rows
\begin{tabular}{ p{.25\linewidth} p{.65\linewidth}}
\textbf{Date/Time} & \textbf{Event} \\
\hline
\multicolumn{2}{c}{\textbf{This week}} \\
\hline
#for $event in $calendar['this_week']
#if 'date_override' in $event
$event['date_override']
#else
$event['date']
#end if
#if $event['time']
\newline @ $event['time']
#end if
& \textbf{$event['title']}
#if $event['place']
\newline \textit{$event['place']}
#end if
#if $event['descr']
\newline $event['descr']
#end if
\\
#end for
\hline
\multicolumn{2}{c}{\textbf{Next week}} \\
\hline
#for $event in $calendar['next_week']
#if 'date_override' in $event
$event['date_override']
#else
$event['date']
#end if
#if $event['time']
\newline @ $event['time']
#end if
& \textbf{$event['title']}
#if $event['place']
\newline \textit{$event['place']}
#end if
#if $event['descr']
\newline $event['descr']
#end if
\\
#end for
\hline
\end{tabular}
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Use this panel for weekly or monthly content
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Use this panel for weekly or monthly content
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section*{Primary}
$primary['next_week']['theme']
\vspace{2em}
\subsection*{This Week}
\renewcommand{\arraystretch}{1.3} % decrease space between table rows
\begin{tabular}{ p{.3\linewidth} p{.6\linewidth} }
\hline
\multicolumn{2}{c}{\textbf{Junior Primary}} \\
\hline
Prayer & $primary['this_week']['junior_o_prayer'] \\
Scripture & $primary['this_week']['junior_scripture'] \\
Talk & $primary['this_week']['junior_talk'] \\
\hline
\multicolumn{2}{c}{\textbf{Senior Primary}} \\
\hline
Opening Prayer & $primary['this_week']['senior_o_prayer'] \\
Scripture & $primary['this_week']['senior_scripture'] \\
Talk & $primary['this_week']['senior_talk'] \\
Closing Prayer & $primary['this_week']['senior_c_prayer'] \\
\hline
\end{tabular}
\vspace{2em}
\subsection*{Next Week}
\renewcommand{\arraystretch}{1.3} % decrease space between table rows
\begin{tabular}{ p{.3\linewidth} p{.6\linewidth} }
\hline
\multicolumn{2}{c}{\textbf{Junior Primary}} \\
\hline
Prayer & $primary['next_week']['junior_o_prayer'] \\
Scripture & $primary['next_week']['junior_scripture'] \\
Talk & $primary['next_week']['junior_talk'] \\
\hline
\multicolumn{2}{c}{\textbf{Senior Primary}} \\
\hline
Opening Prayer & $primary['next_week']['senior_o_prayer'] \\
Scripture & $primary['next_week']['senior_scripture'] \\
Talk & $primary['next_week']['senior_talk'] \\
Closing Prayer & $primary['next_week']['senior_c_prayer'] \\
\hline
\end{tabular}
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section*{Today at Church}
\subsection*{Gospel Doctrine}
$sunday_school.this_week
\subsection*{Priesthood and Relief Society}
$priesthood_rs.this_week
\vspace{2em}
\section*{Next Week at Church}
\subsection*{Gospel Doctrine}
$sunday_school.next_week
\subsection*{Priesthood and Relief Society}
$priesthood_rs.next_week
\vspace{\fill}
\textbf{Appointments with the bishop} Contact John Doe at 801-555-1212 or
\url{john@example.com}.
\textbf{Temple recommend interviews} \textit{Ward:} Sundays right after church.
\textit{Stake:} Tuesdays @ 7:00 pm
\textbf{Bulletin information} Please send all bulletin information by Friday
evening to \url{example@example.com}.
Find last week's bulletin at \url{lds.org/member-news}.
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section*{Organizations}
#for $org in $orgs
\subsection*{$org['name']}
$org['descr']
#end for
\clearpage
\end{document}
8 changes: 8 additions & 0 deletions templatepaginator.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
\documentclass{article}
\usepackage[legalpaper,landscape]{geometry}
\usepackage{pdfpages}

\begin{document}
\includepdf[pages={5,6,1},nup=3x1]{bulletin}
\includepdf[pages={2,3,4},nup=3x1]{bulletin}
\end{document}
8 changes: 8 additions & 0 deletions templatepaginator4.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
\documentclass{article}
\usepackage[legalpaper,landscape]{geometry}
\usepackage{pdfpages}

\begin{document}
\includepdf[pages={7,8,1,2},nup=4x1]{bulletin}
\includepdf[pages={3,4,5,6},nup=4x1]{bulletin}
\end{document}

0 comments on commit 5691b1c

Please sign in to comment.