Daniele Degiorgi | 25 Jun 11:35 2016
Picon

Macro and unicode

Hi,

 

I have a problem with following macro

 

SaveFind; SearchReset; SetSearchCurrentDoc; SetSearchEntire(0); SetSearchWholeWords(0);

SetSearchCaseSensitive(1); SetSearchInline(1); SetNotFoundNotify(0); SetReplacePrompt(0); SetReplaceNotify(0);

SetSearchSelected; SetRegEx(1);

SetFindStr(' in \(1[A-Ga-g]\)b'); SetReplaceStr(' in \1'); ReplaceAll(0,0,0); SetOK(1);

SetFindStr(' in \(1[A-Ga-g]\)s'); SetReplaceStr(' in \1'); ReplaceAll(0,0,0); SetOK(1);

SetFindStr(' <at> [ M,]q=\(1+[0-9]\)'); SetReplaceStr(' =\1'); ReplaceAll(0,0,0); SetOK(1);

SetFindStr(' <at> [ M,]h=\(1+[0-9]\)'); SetReplaceStr(' ♩♩=\1'); ReplaceAll(0,0,0); SetOK(1);

SetFindStr(' <at> [ M,]e=\(1+[0-9]\)'); SetReplaceStr(' =\1'); ReplaceAll(0,0,0); SetOK(1);

SetFindStr(' <at> [ M,]qd=\(1+[0-9]\)'); SetReplaceStr(' .=\1'); ReplaceAll(0,0,0); SetOK(1);

SetFindStr(' <at> [ M,]hd=\(1+[0-9]\)'); SetReplaceStr(' ♩♩♩=\1'); ReplaceAll(0,0,0); SetOK(1);

SetFindStr(' <at> [ M,]ed=\(1+[0-9]\)'); SetReplaceStr(' .=\1'); ReplaceAll(0,0,0); SetOK(1);

SetFindStr(' (q=\(1+[0-9]\)'); SetReplaceStr(' (=\1'); ReplaceAll(0,0,0); SetOK(1);

SetFindStr(' (h=\(1+[0-9]\)'); SetReplaceStr(' (♩♩=\1'); ReplaceAll(0,0,0); SetOK(1);

SetFindStr(' (e=\(1+[0-9]\)'); SetReplaceStr(' (=\1'); ReplaceAll(0,0,0); SetOK(1);

SetFindStr(' (qd=\(1+[0-9]\)'); SetReplaceStr(' (.=\1'); ReplaceAll(0,0,0); SetOK(1);

SetFindStr(' (hd=\(1+[0-9]\)'); SetReplaceStr(' (♩♩♩=\1'); ReplaceAll(0,0,0); SetOK(1);

SetFindStr(' (ed=\(1+[0-9]\)'); SetReplaceStr(' (.=\1'); ReplaceAll(0,0,0); SetOK(1);

RestoreFind;

End;

 

Applied on following selected text

 

I61 pf Scherzo, Gigue, Romanze und Fughette Sehr markiert in Bb op.32 (HUV.56-67,AGAVII64.2-13,1838)

I61.1 pf Scherzo Sehr markiert (q=160) in Bb op.32 (HUV.56-59,AGAVII64.2-5,1838)

I61.2 pf Gigue Sehr schnell (qd=116) in g op.32 (HUV.60-61,AGAVII64.6-7,1838)

I61.3 pf Romanze Sehr rasch und mit Bravour (e=144) in d op.32 (HUV.62-65,AGAVII64.8-11,1838)

I61.4 pf Fughette Leise (qd=84) in g op.32 (HUV.66-67,AGAVII64.12-13,1839)

I56.1 pf Nachtstücke Mehr langsam oft zurückhaltend q=100 in C op.23 (HUIV.219-223,AGAVII61.2-5,1839)

I56.2 pf Nachtstücke Markiert und lebhaft h=76 in F op.23 (HUIV.224-229,AGAVII61.5-9,1839)

I56.3 pf Nachtstücke Mit grosser Lebhaftigkeit hd=72 in Db op.23 (HUIV.230-235,AGAVII61.9-14,1839)

I56.4 pf Nachtstücke Ad libitum Einfach h=96 in F op.23 (HUIV.236-237,AGAVII61.14-15,1839)

 

Gives

 

I61 pf Scherzo, Gigue, Romanze und Fughette Sehr markiert in B op.32 (HUV.56-67,AGAVII64.2-13,1838)

I61.1 pf Scherzo Sehr markiert ( =160) in B op.32 (HUV.56-59,AGAVII64.2-5,1838)

I61.2 pf Gigue Sehr schnell ( .=116) in g op.32 (HUV.60-61,AGAVII64.6-7,1838)

I61.3 pf Romanze Sehr rasch und mit Bravour ( =144) in d op.32 (HUV.62-65,AGAVII64.8-11,1838)

I61.4 pf Fughette Leise ( .=84) in g op.32 (HUV.66-67,AGAVII64.12-13,1839)

I56.1 pf Nachtstücke Mehr langsam oft zurückhaltend =100 in C op.23 (HUIV.219-223,AGAVII61.2-5,1839)

I56.2 pf Nachtstücke Markiert und lebhaft ♩♩=76 in F op.23 (HUIV.224-229,AGAVII61.5-9,1839)

I56.3 pf Nachtstücke Mit grosser Lebhaftigkeit ♩♩♩=72 in D op.23 (HUIV.230-235,AGAVII61.9-14,1839)

I56.4 pf Nachtstücke Ad libitum Einfach ♩♩=96 in F op.23 (HUIV.236-237,AGAVII61.14-15,1839)

 

That is an unwanted space is introduced between parenthesis and ♩, while no unwanted space is introduced in case of no parenthesis.

 

Note that  using same find and replace without calling the macros results in the desired output (without space after parenthesis).

 

Is this a bug (I use Build: 20160526  (v. 10.1) - 64-bit) or there is some settings to avoid the problem?

 

Thanks and greetings,

 

Daniel  

Daniele Degiorgi | 16 Jun 18:47 2016
Picon

On the musical flat symbol (U+266D)

Hi,

I have recently noted that the flat Unicode symbol (#266D) uses only about
the half width (more exactly 6 flat symbol uses the same space as 4 normal
characters), even using fixed with fonts (I use Courier New) and moreover,
all following spaces also uses the same width. The same happens with the
natural sign (#266E) but not with the sharp sign (#266F).
I am using Build: 20160526  (v. 10.1) - 64-bit.

Who lies the problem? Can it be avoided?

Many thanks for any hint,

Daniel

Roberto | 16 Jun 18:35 2016
Picon

solved: A damned old mistake

Thanks to alex suggestions that have allowed me to solve the problem.

Roberto | 15 Jun 20:00 2016
Picon

A damned old mistake

My LaTeX work on a single file is correctly compiled in WinEdt 10.1 (with
Texlive 2016). The same job with separate chapters on individual files and
loaded with \include {path / filename} in the main file keeps giving me the
error file:
! Missing $ inserted.
<Inserted text>
                $
l.5 ... ia the same atmosphere. Since it can

My premable:

\ Documentclass [12pt, a4paper, openright, twoside, italian] {book}
\ Usepackage [T1] {} fontenc
\ Usepackage [latin9] {} inputenc
\ Usepackage [a4paper] {geometry}
\ Geometry {verbose, tmargin = 3cm, bmargin = 3cm, lmargin = 3cm, rmargin = 3cm}
\ Setcounter secnumdepth {} {3}
\ Setcounter tocdepth {} {3}
\ Usepackage {float}
\ Usepackage {} subfloat
\ Usepackage {} amsmath
\ Usepackage {} amssymb
\ Usepackage {} mathtools
\ Usepackage {} fancyhdr
\ Usepackage {babel}
\ Usepackage {graphicx}
\ Usepackage {}% booktabs need to use \ toprule, \ midrule and \ bottomrule
in tables
\ Usepackage {xcolor, colortbl}% is used to color the rows or columns in a table
\ Usepackage {} eurosym
\ Usepackage [format = hang, position = bottom] {caption}
\ Usepackage {} subcaption
\ Usepackage [output-decimal-marker = {.}]} {Siunitx
\ Usepackage [title, titletoc] {appendix}
\ Usepackage {} csquotes
%
******************%
% Two packages: the first to define new colors, the second for the color of
the table
\ Usepackage {color, colortbl}
% It defines an new color with \ definecolor {name} {system} {definition}
\ Definecolor Gray {} {} {0.9}% gray Light gray
\ Definecolor lightcyan {rgb} {} {}% 0.7,1,1 Light cyan
% How to use for coloring eg. the rows in a table: \ rowcolor lightcyan {}
%
*****************%
%
\ Usepackage [] {hyperref}% These two lines were later biblatex usepackage {}
\ {Hypersetup colorlinks = true, urlcolor = blue, citecolor = blue}% color
change is the quotes that the url
%
% The following lines run biber
\ Usepackage [
backend = biber,
style = numeric-comp,
defernumbers = true,% put in numerical order and continuously increasing the
items of the two bibliographies
citestyle = numeric,
natbib = true,
url = true,
doi = true,
eprint = true
] {} Biblatex
%
\ Addbibresource Eolico.bib {}

It seems that the directive \usepackage [latin9] {} inputenc not be applied
to individual chapters in their respective files.

Suggestions?

Héctor H. Calderón | 13 Jun 17:28 2016
Picon

Highlighting instances of current word

Is there a way to highlight other instances of the current word? If not, 
is it possible to create a dynamic dictionary that contains the current 
(selected) word? Which WinEdt commands should I look into?

Jennifer Harding | 9 Jun 12:33 2016

Sumatra pdf viewer

I have tried everything but can’t get my PDF viewer to change from Acrobat to Sumatra. I had it fine in WinEdt 8 but have just installed WinEdt 10 after deleting v8. Advice much appreciated. I am new to this list and not sure how to see all the current post in case there is an answer there. Thank you. JJH
Phil Rothman | 8 Jun 18:53 2016

Problem with \cite{} and References

When I type ‘\cite{}’, references from my bib file don’t pop up. I’d
appreciate it if someone would let me know how to fix this. For some reason,
this feature stopped working. I’m using WinEdt 9.1.

If this issue has already been addressed on this list, a reference to that
earlier discussion would be appreciated.

Thanks,

Phil Rothman
Rothman, Philip | 8 Jun 18:51 2016

Problem with \cite{} and References

When I type ‘\cite{}’, references from my bib file don’t pop up. I’d appreciate it if someone would let me know how to fix this. For some reason, this feature stopped working. I’m using WinEdt 9.1.

 

If this issue has already been addressed on this list, a reference to that earlier discussion would be appreciated.

 

Thanks,

 

Phil Rothman

 

*************************************************

Philip Rothman

Professor

Department of Economics

Brewster Building

East Carolina University

Greenville, NC 27858

 

Phone: 252-328-6151

Fax: 252-328-6743

E-mail: mailto:rothmanp <at> ecu.edu

WWW: http://myweb.ecu.edu/rothmanp/rothman.htm

 

Juergen Gilg | 1 Jun 22:40 2016
Picon

Find & Replace an "\item" except from within some given environments

Dear List,

thanks to Aleksander Simonič, I could modify his helpful attempt for a macro, that now works like a charm -- however after some tests, I need some conditional for the red highlighted replacement below ...
Below an excerpt of my macro:

####### BEGIN MACRO #######
// Many thanks to Aleksander Simonič of WinEdt who
// setup the necessary counter to make the IDs unique!
// A very helpful macro, to cleverly modify an
// already existing exam generated with "eqexam" into
// a database file for " <at> EASE".
//
PushTagsandRegisters;
SaveFind;
SetSearchCurrentDoc;
SetSearchCyclic(1);
SetRegEx(1);
LetRegNum(0,0); // ID counter start
GetDate(6,!'ddmmyyyhhnnss');
SetTag(6,"%!6");
SetReplacePrompt(0);
SetReplaceNotify(0);
SetFindStr(!'\\item'+>
            !'\Xx{LetRegNum(0,"%!0\+1");SetTag(9,"%!0");}');
SetReplaceStr(!'\\PRT\{JG\6\9\}>\\item');
SearchReset;
ReplaceAll;
RestoreFind;
PopTagsandRegisters;
End;        
####### END MACRO #######

Here the conditions:

Could it be done, that the replacement of !'\\item'  only is made, if the !'\\item'
is neither within a
\begin{itemize} .. \end{itemize}
nor within a
\begin{enumerate} .. \end{enumerate}
nor within a
\begin{description} .. \end{description} 
environment.

I looked up the example "isMath", however I failed to set it up to my purpose. Also looking closer to RegEx and Registers and some macro examples, I couldn't find a way -- and to be honest, it is too "special" for me.

Any hint or help or fix is very appreciated.

Kindest regards,

Jürgen
-- Jürgen Gilg Austr. 59 70376 Stuttgart
Lemenn | 31 May 16:21 2016
Picon

Highlight the current line in the "Line Numbers" panel

Hello,

The [BOOKMARKS] section contains :

         ROAMING_BOOKMARK=0
         HIGHLIGHT_CURRENT_LINE_PANEL=1

I would like to stress the difference of color for the current line in 
the "Line Numbers" panel.

I can't find any setting to set the color for the current line in the
line numbers panel... neither in the [BOOKMARKS] section nor in the 
[BACKGROUND_SCHEMES] one.

Thanks in advance.
Florent.

wkehowski | 28 May 08:34 2016
Picon
Picon

Re: frametitle in Tree

Karl,

Thank you. I took your first suggestion and it works perfectly.

Walter Kehowski

---- Karl Koeller <karlkoeller <at> googlemail.com> wrote: 
> Il 28/05/2016 06:15, wkehowski <at> cox.net ha scritto:
> > Hello,
> >
> > WinEdt Build: 20160526  (v. 10.1) - 64-bit. I am using Beamer and would like the frametitle to show up in
TOC. I only see (untitled). I've looked in the Options Interface and found \begin{frame} etc in both Tree
and Gather but have no idea what to do. Any suggestions? Thanks in advance.
> >
> > Walter kehowski
> >
> 
> Hi Walter,
> 
> WinEdt collect structures like
> 
> \begin{frame}{title}
> 
> but you're probably using
> 
> \begin{frame}
> \frametitle{title}
> 
> and this is not collected.
> 
> So, you should use the first method to specify the title if you want 
> WinEdt to show up the right frame title.
> 
> Otherwise, both in Tree.ini and Gather.ini, replace
> 
>    ITEM="\begin{frame}?"
> 
> and
> 
>    END="\begin{frame}?"
> 
> with, respectively,
> 
>    ITEM="\frametitle?"
> 
> and
> 
>    END="\frametitle?"
> 
> and reload the files.
> 
> In this case, however, you can not use the first structure anymore.
> 
> Best regards,
> 
> Karl
> 


Gmane