Double click and TeX

Hi,

 

In general, when double clicking a word it remains selected and can, for example, be copied and pasted somewhere.

 

I recently noted some strange behavior when macro names are involved.

 

For example having

 

\newcounter{rS}

\newcommand{\Chap}[2]{\section{#2}\label{c#1}}

\newcommand{\RChap}[1]{\stepcounter{subsection}\setcounter{rS}{0}\section*{\ref{c#1}.\quad Remarks}\label{r#1}}

 

Double clicking rS , \newcounter, or Remarks they become selected, double clicking newcommand does not select it but places the cursor at the closing brace (this is possibly wanted), but the most strange is that double clicking \Chap does not select it (to be copied) but just places the cursor before the d in \newcommand.

Even more strange is the fact that  double clicking \quad also does not select it but places the cursor before the star.

 

Possibly this is due to the presence of \ref and/or \label, but I do not see the exact relation.

 

Any idea on how to fix this?

 

Daniele

 

(I am now using  Build: 20080429  (v. 5.6), but It seems to me that with 5.5 I had similar problems)

 


Gmane