Re: numeri romani maiuscoli frontmatter (edizione2013)

#89077
Up
0
Down
::

Dork” post=88561Ciao a tutti,

riporto un (quasi) analogo problema di qualche anno fa discusso qui.

Il problema è numerare la parte introduttiva con numeri romani maiuscoli che non siano enormi come invece si ottiene con \pagenumbering{Roman}

nessuno dei due codici “magici” proposti nella discusisone citata risolve il problema, riportando, in entrambi i casi un errore. Di seguito riporto il preambolo completo (con aggiunto il codice magico consigliatomi all’epoca da egreg9):

`% !TEX encoding = IsoLatin
\documentclass[11pt,a4paper,twoside,english,italian]{book}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc} %codifica lingue europee
\usepackage{babel}
\usepackage[binding=0mm]{layaureo} %migliore disposizione del testo, binding:=rilegatura
\usepackage{microtype} %migliora il riempimento della pagina
\usepackage{emptypage}
\usepackage{indentfirst}

\usepackage{amsmath,amsfonts,amssymb,amsthm,mathrsfs}
\usepackage{latexsym}

\usepackage{color}
\usepackage{graphicx}
%\graphicspath{Disegni/}

\usepackage{mparhack} %elimina difetti note a margine \marginpar{}
\newcommand{\note}[1]{\marginpar{\textcolor{red}{#1}}} %note a margine rosse

\usepackage[italian]{varioref} %col comando \vref in luogo di \ref viene inserita automaticamente la numerazione della pagina in cui si colloca il riferimento, sfruttando anche diciture non numeriche del tipo “nella pagina precedente'', “a fronte'', ecc. Sono dunque generati riferimenti naturali in italiano coerenti con la disposizione del testo senza doverne fare a meno o rendere pesante la lettura con riferimenti numerici non necessari.
\usepackage{hyperref}
\makeatletter %rende “cliccabile'' solo i numeri dei riferimenti e non tutto il testo di riferimento, ovvero normalmente la frase “vedi figura 1.1 a pag 2'' ha un unica zona cliccabile che include tutto “1.1 a pag. 2'', ora invece sono cliccabili solo, e singolarmente, “1.1'' che porta al riferimento e “2'' che porta alla pagina. Nota: nel caso di “1.1 nella pagina seguente'' resta cliccabile solamente “1.1''.
\AtBeginDocument{
\def\vr@f#1{%
\leavevmode\unskip\vref@space
\begingroup
% \let\T@pageref\@pagerefstar %NON CANCELLARE QUESTA RIGA ANCHE SE COMMENTATA
\hyperref[{#1}]{\ref*{#1}}%
\vpageref[\unskip]{#1}%
\endgroup
}
}
\makeatother

\makeatletter
\renewcommand{\frontmatter}{%
\cleardoublepage\@mainmatterfalse
\pagenumbering{smallRoman}}
\DeclareRobustCommand{\@smrc}[1]{%
\begingroup\check@mathfonts\fontsize{\sf@size}{\sf@size}%
\selectfont#1\endgroup}
\def\smallRoman#1{\expandafter\@smallRoman\csname c@#1\endcsname}
\def\@smallRoman#1{\@smrc{%
\expandafter\@slowromansmallcap\romannumeral #1@}}
\def\@slowromansmallcap#1{\ifx @#1% then terminate
\else
\if i#1I\else
\if v#1V\else
\if x#1X\else
\if l#1L\else
\if c#1C\else
\if d#1D\else
\if m#1M\else
#1\fi\fi\fi\fi\fi\fi\fi
\expandafter\@slowromansmallcap
\fi}
\pdfstringdefDisableCommands{\let\@smrc\@iden}
\makeatother

\usepackage{enumerate} %permette di sfruttare ulteriori opzioni del pacchetto come, ad esempio, diverse numerazioni sfruttando il comando \begin{enumerate}[a] ad esempio la numerazione ? alfabetica, potendo anche personalizzare con cose del tipo begin{enumerate}[{Esempio} a] che porta a numerazioni della natura Esempio a, Esempio b, Esempio c, ecc..

\usepackage{float}
\floatstyle{boxed}
\restylefloat{figure}

\theoremstyle{plain}
\newtheorem{teo}{Teorema}[chapter]
\newtheorem{proposiz}[teo]{Proposizione}
\newtheorem{eser}[teo]{Esercizio}
\newtheorem{lemma}[teo]{Lemma}
\newtheorem{coroll}[teo]{Corollario}
\newtheorem{defin}{Definizione}
\newtheorem{oss}{Osservazione}
\newtheorem*{assioma}{Assioma}
\newtheorem*{post}{Postulato}

%\newcommand{\N}{\mathbb{N}}
%\newcommand{\Z}{\mathbb{Z}}
\newcommand{\Hi}{\mathbb{H}}
\newcommand{\R}{\mathbb{R}}
%\newcommand{\C}{\mathbb{C}}

% \usepackage{pgf}

%\usetikzlibrary{arrows}

\title%[Short Paper Title] % (optional, use only with long paper titles)
{titolo}

\author%[Author, Another] % (optional, use only with lots of authors)
{autori}`

e l’errore che ne deriva:

`This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)
\write18 enabled.
entering extended mode
(./disp_geom20092013.tex
LaTeX2e <2011/06/27>
Babel <3.9f> and hyphenation patterns for 78 languages loaded.
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/book.cls
Document Class: book 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/bk11.clo))
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/inputenc.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/latin1.def))
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/t1enc.def))
(/usr/local/texlive/2013/texmf-dist/tex/generic/babel/babel.sty
(/usr/local/texlive/2013/texmf-dist/tex/generic/babel-english/english.ldf
(/usr/local/texlive/2013/texmf-dist/tex/generic/babel/babel.def))
(/usr/local/texlive/2013/texmf-dist/tex/generic/babel-italian/italian.ldf))
(./layaureo.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2013/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/local/texlive/2013/texmf-dist/tex/latex/tools/calc.sty))
(/usr/local/texlive/2013/texmf-dist/tex/latex/microtype/microtype.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/microtype/microtype-pdftex.def)
(/usr/local/texlive/2013/texmf-dist/tex/latex/microtype/microtype.cfg))
(/usr/local/texlive/2013/texmf-dist/tex/latex/emptypage/emptypage.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/tools/indentfirst.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/amsfonts.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/amssymb.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/amscls/amsthm.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/jknapltx/mathrsfs.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/latexsym.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/local/texlive/2013/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)))
(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/graphics.cfg)))
(/usr/local/texlive/2013/texmf-dist/tex/latex/mparhack/mparhack.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/tools/varioref.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/usr/local/texlive/2013/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver (autodetected): hpdftex.

(/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/hpdftex.def
(/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/usr/local/texlive/2013/texmf-dist/tex/latex/tools/enumerate.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/float/float.sty)
(./disp_geom20092013.aux)
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
(/usr/local/texlive/2013/texmf-dist/tex/latex/microtype/mt-cmr.cfg)
(/usr/local/texlive/2013/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/grfext.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
(/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./disp_geom20092013.out) (./disp_geom20092013.out)
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2013/texmf-dist/tex/latex/microtype/mt-msa.cfg)
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/umsb.fd)
(/usr/local/texlive/2013/texmf-dist/tex/latex/microtype/mt-msb.cfg)
(/usr/local/texlive/2013/texmf-dist/tex/latex/jknapltx/ursfs.fd)
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/ulasy.fd) [1{/usr/local/texl
ive/2013/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] [2]
(./disp_geom20092013.toc) [1]
./disp_geom20092013.tex:111: Argument of \MT@res@a has an extra }.

\par
l.111 \listoffigures`

Come potrei risolvere il problema?

Grazie mille a tutti!

Il pacchetto che dà problemi è mparhack.

Ciao
Enrico

Go to top