Hello, It's been a long time since I've been able to contribute anything to LyX, though I still scan through the mailing lists. I only get to use it once in a blue moon - my project dictates M$ Office for everything. However, I've been able to figure out how to force Word to behave a bit more like LyX :-)
Attached are some patches to update LyX's AASTeX support to AASTeX-5.2. There are separate patches to aastex.layout and to Extended.lyx - both are against lyx-1.3.5; please don't beat me up. I've been tracking some of the doc discussions. Because real life has more than caught up with me, my name should be removed from all the docs where I am listed as maintainer ([EMAIL PROTECTED]). My ability to do anything isn't likely to improve any time soon. Sorry guys. Mike P.S. In the 2nd to last section of Extended (7.6 Non-standard Paragraph Shapes), please put a page break immediately before the section title, so that the funky paragraph is guaranteed to be on one page, not split over two like it is now. Thanks. Mike Ressler [EMAIL PROTECTED]
*** /usr/share/lyx/layouts/aastex.layout 2004-11-16 00:43:27.000000000 -0800 --- aastex.layout 2004-05-06 23:40:56.000000000 -0700 *************** *** 27,32 **** --- 27,33 ---- # example files are available. # Version 1.1 7/25/99 - Changed \url to take advantage of new layout option. # Version 1.2 4/18/02 - Updated for natbib in 1.2.0 + # Version 1.3 5/7/04 - Updated for AASTeX 5.2 # General textclass parameters Columns 1 *************** *** 117,122 **** --- 118,129 ---- End Style NoteToEditor End + Style Facility + End + Style Objectname + End + Style Dataset + End # OK, now we have a more or less consistent Ordering. Now fill the # definitions. *************** *** 520,526 **** Margin First_Dynamic LatexType Command LatexName figcaption - LatexParam [FileName] LabelSep xx ParSkip 0.4 TopSep 0.5 --- 527,532 ---- *************** *** 528,531 **** --- 534,619 ---- AlignPossible Block, Left LabelType Static LabelString "Fig. --- " + OptionalArgs 1 + End + + # Facility style definition + Style Facility + LeftMargin MMM + Margin Dynamic + LatexType Command + InTitle 0 + LatexName facility + ParSkip 0.4 + BottomSep 0.4 + Align Block + AlignPossible Block, Left, Right, Center + LabelType Static + LabelSep M + LabelString "Facility:" + Font + Family Roman + Shape Up + Size Normal + EndFont + LabelFont + Family Roman + Shape Italic + Size Normal + EndFont + End + + # Objectname style definition + Style Objectname + LeftMargin MMM + Margin Dynamic + LatexType Command + InTitle 0 + LatexName objectname + ParSkip 0.4 + BottomSep 0.4 + Align Block + AlignPossible Block, Left, Right, Center + LabelType Static + LabelSep M + LabelString "Obj:" + OptionalArgs 1 + Font + Family Roman + Shape Up + Size Normal + EndFont + LabelFont + Family Roman + Shape Italic + Size Normal + EndFont End + + # Dataset style definition + Style Dataset + LeftMargin MMM + Margin Dynamic + LatexType Command + InTitle 0 + LatexName dataset + ParSkip 0.4 + BottomSep 0.4 + Align Block + AlignPossible Block, Left, Right, Center + LabelType Static + LabelSep M + LabelString "Dataset:" + OptionalArgs 1 + Font + Family Roman + Shape Up + Size Normal + EndFont + LabelFont + Family Roman + Shape Italic + Size Normal + EndFont + End +
*** /usr/share/lyx/doc/Extended.lyx 2004-11-16 00:43:21.000000000 -0800 --- Extended.lyx 2005-02-03 16:12:18.805945592 -0800 *************** *** 5059,5072 **** publish: the Astrophysical Journal (including the Letters and Supplement), the Astronomical Journal, and the Publications of the Astronomical Society of the Pacific. ! LyX requires version 5.0 (or higher) of these macros. Versions prior to 5.0 are intended for use with LaTeX2.09 and are fundamentally incompatible with LyX. ! The AASTeX package may be downloaded from the AAS's ftp site \layout Standard \added_space_top medskip \added_space_bottom medskip \align center ! \begin_inset LatexCommand \url{ftp://ftp.aas.org/pubs} \end_inset --- 5059,5075 ---- publish: the Astrophysical Journal (including the Letters and Supplement), the Astronomical Journal, and the Publications of the Astronomical Society of the Pacific. ! LyX has proven to be an excellent tool for generating these documents, ! especially given its equation, citation, and figure handling capabilities. ! LyX requires version 5.0 (or higher) of these macros; preferably 5.2, which ! is the version described here, or higher. Versions prior to 5.0 are intended for use with LaTeX2.09 and are fundamentally incompatible with LyX. ! The AASTeX package may be downloaded from the AASTeX Web site \layout Standard \added_space_top medskip \added_space_bottom medskip \align center ! \begin_inset LatexCommand \url{http://www.journals.uchicago.edu/AAS/AASTeX} \end_inset *************** *** 5121,5127 **** marked as such. Such commands are referred to as ERT, or Evil Red Text. I tried to minimize the amount of ERT needed in an AASTeX document, but ! there is still more required than any of us would like. \layout Subsection Finishing Your Paper --- 5124,5130 ---- marked as such. Such commands are referred to as ERT, or Evil Red Text. I tried to minimize the amount of ERT needed in an AASTeX document, but ! there is still a bit more required than any of us would like. \layout Subsection Finishing Your Paper *************** *** 5225,5266 **** .tex \family default file). - \layout Enumerate - - search for any - \family typewriter - - \backslash - figcaption - \family default - commands and replace - \begin_inset Quotes eld - \end_inset - - - \family typewriter - FileName - \family default - - \begin_inset Quotes erd - \end_inset - - with the correct, real file name. - \layout Enumerate - - alter any - \family typewriter - - \backslash - cite - \family default - commands, if necessary (see section\SpecialChar ~ - - \begin_inset LatexCommand \ref{cite} - - \end_inset - - below). \end_deeper \layout Enumerate --- 5228,5233 ---- *************** *** 5372,5484 **** \backslash paragraph \family default ! (2.7), \family typewriter \backslash begin{displaymath} \family default ! (2.11), \family typewriter \backslash begin{equation} \family default ! (2.11), \family typewriter \backslash begin{eqnarray} \family default ! (2.11), \family typewriter \backslash begin{mathletters} \family default ! (2.11), \family typewriter \backslash begin{thebibliography} \family default ! (2.12.1), \family typewriter \backslash bibitem \family default ! (2.12.2), \family typewriter ! \backslash begin{table} \family default ! (2.14.4), \family typewriter \backslash begin{tabular} \family default ! (2.14.4), \family typewriter \backslash caption \family default ! (2.14.4), \family typewriter \backslash label \family default ! (2.14.4, amongst other places), \family typewriter \backslash tablerefs \family default ! (2.14.5), \family typewriter \backslash tablecomments \family default ! (2.14.5), \family typewriter \backslash url \family default ! (2.15.4), \family typewriter \backslash end{document} \family default ! (2.16). \layout Standard The following style options also work correctly: \family typewriter preprint \family default ! , \family typewriter preprint2 \family default ! , \family typewriter eqsecnum \family default ! , \family typewriter flushrt \family default ! (3, 3.1, 3.2). ! Simply put them in \family sans ! Extra Options \family default box in \family sans --- 5339,5462 ---- \backslash paragraph \family default ! (2.7), ! \family typewriter ! ! \backslash ! facility ! \family default ! (2.10), \family typewriter \backslash begin{displaymath} \family default ! (2.12), \family typewriter \backslash begin{equation} \family default ! (2.12), \family typewriter \backslash begin{eqnarray} \family default ! (2.12), \family typewriter \backslash begin{mathletters} \family default ! (2.12), \family typewriter \backslash begin{thebibliography} \family default ! (2.13.1), \family typewriter \backslash bibitem \family default ! (2.13.2), all the cite commands and their variations (2.13.2), the generic ! graphicx figure commands (2.14.1), \family typewriter ! \backslash begin{table} \family default ! (2.15.4), \family typewriter \backslash begin{tabular} \family default ! (2.15.4), \family typewriter \backslash caption \family default ! (2.15.4), \family typewriter \backslash label \family default ! (2.15.4, amongst other places), \family typewriter \backslash tablerefs \family default ! (2.15.5), \family typewriter \backslash tablecomments \family default ! (2.15.5), \family typewriter \backslash url \family default ! (2.17.4), \family typewriter \backslash end{document} \family default ! (2.18). \layout Standard The following style options also work correctly: \family typewriter + longabstract + \family default + (2.4), + \family typewriter preprint \family default ! (3.2.1), \family typewriter preprint2 \family default ! (3.2.2), \family typewriter eqsecnum \family default ! (3.3), \family typewriter flushrt \family default ! (3.4). ! Simply put them in the \family sans ! Options \family default box in \family sans *************** *** 5648,5654 **** \backslash appendix \family default ! (2.10) -- will have extra {} after it. This should not cause an error. \layout Itemize --- 5626,5632 ---- \backslash appendix \family default ! (2.11) -- will have extra {} after it. This should not cause an error. \layout Itemize *************** *** 5658,5665 **** \backslash figcaption \family default ! (2.13.2) -- you will have to edit the optional argument by hand in the final ! LaTeX file. \layout Subsubsection Things not implemented, use ERT --- 5636,5694 ---- \backslash figcaption \family default ! (2.14.2) -- you can insert an optional filename argument by placing the cursor ! at the beginning of the text and selecting ! \family sans ! Insert\SpecialChar \menuseparator ! Short Title ! \family default ! . ! ! \begin_inset Quotes eld ! \end_inset ! ! Short Title ! \begin_inset Quotes erd ! \end_inset ! ! inserts an optional argument of the type needed by ! \family typewriter ! ! \backslash ! figcaption ! \family default ! . ! Hopefully it will be renamed someday. ! \layout Itemize ! ! ! \family typewriter ! ! \backslash ! objectname ! \family default ! (2.17.1) -- same as ! \family typewriter ! ! \backslash ! figcaption ! \family default ! for the catalog ID optional parameter ! \layout Itemize ! ! ! \family typewriter ! ! \backslash ! dataset ! \family default ! (2.17.1) -- same as ! \family typewriter ! ! \backslash ! figcaption ! \family default ! for the catalog ID optional parameter \layout Subsubsection Things not implemented, use ERT *************** *** 5696,5756 **** \backslash eqnum \family default - (2.11), - \family typewriter - - \backslash - setcounter{equation} - \family default - (2.11), - \family typewriter - - \backslash - citet - \family default (2.12), \family typewriter \backslash ! citep \family default ! (2.12), Journal name abbreviations (2.12.4), \family typewriter \backslash figurenum \family default ! (2.13.1), \family typewriter \backslash epsscale \family default ! (2.13.1), \family typewriter \backslash plotone \family default ! (2.13.1), \family typewriter \backslash plottwo \family default ! (2.13.1), \family typewriter \backslash tablenum \family default ! (2.14.4), \family typewriter \backslash tableline \family default ! (2.14.4, insert it as the first element in the lefthand cell after where you want it. Don't use any of LyX's rules in the table), \family typewriter --- 5725,5773 ---- \backslash eqnum \family default (2.12), \family typewriter \backslash ! setcounter{equation} \family default ! (2.12), Journal name abbreviations (2.13.4), \family typewriter \backslash figurenum \family default ! (2.14.1), \family typewriter \backslash epsscale \family default ! (2.14.1), \family typewriter \backslash plotone \family default ! (2.14.1), \family typewriter \backslash plottwo \family default ! (2.14.1), \family typewriter \backslash tablenum \family default ! (2.15.4), \family typewriter \backslash tableline \family default ! (2.15.4, insert it as the first element in the lefthand cell after where you want it. Don't use any of LyX's rules in the table), \family typewriter *************** *** 5758,5776 **** \backslash tablenotemark \family default ! (2.14.5), \family typewriter \backslash tablenotetext \family default ! (2.14.5), most everything in Misc (2.15, except \family typewriter \backslash url \family default ! and \family typewriter \backslash --- 5775,5805 ---- \backslash tablenotemark \family default ! (2.15.5), \family typewriter \backslash tablenotetext \family default ! (2.15.5), much of Misc (2.17, except \family typewriter \backslash + objectname + \family default + , + \family typewriter + + \backslash + dataset + \family default + , + \family typewriter + + \backslash url \family default ! , and \family typewriter \backslash *************** *** 5821,5828 **** \SpecialChar \ldots{} at least in any meaningful sort of way, so I suggest ignoring them. ! They are the references environment (2.12.3), and the deluxetable environment ! (2.14). If you really, really need to use deluxetable, I suggest editing it in a separate file with a text editor, then using \family sans --- 5850,5857 ---- \SpecialChar \ldots{} at least in any meaningful sort of way, so I suggest ignoring them. ! They are the references environment (2.13.3), and the deluxetable environment ! (2.15). If you really, really need to use deluxetable, I suggest editing it in a separate file with a text editor, then using \family sans *************** *** 5874,5880 **** Rerun \family sans ! Options\SpecialChar \menuseparator Reconfigure \family default in LyX, then restart LyX. --- 5903,5909 ---- Rerun \family sans ! Edit\SpecialChar \menuseparator Reconfigure \family default in LyX, then restart LyX. *************** *** 5942,5949 **** \layout Standard ! A few things: 1) I have noticed some funny spacing in the reference entries ! in the text. When you enter the bibliography item data, make sure their is \emph on no --- 5971,5978 ---- \layout Standard ! A couple of things: 1) I have noticed some funny spacing in the reference ! entries in the text. When you enter the bibliography item data, make sure their is \emph on no *************** *** 5963,6039 **** Ressler (1992) \family default . ! 2) I am really unhappy that I can't make ! \family typewriter ! ! \backslash ! citet ! \family default ! and ! \family typewriter ! ! \backslash ! citep ! \family default ! more automatic, but that would require changes to the LyX source code. ! For now you can do one of two things: a) enter all your citations using ! the built-in ! \family sans ! Insert\SpecialChar \menuseparator ! Citation Reference ! \family default ! mechanism; at least you can take advantage of the automatic insertions. ! Then edit the exported LaTeX file by hand changing the ! \family typewriter ! ! \backslash ! cite ! \family default ! entries to the appropriate ! \family typewriter ! ! \backslash ! citet ! \family default ! or ! \family typewriter ! ! \backslash ! citep ! \family default ! commands before you submit it ( ! \family typewriter ! ! \backslash ! cite ! \family default ! is currently equivalent to ! \family typewriter ! ! \backslash ! citet ! \family default ! , so you wouldn't necessarily have to change those). ! Or b) you can simply enter all your citations as ERT using the same key ! for the argument that you used in the bibliography dialog, ! \emph on ! e.g. ! ! \emph default ! ! \family typewriter ! ! \backslash ! citet{key} ! \family default ! . ! Neither choice is pleasant, but until LyX's citation mechanism understands ! ! \family typewriter ! natbib ! \family default ! , we'll have to put up with it. ! 3) Entering the references at all is not obvious. The easiest thing is to start typing your first reference at the end of the document, then mark it as type \family sans --- 5992,5998 ---- Ressler (1992) \family default . ! 2) Entering the references at all is not obvious. The easiest thing is to start typing your first reference at the end of the document, then mark it as type \family sans *************** *** 6049,6091 **** Including EPS files \layout Standard ! With all due respect to Chris Biemesderfer and the others who have helped ! to write the AASTeX package, the figure handling mechanism smells really ! foul. ! You can insert the \family typewriter \backslash plotone \family default ! , etc. ! \begin_inset ERT ! status Inlined ! ! \layout Standard \backslash ! ! \end_inset ! ! commands as ERT into a Figure Float box, but I never have much luck getting ! the layout right. ! My advice would be to avoid all EPS inclusions in the manuscript you submit ! to the journal, but then use the standard LyX EPS file inclusion mechanism ! when you want to make your nicer looking preprints. ! LyX will insert a \family typewriter \backslash ! usepackage{graphics} \family default command into the LaTeX preamble and handle the figures in the standard ! LaTeX2e way. ! Anyone who attempts to print your AASTeX 5.0 manuscript must have a LaTeX2e ! installation anyway, so why not take advantage of the infinitely better ! graphics handling mechanism? If they complain about LaTeX2e or the graphics ! package, point out that it appears in the second edition of Lamport (1994), ! so it was time to upgrade many years ago. \layout Subsubsection Things I could have done, but didn't --- 6008,6048 ---- Including EPS files \layout Standard ! Even though AASTeX provides its own figure commands ( \family typewriter \backslash plotone \family default ! , for example), I much prefer LaTeX's standard figure commands (with the ! default graphicx). ! You can insert the ! \family typewriter \backslash ! plotone ! \family default ! , etc.\SpecialChar ~ ! commands as ERT into a Figure Float box if you desire, but I never ! have much luck getting the layout right. ! With the standard graphics, LyX will insert a \family typewriter \backslash ! usepackage{graphicx} \family default command into the LaTeX preamble and handle the figures in the standard ! LaTeX2e way, interspersing the figures in the text. ! I believe ApJ accepts figures exactly this way now; AJ might still use ! the ! \begin_inset Quotes eld ! \end_inset ! ! stack everything at the end ! \begin_inset Quotes erd ! \end_inset ! ! technique. \layout Subsubsection Things I could have done, but didn't *************** *** 6106,6148 **** styles. Since I assume you will spend most of your time in the plain manuscript mode anyway, I decided not to chew up more disk space with this. ! If you feel strongly that I should make such layouts, I will adhere to ! the spirit of the rules laid out by the Mudgeeraba Creek Emu-Riding and ! Boomerang-Throwing Association: ! \layout Quotation ! ! ! \begin_inset Quotes eld ! \end_inset ! ! Decisions of the judges will be final unless shouted down by a really overwhelmi ! ng majority of the crowd present. ! Abusive and obscene language may not be used by contestants when addressing ! members of the judging panel, or, conversely, by members of the judging ! panel when addressing contestants (unless struck by a boomerang). ! \begin_inset Quotes erd ! \end_inset ! ! \layout Subsection Final Caveat \layout Standard ! To mangle the infamous quote by Donald Knuth about a computer algorithm, ! ! \begin_inset Quotes eld ! \end_inset ! ! I have only proved this to be correct, I have not actually tried it. ! \begin_inset Quotes erd ! \end_inset ! ! I believe following the above procedures will produce an acceptable AASTeX ! document, but as of this update (Jan 25, 2000), I have not yet submitted ! a paper using it. ! Hopefully in the next few months \SpecialChar \ldots{} ! \layout Section ijmpd --- 6063,6081 ---- styles. Since I assume you will spend most of your time in the plain manuscript mode anyway, I decided not to chew up more disk space with this. ! \layout Subsection Final Caveat \layout Standard ! Your mileage may vary. ! I've now had papers published by both ApJ and AJ that have had 98% of the ! effort done in LyX; the last 2% was the LaTeX post-processing and a few ! cleanups. ! I have had no trouble with the submission process, and I'm sure the journals ! were never aware that there might be a difference. ! So, go forth and publish! \layout Section ijmpd