On 10/25/2010 07:55 AM, Jurriën Stutterheim wrote:
It turns out the external_templates file was hidden away in LyX.app itself. In
it, it suggests the following:
# Feel free to create your own External Templates, storing them in
# .lyx/external_templates
So I created ~/.lyx/external_templates and added this content:
Template LHS
GuiName "LHS: $$AbsOrRelPathParent$$Basename"
HelpText
Including Literate Haskell
HelpTextEnd
InputFormat lhs
FileFilter "*.lhs"
AutomaticProduction true
Format LHS
Product "\\input{$$AbsOrRelPathMaster$$Basename.tex_t}"
UpdateFormat lhs
UpdateResult "$$AbsPath$$Basename.tex"
ReferencedFile lhs "$$AbsPath$$Basename.tex"
FormatEnd
TemplateEnd
Next, I reconfigured LyX and restarted it.
Unfortunately, it still doesn't show my template.
Have I misplaced the external_templates file?
The location is wrong for Mac. I think it's something like ~/Application
Support/LyX 1.6/external_templates. If you find your lyxrc.defaults
file, then that is the right directory.
rh