On 28/07/2010 3:44 PM, Daniel Joshua Stark wrote:
Dear All,

I'm using LyX 1.6.7 on Mac OS X 10.6.4.

I've installed the revtex4-1.layout file in /Library/Application 
Support/LyX-1.6/layouts

I use the 2009 Tex Live distribution of MacTeX and it is up-to-date.  When I 
check in texmf-dist/tex/latex/revtex, revtex4-1.cls is present.

I've run sudo texhash several times and have reconfigured LyX several times.  However, whenever I 
try to select "Article (REVTeX 4.1)" in Lyx, I get the following error:  "The 
document class revtex4-1 could not be loaded."

I'm at a lost as to why it is not loading.  Any help would be greatly 
appreciated.

Confused,

Daniel Stark
PhD Candidate
✦ Physics and Astronomy   BRC 721, MS-142   Rice University   6500 Main Street  
 Houston TX 77030   USA
✦ Ph: +1-713-348-3129  Fx:  +1-713-348-8099

In physics, you don't have to go around making trouble for yourself - nature 
does it for you. - Frank Wilczek
I think physicists are the Peter Pans of the human race. They never grow up and 
they keep their curiosity. - Isidor Isaac Rabi



Here's an updated layout file for LyX 1.6.x

Let us know how it works for you. I have a version for LyX 2.0 with template file that I plan to submit to the developers soon.

Cheers,
Julien
#% Do not delete the line below; configure depends on this
#  
\DeclareLaTeXClass[revtex4-1,natbib.sty,revsymb4-1.sty,textcase.sty,url.sty]{article
 (REVTeX 4.1)}
# REVTeX 4.1 textclass definition file.
# Based on article.layout, revtex4.layout and stdclass.inc definition files.

# Author: Julien Rioux <jri...@physics.utoronto.ca>
# Author: Manoj Rajagopalan

# Some notes:
#   - The \definecolor's are there to avoid LyX bug #4625.
#   - We provide natbib-internal according to LyX bug #5182.
#   - The command \lovname is missing from the class file.

Format 11

Input stdclass.inc
Input numrevtex.inc

Provides                  natbib-internal  1
Provides                  url              1
ProvidesModule            videos
SecNumDepth               3
TocDepth                  3

ClassOptions
    Other                 "aps,manuscript"
End

Preamble
    % Fix a bug in REVTeX 4.1
    \def\lovname{List of Videos}
    \...@ifundefined{textcolor}{}
    {%
      \definecolor{BLACK}{gray}{0}
      \definecolor{WHITE}{gray}{1}
      \definecolor{RED}{rgb}{1,0,0}
      \definecolor{GREEN}{rgb}{0,1,0}
      \definecolor{BLUE}{rgb}{0,0,1}
      \definecolor{CYAN}{cmyk}{1,0,0,0}
      \definecolor{MAGENTA}{cmyk}{0,1,0,0}
      \definecolor{YELLOW}{cmyk}{0,0,1,0}
    }
EndPreamble

Style Section
    Align                 Center
    Font
#     Series              Medium
      Shape               Smallcaps
#     Size                Large
    EndFont
End

Style Subsubsection
    Font
      Shape               Italic
#     Size                Normal
    EndFont
End

Style Paragraph
#   TopSep                0.7
#   ParSep                0.4
    Font
      Shape               Italic
#     Size                Normal
    EndFont
End

# This input needs to appear *after* modifications to sections
Input stdstarsections.inc

########### Front matter ############

Style Abstract
    InTitle               1
End

Style Preprint
    Category              FrontMatter
    Margin                Right_Address_Box
    LatexType             Command
    InTitle               1
    LatexName             preprint
    ParSkip               0.4
    BottomSep             1.5
    ParSep                1.5
    Align                 Left
End

Style PACS
    Category              FrontMatter
    Margin                Dynamic
    LatexType             Command
    InTitle               1
    LatexName             pacs
    LabelType             Static
    LabelSep              M
    LabelString           "PACS numbers:"
End

Style Keywords
    CopyStyle             PACS
    LatexName             keywords
    LabelString           "Keywords:"
End

Style Title
    OptionalArgs          1
    Font
      Series              Bold
      Size                Large
    EndFont
End

Style Date
    LabelType             Static
    LabelString           "Date:"
    LabelFont
      Shape               Italic
      Size                Large
    EndFont
End

Style Affiliation
    Category              FrontMatter
    Margin                Dynamic
    LatexType             Command
    InTitle               1
    LatexName             affiliation
    ParSkip               0.4
#    BottomSep            1.5
#    ParSep               1.5
    Align                 Center
    AlignPossible         Block, Left, Right, Center
    LabelType             Static
    LabelSep              M
    LabelString           "Affiliation:"

    LabelFont
      Shape               Italic
    EndFont
End

Style AltAffiliation
    CopyStyle             Affiliation
    LatexName             altaffiliation
    LabelString           "AltAffiliation"
    OptionalArgs          1
    PassThru              1
End

# Address is exactly the same as Affiliation. We just put
# this in so that tex2lyx will know what to do with it.
Style Address
    CopyStyle             Affiliation
    LatexName             address
    LabelString           "Address:"
End

Style Thanks
    CopyStyle             Affiliation
    LatexName             thanks
    LabelString           "Thanks:"
End

Style Collaboration
    CopyStyle             Affiliation
    LatexName             collaboration
    LabelString           "Collaboration:"
End

Style NoAffiliation
    CopyStyle             Affiliation
    KeepEmpty             true
    LabelString           "No affiliation"
    LatexName             noaffiliation%
End

Style Author_Email
    CopyStyle             Affiliation
    LatexName             email
    LabelString           "Electronic Address:"
    OptionalArgs          1
    PassThru              1
    TextFont
      Family              Typewriter
    EndFont
    LabelFont
      Family              Roman
    EndFont
End

Style Author_URL
    CopyStyle             Author_Email
    LatexName             homepage
    LabelString           "URL:"
    OptionalArgs          1
    PassThru              1
End

########### Back matter #############

Style Acknowledgments
    Category              BackMatter
    LatexType             Environment
    LatexName             acknowledgments
    ParIndent             MM
    ParSkip               0.4
    Align                 Block
    AlignPossible         Block, Left, Right, Center
    LabelType             Centered_Top_Environment
    LabelString           "acknowledgments"
    LabelBottomSep        0.5
    LabelFont
      Series              Medium
      Shape               Smallcaps
      Size                Large
    EndFont
End

##### REVTeX 4.1 specific stuff

Style Ruled_Table
    CopyStyle             Standard
    LatexName             ruledtabular
    LatexType             environment
End

Style Subequations
    CopyStyle             Standard
    LatexName             subequations
    LatexType             environment
    Requires              amsmath
End

Style Turn_Page
    CopyStyle             Standard
    LatexName             turnpage
    LatexType             environment
End

Style Wide_Text
    CopyStyle             Standard
    LatexName             widetext
    LatexType             environment
End

Float
    Extension             lov
    GuiName               Video
    LaTeXBuiltin          true
    ListName              "List of Videos"
    NumberWithin          none
    Placement             tbp
    Style                 plain
    Type                  video
End

InsetLayout Float_Link
    CopyStyle             URL
    LabelString           "Float Link"
    LatexName             setfloatlink
    LatexType             command
    LyXType               custom
End

InsetLayout Lowercase
    Decoration            conglomerate
    LabelString           Lowercase
    LatexName             lowercase
    LatexType             command
    LyXType               custom
    Font
        # Keep empty to preserve font settings
        # from the surrounding environment
    EndFont
End

InsetLayout Surname
    Decoration            conglomerate
    LabelString           Surname
    LatexName             surname
    LatexType             command
    LyXType               custom
    Font
        # Keep empty to preserve font settings
        # from the surrounding environment
    EndFont
End

NoStyle Chapter
NoStyle Chapter*
NoStyle LyX-Code
NoStyle Subparagraph
NoStyle Subparagraph*

Reply via email to