From ee6b19606d2fcbb616335f0748f710bbcd030aa5 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Tue, 16 Oct 2018 16:16:53 +0200 Subject: set title, documentation licensing and layout --- ekdosis.dtx | 69 +++++++++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 56 insertions(+), 13 deletions(-) diff --git a/ekdosis.dtx b/ekdosis.dtx index eaa13b2..3baefd9 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx @@ -6,7 +6,7 @@ %<*readme> | -------:| ----------------------------------------------------------------- -ekdosis:| Typesetting of TEI xml compliant critical editions +ekdosis:| Typesetting TEI xml compliant critical editions Author:| Robert Alessi E-mail:| alessi@robertalessi.net License:| Released under the GNU General Public License v3 or later @@ -20,7 +20,7 @@ Some text about the package: probably the same as the abstract. --[[ This file is part of the `ekdosis' package -ekdosis -- Typesetting of TEI xml compliant critical editions +ekdosis -- Typesetting TEI xml compliant critical editions Copyright (C) 2016 Robert Alessi Please send error reports and suggestions for improvements to Robert @@ -55,7 +55,7 @@ along with this program. If not, see \askforoverwritefalse \preamble -------:| ----------------------------------------------------------------- -ekdosis:| Typesetting of TEI xml compliant critical editions +ekdosis:| Typesetting TEI xml compliant critical editions Author:| Robert Alessi E-mail:| alessi@robertalessi.net License:| Released under the GNU General Public License v3 or later @@ -63,7 +63,7 @@ License:| Released under the GNU General Public License v3 or later This file is part of the `ekdosis' package -ekdosis -- Typesetting of TEI xml compliant critical editions +ekdosis -- Typesetting TEI xml compliant critical editions Copyright (C) 2016 Robert Alessi Please send error reports and suggestions for improvements to Robert @@ -126,17 +126,35 @@ Running "make install" installs the files in the local TeX tree. %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesPackage{ekdosis} %<*package> - [2016/08/03 v1.0 Typesetting of TEI xml compliant critical editions] + [2016/08/03 v1.0 Typesetting TEI xml compliant critical editions] % %<*driver> \documentclass{ltxdoc} -\usepackage[a4paper,margin=25mm,left=50mm,nohead]{geometry} +\usepackage[letterpaper,margin=25mm,left=50mm,nohead]{geometry} +\usepackage{hyperxmp} \usepackage{uri} \usepackage[numbered]{hypdoc} -\usepackage[toc,lot]{multitoc} +\hypersetup{unicode=true, colorlinks, allcolors=blue, + linktocpage=true, pdfauthor={Robert Alessi}, pdftitle={The + ekdosis package}, pdfcontactemail={alessi@robertalessi.net}, + pdfcontacturl={http://www.robertalessi.net/ekdosis}, + pdfcopyright={Copyright (C) 2018 Robert Alessi + . This document is licensed under the + Creative Commons Attribution-ShareAlike 4.0 International + License. To view a copy of this license, visit + http://creativecommons.org/licenses/by-sa/4.0/ or send a letter to + Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.}, + pdflicenseurl={https://creativecommons.org/licenses/by-sa/4.0/legalcode}, + pdfmetalang={en-US}, pdftype={Text}, pdfkeywords={Arabic language, + arabtex, luatex}} +\usepackage[lot]{multitoc} \usepackage{\jobname} \usepackage{fontspec,luatextra} \setmainfont{Old Standard}[RawFeature={+ss05;+ss06}] +\usepackage{newunicodechar} +\newunicodechar{ǧ}{ǧ} % Old Standard does not include ǧ/Ǧ +\newunicodechar{Ǧ}{Ǧ} % +\usepackage{arabluatex} \usepackage{relsize} \usepackage{minted} \newminted[ekdlua]{lua}{linenos, fontsize=\relsize{-0.5}, @@ -146,6 +164,28 @@ Running "make install" installs the files in the local TeX tree. \usepackage[contents]{colordoc} \usepackage{authblk} \newcommand{\package}[1]{\textsf{#1}\index{#1=#1 (package)}} +\usepackage{tikz} +\usepackage[breakable, skins, xparse, minted]{tcolorbox} +\usepackage{etoc} +\etocsettocdepth{paragraph} +\newcommand{\ekdtableofcontents}{% + \begingroup + \etocsetstyle{section}{}{} + {\etocsavedsectiontocline{% + \numberline{\etocnumber}\etocname}{\etocpage}}{} + \etocsetstyle{subsection}{}{} + {\etocsavedsubsectiontocline{% + \numberline{\etocnumber}\etocname}{\etocpage}}{}% + \etocsetstyle{subsubsection}{}{} + {\etocsavedsubsubsectiontocline{% + \numberline{\etocnumber}\etocname}{\etocpage}}{}% + \etocsetstyle{paragraph}{}{\leftskip2cm\rightskip 2.2em \parfillskip + 0pt plus 1fil\relax \nobreak} + {\noindent\etocname{} \etocpage{} }{\par}% + \etocmulticolstyle[2]{\section*{Contents}} + \pdfbookmark[1]{Contents}{toc} + \tableofcontents + \endgroup} \EnableCrossrefs \CodelineIndex \RecordChanges @@ -179,18 +219,21 @@ Running "make install" installs the files in the local TeX tree. % \GetFileInfo{\jobname.dtx} % \DoNotIndex{\newcommand,\newenvironment} % -% \title{\textsf{ekdosis} --- Typesetting of TEI xml compliant -% critical editions\thanks{This file describes version \fileversion, -% last revised \filedate.} } +% \title{\tcbox[colframe=black, enhanced, tikznode, drop lifted +% shadow, colback=white, boxrule=.25mm]% +% {\textsf{ekdosis}\\ +% Typesetting \texttt{TEI xml} compliant critical editions\\ +% \fileversion\ --- \filedate}} % % \author{Robert Alessi \\ % \href{mailto:alessi@robertalessi.net?Subject=ekdosis package}% % {\texttt{alessi@robertalessi.net}}} -% \date{\fileversion\ released \filedate} +% +% \date{} % % \maketitle % \footnotesize -% \tableofcontents +% \ekdtableofcontents % \normalsize % %\changes{v1.00}{2016/08/03}{First public release} @@ -202,7 +245,7 @@ Running "make install" installs the files in the local TeX tree. % \section{Usage} % % ==== Put descriptive text here. ==== -% +% % \DescribeMacro{\dummyMacro} % This macro does nothing.\index{doing nothing|usage} It is merely an % example. If this were a real macro, you would put a paragraph here -- cgit v1.2.3