Skip to content

Commit

Permalink
add missing files for rebuilding pdf
Browse files Browse the repository at this point in the history
SVN Revision: 994
  • Loading branch information
nniclausse committed Mar 5, 2009
1 parent 34e4b3d commit 6610af8
Show file tree
Hide file tree
Showing 7 changed files with 597 additions and 124 deletions.
8 changes: 4 additions & 4 deletions doc/Makefile
@@ -1,16 +1,16 @@
# $Id$

MANPAGE_SRC = tsung.1.sgml tsplot.1.sgml
MANPAGE = tsung.1 tsplot.1
MANPAGE_SRC = tsung.1.sgml tsplot.1.sgml tsung-recorder.1.sgml
MANPAGE = tsung.1 tsplot.1 tsung-recorder.1

TOPDIR=$(HOME)/cvs/projetdoc/common/
TOPDIR=.
IMG_TOPDIR=.
LOGO_DIR=$(TOPDIR)/logos

FILES=$(wildcard *.tex)

# classe et styles latex
INCLUDES=shortcuts.sty IDXDOC_light.cls
INCLUDES=shortcuts.sty TSUNG-en.cls

# chemin des fichiers de style
STYLE=$(TOPDIR)/styles
Expand Down
284 changes: 284 additions & 0 deletions doc/TSUNG-en.cls
@@ -0,0 +1,284 @@
%% $Id :$

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{TSUNG-en}[2002/12/02 0.1]

\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions
\LoadClass[10pt]{article}

\RequirePackage[colorlinks=false]{hyperref}
\RequirePackage{url}
\RequirePackage{xspace}

\RequirePackage[T1]{fontenc}
%\RequirePackage[cyr]{aeguill}
%\RequirePackage{ae}
\RequirePackage{a4wide}
\RequirePackage{fancyhdr}
\RequirePackage{lastpage}
\RequirePackage{color}
\RequirePackage{colortbl} % Cf. _LaTeX par la pratique_, p. 300...
\RequirePackage{nopageno}
% \RequirePackage[latin1]{inputenc}
% \RequirePackage{ucs}
\RequirePackage[utf8]{inputenc}
%\RequirePackage[francais,english]{babel}
\RequirePackage[english]{babel}
\RequirePackage{tabularx}
\RequirePackage{hhline}
\RequirePackage{textcomp}
\RequirePackage{times}
%\RequirePackage[english]{varioref} % références en français
\RequirePackage[debugshow,final]{graphics}

\RequirePackage{fancyvrb} % paquetage verbatim évolué
\fvset{fontsize=\scriptsize,numbers=left,frame=single}

\newcommand{\GreyShade}{0.95}
\newcommand{\GrayShade}{\GreyShade}

\newif\ifpdf
\ifx\pdfoutput\undefined
\pdffalse % we are not running PDFLaTeX
\else
\pdfoutput=1 % we are running PDFLaTeX
\pdftrue
\fi

\ifpdf
\RequirePackage[pdftex]{graphicx}
\pdfcompresslevel=9
\DeclareGraphicsExtensions{.png,.jpg,.pdf,.mps}
\else
\RequirePackage{graphicx}
\DeclareGraphicsExtensions{.ps,.eps}
\fi

%%
\setlength{\voffset}{-.4in}
%\setlength{\headheight}{14.5mm}
\setlength{\headheight}{50pt}
\setlength{\textheight}{215mm}

\definecolor{idxgreen}{rgb}{0.22,0.50,0.18}%#39812F
%% Headers


%% Headers
\pagestyle{fancy}
\renewcommand{\sectionmark}[1]{\markboth{\thesection.\ #1}{}}
\renewcommand{\subsectionmark}[1]{\markright{#1}}
\rhead{\emph{\leftmark\\\rightmark}}
\lhead{\logo{2}}
\rfoot{\small{Page \thepage\//\pageref{LastPage}}}
%\rhead{\leftmark}
\cfoot{\scriptsize {Tsung Users manual: \url{http://tsung.erlang-projects.org}}}
\renewcommand{\footrulewidth}{0.2pt}
\lfoot{}

%% same thing without subsection
\fancypagestyle{fancytoc}{%
\fancyhf{}
\rhead{\emph{\leftmark}}
\lhead{\logo{2}\\%
\it{\textcolor{idxgreen}{Tsung} manual}}
\cfoot{\scriptsize {Tsung Users manual: \url{http://tsung.erlang-projects.org}}}
}

%% change fancy headers for toc:
\let\myTOC\tableofcontents
\renewcommand{\tableofcontents}{%
\begingroup
\let\ps@plain\ps@empty
\pagestyle{fancytoc}
\myTOC
\clearpage
\endgroup%
}

%%
%% Build title page
\renewcommand{\@maketitle}{%
% \newpage
% \null
%FIXME : Need to define a minipage to be sure changing page after maketitle
%\begin{minipage}[t][0.95\textheight][t]{\textwidth}
% \usebox{\addressbox}%
% \vspace*{1cm}
\begin{flushright}%
\fontsize{14}{18}\selectfont%
\usebox{\titlebox} \\%
% \usebox{\numberbox}\\
% \usebox{\datebox}
% \usebox{\authorbox}\\[2ex]%
\end{flushright}%

\vspace*{\fill}
\begin{tabular}{p{20mm} r}
& \includegraphics[scale=0.7]{logo_tsung} \\
\end{tabular}
\vspace*{\fill}

\CartoucheGeneral
\thispagestyle{plain}
% \newpage


% \begin{flushleft}%
% \usebox{\doccopyrightbox}\\%
% \end{flushleft}%
% \vspace{2cm}
% \begin{flushleft}%
% {\huge\textbf{Written by:}}
% \begin{minipage}[t]{\textwidth}%
% \usebox{\authorbox}\\[2ex]%
% \end{minipage}
% \end{flushleft}%
% \vspace{2cm}
% \par

%\end{minipage}
}

\newcommand{\CartoucheGeneral}{%
\begin{center}
\newcolumntype{Y}{>{\columncolor[gray]{\GrayShade}}r}
\begin{tabular}{|Yl|}
\hline
% Version: & \verb@version \DocumentVersion{} \\
Version: & \idxversion \\
References: & \idxref \\
% Date de Publication: & \idxreldate{} \\
Printing Date: & \today \\
\hline
\end{tabular}
\end{center}
}

\newcommand{\logo}[1]{%
\includegraphics[width=30mm]{logo_tsung}
}


% Boxes for the title
\newsavebox{\authorbox}
\savebox{\authorbox}{}
\newsavebox{\titlebox}
\newsavebox{\numberbox}
\newsavebox{\datebox}
\newsavebox{\addressbox}
\newsavebox{\doccopyrightbox}


\savebox{\addressbox}{%
\begin{minipage}[t]{\textwidth}%
\logo{3} \hfill \parbox[c]{5cm}{
\flushright%
OLDSTUFF
}

\end{minipage}
}
%

\newcommand{\addauthor}[3]{%
\savebox{\authorbox}{%
\parbox[t]{\textwidth}{%
\flushleft%
\usebox{\authorbox}\\%
{\fontfamily{\familydefault}\fontsize{10}{11}%
\fontseries{m}\fontshape{n}\selectfont%
#1 }
{\fontfamily{\familydefault}\fontsize{12}{14}%
\fontshape{sc}\selectfont%
#2 }%
\fontsize{12}{12}\selectfont%
{\fontfamily{\familydefault}\fontsize{10}{11}%
\fontseries{m}\fontshape{n}\selectfont%
(\noexpand\url{#3}})%
}%
}
}
\newcommand{\Abstract}[1]{%
\begin{flushleft}
{\huge{\textbf{Abstract:}}}\\
\end{flushleft}
\begin{center}
\vspace{5mm}
{\em
\begin{tabular}{|p{1mm}p{120mm}p{1mm}|}
\hline
& & \\
& #1 & \\
& & \\
\hline
\end{tabular}
}
\end{center}
}

\newcommand{\doctitle}[1]{%
\savebox{\titlebox}{%
\parbox[b]{\textwidth}%
% {\begin{flushright}%
% {\Huge \textbf{#1}\par}%
% \Huge{\vspace{2ex}}%
% \end{flushright}%
% }%
{\flushright%
\rule[0.5ex]{\textwidth}{0.5mm}\\%
\vspace{5mm}%
% \fontfamily{\familydefault}\fontsize{18}{22}%
\fontfamily{\familydefault}\Huge%
\fontseries{b}\fontshape{n}\selectfont%
#1 \\%
\rule[0.5ex]{\textwidth}{0.5mm}%
}%
}%
}
\@onlypreamble{\doctitle}

\newcommand{\docref}[1]{%
\newcommand{\idxref}{\texttt{#1}}
}
\newcommand{\docversion}[1]{%
\newcommand{\idxversion}{#1}
\savebox{\numberbox}{
\fontfamily{\familydefault}\fontsize{14}{18}%
\fontseries{b}\fontshape{n}\selectfont%
Version: #1}%
}

\newcommand{\docreldate}[1]{%
\newcommand{\idxreldate}{#1}
\savebox{\datebox}{
\fontfamily{\familydefault}\fontsize{14}{18}%
\fontseries{m}\fontshape{n}\selectfont%
#1}%
}

\newcommand{\doccopyright}[1]{%
\savebox{\doccopyrightbox}{%
{\fontfamily{\familydefault}\fontsize{8}{10}%
\fontseries{m}\fontshape{n}\selectfont%
Copyright: {\copyright} Nicolas Niclausse}%
}%
}


\renewcommand{\abstract}{
\section*{Résumé}%
}

\newcommand{\docobjectifs}{%
\section{Objectifs}
}

\newcommand{\docperimetre}{%
\section{perimeter}
}




17 changes: 17 additions & 0 deletions doc/breakcites.sty
@@ -0,0 +1,17 @@
% breakcites
% Style file to allow citations to be broken across lines.
% - Don Hosek 3/14/89 (LaTeX209-Version)
% - Leo Broska 02/20/97 (LaTeX-2e-Version)
%
\def\@citex[#1]#2{%
\let\@citea\@empty
\@cite{\@for\@citeb:=#2\do
{\@citea\def\@citea{,\penalty\@m\ }%
\edef\@citeb{\expandafter\@firstofone\@citeb}%
\if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi
\@ifundefined{b@\@citeb}{\mbox{\reset@font\bfseries ?}%
\G@refundefinedtrue
\@latex@warning
{Citation `\@citeb' on page \thepage \space undefined}}%
{\csname b@\@citeb\endcsname}}}{#1}}

Binary file added doc/images/logo_tsung.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions doc/shortcuts.sty
@@ -0,0 +1,70 @@
%%% shortcuts.sty ---

%% Author: nicolas.niclausse
%% Version: $Id: shortcuts.sty,v 1.6 2003/08/13 16:23:11 nniclausse Exp $

%%% Commentary:

%% Put this file into your TEXINPUTS and the following into your preamble:
%% \usepackage[OPTIONS]{shorcuts}

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\def\@rcs@ $#1Date: #2 #3$$#4Revision: #5$ {
\ProvidesPackage{shortcuts}[#2 v#5]}
\@rcs@ $Date: 2003/08/13 16:23:11 $$Revision: 1.6 $

\DeclareOption{}{%%%
}

%%\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{}}
\ExecuteOptions{}
\ProcessOptions

%%%%##########################################################################
%%%% Main code
%%%%##########################################################################
\usepackage{pifont} % pour le caractère trademark
\def\trademark{\Pisymbol{psy}{212} }

\def\ie{\textit{ie.} }
% necessaire pour frbib quand on utilise babel
\let\ifFTR\iftrue
%\usepackage{frbib}
\usepackage{breakcites}

\newcommand{\guillem}[1]{«#1»}

\newcommand{\familyName}[1]{\textsc{#1}}
\newcommand{\strong}[1]{\textbf{#1}}

\newcommand{\host}{\begingroup \urlstyle{tt}\Url}

\newcommand{\file}{\begingroup \urlstyle{tt}\Url}
\newcommand{\computeroutput}[1]{\textsf{#1}}
\newcommand{\userinput}[1]{\textsf{#1}}
\newcommand{\program}[1]{\textsf{#1}}
\newcommand{\command}[1]{\texttt{#1}}
\newcommand{\varname}[1]{\texttt{#1}}
\newcommand{\foreign}[1]{«\emph{#1}»}
\newcommand{\keycap}[1]{\texttt{\fbox{#1}}}

%%% Déclarations
\newcommand{\email}[1]{\url{#1}}
\newcommand{\unix}[1]{Unix}
\newcommand{\linux}[1]{Linux}
\newcommand{\ms}[1]{Microsoft}
\newcommand{\win}[1]{MS-Windows}
\newcommand{\wnt}[1]{MS-Windows NT 4}
\newcommand{\wintk}[1]{MS-Windows 2000}
\newcommand{\opnsrc}[1]{\textsf{Open Source}}

\newcommand{\httperf}[1]{\program{httperf}}

\newcommand{\FIXME}[1]{\strong{FIXME: #1}}

\endinput

%%% Local Variables:
%%% TeX-auto-save: nil
%%% TeX-auto-parse-length: 99999
%%% End:

0 comments on commit 6610af8

Please sign in to comment.