Skip to main content

claim_borrowed_meanings

Function claim_borrowed_meanings 

Source
pub fn claim_borrowed_meanings(names: &[&str])
Expand description

A borrowing binding’s claim on the borrowed names its real package defines too: their meanings no longer carry the borrowed mark (DefinitionOrigin::Borrowed, fallback_meaning_origin), so they are the binding’s own, as if it had defined them again at its own origin, and a later file’s \newcommand/\newenvironment of them is refused as LaTeX refuses it (“Command … already defined”), not honoured. ntheorem.sty’s [amsthm] option defines \proofname and {proof} (ntheorem.sty:668-711), which its binding takes from the borrowed amsthm; theorem.sty’s \newskip\theorempreskipamount (theorem.sty:122-123) likewise. A name whose meaning is not borrowed is left alone.