mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
New layout for aastex6.cls. Fixes #10027.
Some more work for new and improved styles optional.
This commit is contained in:
parent
f23c40ad68
commit
b4dcad83b2
@ -60,11 +60,12 @@ Sublabel: varying_versions
|
||||
# ========================
|
||||
# Test depending on TeX distribution, package versions or OS
|
||||
|
||||
# document class aastex.cls replaced by aastex6.cls
|
||||
# (in CTAN and TL 2015-update around march 2016)
|
||||
# New layout required, see #10027
|
||||
export/templates/aastex.*
|
||||
export/examples/aas_sample.*
|
||||
# document class aastex.cls replaced by aastex6.cls (v.1 2016/02/16)
|
||||
# in CTAN and TeXLive in march 2016
|
||||
# Template and sample use the new version via aastex6.layout (cf. #10027)
|
||||
# -> fail if aastex6.cls is missing (TeXLive15 original)
|
||||
export/templates/aastex_(dvi|pdf).*
|
||||
export/examples/aas_sample_(dvi|pdf).*
|
||||
|
||||
|
||||
Sublabel: wrong_output
|
||||
|
@ -1966,6 +1966,7 @@ dist_layouts_DATA =\
|
||||
layouts/aapaper.inc \
|
||||
layouts/aapaper.layout \
|
||||
layouts/aastex.layout \
|
||||
layouts/aastex6.layout \
|
||||
layouts/achemso.layout \
|
||||
layouts/acm-sigs.layout \
|
||||
layouts/acm-sigs-alt.layout \
|
||||
|
@ -2291,21 +2291,39 @@ arg "aastex"
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
CTAN: N/A (available from the American Astronomical Society's ftp site
|
||||
CTAN: N/A
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
Notes: Obsoleted by aastex6.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsection
|
||||
aastex6
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
Found:
|
||||
\begin_inset Info
|
||||
type "textclass"
|
||||
arg "aastex"
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
CTAN:
|
||||
\family typewriter
|
||||
ftp.aas.
|
||||
/macros/latex/contrib/aastex
|
||||
\family default
|
||||
org in directory
|
||||
\family typewriter
|
||||
/pub
|
||||
\family default
|
||||
s)
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
Notes: The document class
|
||||
\family sans
|
||||
aastex
|
||||
aastex6
|
||||
\family default
|
||||
can be used to write articles for submission to the American journals
|
||||
\emph on
|
||||
@ -2315,6 +2333,19 @@ Astrophysical Journal, Astronomical Journal
|
||||
\emph on
|
||||
Publications of the Astronomical Society of the Pacific
|
||||
\emph default
|
||||
.
|
||||
Package and documentation are also available from the American Astronomical
|
||||
Society
|
||||
\begin_inset Flex URL
|
||||
status open
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
http://journals.aas.org/authors/aastex/aastex.html
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
.
|
||||
\end_layout
|
||||
|
||||
|
2465
lib/doc/attic/aastex6_sample.lyx
Normal file
2465
lib/doc/attic/aastex6_sample.lyx
Normal file
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,7 @@
|
||||
\begin_header
|
||||
\save_transient_properties true
|
||||
\origin /systemlyxdir/examples/
|
||||
\textclass aastex
|
||||
\textclass aastex6
|
||||
\begin_preamble
|
||||
\newcommand{\vdag}{(v)^\dagger}
|
||||
\newcommand{\myemail}{skywalker@galaxy.far.far.away}
|
||||
@ -70,14 +70,103 @@
|
||||
\papersides 1
|
||||
\paperpagestyle default
|
||||
\tracking_changes false
|
||||
\output_changes false
|
||||
\html_math_output 0
|
||||
\html_css_as_file 0
|
||||
\output_changes false
|
||||
\html_be_strict false
|
||||
\end_header
|
||||
|
||||
\begin_body
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset Note Note
|
||||
status open
|
||||
|
||||
\begin_layout Plain Layout
|
||||
\noindent
|
||||
\align left
|
||||
Sample document for contributions to journals of the American Astronomical
|
||||
Society (AAS).
|
||||
Please consult the
|
||||
\begin_inset CommandInset href
|
||||
LatexCommand href
|
||||
name "AASTeX user guide"
|
||||
target "http://journals.aas.org/authors/aastex/aasguide.html"
|
||||
|
||||
\end_inset
|
||||
|
||||
for details on how to use AASTeX.
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Plain Layout
|
||||
\noindent
|
||||
\align left
|
||||
An up-to-date sample LaTeX article using AASTeX is available under
|
||||
\begin_inset Flex URL
|
||||
status open
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
http://journals.aas.org/authors/aastex/aastex.html#_download
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
.
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset Note Note
|
||||
status open
|
||||
|
||||
\begin_layout Plain Layout
|
||||
\noindent
|
||||
\align left
|
||||
The AASTeX document class uses a different name since version 6.0 (2016/02/16).
|
||||
Depending on the version installed on your system, set the document class
|
||||
to American Astronomical Society (AASTeX v.
|
||||
6) or American Astronomical Society (AASTeX v.
|
||||
5).
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Plain Layout
|
||||
\noindent
|
||||
\align left
|
||||
New features (cf.
|
||||
|
||||
\begin_inset Flex URL
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
http://journals.aas.org/authors/aastex/revisionhistory.html
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
) are only partially supported by LyX (see
|
||||
\begin_inset Flex URL
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
http://www.lyx.org/trac/ticket/10027
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
).
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Title
|
||||
Collapsed Cores in Globular Clusters, Gauge-Boson Couplings, and AAS\SpecialChar TeX
|
||||
Examples
|
||||
@ -794,6 +883,12 @@ status collapsed
|
||||
\end_inset
|
||||
|
||||
.
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Software
|
||||
IRAF, AIPS, Astropy, ...
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Appendix
|
||||
@ -2368,13 +2463,13 @@ tablerefs to append a list of references.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset ERT
|
||||
status collapsed
|
||||
\begin_inset Note Note
|
||||
status open
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
% LyX can load deluxetable files verbatim.
|
||||
To see this in action, uncomment the following
|
||||
LyX can load deluxetable files verbatim.
|
||||
To see this in action, dissolve the following Note and copy the file table.tex
|
||||
from the AASTeX 5.0 distribution into the same directory as this file.
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
@ -2383,75 +2478,10 @@ status collapsed
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset ERT
|
||||
status collapsed
|
||||
\begin_inset Note Note
|
||||
status open
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
% line (delete the
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset Quotes eld
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset ERT
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
%
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset Quotes erd
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset ERT
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
) and copy the file table.tex from the AASTeX 5.0 distribution into
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset ERT
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
% the same directory as this file.
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset ERT
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
%
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset CommandInset include
|
||||
LatexCommand input
|
||||
filename "table"
|
||||
@ -2459,6 +2489,11 @@ filename "table"
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\end_body
|
||||
|
@ -1,7 +1,9 @@
|
||||
#% Do not delete the line below; configure depends on this
|
||||
# \DeclareLaTeXClass[aastex,amssymb.sty,latexsym.sty,natbib.sty,verbatim.sty]{American Astronomical Society (AASTeX)}
|
||||
# \DeclareLaTeXClass[aastex,amssymb.sty,latexsym.sty,natbib.sty,verbatim.sty]{American Astronomical Society (AASTeX v. 5)}
|
||||
# \DeclareCategory{Articles}
|
||||
#
|
||||
# LyX support for the AAS TeX package http://www.ctan.org/pkg/aastex
|
||||
#
|
||||
# Author: Mike Ressler <mike.ressler@alum.mit.edu>
|
||||
# Author: Uwe Stöhr <uwestoehr@web.de>
|
||||
#
|
||||
@ -35,6 +37,10 @@
|
||||
# Version 1.5 26/11/12 - added mandatory argument for \altaffiltext
|
||||
# Version 1.6 23/01/15 - fix for the optional argument of \figcaption
|
||||
|
||||
# Note: aastex.cls was replaced by aastex6.cls (v.1 2016/02/16)
|
||||
# in the CTAN and TeXLive "aastex" package in march 2016.
|
||||
# The new "aastex6.layout" depends on aastex6.cls but inputs this
|
||||
# file for the definitions (cf. LyX ticket #10027)
|
||||
|
||||
Format 60
|
||||
Columns 1
|
||||
|
111
lib/layouts/aastex6.layout
Normal file
111
lib/layouts/aastex6.layout
Normal file
@ -0,0 +1,111 @@
|
||||
#% Do not delete the line below; configure depends on this
|
||||
#\DeclareLaTeXClass[aastex6,amssymb.sty,latexsym.sty,natbib.sty,verbatim.sty]{American Astronomical Society (AASTeX v. 6)}
|
||||
# \DeclareCategory{Articles}
|
||||
#
|
||||
# LyX support for the AAS TeX package http://www.ctan.org/pkg/aastex
|
||||
#
|
||||
# Author: Mike Ressler <mike.ressler@alum.mit.edu>
|
||||
# Author: Uwe Stöhr <uwestoehr@web.de>
|
||||
#
|
||||
# Disclaimer: Though I am an astronomer at the Jet Propulsion Laboratory, this
|
||||
# package was prepared on my own time on my own machine. Neither the United
|
||||
# States government, the National Aeronautics and Space Administration, the
|
||||
# California Institute of Technology, the American Astronomical Society, nor
|
||||
# the Jet Propulsion Laboratory endorse this package - indeed, they probably
|
||||
# don't even know of it's existence. Use of this package is covered by the LyX
|
||||
# license which is found in the file COPYING in the root directory of the LyX
|
||||
# distribution.
|
||||
#
|
||||
# Version 0.0 5/27/99 - Initial submission, basic LaTeX equivalents
|
||||
# Version 0.1 6/04/99 - Most everything in sections 2.1-2.11 of AASTeX guide
|
||||
# works. References work with some ERT. Regular tables
|
||||
# (2.14) okay, deluxetable will never be supported.
|
||||
# Figures (2.13) not even attempted yet. Misc (2.15)
|
||||
# partially supported, but much will remain ERT.
|
||||
# Style options (section 3) can be typed into Extra
|
||||
# Document options.
|
||||
# Much cleaning of this file needs to be done.
|
||||
# Version 1.0 6/09/99 - Implemented remaining commands as well as possible.
|
||||
# There is little more I can do unless LyX source code
|
||||
# is changed. (Not by me!) Documentation, template, and
|
||||
# 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
|
||||
# Version 1.4 26/10/08 - new custom insets for \altaffilmark, \tablenotemark
|
||||
# - new environments for \altaffiltext and \tablenotetext
|
||||
# Version 1.5 26/11/12 - added mandatory argument for \altaffiltext
|
||||
# Version 1.6 23/01/15 - fix for the optional argument of \figcaption
|
||||
#
|
||||
# Version 6.0 31/03/16 - Stub for AASTeX 6.0:
|
||||
# new layout file aastex6.layout, because
|
||||
# aastex.cls was renamed to aastex6.cls (2016/02/16)
|
||||
# (cf. LyX ticket #10027)
|
||||
#
|
||||
# TODO: - support for new commands (see below)
|
||||
# - aastex6.cls loads hyperref (with pre-set options) and url
|
||||
# -> option clash if "Use Hyerref" is selected in Document>Settings
|
||||
|
||||
Format 60
|
||||
|
||||
Input aastex.layout
|
||||
|
||||
|
||||
# For new and updated commands, see
|
||||
# http://journals.aas.org/authors/aastex/revisionhistory.html
|
||||
|
||||
## New commands:
|
||||
|
||||
Style Software
|
||||
CopyStyle Keywords
|
||||
LatexName software
|
||||
Margin Static
|
||||
LeftMargin M
|
||||
TopSep 0.7
|
||||
LabelType Above
|
||||
LabelString "Software:"
|
||||
LabelFont
|
||||
Shape Italic
|
||||
EndFont
|
||||
|
||||
End
|
||||
|
||||
# other new commands are mainly for the user preamble
|
||||
|
||||
## Updated commands:
|
||||
|
||||
# TODO: dataset should become an inset similar to hyperref:
|
||||
#
|
||||
# Use the \dataset command to link to data sets hosted externally
|
||||
# such as the DOI issuing Zenodo repository.
|
||||
#
|
||||
# \dataset[text]{url}
|
||||
#
|
||||
# Where url is the URL link to the data. The bracketed argument is optional.
|
||||
# When present the given text is used as the displayed hyperlink otherwise
|
||||
# [DATASET] is printed.
|
||||
|
||||
|
||||
# Fixes for aastex.layout
|
||||
|
||||
# TODO: first/second arg for tablenotetext to replace ERT "}{"
|
||||
# Show "figcaption" label instead of "Senseless!!!"
|
||||
|
||||
# match label to output
|
||||
Style Appendix
|
||||
Margin Static
|
||||
# LeftMargin ""
|
||||
LabelType Centered
|
||||
LabelString "APPENDIX"
|
||||
End
|
||||
|
||||
Style TableRefs
|
||||
LabelString "References—"
|
||||
LabelFont
|
||||
Series Bold
|
||||
EndFont
|
||||
End
|
||||
|
||||
Style TableComments
|
||||
LabelString "Note—"
|
||||
End
|
@ -4,7 +4,7 @@
|
||||
\begin_header
|
||||
\save_transient_properties true
|
||||
\origin /systemlyxdir/templates/
|
||||
\textclass aastex
|
||||
\textclass aastex6
|
||||
\begin_preamble
|
||||
\slugcomment{}
|
||||
\shorttitle{}
|
||||
@ -76,6 +76,108 @@
|
||||
|
||||
\begin_body
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset Note Note
|
||||
status open
|
||||
|
||||
\begin_layout Plain Layout
|
||||
\noindent
|
||||
\align left
|
||||
Template for contributions to journals of the American Astronomical Society
|
||||
(AAS).
|
||||
\end_layout
|
||||
|
||||
\begin_layout Plain Layout
|
||||
\noindent
|
||||
\align left
|
||||
Please consult the
|
||||
\begin_inset CommandInset href
|
||||
LatexCommand href
|
||||
name "AASTeX user guide"
|
||||
target "http://journals.aas.org/authors/aastex/aasguide.html"
|
||||
|
||||
\end_inset
|
||||
|
||||
for details on how to use AASTeX.
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Plain Layout
|
||||
\noindent
|
||||
\align left
|
||||
A LyX sample document is available under
|
||||
\family sans
|
||||
File>Open>Examples>aas_sample.lyx
|
||||
\family default
|
||||
.
|
||||
An up-to-date sample LaTeX article using AASTeX is available under
|
||||
\begin_inset Flex URL
|
||||
status open
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
http://journals.aas.org/authors/aastex/aastex.html#_download
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
.
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset Note Note
|
||||
status open
|
||||
|
||||
\begin_layout Plain Layout
|
||||
\noindent
|
||||
\align left
|
||||
The AASTeX document class uses a different name since version 6.0 (2016/02/16).
|
||||
Depending on the version installed on your system, set the document class
|
||||
to American Astronomical Society (AASTeX v.
|
||||
6) or American Astronomical Society (AASTeX v.
|
||||
5).
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Plain Layout
|
||||
\noindent
|
||||
\align left
|
||||
New features (cf.
|
||||
|
||||
\begin_inset Flex URL
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
http://journals.aas.org/authors/aastex/revisionhistory.html
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
) are only partially supported by LyX (see
|
||||
\begin_inset Flex URL
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
http://www.lyx.org/trac/ticket/10027
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
).
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Title
|
||||
<Paper Title>
|
||||
\end_layout
|
Loading…
Reference in New Issue
Block a user