* fixed pdf creating (merged)

This commit is contained in:
peter 2000-09-02 21:51:36 +00:00
parent 96b5f00534
commit c843cdf80a
8 changed files with 113 additions and 109 deletions

View File

@ -93,10 +93,10 @@ export TMP=/tmp
# End of configurable section. Do not edit after this line. # End of configurable section. Do not edit after this line.
####################################################################### #######################################################################
PS = $(addsuffix .ps, $(HTML) onechap) PS = $(addsuffix .ps, $(HTML))
DVI = $(addsuffix .dvi, $(HTML) onechap) DVI = $(addsuffix .dvi, $(HTML))
TXT = $(addsuffix .txt, $(HTML) onechap) TXT = $(addsuffix .txt, $(HTML))
PDF = $(addsuffix .pdf, $(HTML) onechap) PDF = $(addsuffix .pdf, $(HTML))
TOC = $(addsuffix .toc, $(HTML) onechap) TOC = $(addsuffix .toc, $(HTML) onechap)
AUX = $(addsuffix .aux, $(HTML) onechap) AUX = $(addsuffix .aux, $(HTML) onechap)
LOG = $(addsuffix .log, $(HTML) onechap) LOG = $(addsuffix .log, $(HTML) onechap)
@ -470,8 +470,11 @@ linuxexamples: examples
# #
# $Log$ # $Log$
# Revision 1.2 2000-09-02 17:36:02 peter # Revision 1.3 2000-09-02 21:51:36 peter
# * merged # * fixed pdf creating (merged)
#
# Revision 1.1.2.1 2000/09/02 17:29:51 peter
# * example including for html docs
# #
# Revision 1.1 2000/07/13 09:10:03 michael # Revision 1.1 2000/07/13 09:10:03 michael
# + Initial import # + Initial import

View File

@ -20,6 +20,8 @@
% %
\ProvidesPackage{fpc}[1996/12/09] \ProvidesPackage{fpc}[1996/12/09]
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\RequirePackage{multicol}
\RequirePackage{epsfig}
\RequirePackage{xspace} \RequirePackage{xspace}
\RequirePackage{ifthen} \RequirePackage{ifthen}
\RequirePackage{listings} \RequirePackage{listings}
@ -183,7 +185,7 @@
% %
% Some versions % Some versions
% %
\newcommand{\fpcversion}{1.0.0} \newcommand{\fpcversion}{1.0.2}
% %
% PDF support % PDF support
% %
@ -194,18 +196,33 @@
\pdfoutput=1 \pdfoutput=1
\pdftrue \pdftrue
\fi \fi
%
% PDF stuff
%
\ifpdf
\usepackage[pdftex,bookmarks=true]{hyperref}
\usepackage{times}
\usepackage[T1]{fontenc}
\setcounter{secnumdepth}{1}
\pdfcompresslevel=9
\pdfpagewidth=210mm
\pdfpageheight=297mm
\fi
\usepackage{html}
\usepackage{htmllist}
% %
% For examples % For examples
% %
\newcommand{\FPCexample}[1]{% \latex{%
\latex{\par \file{\textbf{Listing:} \exampledir/#1.pp}% \newcommand{\FPCexample}[1]{%
\lstinputlisting{\exampledir/#1.pp}}% \par \file{\textbf{Listing:} \exampledir/#1.pp}%
\html{\input{\exampledir/#1.tex}}} \lstinputlisting{\exampledir/#1.pp}%
\newcommand{\Cexample}[1]{% }
\latex{\par \file{\textbf{Listing:} \exampledir/#1.c}% \newcommand{\Cexample}[1]{%
\lstinputlisting[language=c]{\exampledir/#1.c}}% \par \file{\textbf{Listing:} \exampledir/#1.c}%
\html{\input{\exampledir/#1.tex}}} \lstinputlisting[language=c]{\exampledir/#1.c}%
}
}
\newcommand{\exampledir}{.} \newcommand{\exampledir}{.}
\newcommand{\FPCexampledir}[1]{\renewcommand{\exampledir}{#1}} \newcommand{\FPCexampledir}[1]{\renewcommand{\exampledir}{#1}}
% %
@ -230,12 +247,14 @@
% %
% Set some listings options. % Set some listings options.
% %
\usepackage{listings}% \latex{%
\lstset{language=Delphi}% \usepackage{listings}%
\lstset{basicstyle=\sffamily\small}% \lstset{language=Delphi}%
\lstset{commentstyle=\itshape}% \lstset{basicstyle=\sffamily\small}%
\lstset{keywordstyle=\bfseries}% \lstset{commentstyle=\itshape}%
\lstset{frame=tb}% \lstset{keywordstyle=\bfseries}%
\lstset{frame=tb}%
}
% %
% Page settings % Page settings
\setlength{\oddsidemargin}{20pt} \setlength{\oddsidemargin}{20pt}
@ -249,18 +268,4 @@
\addtolength{\headwidth}{\marginparwidth} \addtolength{\headwidth}{\marginparwidth}
\addtolength{\headwidth}{-59pt} \addtolength{\headwidth}{-59pt}
% %
% PDF stuff
%
\ifpdf
\usepackage[pdftex,bookmarks=true]{hyperref}
\usepackage{times}
\usepackage[T1]{fontenc}
\setcounter{secnumdepth}{1}
\pdfcompresslevel=9
\pdfpagewidth=210mm
\pdfpageheight=297mm
\fi
\usepackage{html}
\usepackage{htmllist}
%
% end of fpc.sty % end of fpc.sty

View File

@ -22,36 +22,26 @@
% %
% Preamble % Preamble
% %
\usepackage{ifthen}
\usepackage{xspace}
\usepackage{a4dutch}
\usepackage{makeidx}
\usepackage{fancyheadings}
\usepackage{epsfig}
\usepackage{multicol}
\ifx\pdfoutput\undefined \ifx\pdfoutput\undefined
\usepackage{html} \usepackage{html}
\usepackage{htmllist} \usepackage{htmllist}
\latex{\usepackage{fpc}}
\else
\usepackage{fpc}
\fi \fi
\latex{% %
\ifpdf \html{\input{fpc-html.tex}}
\pdfcompresslevel=9 %
\pdfpagewidth=210mm \ifpdf
\pdfpageheight=297mm
\pdfinfo{/Author(Michael Van Canneyt) \pdfinfo{/Author(Michael Van Canneyt)
/Title(Compiler documentation) /Title(Programmers' Guide)
/Subject(Free Pascal Compiler documentation) /Subject(Free Pascal Compiler documentation)
/Keywords(Free Pascal, Compiler, Internals) /Keywords(Free Pascal, Compiler, Internals)
} }
\fi \fi
}
%
\latex{\usepackage{fpc}}
\html{\input{fpc-html.tex}}
% %
% Settings % Settings
% %
\pagestyle{fancy}
\makeindex \makeindex
% %
% Start of document. % Start of document.

View File

@ -19,16 +19,33 @@
% Boston, MA 02111-1307, USA. % Boston, MA 02111-1307, USA.
% %
\documentclass{report} \documentclass{report}
\usepackage{a4} %
\usepackage{makeidx} % Preamble
\usepackage{times} %
\ifx\pdfoutput\undefined \ifx\pdfoutput\undefined
\usepackage{html} \usepackage{html}
\usepackage{htmllist} \usepackage{htmllist}
\latex{\usepackage{fpc}}
\else
\usepackage{fpc}
\fi \fi
\latex{\usepackage{listings}\lstset{language=delphi}} %
\latex{\usepackage{fpc}}
\html{\input{fpc-html.tex}} \html{\input{fpc-html.tex}}
%
\ifpdf
\pdfinfo{/Author(Michael Van Canneyt)
/Title(Programmers' Guide)
/Subject(Free Pascal Programmers' guide)
/Keywords(Free Pascal)
}
\fi
%
% Settings
%
\makeindex
%
% Start document
%
\begin{document} \begin{document}
\input{crt.tex} \input{crt.tex}
%\input{dos.tex} %\input{dos.tex}

View File

@ -22,24 +22,23 @@
% %
% Preamble % Preamble
% %
\usepackage{epsfig}
\usepackage{multicol}
\ifx\pdfoutput\undefined \ifx\pdfoutput\undefined
\usepackage{html} \usepackage{html}
\usepackage{htmllist} \usepackage{htmllist}
\latex{\usepackage{fpc}}
\else
\usepackage{fpc}
\fi \fi
\latex{% %
\ifpdf \html{\input{fpc-html.tex}}
%
\ifpdf
\pdfinfo{/Author(Michael Van Canneyt) \pdfinfo{/Author(Michael Van Canneyt)
/Title(Programmers' Guide) /Title(Programmers' Guide)
/Subject(Free Pascal Programmers' guide) /Subject(Free Pascal Programmers' guide)
/Keywords(Free Pascal) /Keywords(Free Pascal)
} }
\fi \fi
}
%
\latex{\usepackage{fpc}}
\html{\input{fpc-html.tex}}
% %
% Settings % Settings
% %

View File

@ -22,24 +22,26 @@
% %
% Preamble % Preamble
% %
\usepackage{epsfig}
\usepackage{multicol}
\ifx\pdfoutput\undefined \ifx\pdfoutput\undefined
\usepackage{html} \usepackage{html}
\usepackage{htmllist} \usepackage{htmllist}
\latex{\usepackage{fpc}}
\else
\usepackage{fpc}
\fi \fi
\latex{% %
\ifpdf \html{\input{fpc-html.tex}}
%
\ifpdf
\pdfinfo{/Author(Michael Van Canneyt) \pdfinfo{/Author(Michael Van Canneyt)
/Title(Standard units Reference Guide) /Title(Standard units Reference Guide)
/Subject(Free Pascal Reference guide) /Subject(Free Pascal Reference guide)
/Keywords(Free Pascal, Language, System Unit) /Keywords(Free Pascal, Language, System Unit)
} }
\fi \fi
} %
% Settings
% %
\latex{\usepackage{fpc}}
\html{\input{fpc-html.tex}}
\makeindex \makeindex
% %
% Syntax style % Syntax style

View File

@ -24,49 +24,32 @@
% %
% Preamble % Preamble
% %
\usepackage{ifthen}
\usepackage{xspace}
\usepackage{a4}
\usepackage{makeidx}
\usepackage{syntax}
\usepackage{fancyhdr}
\ifx\pdfoutput\undefined \ifx\pdfoutput\undefined
\usepackage{html} \usepackage{html}
\usepackage{htmllist} \usepackage{htmllist}
\latex{\usepackage{fpc}}
\else
\usepackage{fpc}
\fi \fi
\latex{\usepackage{multicol}} %
\latex{% \html{\input{fpc-html.tex}}
\ifpdf %
\pdfcompresslevel=9 \ifpdf
\pdfpagewidth=210mm
\pdfpageheight=297mm
\pdfinfo{/Author(Michael Van Canneyt) \pdfinfo{/Author(Michael Van Canneyt)
/Title(Standard units Reference Guide) /Title(Standard units Reference Guide)
/Subject(Free Pascal Standard units reference guide) /Subject(Free Pascal Standard units reference guide)
/Keywords(Free Pascal, Units, RTL) /Keywords(Free Pascal, Units, RTL)
} }
\fi \fi
}
%
\latex{\usepackage{fpc}}
\html{\input{fpc-html.tex}}
% %
% Settings % Settings
% %
\pagestyle{fancy}
\fancyhead[LO,RE]{}
\makeindex \makeindex
% %
% Syntax style % Syntax style
% %
\usepackage{syntax} \usepackage{syntax}
\input{syntax/diagram.tex} \input{syntax/diagram.tex}
\latex{
\usepackage{listings}%
\lstset{language=Delphi}%
\lstset{pre=\sffamily}%
\lstset{keywordstyle=\bfseries}%
}
% %
% Start of document. % Start of document.
% %

View File

@ -22,25 +22,30 @@
% %
% Preamble % Preamble
% %
% Don't know why it's needed, but latex2html will else core dump
% when trying to create an image
\usepackage{epsfig} \usepackage{epsfig}
\usepackage{multicol} \usepackage{multicol}
\ifx\pdfoutput\undefined \ifx\pdfoutput\undefined
\usepackage{html} \usepackage{html}
\usepackage{htmllist} \usepackage{htmllist}
\latex{\usepackage{fpc}}
\else
\usepackage{fpc}
\fi \fi
\latex{% %
\usepackage{times} \html{\input{fpc-html.tex}}
\ifpdf %
\ifpdf
\pdfinfo{/Author(Michael Van Canneyt) \pdfinfo{/Author(Michael Van Canneyt)
/Title(Users' Guide) /Title(Users' Guide)
/Subject(Free Pascal Users' guide) /Subject(Free Pascal Users' guide)
/Keywords(Free Pascal) /Keywords(Free Pascal)
} }
\fi \fi
} %
% Settings
% %
\latex{\usepackage{fpc}}
\html{\input{fpc-html.tex}}
\makeindex \makeindex
% %
% Start of document. % Start of document.