#StackBounty: #footer How to make a minipage the footer for a dcument

Bounty: 50

I have a document that produces an output something like this:

enter image description here

The section in the green can change its size, depending on how many items are in the list.

I want the “Ship to:” and “Additional Information” sections to always be at the bottom of the page, no matter how big the green section is.

I am assuming that I need to do this by using footers? I have been reading about footers, but I’m not sure how to have the footer be a mini-page like this:

begin{minipage}[t]{.3textwidth}
        {bf SHIP TO:}\

        textit{contact@commerciaJwaterheating.com}
end{minipage}
hfill
begin{minipage}[t]{0.4textwidth}
        {bf ADDITIONAL INFORMATION:}\

        textit{We accept payment by cash or cheque. Payment Is due upon receipt, and must be paid in full within {bf 30 days}.}
end{minipage}

THE ENTIRE TEX FILE:

documentclass[letterpaper,currency=pound]{dapper-purchase_order}
defaultfontfeatures{ Path = ./Fonts/ }
%usepackage{fontawesome}                                                                                                                
definecolor{Mblue}{RGB}{231,255,229}
%                                                                                                                                        
%%%%%%%%%%%%%%%%%% HEADING SECTION %%%%%%%%%%%%%%%%%%                                                                                    
newcommand{purchaseOrderNo}{31401} % Invoice Number                                                                                    
newcommand{Date}{01/01/2018} % Date                                                                                                    
newcommand{clientName}{CUSTOMER NAME LTD} % Client Name                                                                                
%----------------------------------------------------                                                                                    
%                                                                                                                                        
begin{document}

newfontfacemainLightItalic{OpenSans-LightItalic}
makeheader{purchaseOrderNo}

addvspace{8ex}

{Large DATE: textit{Date}}

addvspace{2ex}

{Large FOR: textit{clientName}}

addvspace{4ex}

hspace{-.9marginparwidth}%                                                                                                             
colorbox{Mblue}{begin{minipage}{paperwidth}%                                                                                          

vspace{.3in}

begin{hoursItemization}
%                                                                                                                                        
%%%%%%%%%%%%%%%%%% TABLE OF EXPENSES %%%%%%%%%%%%%%%%%%                                                                                  
%                                                                                                                                        
% Put your expenses here in this order: lineitem{QTY}{PRICE}{ITEM}                                                                      
%                                                                                                                                        
    lineitem{1}{3075}{550 Litre indirect Storage Vessel with Unvented Kit}
%                                                                                                                                        
    lineitem{2}{214}{3 kW Aquarius Towel Rail Heating Element with Chrome Finish}
%                                                                                                                                        
    lineitem{1}{225}{9 kW Stainless Steel Immersion Heater}
%------------------------------------------------------                                                                                  
%                                                                                                                                        
%%%%%%%%%%%%%%%%%%% SUMMARY SECTION %%%%%%%%%%%%%%%%%%%                                                                                  
%                                                                                                                                        
    beginsummary
%                                                                                                                                        
    summaryline{SUBTOTAL}{InvoiceTotal}
%                                                                                                                                        
    summaryline{V.A.T. @ 20%}{vat}
%                                                                                                                                        
    summaryline{TOTAL}{total}
%------------------------------------------------------                                                                                  
%                                                                                                                                        
end{hoursItemization}

vspace{.3in}

end{minipage}}

addvspace{10ex}

begin{minipage}[t]{.3textwidth}
        {bf SHIP TO:}\

        textit{contact@commerciaJwaterheating.com}
end{minipage}
hfill
begin{minipage}[t]{0.4textwidth}
        {bf ADDITIONAL INFORMATION:}\

        textit{We accept payment by cash or cheque. Payment Is due upon receipt, and must be paid in full within {bf 30 days}.}
end{minipage}

end{document}

(The class file is long – so I won’t post as I don’t think it is necessary to address the problem).


Get this bounty!!!

Leave a Reply