Bruce Pourciau a écrit :

On Mar 22, 2009, at 5:18 PM, Uwe Stöhr wrote:

Jean-Marie Pacquet schrieb:

You should erase the starting comma in the options list of the Latex preamble (the one in front of "footsepline=true"). The new version of Koma-script scrlttr2 does not like it.

In LyX 1.6.x the template doesn't have this comma. What LyX version are you using Jean-Marie?

regards Uwe

So in LyX 1.5.6 is there no way to view and use the Koma-script scrlttr2 template directly from within LyX?

Bruce

Just make sure that the Koma-script options list does not start with a comma. Hereunder is a part of the Latex preamble of Koma-script letter2 template for an old Lyx version (1.4.2):
...
%% THE CLASS OPTIONS
%% Remove preceeding '%' to uncomment an item
\KOMAoptions{%
%,headsepline=true%            separate the header with a line on page >1
%,footsepline=true%             separate the footer with a line on page >1
%pagenumber=botcenter%   position of the page number (see docu)
%,parskip=false%          Use indent instead of skip (more options cf. docu)
,fromalign=center%        alignment of the address
,fromrule=aftername%    separate the address with a line?
,fromphone=true%         print sender phone number
%,fromfax=true%          print sender fax number
,fromemail=true%           print sender e-mail address
,fromurl=true%               print sender URL
%,fromlogo=true%         print a logo (position depends on fromalign)
%,addrfield=false%        print an address field?
%,backaddress=false%  print the back address?
%,subject=afteropening,titled% alternative subject layout and position
%,locfield=narrow%      width of the (extra) location field
%,foldmarks=false%      print foldmarks?
%,numericaldate=true%  date layout
%,refline=wide%             layout of the refline
}

You will notice that the first uncommented option (",fromalign=center%...") starts with a comma). If you try to use this template with a more recent Lyx version (in fact a more recent Koma-script version) you will get this error:

You have used \KOMAoptions to set `',
but KOMA-Script does not know any option named `'.
See the KOMA-Script manual for more informations about options and
their values.


The solution is to edit the Latex preamble (Menu Document->Parameters then Latex preamble) so that the first option reads "fromalign=center%" without the preceding comma.

I understand from Uwe that the new templates for Koma-script letter2 no longer have this preceding comma. May be you still have an old template with a new version of Koma-script.

Regards
--
jean-marie


Reply via email to