%          Prolog file for gnuplot user manual
% This file has alternative sections for use with pdflatex or lualatex.
% Tested with texlive 2022, 2023

% Add '[a4paper]' before '{article}' to load settings for A4-paper
% See below if you add 11pt or 12pt
   \documentclass[10pt,twoside]{article}
   \usepackage{toc_entr}

% imakeidx must come before hyperref (makeidx doesn't care)
% \usepackage{makeidx}
  \usepackage[nonewpage]{imakeidx}
  \makeindex

% hyperref must come before the ucs/utf8x encoding mangling
  \usepackage[
        hyperindex,
        bookmarks,
        bookmarksnumbered=true,
        pdftitle={gnuplot version 6 documentation},
        pdfauthor={gnuplot},
        pdfsubject={see www.gnuplot.info}
  ]{hyperref}
  \hypersetup{
       colorlinks   = true, %Colours links instead of ugly boxes
       linkcolor    = blue, %Colour for internal links
       urlcolor     = blue  %Colour for external hyperlinks
  }


\usepackage{ifluatex,ifxetex}
\ifluatex
    % These commands are for use with lualatex
    % The default CM fonts are missing many unicode characters
    \usepackage{fontspec}
    \setmainfont{Free Serif}
    \setmonofont{Free Mono}
    \usepackage{unicode-math}
\else\ifxetex
    % These commands are for use with xelatex
    % The default CM fonts are missing many unicode characters
    \usepackage{fontspec}
    \setmainfont{FreeSerif.otf}[
        BoldFont = FreeSerifBold.otf ,
        ItalicFont = FreeSerifItalic.otf ,
        BoldItalicFont = FreeSerifBoldItalic.otf ]
    \setmonofont{FreeMono.otf}
    \usepackage{unicode-math}
\else
    % These commands are for use with pdflatex
    \usepackage{ucs}
    \SetUnicodeOption{mathletters}
    \usepackage[utf8x]{inputenc}
    \usepackage{latexsym}
    \usepackage{textgreek}
    \usepackage{amsfonts}
    \usepackage{amssymb}
\fi\fi

% These commands are for the tables of functions
   \usepackage{longtable}
   \usepackage{nicefrac}
   \def\gpCX{\footnotesize c}  % our private symbol definition

% Use actual backticks in verbatim sections
   \usepackage{upquote}

  % This is only needed if you want to embed figures
  \input{gpinsetfigure}

  % This supposedly discourages section titles from appearing
  % alone at the bottom of a page. But it doesn't seem to work.
  \clubpenalty=1000
% \widowpenalty=1000

% The following statements should adjust the default values for
% different papersizes, mainly required for verbatim output
% 30pt are a bit more than really needed
%\addtolength{\textwidth}{30pt}
%\addtolength{\oddsidemargin}{-15pt}
%\addtolength{\evensidemargin}{-15pt}
% Approximately keep the same ratio of width/height
%\addtolength{\textheight}{48pt}
%\addtolength{\topmargin}{-24pt}

% \setlength{\oddsidemargin}{0.5cm}
\setlength{\oddsidemargin}{0.0cm}
\setlength{\evensidemargin}{0.0cm}
\setlength{\topmargin}{-0.5in}
\setlength{\textwidth}{6.50in}
\setlength{\textheight}{9.0in}

\setlength{\parskip}{1ex}
\setlength{\parindent}{0pt}

% Every verbatim environment is surrounded by these commands.
% For 11pt/12pt options change '\normalsize' to '\small'
% or '\footnotesize' in the preverbatim definition
\newcommand{\preverbatim}{\par\footnotesize\vspace{-3ex}}
\newcommand{\postverbatim}{\vspace{-1.5ex}\par\normalsize}


% apply settings for toc_entr.sty
\adjustarticle
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}

%
% Current gnuplot version as a macro
%%
\def\gpVersion{6.0}
\newbox\GpVersion \setbox\GpVersion=\hbox{\gpVersion}
\def\gnuplotVersion{\usebox\GpVersion}

% Layout setup of fancy headings:
\usepackage{fancyhdr}
\pagestyle{fancy} \headsep=5.5mm \addtolength{\headheight}{7mm}
%\setlength{\headrulewidth}{0.4pt}
\chead{\hyperlink{TableOfContents}{gnuplot \usebox\GpVersion}}
\cfoot{}
\rhead[\leftmark]{\thepage}
\lhead[\thepage]{\leftmark}


%
% Words that may get hyphenated oddly if TeX is allowed to do so
%
\hyphenation{gnuplot windrose}

\begin{document}

\sloppy
\thispagestyle{empty}
\rule{0in}{1.0in}

  \begin{center}

  {\huge\bf {gnuplot \gpVersion}}\\
  \vspace{3ex}
  {\Large An Interactive Plotting Program}\\

  \vspace{2ex}

  \large
  Thomas Williams \& Colin Kelley\\

  \vspace{2ex}

  Version
    {\gnuplotVersion }
  organized by: Ethan A Merritt and many others\\

   \vspace{2ex}

  Major contributors (alphabetic order):\\

  Christoph Bersch,
  Hans-Bernhard Bröker,\\
  John Campbell,
  Robert Cunningham,\\
  David Denholm,
  Gershon Elber,\\
  Roger Fearick,
  Carsten Grammes,\\
  Lucas Hart,
  Lars Hecking,
  Péter Juhász,\\
  Thomas Koenig,
  David Kotz,
  Ed Kubaitis,\\
  Russell Lang,
  Timothée Lecomte,\\
  Alexander Lehmann,
  Jérôme Lodewyck,\\
  Alexander Mai,
  Bastian Märkisch,
  Tatsuro Matsuoka, \\
  Ethan A Merritt,
  Petr Mikulík,
  Hiroki Motoyoshi, \\
  Daniel Sebald,
  Carsten Steger,
  Shigeharu Takeno,\\
  Tom Tkacik,
  Jos Van der Woude,\\
  James R. Van Zandt,
  Alex Woo,
  Johannes Zellner\\
  Copyright {\copyright} 1986 - 1993, 1998, 2004   Thomas Williams, Colin Kelley\\
  Copyright {\copyright} 2004 - 2024  various authors\\

  \vspace{2ex}

  Mailing list for comments: \verb+gnuplot-info@lists.sourceforge.net+\\
  Web site and issue trackers: \verb+http://sourceforge.net/projects/gnuplot+

  \vfill
  This manual was originally prepared by Dick Crawford. \\

  \vspace{2ex}

%  December 2023  Version 6.0
   Version {\gpVersion} (December 2024)

   \end{center}
\newpage


\hypertarget{TableOfContents}{}
\tableofcontents

\newpage
