`
\documentclass[dvipdfm,11pt]{scrartcl}
\usepackage{ifpdf}
\usepackage[twoside,includeall,paper=b5paper,left=20mm,right=0mm,top=15mm,bottom=25mm]{geometry}
\ifpdf\else
\geometry{dvips}
\fi
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage[table]{xcolor}
\colorlet{testa}{gray!50}
\colorlet{riga}{gray!20}
\newcommand{\makeSection}[2]{
\hrule
\vspace{3mm}
\begin{flushright}
\section#2{#1}
\end{flushright}
\hfill
\hrule
\hfill
\hfill
\vspace{8mm}
}
\usepackage{makeidx}
\makeindex
\usepackage[italian]{babel}
\usepackage{url}
\usepackage{natbib}
\usepackage{subfigure}
\usepackage[font={small,it}, labelfont=bf]{caption}[2004/07/16]
\usepackage{fancyhdr}
\usepackage[italian,squaren]{SIunits}
\fancypagestyle{mainSection}{%
\fancyhead{}
\fancyfoot[RO,LE]{\thepage}
\renewcommand{\headrulewidth}{0.0pt}
\renewcommand{\footrulewidth}{0.0pt}
}
\makeatletter
\renewcommand{\section}{\@startsection
{section}%
{-1}%
{0mm}%
{-\baselineskip}%
{0.5\baselineskip}%
{\huge\bfseries\textsf}}%
\makeatother
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\subsectionmark}[1]{\markright{\thesubsection\ \boldmath\textsf{#1}\unboldmath}}
\renewcommand{\sectionmark}[1]{\markboth{\boldmath\textsc{#1}\unboldmath}{}}
\fancyhf{}
\fancyfoot[LE,RO]{\thepage}
\fancyhead[RE]{\nouppercase{\leftmark}}
\fancyhead[LO]{\rightmark}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\headrulewidth}{0.5pt}
\usepackage{chngcntr}
\counterwithin{figure}{section}
\counterwithin{equation}{section}
\counterwithin{table}{section}
`
Ho usato l’opzione dvipdfm per leggere i BoundingBox delle immagini pdf, può essere quello?