On 6.05.04, Alain DIDIERJEAN wrote: > Questions from a newbie (LyX 1.3.4 user) ... > 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.
The package ifthen is your friend here. See the attached example. G�nter -- G.Milde at web.de
#LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass scrreprt \begin_preamble % Komma als Dezimaltrenner \usepackage{icomma} % f�r aufrechtes kleines \mu (\textmu) \usepackage{textcomp} % Starte Gleichungsnummern f�r jedes Kapitel neu \numberwithin{equation}{chapter} % Bedingte Ausgabe \usepackage{ifthen} \newboolean{main} \setboolean{main}{false} \end_preamble \options notitlepage, smallheadings \language german \inputencoding latin1 \fontscheme ae \graphics default \paperfontsize default \spacing single \papersize a4paper \paperpackage widemarginsa4 \use_geometry 0 \use_amsmath 1 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \leftmargin 2cm \topmargin 1cm \rightmargin 2cm \bottommargin 1cm \secnumdepth 3 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language polish \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle plain \layout Standard Set the condition in the preamble or here as ERT: \begin_inset ERT status Collapsed \layout Standard \layout Standard \backslash setboolean{main}{false} \layout Standard % \backslash setboolean{main}{true} \end_inset \layout Standard This is text that shows in every version \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash ifthenelse{ \backslash boolean{main}}{}{ \end_inset \layout Standard This is text that shows only for \noun on main==true \layout Standard \begin_inset ERT status Collapsed \layout Standard } \end_inset \layout Standard \begin_inset LatexCommand \BibTeX[bibtotoc,ieeetr]{sensor} \end_inset \the_end
