#193 \label and \ref

None
open
nobody
5
2012-11-18
2011-04-14
Anonymous
No

I have a macro that I use to define subsections in my own way:
\def\new_sec#1#2{\pagebreak[3]\begin{sub}\label{#2}{\sc\small\small

1}\rm\medskip}

One of the parameters is the label I use for this subsection. But when I use \ref{} the name of this label is not visible in the list given by the editor.

Can this problem be solved ?

Discussion

• Jan Sundermeyer - 2012-11-09
• status: open --> closed
• milestone: -->

• Jan Sundermeyer - 2012-11-09

no

• it could just check if there is a \label|ref|...{#.} within the command (would be much easier in qce3)

• status: closed --> open

• Tim Hoffmann - 2012-11-18

Wait until QCE3 if it is easier there.

Also something like \newcommand*{\secRef}[1]{Section \label{#1}} should be parsed.