
\documentclass[12pt,pdftex]{article}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{grffile}
\topmargin -3cm
\oddsidemargin -1.5cm
\textwidth 19cm
\textheight 27cm
\begin{document}

\def\title{PhotoGallery}

\def\basefig{LhsLincludegraphics{/Experiments/HTS/HTSswitch/II/PhotoGallery/resized400/schemepodtrzitkosc.jpg}}

\def\descr{Description}

\input{photos}

\def\GititLayout{LhsLsection{\title}LhsLnewline

 \basefig LhsLsubsection{Description}\descr  LhsLnewline

 LhsLsubsection{Gallery} LhsLnewline

 \icons\figs}

\newwrite\fil
\immediate\openout\fil="PhotoGallery.page"
\makeatletter
\immediate\write\fil{---}
\immediate\write\fil{format: latex}
\immediate\write\fil{toc: yes}
\immediate\write\fil{...}
\immediate\write\fil{LhsLproc ATTENTION! if you want to edit this page, you !SHOULD! edit PhotoGallery/resource.page }
\immediate\write\fil{LhsLproc ----------------------------------------------------------------------------------- }

\immediate\write\fil{\GititLayout}
\makeatother
\immediate\closeout\fil
\end{document}
