1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
|
#ifdef BOOK
\documentclass[9pt,b5thesispaper]{swipl}
\setlength\voffset {-15mm}
\setlength\paperheight {220mm}
\setlength\textheight {170mm}
\setlength\textwidth {130mm}
\setlength\paperwidth {170mm}
\setlength\oddsidemargin {0mm}
\setlength\evensidemargin {-10mm}
\def\setuphyperref{\relax}
#else
\documentclass[11pt,twoside]{report}
\def\setuphyperref{\usepackage[pdftex,colorlinks=true,urlcolor=blue]{hyperref}}
#endif
\usepackage{pl}
\usepackage{html}
\usepackage{logo}
\usepackage{plpage}
%\onefile
\sloppy
\makeindex
% Configure latex2html
\htmloutput{Manual} % Output directory
\htmlmainfile{index} % Main document file
\bodycolor{white} % Page colour
\linkimage{home}{home.gif} % Images for links
\linkimage{index}{yellow_pages.gif}
\linkimage{contents}{index.gif}
\linkimage{up}{up.gif}
\linkimage{previous}{prev.gif}
\linkimage{next}{next.gif}
\linkimage{summary}{info.gif}
%\includeonly{ide}
#ifdef ONLINE
\usepackage{txt}
\usepackage{plonline}
\setcounter{secnumdepth}{3}
\sloppy
#else
\usepackage{times}
\usepackage{fancyheadings}
\renewcommand{\runningtitle}{SWI-Prolog \versionshort{} Reference Manual}
\headheight 14pt
\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}} % remember chapter title
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
% section number and title
\lhead[\fancyplain{}{\bf\thepage}]{\fancyplain{}{\bf\rightmark}}
\rhead[\fancyplain{}{\bf\leftmark}]{\fancyplain{}{\bf\thepage}}
\footrulewidth 0.2pt
\lfoot[\tiny \runningtitle]{}
\rfoot[]{\tiny \runningtitle}
\cfoot{}
\pagestyle{fancyplain}
#endif
\newcommand{\vmajor}{8}
\newcommand{\vminor}{2}
\newcommand{\vpatch}{4}
\newcommand{\vtag}{}
\newcommand{\vmonth}{January}
\newcommand{\vyear}{2021}
#ifdef BOOK
\newcommand{\versionshort}{\vmajor}
\newcommand{\versionlong}{\vmajor.\vminor, \vmonth~\vyear}
#else
\newcommand{\versionshort}{\vmajor.\vminor}
\newcommand{\versionlong}{\vmajor.\vminor.\vpatch, \vmonth~\vyear}
\ifthenelse{\equal{}{\vtag}}{%
\renewcommand{\versionlong}{\vmajor.\vminor.\vpatch, \vmonth~\vyear}}{%
\renewcommand{\versionlong}{\vmajor.\vminor, \vmonth~\vyear}}
#endif
\renewcommand{\arabicday}{\versionshort}
\title{SWI-Prolog \versionshort{} Reference Manual}
\author{SWI-Prolog development team}
\begin{htmlonly}
\maketitle
\begin{abstract}
\input{abstract.tex}
\end{abstract}
\subsection*{About this document}
This manual is written and maintained using \LaTeX{}. The \LaTeX{}
source is included in the source distribution of SWI-Prolog. The manual
is converted into HTML using a converter distributed with the SWI-Prolog
sources. From the same source we generate the PDF version. Sources,
binaries and documentation can be downloaded from the
\href{https://www.swi-prolog.org/Download.html}{SWI-Prolog download
page}.
The SWI-Prolog project {\bf home page} is
\href{https://www.swi-prolog.org}{https://www.swi-prolog.org}
\includegraphics[width=4cm]{figs/by-sa}\\[0mm]
This work is licensed under the Creative Commons Attribution-ShareAlike
3.0 Unported License. To view a copy of this license, visit
\url{http://creativecommons.org/licenses/by-sa/3.0/} or send a letter to
Creative Commons, 444 Castro Street, Suite 900, Mountain View,
California, 94041, USA.
\end{htmlonly}
\begin{document}
\begin{titlepage}
\mbox{~}
\begin{center}
\mbox{~}
\vfil\vfil\vfil
#ifdef ONLINE
{\Huge SWI-Prolog \versionshort} \\[0mm]
#else
\includegraphics[width=5cm]{figs/swipl} \\[0mm]
#endif
{\LARGE Reference Manual} \\[0mm]
{\it Updated for version \versionlong} \\[10mm]
{\large \it SWI-Prolog developers} \\[0mm]
{\large \href{https://www.swi-prolog.org}{https://www.swi-prolog.org}}
\end{center}
\vfil
\begin{quote}
\input{abstract.tex}
\end{quote}
\vfil
\vfil
\newpage
\thispagestyle{empty}
\mbox{~}
\vfill
\begin{quote}
\hspace{-8mm}\includegraphics[width=4cm]{figs/by-sa}\\[0mm]
This work is licensed under the Creative Commons Attribution-ShareAlike
3.0 Unported License. To view a copy of this license, visit
\url{http://creativecommons.org/licenses/by-sa/3.0/} or send a letter to
Creative Commons, 444 Castro Street, Suite 900, Mountain View,
California, 94041, USA.
\end{quote}
\end{titlepage}
\setcounter{page}{1}
\tableofcontents
\include{intro}
\include{overview}
\include{ide}
\include{builtin}
\include{extensions}
\include{module}
\include{tabling}
\include{attvar}
\include{chr}
\include{threads}
\include{engines}
\include{foreign}
\include{runtime}
\appendix
\include{lib/library}
\include{hack}
\include{dialect}
\include{glossary}
\include{license}
\include{summary}
\bibliographystyle{name}
\bibliography{pl}
\printindex
\end{document}
|