RSS

 
WinEdt Plug-Ins previous Plug-In 

TeXtab  

Description

The macro formats selected lines with respect to & and \\.

There are two ways to format the selected lines:

  1. formatting with blanks leading and trailing & and \\:
       aaaaaaaaaa&bbbbbbbbbb&ccccccc&&\\
       eeee&fffff&gggg&hh&ii&jjjjjjj&kkkkkk\\
    

    will be changed to

       aaaaaaaaaa & bbbbbbbbbb & ccccccc &    & \\
       eeee       & fffff      & gggg    & hh & ii  & jjjjjjj & kkkkkkkk \\
    
  2. formatting without blanks between text and separators:
       aaaaaaaaaa&bbbbbbbbbb&ccccccc&  &\\
       eeee      &fffff     &gggg   &hh&ii &jjjjjjj&kkkkkk\\
    

How do you use the macro:

Select full lines containing lines of a tabular block. Choose in menu Edit one of the menu item Format TeX-Tables with blanks or Format TeX-Tables without blanks (ALT e x or ALT e o).

Installation Instructions

Run the self extracting file textab.exe and extract its content to \Plugins\TeXtab inside the (local) WinEdt folder.

Content of textab.exe:

TeXtab.rmeDocumentation
apl2wr20.exeRuntime Modules of IBM Workstation APL2
install.edtMacro to install the plugin
install.datMenu items installed by install.edt
textfosp.edtPlugin Macro
textfosp.ansApplication which formats text. Called from textfosp.edt

Installation of the Runtime Modules of IBM Workstation APL2:

If you are running IBM Workstation APL2 on your computer you need not to install the Runtime Modules! In this case it is sufficient to download the zip file only. You may need to adjust the folder in textfosp.edt!

Execute the file apl2wr20.exe which installs the Runtime Modules. Install these modules into the target directory ibmapl2w inside the parent folder of the WinEdt folder by choosing this directory during the installation process. The folders ibmapl2w and the WinEdt folder reside in the same folder:

XXXX --+-- ibmapl2w
         |
         +-- WinEdt

If you do not follow this naming convention you have to adjust the macro textfosp.edt accordingly: replace %B\..\ibmapl2w with your choice.

The file apl2wr20.exe may be deleted after the installation. It is not used any more.

Installation of TeXtab as a WinEdt Plugin:

Run Macro Install.edt from WinEdt: Macros: Execute Macro (Crtl F9)

You will see the result of the installation in the menu Edit.

Options

The program textfosp may be used for any columnwise formatting. It is called with parameters

  1. blanks:
    • 0: no blanks
    • 1: leading blank
    • 2: trailing blank
    • 3: leading and trailing blank
  2. column separating strings separated by blanks.

The input "'2 ;' 'C:\temp\test.txt' 'xX'" would format the file C:\temp\test.txt columnwise at ; with a trailing and no leading blank.

Download

textab.exe [3264 KB; including Runtime Modules of IBM Workstation APL2]

textab.zip [14 KB; without Runtime Modules of IBM Workstation APL2]

Plug-In contributed by Dieter Kilsch <kilschfh-bingen.de>

WinEdt Plug-Ins previous Plug-In