Re: ogni file con numerazione indipendente

#34207
Up
0
Down
::


perfetto funziona…..geniale!!!

Mi potreste aiutare a risolvere anche un altro problema di stile?

il primo saggio che include ha, per ciò che concerne la prima pagine lo stile desiderato, ma le prime pagine delgi altri saggi perdono la formattazione per cio che concerne titolo e autori etc? come mai?
ecco il mio codice
`
\documentclass[11 pt,twoside,letterpaper]{article}%% The same for {book}
\usepackage{mathptmx,fancyhdr}
\usepackage[round]{natbib}

\usepackage[italian]{babel}
\usepackage[latin1]{inputenc}
\usepackage{rotating}
\usepackage{layout}
\usepackage{url}
\usepackage{longtable}
\usepackage{hyperref}
\usepackage{booktabs}
\usepackage{chngcntr}

\usepackage{float}
\floatstyle{ruled}
\restylefloat{figure}
%———– [per didascalia tabelle inserisco \usepackage{booktabs} e quanto segue]———

%———–%———–%———–%———–%———–%———–%———–
%———– 7×10 Regular, 8.5 x 5.5] ———————
\setlength{\topmargin}{-0.35in}
\setlength{\textheight}{7 in} % 11.0 – 1.125 – 0.875
\setlength{\textwidth}{4.8 in} % 8.5 – 1.375 – 1.125
\setlength{\oddsidemargin}{0.5in}
\setlength{\evensidemargin}{0.5in}
\setlength{\headheight}{26pt}
\setlength{\headsep}{8pt} %—————————————————————————–

%[Float at the top formula]
\makeatletter
\setlength\@fptop{0\p@}
\makeatother

% [Clears Header Style on the Last Empty Odd pages]
\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else%
\hbox{}%
\thispagestyle{empty}%
\newpage%
\if@twocolumn\hbox{}\newpage\fi\fi\fi}

\makeatother
%___________________________
\newcounter{saggio}
\counterwithin*{section}{saggio}
\newcommand{\myinclude}[1]{%
\stepcounter{saggio}\include{#1}}

\renewcommand{\thesection}{\arabic{section}.}
\renewcommand{\thesubsection}{\thesection\arabic{subsection}.}
\renewcommand{\thesubsubsection}{\thesubsection\arabic{subsubsection}.}

\def\figurename{Figure}
\makeatletter
\renewcommand{\fnum@figure}{\figurename\nobreakspace\thefigure.}
%\renewcommand{\fnum@figure}[1]{\figurename~\thefigure.}
\makeatother

\def\tablename{Table}
\makeatletter
\renewcommand{\fnum@table}{\tablename\nobreakspace\thetable.}
%\renewcommand{\fnum@table}[1]{\tablename~\thetable.}
\makeatother

%_____________________________

\makeatletter
\newsavebox{\@tabparbox}
\newenvironment{tabpar}[3][t]
{\long\def\@tabparagraph{#3}\def\@tabparopt{#1}%
\begin{lrbox}{\@tabparbox}
\begin{tabular}{#2}}
{\end{tabular}\end{lrbox}%
\parbox{\wd\@tabparbox}{
\if t\@tabparopt
\@tabparagraph\par\smallskip
\fi
\usebox{\@tabparbox}\par
\if b\@tabparopt
\smallskip\@tabparagraph
\fi}}
\makeatother
%___________________________

\begin{document}

%——————————————————————————

% ———— [Running Heads – for odd and even pages] – please insert it only on page 2!
\pagestyle{fancy}
\fancyhead{}
\fancyhead[EC]{MA }
\fancyhead[EL,OR]{\thepage}
\fancyhead[OC]{Il controllo della spesa sanitaria }
\fancyfoot{}
\renewcommand\headrulewidth{0.5pt}
%——————————————————————————
\begin{document}

\tableofcontents

\myinclude{filename1}

% ———— [Running Heads – for odd and even pages] – please insert it only on page 2!

\myinclude{filename2}
\end{document}
`

garzie in anticipo
M.

Go to top