Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
create HTML document, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens committed Sep 18, 2013
1 parent f241bbd commit ecf22da
Show file tree
Hide file tree
Showing 242 changed files with 21,773 additions and 2,290,337 deletions.
12 changes: 9 additions & 3 deletions manuals/en/main/Makefile
@@ -1,7 +1,6 @@
LATEX=latex
DVI2PDF=dvipdf
MAKEINDEX=makeindex
LATEX2HTML=latex2html

INDEXES = main.console.ind \
main.director.ind \
Expand All @@ -10,8 +9,15 @@ INDEXES = main.console.ind \
main.sd.ind \
main.monitor.ind

all: main.pdf
all: pdf html

pdf: main.pdf

html: html/main.html

html/main.html: *.sty *.tex $(INDEXES) main.toc
mkdir -p html
htlatex main "" "" -d./html/

%.idx:
$(LATEX) main.tex
Expand All @@ -30,4 +36,4 @@ main.pdf: main.dvi
$(DVI2PDF) main.dvi main.pdf

clean:
rm -f *.aux *.cdx *.ddx *.dvi *.fdx *.idx *.log *.out *.pdf *.sdx *.toc
rm -f *.aux *.cdx *.ddx *.dvi *.fdx *.idx *.log *.out *.pdf *.sdx *.toc *.4ct *.4tc *.idv *.lg *.tmp *.xref html/* main.html main.css
132 changes: 68 additions & 64 deletions manuals/en/main/bareos.sty
Expand Up @@ -43,8 +43,6 @@
\newcommand{\lt}{\textless}
\newcommand{\gt}{\textgreater}

%%
% TODO: path removes spaces from argument! This is a problem that needs to get fixed, esspecially for the windwos section
\newcommand{\command}[1]{\path|#1|}
\newcommand{\bcommand}[1]{\path|#1|}
\newcommand{\file}[1]{\path|#1|}
Expand Down Expand Up @@ -83,60 +81,87 @@
% \directive{}{}{}{required}{}


\floatstyle{boxed}
\newfloat{program}{h}{lop}
\floatname{program}{bconsole}
%\newbox\examplebox
\newenvironment{bconsole}[4]{%
% \floatstyle{boxed}
% \newfloat{floatProgram}{h}{lop}
% \floatname{floatProgram}{bconsole}
% %\newbox\examplebox
% \newenvironment{bconsole}[4]{%
% % #1 prompt
% % #2 command
% % #3 caption (caption is "command", if #3 is not given)
% % #4 input
% \ifthenelse{\isempty{#4}}{
% \def\bconsoleinput{\vskip-1.0\baselineskip}
% }{
% \def\bconsoleinput{{\it enter #4}}
% }
% %\floatProgram
% \footnotesize
% \ifthenelse{\isempty{#3}}{
% \captionof{floatProgram}{#2}
% \label{#2}
% }{
% \captionof{floatProgram}{#3}
% \label{#3}
% }
% \verbatim
% #1 #2\\
% }
% {
% \endverbatim
% \bconsoleinput
% % \endfloatProgram
% }

\lstnewenvironment{bconsole}[4]{%
% #1 prompt
% #2 command
% #3 caption (caption is "command", if #3 is not given)
% #4 input
\renewcommand*{\lstlistingname}{bconsole}
%\footnotesize
\definecolor{colorBconsole}{gray}{0.9}
\ifthenelse{\isempty{#4}}{
\def\bconsoleinput{\vskip-1.0\baselineskip}
}{
\def\bconsoleinput{{\it enter #4}}
}
\program
\footnotesize
\ifthenelse{\isempty{#3}}{
\caption{#2}
\label{#2}
\lstset{label=bconsole:#2,caption=#2}
}{
\caption{#3}
\label{#3}
\lstset{label=bconsole:#3,caption=#3}
}
\verbatim
#1 #2\\
}
{
\endverbatim
\bconsoleinput
\endprogram
}

\lstset{
%basicstyle=\ttfamily,
basicstyle=\small,
stringstyle=\ttfamily,
columns=fixed,
backgroundcolor=\color{colorBconsole},
frame=single,
framerule=0pt,
captionpos=b,
}
\lstinline|#1 #2|
}{}


\newfloat{config}{h}{lop}
\floatname{config}{Configuration}

\newenvironment{bconfig}[1]{%
\lstnewenvironment{bconfig}[1]{%
% #1 caption
\renewcommand*{\lstlistingname}{Configuration}
\footnotesize
\def\bconfig1{#1}
\definecolor{shadecolor}{gray}{0.95}
\snugshade
\verbatim
}
{
\endverbatim
\endsnugshade
\ifthenelse{\isempty{\bconfig1}}{
}{
\captionof{config}{\bconfig1}
\label{config:\bconfig1}
}
}
\definecolor{colorConfig}{gray}{0.9}
\lstset{
backgroundcolor=\color{colorConfig},
frame=single,
framerule=0pt,
basicstyle=\ttfamily,
columns=fullflexible,
label=config:#1,
caption=#1}
}{}



\newfloat{floatCommandOut}{h}{lop}
\floatname{floatCommandOut}{Command}
Expand All @@ -147,15 +172,16 @@
% #3 command
\footnotesize
\def\commandOut1{#1}
\definecolor{shadecolor}{gray}{0.95}
\snugshade
% \definecolor{shadecolor}{gray}{0.95}
% TODO: does not work with htlatex
% \snugshade
\verbatim
% root@linux:~# #3
root@linux:\~{}\# #3
}
{
\endverbatim
\endsnugshade
% \endsnugshade
\ifthenelse{\isempty{\commandOut1}}{
}{
\captionof{floatCommandOut}{\commandOut1}
Expand All @@ -164,26 +190,4 @@ root@linux:\~{}\# #3
}




% \renewenvironment{theindex}
% {\if@twocolumn
% \@restonecolfalse
% \else
% \@restonecoltrue
% \fi
% \@mkboth{\MakeUppercase\indexname}%
% {\MakeUppercase\indexname}%
% \clearpage
% \subsection*{\indexname}
% \addcontentsline{toc}{subsection}{\indexname}
% \thispagestyle{plain}\parindent\z@
% \parskip\z@ \@plus .3\p@\relax
% \let\item\@idxitem}
% {\if@restonecol\onecolumn\else\clearpage\fi} %% Is this needed???
%


%%
\endinput
%%
16 changes: 7 additions & 9 deletions manuals/en/main/main.tex
Expand Up @@ -21,7 +21,6 @@
\usepackage{longtable}
\usepackage{makeidx}
\usepackage{index}
%\usepackage{setspace}
\usepackage{hyperref}
% \usepackage[linkcolor=black,colorlinks=true]{hyperref}
\usepackage{url}
Expand All @@ -31,9 +30,12 @@
\usepackage{ifthen}
\usepackage{xifthen}
\usepackage[usenames,dvipsnames]{color} % required by framed
\usepackage{framed} % framed, oframed, shaded, shaded*, snugshade, snugshade*, leftbar, titled-frame
% framed does not work with htlatex, therefore replaced by listings
%\usepackage{framed} % framed, oframed, shaded, shaded*, snugshade, snugshade*, leftbar, titled-frame
\usepackage{listings}
\usepackage{caption} % captionof
%\usepackage{mdframed} % does not work on openSUSE 12.2
% mdframed does not work on openSUSE 12.2
%\usepackage{mdframed}

\usepackage{bareos}

Expand All @@ -46,16 +48,12 @@
\newindex{console}{console.idx}{console.ind}{Console Index}
\newindex{monitor}{monitor.idx}{monitor.ind}{Monitor Index}


\sloppy

\begin{document}
\sloppy

\sloppy
\parindent 0pt


\include{coverpage}
\input{coverpage}

\clearpage
\pagenumbering{roman}
Expand Down
Binary file removed manuals/images/Exchange.png
Binary file not shown.
Binary file removed manuals/images/Exchange1.png
Binary file not shown.
Binary file removed manuals/images/Exchange2.png
Binary file not shown.

0 comments on commit ecf22da

Please sign in to comment.