# Instructions for SVN

These instructions are designed to help with uploading and compiling document using svn.

# Analysis Note

```mkdir UpsAN #or some directory name
cd UpsAN
The first time you create a directory
cd tdr2
svn update utils
svn update -N notes
svn update notes/AN-12-454
# the above lines only need to be completed once

cd notes
eval `./tdr runtime -sh` #on FNAL, replace -sh with -csh
tdr --style an b AN-12-454
```

The tex file is stored at:

AN-12-454/trunk/AN-12-454.tex

Edit the file, then build the pdf. After compling, it prints the location of a temp pdf file, such as /uscms_data/d3/btcarlso/AN-12-454/tdr2/notes/tmp/AN-12-454_temp.pdf. Copy that file to your local machine to view.

After making changes to the tex files, one needs to add any new files to svn, then save the changes to svn:

```cd AN-12-454/trunk

svn ci #works on lxplus, but not LPC
svn commit -m "something here" #works on LPC
```

## Note on naming files

Then be sure that the files are in pdf format. In the .tex file, all figures should be referenced with command the \includegraphics{filename} where filename is the filename of the pdf file without the '.pdf'. If you have made .eps files using root, you can either convert them to pdf using the command epstopdf filename.eps, which then creates filename.pdf. I haven't figured out a simple way to use wildcards with this command.

Figure filenames cannot have periods in the filenames. The name summary_0.0_0.6.pdf will cause tex to give an error and not make the figure. The easiest workaround I have found is to avoid such file names, and make instead summary_0_1 or something like that.

# PAS

For a PAS, the procedure is similar. In this case, we are working on BPH-12-006.

```mkdir UpsAN
cd UpsAN
The first time you create a directory
svn co -N svn+ssh://bcarlson@svn.cern.ch/reps/tdr2
cd tdr2
svn update utils
svn update -N notes
svn update notes/BPH-12-006
cd notes
eval `./tdr runtime -sh` #-csh for LPC
Then run:
tdr --style pas b BPH-12-006

cd BPH-12-006/trunk
#svn ci (seems to work on lxplus)
svn commit -m "update" #need for cmslpc-sl5

```

Note that to upload the PAS to cadi, the svn repository must have been upadated with the new tex file and Fig/ folder. Once this has been done, in cadi the submit process automatically compiles the tex to create the pdf in cadi.

# Paper

The paper procedure is more or less the same as the PAS

```mkdir BPH-12-006paper #or whatever name you like
cd BPH-12-006paper
The first time you create a directory
svn co -N svn+ssh://bcarlson@svn.cern.ch/reps/tdr2
cd tdr2
svn update utils
svn update -N papers
svn update papers/BPH-12-006
cd notes
eval `./tdr runtime -sh` #-csh for LPC
Then run:
tdr --style paper b BPH-12-006
To commit, run svn ci --editor-cmd 'emacs -nw' (on LPC) Do not add / delete etc. Use Svn commands, such as svn mkdir or svn cp. Seems to help.
Once a file is under verison control, edit the file (make change) then do svn ci --editor-cmd 'emacs -nw' then hit c```
Edit | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View | More topic actions
Topic revision: r11 - 2014-04-10 - BenCarlson

Webs

Welcome Guest

 Cern Search TWiki Search Google Search Main All webs
Copyright &© 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback