• R/O
  • SSH

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisione3a825b6cd8f1dd3d52d4a396d4455f1355bbee6 (tree)
Zeit2024-01-25 07:04:40
AutorLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

A beautiful template for a book in latex.

Ändern Zusammenfassung

Diff

diff -r 83a501e9b968 -r e3a825b6cd8f latex-documents/book_beautiful.tex
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/latex-documents/book_beautiful.tex Wed Jan 24 23:04:40 2024 +0100
@@ -0,0 +1,165 @@
1+\documentclass[twoside,12pt,italian]{book}
2+\usepackage[italian]{babel}
3+\usepackage[utf8]{inputenc}
4+\usepackage{color}
5+\definecolor{marron}{RGB}{60,30,10}
6+\definecolor{darkblue}{RGB}{0,0,80}
7+\definecolor{lightblue}{RGB}{80,80,80}
8+\definecolor{darkgreen}{RGB}{0,80,0}
9+\definecolor{darkgray}{RGB}{0,80,0}
10+\definecolor{darkred}{RGB}{80,0,0}
11+\definecolor{shadecolor}{rgb}{0.97,0.97,0.97}
12+\usepackage[demo]{graphicx}
13+\usepackage{wallpaper}
14+\usepackage{wrapfig,booktabs}
15+
16+% see https://tex.stackexchange.com/questions/1319/showcase-of-beautiful-typography-done-in-tex-friends/74609#74609
17+
18+\usepackage{fancyhdr}
19+\usepackage{lettrine}
20+\input Acorn.fd
21+\newcommand*\initfamily{\usefont{U}{Acorn}{xl}{n}}
22+
23+\usepackage{geometry}
24+\geometry{
25+tmargin=5cm,
26+bmargin=5cm,
27+lmargin=5cm,
28+rmargin=3cm,
29+headheight=1.5cm,
30+headsep=0.8cm,
31+footskip=0.5cm}
32+
33+
34+% \usepackage[full]{textcomp}
35+\renewcommand{\familydefault}{pplj}
36+\usepackage[
37+final,
38+stretch=10,
39+protrusion=true,
40+tracking=true,
41+spacing=on,
42+kerning=on,
43+expansion=true]{microtype}
44+
45+\setlength{\parskip}{1.3ex plus 0.2ex minus 0.2ex}
46+
47+
48+\usepackage{fourier-orns}
49+
50+\newcommand{\ornamento}{\vspace{2em}\noindent \textcolor{darkgray}{\hrulefill~ \raisebox{-2.5pt}[10pt][10pt]{\leafright \decofourleft \decothreeleft \aldineright \decotwo \floweroneleft \decoone \floweroneright \decotwo \aldineleft\decothreeright \decofourright \leafleft} ~ \hrulefill \\ \vspace{2em}}}
51+\newcommand{\ornpar}{\noindent \textcolor{darkgray}{ \raisebox{-1.9pt}[10pt][10pt]{\leafright} \hrulefill \raisebox{-1.9pt}[10pt][10pt]{\leafright \decofourleft \decothreeleft \aldineright \decotwo \floweroneleft \decoone}}}
52+\newcommand{\ornimpar}{\textcolor{darkgray}{\raisebox{-1.9pt}[10pt][10pt]{\decoone \floweroneright \decotwo \aldineleft \decothreeright \decofourright \leafleft} \hrulefill \raisebox{-1.9pt}[10pt][10pt]{\leafleft}}}
53+
54+\makeatletter
55+\def\headrule{{\color{darkgray}\raisebox{-2.1pt}[10pt][10pt]{\leafright} \hrulefill \raisebox{-2.1pt}[10pt][10pt]{~~~\decofourleft \decotwo\decofourright~~~} \hrulefill \raisebox{-2.1pt}[10pt][10pt]{ \leafleft}}}
56+\makeatother
57+
58+\fancyhf{}
59+
60+\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
61+\renewcommand{\sectionmark}[1]{\markright{#1}}
62+
63+\newcommand{\estcab}[1]{\itshape\textcolor{marron}{\nouppercase #1}}
64+
65+\fancyhead[LE]{\estcab{Fran Oldstyle}}
66+\fancyhead[RE]{\estcab{History of taxonomy}}
67+% \fancyhead[CE,CO]{\estcab{\decoone}}
68+\fancyhead[LO]{\estcab{\rightmark}} % malo cuando no hay section ~~~ \thesection
69+\fancyhead[RO]{\estcab{\leftmark}}
70+
71+% \fancyhead[RO]{\bf\nouppercase{ \leftmark}}
72+% \fancyfoot[LE]{\bf \thepage ~~ \leafNE}
73+% \fancyfoot[RO]{ \leafNE ~~ \bf \thepage}
74+
75+\fancyfoot[LO]{
76+\ornimpar \\ \large \hfill \sffamily\bf \textcolor{darkgray}{\leafNE ~~~ \thepage}
77+}
78+\fancyfoot[RE]{\ornpar \\ \large \sffamily\bf \textcolor{darkgray}{\thepage ~~~ \reflectbox{\leafNE}} \hfill}
79+
80+\newenvironment{Section}[1]
81+{\section{\vspace{0ex}#1}}
82+{\vspace{12pt}\centering ------- \decofourleft\decofourright ------- \par}
83+
84+
85+
86+\usepackage{lipsum}
87+\setlength{\parindent}{1em} % Sangría española
88+\pagestyle{fancy}
89+
90+\renewcommand{\footnoterule}{\vspace{-0.5em}\noindent\textcolor{marron}{\decosix \raisebox{2.9pt}{\line(1,0){100}} \lefthand} \vspace{.5em} }
91+\usepackage[hang,splitrule]{footmisc}
92+\addtolength{\footskip}{0.5cm}
93+\setlength{\footnotemargin}{0.3cm}
94+\setlength{\footnotesep}{0.4cm}
95+
96+\usepackage{chngcntr}
97+\counterwithout{figure}{chapter}
98+\counterwithout{table}{chapter}
99+
100+
101+\begin{document}
102+% \TileWallPaper{300pt}{300pt}{Descargas/fondopapelviejo.jpg}
103+
104+\chapter{Six kingdoms of life?}
105+\newpage
106+
107+\section{Plant\ae}
108+\lettrine[lines=3]{\initfamily\textcolor{darkgreen}{T}}{he classic} kingdom \emph{Plant\ae} (Haeckel, 1866
109+include all the multicellular green plants (\emph{Viridiplant\ae} in Latin) as flowering
110+plants, conifers, ferns, mosses and green algae. The number of species
111+are estimated\footnote{Largely underestimated according to many naturalist.} around 300,000 to 315,000.
112+Usually red or brown seaweeds like kelp, fungi and bacteria have
113+excluded from this group.
114+This kingdom really exists since Carolus Linn\ae us (1707--1778) who
115+divided the natural world into animals, plants and minerals. The kingdom \emph{Animalia} and \emph{Plant\ae} remained
116+in use by modern evolutionary biologists until some years.
117+
118+\begin{wrapfigure}{r}{0.26\textwidth}
119+\centering
120+\includegraphics[scale=.26]{Descargas/mobot31753002356449_0113.jpg}
121+\caption{\footnotesize \emph{Vallaris pergularia} from \emph{Icones plantarum}, vol. II., (Hooker, 1837).}
122+\label{fig1}
123+\end{wrapfigure}
124+But now, both kingkoms are considered only two brachs of the unicelular kingdom \emph{Protist}
125+or \emph{Protozoa}\footnote{Although by tradition, inconsistently the status of kingdom
126+is maintained \emph{Animalia} and \emph{Plant\ae}.}.
127+\lipsum[2]
128+
129+\lipsum[3]
130+
131+\ornamento
132+
133+\section{Storia della mia vita}
134+
135+\lettrine[lines=3]{\initfamily\textcolor{darkgreen}{L}}{a}, storia
136+della mia vita non è facile da raccontare. Anzitutto devo dire che mi
137+sono sempre considerato piuttosto sfortunato, punito con una famiglia
138+che sentivo di non meritare. In particolare , da giovane, il rapporto
139+con mio padre era molto difficile. Col passare degli anni, l'ho
140+perdonato, ma ho continuato a pensare che in fondo lui sia stata la
141+fonte di molte delle mie difficoltà. Purtroppo, crescendo, ho capito
142+di aver assorbito alcuni (per fortuna non tutti!) tratti della sua personalità.
143+
144+\begin{wraptable}{r}{7 cm}
145+\vspace{-.5cm}
146+\centering
147+\footnotesize
148+\caption{\label{wraptab}Estimated fungal species.}
149+\begin{tabular}{lr}\\\toprule
150+Authors & Species \\\midrule
151+Bisby and Ainsworth (1943) & $10^5$ \\
152+Martin (1951) & $2.5\times10^5$ \\
153+Hawksworth (1991) & $1.5\times10^6$ \\
154+O’Brien \emph{et al.} (2005) & $>3.5\times10^6$ \\ \bottomrule
155+\end{tabular}
156+\end{wraptable}
157+
158+
159+\lipsum[4-6]
160+
161+\end{document}
162+%%% Local Variables:
163+%%% mode: latex
164+%%% TeX-master: t
165+%%% End: