Commit 67f182e1 authored by Thomas Planche's avatar Thomas Planche

now using TRIUMF beam note LaTeX template

parent 2017cc7e
\ProvidesPackage{triumf-BN}[2018/04/24 v1.0 triumf logo macros]
\usepackage{triumf-logo}
%commonly used packages
\usepackage{graphicx,dcolumn}
\usepackage{amsmath,amssymb,mathtools,amsfonts}
\usepackage{color,hyperref}
\usepackage{setspace}
\hypersetup{
colorlinks=true,
linkcolor=blue,
citecolor=blue,
filecolor=blue,
urlcolor=blue
}
%%%%%%%%%%% what use to be in dn_report.sty:
%Dec. 2012: commented out the \hbox{ of }\rm \hbox{\ref{totpage}} since
%it screws up hyperref.
\oddsidemargin=.5in
\topmargin=0in
\headheight=12pt
\headsep=25pt
%
% text width and height are reset by "make_cover_page" macro
%
\textheight=8.5in
\textwidth=5.5in
%
%\footheight=1.0in
\def\insertplot#1#2#3{\par
\hbox{\hskip #3 \vbox to #2{\special{hp: plotfile #1}\vfil}}}
%
% redo section command to allow parindent at beginning of section
% and subsections
%
\renewcommand{\section}{\@startsection {section}{1}{\z@}{3.5ex plus -1ex minus
-.2ex}{2.3ex plus .2ex}{\Large\bf}}
\renewcommand{\subsection}{\@startsection {subsection}{2}{\z@}{3.5ex plus
-1ex minus -.2ex}{1.5ex plus .2ex}{\large\bf}}
%
% setup design note heading
%
% Definition of 'myheadings' page style.
%
\def\ps@myheadings{\let\@mkboth\@gobbletwo
\def\@oddhead{\hbox{}\sl\rightmark \hfil \hbox{Page} \rm\thepage \sl
%\hbox{ of }\rm \hbox{\ref{totpage}}
}%
\def\@oddfoot{}\def\@evenhead{\rm \thepage\hfil\sl\leftmark\hbox {}}%
\def\@evenfoot{}\def\sectionmark##1{}\def\subsectionmark##1{}}
%
\pagestyle{myheadings}
%
% macro for writing to aux file
%
\def\endreport{\write1{\string\newlabel{totpage}{{\thepage}{\thepage}}}}
%
% MACRO FOR THE COVER DESIGN IS INPUT
%
% \input{cover_page_macro.tex}
%%%%%%%%%%% produces the Title page
%
% inputs are;
% 1 - File number (eg. TRI-DN-88-10)
% 2 - Author(s)
% 3 - Title
% 4 - Abstract
% 5 - Design note date
%
\def\make_cover_page#1#2#3#4#5\par
{
\begin{titlepage}
%\pagenumbering set to alpha else hyperref complains. Have to set in the main document
\pagenumbering{arabic}
%\pagenumbering{alph}
\thispagestyle{empty}
\addtolength{\topmargin}{-0.8in}
\setlength{\textheight}{\textheight+0.8in}
\setlength{\parskip}{3em}
\onehalfspacing
\begin{minipage}{0.5\textwidth}
\begin{flushleft}
\hspace{-1.6em}\logo
\end{flushleft}
\vspace{4. em}
\end{minipage}
\begin{minipage}[b]{0.455\textwidth}
\begin{flushright} \large
\textbf{Beam Physics Note} \\
#1\\
\setbox3=\hbox{#5}
%If date is too short, or empty, today is used.
\ifdim\wd3<30pt
\today
\else
#5
\fi
\end{flushright}
\end{minipage}
\vspace{0.5in}
% Title
\begin{center}
{ \begin{spacing}{1.5}
\LARGE \bf #3
\end{spacing}
}
{ \Large #2\\[0.5cm]
TRIUMF}
\end{center}
{\large {\bfseries Abstract:} #4}
\vfill
\footnotesize
% Bottom of the page
4004 Wesbrook Mall, Vancouver, B.C. Canada V6T 2A3 · Tel: 604 222-1047 · www.triumf.ca\vspace{-0.8in}
\end{titlepage}
%
% now set things up for the next page
%
\markright{#1}
\newpage
\vsize=8.5in
\hsize=5.5in
%
% macro closing bracket
%
}
This diff is collapsed.
No preview for this file type
......@@ -2,6 +2,11 @@
\usepackage{graphicx,amsmath,amssymb,amsfonts,color,hyperref,cleveref,listings,textcomp}% standard LaTeX stuff
\usepackage[section]{placeins}% to be able to use \FloatBarrier
%TRIUMF beam-note template
\usepackage{triumf-BN}
\newcommand{\ttmdump}[1]{#1}
%hyperref setup:
\hypersetup{colorlinks,linkcolor=blue,citecolor=blue,urlcolor=blue}
......@@ -18,20 +23,18 @@
}
%opening
\title{TRIUMF High-Resolution Separator using {\tt zgoubi}\\[0.5em]
Part 1 -- Dipole Model}
\author{Thomas Planche\footnote{tplanche@triumf.ca}}
%\footnote{tplanche@triumf.ca}\\~\\ TRIUMF\thanks{This work has been supported by the Natural Sciences and Engineering Research Council of Canada. TRIUMF also receives federal funding via a contribution agreement through the National Research Council of Canada.}}
\begin{document}
\maketitle
\tableofcontents
\ttmdump{\make_cover_page
{TRI-BN-17-19 Part 1}
{Thomas Planche\footnote{tplanche@triumf.ca}}
{TRIUMF High-Resolution Separator using {\tt zgoubi}\\
Part 1 -- Dipole Model}
{If you go through this tutorial, you should have learned how to use {\tt zgoubi} built-in dipole model to perform basic ray-tracing simulations..}
{\today}}
\section{Introduction}
If you go through this tutorial you should have learned how to use {\tt zgoubi} built-in dipole model to perform basic ray-tracing simulations. All examples presented in this tutorial have been tested using {\tt zgoubi} development version from July 6, 2019.
All examples presented in this tutorial have been tested using {\tt zgoubi} development version from July 6, 2019.
All files used to prepare this tutorial are accessible on:
\href{https://gitlab.triumf.ca/beamphys/hrs}{https://gitlab.triumf.ca/beamphys/hrs} .
You can download {\tt zgoubi} source code from:
......
......@@ -2,6 +2,10 @@
\usepackage{graphicx,amsmath,amssymb,amsfonts,color,hyperref,cleveref,listings,textcomp}% standard LaTeX stuff
\usepackage[section]{placeins}% to be able to use \FloatBarrier
%TRIUMF beam-note template
\usepackage{triumf-BN}
\newcommand{\ttmdump}[1]{#1}
%hyperref setup:
\hypersetup{colorlinks,linkcolor=blue,citecolor=blue,urlcolor=blue}
......@@ -27,11 +31,17 @@
\begin{document}
\maketitle
\tableofcontents
\ttmdump{\make_cover_page
{TRI-BN-17-19 Part 2}
{Thomas Planche\footnote{tplanche@triumf.ca}}
{TRIUMF High-Resolution Separator using {\tt zgoubi}\\
Part 2 -- Magnetic and Electric Field Maps}
{ If you go through this tutorial you should have learned how to use {\tt zgoubi} {\tt'TOSCA'} command to track particles through a 2-dimensional magnetic field maps.}
{\today}}
\section{Introduction}
If you go through this tutorial you should have learned how to use {\tt zgoubi} {\tt'TOSCA'} command to track particles through a 2-dimensional magnetic field maps. All examples presented in this tutorial have been tested using {\tt zgoubi} development version from July 6, 2019.
All examples presented in this tutorial have been tested using {\tt zgoubi} development version from July 6, 2019. Before starting this tutorial, I strongly advise you to go through the previous one:\\
\href{https://gitlab.triumf.ca/beamphys/hrs/blob/master/tuto/tutorial-DIPOLE.pdf}{\small https://gitlab.triumf.ca/beamphys/hrs/blob/master/tuto/tutorial-DIPOLE.pdf} .
\section{Magnetic Field Map}
In the previous tutorial we have seen how to determine the basic parameters of the separator dipole: edge angle, and pole face curvature. Based on these parameters, TRIUMF HRS dipole was design using the 3-dimensional finite element code {\tt OPERA}, see Marco's PhD thesis~\cite{marchettoPhD}. The magnetic solver of {\tt OPERA} is called {\tt TOSCA}, hence the name of the {\tt zgoubi} command. From the {\tt OPERA}, one may extract\footnote{The script used to produce the map from the {\tt OPERA} model is available here: \href{https://gitlab.triumf.ca/beamphys/hrs/raw/master/TOSCA/generate-dipole-map.comi?inline=false}{https://gitlab.triumf.ca/beamphys/hrs/blob/master/TOSCA/generate-dipole-map.comi}} a 2-D field maps such as this one:\\
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment