
\appendix % začátek příloh

% hacks to remove the header and move page numbers into the margin

\pagestyle{appendix}
\newgeometry{textheight=760pt}

% ok so this is ugly as sin, but \leftmark and \rightmark didn't work with 
%  the phantom sections, so we redefine leftmark manually and use it on both sides

\renewcommand{\leftmark}{Appendix A: GEX Hub Schematics, Revision 1}
\includepdf[angle=90,pagecommand={%
	\phantomsection\addcontentsline{toc}{chapter}{A{\enspace}GEX Hub Schematics}%
	\label{apx:gex_hub}%
	\phantomsection\addcontentsline{toc}{section}{A.1 GEX Hub Revision 1}%
	\label{apx:gex_hub1}%
}]{schema/GexHubSchemRev1.pdf}

\renewcommand{\leftmark}{Appendix A: GEX Hub Schematics, Revision 2}
\includepdf[angle=90,pagecommand={%
	\phantomsection\addcontentsline{toc}{section}{A.2 GEX Hub Revision 2}%
	\label{apx:gex_hub2}%
}]{schema/GexHubSchemRev2.pdf}


\renewcommand{\leftmark}{Appendix B: GEX Zero Schematics, Revision 1}
\includepdf[angle=90,pagecommand={%
	\phantomsection\addcontentsline{toc}{chapter}{B{\enspace}GEX Zero Schematics}%
	\label{apx:gex_zero}%
	\phantomsection\addcontentsline{toc}{section}{B.1 GEX Zero Revision 1}%
	\label{apx:gex_zero1}%
}]{schema/GexZeroSchemRev1.pdf}

\renewcommand{\leftmark}{Appendix B: GEX Zero Schematics, Revision 2}
\includepdf[angle=90,pagecommand={%
	\phantomsection\addcontentsline{toc}{section}{B.2 GEX Zero Revision 2}%
	\label{apx:gex_zero2}%
}]{schema/GexZeroSchemRev2.pdf}


\renewcommand{\leftmark}{Appendix C: Wireless Gateway Schematics, Revision 1}
\includepdf[angle=90,pagecommand={%
	\phantomsection\addcontentsline{toc}{chapter}{C{\enspace}Wireless Gateway Schematics}%
	\label{apx:gex_wgw}%
	\phantomsection\addcontentsline{toc}{section}{C.1 Wireless Gateway Revision 1}%
	\label{apx:gex_wgw1}%
}]{schema/GexRadioSchemRev1.pdf}

% ... appendices