Sha256: 3a1f3c292cf4cbf4104d8d21437c10c63db2152ec2595d083e5baedacee7e037

Contents?: true

Size: 1.92 KB

Versions: 24

Compression:

Stored size: 1.92 KB

Contents

%%
%% This is a DocBook LaTeX style for Asio
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mybook}[2008/11/11 Asio DocBook Style]

% The defined options
\DeclareOption{hyperlink}{ \def\DBKhyperlink{yes} }
\DeclareOption{nohyperlink}{ \def\DBKhyperlink{no} }

% Default values
\ExecuteOptions{nohyperlink}

% If defined, process the options
\ProcessOptions\relax

% Needed packages
\usepackage[top=2cm,bottom=2cm,left=1.5cm,right=1.5cm]{geometry}
\usepackage{float}
\usepackage{dbk_core}
\usepackage{dbk_admonition}
\usepackage{fancyvrb}

% Text layout
\setlength\parskip{\medskipamount}
\setlength\parindent{0pt}
\raggedbottom

% Stuff we don't need
\def\DBKinditem#1#2{}
\newenvironment{DBKindtable}{}{}
\newenvironment{DBKrevtable}{}{}
\newenvironment{DBKlegalnotice}{}{}

% Admonitions
\floatstyle{boxed}
\newfloat{DBKadmonition}{h}{lop}
\newfloat{sidebar}{h}{lop}

% Page break before sections
\let\orig@section\section
\renewcommand\section{
  \clearpage\orig@section
}

% Ensure line break after paragraph heading
\renewcommand\paragraph{%
  \@startsection{paragraph}{4}{\z@}%
  {-2.25ex\@plus -1ex \@minus -.2ex}%
  {0.5ex \@plus .2ex}%
  {\normalfont\normalsize\bfseries}%
}

% Add page numbers to hyperlinks
%\let\orig@hyperlink\hyperlink
%\renewcommand{\hyperlink}[2]{
%  \orig@hyperlink{#1}{#2} (page \pageref{#1})
%}

% Extra indent on TOC section numbers
\renewcommand*\l@subsection{\@dottedtocline{2}{1.5em}{3.3em}}
\renewcommand*\l@subsubsection{\@dottedtocline{3}{3.8em}{4.2em}}
\renewcommand*\l@paragraph{\@dottedtocline{4}{7.0em}{5.1em}}

% Title page
\renewcommand\maketitle{
  \null
  \thispagestyle{empty}
  \begin{center}
  \null\vskip 7cm
  \begin{LARGE}
  asio C++ library
  \end{LARGE}
  \null\vskip 1cm
  \begin{large}
  \DBKsubtitle{}
  \end{large}
  \null\vskip 1cm
  \begin{Large}
  Reference Manual
  \end{Large}
  \null\vskip 5cm
  \begin{small}
  \DBKcopyright{}
  \end{small}
  \end{center}
  \vfill
  \null
  \cleardoublepage
}

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
couchbase-3.0.0-universal-darwin-19 ext/third_party/asio/asio/src/doc/asioref.sty
couchbase-3.0.0 ext/third_party/asio/asio/src/doc/asioref.sty
couchbase-3.0.0.beta.1-universal-darwin-19 ext/third_party/asio/asio/src/doc/asioref.sty
couchbase-3.0.0.beta.1 ext/third_party/asio/asio/src/doc/asioref.sty
couchbase-3.0.0.alpha.5-x86_64-linux ext/third_party/asio/asio/src/doc/asioref.sty
couchbase-3.0.0.alpha.5-universal-darwin-19 ext/third_party/asio/asio/src/doc/asioref.sty
couchbase-3.0.0.alpha.5-x86_64-darwin-19 ext/third_party/asio/asio/src/doc/asioref.sty
couchbase-3.0.0.alpha.5 ext/third_party/asio/asio/src/doc/asioref.sty
couchbase-3.0.0.alpha.4-x86_64-linux ext/third_party/asio/asio/src/doc/asioref.sty
couchbase-3.0.0.alpha.4-x86_64-darwin-19 ext/third_party/asio/asio/src/doc/asioref.sty
couchbase-3.0.0.alpha.4-universal-darwin-19 ext/third_party/asio/asio/src/doc/asioref.sty
couchbase-3.0.0.alpha.4 ext/third_party/asio/asio/src/doc/asioref.sty
couchbase-3.0.0.alpha.3-x86_64-linux ext/third_party/asio/asio/src/doc/asioref.sty
couchbase-3.0.0.alpha.3-x86_64-darwin-19 ext/third_party/asio/asio/src/doc/asioref.sty
couchbase-3.0.0.alpha.3-universal-darwin-19 ext/third_party/asio/asio/src/doc/asioref.sty
couchbase-3.0.0.alpha.3 ext/third_party/asio/asio/src/doc/asioref.sty
couchbase-3.0.0.alpha.2-x86_64-linux ext/third_party/asio/asio/src/doc/asioref.sty
couchbase-3.0.0.alpha.2-x86_64-darwin-19 ext/third_party/asio/asio/src/doc/asioref.sty
couchbase-3.0.0.alpha.2-universal-darwin-19 ext/third_party/asio/asio/src/doc/asioref.sty
couchbase-3.0.0.alpha.2 ext/third_party/asio/asio/src/doc/asioref.sty