- Questo topic ha 2 risposte, 2 partecipanti ed è stato aggiornato l'ultima volta 14 anni, 9 mesi fa da .
-
Topic
-
Ciao a tutti.Sto lavorando a una modifica del pacchetto ArsClassica. Non dico che la userò per il mio pacchetto: è solo un esperimento che vorrei fare (e che mi sarebbe utilissimo per il lavoro che sto scrivendo).
Questo è il main:
`\documentclass[10pt,a4paper,twoside,openright,titlepage,fleqn,%
headinclude,footinclude,BCOR5mm,%
numbers=noenddot,cleardoublepage=empty,%
tablecaptionabove,abstracton]{scrreprt}\usepackage[dvipsnames]{xcolor}
\usepackage[eulerchapternumbers,pdfspacing,parts]{classicthesis}
\usepackage{caption}
\usepackage{myars}
\usepackage{bookmark}
\usepackage{lipsum}\begin{document}
\chapter{Prova}
\lipsum
\lipsum
\end{document}`
Questo è myars.sty:
`\renewcommand{\sfdefault}{iwona}%************************************************************
% Chapter numbers
%************************************************************
\let\chapterNumber\undefined
\ifthenelse{\boolean{@eulerchapternumbers}}
{\newfont{\chapterNumber}{eurb10 scaled 5000}}%
{\newfont{\chapterNumber}{pplr9d scaled 5000}}%************************************************************
% 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}%************************************************************
% itemize
%************************************************************
\renewcommand\labelitemi{\color{halfgray}$\bullet$}%************************************************************
% caption
%************************************************************
\captionsetup{format=hang,font=small,labelfont={sf,bf}}
\captionsetup[table]{skip=\medskipamount}%************************************************************
% Fancy stuff
%************************************************************
\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}}}}%
}%
}
%************************************************************%************************************************************
% Layout of the chapter-, section-, subsection-,
% subsubsection-, paragraph and description-headings
%************************************************************
\RequirePackage{titlesec}
% parts
\ifthenelse{\boolean{@parts}}%
{%
\titleformat{\part}[display]
{\normalfont\centering\large}%
{\thispagestyle{empty}\partname~\MakeTextUppercase{\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}{\textsc{\MakeTextLowercase%
{\thesubsection}}}{1em}{\normalsize}
% subsubsections
\titleformat{\subsubsection}
{\normalfont\sffamily\itshape}{\textsc%
{\MakeTextLowercase{\thesubsubsection}}}%
{1em}{\normalsize\itshape}
% paragraphs
\titleformat{\paragraph}[runin]
{\normalfont\normalsize\sffamily}{\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\sffamily}
% {\textcolor{halfgray}{\chapterNumber\thechapter}
% \hspace{10pt}\vline\ }{10pt}
% {\formatchapter}
%
\rofoot[\mbox{\makebox[0pt][l]{\kern1em\thepage}}]{}\ifthenelse{\boolean{@linedheaders}}%
{% lines above and below, number right
\titleformat{\chapter}[display]%
{\relax}{\raggedleft{\color{halfgray}\chapterNumber\thechapter} \\ }{0pt}%
{\titlerule\vspace*{.9\baselineskip}\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]%
}{% something like Bringhurst
\titleformat{\chapter}[display]%
{\relax}{\mbox{}\oldmarginpar{\vspace*{-3\baselineskip}\color{halfgray}\chapterNumber\thechapter}}{0pt}%
{\raggedright\large\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]%
}
`
Che cosa voglio fare?1. “Semplicemente”, abbassare il numero del capitolo di una quantità e metterlo nella posizione di suftesi, ovvero degli Elementi di Bringhurst. Insomma, lo vorrei più in basso.
2. Cominciare il titolo esattamente dei capitoli in cima alla pagina, senza alcuno spazio bianco prima.
Mi aiutate?
Grazie anticipate,
L.
- Devi essere connesso per rispondere a questo topic.