Re: numerare subsection classe memoir

#56314
Up
0
Down
::


No no aspetta non è che mi son data alla pazza gioia e ho cambiato chissà che del .cls, (anche perchè non sono in grado) solo l’ho personalizzato un pochino (aggiungendo i tutor ad esempio e trasformando i riferimenti dell’università visto che il format di base è di roma 3 e io sono della sapienza) .

A parte questo ho provato ad inserire nel .tex, dopo \begin{document}
l’indicazione che mi avete dato
\setcounter{secnumdepth}{2}
ma ancora senza successo.

Non vorrei copiarvi troppe cose ma forse se vi incollo quello che c’è nei due file riuscite ad aiutarmi, allora nel .cls

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{phd_sapienza_b5}
[2011/02/09 v1.0 PhD – DICEA-Sapienza, (C) 2011]

\LoadClass[b5paper]{memoir}

% TETEX Crop margins: comment this line if you’re using the deprecated teTeX
\DisemulatePackage{crop}

% Load graphicx
\RequirePackage{graphicx}

% Print using A4 paper size and make visible crop margins
% In any typography they can cut the A4 to obtain a B5
\RequirePackage[cam,a4,center]{crop}

% Page style
\makepagestyle{ale}
%\renewcommand{\chaptermark}[1]{\leftmark{#1}}
%\renewcommand{\sectionmark}[1]{\rightmark{#1}}
%\renewcommand{\uppercase}[1]{#1} % rende minuscoli i titoletti
\makeevenhead{ale}{\thepage}{}{\small\leftmark}
\makeoddhead{ale}{ \small\rightmark}{}{\thepage}
\makeheadrule{ale}{\textwidth}{\normalrulethickness}
%\aliaspagestyle{chapter}{empty} % toglie il numero dalla prima pagina dei capitoli
\pagestyle{ale}

% Date (Month Year)
\newcommand{\@phddate}{January 1970}
\newcommand{\phddate}[1]{\renewcommand{\@phddate}{#1}}

% Advisor
\newcommand{\@phdadvisor}{Prof. Name Surname}
\newcommand{\phdadvisor}[1]{\renewcommand{\@phdadvisor}{#1}}

% Coadvisor
\newcommand{\@phdcoadvisor}{Prof. Name Surname}
\newcommand{\phdcoadvisor}[1]{\renewcommand{\@phdcoadvisor}{#1}}

% Reviewers separated by \\
\newcommand{\@phdreviewers}{Prof. Name Surname \\ Prof. Name Surname}
\newcommand{\phdreviewers}[1]{\renewcommand{\@phdreviewers}{#1}}

% Dedication
\newcommand{\@phddedication}{To my parents and relatives.}
\newcommand{\phddedication}[1]{\renewcommand{\@phddedication}{#1}}

% Cover page
\newcommand{\makecover}{ %
\thispagestyle{empty} %

\begin{center} %
{\includegraphics[width=0.4 \linewidth]{logo-lasapienza}} \\ %
\vspace{3mm} %
{\Large Ph.D. Infrastrutture e trasporti. \\Curriculum: ingegneria ferroviaria} \\ %
{\Large XXIII Ciclo} \\ %
\vspace{3cm} %
{\huge \thetitle} \\ %
\vspace{1cm} %
{\large \theauthor} %
\end{center} %
\newpage %
}

% Title page
\renewcommand{\maketitle}{ %
\thispagestyle{empty}~\newpage %
\thispagestyle{empty} %
\begin{center} %
{\Large \thetitle} \\ %
\end{center} %
\vfill %
\begin{center} %
{Una tesi presentata da} \\ %
{\theauthor} \\ %
{in adempimento dei requisiti necessari per conseguire il titolo di} \\ %
{Dottore di Ricerca} \\ %
{in Infrastrutture e Trasporti} \\ %
\vspace{2mm} %
{Università degli Studi di Roma \emph{La Sapienza}} \\ %
{Dipartimento di Ingegneria Civile E Ambientale – DICEA } \\
\vspace{2mm} %
{{\@phddate}} \\ %
\end{center} %
\newpage %
}

% Reviewers page
\newcommand{\makereviewers}{ %
\thispagestyle{empty} %
\begin{center} \end{center} %
\vfill %
\begin{flushleft} %
{\textsc{Relatore:}} \\ %
{\emph{\@phdadvisor}} \\ %
\vspace{2mm} %
{\textsc{Correlatori:}} \\ %
{\emph{\@phdcoadvisor}} \\ %
\vspace{5mm} %
{\textsc{Commissione:}} \\ %
{\emph{\@phdreviewers}} \\ %
\end{flushleft} %
\newpage %
}

% Dedication
\newcommand{\makededication}{ %
\thispagestyle{empty} %
\begin{flushright} %
\emph{{\@phddedication}} %
\end{flushright} %
\newpage %
}

% Abstract
\renewenvironment{abstract}{ %
\thispagestyle{empty}~\newpage %
\begin{center} %
{\large \textbf{Sommario}} %
\end{center} %
\vspace{5mm} %
% TETEX Line spacing: use \begin{spacing} if you’re using the deprecated teTeX
\begin{Spacing}{1.2} %
}{%
% TETEX Line spacing: use \end{spacing} if you’re using the deprecated teTeX
\end{Spacing} %
\clearpage %}

% Acknowledgments
\newcommand{\acknowledgments}{ %
\chapter*{Acknowledgments} %}

% Table of contents
\newcommand{\makecontentspage}{ %
\newpage \tableofcontents %}

% List of tables
\newcommand{\maketablespage}{ %
\newpage \listoftables %}

% List of tables
\newcommand{\makefigurespage}{ %
\newpage \listoffigures %}

% Numberings
\renewcommand{\theequation}{\thechapter.\arabic{equation}}
\renewcommand{\thefigure}{\thechapter.\arabic{figure}}
\renewcommand{\thetable}{\thechapter.\arabic{table}}

% Appendix
\newcommand{\makeappendices}{ %
\setcounter{equation}{0} %
\setcounter{figure}{0} %
\setcounter{table}{0} %
\renewcommand{\theequation}{A.\arabic{equation}} %
\renewcommand{\thefigure}{A.\arabic{figure}} %
\renewcommand{\thetable}{A.\arabic{table}} %
\appendix %
\addcontentsline{toc}{chapter}{Appendices} %
\appendixpage* %
}

% Alphabetical bibliography
\bibliographystyle{plain}

e nel .tex
\documentclass{phd_sapienza_b5}

\usepackage[italian, english]{babel}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{ucs}
\usepackage{longtable}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{textcomp}
\usepackage{amsfonts} %simboli AMS
\usepackage{amssymb} %simboli AMS
\usepackage{supertabular}
\usepackage{xspace}
\usepackage{color}
\usepackage{booktabs}
\usepackage{amsmath}
\selectlanguage{italian}
\makeindex % Crea indice analitico (opzionale)

\begin{document}
\setcounter{secnumdepth}{2}
\frontmatter
\makecover % Pagina iniziale,
\maketitle % Titolo
\makereviewers % Tutore e Revisori
\makededication % Dedica

\input{Tesiphd_Capitoli/Tesiphd_Sommario}

\makecontentspage % Indice
\maketablespage % Lista delle tabelle
\makefigurespage % Lista delle figure

\input{Tesiphd_Capitoli/Tesiphd_Introduzione}
\mainmatter % Pagine di tesi, numerate in arabo (1,2,3,4,…)
\input{Tesiphd_Capitoli/Tesiphd_Organizzazione}
\backmatter
\input{Tesiphd_Capitoli/Tesiphd_Conclusioni}
\makeappendices % Appendici (opzionali)

\printindex % Pagine di indice (opzionale)
\bibliographystyle{plain}
\bibliography{Tesiphdae_01}

\end{document}

Grazie

Go to top