Integrating LaTeX into UltraEdit

Help with setting up and configuring custom user tools in UltraEdit (based on command line input)

Integrating LaTeX into UltraEdit

Postby Lats » Mon May 23, 2005 6:25 am

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
User avatar
Lats
Newbie
 
Posts: 1
Joined: Tue Jul 26, 2005 11:00 pm

Re: Integrating LaTeX into UltraEdit

Postby neekolo » Mon Jun 06, 2005 5:43 am

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... :)
User avatar
neekolo
Newbie
 
Posts: 8
Joined: Mon Feb 14, 2005 12:00 am

Re: Integrating LaTeX into UltraEdit

Postby flurios » Tue Oct 17, 2006 9:09 pm

I like your Syntax Highlighting modification! The one from uedit was a bit... useless ;)
User avatar
flurios
Newbie
 
Posts: 1
Joined: Mon Oct 16, 2006 11:00 pm

Re: Integrating LaTeX into UltraEdit

Postby HisRoyalRedness » Sun Mar 04, 2007 12:23 pm

Lovely! Just what I was after. They can keep TeXCenter now...
User avatar
HisRoyalRedness
Newbie
 
Posts: 6
Joined: Sun Mar 04, 2007 12:00 am

Re: Integrating LaTeX into UltraEdit

Postby mathguy » Wed Mar 07, 2007 6:33 pm

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
User avatar
mathguy
Newbie
 
Posts: 1
Joined: Wed Mar 07, 2007 12:00 am

Re: Integrating LaTeX into UltraEdit

Postby schnudl » Fri Jul 20, 2007 8:54 am

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
User avatar
schnudl
Newbie
 
Posts: 5
Joined: Tue Apr 18, 2006 11:00 pm

Re: Integrating LaTeX into UltraEdit

Postby Mofi » Fri Jul 20, 2007 9:58 am

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)
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4049
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Integrating LaTeX into UltraEdit

Postby schnudl » Wed Jul 25, 2007 5:22 am

thanks! that worked :-)
finally tex'ing in uedit - YEAH!
greets to AUT
s
User avatar
schnudl
Newbie
 
Posts: 5
Joined: Tue Apr 18, 2006 11:00 pm

Re: Integrating LaTeX into UltraEdit

Postby ArnyEinstein » Tue Oct 02, 2007 8:17 am

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
User avatar
ArnyEinstein
Newbie
 
Posts: 9
Joined: Mon May 07, 2007 11:00 pm

Re: Integrating LaTeX into UltraEdit

Postby scobi » Fri Feb 20, 2009 5:56 am

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?
scobi
Newbie
 
Posts: 2
Joined: Fri Feb 20, 2009 5:41 am

Re: Integrating LaTeX into UltraEdit

Postby Mofi » Sat Feb 21, 2009 9:15 am

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.
Attachments
LaTeX_Files.zip
LaTeX wordfile and auto complete file
(16.89 KiB) Downloaded 1130 times
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4049
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Integrating LaTeX into UltraEdit

Postby scobi » Sat Feb 21, 2009 1:33 pm

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
scobi
Newbie
 
Posts: 2
Joined: Fri Feb 20, 2009 5:41 am


Return to Custom User Tools/Tool Configuration