Re: Volume collettaneo: come fare?

#78387
Up
0
Down
::



@Pietro
: grazie mille per le indicazioni! Sì, mi farebbe molto piacere ricevere una copia del file di configurazione


@OldClaudio

Grazie per le indicazioni.
Ho preso spunto dal suggerimento per fare un tentativo che mi semplificasse al massimo il lavoro. In fondo ho bisogno di una `struttura’ non elaborata, che in automatico inserisca il titolo e il nome autore in tre luoghi: nel Sommario iniziale, nelle testatine e all’inizio dell’intervento.

Probabilmente la mia soluzione non è molto ortodossa, ma mi sembra funzionare:

`
% !TEX encoding = UTF-8
% !TEX program = xelatex
\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{italian}
\setmainfont[Ligatures=TeX,Numbers=OldStyle]{Junicode}
\setsansfont[Ligatures=TeX]{Iwona}
\usepackage{lipsum,fancyhdr,emptypage}
\usepackage{titling}
\usepackage{geometry}
\geometry{papersize={17cm,24cm},text={12.5cm,18.5cm},dvips=false,heightrounded} %%DA VALUTARE
\usepackage[cam,center,a4]{crop}
\usepackage{tocloft}
\renewcommand{\cfttoctitlefont}{\hfill\upshape\Large}
\renewcommand{\cftaftertoctitle}{}
\renewcommand{\cftaftertoctitle}{\hfill}
\renewcommand{\cftchapfont}{\rmfamily}
\renewcommand{\cftchappagefont}{\rmfamily}
\addto{\captionsitalian}{\renewcommand*{\contentsname}{Sommario}}
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\scshape \addfontfeature{LetterSpace=7}\centering\LARGE}{}{}{} %%DA VALUTARE
\titlespacing*{\chapter}{0pt}{20pt}{20pt} %%DA VALUTARE
\fancypagestyle{headings}{%
\fancyhf{}
\fancyhead[RO,LE]{\thepage}
\fancyhead[CE]{\itshape\thetitle}
\fancyhead[CO]{\scshape\theauthor}
\fancyfoot{}}
%%%%%%%%%%%%%%%%%%%%%%%%%
\title{Titolo}
\author{a cura di Tizio}
\date{ }
\begin{document}
\pagestyle{empty}
\maketitle
\cleardoublepage
\tableofcontents
\pagestyle{headings}

\author{Caio}
\title{Titolo di prova}
\chapter*{\thetitle \\ \large \theauthor}\addcontentsline{toc}{chapter}{\scshape\theauthor, \itshape\thetitle}
\lipsum
\lipsum
\clearpage

\author{Sempronio}
\title{Titolo di prova 2}
\chapter*{\thetitle \\ \large \theauthor}\addcontentsline{toc}{chapter}{\scshape\theauthor, \itshape\thetitle}
\lipsum
\lipsum
\clearpage
\end{document}
`

durante il lavoro vero e proprio, nel file principale avrò una serie di comandi come \input{art1}, e ogni articolo conterrà

`
\author{Sempronio}
\title{Titolo di prova 2}
\chapter*{\thetitle \\ \large \theauthor}\addcontentsline{toc}{chapter}{\scshape\theauthor, \itshape\thetitle}

TESTO
\clearpage
`

Non elegante, ma funziona.
Grazie ancora a tutti (se ci fossero suggerimenti…)
A presto,
Matteo

Go to top