-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update the pipeline to also build the LaTeX-based PDF * Some small updates in `rules.adoc` Signed-off-by: mr.Shu <[email protected]>
- Loading branch information
Showing
5 changed files
with
239 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version='1.0' encoding="iso-8859-1"?> | ||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> | ||
<xsl:template match="phrase[@role='red']"> | ||
<xsl:text> | ||
\textcolor{red}{ | ||
</xsl:text> | ||
<xsl:apply-templates/> | ||
<xsl:text> | ||
} | ||
</xsl:text> | ||
</xsl:template> | ||
|
||
<xsl:param name="xref.with.number.and.title" select="1"></xsl:param> | ||
|
||
<xsl:param name="local.l10n.xml" select="document('')"/> | ||
<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"> | ||
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="en"> | ||
<l:context name="xref-number-and-title"> | ||
<l:template name="section" text="Rule %n, %t"/> | ||
</l:context> | ||
</l:l10n> | ||
</l:i18n> | ||
|
||
</xsl:stylesheet> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
%% | ||
%% This style is derivated from the db2latex one | ||
%% | ||
\NeedsTeXFormat{LaTeX2e} | ||
\ProvidesPackage{manual} | ||
|
||
|
||
% The defined options | ||
\DeclareOption{hyperlink}{ \def\DBKhyperlink{yes} } | ||
\DeclareOption{nohyperlink}{ \def\DBKhyperlink{no} } | ||
|
||
% Default values | ||
\ExecuteOptions{hyperlink} | ||
|
||
% If defined, process the options | ||
\ProcessOptions\relax | ||
|
||
%% Just use the original package and pass the options | ||
\RequirePackageWithOptions{db2latex} | ||
|
||
\renewcommand{\maketitle}{ | ||
|
||
\begin{center} | ||
{\LARGE \@title \par} | ||
\vskip 8em | ||
\end{center} | ||
|
||
% \pagestyle{empty} | ||
|
||
% \noindent | ||
% \textbf{\DBKtitle \\} | ||
% \ifx\DBKauthor\empty\else{by \DBKauthor \\}\fi | ||
% \hspace{0pt}\\ | ||
% \ifthenelse{\equal{\DBKedition}{}}{}{Edition \DBKedition \\} | ||
% \ifthenelse{\equal{\DBKpubdate}{}}{}{Published \DBKpubdate \\} | ||
% \ifthenelse{\equal{\DBKcopyright}{}}{}{\DBKcopyright \\} | ||
% \hspace{0pt}\\ | ||
% Now the legalnotice block | ||
% \DBKlegalblock | ||
% Ahoj | ||
% \newpage | ||
} | ||
|
||
\renewenvironment{DBKadmonition}[2] { | ||
% this code corresponds to the \begin{admonition} command | ||
\hspace{0mm}\newline\hspace*\fill\newline | ||
\noindent | ||
\setlength{\fboxsep}{5pt} | ||
\setlength{\admlength}{\linewidth} | ||
\addtolength{\admlength}{-2\fboxsep} | ||
\addtolength{\admlength}{-10\fboxrule} | ||
\admminipage{\admlength} | ||
~\\[1mm] | ||
\ifthenelse{\equal{#1}{}}{ | ||
\def\admgraph{false} | ||
}{ | ||
\def\admgraph{true} | ||
\includegraphics[width=1cm]{icons/#1} | ||
\addtolength{\admlength}{-1cm} | ||
\addtolength{\admlength}{-20pt} | ||
\begin{minipage}[lt]{\admlength} | ||
} | ||
\parskip=0.5\baselineskip \advance\parskip by 0pt plus 2pt | ||
} %done | ||
{ % this code corresponds to the \end{admonition} command | ||
\vspace{5mm} | ||
\ifthenelse{\equal{\admgraph}{false}}{}{ | ||
\end{minipage} | ||
} | ||
\endadmminipage | ||
\vspace{.5em} | ||
\par | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
%% Preamble %% | ||
%% A minimal LaTeX preamble | ||
%% Some packates are needed to implement | ||
%% Asciidoc features | ||
|
||
\documentclass{article} | ||
|
||
|
||
\usepackage{graphicx} | ||
\usepackage{multirow} | ||
\usepackage{tabularx} | ||
\usepackage{color} | ||
\usepackage{amsmath} | ||
\usepackage{amssymb} | ||
\usepackage{amsxtra} | ||
\usepackage{amsfonts} | ||
\usepackage{wasysym} | ||
\usepackage{isomath} | ||
\usepackage{mathtools} | ||
\usepackage{txfonts} | ||
\usepackage{upgreek} | ||
\usepackage{enumerate} | ||
\usepackage{tensor} | ||
\usepackage{fancyhdr} | ||
\usepackage{lastpage} | ||
\usepackage{changes} | ||
\usepackage{etoolbox} | ||
\usepackage{titlesec} | ||
\let\openbox\relax | ||
|
||
|
||
\usepackage[letterpaper, margin=1in, headheight=47pt]{geometry} | ||
\usepackage[hyperlink]{manual} | ||
|
||
% No paragraph indent | ||
\setlength{\parindent}{0cm} | ||
% Bigger paragraph skips | ||
\setlength{\parskip}{0.25cm} | ||
|
||
% TEX Gyre Adventor font (looks pretty nice) | ||
\renewcommand*\rmdefault{qag} | ||
|
||
% Set paragraph numbers correctly (skip susubsection) | ||
\setcounter{secnumdepth}{4} | ||
\renewcommand\thesubsection{\arabic{section}.\arabic{subsection}} | ||
\renewcommand\thesubsubsection{ | ||
\ifnum \value{subsubsection}=0 | ||
\thesubsection | ||
\else | ||
\thesubsection.\Alph{subsubsection}\relax | ||
\fi} | ||
|
||
\newcommand*{\p}{\paragraph{}} | ||
|
||
\newlength\titleindent | ||
\setlength\titleindent{1.2cm} | ||
|
||
\definecolor{mygray}{gray}{0.55} | ||
\titleformat{\paragraph}[runin] | ||
{\normalfont\footnotesize}{\llap{\parbox{\titleindent}{\textcolor{mygray}{\theparagraph}\hfill}}}{0em}{} | ||
|
||
\titlespacing{\paragraph}{0pt}{0em}{0em} | ||
|
||
% End of paragraph numbers setting | ||
|
||
\pagestyle{fancy} | ||
|
||
\lhead{} | ||
\chead{} | ||
\rhead{\includegraphics[width=8cm]{media/image15.png}} | ||
\renewcommand{\headrulewidth}{0pt} | ||
%\renewcommand{\topmargin}{-20pt} | ||
|
||
\rfoot{Page \textbf{\thepage} of \textbf{\pageref{LastPage}}} | ||
\lfoot{\textit{Draft Rules as of \today}} | ||
\cfoot{} | ||
|
||
% First page | ||
\fancypagestyle{firststyle}{% | ||
\fancyhf{} | ||
\fancyfoot[L]{\textit{Draft Rules as of \today}} | ||
\fancyfoot[R]{Page \textbf{\thepage} of \textbf{\pageref{LastPage}}} | ||
} | ||
|
||
\title{\vspace{-5ex}RoboCupJunior Soccer Rules 2020\vspace{-5ex}} | ||
\date{\vspace{-2ex}} | ||
|
||
\definecolor{color-1}{rgb}{1,1,1} | ||
\definecolor{color-2}{rgb}{0,0,0.5} | ||
\definecolor{color-3}{rgb}{0.07,0.33,0.8} | ||
\definecolor{color-4}{rgb}{0.13,0.13,0.13} | ||
\definecolor{red}{rgb}{1,0,0} | ||
\definecolor{color-6}{rgb}{0,0,1} | ||
|
||
|
||
|
||
\begin{document} | ||
\maketitle | ||
\thispagestyle{firststyle} | ||
|
||
\begin{tabular}{rl} | ||
\resizebox{0.50\textwidth}{!}{ | ||
\begin{tabular}{lr} | ||
\multicolumn{2}{l}{\textbf{Soccer Technical Committee 2019:}}\\ | ||
Tairo Nomura & Japan\\ | ||
James Riley & Australia\\ | ||
Mikail S. Arani & Canada\\ | ||
Javier E. Delgado Moreno & Mexico \\ | ||
Felipe Nascimento Martins & Netherlands\\ | ||
Marek \v{S}uppa & Slovakia (CHAIR)\\ | ||
\end{tabular}} | ||
& | ||
|
||
\resizebox{0.50\textwidth}{!}{ | ||
\begin{tabular}{lr} | ||
\multicolumn{2}{l}{\textbf{Soccer Technical Committee 2018:}}\\ | ||
Sarit Salzman & Israel\\ | ||
James Riley & Australia\\ | ||
Michael Sloan Warren & USA\\ | ||
Javier E. Delgado Moreno & Mexico \\ | ||
Felipe Nascimento Martins & Netherlands\\ | ||
Marek \v{S}uppa & Slovakia (CHAIR)\\ | ||
\end{tabular}} | ||
|
||
\end{tabular} | ||
|
||
\vspace{20pt} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters