Integrating LaTeX into UltraEdit

Integrating LaTeX into UltraEdit

1
NewbieNewbie
1

    May 23, 2005#1

    A guide on how to integrate LaTeX into UltraEdit is available here: http://thorchristian.net/latex/

    Comments, suggestions and remarks are appreciated.


    Regards,
    Thor Christian

    8
    NewbieNewbie
    8

      Jun 06, 2005#2

      cool ! this is a good oportunity to use LaTeX.
      Already tested but never adopted, this is time now. Thank you.

      A tag-list file would be great now... :)

      1
      NewbieNewbie
      1

        Oct 18, 2006#3

        I like your Syntax Highlighting modification! The one from uedit was a bit... useless ;)

        6

          Mar 04, 2007#4

          Lovely! Just what I was after. They can keep TeXCenter now...

          1
          NewbieNewbie
          1

            Mar 07, 2007#5

            I am trying to get the autocomplete function to work with LaTeX. I am using UEdit v13.

            I copied the contents of the syntax highlighting file to the wordfile.txt file.

            When I type "\", the list box appears with the list of the commands. I can scroll down the list and see all the commands. I would like to type "\begin". After I type "\b", I would expect it to filter the list of commands that start with "\b". But nothing appears in the box.

            I am able to get it to work in other languages e.g. C. Am I doing something wrong?

            Thanks

            5
            NewbieNewbie
            5

              Jul 20, 2007#6

              hi,
              i just added latex using your instructions - they work great! one strange thing that happened is that now my 'spell as you type' function does not work any more - it works for .txt files but not for .tex files.
              anybody an idea why?
              thanks
              m

              6,675585
              Grand MasterGrand Master
              6,675585

                Jul 20, 2007#7

                I guess, EnableSpellasYouType is missing on the language definition line for TEX files. Open your wordfile and insert this case sensitive keyword immediately before File Extensions = TEX.

                See in help of UltraEdit the pages
                Spell Checker - Miscellaneous (Configuration - Spell Checker)
                and
                Syntax Highlighting - Syntax Highlighting (Configuration - Editor Display)
                Best regards from an UC/UE/UES for Windows user from Austria

                5
                NewbieNewbie
                5

                  Jul 25, 2007#8

                  thanks! that worked :-)
                  finally tex'ing in uedit - YEAH!
                  greets to AUT
                  s

                  9

                    Oct 02, 2007#9

                    In my installation the keywords aren't highlighted properly: they are only highligthed when they are followed by a space or new line.
                    \begin : highlighted
                    \begin{document}: not highlighted

                    What did I do wrong?

                    Mofi answered: ArnyEinstein, please read my second post at the ultimate test for invalid words macro and you will understand why this happens and what you can do.

                    I solved the issue: my /Delimiters were wrong: Instead of

                    /Delimiters = {}[]*\~,.+=-#|$@

                    I had something completely different without the {} (no idea why I had this wrong...)

                    Arny

                    2
                    NewbieNewbie
                    2

                      Feb 20, 2009#10

                      Hey,
                      I got a little problem with the auto-complete function in UEdit with Latex. I modified the Latex language section in the wordfile a bit (see here: http://mrmz.mz.ohost.de/Latex-Wordfile.txt) and then I recognized, that the auto-complete function won't work together with correct syntax highlighting. When in the Delimiter-line the backslash "\" is given it causes the correct syntax highlighting but the auto-complete doesn't work. Otherwise if I delete the backslash within delimiters, auto-complete works fine, but syntax highlighting doesn't work if the highlighted word follows another sign, e.g.

                      Code: Select all

                      $\beta\ind{Ob} = \frac{B}{G} =\frac{t}{f\ind{Ob}}$.
                      will highlight beta and frac if "\" is a delimiter but the same thing without "\"-delimiter only highlights frac.

                      Has anyone an idea how to solve this problem in the way that both fucntions will work correct together?

                      6,675585
                      Grand MasterGrand Master
                      6,675585

                        Feb 21, 2009#11

                        I don't have any knowledge about LaTeX, but I looked on your wordfile and ran my Syntax highlighting/wordfile sorting macro validation tools on that file. I have attached the resulting wordfile to this post.

                        You can see that I removed from the first line " Escape Char = \" which I think is useless because of Noquote. In the list of delimiters I removed the character @ and inserted a tab. There was no problem with the macros SortLanguage and TestForDuplicate. But the macro TestForInvalid returned following:

                        Code: Select all

                        \+                      <- contains the delimiter:  +
                        \,                      <- contains the delimiter:  ,
                        \-                      <- contains the delimiter:  -
                        \.                      <- contains the delimiter:  .
                        \=                      <- contains the delimiter:  =
                        \Re\Roman               <- contains the delimiter:  \
                        \chapter*               <- contains the delimiter:  *
                        \circle*                <- contains the delimiter:  *
                        \diff{}{}               <- contains the delimiters: { }
                        \emph{}                 <- contains the delimiters: { }
                        \frac{}{}               <- contains the delimiters: { }
                        \hspace*                <- contains the delimiter:  *
                        \label{}                <- contains the delimiters: { }
                        \newcommand*            <- contains the delimiter:  *
                        \nfrac{}{}              <- contains the delimiters: { }
                        \part*                  <- contains the delimiter:  *
                        \pdiff{}{}              <- contains the delimiters: { }
                        \ref{}                  <- contains the delimiters: { }
                        \vspace*                <- contains the delimiter:  *
                        \begin{eqnarray}        <- contains the delimiters: { }
                        \begin{figure}          <- contains the delimiters: { }
                        \begin{tabbing}         <- contains the delimiters: { }
                        \begin{tabular}         <- contains the delimiters: { }
                        \begin{}                <- contains the delimiters: { }
                        \end{eqnarray}          <- contains the delimiters: { }
                        \end{figure}            <- contains the delimiters: { }
                        \end{tabbing}           <- contains the delimiters: { }
                        \end{tabular}           <- contains the delimiters: { }
                        \end{}                  <- contains the delimiters: { }
                        \section*               <- contains the delimiter:  *
                        \subsection*            <- contains the delimiter:  *
                        \subsubsection*         <- contains the delimiter:  *
                        \CheckCommand*          <- contains the delimiter:  *
                        \DeclareOption*         <- contains the delimiter:  *
                        \DeclareRobustCommand*  <- contains the delimiter:  *
                        \enlargethispage*       <- contains the delimiter:  *
                        \includegraphics*       <- contains the delimiter:  *
                        \includegraphics[]{}    <- contains the delimiters: [ ] { }
                        \renewcommand*          <- contains the delimiter:  *
                        \renewenvironment*      <- contains the delimiter:  *
                        \resizebox*             <- contains the delimiter:  *
                        \verb*                  <- contains the delimiter:  *
                        \left[                  <- contains the delimiter:  [
                        \right]                 <- contains the delimiter:  ]
                        I'm not sure about the first 5 lines because of the special LaTeX handling. But the others are with your list of delimiters definitely incorrect words in the syntax highlighting file. I think the delimiters at the end of these words should be removed from these words. \Re\Roman must be split up into 2 words. And the words with \begin{...} and \end{...} must be eliminated. Then the macros SortLanguage, TestForDuplicate and TestForInvalid should be executed again on the wordfile.

                        I can't help you with your auto-completion problem because I don't have any knowledge about LaTeX, don't have a LaTeX example file and therefore don't know what the auto-completion dialog should show when typing something. However, if the backslash in the delimiters list results in not displaying any word from the wordfile starting with a backslash, I suggest to put all those \words from the wordfile into a text file with one \word per line and alphabetically, case-sensitive sorted. But the backslash must be removed from all words.

                        Then add at Advanced - Configuration - Editor - Word Wrap/Tab Settings to the list of extensions a new list entry with LAT LEX TEX, select that list entry and specify the just created text file with the keywords as auto complete file for all files with extension lat, lex or tex. Definitely not the best solution, but the \keywords are then always available in the auto completion dialog. I have packed the auto complete file generated from the "incorrect" wordfile also to the attached ZIP archive.
                        LaTeX_Files.zip (16.89 KiB)   1292
                        LaTeX wordfile and auto complete file
                        Best regards from an UC/UE/UES for Windows user from Austria

                        2
                        NewbieNewbie
                        2

                          Feb 21, 2009#12

                          yeah thx a lot, the idea with a special auto-complete file was exactly that what I've looked for. Now it works everything!

                          Here some helpful files I made
                          http://mrmz.mz.ohost.de/latex.html