Alain DIDIERJEAN wrote:
> Questions from a newbie (LyX 1.3.4 user)
> 1) How to incluse Bibliography (from LyX) in TOC ?
> I know, it's been asked recently, but I couldn't make sense of
> the reply.
Hi, Alain.
If you're using BibTeX, then click on the BibTeX inset to pop up the
BibTeX dialog and click on the "Add bibliography to TOC" check
button. This will result in the following change to your latex
document:
\bibliographystyle{plainnat}
-\bibliography{../references}
+\addcontentsline{toc}{section}{\refname}\bibliography{../references}
If, instead, you're writing your Bibliography in the lyx document
itself as a Bibliography environment (as is done by UserGuide.lyx for
example) then just before the start of this environment add the ERT
\addcontentsline{toc}{section}{\refname}
>
> 2) I use the book format to write my courses support. Is there a way
> to
> use some objects like Notes that would contain some ideas,
> exercizes and thinkings that could be printed in professor's
> version and NOT show up in students copies.
This is a concept supported in LyX 1.4. You'll be able to define
'Branches' and to control which ones are printed at any one time.
In your version of LyX you'll have to use ERT. The basic idea is that
you'll need to define a variable 'professor_version' in the preamble
and wrap these snippets with the latex equivalent of
ERT[ if (professor_version) { ]
text goes here as normal
ERT[ } ]
Others may be able to help you more with the exact syntax.
--
Angus