In the world of suits and skirts (like a law firm) the word "macro" means to
type in "npc" and you get a half page of text and fancy formatting for a
corporation to sign a document before a notary public. In LaTeX, this is done
with the \input command. If things are working OK, you type "\input{npc}" and
LaTeX will go grab file npc.tex and you can sign the papers.
Of course, suits and skirts don't use LaTeX, but they could use LyX. So I'm
trying to use the \input command with ERT in LyX. The \input command is not
well documented in the LyX if mentioned at all. But I have been able to get
it work fine, except for one problem.
I'm able to use \imput in LyX to grab npc.tex, but only if the target file is
in the same directory as the file LyX is entertaining, or if I supply in ERT
the complete path to the target (absolute or relative). Otherwise, my
installation does't know how to hunt, and I get something like this:
LaTeX Error: File `npc.tex' not found.
\input{npc}
^^M
***
(cannot \read from terminal in nonstop modes)
I've read you can set up LaTeX to search a defined path after the \input
command is used. I'm using LyX 1.2.3 (working great) with typical settings on
RedHat 7.3.
My questions: where should I store my "macros" and how can I configue LyX (or
LaTeX) to make it hunt for them?
Hank McFadyen -- Dallas, TX