\NeedsTeXFormat{LaTeX2e} \ProvidesPackage{sls2note} [2017/02/27 v1.00 SLS-2 CDR format for LaTeX] \RequirePackage{a4} \RequirePackage{epsfig} \RequirePackage{graphicx} \RequirePackage{hyperref} % my A4 settings \textwidth 17cm \oddsidemargin -0.54cm %2cm Rand links \topmargin -0.54cm %2cm Rand oben \headheight 0cm % no header \headsep 0cm \textheight 24cm \parskip 6pt \parindent 0pt %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand\slstitle[5]{ %parameters: title, authors, short-sign, number, version {\large \begin{tabular}{|l|c|} \hline \rule[-20mm]{0mm}{20mm}\parbox[t][15mm][c]{50mm}{\includegraphics[height=15mm]{PSI-Logo_narrow}} & \parbox[t]{45mm}{{\scriptsize\sf Project}\begin{center}{\Huge\bf SLS 2.0}\end{center}}\\ \hline \parbox[t]{120mm}{{\scriptsize\sf Title}\\{\large\bf #1}\\[1mm]} & \parbox[t]{45mm}{{\scriptsize\sf Document identification}\\{\large\bf SLS2-#3-#4-#5}\\[1mm]}\\ \hline \parbox[t]{120mm}{{\scriptsize\sf Author(s)}\\{\large #2}\\[1mm]} & \parbox[t]{45mm}{{\scriptsize\sf Date} \\ {\large \today }\\[1mm]}\\ \hline \end{tabular} \vspace{1cm} }} % How to use \slstitle, example: % \usepackage{sls2note} % \begin{document} % \noindent % \slstitle{Magnetic field of longitudinal gradient bend} % {M. Aiba, M. Ehrlichman, A. Streun}{AM84}{001}{3} % some useful commands: \newcommand\eps{\varepsilon} \newcommand\erf{\mathop{\mathrm{erf}}} \newcommand\pt{\partial} \newcommand\beq{\begin{equation}} \newcommand\eeq{\end{equation}} \newcommand{\comment}[1]{\par\fbox{\parbox{\textwidth}{\footnotesize #1}}} \newcommand{\degr}{\mbox{$^{\circ}$}} \newcommand{\powten}[2]{\mbox{${#1}\cdot 10^{#2}$}} \newcommand{\first}{$1^{\rm st}$} \newcommand{\second}{$2^{\rm nd}$} \newcommand{\third}{$3^{\rm rd}$} \newcommand{\nth}{$^{\rm th}$} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%