General ⇒ Hiding a new environment
Hiding a new environment
The idea is that I'd like to be able to create the pdf file without the contents of fmeo if the command is present, and include them otherwise. I'd also accept a command that shows the environment when present, and hides them if the command isn't present. Either works.
Any help would be great.
~Jon
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Hiding a new environment
I did the same thing using TeXnicCenter. And if I understand you correctly you could try the following:
Define a new Compiler Profile (Alt+F7) where you insert this in the end:
"\newcommand{\fmeo}{} \input{%Pm}"
Then inside your preamble you could do this:
Code: Select all
\newenvironment{FMEO}
{
\ifthenelse{\isundefined{\fmeo}}
{}
{
%Do what you want here
}
}
{}
Now if you create a similar compiler profile with this at the end:
"\input{%Pm}"
(notice the missing '\newcommand{\fmeo}{}'
it should do the trick.
I hope I could help you here.
Have fun
cherio Woltan