mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
4beba4e8f8
The layout now takes care of \begin{article} and \end{article} by using \AtBeginDocument and \AtEndDocument. This cleans up the template a little by removing some ERT. The user no longer needs to read the two notes explaining why the ERT boxes were necessary. The user also does not need to think about why this LaTeX environment exists. |
||
---|---|---|
.. | ||
attic | ||
springer | ||
thesis | ||
aa.lyx | ||
aastex.lyx | ||
ACM-siggraph.lyx | ||
ACM-sigplan.lyx | ||
AEA.lyx | ||
AGU_article.lyx | ||
AGUTeX.lyx | ||
APA6.lyx | ||
APA.lyx | ||
beamer-conference-ornate-20min.lyx | ||
ctex.lyx | ||
de_beamer-conference-ornate-20min.lyx | ||
dinbrief.lyx | ||
DocBook_article.lyx | ||
ectaart.lyx | ||
elsarticle.lyx | ||
es_beamer-conference-ornate-20min.lyx | ||
fr_beamer-conference-ornate-20min.lyx | ||
frletter.lyx | ||
g-brief2.lyx | ||
g-brief-de.lyx | ||
g-brief-en.lyx | ||
hollywood.lyx | ||
IEEEtran-CompSoc.lyx | ||
IEEEtran-Conference.lyx | ||
IEEEtran-Journal.lyx | ||
IEEEtran-TransMag.lyx | ||
IJMPC.lyx | ||
IJMPD.lyx | ||
IOP-article.lyx | ||
JASA.lyx | ||
JSS-article.lyx | ||
kluwer.lyx | ||
koma-letter2.lyx | ||
letter.lyx | ||
lettre.lyx | ||
README.new_templates | ||
revtex4-1.lyx | ||
revtex4.lyx | ||
RJournal.lyx | ||
slides.lyx |
HOW TO CREATE A NEW TEMPLATE ============================ Templates are almost usual LyX file that are saved by LyX itself. The strength is on "almost". LyX stores some properties in a file, for example: \textclass dinbrief \language german \inputencoding default \fontscheme default \epsfig dvips \papersize a4paper \paperfontsize 12 \baselinestretch 1.00 \secnumdepth 3 \tocdepth 3 \paragraph_separation skip \quotes_language german \quotes_times 2 \paperorientation portrait \papercolumns 9 \papersides 1 \paperpagestyle plain Some of these may be very reasonable for a certain template. In the case of a dinbrief-template this might be the papersize, the language and the quotes-settings, since it is a german-only template. But it wouldn't make much sense to set the fontscheme or the inputencoding, since a user might have customized this already like he/she wanted it to be. So please delete all the lines of a new template with your favorite text editor (for example ed, ex or vi) that you don't want to set explicit for this template. LyX will use the user's default-values (defined in lyxrc) if a property isn't defined in the file itself.