On 16.09.04, Bob Price wrote:
> 1) I am still unsure how to include *LyX* macros into a LyX document.
>
> * I can easily define math-macros in a LyX document. Fantastic
> feature!
>
> * I can Insert->LyX File <file with macros> into a LyX document, but
> then I have
> a *copy* of the macros in the file
>
> * I am not sure how to "reference" a file of common macros
Try Insert>Include File, it works for both, tex and lyx files.
There is a small bug: substituting the macro only works, if the
makro-defining document is open as well. LyX will open the it
automaticall, but only after a translation run, which is too late.
> 2) It would be wonderful to be able to define "text-macros" in addition
> to "math-macros".
Indeed. Consider filing a feature request with bugzilla.
> I am presently writing course materials and would like to define
> standard forms
> for examples that have question and answer parts that include
> formatting
> and animations commands. I can do this manually at present using
> packages like
> hyperref and beamer, but I don't see how to automate it to get a
> consistent style.
Consider creating you own LyX layout file. Drawback: your documents are
no longer able to run on a different LyX installation.
> Here also, I would like to define a consistent style for
> programming languages
> and apply it to all words denoting programming languages.
You could "misuse" a math-macro for this.
math-macro languagenames 1
\textsc{#1}
If this tends to be used quite often, define a keybinding too.
> 4) It might be useful to have indexes for the manuals in addition to
> tables of contents
True.
G�nter
--
G.Milde web.de