From f2ea692f6ce910c80ab465cb8a7e8eb54476870a Mon Sep 17 00:00:00 2001 From: Amir Karger Date: Wed, 19 Jul 2000 18:49:25 +0000 Subject: [PATCH] Minor updates to revtex4 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@903 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/doc/LaTeXConfig.lyx.in | 20 ++++++++----- lib/layouts/revtex4.layout | 51 +++++++++++++++++++------------ lib/templates/revtex4.lyx | 61 +++++++++++++++++++++++++++----------- 3 files changed, 88 insertions(+), 44 deletions(-) diff --git a/lib/doc/LaTeXConfig.lyx.in b/lib/doc/LaTeXConfig.lyx.in index c38c76ef29..445b090d95 100644 --- a/lib/doc/LaTeXConfig.lyx.in +++ b/lib/doc/LaTeXConfig.lyx.in @@ -889,14 +889,18 @@ CTAN: macros/latex209/contrib/revtex/ \layout Description -Notes: The document class +Notes: This class, which used the REVTeX 3 class, has been superseded by + the +\family sans +revtex4 +\family default + class, so you should use that instead. + (Old \family sans revtex \family default - is used to write articles for the publications of the American Physical - Society (APS), American Institute of Physics (AIP), and Optical Society - of America (OSA). - For better results, you should use the file + class documents should be pretty easy to change to the new class.) If you + have to use this class for some reason, you should use the file \family typewriter revtex.cls \family default @@ -918,11 +922,13 @@ CTAN: macros/latex/contrib/supported/revtex4-beta/ \layout Description -Notes: RevTeX 4 is a class used for submitting manuscripts to journals including +Notes: REVTeX 4 is a class used for submitting manuscripts to journals including APS (Physical Review A-E and Letters, Reviews in Modern Physics, Special Topics---Accelerators and Beams), the American Institute of Physics, the Optical Society of America, and the Society for Exploration Geophysicists. - [It is in BETA release as of September, 1999.] + [It is in BETA release as of July, 2000.] Also see +\family typewriter +http://publish.aps.org/revtex4/ \layout Subsection Springer Journal of Geodesy diff --git a/lib/layouts/revtex4.layout b/lib/layouts/revtex4.layout index e848a70b84..8df02183ec 100644 --- a/lib/layouts/revtex4.layout +++ b/lib/layouts/revtex4.layout @@ -6,14 +6,8 @@ # paper "testmath.tex" of January, 1995 # Author : David L. Johnson (AMS) # Marc Mengel (RevTeX) -# Amir Karger (LyX v11.34 style modifications - using changes -# made by Jean-Marc Lasgouttes to amsart.layout) -# Amir Karger (RevTeX 4 beta) 9/1999 - -#TODO: need to make a thanks layout and write note in template not to -#put footnotes in the title matter! -#TODO: examine this issue that it seems you need to put the address last or you -#get errors (seems to happen even when not using lyx...) +# Amir Karger (LyX v11.34 style modifications) +# Amir Karger (RevTeX 4 beta) 9/1999, 7/2000 # General textclass parameters Columns 1 @@ -152,40 +146,40 @@ Style Date EndFont End -# Address style definition -# (This style is same as Afilliation for Phys. Rev.) -Style Address +Style Affiliation Margin Dynamic LatexType Command InTitle 1 - LatexName address + LatexName affiliation ParSkip 0.4 # BottomSep 1.5 # ParSep 1.5 Align Center AlignPossible Block, Left, Right, Center LabelType Static - LabelString "Address: " + LabelString "Affiliation: " LabelFont Shape Italic EndFont End -Style Affiliation - CopyStyle Address - LatexName affiliation - LabelString "Affiliation: " +# Address is exactly the same as Affiliation. We just put this in so +# that reLyX will know what to do with it. +Style Address + CopyStyle Affiliation + LatexName address + LabelString "Address: " End Style Thanks - CopyStyle Address + CopyStyle Affiliation LatexName thanks LabelString "Thanks: " End Style Author_Email - CopyStyle Address + CopyStyle Affiliation LatexName email LabelString "Electronic Address: " @@ -215,6 +209,25 @@ Style Abstract EndFont End +Style Acknowledgments + LatexType Environment + LatexName acknowledgments + ParIndent MM + ParSkip 0.4 + Align Block + AlignPossible Block, Left, Right, Center + + # label definition + LabelType Centered_Top_Environment + LabelString acknowledgments + LabelBottomSep 0.5 + LabelFont + Series Medium + Shape Smallcaps + Size Large + EndFont +End + Style PACS Margin Dynamic LatexType Command diff --git a/lib/templates/revtex4.lyx b/lib/templates/revtex4.lyx index c0b5915685..060f810684 100644 --- a/lib/templates/revtex4.lyx +++ b/lib/templates/revtex4.lyx @@ -1,8 +1,7 @@ -#This file was created by Thu Sep 23 10:54:03 1999 -#LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team -\lyxformat 2.15 +#LyX 1.1 created this file. For more info see http://www.lyx.org/ +\lyxformat 2.16 \textclass revtex4 -\options aps,manuscript +\options aps,preprint \layout Preprint @@ -30,11 +29,11 @@ http://bar.com/~foo Thanks to you, Mrs. Robinson! \begin_inset Info Use Thanks layout instead of inserting footnotes. -Footnotes in the title will do weird things in RevTeX 4! +Footnotes in the title will do weird things in REVTeX 4! \end_inset -\layout Address +\layout Affiliation Address for author 1 \layout Author @@ -43,7 +42,7 @@ Author2 \layout Author Email bar@foo.edu -\layout Address +\layout Affiliation Address for author 2 \layout Abstract @@ -62,7 +61,7 @@ Insert your abstract here. introduction \layout Standard -By the way, any of the style options, like +Any of the style options, like \family typewriter prl \family default @@ -72,14 +71,12 @@ preprint \family default should go in the \family sans -Extra -\protected_separator +Extra\SpecialChar ~ Options \family default field in the \family sans -Document -\protected_separator +Document\SpecialChar ~ Layout \family default popup (accessed from the @@ -87,7 +84,7 @@ Layout Layout \family default menu). - See the RevTeX 4 manual for style options, special macros, and the like. + See the REVTeX 4 manual for style options, special macros, and the like. \layout Section methods @@ -111,28 +108,56 @@ openone{} \begin_inset Formula \( \sqrt{\overstar {a}}>b \) \end_inset -, for example, which uses the RevTeX +, for example, which uses the REVTeX \family typewriter \backslash -overcirc +overstar \family default command. \layout Standard You can do a bibliography by hand, as shown below, but it may be easier - to erase that and use BibTeX. - If you use BibTeX, use the RevTeX bibliography style file, + to erase that and use BibTeX---in fact, APS encourages authors to use BibTeX. + If you do use BibTeX, use the REVTeX bibliography style file, \family typewriter revtex.bst \family default -. + (i.e., just put +\begin_inset Quotes eld +\end_inset + +revtex +\begin_inset Quotes erd +\end_inset + + in the +\begin_inset Quotes eld +\end_inset + +style +\begin_inset Quotes erd +\end_inset + + box in the +\family sans +Insert\SpecialChar \menuseparator +Lists\SpecialChar ~ +&\SpecialChar ~ +TOC\SpecialChar \menuseparator +BibTeX\SpecialChar ~ +Reference +\family default + popup). With either method, you can cite references with the LyX citation commands \begin_inset LatexCommand \cite{mycitation} \end_inset . +\layout Acknowledgments + +Thank you so much! \layout Bibliography \bibitem {mycitation} -- 2.39.2