se inserisco qualche ambiente in AUCTeX da C-c C-e
(ad esempio equation
o figure
) allora AUCTeX chiedere un contrassegno con testo auto-inserito eq:
o fig:
.Auto ambienti di etichettatura in AUCTeX
Vorrei aggiungere l'ambiente theorem
agli ambienti LaTeX in AUCTeX. Ho fatto questo da
(add-hook 'LaTeX-mode-hook
(lambda()
(LaTeX-add-environments
'("theorem" LaTeX-env-label)
)))
Inoltre ho Hove qualcosa come
(setq reftex-label-alist
'(
("theorem" ?t "thm:" "~\\ref{%s}" t ("theorem" "th."))
))
Poi quando uso C-c C-e
aggiungere theorem
ambiente allora chiedere un'etichetta per un teorema, ma senza auto thm:
testo. Devo aggiungere questo manualmente.
E 'possibile effettuare AUCTeX aggiungere theorem
ambiente agisce la stessa equation
o figure
l'aggiunta automatica thm:
testo per un'etichetta?
per chiarire, se aggiungo theorem
ambiente senza un'etichetta e quindi utilizzare C-c (
utilizzare RefTeX per aggiungere un'etichetta allora chiedere un'etichetta in forma thm:
.
hai impostato 'reftex-plug-in-AUCTeX' su' t'? – rvf0068
@ rvf0068: sì, è acceso. – xen
@ rvf0068 ora funziona, ma penso ci siano ancora alcuni problemi: se si digita 'theorem' e quindi si preme' C-c) ', non è possibile selezionarli per qualche motivo. – Zero