latex-environment

Tripple-wrapping fails: \colorbox → \NewEnviron → \newenvironment fails

Hello! I am trying to wrap an environment created with \NewEnviron (package 'environ') into an old good \newenvironment: \NewEnviron{test}{\colorbox[gray]{0.7}{\BODY}} \newenvironment{wrapper}{\begin{test}}{\end{test}} \begin{wrapper} debug me \end{wrapper} However, this gives me a strange error: LaTeX Error: \begin{test} on in...

Perform separate compilation of Latex documents

When compiling latex documents the compiler emits a lot of "object" files. This clutters the directories I'm working on and it difficults the use of VCS like SVN. When I work with C++ code I have separate directories for the code and the objects, I can run make on the source directory but the .o files go to the build directory. Is there...

latex question (problem)

Hello, My latex file is: \title{\large\textbf{Optimizarea rela\c tiei dintre structur\u a \c si comportament \^in modelarea UML}} \author{ Sorin Oltean \\ \textit{Universitatea Transilvania din Bra\c sov} \\ \small\textit{[email protected], [email protected]} \\ ...

latex bibliography question

Hello, Also in my document i have to specify the References. i'm using: \bibliographystyle{abbrv} \bibliography{main} Where main is the .bib file from the same folder, and contains, for example: @string{jgr = "J.~Geophys.~Res."} @MISC{primes, author = "Charles Louis Xavier Joseph de la Vall{\'e}e Poussin", note = "A strong fo...

how to rename sections in latex

Hello again, How can i give another name to the main sections of a scientific paper in Latex? So instead of 'References' i wanna write a different title, instead of 'Abstract' another, and so on. Regards ...

how to add a jpg image in Latex

Hello, I wanna insert a .jpg image(that is in my current folder, where the .tex file is) after a paragraph. How can i do it in Latex? What should i include / what commands should i use? Thanks ...

"<<" sign in Latex

Hello, I need to add the symbol "<<" in Latex. If i simply write "<<", i get in pdf some strange symbols. What should i put in front of "<<" so that in .pdf i see "<<" ? Thanks ...

Creating an environment in Latex

Hi I'm trying to create an environment in Latex that recreates the effect of the following. \colorbox{bg}{\ttfamily{\color[RGB]{222,222,222} Hello Whats up } } I want to be able to say. \begin{bashcommands} Hello Whats Up \end{bashcommands} ...

Latex for Mac OS X

Does anyone know of a latex distribution/front end they highly recommend for OS X? If the front end had some features you recommend, what are they and why? Thanks! ...

Scalebox environment in LaTeX

Hello, The graphicx package provides a scalebox command. I'd like to encapsulate it in an environment like that: \newenvironment{scaleb}{ \scalebox{0.7}{ } {}} However, the second example below works, but the first one outputs the text without scaling and destroys all my layout. \begin{scaleb}test\end{scaleb} \scalebox{0.7}{test} ...

Latex tag for making a comment appear or disappear in pdf?

Is it possible to tag sections of your .tex file so that you can make text appear or not? I have a long document and would like to be able to comment a certain section in each chapter, and produce two different pdfs, one with the comments, and one without. I read here about the \begin{comment} tag in the verbatim package. Is it possibl...

Latex: access the content of an environment while using \newenvironment

Hey guys, I'm trying to make my own environment with \newenvironment. Is it somehow possible to access the "body" of the environment? For example if the user uses \begin{myenv} i'm the content \end{myenv} i want to analyze the "i'm the content" in the definition of the environment. Thanks in advance, Jan Oliver Oelerich ...