\usepackage{amsmath}
\usepackage{psfrag}

\newcommand{\component}[5]{\begin{tabular}{|lp{0.7\textwidth}|}\hline \textbf{Name:} & #1 \\ \hline \textbf{Author:} & #2 \\ \hline \textbf{Input parameters} & #3 \\ \hline \textbf{Optional parameters} & #4 \\ \hline \textbf{Notes} & #5 \\ \hline \end{tabular} \\ \noindent }
\newcommand{\mcdoccomp}[1]{\input{#1}}

\newcommand{\kappaB}{\mbox{\boldmath $\kappa$}}
\newcommand{\etaB}{\mbox{\boldmath $\eta$}}
\newcommand{\alphaB}{\mbox{\boldmath $\alpha$}}
\newcommand{\sigmaB}{\mbox{\boldmath $\sigma$}}
\newcommand{\tauB}{\mbox{\boldmath $\sigma$}}
\newcommand{\muB}{\mbox{\boldmath $\mu$}}

\def\nup{n_\uparrow}
\def\nd{n_\downarrow}

\def\Pu{P(\uparrow)}
\def\Pd{P(\downarrow)}
\def\Tu{T_\uparrow}
\def\Td{T_\downarrow}
\def\Ru{R_\uparrow}
\def\Rd{R_\downarrow}

\def\dB{\mathbf{d}}
\def\fB{\mathbf{f}}
\def\lB{\mathbf{l}}
\def\mB{\mathbf{m}}
\def\nB{\mathbf{n}}
\def\sB{\mathbf{s}}

\def\BB{\mathbf{B}}
\def\PB{\mathbf{P}}
\def\RB{\mathbf{R}}
\def\SB{\mathbf{S}}

\def\nTB{\mathbf{\tilde{n}}}

\def\Q{\mathbf{\kappaB}}
\def\tP{\mathbf{\tilde{P}}}
\def\tQ{\mathbf{\tilde{\Q}}}
\def\tN{\mathbf{\tilde{\etaB}}}
\def\FN{F_N(\Q)}
\def\FM{F_M(\Q)}
\def\ru{r_\uparrow}
\def\rd{r_\downarrow}

\def\so{\mathbf{\hat{s}}}
\def\rhoo{\hat{\rho}}
\def\betao{\hat{\beta}}
\def\alphao{\hat{\alphaB}}
\def\sigmao{\hat{\sigmaB}}
\def\sigmaH{\hat{\sigma}}
\def\muno{\mathbf{\hat{\muB}_n}}
\def\vo{\hat{V}_\BB}
\def\Io{\mathbf{\hat{I}}}

\def\madsq{|\overline{A}_d|^2}
\def\sqmad{\overline{|A_d|^2}}
\def\bd{\overline{|B_d|^2}I_d(I_d+1)}

\def\chiU{\chi_\uparrow}
\def\chiD{\chi_\downarrow}


\usepackage[%
backend=bibtex8,%
style=alphabetic,%
sorting=nyt,%
doi=true,%
isbn=true,%
hyperref=true,%
backref=true,%
url=false]{biblatex}

\bibliography{mcstas}
%\bibliographystyle{jacs}

\usepackage{hyperref} %LOAD AT LAST!

\hypersetup{%
  colorlinks=false,   % 
  pdfpagemode=UseNone,  % PDF-Viewer TOC settings
  pdfstartview=FitH, % PDF-Viewer 
  pdfauthor={P. Willendrup, E. Farhi, E. Knudsen, U. Filges, K. Lefmann},%
  pdftitle=Component Manual for the neutron ray-tracing package McStas%
}


\makeindex % enable index generation
