Re: Numerazione delle formule in LyX

#17211
Up
0
Down
::

Ciao,
vorrei riuscire a numerare le equazioni in un testo con più sezioni in modo tale che il formato della numerazione sia del tipo {section}.{number}

Per il momento sono riuscito a numerarle in modo semplice (1, 2, 3…)

Ho letto sul wiki di LyX che il modo per fare quello che voglio io è inserire nel “preamble” del mio documento la seguente stringa:

\numberwithin{equation}{section}

l’ho inserita ma quando vado a compliare il documento mi segnala due errori:
1 – Undefined control sequence: \numberwithin {equation}{section} The control sequence at the end of the top line of your error message was never \def’ed. If you have misspelled it (e.g., `\hobx’), type `I’ and the correct spelling (e.g., `I\hbox’). Otherwise just continue,
and I’ll forget about whatever was undefined.
2 – LaTeX error: Missing \begin{document}. \numberwithin{e
quation}{section}
You’re in trouble here. Try typing to proceed.
If that doesn’t work, type X
to quit.

Come document class sto usando “article” e la finestra del preamble nel pannello Documents->Settings.. era vuoto prima di inserire la stringa in questione.

Grazie mille in anticipo a chi potrà aiutarmi!

Aggiungi anche \usepackage{amsmath}. E smetti di usare LyX 🙂 Un buon editor è meglio. Questione di opinioni, lo so. 🙂

Ciao
Enrico

Go to top