Note that there are some explanatory texts on larger screens.

plurals
  1. POReferencing a theorem-like environment by its [name]
    primarykey
    data
    text
    <p>I am using ntheorem to typeset a set of conditions. In my preamble I have:</p> <pre><code>\theoremstyle{empty} \newtheorem{Condtion}{Condtion} </code></pre> <p>When I want to typeset a condition, I write:</p> <pre><code>\begin{Condtion}[name] \label{cnd:nm} foo foo foo \end{Condition} </code></pre> <p>The name appears boldface on the same line as the start of the text of the condition, with no number or anything. Perfect.</p> <p>What I want to do now is refer to the condition by some variant of the <code>\ref</code> command, \ref calls the number [which is not displayed anywhere else] \thref writes "Condition n" for the nth condition \nameref writes the name of the SECTION of the label. a zref solution was suggested <a href="http://groups.google.com/group/comp.text.tex/browse_thread/thread/227d1a4a9e546696#" rel="noreferrer">here</a>, but seems unsatisfactory and unwieldly. </p> <p>Any suggestions on a simple way to do this? (Even a simpler zref solution would be nice) At the moment I've just defined a <code>\newcommand</code> for each condition and use that rather than citing the condition itself. This is semantically opaque and just unsatisfying...</p> <p>(edit: I emailed one author of ntheorem, Wolfgang May, and he explained that there isn't really a way to do this within ntheorem, since the [name] option isn't recorded.)</p> <p>(edit: This isn't a dupe as suggested in the comment, since I'm interested in referencing an environment by its optional name command, not referencing the section/chapter it sits in.)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload