From 2b9a9305f958489f1a1507ca5ce13cbd2f444556 Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Thu, 25 Jun 2015 10:18:01 +0200 Subject: [PATCH] initial latex framework --- Makefile | 24 ++++ config/font.tex | 8 ++ config/headfoot.tex | 6 + config/novero_logo_web_500px.eps | 223 +++++++++++++++++++++++++++++++ config/sourcelst.tex | 35 +++++ config/titlepage.tex | 20 +++ framework.tex | 55 ++++++++ 7 files changed, 371 insertions(+) create mode 100644 Makefile create mode 100644 config/font.tex create mode 100644 config/headfoot.tex create mode 100644 config/novero_logo_web_500px.eps create mode 100644 config/sourcelst.tex create mode 100644 config/titlepage.tex create mode 100644 framework.tex diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..dd5834b --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +MAIN := framework.pdf +SRC := $(basename $(MAIN)).tex +DEP := \ + config/headfoot.tex \ + config/sourcelst.tex \ + config/titlepage.tex \ + Makefile + +all: $(MAIN) $(DEP) + +clean: + rm -f \ + $(basename $(MAIN)).aux \ + $(basename $(MAIN)).dvi \ + $(basename $(MAIN)).log \ + $(basename $(MAIN)).out \ + $(basename $(MAIN)).toc \ + $(MAIN) + +$(MAIN): + @latex $(SRC) + latex $(SRC) + dvipdf $(basename $(MAIN)).dvi $(MAIN) + diff --git a/config/font.tex b/config/font.tex new file mode 100644 index 0000000..6c966a1 --- /dev/null +++ b/config/font.tex @@ -0,0 +1,8 @@ +%\usepackage{times} +%\fontfamily{ptm}\selectfont +%\renewcommand{\familydefault}{\rmdefault} + +\usepackage{helvet} +\fontfamily{phv}\selectfont +\renewcommand{\familydefault}{\sfdefault} + diff --git a/config/headfoot.tex b/config/headfoot.tex new file mode 100644 index 0000000..2db5c48 --- /dev/null +++ b/config/headfoot.tex @@ -0,0 +1,6 @@ +\ihead{\includegraphics[scale=0.16]{config/novero_logo_web_500px.eps}} +\ohead{\today} +\setheadsepline{1pt} +\ofoot{\pagemark} +\setfootsepline{1pt} + diff --git a/config/novero_logo_web_500px.eps b/config/novero_logo_web_500px.eps new file mode 100644 index 0000000..103bb5e --- /dev/null +++ b/config/novero_logo_web_500px.eps @@ -0,0 +1,223 @@ +%!PS-Adobe-3.0 EPSF-3.0 +%%Creator: cairo 1.12.16 (http://cairographics.org) +%%CreationDate: Mon Feb 17 14:12:41 2014 +%%Pages: 1 +%%DocumentData: Clean7Bit +%%LanguageLevel: 3 +%%BoundingBox: 0 -1 398 62 +%%EndComments +%%BeginProlog +save +50 dict begin +/q { gsave } bind def +/Q { grestore } bind def +/cm { 6 array astore concat } bind def +/w { setlinewidth } bind def +/J { setlinecap } bind def +/j { setlinejoin } bind def +/M { setmiterlimit } bind def +/d { setdash } bind def +/m { moveto } bind def +/l { lineto } bind def +/c { curveto } bind def +/h { closepath } bind def +/re { exch dup neg 3 1 roll 5 3 roll moveto 0 rlineto + 0 exch rlineto 0 rlineto closepath } bind def +/S { stroke } bind def +/f { fill } bind def +/f* { eofill } bind def +/n { newpath } bind def +/W { clip } bind def +/W* { eoclip } bind def +/BT { } bind def +/ET { } bind def +/pdfmark where { pop globaldict /?pdfmark /exec load put } + { globaldict begin /?pdfmark /pop load def /pdfmark + /cleartomark load def end } ifelse +/BDC { mark 3 1 roll /BDC pdfmark } bind def +/EMC { mark /EMC pdfmark } bind def +/cairo_store_point { /cairo_point_y exch def /cairo_point_x exch def } def +/Tj { show currentpoint cairo_store_point } bind def +/TJ { + { + dup + type /stringtype eq + { show } { -0.001 mul 0 cairo_font_matrix dtransform rmoveto } ifelse + } forall + currentpoint cairo_store_point +} bind def +/cairo_selectfont { cairo_font_matrix aload pop pop pop 0 0 6 array astore + cairo_font exch selectfont cairo_point_x cairo_point_y moveto } bind def +/Tf { pop /cairo_font exch def /cairo_font_matrix where + { pop cairo_selectfont } if } bind def +/Td { matrix translate cairo_font_matrix matrix concatmatrix dup + /cairo_font_matrix exch def dup 4 get exch 5 get cairo_store_point + /cairo_font where { pop cairo_selectfont } if } bind def +/Tm { 2 copy 8 2 roll 6 array astore /cairo_font_matrix exch def + cairo_store_point /cairo_font where { pop cairo_selectfont } if } bind def +/g { setgray } bind def +/rg { setrgbcolor } bind def +/d1 { setcachedevice } bind def +%%EndProlog +%%Page: 1 1 +%%BeginPageSetup +%%PageBoundingBox: 0 -1 398 62 +%%EndPageSetup +q 0 -1 398 63 rectclip q +Q q +0 61.6 397.602 -61.602 re W n +q +0 61.6 398 -62 re W n +[ 0.8 0 0 0.8 0 -0.00000152588 ] concat +/DeviceRGB setcolorspace +8 dict dup begin + /ImageType 1 def + /Width 497 def + /Height 77 def + /Interpolate true def + /BitsPerComponent 8 def + /Decode [ 0 1 0 1 0 1 ] def + /DataSource currentfile /ASCII85Decode filter /FlateDecode filter def + /Interpolate true def + /ImageMatrix [ 1 0 0 -1 0 77 ] def +end +image +Gb"/,>APNe>(5Uf2l%0ABHC2fKEPt6Qj4HLOEd/C+sA4n!!t5DN.aY%_+\c+1X,Im$`dE6m- + a6.1c*U:oHg'(F0h&iG+?Kjm+Aj/:1?;Aj82!J@llWiG:3;[:"Q1Hj`4@l^T-WoIJVJdgeO + D=kOP2D5Nb92IsJ"[KaJPE<2`We6A5a].TE?CTgFG?'e31]O9tT#oe`2[0"VbF9@4nmplRK + 0irT/jrm-)oOmf%uI..')(B;('n6t71Nroph6iSq\I5.(W>KqKrkNUbjo0V^9O:()A21K_2 + 36:m4Z(:jOVT6H=62VgHbWo`q7K<9E]FjL!".0kl$4?V2.j(LQ50VP^ + X-"PUi#D._WO]ZTGTi[^Bhu&i@e1D@Qg+HGX?]V]%7M:>.o)#c5TR[S4;:G#%eI)3*V&*J9(cjNPgnGST9&k + 5r$(Vh575*s;<#(!QiEn3,+%q;mtJMthtPDlJF-jaF&5\oP'j66JM(p/q%oA<'?3J.Yk1=! + -c8lh7a!Qk4`i1_9;UNA`@In;lTi;kZ[G)S\4PE8![D>mc2n><%s<3+>(bB+DM/`3(:&th# + V2G[eS$e/L\W1QA0>`Af`j5cUPZcA>fJVn/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Vhr5,m\EHG+7F$9ARO/JiWY\$7-*0#8"efFH?&6V-dQ@DW5sN.P?%rP&u)#q/rJ)[i + Yl-2k)I^-h6F*Grhr5`KF,@%1TA&c9a)qLu@_B[D3lEh6J8j?DM[.]j<)40]")W0-^([oKmFT/4t[qV?O(GrdtiUIG0`Kfqffn,=;XdKOs0E8[gB%TB#.B=Dd8WYC + k"364]2+$`_B!M09[Ynu4MA@OeV-OZbLBJc4XE(npr6``&9d6$02gd0Aa6a'=ts8*'&!EkpVZ2d4(X+H)\IB$dC6Vd=W`cbB&YlEFgA`81?WX=oca97 + .2X'#^Sgf9b^C"(RH/[;mS4i!("IrkpXAjT8f"'@MFf6ZO+MkV$lZh-jjREH"cFY9o's + J[Oq!NMZ6TpWZ)gPH^pE)t4cW\#R9P9n;YJG%mMNH^>TTC,:G0gaULO!meH=amZIf:g#/?6 + LCWUsur6D[ip7cQ!oQZ7!_FSJ/(iRsSngo3@4eWZ,rE4]'W$r5#s"Z36K)q1:`7e>-""k5k + 2@(a/k07B,^Hudf40po*F;J?RoAiQebD'T`$DBLfVJ/,M3I'OOo;i@_F1_)YVG&\pr-s+>T + lW)>j!4_2m^) + ib5B+,]5-d,$q_JYfbKh7Qa@.l(45,J#nKBaHcS)[L*J"g!@q.W,9%[JKFX)(=.r=OJ:Oq* + NK"r?-pNl\BuaK+V2eU5;i!F*MeI8slePKaJPgJ?F$$.`6Q><"F$]ABu?lV]ksHT0s +Q +Q Q +showpage +%%Trailer +end restore +%%EOF diff --git a/config/sourcelst.tex b/config/sourcelst.tex new file mode 100644 index 0000000..4afb2ed --- /dev/null +++ b/config/sourcelst.tex @@ -0,0 +1,35 @@ +\usepackage{listings}% +\usepackage{courier}% + +\newcommand{\lstsetc} +{\lstset +{ +language=[ANSI]C, +numbers=left, +tabsize=4, +frame=single, +basicstyle=\ttfamily\small, +commentstyle=\color{green}, +keywordstyle=\color{blue}\textbf +} +} + +\lstloadlanguages{[ISO]C++, [ANSI]C, bash, make, sh, Gnuplot} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% example usage: +% +% \input{config/sourcelst.tex} +% ... +% \lstsetc +% \begin{lstlisting} +% #include +% +% int main(int argc, char *argv[]) +% { +% printf("Hello World!\n"); +% return 0; +% } +% \end{lstlisting} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + diff --git a/config/titlepage.tex b/config/titlepage.tex new file mode 100644 index 0000000..d585a96 --- /dev/null +++ b/config/titlepage.tex @@ -0,0 +1,20 @@ +\definecolor{fwdred}{rgb}{0.10,0.10,0.10} %{0,0.2,0.4} + +\newcommand{\Hrule}{\textcolor{fwdred!75}{\rule{\textwidth}{1mm}}}% +\vspace*{\stretch{1}}% +\noindent +\Hrule% +\begin{flushright} +\huge\textsc{\docname}\\%[2.5mm] +\textsc{\prjname}\\[5mm] +\Large{% +\mbox{}}\\ +Version: \docversion\\ +\end{flushright} +\Hrule% +\vspace*{\stretch{3}}% +\begin{flushright} +Date: \today\\ +\end{flushright} +\hfill Dept: Development, novero dabendorf GmbH% + diff --git a/framework.tex b/framework.tex new file mode 100644 index 0000000..1c832ea --- /dev/null +++ b/framework.tex @@ -0,0 +1,55 @@ +\documentclass[a4paper,12pt,twoside]{article}% +\usepackage[utf8]{inputenc}% +\usepackage[T1]{fontenc}% +\usepackage{caption}% +\usepackage{placeins}% +\usepackage{graphicx}% +\usepackage[colorlinks, +pdfpagelabels, +pdfstartview = FitH, +bookmarksopen = true, +bookmarksnumbered = true, +linkcolor = black, +plainpages = false, +hypertexnames = false, +citecolor = black]{hyperref}% + +\usepackage{amsmath}% +\usepackage{amssymb}% +\usepackage{amstext}% +\usepackage{amsfonts}% +\usepackage{mathrsfs}% +\usepackage{hyperref}% +\usepackage{xcolor}% +\usepackage{scrpage2}% + +\newcommand*\euler{\mathrm{e}} + +\newcommand{\docname}{Measurement protocol} +\newcommand{\prjname}{agricola} +\newcommand{\docversion}{0.1} + +\input{config/font.tex} +\input{config/sourcelst.tex} + +\begin{document} +\clearscrheadfoot +\clearscrplain +\clearscrheadings +\pagestyle{scrplain} % switch off head and foot line +\input{config/titlepage.tex} +\pagestyle{scrheadings} % switch on head and foot line +\newpage +\tableofcontents +\input{config/headfoot.tex} +\newpage +\section{One} +bla +\subsection{OneOne} +blabla +\newpage +\section{Two} +blablabla + +\end{document} +