Hi, I got a layout file here, which I can't open either with 1.5.1 or 1.5.x svn.
It gives me in a loop: New counter already exists: bibitem New counter already exists: figure New counter already exists: table New counter already exists: algorithm New counter already exists: equation New counter already exists: listing New counter already exists: part New counter already exists: chapter New counter already exists: section New counter already exists: subsection New counter already exists: subsubsection New counter already exists: paragraph New counter already exists: subparagraph New counter already exists: enumi New counter already exists: enumii New counter already exists: enumiii New counter already exists: enumiv when I modify the layout to not include stdcounters.inc it won't load either but be stuck in an endless loop and output: RunCommand:: could not start child process Could not run layout conversion script layout2layout.py. Error reading `[layouts/flashcards.layout]' (Check `flashcards') Check your installation and try Options/Reconfigure... When I don't include both of them, it loads but misses those features. The same layoutfile worked with 1.4.4 Is there something wrong with my layout file or is there a bug in layout2layout.py? Attached are a minimal example, the layoutfile (requires flashcards) and the used flashcardpaper Jonathan PS: I did patch the flashcards package to work with uptodate latex. There was a patch avaible somewhere online (forgot where but I think I've added it to bug 4040). The patched package is avaible at http://source.v-o-g-t.net/flashcards-1.0.1.zip
flashcards.lyx
Description: application/lyx
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[flashcards]{flashcards}
# flashcards textclass definition file. flashcards.cls
# Max Hoffmann [EMAIL PROTECTED]
# thanks to Juergen Spitzmueller for the ugly hack
Input stdcounters.inc
Input stdlists.inc
Format 2
ClassOptions
Other "uni,frame"
End
DefaultStyle Rueckseite
Preamble
\newcommand{\karteikartentitel}{}
\newcommand{\Karte}{\stepcounter{karten}Karte \thekarten}
\newcommand{\karteikartenfach}{\Karte}
\AtBeginDocument{\newcounter{karten}}
\cardfrontstyle{headings}
\cardfrontfoot{\footnotesize{\karteikartenfach}}
\cardfrontfootstyle{left}
EndPreamble
SecNumDepth 0
TocDepth 0
Style Rueckseite
BottomSep 1
LatexName dummy
ParIndent MM
ParSkip 0.4
AlignPossible Block, Left, Right, Center
End
Style Titel/Gebiet
TopSep 2
Font
Size Small
EndFont
LaTexType Command
LatexName kartentitel
LabelType Static
LabelString "Titel/Gebiet der Karte:"
Margin Dynamic
LabelSep xxx
Preamble
\newcommand{\kartentitel}[1]{\renewcommand{\karteikartentitel}{#1}}
EndPreamble
End
Style Karteikarte
BottomSep 1
Font
Size Large
EndFont
#Ugly Hack!
LaTexType Command
LateXName begin{flashcard}[\karteikartentitel]
Preamble
%\AtEndDocument{\end{flashcard}}
EndPreamble
LabelType Static
LabelString "Karteikarte:"
Margin Dynamic
LeftMargin Karteikarte:xx
LabelSep xx
# LeftMargin 2
End
Style NextKarteikarte
TopSep 2
BottomSep 1
Font
Size Large
EndFont
LaTexType Command
LateXName end{flashcard}\begin{flashcard}[\karteikartentitel]
LabelType Static
LabelString "Karteikarte:"
Margin Dynamic
LeftMargin Karteikarte:xx
LabelSep xx
End
Style Ende
LatexType Command
LatexName end{flashcard}
KeepEmpty 1
End
%%
%% This is file `business.cfg',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% flashcards.dtx (with options: `business')
%%
%% FlashCards LaTeX2e Class for Typesetting Double Sided Cards
%% Copyright (C) 2000 Alexander M. Budge <[EMAIL PROTECTED]>
%% Copyright (C) 2007 Jonathan Vogt <[EMAIL PROTECTED]>
%%
%% This program is free software; you can redistribute it and/or modify
%% it under the terms of the GNU General Public License as published by
%% the Free Software Foundation; either version 2 of the License, or
%% (at your option) any later version.
%%
%% This program is distributed in the hope that it will be useful,
%% but WITHOUT ANY WARRANTY; without even the implied warranty of
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
%% GNU General Public License for more details.
%%
%% You should have received a copy of the GNU General Public License
%% along with this program (the file COPYING); if not, write to the
%% Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
%%
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%% Digits \0\1\2\3\4\5\6\7\8\9
%% Exclamation \! Double quote \" Hash (number) \#
%% Dollar \$ Percent \% Ampersand \&
%% Acute accent \' Left paren \( Right paren \)
%% Asterisk \* Plus \+ Comma \,
%% Minus \- Point \. Solidus \/
%% Colon \: Semicolon \; Less than \<
%% Equals \= Greater than \> Question mark \?
%% Commercial at \@ Left bracket \[ Backslash \\
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
%%
\ProvidesFile{business.cfg}
\newcommand{\cardpapermode}{portrait}
\newcommand{\cardpaper}{a4paper}
\newcommand{\cardrows}{5}
\newcommand{\cardcolumns}{2}
\setlength{\cardheight}{55mm}
\setlength{\cardwidth}{93mm}
\setlength{\topoffset}{0.35in}
\setlength{\oddoffset}{0.45in}
\setlength{\evenoffset}{0.45in}
\setlength{\paperheight}{297mm}%
\setlength{\paperwidth}{210mm}%
\setlength{\cardinnerwidth}{70mm}
\setlength{\cardinnerheight}{45mm}
\setlength{\cardmargin}{5in}
\endinput
%%
%% End of file `business.cfg'.
