%!TEX TS-program = lualatex
%!TEX encoding = UTF-8 Unicode

\documentclass[12pt]{memoir}
\usepackage{xpatch}

\setlength{\parindent}{0pt}
\setlength{\parskip}{1em}
\xpatchcmd{\verse}{\itemsep}{\advance\topsep-\parskip\itemsep}{}{}

\usepackage{pdfpages}
\usepackage[nofoot,nohead]{geometry}

\usepackage{forloop}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{polyglossia}
\usepackage{float}

\setdefaultlanguage{english}
\setotherlanguage{spanish}

\usepackage{intcalc}

\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Alegreya}[
	SmallCapsFont={Alegreya SC},
	Ligatures=TeX
]
\setsansfont{Alegreya Sans}[
	Scale=MatchLowercase,
	SmallCapsFont={Alegreya Sans SC},
	Ligatures=TeX
]
\setmonofont[Scale=MatchLowercase, Ligatures=TeX]{Source Code Pro}

\usepackage{paracol}
%\usepackage{liturg}
\usepackage{xstring}
\usepackage{verse}

\setlength{\parindent}{0pt}
\nonzeroparskip

\setstocksize{8.5in}{5.5in}
\settrimmedsize{\stockheight}{\stockwidth}{*}
\settrims{0in}{0.25in}
\settypeblocksize{6.75in}{4.4in}{*}
\setlength{\trimtop}{0pt}
\setlength{\trimedge}{\stockwidth}
\addtolength{\trimedge}{-\paperwidth}
\setlrmargins{0.5in}{*}{1:2.5}
\setulmargins{0.75in}{*}{1.5}
\checkandfixthelayout

\setsecheadstyle{\Large\center\scshape\bfseries}
\setsubsecheadstyle{\large\center\scshape\bfseries}

\setlength{\emergencystretch}{2em}
\usepackage{ragged2e}
\usepackage[activate={true,nocompatibility},tracking]{microtype}

\pagestyle{empty}

\usepackage{massbook}
\usepackage[bookmarksdepth=10,bookmarksopen]{hyperref}
% \hypersetup{bookmarksdepth=10,bookmarksopen}

\setcounter{secnumdepth}{0}
\begin{document}

\includepdf[pages=-]{cover.pdf}
\input{participants/participants.tex}

\section{Order Of Mass}
% \subsection{Processional}

% \songtitle{Joseph Dearest, Joseph Mine}{Traditional (15th Century)}
% % \input{josephdearest.tex}

% \subsection{Entrance of the Bride}

% \choir{Sans Day Carol}{Traditional (19th Century)}

% \clearpage{}
\subsection{Entrance Rite}

\amenResponse{In the name of the Father, and of the Son, and of the Holy Spirit.}

\awys

% \choir{Kyrie}{\hlh}
\choir{Gloria}{\hlh}

%\Needspace{6\baselineskip}
\subsection{The Liturgy of the Word}
\input{readings/readings.tex}

\subsection{The Rite of Marriage}
\input{vows/vows.tex}

% \Needspace{11\baselineskip}
\subsection{Prayers of the Faithful}
\input{prayers-of-the-faithful/prayers-of-the-faithful.tex}

\clearpage{}
\subsection{The Liturgy of the Eucharist}
% \Needspace{6\baselineskip}
\subsubsection{Offertory}

\choir{Sanctus}{\hlh}

\subsubsection{Eucharistic Prayer I: The Roman Canon}
% \input{ep1/ep1.tex}
% \clearpage{}

\Needspace{11\baselineskip}
\subsubsection{Communion Rite}

\priest{%
  At the Savior’s command and formed by divine teaching, we dare to say:}

\begin{People}
  \begin{verse}
    Our Father, who art in heaven, hallowed be thy name; \\
    thy kingdom come, thy will be done \\
    on earth as it is in heaven. \\
    Give us this day our daily bread,\\
    and forgive us our trespasses,\\ 
    as we forgive those who trespass against us; \\
    and lead us not into temptation, \\
    but deliver us from evil.
  \end{verse}
\end{People}

\priest{Dear brothers and sisters, let us humbly pray to the Lord that on
  these his servants, now married in Christ, he may mercifully pour out
  the blessing of his grace and make of one heart in love by the
  Sacrament of Christ’s Body and Blood those he has joined by a holy
  covenant.}

\begin{Priest}
  O God, who by your mighty power\\
  created all things out of nothing,\\
  and, when you had set in place\\
  the beginnings of the universe,\\
  formed man and woman in your own image,\\
  making the woman an inseparable helpmate to the man,\\
  that they might no longer be two, but one flesh,\\
  and taught that what you were pleased to make one must never be divided;

  O God, who consecrated the bond of Marriage by\nolinebreak[6] so\nolinebreak[6] great a mystery\\
  that in the wedding covenant you foreshadowed\\
  the Sacrament of Christ and his Church;

  O God, by whom woman is joined to man\\
  and the companionship they had in the beginning\\
  is endowed with the one blessing\\
  not forfeited by original sin\\
  nor washed away by the flood.

  Look now with favor on these your servants,\\
  joined together in Marriage,\\
  who ask to be strengthened by your blessing.\\
  Send down on them the grace of the Holy Spirit\\
  and pour your love into their hearts,\\
  that they may remain faithful in the Marriage covenant.

  May the grace of love and peace abide \\
  \hspace{1em}in your daughter \bfn,\\
  and let her always follow the example\\
  of those holy women\\
  whose praises are sung in the Scriptures.
  
  May her husband entrust his heart to her,\\
  so that, acknowledging her as his equal\\
  and his joint heir to the life of grace,\\
  he may show her due honor\\
  and cherish her always\\
  with the love that Christ has for his Church.
  
  And now, Lord, we implore you:\\
  may these your servants\\
  hold fast to the faith and keep your commandments;\\
  made one in the flesh,\\
  may they be blameless in all they do;\\
  and with the strength that comes from the Gospel,\\
  may they bear true witness to Christ before all;\\
  may they be blessed with children,\\
  and prove themselves virtuous parents,\\
  who live to see their children’s children.

  And grant that,\\
  reaching at last together the fullness of years\\
  for which they hope,\\
  they may come to the life of the blessed\\
  in the Kingdom of Heaven.\\
  Through Christ our Lord.\\
  \textbf{Amen.}
\end{Priest}

\AwysResponse{The peace of the Lord be with you always.}

\priest{Let us offer each other the sign of peace.}

\bigskip
\choir{Agnus Dei}{\hlh}
\bigskip

\priest{Behold the Lamb of God, behold him who takes away the sins of
  the world.  Blessed are those called to the supper of the Lamb.}

\people{Lord, I am not worthy that you should enter under my roof, but
  only say the word and my soul shall be healed.}

\subsubsection{Communion}
\begin{quote}
  \textit{\small{}(At this time, all practicing Catholics may come
    forward to receive Holy Communion. Non-Catholics, or anyone who wishes
    only to receive a blessing, may come forward with their arms crossed
    over their chest.)}
\end{quote}

%\begin{samepage}
% \clearpage{}
% \subsubsection{Communion Hymn and Postlude}

% \songtitle{Silent Night}{Franz Xaver Gruber (1787--1863)}

% \input{silentnight.tex}

% \songtitle{Come My Way, My Truth, My Life}{Ralph Vaughan Williams\\\hspace*{\fill}Daniel Grimm, Cantor}

\subsubsection{Dedication to Our Lady}

% \choir{Ave Maria}{Tomás Luis de Victoria (1549--1611)}

\subsubsection{The Concluding Rite}

\amenResponse{May God the eternal Father keep you of one heart in love
  for one another, that the peace of Christ may dwell in you and abide
  always in your home.}

\amenResponse{May you be blessed in your children, have solace in your friends
  and enjoy true peace with everyone.}

\amenResponse{May you be witnesses in the world to God’s charity, so that the
  afflicted and needy who have known your kindness may one day receive
  you thankfully into the eternal dwelling of God.}

\amenResponse{And may almighty God bless all of you, who are gathered here,
  the Father, and the Son, and the Holy Spirit.}

% \awys

% \amenResponse{May almighty God bless you, the Father, and the Son, and the Holy Spirit.}

\verseResponsePair{Go in peace.}{Thanks be to God.}


% \subsubsection{Recessional}

% \choir{Tomorrow Shall be my Dancing Day}{Traditional}

% \clearpage{}

\cleardoublepage{}
\begin{BackCover}
\vspace*{\fill}

\begin{quote}
\begin{center}
\textit{\gnn{} and \bnn{} thank all the people who helped with the preparations for this wedding.}
\end{center}
\end{quote}

\vspace*{\fill}
\end{BackCover}

\end{document}  

%%% Local Variables:
%%% TeX-engine: luatex :
%%% End:
