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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
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