Re: Numerazione pagine+testatina

#38394
Up
0
Down
::

Sostituisci \rightmark con \leftmark;

ho fatto come hai detto, ma non funziona….

\makeatletter
\def\ps@headings{%
\def\@oddfoot{\reset@font\hfil\thepage\hfil}%
\let\@evenfoot\@oddfoot
\def\@evenhead{\hfil\slshape\leftmark}%
\def\@oddhead{{\slshape\leftmark}\hfil}%
\let\@mkboth\markboth
\def\chaptermark##1{%
\markboth{%
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\@chapapp\ \thechapter. \ %
\fi
\fi
##1}{}}%
\def\sectionmark##1{%
\markright{%
\ifnum \c@secnumdepth >\z@
\thesection. \ %
\fi
##1}}}
\makeatother

mi restituisce diversi “undefined control sequence” ed “extra\fi”…
ho provato anche a cambiare \markright mettendo \markleft, i messaggi d’errore sono di meno, ma ci sono comunque…

Non c’è un modo più semplice che poi potrei essere in grado di gestire da solo in caso di necessità?

e lascia perdere LyX.;

Sì lo so che per imparare sarebbe meglio qualcosa tipo TeXnicCenter in cui scrivi direttamente sul sorgente. Infatti ho scaricato anche TeXnicCenter e l’ho già usato per documenti più brevi.. trovo però che il sorgente sia poco leggibile e faccio fatica a usarlo per la tesi….

Ciao
Enrico

Ciao e grazie della disponibilità 🙂

Mai dare per scontato qualcosa. 🙁 Immaginavo che avessi trovato quel codice dove si parlava di amsbook, che ovviamente non è.
`\makeatletter
\def\ps@headings{\ps@empty
\def\@oddfoot{\normalfont\scriptsize\hfil\thepage\hfil}%
\let\@evenfoot\@oddfoot
\def\@evenhead{%
\setTrue{runhead}%
\normalfont\scriptsize
\hfil
\def\thanks{\protect\thanks@warning}%
\leftmark{}{}\hfil}%
\def\@oddhead{%
\setTrue{runhead}%
\normalfont\scriptsize \hfil
\def\thanks{\protect\thanks@warning}%
\leftmark{}{}\hfil}%
\let\@mkboth\markboth
\def\partmark{\@secmark\markboth\partrunhead\partname}%
\def\chaptermark{%
\@secmark\markboth\chapterrunhead{}}%
\def\sectionmark{%
\@secmark\markright\sectionrunhead\sectionname}%
}
\makeatother
\pagestyle{headings}`
Mi resta oscuro perché tu voglia questo tipo di testatine.

Ciao
Enrico

Go to top