I'm new to LyX. I needed to find an easy way for my boss to be able to edit my reports without the need to learn LaTeX. I found LyX and I think it's the solution.
Even in LyX, often times I need to use Ctrl + L
and add some LaTeX commands.
Is there anyway to hide my LaTeX codes inside a LyX document?
I need to have those commands, however, on the other hand, I don't want them to cause confusion for my boss. I also want those commands to remain untouched at all times.
Thanks very much for your help,
Best Answer
One partial method is using
Close inset
as sugggested in the comments of your question.Here's an ad-hoc add-on: Edit the preferences in your boss' LyX installation to make the closed ERT insets invisible.
In particular, go to
Tools > Preferences > Look & Feel > Colors
and change the color ofLaTeX text
to be the same asbackground
, and do the same forbutton background
(for collapsed inset) and for the border of the closed inset (which I couldn't find fast).This way, the ERT will be invisible, but not locked.
If your boss should happen to click on one of those now invisible fields, her frustration might wreck your code. Not optimal, but at least the code won't show :)