Unloadable layout with 1.5.1

2007-08-06 Thread Jonathan Vogt
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
Otheruni,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
TocDepth0

Style Rueckseite
  BottomSep 1
  LatexName dummy
  ParIndent MM
  ParSkip   0.4
  AlignPossible Block, Left, Right, Center
End

Style Titel/Gebiet
  TopSep2
  Font
SizeSmall
  EndFont
  LaTexType Command
  LatexName kartentitel
  LabelType Static
  LabelString   Titel/Gebiet der Karte:
  MarginDynamic
  LabelSep  xxx
  Preamble
\newcommand{\kartentitel}[1]{\renewcommand{\karteikartentitel}{#1}}
  EndPreamble
End

Style Karteikarte
  BottomSep 1
  Font
SizeLarge
  EndFont
  #Ugly Hack!
  LaTexType Command
  LateXName begin{flashcard}[\karteikartentitel]
  Preamble
  %\AtEndDocument{\end{flashcard}}
  EndPreamble
  LabelType Static
  LabelString   Karteikarte:
  MarginDynamic
  LeftMarginKarteikarte:xx
  LabelSep  xx

#  LeftMargin2
End

Style NextKarteikarte
  TopSep2
  BottomSep 1
  Font
SizeLarge
  EndFont
  LaTexType Command
  LateXName end{flashcard}\begin{flashcard}[\karteikartentitel]
  LabelType Static
  LabelString   Karteikarte:
  MarginDynamic
  LeftMarginKarteikarte:xx
  LabelSep  xx
End

Style Ende
  LatexTypeCommand
  LatexNameend{flashcard}
  KeepEmpty1
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

Unloadable layout with 1.5.1

2007-08-06 Thread Jonathan Vogt
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
TocDepth0

Style Rueckseite
  BottomSep 1
  LatexName dummy
  ParIndent MM
  ParSkip   0.4
  AlignPossible Block, Left, Right, Center
End

Style Titel/Gebiet
  TopSep2
  Font
SizeSmall
  EndFont
  LaTexType Command
  LatexName kartentitel
  LabelType Static
  LabelString   "Titel/Gebiet der Karte:"
  MarginDynamic
  LabelSep  xxx
  Preamble
\newcommand{\kartentitel}[1]{\renewcommand{\karteikartentitel}{#1}}
  EndPreamble
End

Style Karteikarte
  BottomSep 1
  Font
SizeLarge
  EndFont
  #Ugly Hack!
  LaTexType Command
  LateXName begin{flashcard}[\karteikartentitel]
  Preamble
  %\AtEndDocument{\end{flashcard}}
  EndPreamble
  LabelType Static
  LabelString   "Karteikarte:"
  MarginDynamic
  LeftMarginKarteikarte:xx
  LabelSep  xx

#  LeftMargin2
End

Style NextKarteikarte
  TopSep2
  BottomSep 1
  Font
SizeLarge
  EndFont
  LaTexType Command
  LateXName end{flashcard}\begin{flashcard}[\karteikartentitel]
  LabelType Static
  LabelString   "Karteikarte:"
  MarginDynamic
  LeftMarginKarteikarte:xx
  LabelSep  xx
End

Style Ende
  LatexTypeCommand
  LatexNameend{flashcard}
  KeepEmpty1
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 prog

bug 4040 - flashcards layout

2007-07-20 Thread Jonathan Vogt
Hi,

I just uploaded a patch for the flashcards package to make it work with newer 
latex versions. It solves the a4paper issue.

Uwe, which other stuff do you have to specify? Do you mean using lyx or just 
latex? I try to help out where I can here... (at last something where I can 
help maybe :-) )

Jonathan


bug 4040 - flashcards layout

2007-07-20 Thread Jonathan Vogt
Hi,

I just uploaded a patch for the flashcards package to make it work with newer 
latex versions. It solves the a4paper issue.

Uwe, which other stuff do you have to specify? Do you mean using lyx or just 
latex? I try to help out where I can here... (at last something where I can 
help maybe :-) )

Jonathan


Re: User guide inaccuracy

2007-06-28 Thread Jonathan Vogt
 I guess the behaviour changed after that part of the guide was written,
 and maybe old LyX files should have instances of \textrm replaced by
 \mbox on load, for consistency with what you will get if you add another
 one.

Please no. Using \mbox the text is not scaled right. (See attached example) 
Wouldn't using \textnormal or \text if using AMS math instead be better?

Jonathan


newfile2.lyx
Description: application/lyx


Re: User guide inaccuracy

2007-06-28 Thread Jonathan Vogt
> I guess the behaviour changed after that part of the guide was written,
> and maybe old LyX files should have instances of \textrm replaced by
> \mbox on load, for consistency with what you will get if you add another
> one.

Please no. Using \mbox the text is not scaled right. (See attached example) 
Wouldn't using \textnormal or \text if using AMS math instead be better?

Jonathan


newfile2.lyx
Description: application/lyx


Re: removing of math panel

2007-04-19 Thread Jonathan Vogt
Am Freitag 20 April 2007 schrieb Edwin Leuven:
 Edwin Leuven wrote:
  the last one for tonight guys...

 will hit the pillow now and dream of brown papers bags...
Hope you slept well.

Trying to compile i get:

Making all in qt4
make[5]: Entering directory 
`/home/jonathan/Documents/downloads/source/lyx-devel/src/frontends/qt4'
make[5]: *** No rule to make target `QMathDialog_moc.cpp', needed by `all'.  
Stop.

I removed the whole dir to make sure there is nothing old in there but still 
the error shows up.

and now I'll hit the pillow too.

Jonathan


Re: removing of math panel

2007-04-19 Thread Jonathan Vogt
Am Freitag 20 April 2007 schrieb Edwin Leuven:
> Edwin Leuven wrote:
> > the last one for tonight guys...
>
> will hit the pillow now and dream of brown papers bags...
Hope you slept well.

Trying to compile i get:

Making all in qt4
make[5]: Entering directory 
`/home/jonathan/Documents/downloads/source/lyx-devel/src/frontends/qt4'
make[5]: *** No rule to make target `QMathDialog_moc.cpp', needed by `all'.  
Stop.

I removed the whole dir to make sure there is nothing old in there but still 
the error shows up.

and now I'll hit the pillow too.

Jonathan


The muscial Lyx

2006-11-02 Thread Jonathan Vogt
Hi all,

I found something funny this morning. When copying from one window to the 
other one of the same lyx instance using the middle mouse button on Linux, 
LyX inserts some musical notes. When using STRG+C and STRG+V they don't 
appear. I don't know what info to provide, except a screen shot.

have a good day
Jonathan


lyx2.png
Description: PNG image


The muscial Lyx

2006-11-02 Thread Jonathan Vogt
Hi all,

I found something funny this morning. When copying from one window to the 
other one of the same lyx instance using the middle mouse button on Linux, 
LyX inserts some musical notes. When using STRG+C and STRG+V they don't 
appear. I don't know what info to provide, except a screen shot.

have a good day
Jonathan


lyx2.png
Description: PNG image


SEGFAULT when closing a window and saving in the otherone

2006-11-01 Thread Jonathan Vogt
Hi all,

I was working with two windows and opening the same document in both. Typed 
in the second one, closed it and tried saving in the first one - segfault

Here is a backtrace:

#0  0x0884c445 in lyx::Timeout::restart (this=0x90c1930) at scoped_ptr.hpp:93
#1  0x08842058 in lyx::LyXView::resetAutosaveTimer (this=0x90b9bf0) at 
scoped_ptr.hpp:93
#2  0x0884676e in 
boost::detail::function::void_function_obj_invoker0boost::_bi::bind_tvoid, 
boost::_mfi::mf0void, lyx::LyXView, 
boost::_bi::list1boost::_bi::valuelyx::LyXView*  , void::invoke 
([EMAIL PROTECTED]) at mem_fn_template.hpp:49
#3  0x081e55ed in boost::function0void, std::allocatorvoid ::operator() 
(this=0x90b9bf0) at function_template.hpp:691
#4  0x081e54db in operator()boost::signals::detail::connection_slot_pair 
(this=0xaf94cba0, [EMAIL PROTECTED]) at signal_template.hpp:119
#5  0x081defb7 in 
operator++boost::signals::detail::slot_call_iteratorboost::signals::detail::call_bound0void::callerboost::functionvoid
 
()(), std::allocatorvoid  , 
boost::signals::detail::named_slot_map_iterator, 
boost::signals::detail::unusable, boost::single_pass_traversal_tag, const 
boost::signals::detail::unusable, ptrdiff_t ([EMAIL PROTECTED]) at 
iterator_facade.hpp:634
#6  0x081d31b2 in 
operator()boost::signals::detail::slot_call_iteratorboost::signals::detail::call_bound0void::callerboost::functionvoid
 
()(), std::allocatorvoid  , 
boost::signals::detail::named_slot_map_iterator  (this=0x8fa4f14, first=
  
{boost::iterator_facadeboost::signals::detail::slot_call_iteratorboost::signals::detail::call_bound0void::callerboost::functionvoid
 
()(), std::allocatorvoid  , 
boost::signals::detail::named_slot_map_iterator,boost::signals::detail::unusable,boost::single_pass_traversal_tag,const
 
boost::signals::detail::unusable,ptrdiff_t = {No data fields}, iter = 
{boost::iterator_facadeboost::signals::detail::named_slot_map_iterator,boost::signals::detail::connection_slot_pair,boost::forward_traversal_tag,boost::signals::detail::connection_slot_pair,ptrdiff_t
 
= {No data fields}, group = {__gnu_debug::_Safe_iterator_base = 
{_M_sequence = 0x90843d4, _M_version = 1, _M_prior = 0xaf94cb34, _M_next = 
0xaf94cb74}, _M_current = {_M_node = 0x9084438}}, last_group = 
{__gnu_debug::_Safe_iterator_base = {_M_sequence = 0x90843d4, _M_version = 
1, _M_prior = 0xaf94cc30, _M_next = 0xaf94cb20}, _M_current = {_M_node = 
0x90843c0}}, slot_ = {__gnu_debug::_Safe_iterator_base = {_M_sequence = 
0x908445c, _M_version = 1, _M_prior = 0x0, _M_next = 0xaf94cac8}, _M_current 
= {_M_node = 0x910aff8}}, slot_assigned = true}, end = 
{boost::iterator_facadeboost::signals::detail::named_slot_map_iterator,boost::signals::detail::connection_slot_pair,boost::forward_traversal_tag,boost::signals::detail::connection_slot_pair,ptrdiff_t
 
= {No data fields}, group = {__gnu_debug::_Safe_iterator_base = 
{_M_sequence = 0x90843d4, _M_version = 1, _M_prior = 0xaf94cb74, _M_next = 
0xaf94cab4}, _M_current = {_M_node = 0x90843c0}}, last_group = 
{__gnu_debug::_Safe_iterator_base = {_M_sequence = 0x90843d4, _M_version = 
1, _M_prior = 0xaf94cb20, _M_next = 0xaf94cb60}, _M_current = {_M_node = 
0x90843c0}}, slot_ = {__gnu_debug::_Safe_iterator_base = {_M_sequence = 
0x0, _M_version = 0, _M_prior = 0x0, _M_next = 0x0}, _M_current = {_M_node = 
0x0}}, slot_assigned = false}, f = {args = 0xaf94ca9f}, cache = 0xaf94ccc0}, 
last=
  
{boost::iterator_facadeboost::signals::detail::slot_call_iteratorboost::signals::detail::call_bound0void::callerboost::functionvoid
 
()(), std::allocatorvoid  , 
boost::signals::detail::named_slot_map_iterator,boost::signals::detail::unusable,boost::single_pass_traversal_tag,const
 
boost::signals::detail::unusable,ptrdiff_t = {No data fields}, iter = 
{boost::iterator_facadeboost::signals::detail::named_slot_map_iterator,boost::signals::detail::connection_slot_pair,boost::forward_traversal_tag,boost::signals::detail::connection_slot_pair,ptrdiff_t
 
= {No data fields}, group = {__gnu_debug::_Safe_iterator_base = 
{_M_sequence = 0x90843d4, _M_version = 1, _M_prior = 0xaf94cc44, _M_next = 
0xaf94cb34}, _M_current = {_M_node = 0x90843c0}}, last_group = 
{__gnu_debug::_Safe_iterator_base = {_M_sequence = 0x90843d4, _M_version = 
1, _M_prior = 0x0, _M_next = 0xaf94cc30}, _M_current = {_M_node = 
0x90843c0}}, slot_ = {__gnu_debug::_Safe_iterator_base = {_M_sequence = 
0x0, _M_version = 0, _M_prior = 0x0, _M_next = 0x0}, _M_current = {_M_node = 
0x0}}, slot_assigned = false}, end = 
{boost::iterator_facadeboost::signals::detail::named_slot_map_iterator,boost::signals::detail::connection_slot_pair,boost::forward_traversal_tag,boost::signals::detail::connection_slot_pair,ptrdiff_t
 
= {No data fields}, group = {__gnu_debug::_Safe_iterator_base = 
{_M_sequence = 0x90843d4, _M_version = 1, _M_prior = 0xaf94cc84, _M_next = 
0xaf94cbc4}, _M_current = {_M_node = 0x90843c0}}, last_group = 
{__gnu_debug::_Safe_iterator_base = {_M_sequence = 0x90843d4, _M_version = 
1, _M_prior = 

Re: Enhancement idea: Teamedit

2006-11-01 Thread Jonathan Vogt
Am Montag 23 Oktober 2006 14:38 schrieb Abdelrazak Younes:
 Jonathan Vogt wrote:
  Hi all,
  I don't know if it has been discussed already, at least I didn't find
  anything on the list and the web, but I'd would appreciate if Lyx could
  support team work, i.e. a couple of people working on one document at the
  same time (like http://teamedit.sourceforge.net/)
  Is it possible to use the server structure for it?

 Yes, something like this should be possible now that we have
 multiple-window with synchronised buffer. I guess this will only work
 with X11. I am not sure though how LyX is going to react with two
 keyboards coming from two X11 servers.
I'm trying to get it working using vnc, but that doesn't give me an extra 
(mouse,text) cursor.
Is there a way to connect the buffer of two instances? Or to force only one 
instance of lyx already?

Thanks Jonathan


SEGFAULT when closing a window and saving in the otherone

2006-11-01 Thread Jonathan Vogt
Hi all,

I was "working" with two windows and opening the same document in both. Typed 
in the second one, closed it and tried saving in the first one -> segfault

Here is a backtrace:

#0  0x0884c445 in lyx::Timeout::restart (this=0x90c1930) at scoped_ptr.hpp:93
#1  0x08842058 in lyx::LyXView::resetAutosaveTimer (this=0x90b9bf0) at 
scoped_ptr.hpp:93
#2  0x0884676e in 
boost::detail::function::void_function_obj_invoker0, 
boost::_bi::list1 > >, void>::invoke 
([EMAIL PROTECTED]) at mem_fn_template.hpp:49
#3  0x081e55ed in boost::function0::operator() 
(this=0x90b9bf0) at function_template.hpp:691
#4  0x081e54db in operator() 
(this=0xaf94cba0, [EMAIL PROTECTED]) at signal_template.hpp:119
#5  0x081defb7 in 
operator++ >, 
boost::signals::detail::named_slot_map_iterator>, 
boost::signals::detail::unusable, boost::single_pass_traversal_tag, const 
boost::signals::detail::unusable&, ptrdiff_t> ([EMAIL PROTECTED]) at 
iterator_facade.hpp:634
#6  0x081d31b2 in 
operator() >, 
boost::signals::detail::named_slot_map_iterator> > (this=0x8fa4f14, first=
  
{ >, 
boost::signals::detail::named_slot_map_iterator>,boost::signals::detail::unusable,boost::single_pass_traversal_tag,const
 
boost::signals::detail::unusable&,ptrdiff_t>> = {}, iter = 
{>
 
= {}, group = {<__gnu_debug::_Safe_iterator_base> = 
{_M_sequence = 0x90843d4, _M_version = 1, _M_prior = 0xaf94cb34, _M_next = 
0xaf94cb74}, _M_current = {_M_node = 0x9084438}}, last_group = 
{<__gnu_debug::_Safe_iterator_base> = {_M_sequence = 0x90843d4, _M_version = 
1, _M_prior = 0xaf94cc30, _M_next = 0xaf94cb20}, _M_current = {_M_node = 
0x90843c0}}, slot_ = {<__gnu_debug::_Safe_iterator_base> = {_M_sequence = 
0x908445c, _M_version = 1, _M_prior = 0x0, _M_next = 0xaf94cac8}, _M_current 
= {_M_node = 0x910aff8}}, slot_assigned = true}, end = 
{>
 
= {}, group = {<__gnu_debug::_Safe_iterator_base> = 
{_M_sequence = 0x90843d4, _M_version = 1, _M_prior = 0xaf94cb74, _M_next = 
0xaf94cab4}, _M_current = {_M_node = 0x90843c0}}, last_group = 
{<__gnu_debug::_Safe_iterator_base> = {_M_sequence = 0x90843d4, _M_version = 
1, _M_prior = 0xaf94cb20, _M_next = 0xaf94cb60}, _M_current = {_M_node = 
0x90843c0}}, slot_ = {<__gnu_debug::_Safe_iterator_base> = {_M_sequence = 
0x0, _M_version = 0, _M_prior = 0x0, _M_next = 0x0}, _M_current = {_M_node = 
0x0}}, slot_assigned = false}, f = {args = 0xaf94ca9f}, cache = 0xaf94ccc0}, 
last=
  
{ >, 
boost::signals::detail::named_slot_map_iterator>,boost::signals::detail::unusable,boost::single_pass_traversal_tag,const
 
boost::signals::detail::unusable&,ptrdiff_t>> = {}, iter = 
{>
 
= {}, group = {<__gnu_debug::_Safe_iterator_base> = 
{_M_sequence = 0x90843d4, _M_version = 1, _M_prior = 0xaf94cc44, _M_next = 
0xaf94cb34}, _M_current = {_M_node = 0x90843c0}}, last_group = 
{<__gnu_debug::_Safe_iterator_base> = {_M_sequence = 0x90843d4, _M_version = 
1, _M_prior = 0x0, _M_next = 0xaf94cc30}, _M_current = {_M_node = 
0x90843c0}}, slot_ = {<__gnu_debug::_Safe_iterator_base> = {_M_sequence = 
0x0, _M_version = 0, _M_prior = 0x0, _M_next = 0x0}, _M_current = {_M_node = 
0x0}}, slot_assigned = false}, end = 
{>
 
= {}, group = {<__gnu_debug::_Safe_iterator_base> = 
{_M_sequence = 0x90843d4, _M_version = 1, _M_prior = 0xaf94cc84, _M_next = 
0xaf94cbc4}, _M_current = {_M_node = 0x90843c0}}, last_group = 
{<__gnu_debug::_Safe_iterator_base> = {_M_sequence = 0x90843d4, _M_version = 
1, _M_prior = 0xaf94cae0, _M_next = 0xaf94cc70}, _M_current = {_M_node = 
0x90843c0}}, slot_ = {<__gnu_debug::_Safe_iterator_base> = {_M_sequence = 
0x0, _M_version = 0, _M_prior = 0x0, _M_next = 

Re: Enhancement idea: Teamedit

2006-11-01 Thread Jonathan Vogt
Am Montag 23 Oktober 2006 14:38 schrieb Abdelrazak Younes:
> Jonathan Vogt wrote:
> > Hi all,
> > I don't know if it has been discussed already, at least I didn't find
> > anything on the list and the web, but I'd would appreciate if Lyx could
> > support team work, i.e. a couple of people working on one document at the
> > same time (like http://teamedit.sourceforge.net/)
> > Is it possible to use the server structure for it?
>
> Yes, something like this should be possible now that we have
> multiple-window with synchronised buffer. I guess this will only work
> with X11. I am not sure though how LyX is going to react with two
> keyboards coming from two X11 servers.
I'm trying to get it working using vnc, but that doesn't give me an extra 
(mouse,text) cursor.
Is there a way to connect the buffer of two instances? Or to force only one 
instance of lyx already?

Thanks Jonathan


Re: Scrollbar and multible views

2006-10-28 Thread Jonathan Vogt
Am Freitag 27 Oktober 2006 17:55 schrieb Abdelrazak Younes:
 Jonathan Vogt wrote:
  Hi all,
 
  hope I don't report anything old as new again, at least I didn't find
  anything.
 
  1) Open up one Document
  2) Open new window and load same document
  3) Type some lines in new window
  4) change to old window and scroll down using the scrollbar

 I cannot reproduce that with MSVC/debug mode. Somebody else is seeing this?

  =
  /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/debug/safe_iterator.h
 :193: error: attempt to dereference a past-the-end iterator.
 
  Objects involved in the operation:
  iterator this @ 0x0xafe69b20 {
  type =
  N11__gnu_debug14_Safe_iteratorISt17_Rb_tree_iteratorISt4pairIKiN3lyx5Poin
  tEEEN15__gnu_debug_def3mapIiS5_St4lessIiESaIS6_E (mutable iterator);
state = past-the-end;
references sequence with type
  `N15__gnu_debug_def3mapIiN3lyx5PointESt4lessIiES
  aISt4pairIKiS2_' @ 0x0xafe69b20
  }

 I need a bigger back trace to know where this happens. Do you know gdb?
I already tried but didn't know how. but here it comes, thanks for the howto.


#0  0xe410 in __kernel_vsyscall ()
#1  0x4b213fd1 in raise () from /lib/libc.so.6
#2  0x4b2157a9 in abort () from /lib/libc.so.6
#3  0x4b600447 in __gnu_debug::_Error_formatter::_M_error () 
from /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6
#4  0x082c301e in 
__gnu_debug::_Safe_iteratorstd::_Rb_tree_iteratorstd::pairint const, 
lyx::Point , __gnu_debug_def::mapint, lyx::Point, std::lessint, 
std::allocatorstd::pairint const, lyx::Point   ::operator- 
(this=0xafcdb840) at formatter.h:387
#5  0x082c01ea in lyx::CoordCache::get (this=0x8f96fc0, text=0x90485dc, pit=6) 
at coordcache.C:58
#6  0x0856becc in lyx::LyXText::setCursorFromCoordinates (this=0x90485dc, 
[EMAIL PROTECTED], x=0, y=74) at BufferView.h:187
#7  0x08072b0d in lyx::BufferView::setCursorFromScrollbar (this=0x8f96ed0) at 
BufferView.C:489
#8  0x0885e106 in lyx::frontend::WorkArea::scrollBufferView (this=0x8f92f94, 
position=0) at WorkArea.C:248
#9  0x0891b0bd in lyx::frontend::GuiWorkArea::adjustViewWithScrollBar 
(this=0x8f92f94) at GuiWorkArea.C:259
#10 0x0891dfcc in lyx::frontend::GuiWorkArea::qt_metacall (this=0x8f92f80, 
_c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xafcdc408)
at GuiWorkArea_moc.cpp:70
#11 0x4be05c30 in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
#12 0x4be068cc in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
#13 0x4bc23df4 in QAbstractSlider::actionTriggered () 
from /usr/lib/qt4/libQtGui.so.4
#14 0x4baa576b in QAbstractSlider::triggerAction () 
from /usr/lib/qt4/libQtGui.so.4
#15 0x4baa58b4 in QAbstractSlider::setSliderPosition () 
from /usr/lib/qt4/libQtGui.so.4
#16 0x4bb17421 in QScrollBar::mouseMoveEvent () 
from /usr/lib/qt4/libQtGui.so.4
#17 0x4b8a87d3 in QWidget::event () from /usr/lib/qt4/libQtGui.so.4
#18 0x4bb16a5c in QScrollBar::event () from /usr/lib/qt4/libQtGui.so.4
#19 0x4b86031f in QApplicationPrivate::notify_helper () 
from /usr/lib/qt4/libQtGui.so.4
#20 0x4b860dc5 in QApplication::notify () from /usr/lib/qt4/libQtGui.so.4
#21 0x4b8bdd15 in QETWidget::translateMouseEvent () 
from /usr/lib/qt4/libQtGui.so.4
#22 0x4b8bcaeb in QApplication::x11ProcessEvent () 
from /usr/lib/qt4/libQtGui.so.4
#23 0x4b8cd8c4 in QEventDispatcherX11::processEvents () 
from /usr/lib/qt4/libQtGui.so.4
#24 0x4bdf3119 in QEventLoop::processEvents () 
from /usr/lib/qt4/libQtCore.so.4
#25 0x4bdf3352 in QEventLoop::exec () from /usr/lib/qt4/libQtCore.so.4
#26 0x4bdf8306 in QCoreApplication::exec () from /usr/lib/qt4/libQtCore.so.4
#27 0x4b85f947 in QApplication::exec () from /usr/lib/qt4/libQtGui.so.4
#28 0x089050f3 in lyx::frontend::GuiApplication::exec (this=0x8f24268) at 
GuiApplication.C:186
#29 0x0883769b in lyx::frontend::Application::start (this=0x0) at 
Application.C:78
#30 0x083aabe6 in lyx::LyX::priv_exec (this=0x8ec6978, [EMAIL PROTECTED], 
argv=0xafcdd300) at scoped_ptr.hpp:93
#31 0x083a931b in lyx::LyX::exec ([EMAIL PROTECTED], argv=0x6) at lyx_main.C:170
#32 0x08067eef in main (argc=1, argv=0xafcdd454) at main.C:46


 Thanks in advance,
Youre welcome, I have to thank.
Jonathan



Re: Scrollbar and multible views

2006-10-28 Thread Jonathan Vogt
Am Freitag 27 Oktober 2006 17:55 schrieb Abdelrazak Younes:
> Jonathan Vogt wrote:
> > Hi all,
> >
> > hope I don't report anything old as new again, at least I didn't find
> > anything.
> >
> > 1) Open up one Document
> > 2) Open new window and load same document
> > 3) Type some lines in new window
> > 4) change to old window and scroll down using the scrollbar
>
> I cannot reproduce that with MSVC/debug mode. Somebody else is seeing this?
>
> > =>
> > /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/debug/safe_iterator.h
> >:193: error: attempt to dereference a past-the-end iterator.
> >
> > Objects involved in the operation:
> > iterator "this" @ 0x0xafe69b20 {
> > type =
> > N11__gnu_debug14_Safe_iteratorISt17_Rb_tree_iteratorISt4pairIKiN3lyx5Poin
> > tEEEN15__gnu_debug_def3mapIiS5_St4lessIiESaIS6_E (mutable iterator);
> >   state = past-the-end;
> >   references sequence with type
> > `N15__gnu_debug_def3mapIiN3lyx5PointESt4lessIiES
> > aISt4pairIKiS2_' @ 0x0xafe69b20
> > }
>
> I need a bigger back trace to know where this happens. Do you know gdb?
I already tried but didn't know how. but here it comes, thanks for the howto.


#0  0xe410 in __kernel_vsyscall ()
#1  0x4b213fd1 in raise () from /lib/libc.so.6
#2  0x4b2157a9 in abort () from /lib/libc.so.6
#3  0x4b600447 in __gnu_debug::_Error_formatter::_M_error () 
from /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6
#4  0x082c301e in 
__gnu_debug::_Safe_iterator<std::_Rb_tree_iterator<std::pair >, __gnu_debug_def::map<int, lyx::Point, std::less, 
std::allocator<std::pair > > >::operator-> 
(this=0xafcdb840) at formatter.h:387
#5  0x082c01ea in lyx::CoordCache::get (this=0x8f96fc0, text=0x90485dc, pit=6) 
at coordcache.C:58
#6  0x0856becc in lyx::LyXText::setCursorFromCoordinates (this=0x90485dc, 
[EMAIL PROTECTED], x=0, y=74) at BufferView.h:187
#7  0x08072b0d in lyx::BufferView::setCursorFromScrollbar (this=0x8f96ed0) at 
BufferView.C:489
#8  0x0885e106 in lyx::frontend::WorkArea::scrollBufferView (this=0x8f92f94, 
position=0) at WorkArea.C:248
#9  0x0891b0bd in lyx::frontend::GuiWorkArea::adjustViewWithScrollBar 
(this=0x8f92f94) at GuiWorkArea.C:259
#10 0x0891dfcc in lyx::frontend::GuiWorkArea::qt_metacall (this=0x8f92f80, 
_c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xafcdc408)
at GuiWorkArea_moc.cpp:70
#11 0x4be05c30 in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
#12 0x4be068cc in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
#13 0x4bc23df4 in QAbstractSlider::actionTriggered () 
from /usr/lib/qt4/libQtGui.so.4
#14 0x4baa576b in QAbstractSlider::triggerAction () 
from /usr/lib/qt4/libQtGui.so.4
#15 0x4baa58b4 in QAbstractSlider::setSliderPosition () 
from /usr/lib/qt4/libQtGui.so.4
#16 0x4bb17421 in QScrollBar::mouseMoveEvent () 
from /usr/lib/qt4/libQtGui.so.4
#17 0x4b8a87d3 in QWidget::event () from /usr/lib/qt4/libQtGui.so.4
#18 0x4bb16a5c in QScrollBar::event () from /usr/lib/qt4/libQtGui.so.4
#19 0x4b86031f in QApplicationPrivate::notify_helper () 
from /usr/lib/qt4/libQtGui.so.4
#20 0x4b860dc5 in QApplication::notify () from /usr/lib/qt4/libQtGui.so.4
#21 0x4b8bdd15 in QETWidget::translateMouseEvent () 
from /usr/lib/qt4/libQtGui.so.4
#22 0x4b8bcaeb in QApplication::x11ProcessEvent () 
from /usr/lib/qt4/libQtGui.so.4
#23 0x4b8cd8c4 in QEventDispatcherX11::processEvents () 
from /usr/lib/qt4/libQtGui.so.4
#24 0x4bdf3119 in QEventLoop::processEvents () 
from /usr/lib/qt4/libQtCore.so.4
#25 0x4bdf3352 in QEventLoop::exec () from /usr/lib/qt4/libQtCore.so.4
#26 0x4bdf8306 in QCoreApplication::exec () from /usr/lib/qt4/libQtCore.so.4
#27 0x4b85f947 in QApplication::exec () from /usr/lib/qt4/libQtGui.so.4
#28 0x089050f3 in lyx::frontend::GuiApplication::exec (this=0x8f24268) at 
GuiApplication.C:186
#29 0x0883769b in lyx::frontend::Application::start (this=0x0) at 
Application.C:78
#30 0x083aabe6 in lyx::LyX::priv_exec (this=0x8ec6978, [EMAIL PROTECTED], 
argv=0xafcdd300) at scoped_ptr.hpp:93
#31 0x083a931b in lyx::LyX::exec ([EMAIL PROTECTED], argv=0x6) at lyx_main.C:170
#32 0x08067eef in main (argc=1, argv=0xafcdd454) at main.C:46

>
> Thanks in advance,
Youre welcome, I have to thank.
Jonathan



Scrollbar and multible views

2006-10-27 Thread Jonathan Vogt
Hi all,

hope I don't report anything old as new again, at least I didn't find 
anything.

1) Open up one Document
2) Open new window and load same document
3) Type some lines in new window
4) change to old window and scroll down using the scrollbar

=
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/debug/safe_iterator.h:193:
error: attempt to dereference a past-the-end iterator.

Objects involved in the operation:
iterator this @ 0x0xafe69b20 {
type = 
N11__gnu_debug14_Safe_iteratorISt17_Rb_tree_iteratorISt4pairIKiN3lyx5Poin
tEEEN15__gnu_debug_def3mapIiS5_St4lessIiESaIS6_E (mutable iterator);
  state = past-the-end;
  references sequence with type 
`N15__gnu_debug_def3mapIiN3lyx5PointESt4lessIiES
aISt4pairIKiS2_' @ 0x0xafe69b20
}

when using the cursor keys all works fine.

Jonathan

PS: what is the preffered way to report such things (bugzilla or mailinglist)?


Re: compile errors

2006-10-27 Thread Jonathan Vogt
Am Freitag 27 Oktober 2006 16:14 schrieb Bo Peng:
  8\VC\include\math.h(491): or 'float abs(float)'
  2C:\Program Files\Microsoft Visual Studio
  8\VC\include\math.h(487): or 'double abs(double)'
  2C:\Program Files\Microsoft Visual Studio
  8\VC\include\math.h(485): or 'long abs(long)'
  2C:\Program Files\Microsoft Visual Studio
  8\VC\include\stdlib.h(415): or 'int abs(int)'
  2while trying to match the argument list '(const
  lyx::time_type)'

 The problem is still there. Why not use fabs in math.h? At least this
 makes lyx compile.
Same here on linux.

Jonathan


Re: compile errors

2006-10-27 Thread Jonathan Vogt
Am Freitag 27 Oktober 2006 16:52 schrieb Peter Kümmel:
 Jonathan Vogt wrote:
  Am Freitag 27 Oktober 2006 16:14 schrieb Bo Peng:
 
  The problem is still there. Why not use fabs in math.h? At least this
  makes lyx compile.
 

  does fabs work under linux? then we could change it to using fabs.
Yes, at least makes it compile, too.
Jonathan


Scrollbar and multible views

2006-10-27 Thread Jonathan Vogt
Hi all,

hope I don't report anything old as new again, at least I didn't find 
anything.

1) Open up one Document
2) Open new window and load same document
3) Type some lines in new window
4) change to old window and scroll down using the scrollbar

=>
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/debug/safe_iterator.h:193:
error: attempt to dereference a past-the-end iterator.

Objects involved in the operation:
iterator "this" @ 0x0xafe69b20 {
type = 
N11__gnu_debug14_Safe_iteratorISt17_Rb_tree_iteratorISt4pairIKiN3lyx5Poin
tEEEN15__gnu_debug_def3mapIiS5_St4lessIiESaIS6_E (mutable iterator);
  state = past-the-end;
  references sequence with type 
`N15__gnu_debug_def3mapIiN3lyx5PointESt4lessIiES
aISt4pairIKiS2_' @ 0x0xafe69b20
}

when using the cursor keys all works fine.

Jonathan

PS: what is the preffered way to report such things (bugzilla or mailinglist)?


Re: compile errors

2006-10-27 Thread Jonathan Vogt
Am Freitag 27 Oktober 2006 16:14 schrieb Bo Peng:
> > 8\VC\include\math.h(491): or 'float abs(float)'
> > 2>C:\Program Files\Microsoft Visual Studio
> > 8\VC\include\math.h(487): or 'double abs(double)'
> > 2>C:\Program Files\Microsoft Visual Studio
> > 8\VC\include\math.h(485): or 'long abs(long)'
> > 2>C:\Program Files\Microsoft Visual Studio
> > 8\VC\include\stdlib.h(415): or 'int abs(int)'
> > 2>while trying to match the argument list '(const
> > lyx::time_type)'
>
> The problem is still there. Why not use fabs in math.h? At least this
> makes lyx compile.
Same here on linux.

Jonathan


Re: compile errors

2006-10-27 Thread Jonathan Vogt
Am Freitag 27 Oktober 2006 16:52 schrieb Peter Kümmel:
> Jonathan Vogt wrote:
> > Am Freitag 27 Oktober 2006 16:14 schrieb Bo Peng:
> >>
> >> The problem is still there. Why not use fabs in math.h? At least this
> >> makes lyx compile.
> >
>
>  does fabs work under linux? then we could change it to using fabs.
Yes, at least makes it compile, too.
Jonathan


Misplacement of math toolbar

2006-10-25 Thread Jonathan Vogt
Hi all,

first of all thanks for your work and keep it up.

I've been compiling the source from subversion for a couple of days now and I 
noticed that when starting some math the math toolbar shows up (nothing wrong 
with that) but it shows up right under the menu bar.
I also don't know how to move it or any toolbar in general. 
I attached a screenshoot so you'll understand because I don't know if I 
described it right.

Jonathan


lyx1.png
Description: PNG image


Misplacement of math toolbar

2006-10-25 Thread Jonathan Vogt
Hi all,

first of all thanks for your work and keep it up.

I've been compiling the source from subversion for a couple of days now and I 
noticed that when starting some math the math toolbar shows up (nothing wrong 
with that) but it shows up right under the menu bar.
I also don't know how to move it or any toolbar in general. 
I attached a screenshoot so you'll understand because I don't know if I 
described it right.

Jonathan


lyx1.png
Description: PNG image


Enhancement idea: Teamedit

2006-10-23 Thread Jonathan Vogt
Hi all,
I don't know if it has been discussed already, at least I didn't find anything 
on the list and the web, but I'd would appreciate if Lyx could support team 
work, i.e. a couple of people working on one document at the same time (like 
http://teamedit.sourceforge.net/)
Is it possible to use the server structure for it?

Greetings
Jonathan


Re: The cursor is seriously broken..

2006-10-23 Thread Jonathan Vogt
Am Montag 23 Oktober 2006 18:29 schrieb Michael Gerz:
 I see no cursor at all...
me too
Jonathan


Enhancement idea: Teamedit

2006-10-23 Thread Jonathan Vogt
Hi all,
I don't know if it has been discussed already, at least I didn't find anything 
on the list and the web, but I'd would appreciate if Lyx could support team 
work, i.e. a couple of people working on one document at the same time (like 
http://teamedit.sourceforge.net/)
Is it possible to use the server structure for it?

Greetings
Jonathan


Re: The cursor is seriously broken..

2006-10-23 Thread Jonathan Vogt
Am Montag 23 Oktober 2006 18:29 schrieb Michael Gerz:
> I see no cursor at all...
me too
Jonathan