% EXPLANATION AND EXAMPLES OF NEWCOMMANDS % CREATED FOR THE NMM WORKSHOP AT PZI % COULD YOU PLEASE TRANSLATE THE EXPLANATIONS IN YOUR NATIVE LANGUAGE \section{fullpage} \subsection{use} This command creates a single image page. Takes 5 parametres. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % CODE BLOCK USING THE PACKAGE LSTLISTING % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % THIS IS THE CODE FOR THE COMMAND AND % % INCLUDED AS EXAMPLE % % SPECIAL CHARACTERS ESCAPED % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \codeline{language=TeX}{\\fullpage\{path/to/image\}\{1.5\}\{80,angle=45\}\{120\}\{optional page command\}} \codeline{language=TeX}{\\fullpage\{1\}\{2\}\{3\}\{4\}\{5\}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{itemize} \item \textbf{1} is the path to an image \item \textbf{2} is the scale \item \textbf{3} is the x offset \item \textbf{4} is the y offset \item \textbf{5} is an optional page command \end{itemize} Height adjusts to the content of the box. \subsection{macro code} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % CODE BLOCK USING THE PACKAGE LSTLISTING % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % THIS IS THE CODE FOR THE COMMAND AND % % INCLUDED AS EXAMPLE % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \lstset{language=TeX} \begin{lstlisting} \newcommand{\fullpage}[5]{ \newpage {\renewcommand{\footnoterule}{\rule{0pt}{0pt}} % REMOVE FOOTNOTERULE \includepdf[scale=#2,offset=#4 #3,pagecommand={ \thispagestyle{empty} #5 \newpage }] {#1} } % REMOVE FOOTNOTERULE \renewcommand{\footnoterule}{\vspace*{10pt} % REMOVE FOOTNOTERULE \hrule width 0.4\columnwidth \vspace*{10pt}} % REMOVE FOOTNOTERULE } \end{lstlisting} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \fullpage{i/a/workshop/bag/i/non-free/p/font_preparation/2010-01-28--1264675408_1024x768_scrot.png} {1.5} % SCALE {80} % VERTICAL OFFSET {120} % HORIZONTAL OFFSET { % X POSITION Y POSITION WIDTH \flexcommentbox{-.1\textwidth}{-.36\textheight}{\textwidth} {\color{white}\codeline{}{\\fullpage\{path/to/image\}\{1.5\}\{80\}\{120\}\{\\flexcommentbox\}} } } \fullpage{i/a/workshop/bag/i/non-free/p/font_preparation/2010-01-28--1264675408_1024x768_scrot.png} {1.5} % SCALE {80} % VERTICAL OFFSET {120} % HORIZONTAL OFFSET { % X POSITION Y POSITION WIDTH \flexcommentbox{-.1\textwidth}{-.36\textheight}{\textwidth} {\color{white}\codeline{}{\\fullpage\{path/to/image\}\{1.5\}\{80\}\{120\}\{\\flexcommentbox\}} } } \fullpage{i/a/workshop/bag/i/non-free/p/font_preparation/2010-01-28--1264675408_1024x768_scrot.png} {1.5} % SCALE {80,angle=45} % VERTICAL OFFSET {120} % HORIZONTAL OFFSET { % X POSITION Y POSITION WIDTH \flexcommentbox{-.1\textwidth}{-.36\textheight}{1.2\textwidth} {\color{white}% \begin{flushleft} You can hack your own command by sneaking a parameter into the vertical offset brackets. \\ For more parametres see the pdfpages package \end{flushleft} \codeline{}{\\fullpage\{path/to/image\}\{1.5\}\{80,angle=45\}\{120\}\{\\flexcommentbox\}} } }