- Questo topic ha 4 risposte, 3 partecipanti ed è stato aggiornato l'ultima volta 5 anni, 8 mesi fa da .
-
Topic
-
Ciao. Sto cercando di imitare nei mie appunti in LaTeX lo stile di certi vecchi testi di area scientifica. Uso amsproc e utilizzo LaTeX essenzialmente per scrivere note a discreto contenuto matematico.Finora, ho ridefinito i comandi \(sub)section e \paragraph così:
`
\makeatletter\renewcommand\section{\@startsection{section}
{1}
{\normalparindent}
{.7\linespacing\@plus\linespacing}
{.1\linespacing}
{\Large\bfseries}
}\renewcommand\subsection{\@startsection{subsection}
{2}
{\normalparindent}
{.5\linespacing\@plus.7\linespacing}
{-.5em}
{\large\scshape}
}\renewcommand\subsubsection{\@startsection{subsubsection}
{3}
{\z@} % non indentato
{.3\linespacing\@plus.7\linespacing} % più spazio tra una sezione e l'altra
{-.5em}
{\normalfont\scshape}
}\renewcommand\paragraph{\@startsection{paragraph}
{4}
{\normalparindent}
{\z@}
{-\fontdimen2\font}
{\normalfont\itshape}
}\makeatother
`
Inoltre, ho modificato lo stile dei teoremi:
`
\newcommand\namefont{\normalfont\scshape}
\newcommand\numberfont{\normalfont\bfseries}
\newcommand\notefont{\normalfont\scshape}\makeatletter
\newtheoremstyle{theo}%
{.3\linespacing\@plus.7\linespacing}
{-.5em}
{}
{\z@}
{}
{.}
{.5em}
{{\numberfont\thmnumber{#2.}}~{\namefont\thmname{#1}}~\notefont{\thmnote{(#3)}}}\newtheoremstyle{defn}%
{.3\linespacing\@plus.7\linespacing}
{-.5em}
{}
{\z@}
{}
{.}
{.5em}
{{\numberfont\thmnumber{#2.}}~{\namefont\thmname{#1}}~\notefont{\thmnote{(#3)}}}\newtheoremstyle{remrk}%
{.3\linespacing\@plus.7\linespacing}
{-.5em}
{}
{\z@}
{}
{.}
{.5em}
{{\numberfont\thmnumber{#2.}}~{\namefont\thmname{#1}}~\notefont{\thmnote{(#3)}}}\makeatother
`Il risultato mi sembra davvero soddisfacente, ma ci sono alcuni problemi. Il primo che mi viene in mente, e che non sono riuscito a risolvere, è questo: i comandi \(sub)section* e \paragraph* parsano la stellina come argomento, producendo un risultato sgradevole. Ciò significa che i pacchetti come bibtex che a loro si appoggiano per stampare l’indice bibliografico “non funzionano”.
Spero di riuscire a risolvere in qualche modo. 😀
P.s. Non sono stato in grado di evidenziare in monospaziato in comandi in testo, come \section. C’è un modo di farlo, su questo forum?
- Devi essere connesso per rispondere a questo topic.