## Environments in TeXStudio

Anonymous
2012-03-12
2012-10-17
• Anonymous - 2012-03-12

This document
\documentclass{article}
\usepackage{amsthm}
\newtheorem{lemma}{Lemma}
\newcommand{\mycommand}{Here is the command}
\begin{document}
\begin{lemma}
Here is the lemma
\end{lemma}
\mycommand
\end{document}

is perfectly compiled but the problem is that TeXStudio says that
\begin{lemma} \end{lemma} are unrecognized commands when I put the pointer on
them and they have an horrible orange background (I know how to disable this
but I don't want to because that feature is useful). The same happens when I
define another environments. I often define a couple of theorem environments.

But the strange thing is that when I define a new command, TeXStudio does
recognize it and the autocompletion feature works with both the new command
and the new theorem environments (when I write \begin{lem a box is shown with
my new environment which is cool).

I'd like that TeXStudio recognize my environments.

• Jan Sundermeyer - 2012-03-13

works in the svn version.
Which version of txs do you use ?

• Anonymous - 2012-03-14

TeXstudio 2.3 for Windows. I'm using Windows XP.

• Anonymous - 2012-03-14

this picture is very ilustrative:

• Anonymous - 2012-03-14

Now it's working very well. It seems that there is a problem with the current
version.

• Anonymous - 2012-03-14

wrong URL :)

• Thiago - 2012-03-30

Hi. I use TeXstudio 2.3 (SVN ??) Using Qt Version 4.7.4, compiled with Qt
4.7.4 R and I also have this problem.

I use lubuntu 11.10. Any idea?
Regards.

• Jan Sundermeyer - 2012-03-31

either you compile the latest txs version out of the subversion repository or
you wait for the next release ...

• Thiago - 2012-03-31

ERROR! The markdown supplied could not be parsed correctly. Did you forget to surround a code snippet with "~~~~"?

Could you, please, send me the newest link to get the source files to compile?
I checked here
[https://sourceforge.net/projects/texstudio/files/texstudio/TeXstudio%20SVN/](
https://sourceforge.net/projects/texstudio/files/texstudio/TeXstudio%20SVN/)

But I don't use mac neither windows and the deb file on the link is for 64bit.
I use 32bit.

Tks for attention.



• Tim Hoffmann - 2012-03-31

it is sufficient to check out the trunk subfolder.

• Jan Sundermeyer - 2012-03-31

to avoid further questions:

make sure following packages are installed:
build-essential
libqt4-devel
libpoppler-qt4-dev
subversion

generate a directory where you want to compile txs.
Open a terminal and change into that directory.
"svn co https://texstudio.svn.sourceforge.net/svnroot/texstudio/trunk ."

"qmake texstudio.pro"

"make -j 4" (for 4 core cpu)

start texstudio by typing "./texstudio"