Nicolas Vaughan | 9 May 06:58
Picon

\item indent

Hello,
Where can I configure the way WinEdt indents \item and \subitem commands (in the editor, not in the resulting LaTeXed document)? With my current settings (build  20071003  (v. 5.5)) I get different indentations for those two commands, and I want to make them identical.
Thanks in advance!
Nicolas Vaughan

Picon
Favicon

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)

 

WinEdt Team | 9 May 19:16
Favicon

Re: Double click and TeX

> 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.

Options -> Settings| Active Strings. Disable all double-click
responses and you will get a consistent simple behavior.

In particular, \?ref is too much of a wild-card but you may
want to disable all of them.

I will (now) revisit this double-click active string activation
so that a wildcard following a backslash does not extend beyond
{ or \. This will filter most unwanted responses described
above (regardless of your active string settings)... But you
may still disable the active strings that are bothering you.
OK?

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

WinEdt 5.6 maybe but not with the default settings. In Defaults
there is no problem with \quad. Only \<items> in front of \ref
invoke delimiter matching as an active string response.
Defaults don't have any wild-card labels defined as active
strings -- but your settings probably do:-)

Best regards,

alex

WinEdt Team | 9 May 19:16
Favicon

Re: \item indent

> Where can I configure the way WinEdt indents \item and \subitem
> commands (in the editor, not in the resulting LaTeXed
> document)? With my current settings (build 20071003 (v. 5.5)) I
> get different indentations for those two commands, and I want
> to make them identical. Thanks in advance!

Options -> Advanced -> Environments.

Best regards,

alex

Nicolas Vaughan | 9 May 19:02
Picon

Re: \item indent

Thanks Alex!
Best regards,
Nicolas Vaughan

On Fri, May 9, 2008 at 12:16 PM, WinEdt Team <support <at> winedt.com> wrote:
Where can I configure the way WinEdt indents \item and \subitem
commands (in the editor, not in the resulting LaTeXed
document)? With my current settings (build 20071003 (v. 5.5)) I
get different indentations for those two commands, and I want
to make them identical. Thanks in advance!

Options -> Advanced -> Environments.

Best regards,

alex



Gmane