Re: ACM Layout Problems

2005-02-22 Thread G. Milde
On 21.02.05, Luke Simon wrote:
> I am trying to create an ACM proceedings layout by modifying the
> IEEETran.layout, and I am having a problem with citations.  For some
> reason, "\usepackage{babel}" causes the following error when trying to
> view a DVI preview:

Are you sure, that babel is the culprit?

> I am having trouble figuring out why this is happening and would prefer
> to have the layout tell LyX not to include "\usepackage{babel}".  Is it
> possible to do so?  I can't figure out how to control what is included
> and what is not.

AFAIK, the use of babel is configured on a per-user basis. The layout
file cannot modify this, so you need to tell the users in the
documentation to unclick "[ ] Use Babel" in Edit>Preferences>Language
 
> Furthermore, even though in the layout, I have specified that ACM
> documents are 2 column, this settings and others are not used by default
> and instead must be loaded by clicking the "Use Class Defaults" button.
> Is there a way to force the settings to be used without having to click
> this button?

Again, this is a user setting: Always use Class Defaults. (Sometimes this
is not desirable). 

My suggestion is, to provide a template file alongside the layout file --
starting a new document with File>New-from-template will open a new
document with the correct settings.

To create a Template, simply do File>New, set the Class and click "Use
Class Defaults". Optionally add some always needed stuff or documentation.
Save to the "Templates Folder" (as set in Edit>Preferences).


 
> Below is my layout file so far:
> --
...
> # Based on IEEEtran.layout
...

Wouldn't it be simpler to Input IEEEtran.layout and modify this? 
(You can overwrite definitions and even just part of them.)


Sincerely

Guenter

-- 
G.Milde web.de


ACM Layout Problems

2005-02-21 Thread Luke Simon
I am trying to create an ACM proceedings layout by modifying the
IEEETran.layout, and I am having a problem with citations.  For some
reason, "\usepackage{babel}" causes the following error when trying to
view a DVI preview:

--
Use of [EMAIL PROTECTED] doesn't match its definition.
...
If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
made up of letters only. The macro here has not been
followed by the required stuff, so I'm ignoring it.
--

I am having trouble figuring out why this is happening and would prefer
to have the layout tell LyX not to include "\usepackage{babel}".  Is it
possible to do so?  I can't figure out how to control what is included
and what is not.

Furthermore, even though in the layout, I have specified that ACM
documents are 2 column, this settings and others are not used by default
and instead must be loaded by clicking the "Use Class Defaults" button.
Is there a way to force the settings to be used without having to click
this button?

Below is my layout file so far:
--

#% Do not delete he line below; configure depends on this
#  \DeclareLaTeXClass[acm_proc_article-sp]{ACM SIG Proceedings}
# Based on IEEEtran.layout
#
# Author : Luke Simon <[EMAIL PROTECTED]>
#
# acm_proc_article-sp is the class used for the ACM SIG Proceedings
format.
# The on-screen display in LyX is set to reflect the appearance of two
column
# text.  The section counters appear correctly in the output but are
# in arabic numerals in LyX -- this requires some additional code in LyX
# to get right (maybe LyX-2.0 ;-).
#
# acm_proc_article-sp.cls can be obtained from
# http://www.acm.org/sigs/pubs/proceed/template.html
#
# Input general definitions

Columns 2
Sides   1
MaxCounter  Counter_Section
SecNumDepth 3
TocDepth3

ClassOptions
  FontSize  9|10|11|12
End  

DefaultFont
  FamilyRoman
  SeriesMedium
  Shape Up
  Size  Normal
  Color None
EndFont

# Standard style definition
Style Standard
  MarginStatic
  LatexType Paragraph
  LatexName dummy
  ParIndent MM
  ParSkip   0.4
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType No_Label
End

##
## stdlists
##
Input stdlists.inc

# 
# First cut at theorem environment support.
# What other theorem-like environments are needed?
# How many of these should be discarded?
# I got this list from amsmaths*.inc but I haven't
# found an official list of theorem environments for
# IEEE Transactions.
# OH!  and all theorems are numbered.  Is that a problem?
# Tell me:  [EMAIL PROTECTED]
#
# Theorem-numbered style *Template* declaration
Style TheoremTemplate
  MarginFirst_Dynamic
  LatexType Environment
  LabelSep  M
  ParIndent MM
  ParSep0.4
  Align Block
  AlignPossible Block, Left
  LabelType Static

  # label font definition
  LabelFont
Shape   Italic
  EndFont
End

# Proof style declaration
Style Proof
  CopyStyle TheoremTemplate
  LatexName proof
  LabelString   "PROOF."
  EndLabelType  Filled_Box
End

# Theorem-numbered style declaration
Style Theorem
  CopyStyle TheoremTemplate
  LatexName theorem
  LabelString   "Theorem #."

  Preamble
\newtheorem{theorem}{Theorem}
  EndPreamble
End  

# Lemma-numbered style declaration
Style Lemma
  CopyStyle TheoremTemplate
  LatexName lemma
  LabelString   "Lemma #."

  Preamble
\newtheorem{lemma}{Lemma}
  EndPreamble
End  

# Corollary-numbered style declaration
Style Corollary
  CopyStyle TheoremTemplate
  LatexName corollary
  LabelString   "Corollary #."

  Preamble
\newtheorem{corollary}{Corollary}
  EndPreamble
End

# Proposition-numbered style declaration
Style Proposition
  CopyStyle TheoremTemplate
  LatexName proposition
  LabelString   "Proposition #."

  Preamble
\newtheorem{proposition}{Proposition}
  EndPreamble
End  

# Conjecture-numbered style declaration
Style Conjecture
  CopyStyle TheoremTemplate
  LatexName conjecture
  LabelString   "Conjecture #."

  Preamble
\newtheorem{conjecture}{Conjecture}
  EndPreamble
End  

# Criterion-numbered style declaration
Style Criterion
  CopyStyle TheoremTemplate
  LatexName criterion
  LabelString   "Criterion #."

  Preamble
\newtheorem{criterion}{Criterion}
  EndPreamble
End  

# Fact-numbered style declaration
Style Fact
  CopyStyle TheoremTemplate
  LatexName fact
  LabelString   "Fact #."

  Preamble
\newde