zeppnick” post=80456il documento è molto grande e frammentato in più documenti .tex che poi ho richiamato nel main.tex
comunque il mio preambolo si presenta così
`\documentclass[12pt, a4paper, twoside, openright]{book}
\usepackage[a4paper, top=3cm, bottom=2.5cm, left=2.5cm, right=2.5cm, bindingoffset=5mm]{geometry}
…
\usepackage{amssymb,amsmath,amsthm,xfrac}
…%\newtheoremstyle{mystyle}% name
% {3pt}%Space above
% {3pt}%Space below
% {\normalfont}%Body font
% {0pt}%Indent amount
% {\itshape}% Theorem head font
% {.}%Punctuation after theorem head
% {\newline}%Space after theorem head 2
% {}%Theorem head spec (can be left empty, meaning ‘normal’)\swapnumbers
\newtheorem{prop}{Proposizione}[section]
\newtheorem{teor}[prop]{Teorema}`intanto ho lasciato queste impostazioni per poter lavorare senza problemi…però la mia idea era di creare quel `mystyle` in modo da poterlo applicare a tutti i teoremi…
magari togliendo anche `\swapnumbers`, che comunque per adesso fa bene il suo lavoro…grazie!
`\documentclass{book}
\usepackage{amsthm}
\makeatletter
\newtheoremstyle{zepp}
{\topsep}
{\topsep}
{\normalfont\itshape}
{0pt}
{\normalfont\bfseries}
{.}
{ }
{(#2) #1\@ifnotempty{#3}{ (#3)}}
% #1 = nome, #2 = numero, #3 = attribuzione
\makeatother
\theoremstyle{zepp}
\newtheorem{thm}{Teorema}[chapter]
\begin{document}
\mainmatter
\chapter{Titolo}
\begin{thm}[di Babafou]
Qualche mulo parla.
\end{thm}
\end{document}`
Ciao
Enrico