From a0d86b36567a42848bca691e6d21fba7ababd130 Mon Sep 17 00:00:00 2001 From: "Jeroen F.J. Laros" <J.F.J.Laros@lumc.nl> Date: Fri, 4 Mar 2011 11:57:02 +0000 Subject: [PATCH] Modified the mkpres script for the new template. Modified the README. --- README | 17 +++++------------ Gen2Phen.eps => gen2phen_logo.eps | 0 mkpres.sh | 28 ++++++++++++++++------------ 3 files changed, 21 insertions(+), 24 deletions(-) rename Gen2Phen.eps => gen2phen_logo.eps (100%) diff --git a/README b/README index e74e27f..22081c2 100644 --- a/README +++ b/README @@ -1,21 +1,14 @@ ## Installation ## # -The packages texlive-base-bin, texlive-latex-base, texlive-latex-recommended, -texlive-latex-extra, texlive-fonts-recommended and ghostscript should be -installed. - -We assume that you have a directory where you want to make your presentations, -in this directory the template directory `skel' should contain all the template -files. - +The packages texlive-base-bin, texlive-latex-base, texlive-latex-recommended, +texlive-latex-extra, texlive-fonts-recommended, latex-beamer and ghostscript +should be installed. ## Making a new presentation ## # -To make a new presentation, create an empty directory in the presentations -directory, let's say newpresentation. Now do: +To make a new presentation, run the mkpres command: --- -cd newpresentation -sh ../skel/mkpres.sh +sh mkpres.sh <directory> --- ## Compiling ## diff --git a/Gen2Phen.eps b/gen2phen_logo.eps similarity index 100% rename from Gen2Phen.eps rename to gen2phen_logo.eps diff --git a/mkpres.sh b/mkpres.sh index d5443ec..e476341 100644 --- a/mkpres.sh +++ b/mkpres.sh @@ -1,20 +1,24 @@ #!/bin/sh -skel="../skel" - -if ! [ -e $skel ]; then - echo Make sure you are in an empty directory and $skel exists. +if ! [ -n "$1" ]; then + echo "Usage: $0 <directory>" exit fi -if [ -f presentation.tex ]; then - echo Make sure you are in an empty directory and $skel exists. +if [ -e $1 ]; then + echo $1 already exists. exit fi -ln -s $skel/bg.eps -ln -s $skel/bg2.eps -ln -s $skel/nbic_logo.eps -ln -s $skel/lgtc_logo.eps -ln -s $skel/Makefile -cp $skel/presentation.tex . +here=`pwd` + +mkdir $1 +ln -s $here/lumc_logo.eps $1/ +ln -s $here/lumc_logo_small.eps $1/ +ln -s $here/ul_logo.eps $1/ +ln -s $here/lgtc_logo.eps $1/ +ln -s $here/nbic_logo.eps $1/ +ln -s $here/gen2phen_logo.eps $1/ +ln -s $here/Makefile $1/ +ln -s $here/beamerthemelumc.sty $1/ +cp presentation.tex $1/ -- GitLab