Download this file
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{videocd}[2004/06/29 0.1]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions
\LoadClass[a4paper,12pt]{article}
\RequirePackage[latin1]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{lmodern}
\RequirePackage[dvips,nohead,nofoot,left=0cm,right=0cm,top=2cm]{geometry}
\pagestyle{empty}
\setlength{\fboxsep}{0pt}
\setlength{\fboxrule}{0.1mm}
\setlength{\parindent}{0pt}
\ifx\pdfoutput\undefined
\RequirePackage[dvips]{graphicx}
\DeclareGraphicsExtensions{.eps}
\else
\RequirePackage[pdftex]{graphicx}
\DeclareGraphicsExtensions{.png,.jpg,.pdf}
\fi
\def\video@setcommand#1{\textsl{Set a #1 with \textbackslash{}#1}}
\def\videocd@title {\video@setcommand{title}}
\let\videocd@subtitle=\relax
\let\videocd@supertitle=\relax
\let\videocd@director=\relax
\let\videocd@year=\relax
\let\videocd@length=\relax
\let\videocd@genre=\relax
\let\videocd@actors=\relax
\def\videocd@cover{}
\def\videocd@sidetext{\textbf{\videocd@title}}
\newcommand\supertitle[1]{\gdef\videocd@supertitle{#1}}
\renewcommand\title[1]{\gdef\videocd@title{#1}}
\newcommand\subtitle[1]{\gdef\videocd@subtitle{#1}}
\newcommand\sidetext[1]{\gdef\videocd@sidetext{\textbf{#1}}}
\newcommand\director[1]{\gdef\videocd@director{#1}}
\renewcommand\date[1]{\gdef\videocd@year{#1}}
\newcommand\length[1]{\gdef\videocd@length{#1}}
\newcommand\genre[1]{\gdef\videocd@genre{#1}}
\newcommand\actors[1]{\gdef\videocd@actors{#1}}
\newcommand\cover[1]{\gdef\videocd@cover{#1}}
\newsavebox{\frameenvbox}
\newenvironment{frameenv}
{\begin{lrbox}{\frameenvbox}}
{\end{lrbox}\framebox{\usebox{\frameenvbox}}}
\newenvironment{synopsis}{
\begin{center}
\sffamily
\fbox{\parbox[c][11.95cm][c]{1.99cm}{\ }}\hspace{-\fboxrule}%
\fbox{\parbox[c][11.95cm][c]{2.39cm}{\ }}\hspace{-\fboxrule}%
\fbox{\begin{minipage}[c][11.95cm][c]{12.15cm}%
\ifx\empty\videocd@cover\empty
~
\else
\center\includegraphics[height=11.95cm,width=12.15cm,keepaspectratio]{\videocd@cover}%
\fi
\end{minipage}}\hspace{-\fboxrule}%
\fbox{\parbox[c][11.95cm][c]{2.39cm}{\ }}\hspace{-\fboxrule}%
\fbox{\parbox[c][11.95cm][c]{1.99cm}{\ }}
\vspace{1cm}
\fbox{\begin{minipage}[c][11.8cm][c]{0.65cm}%
\hspace{1.50mm}\rotatebox{-90}{\videocd@sidetext}%
\end{minipage}}\hspace{-\fboxrule}%
\begin{frameenv}%
\begin{minipage}[c][11.8cm][c]{13.7cm}%
\begin{center}%
\begin{minipage}{10cm}
\sffamily
\begin{center}
\if\videocd@supertitle\relax\else
\textbf{\large \videocd@supertitle}
\medskip
\fi
\textbf{\LARGE \videocd@title}
\if\videocd@subtitle\relax\else
\medskip
\textbf{\large \videocd@subtitle}
\fi
\end{center}
\vspace{1.5cm}
\videocd@director{}\if\videocd@year\relax\else\ --- \videocd@year\fi\\
\videocd@genre{}\if\videocd@length\relax\else\ --- \videocd@length\fi\\
\if\videocd@actors\relax\else
Avec\,: \videocd@actors
\fi
\bigskip
}{
\end{minipage}%
\end{center}%
\end{minipage}%
\end{frameenv}\hspace{-\fboxrule}%
\fbox{\begin{minipage}[c][11.8cm][c]{0.65cm}%
\hspace{1.50mm}\rotatebox{-90}{\videocd@sidetext}%
\end{minipage}}
\end{center}
}