From 6388be32a4683cb9becd71d63ae9861a762b42df Mon Sep 17 00:00:00 2001 From: jowodo Date: Thu, 3 Oct 2024 21:31:41 +0200 Subject: [PATCH] first colophon draft --- mkparallel.sh | 72 ++++++++++++++++++++++++++++++++++++++++++++++++--- parallel.conf | 4 ++- 2 files changed, 71 insertions(+), 5 deletions(-) diff --git a/mkparallel.sh b/mkparallel.sh index 21e8b61..b850a0e 100755 --- a/mkparallel.sh +++ b/mkparallel.sh @@ -43,17 +43,18 @@ done # CREATE WRAPPER WRAPPER=""" -%\documentclass[twoside]{$DOCCLASS} \documentclass[twoside,${PAGESIZE}paper]{$DOCCLASS} \usepackage[fontsize=${FONTSIZE}pt]{fontsize} -%\usepackage[${PAGESIZE}paper]{geometry} \usepackage{libertine} % also loads fontspec which is needed for ɔ and ɛ %\usepackage{minitoc} % make mini table of content for each chapter \usepackage{graphicx} % include graphics +\usepackage{tcolorbox} % https://en.wikipedia.org/wiki/Colophon_(publishing) \usepackage{placeins} % https://tex.stackexchange.com/a/88659/264579 \usepackage{csquotes} % \enquote \usepackage{reledmac} % needed for repedpar \usepackage{reledpar} % parallel text +\firstlinenum*{1000} +\linenumincrement*{1000} \newcommand{\pagesinclude}[2]{ \begin{pages} \begin{Leftside} @@ -72,14 +73,77 @@ WRAPPER=""" \title{$TITLE} \author{$AUTHOR} \begin{document} -\maketitle +""" +TITLE_PAGE=""" +%\date{} +%\maketitle +%%% +\begin{titlingpage} %This starts the title page + \begin{center} + % ~ + \vspace{2cm} %put the distance you need. + % ~ + \begin{HUGE} + \thetitle \\ + \end{HUGE} + \vspace{3cm} %put the distance you need. + \begin{large} + \theauthor\\ + \end{large} + %\thedate + \begin{figure}[hb] + \centering +% \includegraphics[width=\adinkrawidth]{img/sankofa.jpeg} + \end{figure} +% \vspace{3cm} %put the distance you need. +% \begin{figure}[hb] +% \centering +%% \includegraphics[width=.2\textwidth]{img/ghana_flag.jpeg} +% \end{figure} + \end{center} +\end{titlingpage} +%%% +""" +COLOPHON=""" +\cleardoublepage +\thispagestyle{empty} +\begin{vplace}[0.7] +\begin{centering} + \begin{huge} + \thetitle + \end{huge} + \\ + \vspace{3cm} + \begin{LARGE} + \begin{tcolorbox}[width=.5\textwidth] + \centering +% \texttt{AQO}\\ +% \texttt{ABA}\\ +% \texttt{~\newline AQO\newline ABA\newline}%\\ + \texttt{$PRINTER} + \end{tcolorbox} + \end{LARGE} +% \includegraphics[width=.3\textwidth]{img/onipa_logo.png} + \vspace{2cm} + \par\noindent\rule{\textwidth}{0.4pt} + \large { \the\year{} }\\ + $EDITION\\ +\end{centering} +\end{vplace} +\clearpage +""" +TOC=""" +\cleardoublepage \tableofcontents """ WRAPPER_END=""" \end{document} """ -echo "$WRAPPER" > $PROJECT.tex +echo "$WRAPPER" > $PROJECT.tex +echo "$TITLE_PAGE" >> $PROJECT.tex +echo "$COLOPHON" >> $PROJECT.tex +echo "$TOC" >> $PROJECT.tex # INCLUDE INDIVIDUAL TEX FILE first_lang="true" IFS_OLD=$IFS diff --git a/parallel.conf b/parallel.conf index e68f5e3..930784f 100644 --- a/parallel.conf +++ b/parallel.conf @@ -4,10 +4,12 @@ DOCCLASS_EXTRA="twoside" FONTSIZE="10" PAGESIZE="a5" PROJECT="asem" -TITLE="Nsɛm wɔ Twi ne Brɔfo\\\LARGE Texts in Twi and English" +TITLE="Nsɛm wɔ Twi ne Brɔfo\\\\ \\LARGE Texts in Twi and English" AUTHOR="" INFILES=""" Anansesem - Ghanaian Folk Tales testfiles/parallel-ak.md testfiles/parallel-en.md """ +PRINTER="AQO\\\\ABA" +EDITION="First Edition"