Skip to content

Commit b3d11c3

Browse files
committed
RF: moved common LaTeX definitions for the flier into common-handout.tex
1 parent fc66dbe commit b3d11c3

File tree

3 files changed

+140
-133
lines changed

3 files changed

+140
-133
lines changed

flier/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pics:
55
$(MAKE) -C ../pics psychopy_logo.pdf opensesame_logo.pdf snakebrain.pdf
66
$(MAKE) -C ../pics
77

8-
%.pdf: %.tex
8+
%-handout.pdf: %-handout.tex common-handout.tex
99
pdflatex $<
1010

1111
nipy-handout.tex: materials.rst

flier/common-handout.tex

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
\documentclass[letterpaper,landscape,english,9pt]{report}
2+
\usepackage[landscape,margin=0.5cm]{geometry}
3+
4+
\usepackage{fixltx2e} % LaTeX patches, \textsubscript
5+
\usepackage{cmap} % fix search and cut-and-paste in PDF
6+
\usepackage[T1]{fontenc}
7+
\usepackage[utf8]{inputenc}
8+
\usepackage{ifthen}
9+
\usepackage{babel}
10+
\usepackage{color}
11+
\usepackage{float} % float configuration
12+
\floatplacement{figure}{H} % place figures here definitely
13+
14+
15+
\usepackage{multicol}
16+
%\setlength{\columnseprule}{1pt} % for visible divider
17+
\setlength{\columnsep}{1cm}
18+
19+
\usepackage{graphicx}
20+
\graphicspath{
21+
{../pics/}
22+
}
23+
24+
%%% Custom LaTeX preamble
25+
% PDF Standard Fonts
26+
\usepackage{mathptmx} % Times
27+
\usepackage[scaled=.90]{helvet}
28+
\usepackage{courier}
29+
30+
\usepackage{flowfram}
31+
%\usepackage{booktabs} % for rules in tables
32+
\usepackage{tabularx} % for column-width tables
33+
\usepackage[table]{xcolor} % color control
34+
35+
%\usepackage[colorlinks]{hyperref}
36+
37+
\usepackage{enumitem} % useful for control of listings
38+
\usepackage[compact,raggedright]{titlesec}
39+
\usepackage{comment}
40+
41+
\newcommand{\epigraph}[3]{\textit{#1}\linebreak \vspace{-1.5em} \begin{flushright}\hspace{5em}\ --\ #2\linebreak\small{#3} \end{flushright}}
42+
43+
\pagestyle{empty}
44+
\parindent=0pt
45+
46+
% Attempts to change bg color of *section headings
47+
%\definecolor{secbgcol}{rgb}{0.9, 0.85, 0.85}
48+
%\titleformat{\section}
49+
%{\color{red}\normalfont\Large\bfseries}{\ndsection}{1em}{}
50+
%\titleformat{\subsection}
51+
%{\color{red}\normalfont\large\bfseries}{\begin{flushright}\hfill\thesubsection
52+
% \end{flushright}}{1em}{}
53+
%
54+
%\usepackage{pstricks}
55+
56+
% To create tables within multicols
57+
\makeatletter
58+
\newenvironment{ndtable}
59+
{\def\@captype{table}}
60+
{}
61+
62+
63+
\newcommand{\ndheading}[3]{%
64+
\vspace{0.5em}
65+
\begin{ndtable}%
66+
\rowcolors[\hline]{1}{#2}{} \arrayrulecolor{#3}
67+
\begin{tabularx}{\columnwidth}{>{\centering\arraybackslash}X}\vspace{-.5em}\normalfont\large\bfseries
68+
#1\vspace{0.05em}\\\end{tabularx}
69+
\end{ndtable}
70+
\vspace{-.5em}
71+
}
72+
73+
\definecolor{secfgcol}{RGB}{102, 153, 0}
74+
\definecolor{secbgcol}{RGB}{216, 255, 137}
75+
\definecolor{projfgcol}{RGB}{6, 83, 215}
76+
\definecolor{projbgcol}{RGB}{255, 255, 205}
77+
78+
%\definecolor{secfgcol}{RGB}{6, 83, 215}
79+
%\definecolor{secbgcol}{RGB}{241, 248, 255}
80+
%\definecolor{projfgcol}{RGB}{6, 83, 215}
81+
%\definecolor{projbgcol}{RGB}{241, 248, 255}
82+
83+
\newcommand{\ndsection}[1]{\ndheading{#1}{secbgcol}{secfgcol}}
84+
\newcommand{\ndsubsection}[1]{\ndheading{#1}{secbgcol}{secfgcol}}
85+
86+
%\newcommand{\ndproject}[2]{\ndheading{\noindent#1\newline{\small\url{#2}}}{secbgcol}{secfgcol}}
87+
88+
\newcolumntype{V}{>{\arraybackslash} m{.2\linewidth} }
89+
\newcolumntype{C}{>{\arraybackslash} m{.7\linewidth} }
90+
\newcommand{\ndproject}[6]{%
91+
\vspace{0.5em}
92+
\begin{ndtable}%
93+
\rowcolors[]{1}{projbgcol}{} \arrayrulecolor{projbgcol}
94+
\begin{tabularx}{\columnwidth}{CV}\vspace{-.5em}\normalfont\large\bfseries
95+
#1 \newline {\small\url{#2}} &
96+
\vspace{#5}\hspace{#6}\includegraphics[width=#4\columnwidth]{../pics/#3}\vspace{-0.5em}\end{tabularx}
97+
\end{ndtable}
98+
\vspace{-.5em}
99+
}
100+
101+
\newcommand{\ndcite}[1]{{\small #1}}
102+
%%% User specified packages and stylesheets
103+
104+
%%% Fallback definitions for Docutils-specific commands
105+
106+
% admonition (specially marked topic)
107+
\providecommand{\DUadmonition}[2][class-arg]{%
108+
% try \DUadmonition#1{#2}:
109+
\ifcsname DUadmonition#1\endcsname%
110+
\csname DUadmonition#1\endcsname{#2}%
111+
\else
112+
\begin{center}
113+
\fbox{\parbox{0.9\textwidth}{#2}}
114+
\end{center}
115+
\fi
116+
}
117+
118+
% title for topics, admonitions and sidebar
119+
\providecommand*{\DUtitle}[2][class-arg]{%
120+
% call \DUtitle#1{#2} if it exists:
121+
\ifcsname DUtitle#1\endcsname%
122+
\csname DUtitle#1\endcsname{#2}%
123+
\else
124+
\smallskip\noindent\textbf{#2}\smallskip%
125+
\fi
126+
}
127+
128+
% hyperlinks:
129+
\ifthenelse{\isundefined{\hypersetup}}{
130+
\usepackage[unicode,colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
131+
\urlstyle{same} % normal text font (alternatives: tt, rm, sf)
132+
}{}
133+
134+
%%% Local Variables:
135+
%%% mode: latex
136+
%%% TeX-master: t
137+
%%% TeX-PDF-mode: t
138+
%%% End:

flier/nipy-handout.tex

Lines changed: 1 addition & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -1,136 +1,5 @@
1-
% generated by Docutils <http://docutils.sourceforge.net/>
2-
\documentclass[letterpaper,landscape,english,9pt]{report}
3-
\usepackage[landscape,margin=0.5cm]{geometry}
4-
5-
\usepackage{fixltx2e} % LaTeX patches, \textsubscript
6-
\usepackage{cmap} % fix search and cut-and-paste in PDF
7-
\usepackage[T1]{fontenc}
8-
\usepackage[utf8]{inputenc}
9-
\usepackage{ifthen}
10-
\usepackage{babel}
11-
\usepackage{color}
12-
\usepackage{float} % float configuration
13-
\floatplacement{figure}{H} % place figures here definitely
14-
15-
16-
\usepackage{multicol}
17-
%\setlength{\columnseprule}{1pt} % for visible divider
18-
\setlength{\columnsep}{1cm}
19-
20-
\usepackage{graphicx}
21-
\graphicspath{
22-
{../pics/}
23-
}
24-
25-
%%% Custom LaTeX preamble
26-
% PDF Standard Fonts
27-
\usepackage{mathptmx} % Times
28-
\usepackage[scaled=.90]{helvet}
29-
\usepackage{courier}
30-
31-
\usepackage{flowfram}
32-
%\usepackage{booktabs} % for rules in tables
33-
\usepackage{tabularx} % for column-width tables
34-
\usepackage[table]{xcolor} % color control
35-
36-
%\usepackage[colorlinks]{hyperref}
37-
38-
\usepackage{enumitem} % useful for control of listings
39-
\usepackage[compact,raggedright]{titlesec}
40-
\usepackage{comment}
41-
42-
\newcommand{\epigraph}[3]{\textit{#1}\linebreak \vspace{-1.5em} \begin{flushright}\hspace{5em}\ --\ #2\linebreak\small{#3} \end{flushright}}
43-
44-
\pagestyle{empty}
45-
\parindent=0pt
46-
47-
% Attempts to change bg color of *section headings
48-
%\definecolor{secbgcol}{rgb}{0.9, 0.85, 0.85}
49-
%\titleformat{\section}
50-
%{\color{red}\normalfont\Large\bfseries}{\ndsection}{1em}{}
51-
%\titleformat{\subsection}
52-
%{\color{red}\normalfont\large\bfseries}{\begin{flushright}\hfill\thesubsection
53-
% \end{flushright}}{1em}{}
54-
%
55-
%\usepackage{pstricks}
56-
57-
% To create tables within multicols
58-
\makeatletter
59-
\newenvironment{ndtable}
60-
{\def\@captype{table}}
61-
{}
62-
63-
64-
\newcommand{\ndheading}[3]{%
65-
\vspace{0.5em}
66-
\begin{ndtable}%
67-
\rowcolors[\hline]{1}{#2}{} \arrayrulecolor{#3}
68-
\begin{tabularx}{\columnwidth}{>{\centering\arraybackslash}X}\vspace{-.5em}\normalfont\large\bfseries
69-
#1\vspace{0.05em}\\\end{tabularx}
70-
\end{ndtable}
71-
\vspace{-.5em}
72-
}
73-
74-
\definecolor{secfgcol}{RGB}{102, 153, 0}
75-
\definecolor{secbgcol}{RGB}{216, 255, 137}
76-
\definecolor{projfgcol}{RGB}{6, 83, 215}
77-
\definecolor{projbgcol}{RGB}{255, 255, 205}
78-
79-
%\definecolor{secfgcol}{RGB}{6, 83, 215}
80-
%\definecolor{secbgcol}{RGB}{241, 248, 255}
81-
%\definecolor{projfgcol}{RGB}{6, 83, 215}
82-
%\definecolor{projbgcol}{RGB}{241, 248, 255}
83-
84-
\newcommand{\ndsection}[1]{\ndheading{#1}{secbgcol}{secfgcol}}
85-
\newcommand{\ndsubsection}[1]{\ndheading{#1}{secbgcol}{secfgcol}}
86-
87-
%\newcommand{\ndproject}[2]{\ndheading{\noindent#1\newline{\small\url{#2}}}{secbgcol}{secfgcol}}
88-
89-
\newcolumntype{V}{>{\arraybackslash} m{.2\linewidth} }
90-
\newcolumntype{C}{>{\arraybackslash} m{.7\linewidth} }
91-
\newcommand{\ndproject}[6]{%
92-
\vspace{0.5em}
93-
\begin{ndtable}%
94-
\rowcolors[]{1}{projbgcol}{} \arrayrulecolor{projbgcol}
95-
\begin{tabularx}{\columnwidth}{CV}\vspace{-.5em}\normalfont\large\bfseries
96-
#1 \newline {\small\url{#2}} &
97-
\vspace{#5}\hspace{#6}\includegraphics[width=#4\columnwidth]{../pics/#3}\vspace{-0.5em}\end{tabularx}
98-
\end{ndtable}
99-
\vspace{-.5em}
100-
}
101-
102-
\newcommand{\ndcite}[1]{{\small #1}}
103-
%%% User specified packages and stylesheets
104-
105-
%%% Fallback definitions for Docutils-specific commands
106-
107-
% admonition (specially marked topic)
108-
\providecommand{\DUadmonition}[2][class-arg]{%
109-
% try \DUadmonition#1{#2}:
110-
\ifcsname DUadmonition#1\endcsname%
111-
\csname DUadmonition#1\endcsname{#2}%
112-
\else
113-
\begin{center}
114-
\fbox{\parbox{0.9\textwidth}{#2}}
115-
\end{center}
116-
\fi
117-
}
118-
119-
% title for topics, admonitions and sidebar
120-
\providecommand*{\DUtitle}[2][class-arg]{%
121-
% call \DUtitle#1{#2} if it exists:
122-
\ifcsname DUtitle#1\endcsname%
123-
\csname DUtitle#1\endcsname{#2}%
124-
\else
125-
\smallskip\noindent\textbf{#2}\smallskip%
126-
\fi
127-
}
1+
\include{common-handout}
1282

129-
% hyperlinks:
130-
\ifthenelse{\isundefined{\hypersetup}}{
131-
\usepackage[unicode,colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
132-
\urlstyle{same} % normal text font (alternatives: tt, rm, sf)
133-
}{}
1343
\hypersetup{
1354
pdftitle={Python in NeuroImaging},
1365
}

0 commit comments

Comments
 (0)