Re: long algorithm

2021-07-28 Thread Herbert Voss




Am 28.07.21 um 16:47 schrieb Wolfgang Engelmann:

Back to the long algorithm:

but being a float it cannot have a pagebreak

Listings as an alternative?

a listing can be a float, too
but again: being a float it cannot have a pagebreak


sure, but a listing can have a caption with a number _without_
beeing a float.


it is broken, if too long, same as a too long algorithm


I sent you an example by private mail

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


long algorithm

2021-07-28 Thread Wolfgang Engelmann

Back to the long algorithm:

but being a float it cannot have a pagebreak

Listings as an alternative?

a listing can be a float, too
but again: being a float it cannot have a pagebreak

it is broken, if too long, same as a too long algorithm

Wolfgang

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: long algorithm

2021-07-27 Thread Herbert Voss




Am 27.07.21 um 08:49 schrieb Wolfgang Engelmann:



Am 24.07.21 um 20:37 schrieb Herbert Voss:



Am 24.07.21 um 14:57 schrieb Wolfgang Engelmann:
How could one handle a long algorithm in a float which is too long 
for a page?

Listings would be a bad alternative.



A float cannot have a pagebreak. Use a non floating environment.
Why is litings a "bad" alternative?Herbert

it is not freely shiftable as compared to the algorithm float


a listing can be a float, too.

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: long algorithm

2021-07-27 Thread Wolfgang Engelmann




Am 24.07.21 um 20:37 schrieb Herbert Voss:



Am 24.07.21 um 14:57 schrieb Wolfgang Engelmann:
How could one handle a long algorithm in a float which is too long for 
a page?

Listings would be a bad alternative.



A float cannot have a pagebreak. Use a non floating environment.
Why is litings a "bad" alternative?Herbert

it is not freely shiftable as compared to the algorithm float
Woilfgang
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: long algorithm

2021-07-24 Thread Herbert Voss




Am 24.07.21 um 14:57 schrieb Wolfgang Engelmann:
How could one handle a long algorithm in a float which is too long for 
a page?

Listings would be a bad alternative.



A float cannot have a pagebreak. Use a non floating environment.
Why is litings a "bad" alternative?


Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


long algorithm

2021-07-24 Thread Wolfgang Engelmann
How could one handle a long algorithm in a float which is too long for a 
page?

Listings would be a bad alternative.

Wolfgang
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Change Algorithm Numbering

2018-09-21 Thread Pascal Francq (Mailing lists)
Yes, it's work for me too.
Thanks Steve.

Le 21/09/18 à 20:03, Steve Hnizdur a écrit :
> Hi
> 
> If you are using algorithm2e then try
> 
> \renewcommand{\thealgocf}{A\arabic{algocf}}
> 
> It worked for me!
> 
> 
> On 20/09/18 22:12, Paul A. Rubin wrote:
>> On 09/20/2018 10:14 AM, Pascal Francq (Mailing lists) wrote:
>>> Hi,
>>> I try to change the change the numbering schema of algorithms in the
>>> form 'A1', 'A2', etc.
>>> So I add the following command in the preamble of the document:
>>> \renewcommand{\thealgorithm}{A\arabic{algorithm}}
>>> But LyX says it "thealgorithm" is undefined.
>>> Any one an idea?
>>> Thanks in advance.
>> Can you post a minimal example showing the current version of what you
>> are trying to change, and then indicate in it somewhere "I want to
>> change this piece here to A1" or whatever?
>>
>> Paul
>>
> 


-- 
Pascal Francq



Re: Change Algorithm Numbering

2018-09-21 Thread Steve Hnizdur

Hi

If you are using algorithm2e then try

\renewcommand{\thealgocf}{A\arabic{algocf}}

It worked for me!


On 20/09/18 22:12, Paul A. Rubin wrote:

On 09/20/2018 10:14 AM, Pascal Francq (Mailing lists) wrote:

Hi,
I try to change the change the numbering schema of algorithms in the
form 'A1', 'A2', etc.
So I add the following command in the preamble of the document:
\renewcommand{\thealgorithm}{A\arabic{algorithm}}
But LyX says it "thealgorithm" is undefined.
Any one an idea?
Thanks in advance.
Can you post a minimal example showing the current version of what you 
are trying to change, and then indicate in it somewhere "I want to 
change this piece here to A1" or whatever?


Paul



--

Steve Hnizdur


Re: Change Algorithm Numbering

2018-09-21 Thread Pascal Francq (Mailing lists)
Thank for you answer, but it doesn't work either.

To recapitulate:
1. I have a LyX document using the "algorithm2e" module.
2. Each time, I add new algorithm float in my document, it's label is an
increasing number (1 for the first algorithm, 2 for the second, etc.).
3. I want that this label includes first a "A": so the first algorithm
should be label "A1", the second "A2", etc.

I have try to add the following LaTeX in the document preamble:
    \renewcommand{\thealgorithm}{A\arabic{algorithm}}
\renewcommand{\thelyxalgorithm}{A\arabic{algorithm}}.
Both time, LyX says the corresponding label is unknown ("thealgorithm"
in the first case, and "thelyxalgorithm" in the second case).

Is it possible that the "algorithm2e" package introduces a new command
for the labeling?

Thanks.

Le 21/09/18 à 09:45, Steve Hnizdur a écrit :
> 
> 
> On 20/09/18 22:12, Paul A. Rubin wrote:
>> On 09/20/2018 10:14 AM, Pascal Francq (Mailing lists) wrote:
>>> Hi,
>>> I try to change the change the numbering schema of algorithms in the
>>> form 'A1', 'A2', etc.
>>> So I add the following command in the preamble of the document:
>>> \renewcommand{\thealgorithm}{A\arabic{algorithm}}
>>> But LyX says it "thealgorithm" is undefined.
>>> Any one an idea?
>>> Thanks in advance.
>> Can you post a minimal example showing the current version of what you
>> are trying to change, and then indicate in it somewhere "I want to
>> change this piece here to A1" or whatever?
>>
>> Paul
>>
> 
> Hi
> 
> Have a look in the "Code preview Pane" at the Preamble for a command
> that looks like
> 
> \newtheorem{thm}{\protect\theoremname}
> 
> or
> 
> \newtheorem{lyxalgorithm}{\protect\algorithmname}
> 
> (the one you have will depend on the modules you have loaded in Document
> Settings)
> 
> In the first case you need to do
> 
> \renewcommand{\thethm}{A\arabic{algorithm}}
> 
> and the in the second
> 
> \renewcommand{\thelyxalgorithm}{A\arabic{algorithm}}.
> 
> Note in the first case many other environments will be affected since
> they also use the "thm" counter eg Theorem, etc.
> 
> Hope that helps


-- 
Dr. Pascal Francq
Belgium


Re: Change Algorithm Numbering

2018-09-21 Thread Steve Hnizdur




On 20/09/18 22:12, Paul A. Rubin wrote:

On 09/20/2018 10:14 AM, Pascal Francq (Mailing lists) wrote:

Hi,
I try to change the change the numbering schema of algorithms in the
form 'A1', 'A2', etc.
So I add the following command in the preamble of the document:
\renewcommand{\thealgorithm}{A\arabic{algorithm}}
But LyX says it "thealgorithm" is undefined.
Any one an idea?
Thanks in advance.
Can you post a minimal example showing the current version of what you 
are trying to change, and then indicate in it somewhere "I want to 
change this piece here to A1" or whatever?


Paul



Hi

Have a look in the "Code preview Pane" at the Preamble for a command 
that looks like


\newtheorem{thm}{\protect\theoremname}

or

\newtheorem{lyxalgorithm}{\protect\algorithmname}

(the one you have will depend on the modules you have loaded in Document 
Settings)


In the first case you need to do

\renewcommand{\thethm}{A\arabic{algorithm}}

and the in the second

\renewcommand{\thelyxalgorithm}{A\arabic{algorithm}}.

Note in the first case many other environments will be affected since 
they also use the "thm" counter eg Theorem, etc.


Hope that helps
--

Steve Hnizdur


Re: Change Algorithm Numbering

2018-09-20 Thread Paul A. Rubin

On 09/20/2018 10:14 AM, Pascal Francq (Mailing lists) wrote:

Hi,
I try to change the change the numbering schema of algorithms in the
form 'A1', 'A2', etc.
So I add the following command in the preamble of the document:
\renewcommand{\thealgorithm}{A\arabic{algorithm}}
But LyX says it "thealgorithm" is undefined.
Any one an idea?
Thanks in advance.
Can you post a minimal example showing the current version of what you 
are trying to change, and then indicate in it somewhere "I want to 
change this piece here to A1" or whatever?


Paul



Change Algorithm Numbering

2018-09-20 Thread Pascal Francq (Mailing lists)
Hi,
I try to change the change the numbering schema of algorithms in the
form 'A1', 'A2', etc.
So I add the following command in the preamble of the document:
\renewcommand{\thealgorithm}{A\arabic{algorithm}}
But LyX says it "thealgorithm" is undefined.
Any one an idea?
Thanks in advance.
-- 
Pascal Francq



algorithm float placed too high?

2016-01-13 Thread Neal Becker
I'm preparing camera ready version for IEEE conference, and I've hit a snag.  
I inserted an algorithm float, and it got placed at the top of a column.  
But the top of the 2 columns don't align!  Any ideas?  I've included a 
snapshot showing the problem area.

float algorithm

2015-12-20 Thread Sajjad
Hello forum,

I am trying to insert float algorithm into the report I am writing. I did
the following:

1. Insert->Float->Algorithm
2. Inside Algorithm I inserted program listing
3. Wrote down the procedure.

When I generate the pdf , the algorithm is over-lapping the page number .
Is it possible to break the algorithm automatically once it cannot be fit
into one page and continue to the next page ? The issue can be seen in the
following link :


http://i.imgur.com/P02CjO8.png

As you can see page number 47 in the middle of the algorithm.


Any idea to get rid of this issue ?


Thanks


Re: float algorithm

2015-12-20 Thread Sajjad
Hello forum,

I think I found kind of a solution to the issue. Instead of having program
listing inside floating algorithm , I am having just the program listing
and now the code snippets are split automatically.

But I am encountering another issue. How do I enter some kind of caption to
the program listing I have just added, so that it gets listed into the list
of algorithms at the beginning of the report.

A better suggestion is expected than the one described.

Thanks

On Sun, Dec 20, 2015 at 4:36 PM, Sajjad <dosto.wa...@gmail.com> wrote:

> Hello forum,
>
> I am trying to insert float algorithm into the report I am writing. I did
> the following:
>
> 1. Insert->Float->Algorithm
> 2. Inside Algorithm I inserted program listing
> 3. Wrote down the procedure.
>
> When I generate the pdf , the algorithm is over-lapping the page number .
> Is it possible to break the algorithm automatically once it cannot be fit
> into one page and continue to the next page ? The issue can be seen in the
> following link :
>
>
> http://i.imgur.com/P02CjO8.png
>
> As you can see page number 47 in the middle of the algorithm.
>
>
> Any idea to get rid of this issue ?
>
>
> Thanks
>


indenting the algorithm

2015-09-23 Thread Sajjad
Hello forum,

I am trying the write algorithm by using the insert->float->algorithm. But
I cannot insert indentation while writing down the algorithm.


Ant reference/hint to resolve this issue?


Thanks


Insert-Float-Algorithm is missing!

2014-09-08 Thread Китов Виктор
Hello all,I have two versions of Lyx simultaneously: Lyx 2.0.4 and Lyx 2.1.1 under Windows 7.Neigher of them has menu option to insert an algorithm - if I go to Insert-Float there is no option to insert an algorithm! Please tell what to do, because visualising algorithms is a very convenient feature. Best wishes,Victor. 


Re: Insert-Float-Algorithm is missing!

2014-09-08 Thread Jürgen Spitzmüller
Am Montag 08 September 2014, 12:58:33 schrieb Китов Виктор:
 I have two versions of Lyx simultaneously: Lyx 2.0.4 and Lyx 2.1.1 under
 Windows 7. Neigher of them has menu option to insert an algorithm - if I go
 to Insert-Float there is no option to insert an algorithm! Please tell
 what to do, because visualising algorithms is a very convenient feature. 

Do you have the LaTeX package float installed?

Jürgen

 Best wishes,
 Victor.
  




Insert-Float-Algorithm is missing!

2014-09-08 Thread Китов Виктор
Hello all,I have two versions of Lyx simultaneously: Lyx 2.0.4 and Lyx 2.1.1 under Windows 7.Neigher of them has menu option to insert an algorithm - if I go to Insert-Float there is no option to insert an algorithm! Please tell what to do, because visualising algorithms is a very convenient feature. Best wishes,Victor. 


Re: Insert-Float-Algorithm is missing!

2014-09-08 Thread Jürgen Spitzmüller
Am Montag 08 September 2014, 12:58:33 schrieb Китов Виктор:
 I have two versions of Lyx simultaneously: Lyx 2.0.4 and Lyx 2.1.1 under
 Windows 7. Neigher of them has menu option to insert an algorithm - if I go
 to Insert-Float there is no option to insert an algorithm! Please tell
 what to do, because visualising algorithms is a very convenient feature. 

Do you have the LaTeX package float installed?

Jürgen

 Best wishes,
 Victor.
  




Insert->Float->Algorithm is missing!

2014-09-08 Thread Китов Виктор
Hello all,I have two versions of Lyx simultaneously: Lyx 2.0.4 and Lyx 2.1.1 under Windows 7.Neigher of them has menu option to insert an algorithm - if I go to Insert->Float there is no option to insert an algorithm! Please tell what to do, because visualising algorithms is a very convenient feature. Best wishes,Victor. 


Re: Insert->Float->Algorithm is missing!

2014-09-08 Thread Jürgen Spitzmüller
Am Montag 08 September 2014, 12:58:33 schrieb Китов Виктор:
> I have two versions of Lyx simultaneously: Lyx 2.0.4 and Lyx 2.1.1 under
> Windows 7. Neigher of them has menu option to insert an algorithm - if I go
> to Insert->Float there is no option to insert an algorithm! Please tell
> what to do, because visualising algorithms is a very convenient feature. 

Do you have the LaTeX package "float" installed?

Jürgen

> Best wishes,
> Victor.
>  




Re: simple algorithm float numbering (1, 2, 3,...)

2014-01-17 Thread Matěj Šmíd
I found out the solution. Just insert in the Latex Preamble:


\usepackage{chngcntr}

\counterwithout{figure}{chapter}

\counterwithout{equation}{chapter}

\counterwithout{algorithm}{chapter}


and you got simple (1, 2, 3, ...) numbering of figures, equations and
algorithms.


Cheers,

Matej.


On Fri, Jan 10, 2014 at 12:04 PM, Matěj Šmíd m...@matejsmid.cz wrote:

 Hello,

 I would like to have simple document-wide numbering of the algorithm
 floats (1, 2, 3, ...).

 Currently the algorithm floats are defined as:

 \floatstyle{ruled}

 \newfloat{algorithm}{tbp}{loa}[chapter]
 \providecommand{\algorithmname}{Algorithm}
 \floatname{algorithm}{\protect\algorithmname}

 The only change needed is to remove the [chapter] optional argument to
 \newfloat{algorithm}

 \newfloat{algorithm}{tbp}{loa}

 Is there a possibility to redefine the algorithm float?

 Thanks,
 Matej.






Re: simple algorithm float numbering (1, 2, 3,...)

2014-01-17 Thread Matěj Šmíd
I found out the solution. Just insert in the Latex Preamble:


\usepackage{chngcntr}

\counterwithout{figure}{chapter}

\counterwithout{equation}{chapter}

\counterwithout{algorithm}{chapter}


and you got simple (1, 2, 3, ...) numbering of figures, equations and
algorithms.


Cheers,

Matej.


On Fri, Jan 10, 2014 at 12:04 PM, Matěj Šmíd m...@matejsmid.cz wrote:

 Hello,

 I would like to have simple document-wide numbering of the algorithm
 floats (1, 2, 3, ...).

 Currently the algorithm floats are defined as:

 \floatstyle{ruled}

 \newfloat{algorithm}{tbp}{loa}[chapter]
 \providecommand{\algorithmname}{Algorithm}
 \floatname{algorithm}{\protect\algorithmname}

 The only change needed is to remove the [chapter] optional argument to
 \newfloat{algorithm}

 \newfloat{algorithm}{tbp}{loa}

 Is there a possibility to redefine the algorithm float?

 Thanks,
 Matej.






Re: simple algorithm float numbering (1, 2, 3,...)

2014-01-17 Thread Matěj Šmíd
I found out the solution. Just insert in the Latex Preamble:


\usepackage{chngcntr}

\counterwithout{figure}{chapter}

\counterwithout{equation}{chapter}

\counterwithout{algorithm}{chapter}


and you got simple (1, 2, 3, ...) numbering of figures, equations and
algorithms.


Cheers,

Matej.


On Fri, Jan 10, 2014 at 12:04 PM, Matěj Šmíd <m...@matejsmid.cz> wrote:

> Hello,
>
> I would like to have simple document-wide numbering of the algorithm
> floats (1, 2, 3, ...).
>
> Currently the algorithm floats are defined as:
>
> \floatstyle{ruled}
>
> \newfloat{algorithm}{tbp}{loa}[chapter]
> \providecommand{\algorithmname}{Algorithm}
> \floatname{algorithm}{\protect\algorithmname}
>
> The only change needed is to remove the [chapter] optional argument to
> \newfloat{algorithm}
>
> \newfloat{algorithm}{tbp}{loa}
>
> Is there a possibility to redefine the algorithm float?
>
> Thanks,
> Matej.
>
>
>
>


simple algorithm float numbering (1, 2, 3,...)

2014-01-10 Thread Matěj Šmíd
Hello,

I would like to have simple document-wide numbering of the algorithm floats
(1, 2, 3, ...).

Currently the algorithm floats are defined as:

\floatstyle{ruled}

\newfloat{algorithm}{tbp}{loa}[chapter]
\providecommand{\algorithmname}{Algorithm}
\floatname{algorithm}{\protect\algorithmname}

The only change needed is to remove the [chapter] optional argument to
\newfloat{algorithm}

\newfloat{algorithm}{tbp}{loa}

Is there a possibility to redefine the algorithm float?

Thanks,
Matej.


simple algorithm float numbering (1, 2, 3,...)

2014-01-10 Thread Matěj Šmíd
Hello,

I would like to have simple document-wide numbering of the algorithm floats
(1, 2, 3, ...).

Currently the algorithm floats are defined as:

\floatstyle{ruled}

\newfloat{algorithm}{tbp}{loa}[chapter]
\providecommand{\algorithmname}{Algorithm}
\floatname{algorithm}{\protect\algorithmname}

The only change needed is to remove the [chapter] optional argument to
\newfloat{algorithm}

\newfloat{algorithm}{tbp}{loa}

Is there a possibility to redefine the algorithm float?

Thanks,
Matej.


simple algorithm float numbering (1, 2, 3,...)

2014-01-10 Thread Matěj Šmíd
Hello,

I would like to have simple document-wide numbering of the algorithm floats
(1, 2, 3, ...).

Currently the algorithm floats are defined as:

\floatstyle{ruled}

\newfloat{algorithm}{tbp}{loa}[chapter]
\providecommand{\algorithmname}{Algorithm}
\floatname{algorithm}{\protect\algorithmname}

The only change needed is to remove the [chapter] optional argument to
\newfloat{algorithm}

\newfloat{algorithm}{tbp}{loa}

Is there a possibility to redefine the algorithm float?

Thanks,
Matej.


Re: Custom algorithm format

2013-02-15 Thread Paul A . Rubin
Start with an algorithm float (Help  Embedded Objects, section 3.2). Inside the
float, I would try the Listings package (Help  Embedded Objects, section 8).
Listings has a boatload of options; you'll want to consult its user manual to
get the precise format you desire.

Paul





Re: Custom algorithm format

2013-02-15 Thread Paul A . Rubin
Start with an algorithm float (Help  Embedded Objects, section 3.2). Inside the
float, I would try the Listings package (Help  Embedded Objects, section 8).
Listings has a boatload of options; you'll want to consult its user manual to
get the precise format you desire.

Paul





Re: Custom algorithm format

2013-02-15 Thread Paul A . Rubin
Start with an algorithm float (Help > Embedded Objects, section 3.2). Inside the
float, I would try the Listings package (Help > Embedded Objects, section 8).
Listings has a boatload of options; you'll want to consult its user manual to
get the precise format you desire.

Paul





Re: svjour3 algorithm float broken in 2.0.3

2013-01-10 Thread Scott Kostyshak
On Tue, Sep 4, 2012 at 8:23 AM, Ivo Couckuyt ivo.couck...@ugent.be wrote:
 Hi,

 I found the problem in the layout files:
 The actual problem lies in numreport.inc which adds a chapter counter to the
 algorithm float.

 numreport.inc is included in svcommon.inc (after all std*.inc includes) which
 in its turn is included by svglobal.layout/svglobal3.layout etc.

 Of course chapter counters in papers dont make much sense, a quick workaround
 is to redefine algorithm by putting the following in the local layout:
 
 Format 35
 Float
  Type  algorithm
  GuiName   Algorithm
  Placement tbp
  Extension loa
  NumberWithin  none
  Style ruled
  ListName  List of Algorithms
  IsPredefined  false
  UsesFloatPkg  true
  RefPrefix alg
 End
 

 Which is copy-pasted from stdfloats.inc, here NumberWithin is defined as none
 instead of chapter which I hope is the standard behaviour. At least I can
 generate pdf's with algorithm floats again.

 best regards,
 Ivo

Was this regression fixed?

Scott

 Hi,

 I'm experiencing exactly the same problem (see mail below) since I upgraded
 from lyx 2.0.1 to lyx 2.0.4. You can easily reproduce:
 - File-new from template
 - choose springer/svjour3.lyx
 - remove the figure floats (the pictures were not found in my installation,
 opensuse)
 - add one algorithm float (it's the float that generates the error, not the
 algorithm itself).
 - generate pdf

 I obviously could downgrade again, but I have read somewhere that lyx 2.0.4
 includes better sprinter (svjour3/svglobal) layouts. Any idea on how I can fix
 this quickly ?

 If there is no simple fix, I'll just downgrade for the moment as I really need
 it.

 best regards,
 Ivo

 John Perry
 Thu, 29 Mar 2012 19:36:41 -0700

 Hello

 The svjour3 class used to work fine in Lyx 2.0, even with the algorithm float.
 I just upgraded to Lyx 2.0.3 on two different computers, and I get the error,


 ! LaTeX Error: No counter 'chapter' defined.
 See the LaTeX manual or LaTeX Companion for explanation.
 Type H return for immediate help.
 ...
 l.22 \newfloat{algorithm}{tbp}{loa}[chapter]


 Any advice on getting around this? I checked the layouts, and they're not
 introducing this.

 regards
 john perry



Re: svjour3 algorithm float broken in 2.0.3

2013-01-10 Thread Scott Kostyshak
On Tue, Sep 4, 2012 at 8:23 AM, Ivo Couckuyt ivo.couck...@ugent.be wrote:
 Hi,

 I found the problem in the layout files:
 The actual problem lies in numreport.inc which adds a chapter counter to the
 algorithm float.

 numreport.inc is included in svcommon.inc (after all std*.inc includes) which
 in its turn is included by svglobal.layout/svglobal3.layout etc.

 Of course chapter counters in papers dont make much sense, a quick workaround
 is to redefine algorithm by putting the following in the local layout:
 
 Format 35
 Float
  Type  algorithm
  GuiName   Algorithm
  Placement tbp
  Extension loa
  NumberWithin  none
  Style ruled
  ListName  List of Algorithms
  IsPredefined  false
  UsesFloatPkg  true
  RefPrefix alg
 End
 

 Which is copy-pasted from stdfloats.inc, here NumberWithin is defined as none
 instead of chapter which I hope is the standard behaviour. At least I can
 generate pdf's with algorithm floats again.

 best regards,
 Ivo

Was this regression fixed?

Scott

 Hi,

 I'm experiencing exactly the same problem (see mail below) since I upgraded
 from lyx 2.0.1 to lyx 2.0.4. You can easily reproduce:
 - File-new from template
 - choose springer/svjour3.lyx
 - remove the figure floats (the pictures were not found in my installation,
 opensuse)
 - add one algorithm float (it's the float that generates the error, not the
 algorithm itself).
 - generate pdf

 I obviously could downgrade again, but I have read somewhere that lyx 2.0.4
 includes better sprinter (svjour3/svglobal) layouts. Any idea on how I can fix
 this quickly ?

 If there is no simple fix, I'll just downgrade for the moment as I really need
 it.

 best regards,
 Ivo

 John Perry
 Thu, 29 Mar 2012 19:36:41 -0700

 Hello

 The svjour3 class used to work fine in Lyx 2.0, even with the algorithm float.
 I just upgraded to Lyx 2.0.3 on two different computers, and I get the error,


 ! LaTeX Error: No counter 'chapter' defined.
 See the LaTeX manual or LaTeX Companion for explanation.
 Type H return for immediate help.
 ...
 l.22 \newfloat{algorithm}{tbp}{loa}[chapter]


 Any advice on getting around this? I checked the layouts, and they're not
 introducing this.

 regards
 john perry



Re: svjour3 & algorithm float broken in 2.0.3

2013-01-10 Thread Scott Kostyshak
On Tue, Sep 4, 2012 at 8:23 AM, Ivo Couckuyt <ivo.couck...@ugent.be> wrote:
> Hi,
>
> I found the problem in the layout files:
> The actual problem lies in numreport.inc which adds a chapter counter to the
> algorithm float.
>
> numreport.inc is included in svcommon.inc (after all std*.inc includes) which
> in its turn is included by svglobal.layout/svglobal3.layout etc.
>
> Of course chapter counters in papers dont make much sense, a quick workaround
> is to redefine algorithm by putting the following in the local layout:
> "
> Format 35
> Float
>  Type  algorithm
>  GuiName   Algorithm
>  Placement tbp
>  Extension loa
>  NumberWithin  none
>  Style ruled
>  ListName  "List of Algorithms"
>  IsPredefined  false
>  UsesFloatPkg  true
>  RefPrefix alg
> End
> "
>
> Which is copy-pasted from stdfloats.inc, here NumberWithin is defined as none
> instead of chapter which I hope is the standard behaviour. At least I can
> generate pdf's with algorithm floats again.
>
> best regards,
> Ivo

Was this regression fixed?

Scott

> Hi,
>
> I'm experiencing exactly the same problem (see mail below) since I upgraded
> from lyx 2.0.1 to lyx 2.0.4. You can easily reproduce:
> - File->new from template
> - choose springer/svjour3.lyx
> - remove the figure floats (the pictures were not found in my installation,
> opensuse)
> - add one algorithm float (it's the float that generates the error, not the
> algorithm itself).
> - generate pdf
>
> I obviously could downgrade again, but I have read somewhere that lyx 2.0.4
> includes better sprinter (svjour3/svglobal) layouts. Any idea on how I can fix
> this quickly ?
>
> If there is no simple fix, I'll just downgrade for the moment as I really need
> it.
>
> best regards,
> Ivo
>
> John Perry
> Thu, 29 Mar 2012 19:36:41 -0700
>
> Hello
>
> The svjour3 class used to work fine in Lyx 2.0, even with the algorithm float.
> I just upgraded to Lyx 2.0.3 on two different computers, and I get the error,
>
>
> ! LaTeX Error: No counter 'chapter' defined.
> See the LaTeX manual or LaTeX Companion for explanation.
> Type H  for immediate help.
> ...
> l.22 \newfloat{algorithm}{tbp}{loa}[chapter]
>
>
> Any advice on getting around this? I checked the layouts, and they're not
> introducing this.
>
> regards
> john perry
>


Re: Insert-Float-Algorithm results in Latex errors

2012-12-28 Thread José Matos
On 12/27/2012 05:23 PM, Regina Anger wrote:
 Hi,

 Updating memoir helped, it works now like a charme. Thanks a lot!
 I wonder however, how can Fedora distribute packages *that* old.

 Thx, Regi

There are two reasons:
* due to the license of texlive packages (the license was incorrect
or non-free for some)
This process was finished around January of this year, when upstream
texlive finished the auditing of all packages

* time to integrate the changes necessary to Fedora packages, since
Fedora 17 was coming soon it was impossible to integrate those changes
on time, that is why the changes slipped to Fedora 18.

-- 
José Matos



Re: Insert-Float-Algorithm results in Latex errors

2012-12-28 Thread José Matos
On 12/27/2012 05:23 PM, Regina Anger wrote:
 Hi,

 Updating memoir helped, it works now like a charme. Thanks a lot!
 I wonder however, how can Fedora distribute packages *that* old.

 Thx, Regi

There are two reasons:
* due to the license of texlive packages (the license was incorrect
or non-free for some)
This process was finished around January of this year, when upstream
texlive finished the auditing of all packages

* time to integrate the changes necessary to Fedora packages, since
Fedora 17 was coming soon it was impossible to integrate those changes
on time, that is why the changes slipped to Fedora 18.

-- 
José Matos



Re: Insert->Float->Algorithm results in Latex errors

2012-12-28 Thread José Matos
On 12/27/2012 05:23 PM, Regina Anger wrote:
> Hi,
>
> Updating memoir helped, it works now like a charme. Thanks a lot!
> I wonder however, how can Fedora distribute packages *that* old.
>
> Thx, Regi

There are two reasons:
* due to the license of texlive packages (the license was incorrect
or non-free for some)
This process was finished around January of this year, when upstream
texlive finished the auditing of all packages

* time to integrate the changes necessary to Fedora packages, since
Fedora 17 was coming soon it was impossible to integrate those changes
on time, that is why the changes slipped to Fedora 18.

-- 
José Matos



Re: Insert-Float-Algorithm results in Latex errors

2012-12-27 Thread Jürgen Spitzmüller
Regina Anger wrote:
 Hi folks,
 
 I would like to insert an algorithm float in my document.
 However, even for empty documents, doing so results in:
 
 LaTeX Error: Command \newfloat already defined.
 LaTeX Error: Missing \begin{document}.
 
 
 Any idea what could be wrong here?

Your file compiles fine here. This is with most recent TL 2012 and LyX 
2.0.6dev. Maybe some of your packages are outdated. The versions are printed 
to the log file if you enter \listfiles into the preamble. Here's mine:

 *File List*
  memoir.cls2011/03/06 v3.6j configurable book, report, article document 
class
   ifpdf.sty2011/01/30 v2.3 Provides the ifpdf switch (HO)
  ifetex.sty2011/12/15 v1.2 ifetex
 ifxetex.sty2010/09/12 v0.6 Provides ifxetex conditional
ifluatex.sty2010/03/01 v1.3 Provides the ifluatex switch (HO)
etex.sty1998/03/26 v2.0 eTeX basic definition package (PEB)
   mem10.clo2008/01/30 v0.3 memoir class 10pt size option
mempatch.sty2009/07/24 v6.0f Patches for memoir class v1.6180339
 fontenc.sty
   t1enc.def2005/09/27 v1.99g Standard LaTeX file
inputenc.sty2008/03/30 v1.1d Input encoding file
  latin9.def2008/03/30 v1.1d Input encoding file
   float.sty2001/11/08 v1.3d Float enhancements (AL)
  amsthm.sty2009/07/02 v2.20.1
 amsmath.sty2000/07/18 v2.13 AMS math features
 amstext.sty2000/06/29 v2.01
  amsgen.sty1999/11/30 v2.0
  amsbsy.sty1999/11/29 v1.2d
  amsopn.sty1999/12/14 v2.01 operator names
   babel.sty2008/07/08 v3.8m The Babel package
 english.ldf2005/03/30 v3.3o English support from the babel system
 ***

HTH
Jürgen


RE: Insert-Float-Algorithm results in Latex errors

2012-12-27 Thread Regina Anger
Hello Jürgen,


 Your file compiles fine here. This is with most recent TL 2012 and LyX 
 2.0.6dev. Maybe some of your packages are outdated. The versions are printed 
 to the log file if you enter \listfiles into the preamble. Here's mine:

I am using the most recent packages (lyx, latex, ...) distributed with 
Fedora-17-updates:


 *File List*
  memoir.cls2005/09/25 v1.618 configurable document class
   mem10.clo2002/07/27 v0.2 memoir class 10pt size option
mempatch.sty2007/01/22 v4.8 Patches for memoir class v1.618
 fontenc.sty
   t1enc.def2005/09/27 v1.99g Standard LaTeX file
inputenc.sty2006/05/05 v1.1b Input encoding file
  latin9.def2006/05/05 v1.1b Input encoding file
   float.sty2001/11/08 v1.3d Float enhancements (AL)
  amsthm.sty2004/08/06 v2.20
 amsmath.sty2000/07/18 v2.13 AMS math features
 amstext.sty2000/06/29 v2.01
  amsgen.sty1999/11/30 v2.0
  amsbsy.sty1999/11/29 v1.2d
  amsopn.sty1999/12/14 v2.01 operator names
which seem to be *really* outdated, compared to the package-versions you list.

Does this mean I manually have to update my latex installation? Is there any 
way you can recommend, without re-compiling my whole software-stack?
The whole situation is a bit sad, as I am sitting behind a ~100kBit/s GPRS line 
:/

Thx, Reggi
  

Re: Insert-Float-Algorithm results in Latex errors

2012-12-27 Thread Jürgen Spitzmüller
Regina Anger wrote:
 Does this mean I manually have to update my latex installation? Is there any
 way you can recommend, without re-compiling my whole software-stack? The
 whole situation is a bit sad, as I am sitting behind a ~100kBit/s GPRS line
 :/

Probably updating memoir will suffice. You can grab the most recent version 
from CTAN [1], unpack the files by running latex memoir.ins and latex 
mempatch.ins and then put them in you TEXMF home directory (usually 
~/texmf/tex/latex/memoir). Run texhash afterwards to update the filename 
database.

HTH
Jürgen

[1] http://mirrors.ctan.org/macros/latex/contrib/memoir.zip


Re: Insert-Float-Algorithm results in Latex errors

2012-12-27 Thread Richard Heck

On 12/27/2012 11:07 AM, Regina Anger wrote:

Hello Jürgen,


 Your file compiles fine here. This is with most recent TL 2012 and LyX
 2.0.6dev. Maybe some of your packages are outdated. The versions are 
printed

 to the log file if you enter \listfiles into the preamble. Here's mine:

I am using the most recent packages (lyx, latex, ...) distributed with 
Fedora-17-updates:


*File List*

memoir.cls 2005/09/25 v1.618 configurable document class

mem10.clo 2002/07/27 v0.2 memoir class 10pt size option

mempatch.sty 2007/01/22 v4.8 Patches for memoir class v1.618

fontenc.sty

t1enc.def 2005/09/27 v1.99g Standard LaTeX file

inputenc.sty 2006/05/05 v1.1b Input encoding file

latin9.def 2006/05/05 v1.1b Input encoding file

float.sty 2001/11/08 v1.3d Float enhancements (AL)

amsthm.sty 2004/08/06 v2.20

amsmath.sty 2000/07/18 v2.13 AMS math features

amstext.sty 2000/06/29 v2.01

amsgen.sty 1999/11/30 v2.0

amsbsy.sty 1999/11/29 v1.2d

amsopn.sty 1999/12/14 v2.01 operator names


which seem to be *really* outdated, compared to the package-versions 
you list.


Does this mean I manually have to update my latex installation? Is 
there any way you can recommend, without re-compiling my whole 
software-stack?
The whole situation is a bit sad, as I am sitting behind a ~100kBit/s 
GPRS line :/


Ugh. Well, if you have a laptop and can take it somewhere with better 
speed, you might want to try using the updated TeXLive repository, as 
described here:

http://fedoraproject.org/wiki/Features/TeXLive
It takes a while to download it the first time, but then you should be OK.

Richard



Re: Insert-Float-Algorithm results in Latex errors

2012-12-27 Thread José Matos
On 12/27/2012 04:07 PM, Regina Anger wrote:
 Does this mean I manually have to update my latex installation? Is
 there any way you can recommend, without re-compiling my whole
 software-stack?
 The whole situation is a bit sad, as I am sitting behind a ~100kBit/s
 GPRS line :/

 Thx, Reggi

For Fedora 17, there is the texlive-2012 repository that has all the
available packages:

http://fedoraproject.org/wiki/Features/TeXLive (search for the
instructions regarding Fedora 17)

If you follow the instructions there you can update the packages to
newer versions.

This repository was put in place by Fedora texlive maintainer and the
repository is a backport.

For Fedora 18 (to be released in January) and newer the packages there
are the default.

-- 
José Matos



RE: Insert-Float-Algorithm results in Latex errors

2012-12-27 Thread Regina Anger
Hi,

Updating memoir helped, it works now like a charme. Thanks a lot!
I wonder however, how can Fedora distribute packages *that* old.

Thx, Regi
  

RE: Insert-Float-Algorithm results in Latex errors

2012-12-27 Thread Regina Anger
Hi again,

 http://fedoraproject.org/wiki/Features/TeXLive (search for the
 instructions regarding Fedora 17)
 If you follow the instructions there you can update the packages to
 newer versions.
 
 For Fedora 18 (to be released in January) and newer the packages there
 are the default.

Glad to know there are updated packages for F17 available, too.
Thanks for letting me know and for helping me with the memoir issue.

- Reggi
  

Re: Insert-Float-Algorithm results in Latex errors

2012-12-27 Thread Jürgen Spitzmüller
Regina Anger wrote:
 Hi folks,
 
 I would like to insert an algorithm float in my document.
 However, even for empty documents, doing so results in:
 
 LaTeX Error: Command \newfloat already defined.
 LaTeX Error: Missing \begin{document}.
 
 
 Any idea what could be wrong here?

Your file compiles fine here. This is with most recent TL 2012 and LyX 
2.0.6dev. Maybe some of your packages are outdated. The versions are printed 
to the log file if you enter \listfiles into the preamble. Here's mine:

 *File List*
  memoir.cls2011/03/06 v3.6j configurable book, report, article document 
class
   ifpdf.sty2011/01/30 v2.3 Provides the ifpdf switch (HO)
  ifetex.sty2011/12/15 v1.2 ifetex
 ifxetex.sty2010/09/12 v0.6 Provides ifxetex conditional
ifluatex.sty2010/03/01 v1.3 Provides the ifluatex switch (HO)
etex.sty1998/03/26 v2.0 eTeX basic definition package (PEB)
   mem10.clo2008/01/30 v0.3 memoir class 10pt size option
mempatch.sty2009/07/24 v6.0f Patches for memoir class v1.6180339
 fontenc.sty
   t1enc.def2005/09/27 v1.99g Standard LaTeX file
inputenc.sty2008/03/30 v1.1d Input encoding file
  latin9.def2008/03/30 v1.1d Input encoding file
   float.sty2001/11/08 v1.3d Float enhancements (AL)
  amsthm.sty2009/07/02 v2.20.1
 amsmath.sty2000/07/18 v2.13 AMS math features
 amstext.sty2000/06/29 v2.01
  amsgen.sty1999/11/30 v2.0
  amsbsy.sty1999/11/29 v1.2d
  amsopn.sty1999/12/14 v2.01 operator names
   babel.sty2008/07/08 v3.8m The Babel package
 english.ldf2005/03/30 v3.3o English support from the babel system
 ***

HTH
Jürgen


RE: Insert-Float-Algorithm results in Latex errors

2012-12-27 Thread Regina Anger
Hello Jürgen,


 Your file compiles fine here. This is with most recent TL 2012 and LyX 
 2.0.6dev. Maybe some of your packages are outdated. The versions are printed 
 to the log file if you enter \listfiles into the preamble. Here's mine:

I am using the most recent packages (lyx, latex, ...) distributed with 
Fedora-17-updates:


 *File List*
  memoir.cls2005/09/25 v1.618 configurable document class
   mem10.clo2002/07/27 v0.2 memoir class 10pt size option
mempatch.sty2007/01/22 v4.8 Patches for memoir class v1.618
 fontenc.sty
   t1enc.def2005/09/27 v1.99g Standard LaTeX file
inputenc.sty2006/05/05 v1.1b Input encoding file
  latin9.def2006/05/05 v1.1b Input encoding file
   float.sty2001/11/08 v1.3d Float enhancements (AL)
  amsthm.sty2004/08/06 v2.20
 amsmath.sty2000/07/18 v2.13 AMS math features
 amstext.sty2000/06/29 v2.01
  amsgen.sty1999/11/30 v2.0
  amsbsy.sty1999/11/29 v1.2d
  amsopn.sty1999/12/14 v2.01 operator names
which seem to be *really* outdated, compared to the package-versions you list.

Does this mean I manually have to update my latex installation? Is there any 
way you can recommend, without re-compiling my whole software-stack?
The whole situation is a bit sad, as I am sitting behind a ~100kBit/s GPRS line 
:/

Thx, Reggi
  

Re: Insert-Float-Algorithm results in Latex errors

2012-12-27 Thread Jürgen Spitzmüller
Regina Anger wrote:
 Does this mean I manually have to update my latex installation? Is there any
 way you can recommend, without re-compiling my whole software-stack? The
 whole situation is a bit sad, as I am sitting behind a ~100kBit/s GPRS line
 :/

Probably updating memoir will suffice. You can grab the most recent version 
from CTAN [1], unpack the files by running latex memoir.ins and latex 
mempatch.ins and then put them in you TEXMF home directory (usually 
~/texmf/tex/latex/memoir). Run texhash afterwards to update the filename 
database.

HTH
Jürgen

[1] http://mirrors.ctan.org/macros/latex/contrib/memoir.zip


Re: Insert-Float-Algorithm results in Latex errors

2012-12-27 Thread Richard Heck

On 12/27/2012 11:07 AM, Regina Anger wrote:

Hello Jürgen,


 Your file compiles fine here. This is with most recent TL 2012 and LyX
 2.0.6dev. Maybe some of your packages are outdated. The versions are 
printed

 to the log file if you enter \listfiles into the preamble. Here's mine:

I am using the most recent packages (lyx, latex, ...) distributed with 
Fedora-17-updates:


*File List*

memoir.cls 2005/09/25 v1.618 configurable document class

mem10.clo 2002/07/27 v0.2 memoir class 10pt size option

mempatch.sty 2007/01/22 v4.8 Patches for memoir class v1.618

fontenc.sty

t1enc.def 2005/09/27 v1.99g Standard LaTeX file

inputenc.sty 2006/05/05 v1.1b Input encoding file

latin9.def 2006/05/05 v1.1b Input encoding file

float.sty 2001/11/08 v1.3d Float enhancements (AL)

amsthm.sty 2004/08/06 v2.20

amsmath.sty 2000/07/18 v2.13 AMS math features

amstext.sty 2000/06/29 v2.01

amsgen.sty 1999/11/30 v2.0

amsbsy.sty 1999/11/29 v1.2d

amsopn.sty 1999/12/14 v2.01 operator names


which seem to be *really* outdated, compared to the package-versions 
you list.


Does this mean I manually have to update my latex installation? Is 
there any way you can recommend, without re-compiling my whole 
software-stack?
The whole situation is a bit sad, as I am sitting behind a ~100kBit/s 
GPRS line :/


Ugh. Well, if you have a laptop and can take it somewhere with better 
speed, you might want to try using the updated TeXLive repository, as 
described here:

http://fedoraproject.org/wiki/Features/TeXLive
It takes a while to download it the first time, but then you should be OK.

Richard



Re: Insert-Float-Algorithm results in Latex errors

2012-12-27 Thread José Matos
On 12/27/2012 04:07 PM, Regina Anger wrote:
 Does this mean I manually have to update my latex installation? Is
 there any way you can recommend, without re-compiling my whole
 software-stack?
 The whole situation is a bit sad, as I am sitting behind a ~100kBit/s
 GPRS line :/

 Thx, Reggi

For Fedora 17, there is the texlive-2012 repository that has all the
available packages:

http://fedoraproject.org/wiki/Features/TeXLive (search for the
instructions regarding Fedora 17)

If you follow the instructions there you can update the packages to
newer versions.

This repository was put in place by Fedora texlive maintainer and the
repository is a backport.

For Fedora 18 (to be released in January) and newer the packages there
are the default.

-- 
José Matos



RE: Insert-Float-Algorithm results in Latex errors

2012-12-27 Thread Regina Anger
Hi,

Updating memoir helped, it works now like a charme. Thanks a lot!
I wonder however, how can Fedora distribute packages *that* old.

Thx, Regi
  

RE: Insert-Float-Algorithm results in Latex errors

2012-12-27 Thread Regina Anger
Hi again,

 http://fedoraproject.org/wiki/Features/TeXLive (search for the
 instructions regarding Fedora 17)
 If you follow the instructions there you can update the packages to
 newer versions.
 
 For Fedora 18 (to be released in January) and newer the packages there
 are the default.

Glad to know there are updated packages for F17 available, too.
Thanks for letting me know and for helping me with the memoir issue.

- Reggi
  

Re: Insert->Float->Algorithm results in Latex errors

2012-12-27 Thread Jürgen Spitzmüller
Regina Anger wrote:
> Hi folks,
> 
> I would like to insert an algorithm float in my document.
> However, even for empty documents, doing so results in:
> 
> LaTeX Error: Command \newfloat already defined.
> LaTeX Error: Missing \begin{document}.
> 
> 
> Any idea what could be wrong here?

Your file compiles fine here. This is with most recent TL 2012 and LyX 
2.0.6dev. Maybe some of your packages are outdated. The versions are printed 
to the log file if you enter \listfiles into the preamble. Here's mine:

 *File List*
  memoir.cls2011/03/06 v3.6j configurable book, report, article document 
class
   ifpdf.sty2011/01/30 v2.3 Provides the ifpdf switch (HO)
  ifetex.sty2011/12/15 v1.2 ifetex
 ifxetex.sty2010/09/12 v0.6 Provides ifxetex conditional
ifluatex.sty2010/03/01 v1.3 Provides the ifluatex switch (HO)
etex.sty1998/03/26 v2.0 eTeX basic definition package (PEB)
   mem10.clo2008/01/30 v0.3 memoir class 10pt size option
mempatch.sty2009/07/24 v6.0f Patches for memoir class v1.6180339
 fontenc.sty
   t1enc.def2005/09/27 v1.99g Standard LaTeX file
inputenc.sty2008/03/30 v1.1d Input encoding file
  latin9.def2008/03/30 v1.1d Input encoding file
   float.sty2001/11/08 v1.3d Float enhancements (AL)
  amsthm.sty2009/07/02 v2.20.1
 amsmath.sty2000/07/18 v2.13 AMS math features
 amstext.sty2000/06/29 v2.01
  amsgen.sty1999/11/30 v2.0
  amsbsy.sty1999/11/29 v1.2d
  amsopn.sty1999/12/14 v2.01 operator names
   babel.sty2008/07/08 v3.8m The Babel package
 english.ldf2005/03/30 v3.3o English support from the babel system
 ***

HTH
Jürgen


RE: Insert->Float->Algorithm results in Latex errors

2012-12-27 Thread Regina Anger
Hello Jürgen,


> Your file compiles fine here. This is with most recent TL 2012 and LyX 
> 2.0.6dev. Maybe some of your packages are outdated. The versions are printed 
> to the log file if you enter \listfiles into the preamble. Here's mine:

I am using the most recent packages (lyx, latex, ...) distributed with 
Fedora-17-updates:


 *File List*
  memoir.cls2005/09/25 v1.618 configurable document class
   mem10.clo2002/07/27 v0.2 memoir class 10pt size option
mempatch.sty2007/01/22 v4.8 Patches for memoir class v1.618
 fontenc.sty
   t1enc.def2005/09/27 v1.99g Standard LaTeX file
inputenc.sty2006/05/05 v1.1b Input encoding file
  latin9.def2006/05/05 v1.1b Input encoding file
   float.sty2001/11/08 v1.3d Float enhancements (AL)
  amsthm.sty2004/08/06 v2.20
 amsmath.sty2000/07/18 v2.13 AMS math features
 amstext.sty2000/06/29 v2.01
  amsgen.sty1999/11/30 v2.0
  amsbsy.sty1999/11/29 v1.2d
  amsopn.sty1999/12/14 v2.01 operator names
which seem to be *really* outdated, compared to the package-versions you list.

Does this mean I manually have to update my latex installation? Is there any 
way you can recommend, without re-compiling my whole software-stack?
The whole situation is a bit sad, as I am sitting behind a ~100kBit/s GPRS line 
:/

Thx, Reggi
  

Re: Insert->Float->Algorithm results in Latex errors

2012-12-27 Thread Jürgen Spitzmüller
Regina Anger wrote:
> Does this mean I manually have to update my latex installation? Is there any
> way you can recommend, without re-compiling my whole software-stack? The
> whole situation is a bit sad, as I am sitting behind a ~100kBit/s GPRS line
> :/

Probably updating memoir will suffice. You can grab the most recent version 
from CTAN [1], unpack the files by running "latex memoir.ins" and "latex 
mempatch.ins" and then put them in you TEXMF home directory (usually 
~/texmf/tex/latex/memoir). Run "texhash" afterwards to update the filename 
database.

HTH
Jürgen

[1] http://mirrors.ctan.org/macros/latex/contrib/memoir.zip


Re: Insert->Float->Algorithm results in Latex errors

2012-12-27 Thread Richard Heck

On 12/27/2012 11:07 AM, Regina Anger wrote:

Hello Jürgen,


> Your file compiles fine here. This is with most recent TL 2012 and LyX
> 2.0.6dev. Maybe some of your packages are outdated. The versions are 
printed

> to the log file if you enter \listfiles into the preamble. Here's mine:

I am using the most recent packages (lyx, latex, ...) distributed with 
Fedora-17-updates:


*File List*

memoir.cls 2005/09/25 v1.618 configurable document class

mem10.clo 2002/07/27 v0.2 memoir class 10pt size option

mempatch.sty 2007/01/22 v4.8 Patches for memoir class v1.618

fontenc.sty

t1enc.def 2005/09/27 v1.99g Standard LaTeX file

inputenc.sty 2006/05/05 v1.1b Input encoding file

latin9.def 2006/05/05 v1.1b Input encoding file

float.sty 2001/11/08 v1.3d Float enhancements (AL)

amsthm.sty 2004/08/06 v2.20

amsmath.sty 2000/07/18 v2.13 AMS math features

amstext.sty 2000/06/29 v2.01

amsgen.sty 1999/11/30 v2.0

amsbsy.sty 1999/11/29 v1.2d

amsopn.sty 1999/12/14 v2.01 operator names


which seem to be *really* outdated, compared to the package-versions 
you list.


Does this mean I manually have to update my latex installation? Is 
there any way you can recommend, without re-compiling my whole 
software-stack?
The whole situation is a bit sad, as I am sitting behind a ~100kBit/s 
GPRS line :/


Ugh. Well, if you have a laptop and can take it somewhere with better 
speed, you might want to try using the updated TeXLive repository, as 
described here:

http://fedoraproject.org/wiki/Features/TeXLive
It takes a while to download it the first time, but then you should be OK.

Richard



Re: Insert->Float->Algorithm results in Latex errors

2012-12-27 Thread José Matos
On 12/27/2012 04:07 PM, Regina Anger wrote:
> Does this mean I manually have to update my latex installation? Is
> there any way you can recommend, without re-compiling my whole
> software-stack?
> The whole situation is a bit sad, as I am sitting behind a ~100kBit/s
> GPRS line :/
>
> Thx, Reggi

For Fedora 17, there is the texlive-2012 repository that has all the
available packages:

http://fedoraproject.org/wiki/Features/TeXLive (search for the
instructions regarding Fedora 17)

If you follow the instructions there you can update the packages to
newer versions.

This repository was put in place by Fedora texlive maintainer and the
repository is a backport.

For Fedora 18 (to be released in January) and newer the packages there
are the default.

-- 
José Matos



RE: Insert->Float->Algorithm results in Latex errors

2012-12-27 Thread Regina Anger
Hi,

Updating memoir helped, it works now like a charme. Thanks a lot!
I wonder however, how can Fedora distribute packages *that* old.

Thx, Regi
  

RE: Insert->Float->Algorithm results in Latex errors

2012-12-27 Thread Regina Anger
Hi again,

> http://fedoraproject.org/wiki/Features/TeXLive (search for the
> instructions regarding Fedora 17)
> If you follow the instructions there you can update the packages to
> newer versions.
> 
> For Fedora 18 (to be released in January) and newer the packages there
> are the default.

Glad to know there are updated packages for F17 available, too.
Thanks for letting me know and for helping me with the memoir issue.

- Reggi
  

Re: svjour3 algorithm float broken in 2.0.3

2012-09-04 Thread Ivo Couckuyt
Hi,

I found the problem in the layout files:
The actual problem lies in numreport.inc which adds a chapter counter to the 
algorithm float.

numreport.inc is included in svcommon.inc (after all std*.inc includes) which 
in its turn is included by svglobal.layout/svglobal3.layout etc.

Of course chapter counters in papers dont make much sense, a quick workaround 
is to redefine algorithm by putting the following in the local layout:

Format 35
Float
 Type  algorithm
 GuiName   Algorithm
 Placement tbp
 Extension loa
 NumberWithin  none
 Style ruled
 ListName  List of Algorithms
 IsPredefined  false
 UsesFloatPkg  true
 RefPrefix alg
End


Which is copy-pasted from stdfloats.inc, here NumberWithin is defined as none 
instead of chapter which I hope is the standard behaviour. At least I can 
generate pdf's with algorithm floats again.

best regards,
Ivo


Hi,

I'm experiencing exactly the same problem (see mail below) since I upgraded 
from lyx 2.0.1 to lyx 2.0.4. You can easily reproduce:
- File-new from template
- choose springer/svjour3.lyx
- remove the figure floats (the pictures were not found in my installation, 
opensuse)
- add one algorithm float (it's the float that generates the error, not the 
algorithm itself).
- generate pdf

I obviously could downgrade again, but I have read somewhere that lyx 2.0.4 
includes better sprinter (svjour3/svglobal) layouts. Any idea on how I can fix 
this quickly ?

If there is no simple fix, I'll just downgrade for the moment as I really need 
it.

best regards,
Ivo

John Perry
Thu, 29 Mar 2012 19:36:41 -0700

Hello

The svjour3 class used to work fine in Lyx 2.0, even with the algorithm float. 
I just upgraded to Lyx 2.0.3 on two different computers, and I get the error,


! LaTeX Error: No counter 'chapter' defined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H return for immediate help.
...
l.22 \newfloat{algorithm}{tbp}{loa}[chapter]


Any advice on getting around this? I checked the layouts, and they're not 
introducing this.

regards
john perry



Re: svjour3 algorithm float broken in 2.0.3

2012-09-04 Thread Ivo Couckuyt
Hi,

I found the problem in the layout files:
The actual problem lies in numreport.inc which adds a chapter counter to the 
algorithm float.

numreport.inc is included in svcommon.inc (after all std*.inc includes) which 
in its turn is included by svglobal.layout/svglobal3.layout etc.

Of course chapter counters in papers dont make much sense, a quick workaround 
is to redefine algorithm by putting the following in the local layout:

Format 35
Float
 Type  algorithm
 GuiName   Algorithm
 Placement tbp
 Extension loa
 NumberWithin  none
 Style ruled
 ListName  List of Algorithms
 IsPredefined  false
 UsesFloatPkg  true
 RefPrefix alg
End


Which is copy-pasted from stdfloats.inc, here NumberWithin is defined as none 
instead of chapter which I hope is the standard behaviour. At least I can 
generate pdf's with algorithm floats again.

best regards,
Ivo


Hi,

I'm experiencing exactly the same problem (see mail below) since I upgraded 
from lyx 2.0.1 to lyx 2.0.4. You can easily reproduce:
- File-new from template
- choose springer/svjour3.lyx
- remove the figure floats (the pictures were not found in my installation, 
opensuse)
- add one algorithm float (it's the float that generates the error, not the 
algorithm itself).
- generate pdf

I obviously could downgrade again, but I have read somewhere that lyx 2.0.4 
includes better sprinter (svjour3/svglobal) layouts. Any idea on how I can fix 
this quickly ?

If there is no simple fix, I'll just downgrade for the moment as I really need 
it.

best regards,
Ivo

John Perry
Thu, 29 Mar 2012 19:36:41 -0700

Hello

The svjour3 class used to work fine in Lyx 2.0, even with the algorithm float. 
I just upgraded to Lyx 2.0.3 on two different computers, and I get the error,


! LaTeX Error: No counter 'chapter' defined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H return for immediate help.
...
l.22 \newfloat{algorithm}{tbp}{loa}[chapter]


Any advice on getting around this? I checked the layouts, and they're not 
introducing this.

regards
john perry



Re: svjour3 & algorithm float broken in 2.0.3

2012-09-04 Thread Ivo Couckuyt
Hi,

I found the problem in the layout files:
The actual problem lies in numreport.inc which adds a chapter counter to the 
algorithm float.

numreport.inc is included in svcommon.inc (after all std*.inc includes) which 
in its turn is included by svglobal.layout/svglobal3.layout etc.

Of course chapter counters in papers dont make much sense, a quick workaround 
is to redefine algorithm by putting the following in the local layout:
"
Format 35
Float
 Type  algorithm
 GuiName   Algorithm
 Placement tbp
 Extension loa
 NumberWithin  none
 Style ruled
 ListName  "List of Algorithms"
 IsPredefined  false
 UsesFloatPkg  true
 RefPrefix alg
End
"

Which is copy-pasted from stdfloats.inc, here NumberWithin is defined as none 
instead of chapter which I hope is the standard behaviour. At least I can 
generate pdf's with algorithm floats again.

best regards,
Ivo


Hi,

I'm experiencing exactly the same problem (see mail below) since I upgraded 
from lyx 2.0.1 to lyx 2.0.4. You can easily reproduce:
- File->new from template
- choose springer/svjour3.lyx
- remove the figure floats (the pictures were not found in my installation, 
opensuse)
- add one algorithm float (it's the float that generates the error, not the 
algorithm itself).
- generate pdf

I obviously could downgrade again, but I have read somewhere that lyx 2.0.4 
includes better sprinter (svjour3/svglobal) layouts. Any idea on how I can fix 
this quickly ?

If there is no simple fix, I'll just downgrade for the moment as I really need 
it.

best regards,
Ivo

John Perry
Thu, 29 Mar 2012 19:36:41 -0700

Hello

The svjour3 class used to work fine in Lyx 2.0, even with the algorithm float. 
I just upgraded to Lyx 2.0.3 on two different computers, and I get the error,


! LaTeX Error: No counter 'chapter' defined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H  for immediate help.
...
l.22 \newfloat{algorithm}{tbp}{loa}[chapter]


Any advice on getting around this? I checked the layouts, and they're not 
introducing this.

regards
john perry



Re: svjour3 algorithm float broken in 2.0.3

2012-08-31 Thread Ivo Couckuyt
Hi,

I'm experiencing exactly the same problem (see mail below) since I upgraded 
from lyx 2.0.1 to lyx 2.0.4. You can easily reproduce:
- File-new from template
- choose springer/svjour3.lyx
- remove the figure floats (the pictures were not found in my installation, 
opensuse)
- add one algorithm float (it's the float that generates the error, not the 
algorithm itself).
- generate pdf

I obviously could downgrade again, but I have read somewhere that lyx 2.0.4 
includes better sprinter (svjour3/svglobal) layouts. Any idea on how I can fix 
this quickly ?

If there is no simple fix, I'll just downgrade for the moment as I really need 
it.

best regards,
Ivo

John Perry
Thu, 29 Mar 2012 19:36:41 -0700

Hello

The svjour3 class used to work fine in Lyx 2.0, even with the algorithm float. 
I just upgraded to Lyx 2.0.3 on two different computers, and I get the error,


! LaTeX Error: No counter 'chapter' defined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H return for immediate help.
...
l.22 \newfloat{algorithm}{tbp}{loa}[chapter]


Any advice on getting around this? I checked the layouts, and they're not 
introducing this.

regards
john perry




Re: svjour3 algorithm float broken in 2.0.3

2012-08-31 Thread Ivo Couckuyt
Hi,

I'm experiencing exactly the same problem (see mail below) since I upgraded 
from lyx 2.0.1 to lyx 2.0.4. You can easily reproduce:
- File-new from template
- choose springer/svjour3.lyx
- remove the figure floats (the pictures were not found in my installation, 
opensuse)
- add one algorithm float (it's the float that generates the error, not the 
algorithm itself).
- generate pdf

I obviously could downgrade again, but I have read somewhere that lyx 2.0.4 
includes better sprinter (svjour3/svglobal) layouts. Any idea on how I can fix 
this quickly ?

If there is no simple fix, I'll just downgrade for the moment as I really need 
it.

best regards,
Ivo

John Perry
Thu, 29 Mar 2012 19:36:41 -0700

Hello

The svjour3 class used to work fine in Lyx 2.0, even with the algorithm float. 
I just upgraded to Lyx 2.0.3 on two different computers, and I get the error,


! LaTeX Error: No counter 'chapter' defined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H return for immediate help.
...
l.22 \newfloat{algorithm}{tbp}{loa}[chapter]


Any advice on getting around this? I checked the layouts, and they're not 
introducing this.

regards
john perry




Re: svjour3 & algorithm float broken in 2.0.3

2012-08-31 Thread Ivo Couckuyt
Hi,

I'm experiencing exactly the same problem (see mail below) since I upgraded 
from lyx 2.0.1 to lyx 2.0.4. You can easily reproduce:
- File->new from template
- choose springer/svjour3.lyx
- remove the figure floats (the pictures were not found in my installation, 
opensuse)
- add one algorithm float (it's the float that generates the error, not the 
algorithm itself).
- generate pdf

I obviously could downgrade again, but I have read somewhere that lyx 2.0.4 
includes better sprinter (svjour3/svglobal) layouts. Any idea on how I can fix 
this quickly ?

If there is no simple fix, I'll just downgrade for the moment as I really need 
it.

best regards,
Ivo

John Perry
Thu, 29 Mar 2012 19:36:41 -0700

Hello

The svjour3 class used to work fine in Lyx 2.0, even with the algorithm float. 
I just upgraded to Lyx 2.0.3 on two different computers, and I get the error,


! LaTeX Error: No counter 'chapter' defined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H  for immediate help.
...
l.22 \newfloat{algorithm}{tbp}{loa}[chapter]


Any advice on getting around this? I checked the layouts, and they're not 
introducing this.

regards
john perry




svjour3 algorithm float broken in 2.0.3

2012-03-29 Thread John Perry
Hello

The svjour3 class used to work fine in Lyx 2.0, even with the algorithm float. 
I just upgraded to Lyx 2.0.3 on two different computers, and I get the error,

! LaTeX Error: No counter 'chapter' defined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H return for immediate help.
...
l.22 \newfloat{algorithm}{tbp}{loa}[chapter]


Any advice on getting around this? I checked the layouts, and they're not 
introducing this.

regards
john perry



svjour3 algorithm float broken in 2.0.3

2012-03-29 Thread John Perry
Hello

The svjour3 class used to work fine in Lyx 2.0, even with the algorithm float. 
I just upgraded to Lyx 2.0.3 on two different computers, and I get the error,

! LaTeX Error: No counter 'chapter' defined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H return for immediate help.
...
l.22 \newfloat{algorithm}{tbp}{loa}[chapter]


Any advice on getting around this? I checked the layouts, and they're not 
introducing this.

regards
john perry



svjour3 & algorithm float broken in 2.0.3

2012-03-29 Thread John Perry
Hello

The svjour3 class used to work fine in Lyx 2.0, even with the algorithm float. 
I just upgraded to Lyx 2.0.3 on two different computers, and I get the error,

! LaTeX Error: No counter 'chapter' defined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H  for immediate help.
...
l.22 \newfloat{algorithm}{tbp}{loa}[chapter]


Any advice on getting around this? I checked the layouts, and they're not 
introducing this.

regards
john perry



Re: Confusion algorithm vs. listing

2012-03-09 Thread Neal Becker
Guenter Milde wrote:

 On 2012-03-07, Neal Becker wrote:
 I can insert my code listing as a float in 2 ways, it appears.
 
 I can insert an algorithm float, then insert a program listing into it.  This
 results in a caption 'Algorithm ...'
 
 Else, I can insert a program listing, enter the settings dialog, and select
 float.  I can then add a caption, and it will say 'Listing ...'.
 
 There does not appear to be a way to decide later I want to change all those
 'Algorithms' to 'Listings'.  Also, the look of these 2 floats is quite
 different.  Seems like this should be more unified.
 
 I rather assume the documentation should make more clear that these are
 completely different things. The algorithm is intended for mathematical
 algorigthms, not code.
 
 You might try to change one instance in LyX and then (looking at the
 differences) the others in the *.lyx file with a text editor.
 
 Günter

I like the way Algorithm looks, with a heavy rule above the caption.  This is 
apparantly produced in Algorithm using 
\floatstyle{ruled}

Is there some way to achieve the same effect in listings?  I know there is 
frame=lines

option for listings, which will produce a thin rule above/below code, but I 
also 
want a heavy rule above caption:

=
caption

code




Re: Confusion algorithm vs. listing

2012-03-09 Thread Neal Becker
Guenter Milde wrote:

 On 2012-03-07, Neal Becker wrote:
 I can insert my code listing as a float in 2 ways, it appears.
 
 I can insert an algorithm float, then insert a program listing into it.  This
 results in a caption 'Algorithm ...'
 
 Else, I can insert a program listing, enter the settings dialog, and select
 float.  I can then add a caption, and it will say 'Listing ...'.
 
 There does not appear to be a way to decide later I want to change all those
 'Algorithms' to 'Listings'.  Also, the look of these 2 floats is quite
 different.  Seems like this should be more unified.
 
 I rather assume the documentation should make more clear that these are
 completely different things. The algorithm is intended for mathematical
 algorigthms, not code.
 
 You might try to change one instance in LyX and then (looking at the
 differences) the others in the *.lyx file with a text editor.
 
 Günter

I like the way Algorithm looks, with a heavy rule above the caption.  This is 
apparantly produced in Algorithm using 
\floatstyle{ruled}

Is there some way to achieve the same effect in listings?  I know there is 
frame=lines

option for listings, which will produce a thin rule above/below code, but I 
also 
want a heavy rule above caption:

=
caption

code




Re: Confusion algorithm vs. listing

2012-03-09 Thread Neal Becker
Guenter Milde wrote:

> On 2012-03-07, Neal Becker wrote:
>> I can insert my code listing as a float in 2 ways, it appears.
> 
>> I can insert an algorithm float, then insert a program listing into it.  This
>> results in a caption 'Algorithm ...'
> 
>> Else, I can insert a program listing, enter the settings dialog, and select
>> float.  I can then add a caption, and it will say 'Listing ...'.
> 
>> There does not appear to be a way to decide later I want to change all those
>> 'Algorithms' to 'Listings'.  Also, the look of these 2 floats is quite
>> different.  Seems like this should be more unified.
> 
> I rather assume the documentation should make more clear that these are
> completely different things. The "algorithm" is intended for mathematical
> algorigthms, not code.
> 
> You might try to change one instance in LyX and then (looking at the
> differences) the others in the *.lyx file with a text editor.
> 
> Günter

I like the way Algorithm looks, with a heavy rule above the caption.  This is 
apparantly produced in Algorithm using 
\floatstyle{ruled}

Is there some way to achieve the same effect in listings?  I know there is 
frame=lines

option for listings, which will produce a thin rule above/below code, but I 
also 
want a heavy rule above caption:

=
caption

code




Re: Confusion algorithm vs. listing

2012-03-08 Thread Guenter Milde
On 2012-03-07, Neal Becker wrote:
 I can insert my code listing as a float in 2 ways, it appears.

 I can insert an algorithm float, then insert a program listing into it.  This 
 results in a caption 'Algorithm ...'

 Else, I can insert a program listing, enter the settings dialog, and select 
 float.  I can then add a caption, and it will say 'Listing ...'.

 There does not appear to be a way to decide later I want to change all those 
 'Algorithms' to 'Listings'.  Also, the look of these 2 floats is quite 
 different.  Seems like this should be more unified.

I rather assume the documentation should make more clear that these are
completely different things. The algorithm is intended for mathematical
algorigthms, not code.

You might try to change one instance in LyX and then (looking at the
differences) the others in the *.lyx file with a text editor.

Günter



Re: Confusion algorithm vs. listing

2012-03-08 Thread Guenter Milde
On 2012-03-07, Neal Becker wrote:
 I can insert my code listing as a float in 2 ways, it appears.

 I can insert an algorithm float, then insert a program listing into it.  This 
 results in a caption 'Algorithm ...'

 Else, I can insert a program listing, enter the settings dialog, and select 
 float.  I can then add a caption, and it will say 'Listing ...'.

 There does not appear to be a way to decide later I want to change all those 
 'Algorithms' to 'Listings'.  Also, the look of these 2 floats is quite 
 different.  Seems like this should be more unified.

I rather assume the documentation should make more clear that these are
completely different things. The algorithm is intended for mathematical
algorigthms, not code.

You might try to change one instance in LyX and then (looking at the
differences) the others in the *.lyx file with a text editor.

Günter



Re: Confusion algorithm vs. listing

2012-03-08 Thread Guenter Milde
On 2012-03-07, Neal Becker wrote:
> I can insert my code listing as a float in 2 ways, it appears.

> I can insert an algorithm float, then insert a program listing into it.  This 
> results in a caption 'Algorithm ...'

> Else, I can insert a program listing, enter the settings dialog, and select 
> float.  I can then add a caption, and it will say 'Listing ...'.

> There does not appear to be a way to decide later I want to change all those 
> 'Algorithms' to 'Listings'.  Also, the look of these 2 floats is quite 
> different.  Seems like this should be more unified.

I rather assume the documentation should make more clear that these are
completely different things. The "algorithm" is intended for mathematical
algorigthms, not code.

You might try to change one instance in LyX and then (looking at the
differences) the others in the *.lyx file with a text editor.

Günter



Confusion algorithm vs. listing

2012-03-07 Thread Neal Becker
I can insert my code listing as a float in 2 ways, it appears.

I can insert an algorithm float, then insert a program listing into it.  This 
results in a caption 'Algorithm ...'

Else, I can insert a program listing, enter the settings dialog, and select 
float.  I can then add a caption, and it will say 'Listing ...'.

There does not appear to be a way to decide later I want to change all those 
'Algorithms' to 'Listings'.  Also, the look of these 2 floats is quite 
different.  Seems like this should be more unified.



Confusion algorithm vs. listing

2012-03-07 Thread Neal Becker
I can insert my code listing as a float in 2 ways, it appears.

I can insert an algorithm float, then insert a program listing into it.  This 
results in a caption 'Algorithm ...'

Else, I can insert a program listing, enter the settings dialog, and select 
float.  I can then add a caption, and it will say 'Listing ...'.

There does not appear to be a way to decide later I want to change all those 
'Algorithms' to 'Listings'.  Also, the look of these 2 floats is quite 
different.  Seems like this should be more unified.



Confusion algorithm vs. listing

2012-03-07 Thread Neal Becker
I can insert my code listing as a float in 2 ways, it appears.

I can insert an algorithm float, then insert a program listing into it.  This 
results in a caption 'Algorithm ...'

Else, I can insert a program listing, enter the settings dialog, and select 
float.  I can then add a caption, and it will say 'Listing ...'.

There does not appear to be a way to decide later I want to change all those 
'Algorithms' to 'Listings'.  Also, the look of these 2 floats is quite 
different.  Seems like this should be more unified.



Re: Rename algorithm to program listing – How to get my program listings into my article?

2011-02-10 Thread Manveru
2011/1/26 Niko Schwarz niko.schw...@googlemail.com:
 Hi, I'm using LyX with the springer LNCS article class. In my previous
 work, all the program listings I had to write could reasonably well be
 called algorithms, so I used the algorithm class in a float. This
 time, they aren't really algorithms, they're just program listings.
 So, I'd the surrounding float to be called program listing, not
 algorithm.

 What to do?

LyX has listings in Inset menu. You receive fully configurable
listings, however if you want floats with captions, you probably need
to write a module.

-- 
Manveru
jabber: manv...@manveru.pl
     gg: 1624001
   http://www.manveru.pl


Re: Rename algorithm to program listing – How to get my program listings into my article?

2011-02-10 Thread Manveru
2011/1/26 Niko Schwarz niko.schw...@googlemail.com:
 Hi, I'm using LyX with the springer LNCS article class. In my previous
 work, all the program listings I had to write could reasonably well be
 called algorithms, so I used the algorithm class in a float. This
 time, they aren't really algorithms, they're just program listings.
 So, I'd the surrounding float to be called program listing, not
 algorithm.

 What to do?

LyX has listings in Inset menu. You receive fully configurable
listings, however if you want floats with captions, you probably need
to write a module.

-- 
Manveru
jabber: manv...@manveru.pl
     gg: 1624001
   http://www.manveru.pl


Re: Rename "algorithm" to "program listing" – How to get my program listings into my article?

2011-02-10 Thread Manveru
2011/1/26 Niko Schwarz <niko.schw...@googlemail.com>:
> Hi, I'm using LyX with the springer LNCS article class. In my previous
> work, all the program listings I had to write could reasonably well be
> called "algorithms," so I used the algorithm class in a float. This
> time, they aren't really algorithms, they're just program listings.
> So, I'd the surrounding float to be called "program listing," not
> "algorithm."
>
> What to do?

LyX has listings in Inset menu. You receive fully configurable
listings, however if you want floats with captions, you probably need
to write a module.

-- 
Manveru
jabber: manv...@manveru.pl
     gg: 1624001
   http://www.manveru.pl


Rename algorithm to program listing – How to get my program listings into my article?

2011-01-26 Thread Niko Schwarz
Hi, I'm using LyX with the springer LNCS article class. In my previous
work, all the program listings I had to write could reasonably well be
called algorithms, so I used the algorithm class in a float. This
time, they aren't really algorithms, they're just program listings.
So, I'd the surrounding float to be called program listing, not
algorithm.

What to do?

Niko


Re: Rename algorithm to program listing – How to get my program listings into my article?

2011-01-26 Thread Paul Rubin
Niko Schwarz niko.schwarz at googlemail.com writes:

 
 Hi, I'm using LyX with the springer LNCS article class. In my previous
 work, all the program listings I had to write could reasonably well be
 called algorithms, so I used the algorithm class in a float. This
 time, they aren't really algorithms, they're just program listings.
 So, I'd the surrounding float to be called program listing, not
 algorithm.
 

If you will have exclusively program listings and no algorithm floats, you can
put the listings in algorithm floats and add to your preamble
\floatname{algorithm}{Program Listing}.  That will change the float captions to
Program Listing 1, Program Listing 2 etc. in the output (they'll still say
Algorithm in the LyX GUI).  Note that if you insert a List of Algorithms, the
heading of that will still use the word algorithm.

If you want to mix algorithms and program listings, you'll need to declare a new
float class for the program listings and insert the floats using ERT.

/Paul





Rename algorithm to program listing – How to get my program listings into my article?

2011-01-26 Thread Niko Schwarz
Hi, I'm using LyX with the springer LNCS article class. In my previous
work, all the program listings I had to write could reasonably well be
called algorithms, so I used the algorithm class in a float. This
time, they aren't really algorithms, they're just program listings.
So, I'd the surrounding float to be called program listing, not
algorithm.

What to do?

Niko


Re: Rename algorithm to program listing – How to get my program listings into my article?

2011-01-26 Thread Paul Rubin
Niko Schwarz niko.schwarz at googlemail.com writes:

 
 Hi, I'm using LyX with the springer LNCS article class. In my previous
 work, all the program listings I had to write could reasonably well be
 called algorithms, so I used the algorithm class in a float. This
 time, they aren't really algorithms, they're just program listings.
 So, I'd the surrounding float to be called program listing, not
 algorithm.
 

If you will have exclusively program listings and no algorithm floats, you can
put the listings in algorithm floats and add to your preamble
\floatname{algorithm}{Program Listing}.  That will change the float captions to
Program Listing 1, Program Listing 2 etc. in the output (they'll still say
Algorithm in the LyX GUI).  Note that if you insert a List of Algorithms, the
heading of that will still use the word algorithm.

If you want to mix algorithms and program listings, you'll need to declare a new
float class for the program listings and insert the floats using ERT.

/Paul





Rename "algorithm" to "program listing" – How to get my program listings into my article?

2011-01-26 Thread Niko Schwarz
Hi, I'm using LyX with the springer LNCS article class. In my previous
work, all the program listings I had to write could reasonably well be
called "algorithms," so I used the algorithm class in a float. This
time, they aren't really algorithms, they're just program listings.
So, I'd the surrounding float to be called "program listing," not
"algorithm."

What to do?

Niko


Re: Rename "algorithm" to "program listing" – How to get my program listings into my article?

2011-01-26 Thread Paul Rubin
Niko Schwarz  googlemail.com> writes:

> 
> Hi, I'm using LyX with the springer LNCS article class. In my previous
> work, all the program listings I had to write could reasonably well be
> called "algorithms," so I used the algorithm class in a float. This
> time, they aren't really algorithms, they're just program listings.
> So, I'd the surrounding float to be called "program listing," not
> "algorithm."
> 

If you will have exclusively program listings and no algorithm floats, you can
put the listings in algorithm floats and add to your preamble
\floatname{algorithm}{Program Listing}.  That will change the float captions to
"Program Listing 1", "Program Listing 2" etc. in the output (they'll still say
"Algorithm" in the LyX GUI).  Note that if you insert a List of Algorithms, the
heading of that will still use the word "algorithm".

If you want to mix algorithms and program listings, you'll need to declare a new
float class for the program listings and insert the floats using ERT.

/Paul





Re: multi page Algorithm Floats ?

2009-08-28 Thread Helge Hafting

Jaime Huerta Cepas wrote:

Hi all,

I wonder if there is any way of allowing Algorithm Float boxes to start in
the middle of one page, and end in the next one. I'm using these kind of
floats to include pieces of highlighted source code, so I guess text could
be perfectly splitted.


Then a float is not what you need. Floats float around, precisely 
because they need to stay in one piece. (table, picture, ...)


If your algorithm can be split, then it don't need a float.
Write your algorithm, just don't insert a float and you'll be fine.

If you want nice formatting for your algorithm, consider
Insert-Program Listing Listings are nice for computer code and 
similiar stuff. You can specify fonts, you can have syntax highlighting,

you can have automatic line numbering if you like. Just right-click the
listing box, and you'll see all the options.

You can type listings into your document, but a listing may also get its 
content from (parts of) an external file. (Insert-File-child document, 
set the type to listing) This makes it possible to
list parts of actual source code. That way, the working code and the 
document is always in sync - because the same file is used for both. No 
need to fix the document after fixing a bug. :-)


Helge Hafting


Re: multi page Algorithm Floats ?

2009-08-28 Thread Helge Hafting

Jaime Huerta Cepas wrote:

Hi all,

I wonder if there is any way of allowing Algorithm Float boxes to start in
the middle of one page, and end in the next one. I'm using these kind of
floats to include pieces of highlighted source code, so I guess text could
be perfectly splitted.


Then a float is not what you need. Floats float around, precisely 
because they need to stay in one piece. (table, picture, ...)


If your algorithm can be split, then it don't need a float.
Write your algorithm, just don't insert a float and you'll be fine.

If you want nice formatting for your algorithm, consider
Insert-Program Listing Listings are nice for computer code and 
similiar stuff. You can specify fonts, you can have syntax highlighting,

you can have automatic line numbering if you like. Just right-click the
listing box, and you'll see all the options.

You can type listings into your document, but a listing may also get its 
content from (parts of) an external file. (Insert-File-child document, 
set the type to listing) This makes it possible to
list parts of actual source code. That way, the working code and the 
document is always in sync - because the same file is used for both. No 
need to fix the document after fixing a bug. :-)


Helge Hafting


Re: multi page Algorithm Floats ?

2009-08-28 Thread Helge Hafting

Jaime Huerta Cepas wrote:

Hi all,

I wonder if there is any way of allowing Algorithm Float boxes to start in
the middle of one page, and end in the next one. I'm using these kind of
floats to include pieces of highlighted source code, so I guess text could
be perfectly splitted.


Then a float is not what you need. Floats float around, precisely 
because they need to stay in one piece. (table, picture, ...)


If your algorithm can be split, then it don't need a float.
Write your algorithm, just don't insert a float and you'll be fine.

If you want nice formatting for your algorithm, consider
"Insert->Program Listing" Listings are nice for computer code and 
similiar stuff. You can specify fonts, you can have syntax highlighting,

you can have automatic line numbering if you like. Just right-click the
listing box, and you'll see all the options.

You can type listings into your document, but a listing may also get its 
content from (parts of) an external file. (Insert->File->child document, 
set the type to "listing") This makes it possible to
list parts of actual source code. That way, the working code and the 
document is always in sync - because the same file is used for both. No 
need to fix the document after fixing a bug. :-)


Helge Hafting


Re: multi page Algorithm Floats ?

2009-08-26 Thread Luca Carlon
Jaime Huerta Cepas jhue...@... writes:

 
 Hi all,
 
 I wonder if there is any way of allowing Algorithm Float boxes to start in
 the middle of one page, and end in the next one. I'm using these kind of
 floats to include pieces of highlighted source code, so I guess text could
 be perfectly splitted.
 
 Thanks!
 Jaime
 

I tried to find a solution to this too, but it seems the only way is to manually
split the algorithm in two floats (this is what I do), or to use just the lyx
code paragraph style. Bye!



Re: multi page Algorithm Floats ?

2009-08-26 Thread Jaime Huerta Cepas
True. It seems that Floats, by definition, cannot be split into two pages.
Given that I don't need a real float for inserting my example code snippets,
I found a better solution than manual separation of content.
I'm now using an environment that mimics an algorithm float:

 \newcounter{code}

\newenvironment{CodeEnv}[1] {

\stepcounter{code}

\vspace{1ex} \hrule \vspace{1ex}

\textbf{Example \thecode }

\vspace{1ex} \hrule \vspace{1ex}

#1

\vspace{1ex} \hrule

}


Then, you can do add things like this at any part of your document:
\begin{CodeEnv} MyCodeExample \end{CodeEnv}

Note that MyCodeExample can be a verbatim area, a listing code , or
similar stuff. In my case I'm inserting an ExternalProgramListing as
explained here: http://wiki.lyx.org/Examples/IncludeExternalProgramListing,
and it works great!.

I only miss captions

Jaime.


On Wed, Aug 26, 2009 at 9:22 AM, Luca Carlon carlon.l...@gmail.com wrote:

 Jaime Huerta Cepas jhue...@... writes:

 
  Hi all,
 
  I wonder if there is any way of allowing Algorithm Float boxes to start
 in
  the middle of one page, and end in the next one. I'm using these kind of
  floats to include pieces of highlighted source code, so I guess text
 could
  be perfectly splitted.
 
  Thanks!
  Jaime
 

 I tried to find a solution to this too, but it seems the only way is to
 manually
 split the algorithm in two floats (this is what I do), or to use just the
 lyx
 code paragraph style. Bye!




-- 
=
Jaime Huerta-Cepas, Ph.D.
CRG-Centre for Genomic Regulation
Doctor Aiguader, 88
PRBB Building
08003 Barcelona, Spain
http://www.crg.es/comparative_genomics
=


Re: multi page Algorithm Floats ?

2009-08-26 Thread Luca Carlon
Jaime Huerta Cepas jhue...@... writes:

 
 Hi all,
 
 I wonder if there is any way of allowing Algorithm Float boxes to start in
 the middle of one page, and end in the next one. I'm using these kind of
 floats to include pieces of highlighted source code, so I guess text could
 be perfectly splitted.
 
 Thanks!
 Jaime
 

I tried to find a solution to this too, but it seems the only way is to manually
split the algorithm in two floats (this is what I do), or to use just the lyx
code paragraph style. Bye!



Re: multi page Algorithm Floats ?

2009-08-26 Thread Jaime Huerta Cepas
True. It seems that Floats, by definition, cannot be split into two pages.
Given that I don't need a real float for inserting my example code snippets,
I found a better solution than manual separation of content.
I'm now using an environment that mimics an algorithm float:

 \newcounter{code}

\newenvironment{CodeEnv}[1] {

\stepcounter{code}

\vspace{1ex} \hrule \vspace{1ex}

\textbf{Example \thecode }

\vspace{1ex} \hrule \vspace{1ex}

#1

\vspace{1ex} \hrule

}


Then, you can do add things like this at any part of your document:
\begin{CodeEnv} MyCodeExample \end{CodeEnv}

Note that MyCodeExample can be a verbatim area, a listing code , or
similar stuff. In my case I'm inserting an ExternalProgramListing as
explained here: http://wiki.lyx.org/Examples/IncludeExternalProgramListing,
and it works great!.

I only miss captions

Jaime.


On Wed, Aug 26, 2009 at 9:22 AM, Luca Carlon carlon.l...@gmail.com wrote:

 Jaime Huerta Cepas jhue...@... writes:

 
  Hi all,
 
  I wonder if there is any way of allowing Algorithm Float boxes to start
 in
  the middle of one page, and end in the next one. I'm using these kind of
  floats to include pieces of highlighted source code, so I guess text
 could
  be perfectly splitted.
 
  Thanks!
  Jaime
 

 I tried to find a solution to this too, but it seems the only way is to
 manually
 split the algorithm in two floats (this is what I do), or to use just the
 lyx
 code paragraph style. Bye!




-- 
=
Jaime Huerta-Cepas, Ph.D.
CRG-Centre for Genomic Regulation
Doctor Aiguader, 88
PRBB Building
08003 Barcelona, Spain
http://www.crg.es/comparative_genomics
=


Re: multi page Algorithm Floats ?

2009-08-26 Thread Luca Carlon
Jaime Huerta Cepas <jhue...@...> writes:

> 
> Hi all,
> 
> I wonder if there is any way of allowing Algorithm Float boxes to start in
> the middle of one page, and end in the next one. I'm using these kind of
> floats to include pieces of highlighted source code, so I guess text could
> be perfectly splitted.
> 
> Thanks!
> Jaime
> 

I tried to find a solution to this too, but it seems the only way is to manually
split the algorithm in two floats (this is what I do), or to use just the lyx
code paragraph style. Bye!



Re: multi page Algorithm Floats ?

2009-08-26 Thread Jaime Huerta Cepas
True. It seems that Floats, by definition, cannot be split into two pages.
Given that I don't need a real float for inserting my example code snippets,
I found a better solution than manual separation of content.
I'm now using an environment that mimics an algorithm float:

 \newcounter{code}

\newenvironment{CodeEnv}[1] {

\stepcounter{code}

\vspace{1ex} \hrule \vspace{1ex}

\textbf{Example \thecode }

\vspace{1ex} \hrule \vspace{1ex}

#1

\vspace{1ex} \hrule

}


Then, you can do add things like this at any part of your document:
\begin{CodeEnv} MyCodeExample \end{CodeEnv}

Note that MyCodeExample can be a verbatim area, a "listing" code , or
similar stuff. In my case I'm inserting an ExternalProgramListing as
explained here: http://wiki.lyx.org/Examples/IncludeExternalProgramListing,
and it works great!.

I only miss captions

Jaime.


On Wed, Aug 26, 2009 at 9:22 AM, Luca Carlon <carlon.l...@gmail.com> wrote:

> Jaime Huerta Cepas <jhue...@...> writes:
>
> >
> > Hi all,
> >
> > I wonder if there is any way of allowing Algorithm Float boxes to start
> in
> > the middle of one page, and end in the next one. I'm using these kind of
> > floats to include pieces of highlighted source code, so I guess text
> could
> > be perfectly splitted.
> >
> > Thanks!
> > Jaime
> >
>
> I tried to find a solution to this too, but it seems the only way is to
> manually
> split the algorithm in two floats (this is what I do), or to use just the
> lyx
> code paragraph style. Bye!
>
>


-- 
=
Jaime Huerta-Cepas, Ph.D.
CRG-Centre for Genomic Regulation
Doctor Aiguader, 88
PRBB Building
08003 Barcelona, Spain
http://www.crg.es/comparative_genomics
=


multi page Algorithm Floats ?

2009-08-25 Thread Jaime Huerta Cepas
Hi all,

I wonder if there is any way of allowing Algorithm Float boxes to start in
the middle of one page, and end in the next one. I'm using these kind of
floats to include pieces of highlighted source code, so I guess text could
be perfectly splitted.

Thanks!
Jaime


multi page Algorithm Floats ?

2009-08-25 Thread Jaime Huerta Cepas
Hi all,

I wonder if there is any way of allowing Algorithm Float boxes to start in
the middle of one page, and end in the next one. I'm using these kind of
floats to include pieces of highlighted source code, so I guess text could
be perfectly splitted.

Thanks!
Jaime


multi page Algorithm Floats ?

2009-08-25 Thread Jaime Huerta Cepas
Hi all,

I wonder if there is any way of allowing Algorithm Float boxes to start in
the middle of one page, and end in the next one. I'm using these kind of
floats to include pieces of highlighted source code, so I guess text could
be perfectly splitted.

Thanks!
Jaime


Algorithm float on more pages

2009-05-21 Thread Vito De Tullio
Hi all.

I'm using LyX, and I'm stucked in a problem: I'm inserting pseudo-code (with
some math elements inside) in a algorithm float.
When I print / create a pdf the float it's bigger than the page, but it
doesn't automatically split itself.

Is there a way to tell the float that it's off the border?

-- 
By ZeD



Algorithm float on more pages

2009-05-21 Thread Vito De Tullio
Hi all.

I'm using LyX, and I'm stucked in a problem: I'm inserting pseudo-code (with
some math elements inside) in a algorithm float.
When I print / create a pdf the float it's bigger than the page, but it
doesn't automatically split itself.

Is there a way to tell the float that it's off the border?

-- 
By ZeD



Algorithm float on more pages

2009-05-21 Thread Vito De Tullio
Hi all.

I'm using LyX, and I'm stucked in a problem: I'm inserting pseudo-code (with
some math elements inside) in a algorithm float.
When I print / create a pdf the float it's bigger than the page, but it
doesn't automatically "split" itself.

Is there a way to tell the float that it's off the border?

-- 
By ZeD



  1   2   3   4   5   6   >