On 12/06/2011 09:43 AM, Eric Weir wrote: > On Jul 17, 2011, at 12:52 PM, Liviu Andronic wrote: > >> A template is a means, not an end. As soon as you finish tailoring the >> sketch of a document (using the class that you've chosen) to your >> likes, then you're good to go: start writing and filling it up with >> actual content. When you finish writing the document and you're ready >> to submit it, if you are happy with the looks of the final output and >> anticipate to create such documents later, _then_ you may consider >> carving out of it a template, put it into the LyX templates folder (or >> any other folder, for the matter), and re-use whenever the needs >> arise. > I'd like to followup on this, even though the original thread is dated. I'm > wondering whether templates are even a possible solution for me. > > I compose in Scrivener, then compile to LatTeX and import into LyX. Within > the constraints of the APA and Chicago styles I know what I want documents to > look like. It's pretty barebones: title bold in a font only a little larger > than text, sometimes centered, sometimes at the left margin; headings bold at > the left margin in a font the same size as text; ability to switch between > footnotes and footnotes at the end/endnotes. > > Once I get a document formatted to my satisfaction I'd rather not have to go > through the process all over again with each new version or new paper. Other > than by doing a lot of cutting and pasting, I don't see how a template could > be used with documents imported from other applications and not originally > composed in LyX. > This is correct. Templates are something you start with.
> Getting in a little over my head here, but my naive user's sense is a class > would be required. I imagine it's not so easy to create a new class, even > building on an existing class. I wonder if there is a class out there that > would already provide what I'm looking for. > Classes can be difficult or trivial, and if all you need is what you've said, then it may be pretty trivial. Let's say you're otherwise happy with the article class. Then the simplest thing to do is copy it over to ericscls.cls and make the handful of changes you need to have it the way you want it. Done. For the LyX layout, copy article.layout over to ericscls.layout. There are fancier ways to do the class file, and you could even pass an option for where the section headings are printed. Not much more difficult, but a bit. Richard
