Commits (12)
......@@ -35,11 +35,14 @@ PIC := $(foreach I, $(PIC_EXT), $(basename $(shell ls *.$I)))
PDF := $(addsuffix .pdf, $(SRC))
RTF := $(addsuffix .rtf, $(SRC))
DOC := $(addsuffix .docx, $(SRC))
HDT := $(addsuffix _handout.pdf, $(SRC))
TXT := $(addsuffix .txt, $(SRC))
# Temporary files.
TMP := blg log nav out snm toc dvi aux idx vrb ps glg glo ist
PNG := $(addsuffix .png, $(DIA_PIC))
TNP := $(addsuffix .tnp, $(GNP))
NOT := $(addsuffix _notes.pdf, $(SRC))
# Semi-permanent files.
BIB := $(addsuffix .bbl, $(SRC))
......@@ -55,7 +58,7 @@ TEX_T := $(foreach I, $(TEX_T_EXT), $(addsuffix .$I, $(FIG_PIC)))
.SUFFIXES:
# Targets that are not associated with files.
.PHONY: all rtf doc clean distclean release
.PHONY: all rtf doc handout text clean distclean release
# Main targets
......@@ -66,11 +69,15 @@ rtf: $(RTF)
doc: $(DOC)
handout: $(HDT)
text: $(TXT)
clean:
rm -f $(foreach I, $(TMP), $(addsuffix .$I, $(SRC))) $(PNG) $(TNP)
rm -f $(foreach I, $(TMP), $(addsuffix .$I, $(SRC))) $(foreach I, $(TMP), $(addsuffix _notes.$I, $(SRC))) $(PNG) $(TNP) $(NOT)
distclean: clean
rm -f $(PDF) $(RTF) $(DOC) $(BIB) $(EPS) $(TEX_T)
rm -f $(PDF) $(RTF) $(DOC) $(HDT) $(TXT) $(BIB) $(EPS) $(TEX_T)
release: all clean
......@@ -145,6 +152,9 @@ release: all clean
# LaTeX build targets.
%_notes.tex: %.tex
sed 's/^\\documentclass\[/\\documentclass\[handout, /' $< > $@
%.aux: %.tex $(EPS) $(TEX_T)
$(TEX) $< ;\
if (grep -s "LaTeX Warning: Citation" $*.log); then \
......@@ -205,3 +215,9 @@ release: all clean
%.docx: %.rtf
$(LIBREOFFICE) --headless --invisible --convert-to docx $< -o $@
%.txt: %.tex
grep "^%" $< | cut -b 3- > $@
%_handout.pdf: %_notes.pdf
pdfnup -o $@ --nup 1x4 -q --a4paper --no-landscape --scale 0.9 --delta "0 5mm" --frame true $<
......@@ -18,6 +18,7 @@
\usepackage{multirow}
\usepackage{multicol}
\usepackage{ifthen}
\usepackage{url}
% Some defaults for using a bibliography.
\usepackage{bibentry}
......@@ -42,9 +43,11 @@
\usenavigationsymbolstemplate{}
% Set default colours.
\setbeamercolor{structure}{fg=white}
\setbeamercolor{normal text}{fg=white}
\setbeamercolor{frametitle}{fg=white}
\alt<handout>{}{
\setbeamercolor{structure}{fg=white}
\setbeamercolor{normal text}{fg=white}
\setbeamercolor{frametitle}{fg=white}
}
% Change the bullets in the itemize environment.
\setbeamertemplate{itemize items}[circle]
......@@ -57,6 +60,16 @@
\newcommand{\bsi}[1]{\textit{\textbf{\scriptsize{#1}}}} % Bold italic small.
\newcommand{\permfoot}[1]{\onslide<1->\bs{#1}}
% Macro for highlighting.
\alt<handout>{
\newcommand{\hlColour}{\color{red}}
\newcommand{\defaultColour}{\color{black}}
}{
\newcommand{\hlColour}{\color{yellow}}
\newcommand{\defaultColour}{\color{white}}
}
\newcommand{\hl}[1]{\hlColour#1\defaultColour}
% Enable numbering of figures and tables.
\setbeamertemplate{caption}[numbered]
......@@ -101,7 +114,7 @@
% Make a nice layout for code.
\lstset{
language=Python,
basicstyle=\footnotesize,
basicstyle=\bf\footnotesize\ttfamily,
lineskip=-0.40ex,
frame=shadowbox,
rulesepcolor=\color{black},
......@@ -122,6 +135,51 @@
% Trick to get out of math mode highlighting.
\newcommand{\rmath}[1]{\phantom{\lstinline!#1!}}
%
% Settings for handouts.
%
% Side by side pages.
\usepackage{pgfpages}
% Use items for displaying notes, remove the bullets and indentation.
\def\beamer@setupnote{
\gdef\beamer@notesactions{
\beamer@outsideframenote{
\setbeamertemplate{itemize item}{}
\beamer@atbeginnote
\beamer@notes
\ifx\beamer@noteitems\@empty\else
\begin{itemize}
\setlength{\itemindent}{-0.5cm}
\beamer@noteitems
\end{itemize}
\fi
\beamer@atendnote
}
\gdef\beamer@notesactions{}
}
}
% Command for itemised notes.
\newcommand{\inote}[1]{\note[item]{#1}}
% Style of the notes page.
\defbeamertemplate{note page}{plainitemnotes}{
\vspace{21pt}
{\normalsize {\bf \color{LUMCBlue}Notes}}
\vspace{29pt}
{\normalsize
\insertnote
}
}
% Use the notes page in handout mode.
\alt<handout>{
\setbeameroption{show notes on second screen=right}
\setbeamertemplate{note page}[plainitemnotes]
}{}
%
% Settings for the title page.
%
......@@ -194,7 +252,7 @@
\myDepartment
\vspace{-0.1cm}
\vspace{-0.05cm}
\myCenter
}
}
......@@ -204,7 +262,7 @@
}
% Set the background colour.
\beamersetaveragebackground{LUMCBlue}
\alt<handout>{}{\beamersetaveragebackground{LUMCBlue}}
% Reset the frame counter.
\setcounter{framenumber}{0}
......
This diff is collapsed.
This diff is collapsed.
\documentclass[slidestop]{beamer}
\documentclass[slidestop]{beamer} % Add 'handout' for printable slides.
\title{\LaTeX\ Presentation Template}
\providecommand{\myConference}{Work discussion}
\providecommand{\myDate}{Thursday, 24 February 2011}
\author{Jeroen F. J. Laros}
\author{Jeroen F.J. Laros}
\providecommand{\myGroup}{Leiden Genome Technology Center}
\providecommand{\myDepartment}{Department of Human Genetics}
\providecommand{\myCenter}{Center for Human and Clinical Genetics}
......@@ -17,6 +17,7 @@
%\includegraphics[height=0.7cm]{logos/nbic_logo}
%\includegraphics[height=0.8cm]{logos/nwo_logo_en}
%\hspace{1.5cm}\includegraphics[height=0.7cm]{logos/gen2phen_logo}
%\includegraphics[height=0.7cm]{logos/generade_logo}
}
\usetheme{lumc}
......@@ -38,6 +39,9 @@
\item The \emph{section} command controls the title.
\item The \emph{subsection} command controls the frametitle.
\end{itemize}
\bigskip
Testing \hl{highlight}\ colour.
\end{pframe}
\begin{pframe}
......
src/MGC.jpg

40.1 KB