From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- macros/latex/contrib/arsclassica/ArsClassica.pdf | Bin 0 -> 328876 bytes macros/latex/contrib/arsclassica/ArsClassica.tex | 43 ++++ macros/latex/contrib/arsclassica/Bibliography.bib | 39 ++++ macros/latex/contrib/arsclassica/Changes | 39 ++++ macros/latex/contrib/arsclassica/Chapters/Code.tex | 203 +++++++++++++++++++ .../contrib/arsclassica/Chapters/Fundamentals.tex | 223 +++++++++++++++++++++ .../FrontBackMatter/Acknowledgements.tex | 28 +++ .../arsclassica/FrontBackMatter/Bibliography.tex | 8 + .../arsclassica/FrontBackMatter/Contents.tex | 11 + .../arsclassica/FrontBackMatter/Titleback.tex | 35 ++++ .../arsclassica/FrontBackMatter/Titlepage.tex | 32 +++ .../latex/contrib/arsclassica/Graphics/Dolor.jpg | Bin 0 -> 5503 bytes .../latex/contrib/arsclassica/Graphics/Ipsum.jpg | Bin 0 -> 7465 bytes .../latex/contrib/arsclassica/Graphics/Lorem.jpg | Bin 0 -> 25272 bytes macros/latex/contrib/arsclassica/Graphics/Sit.jpg | Bin 0 -> 14215 bytes .../arsclassica/Graphics/TFZSuperEllisse.pdf | Bin 0 -> 53440 bytes macros/latex/contrib/arsclassica/README | 31 +++ .../contrib/arsclassica/arsclassica-settings.tex | 82 ++++++++ macros/latex/contrib/arsclassica/arsclassica.sty | 184 +++++++++++++++++ 19 files changed, 958 insertions(+) create mode 100644 macros/latex/contrib/arsclassica/ArsClassica.pdf create mode 100644 macros/latex/contrib/arsclassica/ArsClassica.tex create mode 100644 macros/latex/contrib/arsclassica/Bibliography.bib create mode 100644 macros/latex/contrib/arsclassica/Changes create mode 100644 macros/latex/contrib/arsclassica/Chapters/Code.tex create mode 100644 macros/latex/contrib/arsclassica/Chapters/Fundamentals.tex create mode 100644 macros/latex/contrib/arsclassica/FrontBackMatter/Acknowledgements.tex create mode 100644 macros/latex/contrib/arsclassica/FrontBackMatter/Bibliography.tex create mode 100644 macros/latex/contrib/arsclassica/FrontBackMatter/Contents.tex create mode 100644 macros/latex/contrib/arsclassica/FrontBackMatter/Titleback.tex create mode 100644 macros/latex/contrib/arsclassica/FrontBackMatter/Titlepage.tex create mode 100644 macros/latex/contrib/arsclassica/Graphics/Dolor.jpg create mode 100644 macros/latex/contrib/arsclassica/Graphics/Ipsum.jpg create mode 100644 macros/latex/contrib/arsclassica/Graphics/Lorem.jpg create mode 100644 macros/latex/contrib/arsclassica/Graphics/Sit.jpg create mode 100644 macros/latex/contrib/arsclassica/Graphics/TFZSuperEllisse.pdf create mode 100644 macros/latex/contrib/arsclassica/README create mode 100644 macros/latex/contrib/arsclassica/arsclassica-settings.tex create mode 100644 macros/latex/contrib/arsclassica/arsclassica.sty (limited to 'macros/latex/contrib/arsclassica') diff --git a/macros/latex/contrib/arsclassica/ArsClassica.pdf b/macros/latex/contrib/arsclassica/ArsClassica.pdf new file mode 100644 index 0000000000..0da50c493e Binary files /dev/null and b/macros/latex/contrib/arsclassica/ArsClassica.pdf differ diff --git a/macros/latex/contrib/arsclassica/ArsClassica.tex b/macros/latex/contrib/arsclassica/ArsClassica.tex new file mode 100644 index 0000000000..9ebba186cb --- /dev/null +++ b/macros/latex/contrib/arsclassica/ArsClassica.tex @@ -0,0 +1,43 @@ +% !TEX TS-program = pdflatex +% !TEX root = ArsClassica.tex + +\documentclass[a4paper,twoside,openright,titlepage, + headinclude,,footinclude,BCOR5mm, + numbers=noenddot,cleardoublepage=empty, + tablecaptionabove]{scrreprt} + +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage[english]{babel} +\usepackage{amsmath,amssymb} +\usepackage{indentfirst} +\usepackage[style=philosophy-modern,hyperref]{biblatex} +\usepackage{chngpage} +\usepackage{calc} +\usepackage{listings} +\usepackage{graphicx} +\usepackage{subfig} +\usepackage{lipsum} +\usepackage{shapepar} +\usepackage{pifont} +\usepackage[eulerchapternumbers,subfig,beramono,eulermath,pdfspacing,listings]{classicthesis} +\usepackage{arsclassica} + +\input{arsclassica-settings} + +\begin{document} +\pagenumbering{roman} +\pagestyle{plain} +\input{FrontBackMatter/Titlepage} +\input{FrontBackMatter/Titleback} +\cleardoublepage +\input{FrontBackMatter/Acknowledgements} +\pagestyle{scrheadings} +\input{FrontBackMatter/Contents} +\cleardoublepage +\pagenumbering{arabic} +\input{Chapters/Fundamentals} +\input{Chapters/Code} +\clearpage +\input{FrontBackMatter/Bibliography} +\end{document} \ No newline at end of file diff --git a/macros/latex/contrib/arsclassica/Bibliography.bib b/macros/latex/contrib/arsclassica/Bibliography.bib new file mode 100644 index 0000000000..5131f1b781 --- /dev/null +++ b/macros/latex/contrib/arsclassica/Bibliography.bib @@ -0,0 +1,39 @@ +@book{bringhurst:elements, + author = {Bringhurst, Robert}, + title = {The Elements of Typographic Style}, + publisher = {Hartley \& Marks}, + year = {1992}, + location = {Point Roberts, Washington, USA} +} + + +@manual{miede:classicthesis, + author = {Miede, Andr\'e}, + title = {A Classic Thesis style}, + year = {2016}, + url = {http://www.ctan.org/tex-archive/macros/latex/contrib/classicthesis/ClassicThesis.pdf} +} + + +@manual{pantieri:arte, + author = {Pantieri, Lorenzo and Gordini, Tommaso}, + title = {L'arte di scrivere con \LaTeX}, + year = {2017}, + url = {http://www.lorenzopantieri.net/LaTeX_files/ArteLaTeX.pdf}, +} + + +@manual{pantieri:latexpedia, + author = {Pantieri, Lorenzo}, + title = {\LaTeX\-pedia}, + year = {2017}, + url = {http://www.lorenzopantieri.net/LaTeX_files/LaTeXpedia.pdf}, +} + + +@manual{pantieri:impaziente, + author = {Pantieri, Lorenzo}, + title = {\LaTeX{} per l'impaziente}, + year = {2017}, + url = {http://www.lorenzopantieri.net/LaTeX_files/LaTeXimpaziente.pdf}, +} \ No newline at end of file diff --git a/macros/latex/contrib/arsclassica/Changes b/macros/latex/contrib/arsclassica/Changes new file mode 100644 index 0000000000..bc75a8314b --- /dev/null +++ b/macros/latex/contrib/arsclassica/Changes @@ -0,0 +1,39 @@ +2017/10/31 +o Added compatibility with ClassicThesis 4.4 + +March 2017 +o Fixed some details in the documentation + +January 2017 +o The subsection, subsubsection and paragraph titles are now in boldface +o Larger text body size +o Removed commands \arsincludegraphics, \ctLaTeX, \ctLaTeXe, \ctTeX: now the package has no commands at all +o Fixed some details in the documentation and in arsclassica-settings file +o Rationalized "Changes" file + +February 2012 +o Fixed page numbers with "oneside" global option +o Caption package loaded +o Added compatibility with ClassicThesis 4.0 +o Fixed some details in the documentation + +June 2010 +o Added compatibility with ClassicThesis 3.0 +o Removed language option: the package now has no option at all +o In the documentation, bibliography made with biblatex package +o Documentation only in English + +February 2010 +o Added compatibility with ClassicThesis 2.7 + +January 2009 +o Corrected some typos in the documentation +o Documentation both in English and in Italian +o Support for English, French, Spanish and German + +December 2008 +o The part numbers are now in Roman (uppercase) and not in roman (lowercase) +o Fixed some details in the documentation + +November 2008 +o First public release \ No newline at end of file diff --git a/macros/latex/contrib/arsclassica/Chapters/Code.tex b/macros/latex/contrib/arsclassica/Chapters/Code.tex new file mode 100644 index 0000000000..72dc576f41 --- /dev/null +++ b/macros/latex/contrib/arsclassica/Chapters/Code.tex @@ -0,0 +1,203 @@ +% !TEX TS-program = pdflatex +% !TEX root = ../ArsClassica.tex + +%************************************************ +\chapter{Code} +\label{chp:code} +%************************************************ + +\lstset{numbers=left, + numberstyle=\scriptsize, + stepnumber=1, + numbersep=8pt +} + + + +Package announcement and request for necessary packages. +\begin{lstlisting}[firstnumber=1] +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{arsclassica}[2017/02/01] +\RequirePackage{classicthesis} +\RequirePackage{caption} +\end{lstlisting} + + + +Text body size. +\begin{lstlisting} +\areaset[current]{370pt}{784pt} +\end{lstlisting} + + + +Use of Iwona as font sans serif. +\begin{lstlisting} +\renewcommand{\sfdefault}{iwona} +\end{lstlisting} + + + +Customized chapter numbers. +\begin{lstlisting} +\let\chapterNumber\undefined +\ifct@eulerchapternumbers +\newfont{\chapterNumber}{eurb10 scaled 5000}% +\else +\newfont{\chapterNumber}{pplr9d scaled 5000}% +\fi +\end{lstlisting} + + + +Smallcaps sans serif. +\begin{lstlisting} +\ifthenelse{\boolean{@minionprospacing}}% +{% + \DeclareRobustCommand{\spacedallcaps}[1]{\sffamily% + \textssc{\MakeTextUppercase{#1}}}% + \DeclareRobustCommand{\spacedlowsmallcaps}[1]% + {\sffamily\textssc{\MakeTextLowercase{#1}}}% +}{% + \ifthenelse{\boolean{@pdfspacing}}% + {% + \microtypesetup{expansion=false}% + \DeclareRobustCommand{\spacedallcaps}[1]% + {\sffamily\textls[160]{\MakeTextUppercase{#1}}}% + \DeclareRobustCommand{\spacedlowsmallcaps}[1]% + {\sffamily\textls[80]{\scshape\MakeTextLowercase{#1}}}% + }{% + \RequirePackage{soul} + \sodef\allcapsspacing{\sffamily\upshape}% + {0.15em}{0.65em}{0.6em}% + \sodef\lowsmallcapsspacing{\sffamily\scshape}% + {0.075em}{0.5em}{0.6em}% + \DeclareRobustCommand{\spacedallcaps}[1]% + {\MakeTextUppercase{\allcapsspacing{#1}}}% + \DeclareRobustCommand{\spacedlowsmallcaps}[1]% + {\MakeTextLowercase{\textsc% + {\lowsmallcapsspacing{#1}}}}% + }% +} +\end{lstlisting} + + + +Semi-transparent headlines and page numbers in Iwona. +\begin{lstlisting} +\renewcommand{\sectionmark}[1]{\markright{\textsc% +{\MakeTextLowercase{\thesection}} \spacedlowsmallcaps{#1}}} +\lehead{\mbox{\llap{\small\thepage\kern1em\color{halfgray}\vline}% +\color{halfgray}\hspace{0.5em}\headmark\hfil}} +\rohead{\mbox{\hfil{\color{halfgray}% +\headmark\hspace{0.5em}}% +\rlap{\small{\color{halfgray}\vline}\kern1em\thepage}}} +\renewcommand{\headfont}{\normalfont\sffamily} +\renewcommand{\pnumfont}{\small\sffamily} +\end{lstlisting} + + + +Sectioning unit titles and description list labels in Iwona. +\begin{lstlisting} +\RequirePackage{titlesec} + % parts + \ifthenelse{\boolean{@parts}}% + {% + \titleformat{\part}[display] + {\normalfont\centering\large}% + {\thispagestyle{empty}\partname~\thepart}{1em}% + {\color{Maroon}\spacedallcaps} + }{\relax} + % chapters + \ifthenelse{\boolean{@linedheaders}}% + {% + \titleformat{\chapter}[display]% + {\relax}{\raggedleft{\color{halfgray}% + \chapterNumber\thechapter} \\ }{0pt}% + {\titlerule\vspace*{.9\baselineskip}\raggedright% + \spacedallcaps}% + [\normalsize\vspace*{.8\baselineskip}\titlerule]% + }{% + \titleformat{\chapter}[block]% + {\normalfont\Large\sffamily}% + {{\color{halfgray}\chapterNumber\thechapter% + \hspace{10pt}\vline} }{10pt}% + {\spacedallcaps}} + % sections + \titleformat{\section} + {\normalfont\Large\sffamily}{\textsc% + {\MakeTextLowercase{\thesection}}}% + {1em}{\spacedlowsmallcaps} + % subsections + \titleformat{\subsection} + {\normalfont\sffamily\bfseries}{\textsc{\MakeTextLowercase% + {\thesubsection}}}{1em}{\normalsize} + % subsubsections + \titleformat{\subsubsection} + {\normalfont\sffamily\bfseries\itshape}{\textsc% + {\MakeTextLowercase{\thesubsubsection}}}% + {1em}{\normalsize\itshape} + % paragraphs + \titleformat{\paragraph}[runin] + {\normalfont\normalsize\sffamily\bfseries}{\textsc% + {\MakeTextLowercase{\theparagraph}}}% + {0pt}{\spacedlowsmallcaps} + % description labels + \renewcommand{\descriptionlabel}[1]{\hspace*{\labelsep}% + \bfseries\spacedlowsmallcaps{#1}} + \titlespacing*{\chapter}{0pt}{1\baselineskip}{2\baselineskip} + \titlespacing*{\section}{0pt}{2\baselineskip}% + {.8\baselineskip}[\marginparsep] + \titlespacing*{\subsection}{0pt}{1.5\baselineskip}% + {.8\baselineskip}[\marginparsep] + \titlespacing*{\paragraph}{0pt}{1\baselineskip}{1\baselineskip} + + \newcommand\formatchapter[1]{% + \vbox to \ht\strutbox{ + \setbox0=\hbox{\chapterNumber\thechapter\hspace{10pt}\vline\ } + \advance\hsize-\wd0 \advance\hsize-10pt\raggedright + \spacedallcaps{#1}\vss}} + \titleformat{\chapter}[block] + {\normalfont\Large\sffamily} + {\textcolor{halfgray}{\chapterNumber\thechapter} + \hspace{10pt}\vline\ }{10pt} + {\formatchapter} + + \clearscrplain + \rofoot[\mbox{\makebox[0pt][l]{\kern1em\thepage}}]{} +\end{lstlisting} + + + +Itemize lists with semi-transparent labels. +\begin{lstlisting} +\renewcommand\labelitemi{\color{halfgray}$\bullet$} +\end{lstlisting} + + + +Caption settings. +\begin{lstlisting} +\captionsetup{format=hang,font=small,labelfont={sf,bf}} +\captionsetup[table]{skip=\medskipamount} +\end{lstlisting} + + + +Hyper-reference settings. +\begin{lstlisting} +\hypersetup{ + colorlinks=true, linktocpage=true, pdfstartpage=1, + pdfstartview=FitV, breaklinks=true, pdfpagemode=UseNone, + pageanchor=true, pdfpagemode=UseOutlines, + plainpages=false, bookmarksnumbered, + bookmarksopen=true, bookmarksopenlevel=1, + hypertexnames=true, pdfhighlight=/O, + urlcolor=webbrown, linkcolor=RoyalBlue, + citecolor=webgreen, + hyperfootnotes=false, pdfpagelabels, + pdfcreator={pdfLaTeX}, + pdfproducer={LaTeX with ArsClassica} +} +\end{lstlisting} \ No newline at end of file diff --git a/macros/latex/contrib/arsclassica/Chapters/Fundamentals.tex b/macros/latex/contrib/arsclassica/Chapters/Fundamentals.tex new file mode 100644 index 0000000000..ff289b9786 --- /dev/null +++ b/macros/latex/contrib/arsclassica/Chapters/Fundamentals.tex @@ -0,0 +1,223 @@ +% !TEX TS-program = pdflatex +% !TEX root = ../ArsClassica.tex + +%************************************************ +\chapter{Fundamentals} +\label{chp:fundamentals} +%************************************************ + +This chapter introduces the (truly simple) basic notions of \arsclassica{} and presents its fundamental ideas and distinctive features. + + + +\section{Introduction} + +The \arsclassica{} package changes some features of the \classicthesis{} style, designed by Andr\'e Miede. It allows to reproduce the layout of the \LaTeX{} guide \emph{The Art of Writing with \LaTeX}~\parencite{pantieri:arte} and of this document. + +\section{Use} + +This package is shaped to be executed on a \emph{complete} installation of \TeX{}~Live or MiK\TeX, and uses freely available fonts. +It works with the \clsname{KOMA-Script} classes (\clsname{scrreprt}, \clsname{scrbook} and \clsname{scrartcl}) and requires the \pkgname{classicthesis} package. \arsclassica{} must be loaded \emph{after} \pkgname{classicthesis}: +\begin{code} +\documentclass[£*\meta{\dots\unkern}*£]{scrreprt} % or scrbook or scrartcl + +\usepackage[£*\meta{\dots\unkern}*£]{classicthesis} +\usepackage{arsclassica} + +\begin{document} +£*\dots*£ +\end{document} +\end{code} + +For example, this document has been produced with the following code: +\begin{code} +\documentclass[a4paper,twoside,openright,titlepage, + headinclude,footinclude,BCOR5mm, + numbers=noenddot,cleardoublepage=empty, + tablecaptionabove]{scrreprt} + +\usepackage{£*\meta{\dots\unkern}*£} +\usepackage{subfig} +\usepackage[eulerchapternumbers,subfig,beramono,eulermath,pdfspacing]% + {classicthesis} +\usepackage{arsclassica} + +\begin{document} +£*\dots*£ +\end{document} +\end{code} + +It is recommended to use the \optname{beramono} and \optname{eulerchapternumbers} options together with \arsclassica. + + + +\section{Style} + +The typographical style achieved with \arsclassica{} differs from \classicthesis{} in the following points: +\begin{itemize} +\item use of Iwona font, by Janusz Nowacki, for the sectioning unit titles (chapters, sections, subsections, sub-subsections, paragraphs and subparagraphs), for the description list labels, the headlines and the caption labels (\classicthesis{} doesn't use any sans serif font); +\item customized chapter numbers; +\item semi-transparent headlines; the headlines are separated from the page number by a small rule; +\item caption labels in boldface (\classicthesis{} doesn't use any boldface font); +\item itemize lists with semi-transparent bullets. +\end{itemize} + +\arsclassica{} is designed to provide a ready-to-use typographical style: for this reason it has no loading options and it is \emph{not} configurable or customizable in any way. If you change the previous settings, you'll risk to destroy the balance of the style, so it is \emph{highly recommended} to keep them unchanged. + +One of the principles of \LaTeX{} is that it allows the author to take no interest in the typographical questions, permitting him to focus only on the structure and the contents of his document. This fact should always be kept in mind: using a style written by others, the user accepts all the typographical settings chosen for him by the author of the style, and he isn't forced to study typography to fine-tune the layout of his publications. This is the case of \arsclassica{} too: if you change its settings, you'll deny this philosophy and, consequently, you'll have to study (a lot of) typography to achieve acceptable results. + +The style achieved with \arsclassica{} is \emph{not} therefore configurable or customizable. The typographical style is very personal: if you like this package and find attractive the idea to take no interest in the problem of the style definition, then you'll use \arsclassica{} with satisfaction; otherwise, if you have different needs or you aren't satisfied with the layout of the package, then you should try other classes or packages, even building your own style. + + + +\section{Important} + +To write a document according to the \arsclassica{} style, you have to follow some very simple rules. +\begin{itemize} +\item Don't change \emph{for any reason} the \arsclassica{} settings (fonts, text body size, colors, \dots). +\item The sectioning unit titles (chapters, section, subsections, \dots) have to be \emph{one line long}, possibly in \emph{plain text} (no symbols, formulas or code fragments). If you have titles longer than one line, try and rephrase them: you can almost always do it. +\item In the table of contents and in the list of tables and figures, captions have to be \emph{one line long}, possibly in \emph{plain text}. Use the optional argument of sectioning commands and of \cmdname{caption}, if necessary. +\item Don't use \optname{tocaligned} and \optname{dottedtoc} options of \classicthesis: the default table of contents does the job very well (see the documentation of \classicthesis{} for a nice discussion of this point). +\item Don't use vertical or double rules in your tables (see the documentation of \pkgname{booktabs}). +\item Use footnotes and margin notes very sparingly. +\item If your document includes graphs and plots, draw them using \LaTeX{} (by \pkgname{Ti\emph{k}Z} and \pkgname{pgfplots}, for example) and not an external software. This is the only way to get the best typographical outcome. +\end{itemize} + + + +\section{Examples} + +\begin{figure} +\centering +\subfloat[Asia personas duo] +{\includegraphics[width=.45\columnwidth]{Lorem}} \quad +\subfloat[Pan ma signo] +{\label{fig:example-b}% +\includegraphics[width=.45\columnwidth]{Ipsum}} \\ +\subfloat[Methodicamente o uno] +{\includegraphics[width=.45\columnwidth]{Dolor}} \quad +\subfloat[Titulo debitas] +{\includegraphics[width=.45\columnwidth]{Sit}} +\caption[Tu duo titulo debitas latente]{Tu duo titulo debitas latente} +\label{fig:example} +\end{figure} + +Please note that the content of this section is just some dummy text. It isn't a real language. + +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. + +\subsection*{A subsection} + +\lipsum[2] + +\subsubsection*{A sub-subsection} + +\lipsum[7] + +\paragraph{A paragraph} +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. + +\paragraph{Another paragraph} +Cras nec ante, pellentesque a nulla, cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam tincidunt urna + +\bigskip + +Donec aliquet, tortor sed accumsan bibendum, erat ligula aliquet magna, vitae ornare odio metus a mi. Morbi ac orci et nisl hendrerit mollis. Suspendisse ut massa. Cras nec ante. Pellentesque a nulla. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam tincidunt urna. + +\begin{description} +\item[Mane] Lorem ipsum dolor sit amet, consectetuer adipiscing elit. +\item[Tekel] Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. +\item[Fares] Nam arcu libero, nonummy eget, consectetuer +id, vulputate a, magna. +\end{description} + +\begin{table} +\caption{Lorem ipsum dolor sit amet} +\centering +\begin{tabular}{ll} +\toprule +\textbf{Alkaloid} & \textbf{Origin} \\ +\midrule +atropine & belladonna \\ +morphine & poppy \\ +nicotine & tobacco \\ +\bottomrule +\end{tabular} +\end{table} + +Suspendisse vel felis. Ut lorem lorem, interdum eu, tincidunt sit amet, laoreet vitae, arcu. Aenean faucibus pede eu ante. Praesent enim elit, rutrum at, molestie non, nonummy vel, nisl. Ut lectus eros, malesuada sit amet, fermentum eu, sodales cursus, magna. Donec eu purus. Quisque vehicula, urna sed ultricies auctor, pede lorem egestas dui, et convallis elit erat sed nulla. + +\subsection*{Some formulas} + +Una formula in linea viene incorporata nel testo: $\lim_{n \to \infty}\sum_{k=1}^n \frac{1}{k^2} = \frac{\pi^2}{6}$, per esempio. Come si osserva, \LaTeX{} fa \emph{il possibile} per comprimerla e modificare il meno possibile l'interlinea nel capoverso che la contiene. +Una formula in display viene invece composta da \LaTeX{} su linee a parte, separate dal contesto con adeguati spazi bianchi per metterla in mostra e farla risaltare sulla pagina. +\begin{equation} +\lim_{n \to \infty}\sum_{k=1}^n \frac{1}{k^2}= \frac{\pi^2}{6} +\end{equation} +Come si osserva, ora la formula risulta centrata, non compressa, e tutti i suoi elementi occupano il giusto spazio con un risultato finale di grande respiro. + +Integer tempus convallis augue. Etiam facilisis. Nunc elementum fermentum wisi. Aenean placerat. Ut imperdiet, enim sed gravida sollicitudin, felis odio placerat quam, ac pulvinar elit purus eget enim. + +\begin{equation} +\int_a^{a+T}f(x)\,dx= \int_0^T f(x)\,dx +\qquad +\oint f(z)\,dz=2\pi i +\end{equation} + +Nulla malesuada porttitor diam. Donec felis erat, congue non, volutpat at, tincidunt tristique, libero. Vivamus viverra fermentum felis. Donec non- ummy pellentesque ante. + +\begin{equation} +f(x_1,\dots,x_n)= \prod_{k=1}^n x_k +\qquad +\sum_{k=1}^n x_k^2=1 +\qquad +\biggl(\sum_n x_n^2\biggr)^{1/2} +\end{equation} + +\lipsum[2] + +\begin{equation} +\begin{bmatrix} +a_{11} & \dots & a_{1n} \\ +a_{21} & \dots & a_{2n} \\ +\hdotsfor{3} \\ +a_{n1} & \dots & a_{nn} +\end{bmatrix} +\end{equation} + +\lipsum[4] + +\begin{equation} +\lim_{x\to 0} +\frac{\sin x}{x}=1 \qquad +\lim_{n\to +\infty}f_n=\delta +\end{equation} + +Fusce mauris. Vestibulum luctus nibh at lectus. Sed bibendum, nulla a faucibus semper, leo velit ultricies tellus, ac venenatis arcu wisi vel nisl. Vestibulum diam. + +\begin{equation} +n!= +\begin{cases} +1 & \text{if $n=0$} \\ +n(n-1)! & \text{if $n\ge 1$} +\end{cases} +\end{equation} + +Ut lectus eros, malesuada sit amet, fermentum eu, sodales cursus, magna. Donec eu purus. Quisque vehicula, urna sed ultricies auctor, pede lorem egestas dui, et convallis elit erat sed nulla. Donec luctus. Curabitur et nunc. Aliquam dolor odio, commodo pretium, ultricies non, pharetra in, velit. + +\begin{equation} +x_G= +\frac{\displaystyle + \sum_{i=1}^n m_ix_i} +{\displaystyle\sum_{i=1}^n m_i} +\end{equation} + +\lipsum[6] + +\begin{equation} +\kappa =\frac{\xi}{E_{\textrm{max}}} +\qquad +E_{\textup{max}} =\frac{2 m_{\textup{e}} \beta^2\gamma^2 }{1 +2\gamma m_{\textup{e}}/m_{\textrm{x}} + ( m_{\textup{e}}/m_{\textup{x}})^2} +\end{equation} + +\lipsum[8] \ No newline at end of file diff --git a/macros/latex/contrib/arsclassica/FrontBackMatter/Acknowledgements.tex b/macros/latex/contrib/arsclassica/FrontBackMatter/Acknowledgements.tex new file mode 100644 index 0000000000..57cff8e4b0 --- /dev/null +++ b/macros/latex/contrib/arsclassica/FrontBackMatter/Acknowledgements.tex @@ -0,0 +1,28 @@ +% !TEX TS-program = pdflatex +% !TEX root = ../ArsClassica.tex + +%******************************************************* +% Acknowledgements +%******************************************************* +\pdfbookmark{Acknowledgements}{Acknowledgements} + +\chapter*{Acknowledgements} + +\begin{flushright} +\itshape +We have seen that computer programming is an art, \\ +because it applies accumulated knowledge to the world, \\ +because it requires skill and ingenuity, \\ +and especially because it produces objects of beauty. \\ +\medskip +--- Donald Ervin Knuth +\end{flushright} + +\bigskip +\bigskip + +\heartpar{I wish first of all to thank the members of the Italian \TeX{} and \LaTeX{} User Group, in particular +Claudio Beccari, Fabiano Busdraghi, Gustavo Cevolani, Rosaria D'Addazio, Agostino De Marco, Massimiliano Dominici, Gloria Faccanoni, Claudio Fiandrino, Heinrich Fleck, Enrico Gregorio, Massimo Guiggiani, Roberto Giacomelli, Gianluca Gorni, Maurizio Himmelmann, Jer\'onimo Leal, Paride Legovini, Lapo Filippo Mori, Gianluca Pignalberi, Luigi Scarso, Marco Stara, Andrea Tonelli, Ivan Valbusa, Emiliano Giovanni Vavassori and Emanuele Vicentini, +for their invaluable aid during the writing of this work, the detailed explanations, the patience and the precision in the suggestions, the supplied solutions, the competence and the kindness: thank you, guys! +Thanks also to all the people who have discussed with me on the forum of the Group, prodigal of precious observations and good advices. +Finally, thanks to Andr\'e Miede, for his wonderful ClassicThesis style, and to Daniel Gottschlag, who gave to me the hint for this original reworking.} \ No newline at end of file diff --git a/macros/latex/contrib/arsclassica/FrontBackMatter/Bibliography.tex b/macros/latex/contrib/arsclassica/FrontBackMatter/Bibliography.tex new file mode 100644 index 0000000000..89edce178b --- /dev/null +++ b/macros/latex/contrib/arsclassica/FrontBackMatter/Bibliography.tex @@ -0,0 +1,8 @@ +% !TEX TS-program = pdflatex +% !TEX root = ../ArsClassica.tex + +%******************************************************* +% Bibliography +%******************************************************* +\nocite{*} +\printbibliography \ No newline at end of file diff --git a/macros/latex/contrib/arsclassica/FrontBackMatter/Contents.tex b/macros/latex/contrib/arsclassica/FrontBackMatter/Contents.tex new file mode 100644 index 0000000000..9f48a9e79c --- /dev/null +++ b/macros/latex/contrib/arsclassica/FrontBackMatter/Contents.tex @@ -0,0 +1,11 @@ +% !TEX TS-program = pdflatex +% !TEX root = ../ArsClassica.tex + +%******************************************************* +% Contents +%******************************************************* +\phantomsection +\pdfbookmark{\contentsname}{tableofcontents} +\setcounter{tocdepth}{2} +\tableofcontents +\markboth{\spacedlowsmallcaps{\contentsname}}{\spacedlowsmallcaps{\contentsname}} \ No newline at end of file diff --git a/macros/latex/contrib/arsclassica/FrontBackMatter/Titleback.tex b/macros/latex/contrib/arsclassica/FrontBackMatter/Titleback.tex new file mode 100644 index 0000000000..e0acfbb7d9 --- /dev/null +++ b/macros/latex/contrib/arsclassica/FrontBackMatter/Titleback.tex @@ -0,0 +1,35 @@ +% !TEX TS-program = pdflatex +% !TEX root = ../ArsClassica.tex + +%******************************************************* +% Titleback +%******************************************************* +\thispagestyle{empty} +\pdfbookmark{Titleback}{Titleback} + +\hfill + +\vspace{\stretch{2}} + +\begin{center} +Lorenzo Pantieri \\ +\smallskip +\textit{The \arsclassica{} package}\\ +\smallskip +Copyright\,\textcopyright\ 2008-2017 +\end{center} +\vspace{\stretch{1}} + +\medskip + +\noindent\textsf{\spacedlowsmallcaps{Titleback}} \\ +\noindent +This document was written with \LaTeX{} on Mac using \arsclassica, a reworking of the \classicthesis{} style designed by Andr\'e Miede, inspired to the masterpiece \emph{The Elements of Typographic Style} by Robert Bringhurst. + +\bigskip + +\noindent +\textsf{\spacedlowsmallcaps{Contacts}} + +\noindent +{\raisebox{-0.33ex}{\ding{43}}}\,\mail{lorenzo.pantieri@gmail.com} \ No newline at end of file diff --git a/macros/latex/contrib/arsclassica/FrontBackMatter/Titlepage.tex b/macros/latex/contrib/arsclassica/FrontBackMatter/Titlepage.tex new file mode 100644 index 0000000000..f0683f8338 --- /dev/null +++ b/macros/latex/contrib/arsclassica/FrontBackMatter/Titlepage.tex @@ -0,0 +1,32 @@ +% !TEX TS-program = pdflatex +% !TEX root = ../ArsClassica.tex + +%******************************************************* +% Titlepage +%******************************************************* +\begin{titlepage} +\pdfbookmark{Titlepage}{Titlepage} +\changetext{}{}{}{((\paperwidth - \textwidth) / 2) - \oddsidemargin - \hoffset - 1in}{} + \begin{center} + {\LARGE + + \hfill + + \vfill + + {\spacedlowsmallcaps{\myName}} \\ \bigskip + + {\color{Maroon}\spacedallcaps{\myTitle}} + + } + + \vfill + + \includegraphics[width=0.7\textwidth]{TFZSuperEllisse} \\ \bigskip + + \mySubTitle + + \vfill + + \end{center} +\end{titlepage} \ No newline at end of file diff --git a/macros/latex/contrib/arsclassica/Graphics/Dolor.jpg b/macros/latex/contrib/arsclassica/Graphics/Dolor.jpg new file mode 100644 index 0000000000..46113f520b Binary files /dev/null and b/macros/latex/contrib/arsclassica/Graphics/Dolor.jpg differ diff --git a/macros/latex/contrib/arsclassica/Graphics/Ipsum.jpg b/macros/latex/contrib/arsclassica/Graphics/Ipsum.jpg new file mode 100644 index 0000000000..ba7e101e8f Binary files /dev/null and b/macros/latex/contrib/arsclassica/Graphics/Ipsum.jpg differ diff --git a/macros/latex/contrib/arsclassica/Graphics/Lorem.jpg b/macros/latex/contrib/arsclassica/Graphics/Lorem.jpg new file mode 100644 index 0000000000..530ede18c4 Binary files /dev/null and b/macros/latex/contrib/arsclassica/Graphics/Lorem.jpg differ diff --git a/macros/latex/contrib/arsclassica/Graphics/Sit.jpg b/macros/latex/contrib/arsclassica/Graphics/Sit.jpg new file mode 100644 index 0000000000..d15a447285 Binary files /dev/null and b/macros/latex/contrib/arsclassica/Graphics/Sit.jpg differ diff --git a/macros/latex/contrib/arsclassica/Graphics/TFZSuperEllisse.pdf b/macros/latex/contrib/arsclassica/Graphics/TFZSuperEllisse.pdf new file mode 100644 index 0000000000..b5fc45f347 Binary files /dev/null and b/macros/latex/contrib/arsclassica/Graphics/TFZSuperEllisse.pdf differ diff --git a/macros/latex/contrib/arsclassica/README b/macros/latex/contrib/arsclassica/README new file mode 100644 index 0000000000..576d5d0037 --- /dev/null +++ b/macros/latex/contrib/arsclassica/README @@ -0,0 +1,31 @@ +ArsClassica package +Version 2017/10/31 + + Copyright (c) 2008-2017 Lorenzo Pantieri + http://www.lorenzopantieri.net/ + lorenzo.pantieri@gmail.com + + +License + + This software is provided under the terms of the + LaTeX Project Public License distributed from CTAN + archives in directory macros/latex/base/lppl.txt. + + +Abstract + + This package changes some typographical features of + ClassicThesis, by Andre Miede, inspired to the masterpiece + "The Elements of Typographic Style" by Robert Bringhurst. + It allows to reproduce the layout of the guide + "The Art of Writing with LaTeX" (in Italian, + http://www.lorenzopantieri.net/LaTeX_files/ArteLaTeX.pdf). + Your comments are highly appreciated. + + +Installation + + This package is preinstalled in TeX Live and MiKTeX complete. + To produce the documentation, run ArsClassica.tex + through pdfLaTeX. \ No newline at end of file diff --git a/macros/latex/contrib/arsclassica/arsclassica-settings.tex b/macros/latex/contrib/arsclassica/arsclassica-settings.tex new file mode 100644 index 0000000000..b9cf9ffec7 --- /dev/null +++ b/macros/latex/contrib/arsclassica/arsclassica-settings.tex @@ -0,0 +1,82 @@ +% ******************************************************************** +% Personal commands +% ******************************************************************** +\newcommand{\myName}{Lorenzo Pantieri} +\newcommand{\myTitle}{The ArsClassica package} +\newcommand{\mySubTitle}{Ah homage to the Elements of Typographic Style} + +\DeclareRobustCommand*{\clsname}[1]{{\normalfont\sffamily#1}} +\DeclareRobustCommand*{\pkgname}[1]{{\normalfont\sffamily#1}} +\DeclareRobustCommand*{\optname}[1]{{\normalfont\ttfamily#1}} +\DeclareRobustCommand*{\cmdname}[1]{\mbox{\lstinline[basicstyle=\normalsize\ttfamily]!\\#1!}} + +\DeclareRobustCommand*{\classicthesis}{Classic\-Thesis} +\DeclareRobustCommand*{\arsclassica}{{\normalfont\sffamily ArsClassica}} + + +% ******************************************************************** +% Hyper-references +% ******************************************************************** +\newcommand{\mail}[1]{\href{mailto:#1}{\texttt{#1}}} + + +% ******************************************************************** +% Graphics +% ******************************************************************** +\graphicspath{{Graphics/}} + + +% ******************************************************************** +% Code +% ******************************************************************** +\definecolor{lightergray}{gray}{0.99} + +\lstset{language=[LaTeX]Tex, + keywordstyle=\color{RoyalBlue}, + basicstyle=\small\ttfamily, + commentstyle=\color{Emerald}\ttfamily, + stringstyle=\rmfamily, + numberstyle=\scriptsize, + showstringspaces=false, + breaklines=true, + frame=lines, + backgroundcolor=\color{lightergray}, + flexiblecolumns=true, + escapeinside={£*}{*£}, + firstnumber=last, +} + +\newcommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$} + +\lstset{ morekeywords=% + {ProvidesPackage,RequirePackage,areaset,ifthenelse,% + chapterNumber,undefined,boolean,DeclareRobustCommand,% + spacedallcaps,textssc,MakeTextUppercase,lehead,% + microtypesetup,textls,spacedlowsmallcaps,MakeTextLowercase,% + sodef,allcapsspacing,lowsmallcapsspacing,thesection,% + color,headmark,rohead,headfont,pnumfont,titleformat,% + part,partname,thepart,chapter,thechapter,titlerule,% + subsection,thesubsection,subsubsection,thesubsubsection,% + paragraph,theparagraph,descriptionlabel,titlespacing,% + formatchapter,textcolor,clearscrplain,rofoot,labelitemi, + captionsetup,hypersetup}} + +\lstnewenvironment{code}% + {\setkeys{lst}{columns=fullflexible,keepspaces=true}% + \lstset{basicstyle=\small\ttfamily}}{} + + +% ******************************************************************** +% Bibliography +% ******************************************************************** +\bibliography{Bibliography} + +\defbibheading{bibliography}{% +\cleardoublepage +\manualmark +\phantomsection +\addcontentsline{toc}{chapter}{\tocEntry{\bibname}} +\chapter*{\bibname\markboth{\spacedlowsmallcaps{\bibname}} +{\spacedlowsmallcaps{\bibname}}}} + +\renewcommand*{\nameyeardelim}{\addcomma\space} \ No newline at end of file diff --git a/macros/latex/contrib/arsclassica/arsclassica.sty b/macros/latex/contrib/arsclassica/arsclassica.sty new file mode 100644 index 0000000000..82945459bb --- /dev/null +++ b/macros/latex/contrib/arsclassica/arsclassica.sty @@ -0,0 +1,184 @@ +%************************************************************ +% arsclassica.sty +% +% copyright (C) 2008-2017 Lorenzo Pantieri +% http://www.lorenzopantieri.net/ +% +%************************************************************ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{arsclassica}[2017/10/31] +\RequirePackage{classicthesis} +\RequirePackage{caption} + + +%************************************************************ +% Text body +%************************************************************ +\areaset[current]{370pt}{784pt} + + +%************************************************************ +% Iwona +%************************************************************ +\renewcommand{\sfdefault}{iwona} + + +%************************************************************ +% Chapter numbers +%************************************************************ +\let\chapterNumber\undefined +\ifct@eulerchapternumbers +\newfont{\chapterNumber}{eurb10 scaled 5000}% +\else +\newfont{\chapterNumber}{pplr9d scaled 5000}% +\fi + + +%************************************************************ +% Fancy stuff +%************************************************************ +\ifct@minionprospacing + \DeclareRobustCommand{\spacedallcaps}[1]{\sffamily% + \textssc{\MakeTextUppercase{#1}}}% + \DeclareRobustCommand{\spacedlowsmallcaps}[1]% + {\sffamily\textssc{\MakeTextLowercase{#1}}}% +\else + \ifct@pdfspacing + \microtypesetup{expansion=false}% + \DeclareRobustCommand{\spacedallcaps}[1]% + {\sffamily\textls[160]{\MakeTextUppercase{#1}}}% + \DeclareRobustCommand{\spacedlowsmallcaps}[1]% + {\sffamily\textls[80]{\scshape\MakeTextLowercase{#1}}}% + \else + \RequirePackage{soul} + \sodef\allcapsspacing{\sffamily\upshape}% + {0.15em}{0.65em}{0.6em}% + \sodef\lowsmallcapsspacing{\sffamily\scshape}% + {0.075em}{0.5em}{0.6em}% + \DeclareRobustCommand{\spacedallcaps}[1]% + {\MakeTextUppercase{\allcapsspacing{#1}}}% + \DeclareRobustCommand{\spacedlowsmallcaps}[1]% + {\MakeTextLowercase{\textsc% + {\lowsmallcapsspacing{#1}}}}% + \fi +\fi + + +%************************************************************ +% Headlines +%************************************************************ +\renewcommand{\sectionmark}[1]{\markright{\textsc% +{\MakeTextLowercase{\thesection}} \spacedlowsmallcaps{#1}}} +\lehead{\mbox{\llap{\small\thepage\kern1em\color{halfgray}% +\vline}% +\color{halfgray}\hspace{0.5em}\headmark\hfil}} +\rohead{\mbox{\hfil{\color{halfgray}% +\headmark\hspace{0.5em}}% +\rlap{\small{\color{halfgray}\vline}\kern1em\thepage}}} +\renewcommand{\headfont}{\normalfont\sffamily} +\renewcommand{\pnumfont}{\small\sffamily} + + +%************************************************************ +% Layout of the chapter-, section-, subsection-, +% subsubsection-, paragraph and description-headings +%************************************************************ +\RequirePackage{titlesec} + % parts + \ifct@parts + \titleformat{\part}[display] + {\normalfont\centering\large}% + {\thispagestyle{empty}\partname~\MakeTextUppercase{\thepart}}{1em}% + {\color{Maroon}\spacedallcaps} + \fi + % chapters + \ifct@linedheaders + \titleformat{\chapter}[display]% + {\relax}{\raggedleft{\color{halfgray}% + \chapterNumber\thechapter} \\ }{0pt}% + {\titlerule\vspace*{.9\baselineskip}\raggedright% + \spacedallcaps}% + [\normalsize\vspace*{.8\baselineskip}\titlerule]% + \else + \titleformat{\chapter}[block]% + {\normalfont\Large\sffamily}% + {{\color{halfgray}\chapterNumber\thechapter% + \hspace{10pt}\vline} }{10pt}% + {\spacedallcaps} + \fi + % sections + \titleformat{\section} + {\normalfont\Large\sffamily}{\textsc% + {\MakeTextLowercase{\thesection}}}% + {1em}{\spacedlowsmallcaps} + % subsections + \titleformat{\subsection} + {\normalfont\sffamily\bfseries}{\textsc{\MakeTextLowercase% + {\thesubsection}}}{1em}{\normalsize} + % subsubsections + \titleformat{\subsubsection} + {\normalfont\sffamily\bfseries\itshape}{\textsc% + {\MakeTextLowercase{\thesubsubsection}}}% + {1em}{\normalsize\itshape} + % paragraphs + \titleformat{\paragraph}[runin] + {\normalfont\normalsize\sffamily\bfseries}{\textsc% + {\MakeTextLowercase{\theparagraph}}}% + {0pt}{\spacedlowsmallcaps} + % descriptionlabels + \renewcommand{\descriptionlabel}[1]{\hspace*{\labelsep}% + \bfseries\spacedlowsmallcaps{#1}} + \titlespacing*{\chapter}{0pt}{1\baselineskip}% + {2\baselineskip} + \titlespacing*{\section}{0pt}{2\baselineskip}% + {.8\baselineskip}[\marginparsep] + \titlespacing*{\subsection}{0pt}{1.5\baselineskip}% + {.8\baselineskip}[\marginparsep] + \titlespacing*{\paragraph}{0pt}{1\baselineskip}% + {1\baselineskip} + % + \newcommand\formatchapter[1]{% + \vbox to \ht\strutbox{ + \setbox0=\hbox{\chapterNumber\thechapter\hspace{10pt}\vline\ } + \advance\hsize-\wd0 \advance\hsize-10pt\raggedright + \spacedallcaps{#1}\vss}} + \titleformat{\chapter}[block] + {\normalfont\Large\sffamily} + {\textcolor{halfgray}{\chapterNumber\thechapter} + \hspace{10pt}\vline\ }{10pt} + {\formatchapter} + % + \clearscrplain + \rofoot[\mbox{\makebox[0pt][l]{\kern1em\thepage}}]{} + + +%************************************************************ +% itemize +%************************************************************ +\renewcommand\labelitemi{\color{halfgray}$\bullet$} + + +%************************************************************ +% caption +%************************************************************ +\captionsetup{format=hang,font=small,labelfont={sf,bf}} +\captionsetup[table]{skip=\medskipamount} + + +%************************************************************ +% hyperref +%************************************************************ +\hypersetup{% + colorlinks=true, linktocpage=true, pdfstartpage=1, + pdfstartview=FitV, breaklinks=true, pdfpagemode=UseNone, + pageanchor=true, pdfpagemode=UseOutlines,% + plainpages=false, bookmarksnumbered, + bookmarksopen=true,% + bookmarksopenlevel=1,% + hypertexnames=true, pdfhighlight=/O,% + urlcolor=webbrown, linkcolor=RoyalBlue, + citecolor=webgreen,% + hyperfootnotes=false,pdfpagelabels, + pdfcreator={pdfLaTeX},% + pdfproducer={LaTeX with ArsClassica}% +} \ No newline at end of file -- cgit v1.2.3