Ulrich D i e z | 7 Aug 2011 14:26
Picon

WinEdt 5.4 line-wrapping at comments

Sometimes I use WinEdt 5.4 [Build: 20050701  (v. 5.4)] as
TeX-Input-editor.

I don't use soft-wrapping for the document mode "TeX". I use a
fixed right margin with a length of 80 characters. During typing,
the input gets wrapped at last after the 80th character which is
due to the option "enable line wrapping". Linebreaks end up in
the TeX-input-file as <CR+LF>.

When editing a paragraph which I have already typed,  that
paragraph is - due to paragraph-wraping - automatically
re-wrapped to a linewidth of 80 characters.

That's nice.

But there are problems with lines which contain comment-chars (%)
[ or whatever string is listed under "options -> settings ->
comments"]  :

WinEdt 5.4 leaves those lines entirely untouched. (That behavior
is described in the documentation/WinEdt-help.)

I'd like WinEdt 5.4 to wrap the material which in such lines
appears at the left of the first comment-char of that line and
which thus does not belong to the comment but does belong to the
paragraph preceding the comment together with the preceding
lines of that paragraph while leaving the material at the
right of the comment-char untouched/unwrapped, yielding a nicely
wrapped paragraph whose last line might be longer than 80
characters due to the presence of the comment-char somewhere 
(Continue reading)

WinEdt Team | 9 Aug 2011 23:39

Re: WinEdt 5.4 line-wrapping at comments

Ulrich,

> But there are problems with lines which contain
comment-chars (%) [
> or whatever string is listed under "options -> settings ->
> comments"] :
>
> WinEdt 5.4 leaves those lines entirely untouched. (That behavior is
> described in the documentation/WinEdt-help.)
>
> I'd like WinEdt 5.4 to wrap the material which in such lines
> appears at the left of the first comment-char of that line and
> which thus does not belong to the comment but does belong to the
> paragraph preceding the comment together with the preceding lines
> of that paragraph while leaving the material at the right of the
> comment-char untouched/unwrapped, yielding a nicely wrapped
> paragraph whose last line might be longer than 80 characters due to
> the presence of the comment-char somewhere within the first 80
> characters of that last line.
>
> How can I achieve this?

There is no option to achieve this. Indeed WinEdt treats lines that
contain comments as data that should not be formatted (including
any text in front of the comment).

If and when I will make changes to wrapping/ formatting
functionality I may consider an optional behavior as described
above but at the moment I am not planning any changes to wrapping
behavior for the next version.
(Continue reading)

Daniele Giorgio Degiorgi | 12 Aug 2011 09:07
Picon

Tabs in Macros in WinEdt 6

Hi,

 

I have following problem.

 

I get with cut+Paste a portion of an excel document in Winedt.

Field Separator is a tab and I managed to have it represented with a underlined <.

In a macro file I could  use tabs in SetFindStr and SetReplaceStr.

Running the macro I got a modified text that I could again with cut+paste transfer in an access document.

This was with Winedt 5.

 

With Winedt 6 the macro does not work anymore.

I tried to change the defaults for tabs but it worked only partial: I got the tabs represented as underlined < in the text file but not in the macro (EDT document).

 

I tried to change the tabs in the macro with $[#9]$ but after that the macro seems to have no effect. In fact $[#9]$ works with Winedt 5 but seems not to work in Winedt 6.

 

Any Idea how I can get it to work?

 

Many thanks in advance,

 

Daniel

 

Gilbert Ritschard | 12 Aug 2011 10:01
Picon
Picon
Favicon

Re: Tabs in Macros in WinEdt 6

Hi Daniel,

I use  a macro named tab_to_tex.edt, with the following code (provided 
to me by Alex, if I remember well):

CopyFromClipboard(0);
   // Convert tab to tab&
   LetRegNum(1, 0);
   LetRegNum(2, -3);
   Loop(!|>
     FindInString("%!0", "$[#9]$", 1,2, 1011, %!2+3);>
     IfOK('ReplaceInString("%!0", "$[#9]$& ", %!1, %!2, 1, 0);','Stop;')|);

   // Convert CR to \\CR
   LetRegNum(1, 0);
   LetRegNum(2, -3);
   Loop(!|>
     FindInString("%!0", "$[#13]$", 1,2, 1011, %!2+3);>
     IfOK('ReplaceInString("%!0", "\\\\$[#13]$", %!1, %!2, 1, 
0);','Stop;')|);

   InsText("%!0"); // Insert with no wrapping

End;

The macro is assigned to a menu item (I have it in a "my_tools" menu, 
but you can just add it for instance to "Tools")

   ITEM="Paste_tab_to_TeX"
     CAPTION="Paste tab to TeX"
     MACRO="Exe('%B\Contrib\My\tab_to_tex.edt');"    // adapt the path
     SHORTCUT="49240::Ctrl+Alt+X"

Usage: In Excel I just copy the wanted table, and then pressing 
Ctrl+Alt+X in WinEdt I get the table with tab replaced by &, and end of 
line by \\.

Alternatively, you can also use the Excel add-in: 
http://www.ctan.org/tex-archive/support/excel2latex , with which you get 
in addition the table environment.

Hope this helps.

Gilbert

On 12-Aug-11 9:07, Daniele Giorgio Degiorgi wrote:
>
> Hi,
>
> I have following problem.
>
> I get with cut+Paste a portion of an excel document in Winedt.
>
> Field Separator is a tab and I managed to have it represented with a 
> underlined <.
>
> In a macro file I could  use tabs in SetFindStr and SetReplaceStr.
>
> Running the macro I got a modified text that I could again with 
> cut+paste transfer in an access document.
>
> This was with Winedt 5.
>
> With Winedt 6 the macro does not work anymore.
>
> I tried to change the defaults for tabs but it worked only partial: I 
> got the tabs represented as underlined < in the text file but not in 
> the macro (EDT document).
>
> I tried to change the tabs in the macro with $[#9]$ but after that the 
> macro seems to have no effect. In fact $[#9]$ works with Winedt 5 but 
> seems not to work in Winedt 6.
>
> Any Idea how I can get it to work?
>
> Many thanks in advance,
>
> Daniel
>

--

-- 
Gilbert Ritschard, Department of Economics and
Institute for Demographic and Life Course Studies,
University of Geneva, 40, bd du Pont-d'Arve, CH-1211 Genève 4, Switzerland
http://mephisto.unige.ch

Luis Gonçalves | 12 Aug 2011 17:33
Picon
Favicon

Ghostscript Configuration

Dear All               

 

      I am using the prosper package. When I do dvi->ps->pdf the pdf file appears with a white bar  at the right of the slides. I had this problem once in another computer and as I remember It was solved with a ghostscript configuration (in “Execution Modes”). But I am open to another solutions. The ps2pdf is already configured to A4.

 

Thanks

 

Luis Gonçalves

Karl Koeller | 12 Aug 2011 18:03

Re: Tabs in Macros in WinEdt 6

Note that this macro is in install folder, namely \Macros\Samples\Table 
Paste.edt

Il 12/08/2011 10.01, Gilbert Ritschard ha scritto:
> Hi Daniel,
>
> I use  a macro named tab_to_tex.edt, with the following code (provided 
> to me by Alex, if I remember well):
>
> CopyFromClipboard(0);
>   // Convert tab to tab&
>   LetRegNum(1, 0);
>   LetRegNum(2, -3);
>   Loop(!|>
>     FindInString("%!0", "$[#9]$", 1,2, 1011, %!2+3);>
>     IfOK('ReplaceInString("%!0", "$[#9]$& ", %!1, %!2, 1, 
> 0);','Stop;')|);
>
>   // Convert CR to \\CR
>   LetRegNum(1, 0);
>   LetRegNum(2, -3);
>   Loop(!|>
>     FindInString("%!0", "$[#13]$", 1,2, 1011, %!2+3);>
>     IfOK('ReplaceInString("%!0", "\\\\$[#13]$", %!1, %!2, 1, 
> 0);','Stop;')|);
>
>   InsText("%!0"); // Insert with no wrapping
>
> End;
>
>
> The macro is assigned to a menu item (I have it in a "my_tools" menu, 
> but you can just add it for instance to "Tools")
>
>   ITEM="Paste_tab_to_TeX"
>     CAPTION="Paste tab to TeX"
>     MACRO="Exe('%B\Contrib\My\tab_to_tex.edt');"    // adapt the path
>     SHORTCUT="49240::Ctrl+Alt+X"
>
> Usage: In Excel I just copy the wanted table, and then pressing 
> Ctrl+Alt+X in WinEdt I get the table with tab replaced by &, and end 
> of line by \\.
>
> Alternatively, you can also use the Excel add-in: 
> http://www.ctan.org/tex-archive/support/excel2latex , with which you 
> get in addition the table environment.
>
> Hope this helps.
>
> Gilbert
>
>
> On 12-Aug-11 9:07, Daniele Giorgio Degiorgi wrote:
>>
>> Hi,
>>
>> I have following problem.
>>
>> I get with cut+Paste a portion of an excel document in Winedt.
>>
>> Field Separator is a tab and I managed to have it represented with a 
>> underlined <.
>>
>> In a macro file I could  use tabs in SetFindStr and SetReplaceStr.
>>
>> Running the macro I got a modified text that I could again with 
>> cut+paste transfer in an access document.
>>
>> This was with Winedt 5.
>>
>> With Winedt 6 the macro does not work anymore.
>>
>> I tried to change the defaults for tabs but it worked only partial: I 
>> got the tabs represented as underlined < in the text file but not in 
>> the macro (EDT document).
>>
>> I tried to change the tabs in the macro with $[#9]$ but after that 
>> the macro seems to have no effect. In fact $[#9]$ works with Winedt 5 
>> but seems not to work in Winedt 6.
>>
>> Any Idea how I can get it to work?
>>
>> Many thanks in advance,
>>
>> Daniel
>>
>

Karl Koeller | 12 Aug 2011 18:05

Re: Ghostscript Configuration

I think in Options -> Execution Modes -> Console Applications, you have to set 'Letter' under 'Paper size and orientation' for dvi2ps tool

Il 12/08/2011 17.33, Luis Gonçalves ha scritto:

Dear All               

 

      I am using the prosper package. When I do dvi->ps->pdf the pdf file appears with a white bar  at the right of the slides. I had this problem once in another computer and as I remember It was solved with a ghostscript configuration (in “Execution Modes”). But I am open to another solutions. The ps2pdf is already configured to A4.

 

Thanks

 

Luis Gonçalves


Luis Gonçalves | 12 Aug 2011 18:27
Picon
Favicon

RE: Ghostscript Configuration

xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

There the default size is A4 instead o Letter. Both options give the same result (white bar…)

 

From: Karl Koeller [mailto:karlkoeller <at> googlemail.com]
Sent: sexta-feira, 12 de Agosto de 2011 17:06
To: winedt+list <at> wsg.net
Subject: Re: [WinEdt] Ghostscript Configuration

 

I think in Options -> Execution Modes -> Console Applications, you have to set 'Letter' under 'Paper size and orientation' for dvi2ps tool

Il 12/08/2011 17.33, Luis Gonçalves ha scritto:

Dear All               

 

      I am using the prosper package. When I do dvi->ps->pdf the pdf file appears with a white bar  at the right of the slides. I had this problem once in another computer and as I remember It was solved with a ghostscript configuration (in “Execution Modes”). But I am open to another solutions. The ps2pdf is already configured to A4.

 

Thanks

 

Luis Gonçalves

 

sab | 12 Aug 2011 22:52
Picon
Favicon

Re: PDFTeXify failed

Ali Mehrizi <mehrizi <at> gmail.com> writes:

> 
> One error (actually three) you have is with BiBTeX. Did you use 
\bibliography (or the like) without actually citing any references (no \cite)? 
If not, it's also possible that your aux files are old. Try deleting them. 
Hopefully this will help.AliOn Tue, Mar 16, 2010 at 2:58 PM, Karl Koeller 
<karlkoeller <at> googlemail.com> wrote:
> 
> Il 16/03/2010 19.42, mehdi.adda ha scritto:
> I have installed both winedt 5.5 (evaluation copie) and winedt 6.
> While with winedt 5.5, all is working fine (able to generate PDFs),
> winedt 6 is failing with the following error :
>     Command Line:   bibtex.exe "_cv_v02"
>     Startup Folder: E:\E\home\data\CV
>     This is BibTeX, Version 0.99c (MiKTeX 2.7)
>     The top-level auxiliary file: _cv_v02.aux
>     I found no \citation commands---while reading file _cv_v02.aux
>     I found no \bibdata command---while reading file _cv_v02.aux
>     I found no \bibstyle command---while reading file _cv_v02.aux
>     (There were 3 error messages)
>     Command Line:   texify.exe --pdf --tex-option=--synctex=-1
>     "E:\E\home\data\CV\_cv_v02.tex"
>     Startup Folder: E:\E\home\data\CV
>     pdflatex.exe: Invalid command-line option
>     texify: pdflatex.exe failed for some reason (see log file).
>     PDFTeXify failed to create a pdf file.
>     For possible explanations start the command from the Command Prompt...
> Any idea where it comes from ?  Is it related to the TeX version ?
> M.
> 
> 
> I think MiKTeX 2.7 didn't fully implemented synctex option.
> Try unchecking 'Use --sinctex.............' in Execution Modes -> PDF Viewer
> 
> 
> 
> 

Dear all
i am facing the same problem...pdflatex.exe failed for some reason...moreover 
i can not be able to run through command prompt

Daniele Giorgio Degiorgi | 13 Aug 2011 07:17
Picon

RE: Tabs in Macros in WinEdt 6

Hi Gilbert,

Many thanks for your hints.

The macro did not work because tabs but because dots: I use winedt 5 and 6
in two computers (old and new) and they have different settings: the old
used a comma to represent decimal dot and the new an effective dot. 

In fact setting in tabs.ini

TAB_EXPAND=2
and
TAB_ALLOW_KEYBOARD=1

And changing , in \. In the macro worked.

What I miss now is an option to get the tab displayed as underlined >.

-----Original Message-----
From: Gilbert Ritschard [mailto:Gilbert.Ritschard <at> unige.ch] 
Sent: venerdì, 12. agosto 2011 10:02
To: winedt+list <at> wsg.net
Subject: Re: [WinEdt] Tabs in Macros in WinEdt 6

Hi Daniel,

I use  a macro named tab_to_tex.edt, with the following code (provided 
to me by Alex, if I remember well):

CopyFromClipboard(0);
   // Convert tab to tab&
   LetRegNum(1, 0);
   LetRegNum(2, -3);
   Loop(!|>
     FindInString("%!0", "$[#9]$", 1,2, 1011, %!2+3);>
     IfOK('ReplaceInString("%!0", "$[#9]$& ", %!1, %!2, 1, 0);','Stop;')|);

   // Convert CR to \\CR
   LetRegNum(1, 0);
   LetRegNum(2, -3);
   Loop(!|>
     FindInString("%!0", "$[#13]$", 1,2, 1011, %!2+3);>
     IfOK('ReplaceInString("%!0", "\\\\$[#13]$", %!1, %!2, 1, 
0);','Stop;')|);

   InsText("%!0"); // Insert with no wrapping

End;

The macro is assigned to a menu item (I have it in a "my_tools" menu, 
but you can just add it for instance to "Tools")

   ITEM="Paste_tab_to_TeX"
     CAPTION="Paste tab to TeX"
     MACRO="Exe('%B\Contrib\My\tab_to_tex.edt');"    // adapt the path
     SHORTCUT="49240::Ctrl+Alt+X"

Usage: In Excel I just copy the wanted table, and then pressing 
Ctrl+Alt+X in WinEdt I get the table with tab replaced by &, and end of 
line by \\.

Alternatively, you can also use the Excel add-in: 
http://www.ctan.org/tex-archive/support/excel2latex , with which you get 
in addition the table environment.

Hope this helps.

Gilbert

On 12-Aug-11 9:07, Daniele Giorgio Degiorgi wrote:
>
> Hi,
>
> I have following problem.
>
> I get with cut+Paste a portion of an excel document in Winedt.
>
> Field Separator is a tab and I managed to have it represented with a 
> underlined <.
>
> In a macro file I could  use tabs in SetFindStr and SetReplaceStr.
>
> Running the macro I got a modified text that I could again with 
> cut+paste transfer in an access document.
>
> This was with Winedt 5.
>
> With Winedt 6 the macro does not work anymore.
>
> I tried to change the defaults for tabs but it worked only partial: I 
> got the tabs represented as underlined < in the text file but not in 
> the macro (EDT document).
>
> I tried to change the tabs in the macro with $[#9]$ but after that the 
> macro seems to have no effect. In fact $[#9]$ works with Winedt 5 but 
> seems not to work in Winedt 6.
>
> Any Idea how I can get it to work?
>
> Many thanks in advance,
>
> Daniel
>

--

-- 
Gilbert Ritschard, Department of Economics and
Institute for Demographic and Life Course Studies,
University of Geneva, 40, bd du Pont-d'Arve, CH-1211 Genève 4, Switzerland
http://mephisto.unige.ch


Gmane