Is anyone can tell me how to change the font/size/color/effect of the text in the float text book? prefer to use Neutra Display Titling as font. 36pt for the right box and 24pt for the left box. Attached the picture of the final outcome for reference
Below is the code I used:
Code: Select all
\documentclass[12pt,english]{article}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PACKAGES
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% GEOMETRY - Provide the geometry settings of document
\usepackage{geometry}
\geometry{
left = 28mm,
right = 28mm,
top = 50mm,
bottom = 28mm,
bindingoffset = 0mm,
headheight = 103pt,
headsep = 15mm,
footskip = 0mm
}
% TIKS & PGFPLOTS - Allows the creation of graphics
\usepackage{tikz}
\usepackage{pgfplots}
% ESO-PIC - Allows floating text (and perhaps pictures) to be placed in either the foreground or backgrounds
\usepackage[pscoord]{eso-pic}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% COMMANDS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\titleTextBox}[3]{% {horizontal pos}{vertical pos}{text}
\setbox0=\hbox{#3}% Put <stuff> in a box
\AddToShipoutPictureFG*{\put(\LenToUnit{#1\paperwidth},\LenToUnit{#2\paperheight}){\makebox[0pt][c]{\textbf{\huge\textcolor{white}{\begin{tabular}{c}#3\end{tabular}}}}}
}
}
% CREATETITLEPAGE: Creates the title page.
\newcommand{\createTitlePage}{
% Background picture
\tikz[remember picture,overlay]
\node[opacity=1,inner sep=0pt] at (current page.center){
\includegraphics[
width=\paperwidth,
height=\paperheight
]
{C:/Users/jiech/Documents/Tuition/pictures/pictures/title_background.jpg}
};
% Floating text boxes
\titleTextBox{0.78}{0.475}{Year 11 \\ Mathematics \\ Extension 1}
\titleTextBox{0.3}{0.17}{Volume (i) \\ Term 1 Week 7 \\ Theory Book}
\thispagestyle{empty} % Clear all additional styles including page numbers
\clearpage % Clear additional contents
\setcounter{page}{1} % Start couting from the second page
}
\begin{document}
% Create title page
\createTitlePage
\end{document}