Re: Chapter numbering in 2 parts of a document

2024-09-09 Thread Udicoudco
On Mon, Sep 9, 2024 at 4:15 PM Jürgen Spitzmüller  wrote:
>
> Am Montag, dem 09.09.2024 um 15:04 +0200 schrieb Matthias Schmidt:
> > I can't find a way to set this up. Is this even possible and how can
> > it be set?
>
> \setcounter{chapter}{0}
>
> in TeX mode immediately before the new chapter 1
>

You can also go to Edit -> Manage Counter Values...
and set the chapter counter to 0 from there. This way
the GUI and the PDF will be synchronized.
See https://wiki.lyx.org/LyX/NewInLyX24#counters

Udi

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


Re: Chapter numbering in 2 parts of a document

2024-09-09 Thread Jürgen Spitzmüller
Am Montag, dem 09.09.2024 um 15:04 +0200 schrieb Matthias Schmidt:
> I can't find a way to set this up. Is this even possible and how can
> it be set?

\setcounter{chapter}{0}

in TeX mode immediately before the new chapter 1 

HTH,
-- 
Jürgen
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Chapter numbering in 2 parts of a document

2024-09-09 Thread Matthias Schmidt
I want to divide a large LyX document with 550 pages into two parts. The first 
part has 6 chapters, the second part has 3 chapters.
 
By default, LyX continues the numbering of the chapters of the first part in 
part 2 (chapters 7 - 9).
 
I would like to restart the numbering of the chapters in part 2:
Part 1, chapters 1 - 6; Part 2, chapters 1 - 3.

I can't find a way to set this up. Is this even possible and how can it be set? 

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


Re: Numbering optimization problem overall and specific lines

2024-09-01 Thread Alex Boche
Got it. Oh right, the visible number might be nice, but the referencing is
the main thing.

On Sun, Sep 1, 2024 at 11:43 AM Richard Kimberly Heck 
wrote:

> On 9/1/24 12:33 PM, Alex Boche wrote:
>
> I did find a solution. [I wasn't sure of the etiquette as far as closing a
> solved thread.]
>
> It's helpful, in case someone else has the same issue. Even months later,
> and searches the list.
>
> The key is to put a label inside the Subequation box but outside the math
> environment. Then put labels on individual lines the math environment.
> Then you can reference either the whole subequation (e.g. 1) or individual
> lines (e.g. 1.1, 1.2, etc.).
>
> I thought you had wanted there to be a visible number for the whole thing.
> I'm not sure I'd have figured out the solution anyway, though.
>
> Riki
>
>
>
>  On Sun, Sep 1, 2024 at 11:24 AM Richard Kimberly Heck 
> wrote:
>
>> On 8/23/24 2:34 PM, Alex Boche wrote:
>> > Hi,
>> >
>> > Lyx newbie here.
>> >
>> > I'd like to write an optimization problem with an objective on the
>> > first line and constraints on subsequent lines (picture below).
>> >
>> > But I'd like a number label on the full problem and separate number
>> > labels on some (or all) lines. What is the best way to do this in Lyx?
>> >
>> > I see some stuff about Subequations in the manual but I don't see how
>> > to get the number for the whole problem, in addition to the lines.
>>
>> The subequation stuff is a bit of a hack. Honestly, I don't know how to
>> do this even in LaTeX; I suspect that LyX will not natively support
>> whatever the solution might be. Complex constructs sometimes have not
>> been implemented, just because no-one yet found a need.
>>
>> Riki
>>
>>
>>
>>
>
> --
> 
> Richard Kimberly (Riki) Heck
> Professor of Philosophy and Professor of Linguistics
> Brown University
>
> Pronouns: they/them/their
> Website:  http://rkheck.frege.org/
>
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Numbering optimization problem overall and specific lines

2024-09-01 Thread Richard Kimberly Heck

On 9/1/24 12:33 PM, Alex Boche wrote:
I did find a solution. [I wasn't sure of the etiquette as far as 
closing a solved thread.]


It's helpful, in case someone else has the same issue. Even months 
later, and searches the list.


The key is to put a label inside the Subequation box but outside the 
math environment. Then put labels on individual lines the math 
environment.
Then you can reference either the whole subequation (e.g. 1) or 
individual lines (e.g. 1.1, 1.2, etc.).


I thought you had wanted there to be a visible number for the whole 
thing. I'm not sure I'd have figured out the solution anyway, though.


Riki



 On Sun, Sep 1, 2024 at 11:24 AM Richard Kimberly Heck 
 wrote:


On 8/23/24 2:34 PM, Alex Boche wrote:
> Hi,
>
> Lyx newbie here.
>
> I'd like to write an optimization problem with an objective on the
> first line and constraints on subsequent lines (picture below).
>
> But I'd like a number label on the full problem and separate number
> labels on some (or all) lines. What is the best way to do this
in Lyx?
>
> I see some stuff about Subequations in the manual but I don't
see how
> to get the number for the whole problem, in addition to the lines.

The subequation stuff is a bit of a hack. Honestly, I don't know
how to
do this even in LaTeX; I suspect that LyX will not natively support
whatever the solution might be. Complex constructs sometimes have not
been implemented, just because no-one yet found a need.

Riki






--

Richard Kimberly (Riki) Heck
Professor of Philosophy and Professor of Linguistics
Brown University

Pronouns: they/them/their
Website:http://rkheck.frege.org/
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Numbering optimization problem overall and specific lines

2024-09-01 Thread Alex Boche
I did find a solution. [I wasn't sure of the etiquette as far as closing a
solved thread.]
The key is to put a label inside the Subequation box but outside the math
environment. Then put labels on individual lines the math environment.
Then you can reference either the whole subequation (e.g. 1) or individual
lines (e.g. 1.1, 1.2, etc.).



On Sun, Sep 1, 2024 at 11:24 AM Richard Kimberly Heck 
wrote:

> On 8/23/24 2:34 PM, Alex Boche wrote:
> > Hi,
> >
> > Lyx newbie here.
> >
> > I'd like to write an optimization problem with an objective on the
> > first line and constraints on subsequent lines (picture below).
> >
> > But I'd like a number label on the full problem and separate number
> > labels on some (or all) lines. What is the best way to do this in Lyx?
> >
> > I see some stuff about Subequations in the manual but I don't see how
> > to get the number for the whole problem, in addition to the lines.
>
> The subequation stuff is a bit of a hack. Honestly, I don't know how to
> do this even in LaTeX; I suspect that LyX will not natively support
> whatever the solution might be. Complex constructs sometimes have not
> been implemented, just because no-one yet found a need.
>
> Riki
>
>
>
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Numbering optimization problem overall and specific lines

2024-09-01 Thread Richard Kimberly Heck

On 8/23/24 2:34 PM, Alex Boche wrote:

Hi,

Lyx newbie here.

I'd like to write an optimization problem with an objective on the 
first line and constraints on subsequent lines (picture below).


But I'd like a number label on the full problem and separate number 
labels on some (or all) lines. What is the best way to do this in Lyx?


I see some stuff about Subequations in the manual but I don't see how 
to get the number for the whole problem, in addition to the lines.


The subequation stuff is a bit of a hack. Honestly, I don't know how to 
do this even in LaTeX; I suspect that LyX will not natively support 
whatever the solution might be. Complex constructs sometimes have not 
been implemented, just because no-one yet found a need.


Riki



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


Numbering optimization problem overall and specific lines

2024-08-23 Thread Alex Boche
Hi,

Lyx newbie here.

I'd like to write an optimization problem with an objective on the first
line and constraints on subsequent lines (picture below).

But I'd like a number label on the full problem and separate number labels
on some (or all) lines. What is the best way to do this in Lyx?

I see some stuff about Subequations in the manual but I don't see how to
get the number for the whole problem, in addition to the lines.

Thanks,
Alex

[image: Screen Shot 2024-08-23 at 1.24.39 PM.png]
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: frontmatter/mainmatter and numbering

2024-06-15 Thread Richard Kimberly Heck

On 6/15/24 08:15, Stef Pillaert wrote:
I have a Preface ("Voorwoord" in Dutch) in frontmatter, this is 
intended to be a non numbered chapter ("Hoofdstuk" in Dutch). This 
chapter should be in the TOC.
In mainmatter, the numbering of the chapters should start by "1". The 
the first chapter is "Inleiding" (= introduction).
The output is oke, see second screenshot: the chapter in the 
frontmatter has no number, and is in the TOC. Also, the first chapter 
of mainmatter has number "1".
But is there a (not too difficult) way that LyX also shows the correct 
numbers in front of the chapters? You can see that it puts "1" in 
front of "Voorwoord", and the first chapter gets "2". A bit confusing...


It looks like you used a numbered section for the Voorwoord. If so, then 
of course LyX numbers it "1", and the rest go accordingly. I am guessing 
you have done that because unnumbered sections do not show up in the 
TOC. So the way to handle this would be to create a new layout that is 
both unnumbered and shows up in the TOC (or to manually add the 
Voorwoord to the TOC using ERT).



Like this:


# Marks the page headings

Style ChapterStar
    CopyStyle Chapter*
    LaTeXName chapstar
    Argument 1
    LabelString    "Page Heading"
    EndArgument
    Preamble
    \newcommand\chapstar[2][xxx]{
        \chapter*{#2}
\ifthenelse{\equal{#1}{xxx}}{\chaptermark{#2}}{\chaptermark{#1}
    }
    EndPreamble
}
End


# Also add to TOC
Style ChapStarTOC
    CopyStyle ChapterStar
    LaTeXName chapstartoc
    Preamble
    \newcommand\chapstartoc[2][xxx]{
        \chapstar[#1]{#2}
        \addcontentsline{toc}{chapter}{#2}
    }
    EndPreamble
End


Or perhaps more generally: perhaps there is an easier way to deal with 
frontmatter/mainmatter/... in LyX, hopefully without using  ERT?


There are frontmatter, etc, layouts in the Springer layouts. Probably we 
should copy those into other classes. But they're a bit hackish.



Riki

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


Re: What controls figure numbering?

2024-01-18 Thread Dr Eberhard Lisse
Order something from Amazon, they will deliver :-)-O

el

On 2024-01-19 04:46 , Rich Shepard wrote:
[...]
> Mea culpa! Six days stuck in the house because temps are below freezing and
> there was a half-inch of ice (under the freezing rain) everywhere and I
> blanked on that issue.
[...]

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


Re: What controls figure numbering?

2024-01-18 Thread Rich Shepard

On Thu, 18 Jan 2024, Richard Kimberly Heck wrote:


I believe this is standard behavior for reports. There's no LyX option
that controls it, so far as I know. Using LaTeX, of course, you can do
anything you want.


Riki

Mea culpa! Six days stuck in the house because temps are below freezing and
there was a half-inch of ice (under the freezing rain) everywhere and I
blanked on that issue.

You're correct, of course.

Sigh,

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


Re: What controls figure numbering?

2024-01-18 Thread Richard Kimberly Heck

On 1/18/24 18:57, Rich Shepard wrote:

I'm recreating, under a different name, the doc that crashed LyX when I
tried to compile it. Using the KOMA-Script report class (scrreport.)

Because the only options for section numering that work are none or 
all I've

chosen to us all.

Chapter 1 has 3 figures; chapter 2 has 3 figures. In the prior version 
(and

all other report docs) the figures are numbered continously. Now, the new
doc re-numbers the chapter 2 figures 1--3 rather than 4--6.

Where is this controlled? I don't see any place in Document -> Settings.


I believe this is standard behavior for reports. There's no LyX option 
that controls it, so far as I know. Using LaTeX, of course, you can do 
anything you want.


Riki


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


What controls figure numbering?

2024-01-18 Thread Rich Shepard

I'm recreating, under a different name, the doc that crashed LyX when I
tried to compile it. Using the KOMA-Script report class (scrreport.)

Because the only options for section numering that work are none or all I've
chosen to us all.

Chapter 1 has 3 figures; chapter 2 has 3 figures. In the prior version (and
all other report docs) the figures are numbered continously. Now, the new
doc re-numbers the chapter 2 figures 1--3 rather than 4--6.

Where is this controlled? I don't see any place in Document -> Settings.

TIA,

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


Numbering of sections control

2024-01-17 Thread Rich Shepard

When I try to change which paragraph environments can be numbered (and
entered in the ToC) by moving the circle I cannot change their posision
along the line. They can be moved to only the extremes: none or all.

What might cause this with 2.3.6.1?

Regards,

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


Re: Figure numbering and cross references

2023-06-29 Thread Herbert Voss



Am 30.06.23 um 05:09 schrieb Dan:
Both the LaTeX and pdf files are attached.  (Ignore the text: it needs 
a lot of work!)


This is a simple problem, I'm sure, but I just can't get it to render 
right.


I have an article I'm adding an image to as a float and I have 
attached a label to it.


The first problem is that it comes up as Figure 0.1.  I'll eventually 
be putting this into a section, so how can I put this as Figure 1.1?  
How can I get this to put the section number correctly?


Then I add a sentence (see the very end of the text) "(See Figure .)"  
I add in a cross-reference to the label "Figure 1."  Okay, but the 
figure number does not come in, and I wanted to enumerate this, in 
case I wanted to add another figure in front of this one.  How do I do 
the enumeration?


Don't use the modul for sectionwise image count:
Documents->Preferences->Modules

or define a section.

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


SOLVED Re: line numbering in pdf

2023-06-23 Thread Wolfgang Engelmann

Thanks, Herbert and Scott. Very handy!

Wolfgang

Am 23.06.23 um 12:42 schrieb Scott Kostyshak:

On Fri, Jun 23, 2023 at 12:10:33PM +0200, Herbert Voss wrote:




Am 23.06.23 um 10:29 schrieb Wolfgang Engelmann:

I would like to export a pdf file from lyx in which the lines are
numbered for each page. Under User guide B12 is a description, which I,
however, do not understand enough.

I wouldn't mind, as an alternative, to do the line numbering in the pdf
file directly (which pdf reader? Okular? I use Debian.).

The reason is, that I would like to send the document to a coauthor for
question, for which I should tell him where to look at.


Write

\usepackage{lineno}
\linenumbers

into the documents preamble.

I didn't search for a switch inside the LyX menues ...
Maybe that there is one.


This will be supported in LyX 2.4:

   https://wiki.lyx.org/LyX.NewInLyX24#lineno

Scott



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


Re: line numbering in pdf

2023-06-23 Thread Scott Kostyshak
On Fri, Jun 23, 2023 at 12:10:33PM +0200, Herbert Voss wrote:
> 
> 
> 
> Am 23.06.23 um 10:29 schrieb Wolfgang Engelmann:
> > I would like to export a pdf file from lyx in which the lines are
> > numbered for each page. Under User guide B12 is a description, which I,
> > however, do not understand enough.
> > 
> > I wouldn't mind, as an alternative, to do the line numbering in the pdf
> > file directly (which pdf reader? Okular? I use Debian.).
> > 
> > The reason is, that I would like to send the document to a coauthor for
> > question, for which I should tell him where to look at.
> 
> Write
> 
> \usepackage{lineno}
> \linenumbers
> 
> into the documents preamble.
> 
> I didn't search for a switch inside the LyX menues ...
> Maybe that there is one.

This will be supported in LyX 2.4:

  https://wiki.lyx.org/LyX.NewInLyX24#lineno

Scott


signature.asc
Description: PGP signature
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: line numbering in pdf

2023-06-23 Thread Herbert Voss




Am 23.06.23 um 10:29 schrieb Wolfgang Engelmann:
I would like to export a pdf file from lyx in which the lines are 
numbered for each page. Under User guide B12 is a description, which 
I, however, do not understand enough.


I wouldn't mind, as an alternative, to do the line numbering in the 
pdf file directly (which pdf reader? Okular? I use Debian.).


The reason is, that I would like to send the document to a coauthor 
for question, for which I should tell him where to look at.


Write

\usepackage{lineno}
\linenumbers

into the documents preamble.

I didn't search for a switch inside the LyX menues ...
Maybe that there is one.

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


line numbering in pdf

2023-06-23 Thread Wolfgang Engelmann
I would like to export a pdf file from lyx in which the lines are 
numbered for each page. Under User guide B12 is a description, which I, 
however, do not understand enough.


I wouldn't mind, as an alternative, to do the line numbering in the pdf 
file directly (which pdf reader? Okular? I use Debian.).


The reason is, that I would like to send the document to a coauthor for 
question, for which I should tell him where to look at.


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


Re: Formatting/Equation numbering

2022-12-05 Thread Hal Kierstead via lyx-users


> There are two relevant document class options:
> 
> * "fleqn" (flush left equation), which aligns the equation to the left. Used 
> by itself, though, it leaves the equation number on the right.
> 
> * "leqno" (left equation number), which puts the equation number on the left. 
> Used by itself, it centers the equation still.
> 
> BUT, if you use BOTH options, then you get what you want.
> 
> How to do it in LyX? Look at Document> Settings> Document Class. The "Custom" 
> field allows you to enter class options. In your case, you could enter 
> "fleqn,leqno". Any class options can be entered here.
> 
> However, LyX also has native support for this under Document> Settings> Math 
> Options. The Formula Numbering Side option is self-explanatory. You would 
> want "Left". This adds "leqno" behind the scenes. The other one is the Indent 
> Formulas checkbox. The tooltip explains what it does: It indents instead of 
> centering equations. So you can check that. If you leave it at "Default", 
> then it just adds "fleqn"; you can also, however, control the indent here by 
> selecting "Custom" and entering a length (which gets set as the \mathindent).
> 
This excellent explanation was also very useful to me.

Thanks,

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


Re: Formatting/Equation numbering

2022-12-04 Thread Richard Kimberly Heck

On 12/4/22 19:57, Dan wrote:
I know how I can number equations, but I would like the equations to 
be in the following type of format:

Eq. 1.1 (equation)

Eq. 1.2 (equation)
indented slightly.  IMO I don't like having them centered like the 
usual Edit, Math, NumberWholeFormula method does.


I know LaTeX supports defining a user formatting code but I don't know 
how to do that in LyX.


There are two relevant document class options:

* "fleqn" (flush left equation), which aligns the equation to the left. 
Used by itself, though, it leaves the equation number on the right.


* "leqno" (left equation number), which puts the equation number on the 
left. Used by itself, it centers the equation still.


BUT, if you use BOTH options, then you get what you want.

How to do it in LyX? Look at Document> Settings> Document Class. The 
"Custom" field allows you to enter class options. In your case, you 
could enter "fleqn,leqno". Any class options can be entered here.


However, LyX also has native support for this under Document> Settings> 
Math Options. The Formula Numbering Side option is self-explanatory. You 
would want "Left". This adds "leqno" behind the scenes. The other one is 
the Indent Formulas checkbox. The tooltip explains what it does: It 
indents instead of centering equations. So you can check that. If you 
leave it at "Default", then it just adds "fleqn"; you can also, however, 
control the indent here by selecting "Custom" and entering a length 
(which gets set as the \mathindent).


This is all in the Math manual, under Help.

Riki


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


Formatting/Equation numbering

2022-12-04 Thread Dan
I know how I can number equations, but I would like the equations to be in
the following type of format:
Eq. 1.1 (equation)

Eq. 1.2 (equation)
indented slightly.  IMO I don't like having them centered like the usual
Edit, Math, NumberWholeFormula method does.

I know LaTeX supports defining a user formatting code but I don't know how
to do that in LyX.

Thanks!

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


Re: Numbering of Float doesn't change

2022-08-28 Thread Daniel

On 2022-08-29 00:32, tush via lyx-users wrote:

I am trying to define a margin figure in my document.

The tufte book document class makes use of this environment.

In the file tufte-book.layout the following is defined:

[...]

But margin figure and figure have two separate numberings. Figure is 
counted within chapters (2.3 for the 3rd figure in chapter 2) but margin 
figure has its own counter (margin figure 1, margin figure 2, margin 
figure 3 without any relation to chapters or the other figures).



Am I missing something? Does it work the same in your installation?


It doesn't work here either, i.e. the numbering of figures and margin 
figures are disconnected (Figure 1, [Margin] Figure 1, etc.) within the 
work area of LyX while in the output they are connected (Figure 1, 
[Margin] Figure 2, etc.).


The problem seems to be that LyX

1) automatically assigns a counter to a float based on its name;
2) counters cannot be increases when other counters are increased (only 
reset with others)


Resolving either 1 or 2 would fix the problem, I guess. But if I see it 
correctly LyX has no support for it currently.


Daniel


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


Numbering of Float doesn't change

2022-08-28 Thread tush via lyx-users
I am trying to define a margin figure in my document.

The tufte book document class makes use of this environment.

In the file tufte-book.layout the following is defined:

Counter marginfigure
End

Float

Type marginfigure

GuiName MarginFigure

Placement tbp

AllowedPlacement none

AllowsSideways 0

AllowsWide 0

Extension lof

NumberWithin none

Style plain

ListName "List of Figures"

ListCommand listoffigures

IsPredefined true

UsesFloatPkg false

End

But margin figure and figure have two separate numberings. Figure is counted 
within chapters (2.3 for the 3rd figure in chapter 2) but margin figure has its 
own counter (margin figure 1, margin figure 2, margin figure 3 without any 
relation to chapters or the other figures).

Am I missing something? Does it work the same in your installation?

My goal is to have the two floats share the same counter (figure 2.3, margin 
figure 2.4, figure 2.5 etc.). Can I do it?-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How figure and table numbering is defined?

2022-08-28 Thread tush via lyx-users
Thanks Daniel. I never looked at the content of numreport.inc.

Perhaps you have an idea for my problem I uploaded here before? 
(https://lists.lyx.org/pipermail/lyx-users/2022-August/004205.html)

Thanks very much

Ehud

--- Original Message ---
On Sunday, August 28th, 2022 at 8:45 PM, Daniel  wrote:


> On 2022-08-28 20:30, tush via lyx-users wrote:
> 
> > I am just wondering how lyx knows how to display the numbering of floats
> > when the document class is book and according to what rule to change the
> > numbering when the document class is changed to article, for example.
> > 
> > Yes yes, LyX "doesn't know anything about latex", and it is actually
> > latex that takes care of the numbering, but only in the output (pdf or
> > dvi). My question is about the numbering inside the editor.
> 
> 
> stdfloats.inc contains the basic definition of the float, e.g.
> 
> 
> Float
> Type table
> GuiName Table
> Placement tbp
> Extension lot
> NumberWithin none
> Style plain
> ListName "List of Tables"
> IsPredefined true
> UsesFloatPkg false
> ListCommand listoftables
> RefPrefix tab
> End
> 
> 
> numreport.inc switches the numbering for reports and books to be within
> chapters, e.g.
> 
> 
> Float
> Type table
> NumberWithin chapter
> End
> 
> 
> Best,
> Daniel
> 
> 
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How figure and table numbering is defined?

2022-08-28 Thread Daniel

On 2022-08-28 20:30, tush via lyx-users wrote:
I am just wondering how lyx knows how to display the numbering of floats 
when the document class is book and according to what rule to change the 
numbering when the document class is changed to article, for example.


Yes yes, LyX "doesn't know anything about latex", and it is actually 
latex that takes care of the numbering, but only in the output (pdf or 
dvi). My question is about the numbering *inside*​ the editor.


stdfloats.inc contains the basic definition of the float, e.g.


Float
Type  table
GuiName   Table
Placement tbp
Extension lot
NumberWithin  none
Style plain
ListName  "List of Tables"
IsPredefined  true
UsesFloatPkg  false
ListCommand   listoftables
RefPrefix tab
End


numreport.inc switches the numbering for reports and books to be within 
chapters, e.g.



Float
Type  table
NumberWithin  chapter
End


Best,
Daniel


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


Re: How figure and table numbering is defined?

2022-08-28 Thread tush via lyx-users
I am just wondering how lyx knows how to display the numbering of floats when 
the document class is book and according to what rule to change the numbering 
when the document class is changed to article, for example.

Yes yes, LyX "doesn't know anything about latex", and it is actually latex that 
takes care of the numbering, but only in the output (pdf or dvi). My question 
is about the numbering inside​ the editor.

 Original Message 
On Aug 28, 2022, 19:11, Ricardo Berlasso < rgb.m...@gmail.com> wrote:

> El dom, 28 ago 2022 a las 18:44, tush via lyx-users 
> () escribió:
>
>> I tried to look where the numbering (within the lyx editor) of figures and 
>> tables is defined.
>>
>> If I choose book doc class, a figure gets the number 
>> "chapter-number.figurenumber-within-the-chapter", whereas if I choose 
>> article doc class, it changes to "figure-number-within-the-whole-article".
>>
>> Nothing is mentioned about floats numbers in stdfloats.inc, stdcounters.inc 
>> or the like.
>>
>> I hope that if I will have the answer to how this numbering is done, I might 
>> be able to set nicely the numbering of a new float I want to insert into my 
>> document.
>
> LyX follows LaTeX to do the numbering, and that means you need to use either 
> modules, local formatting or code in the preamble (the "caption" package) to 
> modify the numbering beyond the standard formatting. Under Document → 
> Settings → Modules it's possible to activate modules that restart the 
> numbering for figures and tables on each sections. For more, you need to tell 
> us what you need (roman numerals?, small caps for the labels?, etc.).
>
> Regards,
> Ricardo
>
>> --
>> lyx-users mailing list
>> lyx-users@lists.lyx.org
>> http://lists.lyx.org/mailman/listinfo/lyx-users-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How figure and table numbering is defined?

2022-08-28 Thread Ricardo Berlasso
El dom, 28 ago 2022 a las 18:44, tush via lyx-users (<
lyx-users@lists.lyx.org>) escribió:

> I tried to look where the numbering (within the lyx editor) of figures and
> tables is defined.
>
> If I choose book doc class, a figure gets the number
> "chapter-number.figurenumber-within-the-chapter", whereas if I choose
> article doc class, it changes to "figure-number-within-the-whole-article".
>
> Nothing is mentioned about floats numbers in stdfloats.inc,
> stdcounters.inc or the like.
>
> I hope that if I will have the answer to how this numbering is done, I
> might be able to set nicely the numbering of a new float I want to insert
> into my document.
>

LyX follows LaTeX to do the numbering, and that means you need to use
either modules, local formatting or code in the preamble (the "caption"
package) to modify the numbering beyond the standard formatting. Under
Document → Settings → Modules it's possible to activate modules that
restart the numbering for figures and tables on each sections. For more,
you need to tell us what you need (roman numerals?, small caps for the
labels?, etc.).

Regards,
Ricardo



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


How figure and table numbering is defined?

2022-08-28 Thread tush via lyx-users
I tried to look where the numbering (within the lyx editor) of figures and 
tables is defined.

If I choose book doc class, a figure gets the number 
"chapter-number.figurenumber-within-the-chapter", whereas if I choose article 
doc class, it changes to "figure-number-within-the-whole-article".

Nothing is mentioned about floats numbers in stdfloats.inc, stdcounters.inc or 
the like.

I hope that if I will have the answer to how this numbering is done, I might be 
able to set nicely the numbering of a new float I want to insert into my 
document.-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: KOMA-Script article float numbering

2022-08-18 Thread Daniel

On 2022-08-18 17:44, Rich Shepard wrote:

Also, it points to

"C:/home/rshepard/projects/washington/gotch/docs/gotch-site-plan.pdf"


Doubtful as I defenestrated in 1997 and have run only linux ever since.


I guess it is

/home/rshepard/projects/washington/gotch/docs/gotch-site-plan.pdf

on your system and LyX added the "C:".


The test .lyx location should be changed to whereever it is on someone else's
system since I've no idea where it would be located so lyx could find it.


That is what relative paths are for, so you do not need to rely on 
people having to change things. If you really need to add an extra file 
to a mwe, just put in in the same directory and use a relative path to 
it, i.e. just the filename in this case rather than the absolute path.


Daniel



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


Re: KOMA-Script article float numbering

2022-08-18 Thread Rich Shepard

On Thu, 18 Aug 2022, Daniel wrote:


I don't know what original post you refer to. The threat started with the
post I commented on which included a bit of superfluous stuff in the
lyx-file.


Daniel,

That was my original post


This is what the preamble contained:

\date{}
\usepackage{mathpazo}
\usepackage{graphicx,relsize}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}

None of these are relevant to your problem, right? Meaning the problem 
appears even if you remove these lines.


Yes, and I removed them in the revised mwe.lyx attached to my response to
your message.

In your document, you have an inserted graphic (pdf file). This doesn't seem 
relevant either. So, you could just remove it.


Then, would the Figure 0.1 be seen? The issue is how floats are numbered
when the unnumbered section* is selected as the environment.


Also, it points to

"C:/home/rshepard/projects/washington/gotch/docs/gotch-site-plan.pdf"


Doubtful as I defenestrated in 1997 and have run only linux ever since. The
test .lyx location should be changed to whereever it is on someone else's
system since I've no idea where it would be located so lyx could find it.

Regards,

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


Re: KOMA-Script article float numbering

2022-08-18 Thread Daniel

On 18/08/2022 14:16, Rich Shepard wrote:

On Thu, 18 Aug 2022, Daniel wrote:


1. Post a .lyx file that is more minimal (e.g. does not contain
unnecessary external material). Try to strip off everything that is
unnecessary, including preamble material.



2. The file should contain what does *not* work (e.g. you seem to suggest
that the problem is in a KOMA-Script article but your attached lyx 
file is

a KOMA-Script report).



3. State clearly what is the actual and expected result.


Daniel,

I did all this in my original post.


Hi Rich,

I don't know what original post you refer to. The threat started with 
the post I commented on which included a bit of superfluous stuff in the 
lyx-file.



1. I removed the extraneous preamble material.


This is what the preamble contained:

\date{}
\usepackage{mathpazo}
\usepackage{graphicx,relsize}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}

None of these are relevant to your problem, right? Meaning the problem 
appears even if you remove these lines.


In your document, you have an inserted graphic (pdf file). This doesn't 
seem relevant either. So, you could just remove it.


Also, it points to

"C:/home/rshepard/projects/washington/gotch/docs/gotch-site-plan.pdf"

which cannot work on other people's systems even if you provide that 
file. By the way, it will even stop working on your system if you move 
the project directory to another location. It might be better to use 
relative paths, starting from your document. Say you have the following 
structure:


C:/.../myproject/mydocs/mydoc.lyx
C:/.../myproject/myimages/myimage.pdf

Then you can use "../myimages/myimage.pdf" as your path referring to 
myimage.pdf relative to your mydoc.lyx. And other people will be able to 
straight away use your doc.lyx as long as you provide them with the 
whole myproject directory. But again, for your mwe.lyx, this doesn't 
have to be part of it.


I have seen that your  seems to have gotten resolved already. So, I just 
wanted to give you this (not asked for) feedback on these other parts 
the mwe. It isn't meant as criticism. Just as a suggestion.


Kind regards,
Daniel

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


Re: KOMA-Script article float numbering [RESOLVED]

2022-08-18 Thread Rich Shepard

On Thu, 18 Aug 2022, Udicoudco wrote:


I don't have much  experience with KOMA-Script document classes, but from
what I've been reading in the documentation, automark does not have
anything to do with figure numbering, the command changes the page marks
above the headrule.


Udi,

That's interesting. I admit that I didn't fully search through the
KOMA-Script doc.


The reason the figure is numbered differently in the report class is that
in this class the chapter command is defined, and as a convention when it
is defined, usually figures are numbered within the chapter counter. On
the contrary, in report class, chapters are not defined.


If I use numbered sections there's no problem with float figures (or tables)
being numbered with integers regardless of class. Using unnumbered document
sections*, or chapters*, are when there's an issue.


To remove the figure counter from the reset list of chapter, you can
simply write in the preamble \counterwithout{figure}{chapter}, it will
also change the format of \thefigure to be \@arabic{\c@figure} which is
what I believe you want.


In previous documents (report class) unnumbered sections displayed figures
with integers when /automark*{section} was in the preamble. For some reason,
it did not do so with this one document. So I changed your command to
\counterwithout{figure}{section} and that did the trick. Thank you.


Note that this will only change the counter in the output file, and not in
the lyx file.


That's all that matters, :-)

Thanks very much for teaching me \counterwithout{}{}.

Regards,

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


Re: KOMA-Script article float numbering

2022-08-18 Thread Udicoudco
> > 1. Post a .lyx file that is more minimal (e.g. does not contain
> > unnecessary external material). Try to strip off everything that is
> > unnecessary, including preamble material.
>
> > 2. The file should contain what does *not* work (e.g. you seem to suggest
> > that the problem is in a KOMA-Script article but your attached lyx file
> is
> > a KOMA-Script report).
>
> > 3. State clearly what is the actual and expected result.
>
> Daniel,
>
> I did all this in my original post.
>
> 1. I removed the extraneous preamble material.
>
> 2. The figure on page 2 is labled 0.1 rather than 1. Yes, this document's
> class is report, not article. I thought I had changed the class, but did
> not
> do so. What does *not* work is \automark*{section} in this document when it
> did in previous ones..
>
> 3. The actual result is the figure labeled 0.1 and the expected result is
> the figure labeled 1.
>
> Regards,
>
> Rich
> --
>
>
Hi Rich,

I don't have much  experience with KOMA-Script document classes, but from
what I've been reading in the documentation, automark does not have
anything to do with figure numbering, the command changes the page marks
above the headrule.

The reason the figure is numbered differently in the report class is that
in this class the chapter command is defined,  and as a convention when it
is  defined, usually figures are numbered within the chapter counter. On
the contrary, in report class, chapters are not defined.

To remove the figure counter from the reset list of chapter, you can simply
write in the preamble \counterwithout{figure}{chapter}, it will also change
the format of \thefigure to be \@arabic{\c@figure} which is what I believe
you want.

Note that this will only change the counter in the output file, and not in
the lyx file. To change the counter in the lyx file you can write in the
local layout

Float
Type  figure
NumberWithin  none
End

I attached a file with the changes specified above, i also suggest that you
see the preamble in my file and notice that none of what was written was
related to the problem, but only customized the page marks above the
headrule.

As a final remark, it is preferable that a MWE will be with no external
files, unless necessary. In this case, a figure can be created with no
external graphics within it, and because the inclusion of an external file
is path dependent, I could not compile your file without removing the
graphics from lyx, or downloading your pdf and changing the path in lyx. If
you will write a suitable MWE it will help people to help you.

Regards,
Udi


mwe.lyx
Description: application/lyx


gotch-site-plan.pdf
Description: Adobe PDF document
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: KOMA-Script article float numbering

2022-08-18 Thread Rich Shepard

On Thu, 18 Aug 2022, Daniel wrote:


1. Post a .lyx file that is more minimal (e.g. does not contain
unnecessary external material). Try to strip off everything that is
unnecessary, including preamble material.



2. The file should contain what does *not* work (e.g. you seem to suggest
that the problem is in a KOMA-Script article but your attached lyx file is
a KOMA-Script report).



3. State clearly what is the actual and expected result.


Daniel,

I did all this in my original post.

1. I removed the extraneous preamble material.

2. The figure on page 2 is labled 0.1 rather than 1. Yes, this document's
class is report, not article. I thought I had changed the class, but did not
do so. What does *not* work is \automark*{section} in this document when it
did in previous ones..

3. The actual result is the figure labeled 0.1 and the expected result is
the figure labeled 1.

Regards,

Rich
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrreprt
\begin_preamble
\date{}
\usepackage{mathpazo}
\usepackage{graphicx,relsize}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
%\lehead{Tree Plan Level 1}
%\rohead{Tree Plan Level 1}
%\efoot{Applied Ecosystem Services, LLC}
%\lofoot{Applied Ecosystem Services, LLC}
\automark*{section}
\end_preamble
\options headsepline=on, footsepline=on
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding utf8
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format pdf2
\output_sync 0
\bibtex_command biber mergedate=compact
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize letterpaper
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 0
\use_package mathdots 0
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine biblatex-natbib
\cite_engine_type authoryear
\biblatex_bibstyle authoryear
\biblatex_citestyle authoryear
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 2cm
\topmargin 4cm
\bottommargin 2cm
\headsep 1.5cm
\secnumdepth 2
\tocdepth 2
\paragraph_separation skip
\defskip medskip
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 2
\paperpagestyle plain
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Subsection*
Site Plan
\end_layout

\begin_layout Standard
The site plan for only the elevated walkway project is shown in Figure 
\begin_inset CommandInset ref
LatexCommand ref
reference "fig: site plan"
plural "false"
caps "false"
noprefix "false"

\end_inset

.
\begin_inset Float figure
wide false
sideways false
status collapsed

\begin_layout Plain Layout
\align center
\begin_inset Graphics
filename 
/home/rshepard/projects/washington/gotch/docs/gotch-site-plan.pdf
width 100text%
BoundingBox 125bp 50bp 600bp 530bp
clip

\end_inset


\end_layout

\begin_layout Plain Layout
\begin_inset Caption Standard

\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "fig: site plan"

\end_inset

The elevated walkway project site plan.
\end_layout

\end_inset


\end_layout

\end_inset


\end_layout

\end_body
\end_document


gotch-site-plan.pdf
Description: Adobe PDF document


mwe.pdf
Description: Adobe PDF document
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: KOMA-Script article float numbering

2022-08-17 Thread Daniel

On 2022-08-17 17:36, Rich Shepard wrote:

In KOMA-Script report class documents adding to the preamble
\automark*{section} works to number figure floats as integers.

However, in a KOMA-Script article class document it doesn't (see attached
mwe.*) and I'd like to learn why and what does work.

Regards,

Rich


Hi Rich,

I am not sure what you mean. Please:

1. Post a .lyx file that is more minimal (e.g. does not contain 
unnecessary external material). Try to strip off everything that is 
unnecessary, including preamble material.


2. The file should contain what does *not* work (e.g. you seem to 
suggest that the problem is in a KOMA-Script article but your attached 
lyx file is a KOMA-Script report).


3. State clearly what is the actual and expected result.

Your possible helpers could probably figure these out by themselves. But 
this takes their time and might might lead to misunderstandings which in 
turn take even your time.


Regards,

Daniel


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


KOMA-Script article float numbering

2022-08-17 Thread Rich Shepard

In KOMA-Script report class documents adding to the preamble
\automark*{section} works to number figure floats as integers.

However, in a KOMA-Script article class document it doesn't (see attached
mwe.*) and I'd like to learn why and what does work.

Regards,

Rich#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrreprt
\begin_preamble
\date{}
%\usepackage{newpxtext}
%\usepackage{newpxmath}
\usepackage{mathpazo}
\usepackage{graphicx,relsize}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\lehead{Tree Plan Level 1}
\rohead{Tree Plan Level 1}
\refoot{Applied Ecosystem Services, LLC}
\lofoot{Applied Ecosystem Services, LLC}
\automark*{section}
\end_preamble
\options headsepline=on, footsepline=on
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding utf8
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format pdf2
\output_sync 0
\bibtex_command biber mergedate=compact
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize letterpaper
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 0
\use_package mathdots 0
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine biblatex-natbib
\cite_engine_type authoryear
\biblatex_bibstyle authoryear
\biblatex_citestyle authoryear
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 2cm
\topmargin 4cm
\bottommargin 2cm
\headsep 1.5cm
\secnumdepth 2
\tocdepth 2
\paragraph_separation skip
\defskip medskip
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 2
\paperpagestyle plain
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Standard
The site plan for only the elevated walkway project is shown in Figure 
\begin_inset CommandInset ref
LatexCommand ref
reference "fig: site plan"
plural "false"
caps "false"
noprefix "false"

\end_inset

.
\begin_inset Float figure
wide false
sideways false
status open

\begin_layout Plain Layout
\align center
\begin_inset Graphics
filename 
/home/rshepard/projects/washington/gotch/docs/gotch-site-plan.pdf
width 100text%
BoundingBox 125bp 50bp 600bp 530bp
clip

\end_inset


\end_layout

\begin_layout Plain Layout
\begin_inset Caption Standard

\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "fig: site plan"

\end_inset

The elevated walkway project site plan.
\end_layout

\end_inset


\end_layout

\end_inset


\end_layout

\end_body
\end_document


mwe.pdf
Description: Adobe PDF document


gotch-site-plan.pdf
Description: Adobe PDF document
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: KOMA-Script report: float numbering [RESOLVED]

2022-07-29 Thread Rich Shepard

On Fri, 29 Jul 2022, Daniel wrote:


That is not an alternative! It does not affect the output only the
representation in LyX's work area.


Daniel,

Okay. Thanks for clarifying.

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


Re: KOMA-Script report: float numbering [RESOLVED]

2022-07-29 Thread Daniel

On 2022-07-29 17:14, Rich Shepard wrote:

On Fri, 29 Jul 2022, Daniel wrote:


You could also add

Float
Type  table
NumberWithin  none
End

Float
Type  figure
NumberWithin  none
End

to your Document Setting's "Local Layout" for some bling.


Daniel,

That's a good alternative.

Thanks,

Rich


That is not an alternative! It does not affect the output only the 
representation in LyX's work area.


Daniel


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


Re: KOMA-Script report: float numbering [RESOLVED]

2022-07-29 Thread Rich Shepard

On Fri, 29 Jul 2022, Daniel wrote:


You could also add

Float
Type  table
NumberWithin  none
End

Float
Type  figure
NumberWithin  none
End

to your Document Setting's "Local Layout" for some bling.


Daniel,

That's a good alternative.

Thanks,

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


Re: KOMA-Script report: float numbering [RESOLVED]

2022-07-29 Thread Daniel

On 2022-07-28 18:18, Rich Shepard wrote:

On Thu, 28 Jul 2022, Ricardo Berlasso wrote:


Try with
\usepackage{chngcntr}
\counterwithout{figure}{section}


Ricardo,

Boy howdy! That's a new lesson for me, and a valuable one.

Works like a charm.

Thanks,

Rich


You could also add

Float
Type  table
NumberWithin  none
End

Float
Type  figure
NumberWithin  none
End

to your Document Setting's "Local Layout" for some bling.

Daniel


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


Re: KOMA-Script report: float numbering [RESOLVED]

2022-07-29 Thread Ricardo Berlasso
El vie, 29 jul 2022 a las 8:18, Udicoudco () escribió:

>
>>>
> ‫בתאריך יום ה׳, 28 ביולי 2022 ב-19:19 מאת ‪Rich Shepard‬‏ <‪
> rshep...@appl-ecosys.com‬‏>:‬
>
>> On Thu, 28 Jul 2022, Ricardo Berlasso wrote:
>>
>> > Try with
>> > \usepackage{chngcntr}
>> > \counterwithout{figure}{section}
>>
>> Ricardo,
>>
>> Boy howdy! That's a new lesson for me, and a valuable one.
>>
>> Works like a charm.
>>
>> Thanks,
>>
>> Rich
>> --
>> lyx-users mailing list
>> lyx-users@lists.lyx.org
>
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
>
>
> Hi Rick,
>
> Please note that since 2018 the "chngcntr" package has been integrated
> into LaTeX2e (see LaTeX2e News Issue 28
> ),
> So, if you are using up to date LaTeX format there is no need to load
> the  chngcntr package.
>

Good to know! Until a month ago I still was with TeXLive 2017, but you're
right, with TeXLive 2021 calling the package is not needed anymore.

Regards,
Ricardo



>
> Regards,
> Udi
>
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: KOMA-Script report: float numbering [RESOLVED]

2022-07-29 Thread Rich Shepard

On Fri, 29 Jul 2022, Udicoudco wrote:


Please note that since 2018 the "chngcntr" package has been integrated
into LaTeX2e (see LaTeX2e News Issue 28
), So, if
you are using up to date LaTeX format there is no need to load the
chngcntr package.


Udi,

I'm running TeXlive-2021 on this host. Thanks for the insight.

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


Re: KOMA-Script report: float numbering [RESOLVED]

2022-07-28 Thread Udicoudco
>
>
>>
‫בתאריך יום ה׳, 28 ביולי 2022 ב-19:19 מאת ‪Rich Shepard‬‏ <‪
rshep...@appl-ecosys.com‬‏>:‬

> On Thu, 28 Jul 2022, Ricardo Berlasso wrote:
>
> > Try with
> > \usepackage{chngcntr}
> > \counterwithout{figure}{section}
>
> Ricardo,
>
> Boy howdy! That's a new lesson for me, and a valuable one.
>
> Works like a charm.
>
> Thanks,
>
> Rich
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org

http://lists.lyx.org/mailman/listinfo/lyx-users



Hi Rick,

Please note that since 2018 the "chngcntr" package has been integrated into
LaTeX2e (see LaTeX2e News Issue 28
),
So, if you are using up to date LaTeX format there is no need to load  the
chngcntr package.

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


Re: KOMA-Script report: float numbering [RESOLVED]

2022-07-28 Thread Rich Shepard

On Thu, 28 Jul 2022, Ricardo Berlasso wrote:


Try with
\usepackage{chngcntr}
\counterwithout{figure}{section}


Ricardo,

Boy howdy! That's a new lesson for me, and a valuable one.

Works like a charm.

Thanks,

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


Re: KOMA-Script report: float numbering

2022-07-28 Thread Ricardo Berlasso
El jue, 28 jul 2022 a las 17:45, Rich Shepard ()
escribió:

> I'm using unnumbered sections and subsections in a KOMA-Script report.
> Floating figures and tables are numbered 0.n because there is no section
> number.
>

Try with

\usepackage{chngcntr}

\counterwithout{figure}{section}


Regards,

Ricardo



>
> I tried adding to the preamble \setcounter{number}{0} but that didn't work.
> I have a vague recollection of using 'renumber' for something like this but
> cannot find it in my web searches.
>
> A pointer would be very helpful.
>
> Rich
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


KOMA-Script report: float numbering

2022-07-28 Thread Rich Shepard

I'm using unnumbered sections and subsections in a KOMA-Script report.
Floating figures and tables are numbered 0.n because there is no section
number.

I tried adding to the preamble \setcounter{number}{0} but that didn't work.
I have a vague recollection of using 'renumber' for something like this but
cannot find it in my web searches.

A pointer would be very helpful.

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


Re: Numbering

2022-02-08 Thread Joseph Hesse via lyx-users

On 2/8/22 09:31, Jürgen Spitzmüller via lyx-users wrote:

Am Dienstag, dem 08.02.2022 um 02:55 +0200 schrieb Joseph Hesse via
lyx-users:

My lyx document is a book with chapters in a master document.  I add
computer program listings, from files in other folders, with
Insert->File->Child Document->Program Listing.  This works well for
me.

The numbering of the program listings is 2.1, 2.2, 2.3, etc. where
the 2
is the chapter and the number after the dot is a counter that keeps
incrementing after a new listing is added.  I would like to change
this
so the numbering is Chapter.Section.Counter e.g. 2.2.1, 2.2.2, 2.2.3
where these are listings in chapter 2, section 2.

How do I do this?  Please point me to a package that will help me
implement this.

\usepackage{chngcntr}
\AtBeginDocument{\counterwithin{lstlisting}{section}}

See
https://tex.stackexchange.com/a/238843

HTH,
Jürgen



Thank you, it works with no issues.
Joe

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


Re: Numbering

2022-02-07 Thread Jürgen Spitzmüller via lyx-users
Am Dienstag, dem 08.02.2022 um 02:55 +0200 schrieb Joseph Hesse via
lyx-users:
> My lyx document is a book with chapters in a master document.  I add 
> computer program listings, from files in other folders, with 
> Insert->File->Child Document->Program Listing.  This works well for
> me.
> 
> The numbering of the program listings is 2.1, 2.2, 2.3, etc. where
> the 2 
> is the chapter and the number after the dot is a counter that keeps 
> incrementing after a new listing is added.  I would like to change
> this 
> so the numbering is Chapter.Section.Counter e.g. 2.2.1, 2.2.2, 2.2.3 
> where these are listings in chapter 2, section 2.
> 
> How do I do this?  Please point me to a package that will help me 
> implement this.

\usepackage{chngcntr}
\AtBeginDocument{\counterwithin{lstlisting}{section}}

See
https://tex.stackexchange.com/a/238843

HTH,
Jürgen



signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Numbering

2022-02-07 Thread Joseph Hesse via lyx-users
My lyx document is a book with chapters in a master document.  I add 
computer program listings, from files in other folders, with 
Insert->File->Child Document->Program Listing.  This works well for me.


The numbering of the program listings is 2.1, 2.2, 2.3, etc. where the 2 
is the chapter and the number after the dot is a counter that keeps 
incrementing after a new listing is added.  I would like to change this 
so the numbering is Chapter.Section.Counter e.g. 2.2.1, 2.2.2, 2.2.3  
where these are listings in chapter 2, section 2.


How do I do this?  Please point me to a package that will help me 
implement this.


Thank you,
Joe

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


Re: Koma-script Book Figure/Table numbering.

2021-02-15 Thread Norman Dunbar

On 04/02/2021 16:42, José Abílio Matos wrote:


It seems that this is on purpose due to using parts.
...



In LyX you can do it, in the master document, with:

Document -> Settings -> Document Class -> Class Options -> Custom

and inserting in the Custom field: numbers=noendperiod

I hope that this helps.



Many thanks. Apologies for the delay ig responding, I've been away from 
my laptop for too long!


I have tested this solution and it works perfectly. Thanks again.

Take care, stay safe.


Cheers,
Norm.

--
Norman Dunbar
Dunbar IT Consultants Ltd

Registered address:
27a Lidget Hill
Pudsey
West Yorkshire
United Kingdom
LS28 7LG

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


Re: Koma-script Book Figure/Table numbering.

2021-02-04 Thread José Abílio Matos
On Thursday, February 4, 2021 2:51:44 PM WET Norman Dunbar wrote:
> Hi Rich,
> 
> thanks for the advice. Please find the test case attached. Hopefully.
> 
> LyxTableBug is the master, childDocument is, well, the child document.
> 
> 
> Cheers,
> Norm.

It seems that this is on purpose due to using parts.

I had to search for the solution:
https://tex.stackexchange.com/questions/179285/redefine-figure-counter-with-scrbook

In LyX you can do it, in the master document, with:

Document -> Settings -> Document Class -> Class Options -> Custom

and inserting in the Custom field: numbers=noendperiod

I hope that this helps.
-- 
José Abílio


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


Re: Koma-script Book Figure/Table numbering.

2021-02-04 Thread Norman Dunbar

On 04/02/2021 14:32, Paul A. Rubin wrote:

On the subject of upgrading, you can get a .deb file by adding the 
developer PPA as a software source, doing a refresh in the update 
manager, and then updating LyX. Here's the line for adding the PPA: deb 
http://ppa.launchpad.net/lyx-devel/release/ubuntu focal main. Change 
"focal" to the Ubuntu equivalent of Mint 19 (xenial?). If you have any 
Mint-specific questions, I'm on Mint 20.


Hi Paul,

thanks for that, I will upgrade at some point very soon and see if it 
makes a difference. I'll be upgrading to Mint 20 soon as well. It's on 
my TODO list.


Cheers,
Norm.


--
Norman Dunbar
Dunbar IT Consultants Ltd

Registered address:
27a Lidget Hill
Pudsey
West Yorkshire
United Kingdom
LS28 7LG

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


Re: Koma-script Book Figure/Table numbering.

2021-02-04 Thread Paul A. Rubin

On 2/4/21 9:25 AM, Rich Shepard wrote:

On Thu, 4 Feb 2021, Norman Dunbar wrote:


* Lyx 2.2.4 (From the Mint distro, not downloaded.)


Norman,

Could be an issue fixed since then. The current version is 2.3.6.1.

I have a test case if anyone is interested, but I doubt I'd be 
allowed to

attach it to a list posting, especially as a new subscriber.


Actually, a NWE (Minimum Working Example), attached to a message, is a
requirement. It allows folks to see the underlying LaTeX and futz with 
it to

understand what's happening. Please send it.

Rich


Norm,

On the subject of upgrading, you can get a .deb file by adding the 
developer PPA as a software source, doing a refresh in the update 
manager, and then updating LyX. Here's the line for adding the PPA: deb 
http://ppa.launchpad.net/lyx-devel/release/ubuntu focal main. Change 
"focal" to the Ubuntu equivalent of Mint 19 (xenial?). If you have any 
Mint-specific questions, I'm on Mint 20.


Paul

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


Re: Koma-script Book Figure/Table numbering.

2021-02-04 Thread Rich Shepard

On Thu, 4 Feb 2021, Norman Dunbar wrote:


* Lyx 2.2.4 (From the Mint distro, not downloaded.)


Norman,

Could be an issue fixed since then. The current version is 2.3.6.1.


I have a test case if anyone is interested, but I doubt I'd be allowed to
attach it to a list posting, especially as a new subscriber.


Actually, a NWE (Minimum Working Example), attached to a message, is a
requirement. It allows folks to see the underlying LaTeX and futz with it to
understand what's happening. Please send it.

Rich

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


Koma-script Book Figure/Table numbering.

2021-02-04 Thread Norman Dunbar

Hello All,

I have searched the archives and googled for information, but I found 
nothing useful. If I have missed something, please be gentle with me! ;-)


My development setup:

* Linux Mint 19.3 64 bit.
* Lyx 2.2.4 (From the Mint distro, not downloaded.)
* Koma Script Book document class.


I have a book in progress, hopefully to be published "soon". I wrote my 
previous book in ASCIIDoctor-pdf and it was a total nightmare when the 
publisher wanted a re-jig of the chapters as the table/figure/listings 
all had to be manually renumbered. I have some experience with pure 
LaTeX, but I much prefer Lyx, I get more done that way.


The publisher requires me to number tables and figures as "n.n.n". I 
have set my Document's modules to "Number tables by section", "Number 
figures by section".


The book is split into parts and each chapter is a separate file 
inserted as child documents with include type = "include". Each child 
has the same options as the master - I have checked.


When I preview a child document, the generated PDF is correctly 
numbering the tables and figures as "n.n.n: Caption_text", however, when 
I preview the master document the tables and figures are now "n.n.n.: 
Caption_text" -- there's an extra dot before the colon.


This problem does not occur if the Standard Book document class is used. 
However, I do prefer the Koma-script one.


The problem also doesn't occur if I don't use parts. Unfortunately, I 
need parts.


I have a test case if anyone is interested, but I doubt I'd be allowed 
to attach it to a list posting, especially as a new subscriber.


Has anyone seen this problem before? If so, did you find a solution?


Thanks in advance.


Cheers,
Norm.

--
Norman Dunbar
Dunbar IT Consultants Ltd

Registered address:
27a Lidget Hill
Pudsey
West Yorkshire
United Kingdom
LS28 7LG

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


Re: double dots in chapter numbering Hungarian

2021-01-07 Thread Horváth Andor
Thanks! I filed the bug, but then realized there was already a ticket
(https://www.lyx.org/trac/ticket/11573) in the subject.

For the time being, a workaround solution, based on the comments to this
ticket, was to start my local layout like this:

---

Counter chapter
LabelString "\\arabic{chapter}"
End

Style Chapter
LabelString "\thechapter."
TocLevel 0
End

---

This solves chapter, section, subsection numbering alike. Thanks a lot!

Andor

On 2021. 01. 06. 20:07, Richard Kimberly Heck wrote:
> On 1/6/21 9:01 AM, Horváth Andor wrote:
>> Hello!
>>
>> I have been using LyX for the past 6 months now, and I love it - but
>> there is an annoying detail I would love to change. When set to
>> Hungarian, the chapter counter includes a dot, while the other counters
>> don't. So "Chapter 1", which should be "1. fejezet" in Hungarian, looks
>> like "1.. fejezet", and "Section 1.1" is numbered like "1..1".
>>
>> I tried adding local layout commands, but I haven't managed to remove
>> that unnecessary extra dot.
>>
>> Is there a workaround for this issue? Thank you so much for any
>> ideas/advices!
> 
> I think this just got fixed for the next version (which, unfortunately,
> is a little ways away). But maybe I'm wrong about that and it was
> another language. I believe the extra dot comes from the translation file.
> 
> Can you please file a bug about this at lyx.org/trac/? That way we do
> not lose track of it.
> 
> Riki
> 
> 
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: double dots in chapter numbering Hungarian

2021-01-06 Thread Richard Kimberly Heck
On 1/6/21 9:01 AM, Horváth Andor wrote:
> Hello!
>
> I have been using LyX for the past 6 months now, and I love it - but
> there is an annoying detail I would love to change. When set to
> Hungarian, the chapter counter includes a dot, while the other counters
> don't. So "Chapter 1", which should be "1. fejezet" in Hungarian, looks
> like "1.. fejezet", and "Section 1.1" is numbered like "1..1".
>
> I tried adding local layout commands, but I haven't managed to remove
> that unnecessary extra dot.
>
> Is there a workaround for this issue? Thank you so much for any
> ideas/advices!

I think this just got fixed for the next version (which, unfortunately,
is a little ways away). But maybe I'm wrong about that and it was
another language. I believe the extra dot comes from the translation file.

Can you please file a bug about this at lyx.org/trac/? That way we do
not lose track of it.

Riki


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


double dots in chapter numbering Hungarian

2021-01-06 Thread Horváth Andor
Hello!

I have been using LyX for the past 6 months now, and I love it - but
there is an annoying detail I would love to change. When set to
Hungarian, the chapter counter includes a dot, while the other counters
don't. So "Chapter 1", which should be "1. fejezet" in Hungarian, looks
like "1.. fejezet", and "Section 1.1" is numbered like "1..1".

I tried adding local layout commands, but I haven't managed to remove
that unnecessary extra dot.

Is there a workaround for this issue? Thank you so much for any
ideas/advices!

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


independent numbering lemmas using LyX

2020-03-11 Thread Cao Kecai
Dear all;
I am new LyX user.
When I import a tex file into Lyx (template of "IEEE Transactions") there is a 
problem.
The following tex code
\theoremstyle{plain}
\newtheorem{lem}{\protect\remarkname}
are forced into
\theoremstyle{plain}
\newtheorem{lem}[thm]{\protect\remarkname}.

That means the independent number of lemmas cannot be realized in LyX using 
template of "IEEE Transactions".

I have tried a lot of methods. Are there any possible methods to solve that?

Thank you very much.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


independent numbering lemmas using LyX

2020-03-10 Thread Ke-Cai Cao
Dear all;

I am new LyX user.

When I import a tex file into Lyx (template of “IEEE Transactions”) there
is a problem.

The following tex code

\theoremstyle{plain}

\newtheorem{lem}{\protect\remarkname}

are forced into

\theoremstyle{plain}

\newtheorem{lem}[thm]{\protect\remarkname}.



That means the independent number of lemmas cannot be realized in LyX using
template of “IEEE Transactions”.



I have tried a lot of methods. Are there any possible methods to solve that?



Thank you very much.
-- 
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



Re: figure numbering

2018-03-12 Thread Patrick Dupre
OK,

Very good thank you

===
 Patrick DUPRÉ | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale   | |
 Tel.  (33)-(0)3 28 23 76 12   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===


> Sent: Monday, March 12, 2018 at 5:06 PM
> From: "Paul A. Rubin" 
> To: lyx-users@lists.lyx.org
> Subject: Re: figure numbering
>
> On 03/12/2018 11:53 AM, Patrick Dupre wrote:
> > Yes,
> >
> > I have no section.
> > It is a 1.5 pages document, and I did not section it.
> >
> In Document > Modules, do you by any chance have "Number Figures by 
> Section" selected? I believe it is selected by default for some layouts. 
> If so, just delete it from the selected list.
> 
> Paul
> 
>


Re: figure numbering

2018-03-12 Thread Paul A. Rubin

On 03/12/2018 11:53 AM, Patrick Dupre wrote:

Yes,

I have no section.
It is a 1.5 pages document, and I did not section it.

In Document > Modules, do you by any chance have "Number Figures by 
Section" selected? I believe it is selected by default for some layouts. 
If so, just delete it from the selected list.


Paul



RE: RE: figure numbering

2018-03-12 Thread Bernt Lie
I guess you have two choices (maybe more...):
* Make the figure a *displayed* figure, not a *floating* figure. In that case, 
the figure will not have numbering -- but you cannot have caption either.
* Number the section where the figure is places.

I guess it is also possible to change the numbering scheme so that the figure 
is not numbered according to heading, but sequentially in the document. I don't 
recall how to do this off my head, but it is possible.

-Bernt

-Original Message-
From: Patrick Dupre  
Sent: Monday, March 12, 2018 16:54
To: Bernt Lie 
Cc: lyx 
Subject: Re: RE: figure numbering

Yes,

I have no section.
It is a 1.5 pages document, and I did not section it.

===
 Patrick DUPRÉ | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale   | |
 Tel.  (33)-(0)3 28 23 76 12   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===


> Sent: Monday, March 12, 2018 at 4:44 PM
> From: "Bernt Lie" 
> To: "Patrick Dupre" , lyx 
> Subject: RE: figure numbering
>
> Is figure placed in unnumbered section/chapter? It looks like the top-level 
> heading has not been numbered.
> 
> -B
> 
> -Original Message-
> From: lyx-users@lists.lyx.org  On Behalf Of Patrick 
> Dupre
> Sent: Monday, March 12, 2018 16:39
> To: lyx 
> Subject: figure numbering
> 
> Hello,
> 
> I have figure numbering appearing like 0.1 How can I avoid this artifact?
> 
> 
> Thank
> 
> ===
>  Patrick DUPRÉ | | email: pdu...@gmx.com
>  Laboratoire de Physico-Chimie de l'Atmosphère | |
>  Université du Littoral-Côte d'Opale   | |
>  Tel.  (33)-(0)3 28 23 76 12   | | Fax: 03 28 65 82 44
>  189A, avenue Maurice Schumann | | 59140 Dunkerque, France
> ===
>


Re: RE: figure numbering

2018-03-12 Thread Patrick Dupre
Yes,

I have no section.
It is a 1.5 pages document, and I did not section it.

===
 Patrick DUPRÉ | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale   | |
 Tel.  (33)-(0)3 28 23 76 12   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===


> Sent: Monday, March 12, 2018 at 4:44 PM
> From: "Bernt Lie" 
> To: "Patrick Dupre" , lyx 
> Subject: RE: figure numbering
>
> Is figure placed in unnumbered section/chapter? It looks like the top-level 
> heading has not been numbered.
> 
> -B
> 
> -Original Message-
> From: lyx-users@lists.lyx.org  On Behalf Of Patrick 
> Dupre
> Sent: Monday, March 12, 2018 16:39
> To: lyx 
> Subject: figure numbering
> 
> Hello,
> 
> I have figure numbering appearing like 0.1 How can I avoid this artifact?
> 
> 
> Thank
> 
> ===
>  Patrick DUPRÉ | | email: pdu...@gmx.com
>  Laboratoire de Physico-Chimie de l'Atmosphère | |
>  Université du Littoral-Côte d'Opale   | |
>  Tel.  (33)-(0)3 28 23 76 12   | | Fax: 03 28 65 82 44
>  189A, avenue Maurice Schumann | | 59140 Dunkerque, France
> ===
>


RE: figure numbering

2018-03-12 Thread Bernt Lie
Is figure placed in unnumbered section/chapter? It looks like the top-level 
heading has not been numbered.

-B

-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of Patrick 
Dupre
Sent: Monday, March 12, 2018 16:39
To: lyx 
Subject: figure numbering

Hello,

I have figure numbering appearing like 0.1 How can I avoid this artifact?


Thank

===
 Patrick DUPRÉ | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale   | |
 Tel.  (33)-(0)3 28 23 76 12   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===


figure numbering

2018-03-12 Thread Patrick Dupre
Hello,

I have figure numbering appearing like 0.1
How can I avoid this artifact?


Thank

===
 Patrick DUPRÉ | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale   | |
 Tel.  (33)-(0)3 28 23 76 12   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===


RE: Numbering of Theorems, etc.

2017-02-13 Thread Bernt Lie


From: Andrew Parsloe<mailto:apars...@clear.net.nz>
Sent: Monday, February 13, 2017 21:19
To: Bernt Lie<mailto:bernt@usn.no>; 
lyx-users@lists.lyx.org<mailto:lyx-users@lists.lyx.org>
Subject: Re: Numbering of Theorems, etc.



On 9/02/2017 9:16 a.m., Andrew Parsloe wrote:
>
>
> On 9/02/2017 5:01 a.m., Bernt Lie wrote:
>
>> I have now created a new account, and almost finished setting up the
>> computer. HOWEVER, the AMS environments received from Andrew Parsloe
>> doesn’t work properly (they used to work on my old account…). Here is
>> the error message I get when I open my file which utilizes the number of
>> theorems by chapter and type:
>>
>> This is what I have done:
>>
>> 1.I saved the files from Andrew of November 17, 2016, in the %appdata%
>> under LyX2.2/templates
>>
>>
>
>>
>> Any clues as to what may be wrong?
>>
>> -BL
>>
> The files should go in your LyX2.2/layouts folder Bernt. Shift them
> there and then reconfigure.
>
> Andrew
>
The lists have been down. Did you get this reply Bernt and did it work?
--
Yes, thanks: it worked perfectly. Maybe my response got lost… Anyway, I do hope 
it becomes part of v. 2.3.

I guess that’s why I didn’t see any activity in a while… 😀
-B




Re: Numbering of Theorems, etc.

2017-02-13 Thread Andrew Parsloe



On 9/02/2017 9:16 a.m., Andrew Parsloe wrote:



On 9/02/2017 5:01 a.m., Bernt Lie wrote:


I have now created a new account, and almost finished setting up the
computer. HOWEVER, the AMS environments received from Andrew Parsloe
doesn’t work properly (they used to work on my old account…). Here is
the error message I get when I open my file which utilizes the number of
theorems by chapter and type:

This is what I have done:

1.I saved the files from Andrew of November 17, 2016, in the %appdata%
under LyX2.2/templates






Any clues as to what may be wrong?

-BL


The files should go in your LyX2.2/layouts folder Bernt. Shift them
there and then reconfigure.

Andrew


The lists have been down. Did you get this reply Bernt and did it work?

Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: footnote numbering in boxes

2016-11-22 Thread Michael Berger


On 11/19/2016 11:39 AM, Jean-Marc Lasgouttes wrote:

Le 19/11/2016 à 10:25, Michael Berger a écrit :

Dear all,

I observe that numbering of footnotes in boxes is automatically changing
to 'lettering' - see screen shot. Is this intended behavior or could it
be specific to classicthesis? I am not sure to like it or not.


Hello Michael,

All I know is that it is not our doing.

Regards,
JMarc



Hi JMarc, edu Gpl, all,

I found all open questions on the subject answered in: > Help > Embedded 
Objects > Notes > Footnotes.


For user colleagues  concerned I am citing the most relevant declaratives:

 * the numbers (of footnotes) are consecutive; whether the footnotes
   are reset for every chapter depends on the document class (they are
   in classicthesis)
 * footnotes in tables are not printed by Latex due to technical
   reasons; but there is a method to print them: instead of the
   footnote the command \footnotemark{} is inserted as Tex code and the
   text of the footnote is entered as an argument of the Tex code
   command \footnotetext{put footnote text here}
 * footnotes in a minipage box are printed but inside the box and with
   a different numbering (in classicthesis the numbers are replaced by
   letters a, b, c) because a minipage box is like a page inside a
   page; to get a footnote that is output at the bottom of the page
   (like a normal footnote) use above method of \footnotemark{} and
   _outside_ the minipage \footnotetext{}
 * if in Box Settings the Inner Box is changed from 'Minibox' to
   'Parebox' the footnotes will be moved from inside the box to the
   bottom of the page and the numbering will be consecutive as normal

Michael




Re: footnote numbering in boxes

2016-11-20 Thread Michael Berger


On 11/20/2016 08:15 AM, edu Gpl wrote:


Please see this link:

http://tex.stackexchange.com/questions/106306/using-footnotemark-with-letters

Best regards


بتاريخ ١٩‏/١١‏/٢٠١٦ ١٢:٢٧ م، كتب "Michael Berger" <mailto:id...@online.de>>:


Dear all,

I observe that numbering of footnotes in boxes is automatically
changing to 'lettering' - see screen shot. Is this intended
behavior or could it be specific to classicthesis? I am not sure
to like it or not.

Any comment is appreciated.

I am using Lyx 2.2.2, texlive 2016, Miede's classicthesis 4.2

Thanks & cheers,

Michael



Thanks edu Gpl,
but I did not change/add any code of my footnotes. I prefer to have 
*all* footnotes numbered and put at the end of the page - never inside a 
box.
These two footnotes were there already in the text and numbered and they 
were put at the end of the page. Then I selected that part of the text 
as a box, the footnotes moved from the end of the page inside the box 
and had their numbers replaced by letters.

So, I take it this is sort of an automatism.
Anyway, I can now use the code found in your link to reverse this 
automatism.


Thanks and regards,
Michael


footnote numbering in boxes

2016-11-19 Thread Michael Berger

Dear all,

I observe that numbering of footnotes in boxes is automatically changing 
to 'lettering' - see screen shot. Is this intended behavior or could it 
be specific to classicthesis? I am not sure to like it or not.


Any comment is appreciated.

I am using Lyx 2.2.2, texlive 2016, Miede's classicthesis 4.2

Thanks & cheers,

Michael



Re: Numbering of Theorems, etc.

2016-11-18 Thread Richard Heck
On 11/17/2016 03:42 PM, Andrew Parsloe wrote:
>
>
> On 18/11/2016 5:43 a.m., Richard Heck wrote:
>> On 11/17/2016 04:42 AM, Andrew Parsloe wrote:
>>>
>>> LyX doesn't supply all the modules necessary to use AMS environments
>>> numbered by type within chapters. I ran into this problem some weeks
>>> ago but found I could create or adjust the necessary modules using the
>>> supplied ones as models. I've attached the new/adjusted ones to this
>>> email. Place them in the layouts folder of your personal LyX
>>> directory. Then you will need to reconfigure LyX so it knows of them.
>>>
>>> There are dependencies among the modules which is why some can't be
>>> added or deleted without others.
>>
>> Thanks for these. I've committed them, but I guess I should first have
>> asked for a GPL declaration, so I can add you to the credits. Can you
>> just send a short email to lyx-devel saying something like: I hereby
>> agree to license my contributions to LyX under the General Public
>> License, version 2 or any later version?
>>
>> Richard
>>
>
> OK, I'll do that, although my contribution was largely mechanical. I
> gather from comments in the modules that the "real work" was done by
> Paul Rubin building on earlier work by you.

It's probably not essential for licensing purposes, but you deserve the
credit.

Richard



Re: Numbering of Theorems, etc.

2016-11-17 Thread Andrew Parsloe



On 17/11/2016 10:56 p.m., Bernt Lie wrote:


-Original Message-
From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of 
Andrew Parsloe
Sent: torsdag 17. november 2016 10.43
To: lyx-users@lists.lyx.org
Subject: Re: Numbering of Theorems, etc.



On 17/11/2016 9:43 p.m., Bernt Lie wrote:

-Original Message-

From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On
Behalf Of Andrew Parsloe


Perhaps I've misunderstood, but it seems to me what is wanted is
the module Theorems (Numbered by

Type within Chapters) that comes with LyX.

This allows one to number by type within chapters each of theorems,
corollaries, lemmas, propositions,

conjectures, facts, definitions, examples, problems, exercises,
remarks and claims.

 Andrew

--

Thanks Andrew. Yes, that's what I also thought, but this has no
effect... Choosing

and

seems to give the same result. I don’t understand why. (Is it because
the first selection says AMS, Numbered by Type, and the second one
doesn’t mention AMS?)

Anyway, depending on which choice I make first, not all choices are
available. Example: with the latter of these choices (both Theorems
(AMS, ...) and Theorems (Numbered by Type...)...

·if I try to select Theorems (AMS, ...) first, option “Delete” is not
available

·so I have to delete the second option first, and then after that, I
can delete “Theorems (AMS, ...)”.

Likewise, module “Theorems (Numbered by Type within Chapters)” – which
is really what I want – can only be added if I **first** add “Theorems
(AMS, Numbered by Type)”... and then it doesn’t give the expected effect.

Ideally, this is how I’d like it to work, without having to “hack” in
the preamble...

--

Thanks,

Bernt



 LyX doesn't supply all the modules necessary to use AMS environments 
numbered by type within
 chapters. I ran into this problem some weeks ago but found I could create 
or adjust the necessary
 modules using the supplied ones as models. I've attached the new/adjusted 
ones to this email. Place
 them in the layouts folder of your personal LyX directory.
 Then you will need to reconfigure LyX so it knows of them.

 There are dependencies among the modules which is why some can't be added 
or deleted without
 others.
--
Thanks, Andrew...

* I will probably be able to figure out what the "layouts folder of your personal 
LyX directory" is. I *assume* that what I have to do, is simply save the attached 
files in this folder. (Explorer... using %appdata%, I found folder layouts under LyX2.2.)

* "Then you will need to reconfigure LyX so it knows of them". Here, I'm lost 
as to what this means. Does this simply mean: go into Document Settings of LyX, and add 
the new modules in the Modules part? Or something entirely different?




-Bernt

OK, I see others have intervened while I've been asleep but for 
completeness I'll answer anyway.


"layouts folder of your personal LyX directory": On my windows 7 
machine, the folder is C:\Users\Andrew\AppData\Roaming\LyX2.2\layouts. 
(On your machine obviously the "Andrew" will be different but the folder 
you've discovered sounds like the right one.) Save the files to this folder.


Reconfiguring LyX: Open LyX. Under Tools > Reconfigure click 
Reconfigure. A lot of activity will show in the status bar at the bottom 
of the LyX window, LyX may even seem to freeze for some seconds, and 
then a message box should pop up telling you to close then restart LyX. 
When you do and go to Documents > Settings > Modules the new modules 
should be present in the list.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Numbering of Theorems, etc.

2016-11-17 Thread Andrew Parsloe



On 18/11/2016 5:43 a.m., Richard Heck wrote:

On 11/17/2016 04:42 AM, Andrew Parsloe wrote:


LyX doesn't supply all the modules necessary to use AMS environments
numbered by type within chapters. I ran into this problem some weeks
ago but found I could create or adjust the necessary modules using the
supplied ones as models. I've attached the new/adjusted ones to this
email. Place them in the layouts folder of your personal LyX
directory. Then you will need to reconfigure LyX so it knows of them.

There are dependencies among the modules which is why some can't be
added or deleted without others.


Thanks for these. I've committed them, but I guess I should first have
asked for a GPL declaration, so I can add you to the credits. Can you
just send a short email to lyx-devel saying something like: I hereby
agree to license my contributions to LyX under the General Public
License, version 2 or any later version?

Richard



OK, I'll do that, although my contribution was largely mechanical. I 
gather from comments in the modules that the "real work" was done by 
Paul Rubin building on earlier work by you.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Numbering of Theorems, etc.

2016-11-17 Thread Richard Heck
On 11/17/2016 04:42 AM, Andrew Parsloe wrote:
>
> LyX doesn't supply all the modules necessary to use AMS environments
> numbered by type within chapters. I ran into this problem some weeks
> ago but found I could create or adjust the necessary modules using the
> supplied ones as models. I've attached the new/adjusted ones to this
> email. Place them in the layouts folder of your personal LyX
> directory. Then you will need to reconfigure LyX so it knows of them.
>
> There are dependencies among the modules which is why some can't be
> added or deleted without others.

Thanks for these. I've committed them, but I guess I should first have
asked for a GPL declaration, so I can add you to the credits. Can you
just send a short email to lyx-devel saying something like: I hereby
agree to license my contributions to LyX under the General Public
License, version 2 or any later version?

Richard



RE: Numbering of Theorems, etc.

2016-11-17 Thread Bernt Lie
-Original Message-
From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of 
Wolfgang Engelmann
Sent: torsdag 17. november 2016 11.06
To: lyx-users@lists.lyx.org
Subject: Re: Numbering of Theorems, etc.



On 17.11.2016 10:56, Bernt Lie wrote:
> -Original Message-
> From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On 
> Behalf Of Andrew Parsloe
> Sent: torsdag 17. november 2016 10.43
> To: lyx-users@lists.lyx.org
> Subject: Re: Numbering of Theorems, etc.
>
>
>
> On 17/11/2016 9:43 p.m., Bernt Lie wrote:
>> -Original Message-
>>
>> From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On 
>> Behalf Of Andrew Parsloe
>>
>>
>> Perhaps I've misunderstood, but it seems to me what is wanted is 
>> the module Theorems (Numbered by
>>
>> Type within Chapters) that comes with LyX.
>>
>> This allows one to number by type within chapters each of 
>> theorems, corollaries, lemmas, propositions,
>>
>> conjectures, facts, definitions, examples, problems, exercises, 
>> remarks and claims.
>>
>>  Andrew
>>
>> --
>>
>> Thanks Andrew. Yes, that's what I also thought, but this has no 
>> effect... Choosing
>>
>> and
>>
>> seems to give the same result. I don’t understand why. (Is it because 
>> the first selection says AMS, Numbered by Type, and the second one 
>> doesn’t mention AMS?)
>>
>> Anyway, depending on which choice I make first, not all choices are 
>> available. Example: with the latter of these choices (both Theorems 
>> (AMS, ...) and Theorems (Numbered by Type...)...
>>
>> ·if I try to select Theorems (AMS, ...) first, option “Delete” is not 
>> available
>>
>> ·so I have to delete the second option first, and then after that, I 
>> can delete “Theorems (AMS, ...)”.
>>
>> Likewise, module “Theorems (Numbered by Type within Chapters)” – 
>> which is really what I want – can only be added if I **first** add 
>> “Theorems (AMS, Numbered by Type)”... and then it doesn’t give the expected 
>> effect.
>>
>> Ideally, this is how I’d like it to work, without having to “hack” in 
>> the preamble...
>>
>> --
>>
>> Thanks,
>>
>> Bernt
>>
>  LyX doesn't supply all the modules necessary to use AMS environments 
> numbered by type within
>  chapters. I ran into this problem some weeks ago but found I could 
> create or adjust the necessary
>  modules using the supplied ones as models. I've attached the 
> new/adjusted ones to this email. Place
>  them in the layouts folder of your personal LyX directory.
>  Then you will need to reconfigure LyX so it knows of them.
>
>  There are dependencies among the modules which is why some can't be 
> added or deleted without
>  others.
> --
> Thanks, Andrew...
>
> * I will probably be able to figure out what the "layouts folder of 
> your personal LyX directory" is. I *assume* that what I have to do, is 
> simply save the attached files in this folder. (Explorer... using 
> %appdata%, I found folder layouts under LyX2.2.)
>
> * "Then you will need to reconfigure LyX so it knows of them". Here, I'm lost 
> as to what this means. Does this simply mean: go into Document Settings of 
> LyX, and add the new modules in the Modules part? Or something entirely 
> different?
>
> -Bernt
   >tools>reconfigure
   Wolfgang


Beautiful! Thanks, Richard, Andrew and Wolfgang!

It would be very nice if these improved/fixed modules could be part of the 
standard installation of LyX in the future -- so that I don't have to remember 
to save them each time...

-Bernt


Re: Numbering of Theorems, etc.

2016-11-17 Thread Wolfgang Engelmann



On 17.11.2016 10:56, Bernt Lie wrote:

-Original Message-
From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of 
Andrew Parsloe
Sent: torsdag 17. november 2016 10.43
To: lyx-users@lists.lyx.org
Subject: Re: Numbering of Theorems, etc.



On 17/11/2016 9:43 p.m., Bernt Lie wrote:

-Original Message-

From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On
Behalf Of Andrew Parsloe


Perhaps I've misunderstood, but it seems to me what is wanted is
the module Theorems (Numbered by

Type within Chapters) that comes with LyX.

This allows one to number by type within chapters each of theorems,
corollaries, lemmas, propositions,

conjectures, facts, definitions, examples, problems, exercises,
remarks and claims.

 Andrew

--

Thanks Andrew. Yes, that's what I also thought, but this has no
effect... Choosing

and

seems to give the same result. I don’t understand why. (Is it because
the first selection says AMS, Numbered by Type, and the second one
doesn’t mention AMS?)

Anyway, depending on which choice I make first, not all choices are
available. Example: with the latter of these choices (both Theorems
(AMS, ...) and Theorems (Numbered by Type...)...

·if I try to select Theorems (AMS, ...) first, option “Delete” is not
available

·so I have to delete the second option first, and then after that, I
can delete “Theorems (AMS, ...)”.

Likewise, module “Theorems (Numbered by Type within Chapters)” – which
is really what I want – can only be added if I **first** add “Theorems
(AMS, Numbered by Type)”... and then it doesn’t give the expected effect.

Ideally, this is how I’d like it to work, without having to “hack” in
the preamble...

--

Thanks,

Bernt


 LyX doesn't supply all the modules necessary to use AMS environments 
numbered by type within
 chapters. I ran into this problem some weeks ago but found I could create 
or adjust the necessary
 modules using the supplied ones as models. I've attached the new/adjusted 
ones to this email. Place
 them in the layouts folder of your personal LyX directory.
 Then you will need to reconfigure LyX so it knows of them.

 There are dependencies among the modules which is why some can't be added 
or deleted without
 others.
--
Thanks, Andrew...

* I will probably be able to figure out what the "layouts folder of your personal 
LyX directory" is. I *assume* that what I have to do, is simply save the attached 
files in this folder. (Explorer... using %appdata%, I found folder layouts under LyX2.2.)

* "Then you will need to reconfigure LyX so it knows of them". Here, I'm lost 
as to what this means. Does this simply mean: go into Document Settings of LyX, and add 
the new modules in the Modules part? Or something entirely different?

-Bernt

>tools>reconfigure
Wolfgang


RE: Numbering of Theorems, etc.

2016-11-17 Thread Bernt Lie

-Original Message-
From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of 
Andrew Parsloe
Sent: torsdag 17. november 2016 10.43
To: lyx-users@lists.lyx.org
Subject: Re: Numbering of Theorems, etc.



On 17/11/2016 9:43 p.m., Bernt Lie wrote:
> -Original Message-
>
> From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On 
> Behalf Of Andrew Parsloe
>
>
>Perhaps I've misunderstood, but it seems to me what is wanted is 
> the module Theorems (Numbered by
>
>Type within Chapters) that comes with LyX.
>
>This allows one to number by type within chapters each of theorems, 
> corollaries, lemmas, propositions,
>
>conjectures, facts, definitions, examples, problems, exercises, 
> remarks and claims.
>
> Andrew
>
> --
>
> Thanks Andrew. Yes, that's what I also thought, but this has no 
> effect... Choosing
>
> and
>
> seems to give the same result. I don’t understand why. (Is it because 
> the first selection says AMS, Numbered by Type, and the second one 
> doesn’t mention AMS?)
>
> Anyway, depending on which choice I make first, not all choices are 
> available. Example: with the latter of these choices (both Theorems 
> (AMS, ...) and Theorems (Numbered by Type...)...
>
> ·if I try to select Theorems (AMS, ...) first, option “Delete” is not 
> available
>
> ·so I have to delete the second option first, and then after that, I 
> can delete “Theorems (AMS, ...)”.
>
> Likewise, module “Theorems (Numbered by Type within Chapters)” – which 
> is really what I want – can only be added if I **first** add “Theorems 
> (AMS, Numbered by Type)”... and then it doesn’t give the expected effect.
>
> Ideally, this is how I’d like it to work, without having to “hack” in 
> the preamble...
>
> --
>
> Thanks,
>
> Bernt
>

LyX doesn't supply all the modules necessary to use AMS environments 
numbered by type within 
chapters. I ran into this problem some weeks ago but found I could create 
or adjust the necessary   
modules using the supplied ones as models. I've attached the new/adjusted 
ones to this email. Place  
them in the layouts folder of your personal LyX directory. 
Then you will need to reconfigure LyX so it knows of them.

There are dependencies among the modules which is why some can't be added 
or deleted without  
others.
--
Thanks, Andrew...

* I will probably be able to figure out what the "layouts folder of your 
personal LyX directory" is. I *assume* that what I have to do, is simply save 
the attached files in this folder. (Explorer... using %appdata%, I found folder 
layouts under LyX2.2.)

* "Then you will need to reconfigure LyX so it knows of them". Here, I'm lost 
as to what this means. Does this simply mean: go into Document Settings of LyX, 
and add the new modules in the Modules part? Or something entirely different?

-Bernt


Re: Numbering of Theorems, etc.

2016-11-17 Thread Andrew Parsloe
r]
\fi
EndPreamble
Requires  amsthm
LangPreamble
  \providecommand{\problemname}{_(Problem)}
EndLangPreamble
BabelPreamble
  \addto\captions$$lang{\renewcommand{\problemname}{_(Problem)}}
EndBabelPreamble
LabelCounter  problem
End


Style Exercise
CopyStyle Definition
LatexName xca
LabelString   "Exercise \thechapter.\theexercise."
Preamble
  \theoremstyle{definition}
\ifx\thechapter\undefined
  \newtheorem{xca}{\protect\exercisename}
\else
  \newtheorem{xca}{\protect\exercisename}[chapter]
\fi
EndPreamble
Requires  amsthm
LangPreamble
  \providecommand{\exercisename}{_(Exercise)}
EndLangPreamble
BabelPreamble
  \addto\captions$$lang{\renewcommand{\exercisename}{_(Exercise)}}
EndBabelPreamble
LabelCounter  exercise
End


Style Solution
CopyStyle Definition
LatexName sol
LabelString   "Solution \thechapter.\thesolution."
Preamble
  \theoremstyle{definition}
\ifx\thechapter\undefined
  \newtheorem{sol}{\protect\solutionname}
\else
  \newtheorem{sol}{\protect\solutionname}[chapter]
\fi
EndPreamble
Requires  amsthm
LangPreamble
\providecommand{\solutionname}{_(Solution)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\renewcommand{\solutionname}{_(Solution)}}
EndBabelPreamble
LabelCounter  solution
End


Style Remark
CopyStyle Theorem
LatexName rem
LabelString   "Remark \thechapter.\theremark."
Font
  Shape   Up
  SizeNormal
EndFont
LabelFont
  Series  Medium
  Shape   Italic
EndFont
Preamble
  \theoremstyle{remark}
\ifx\thechapter\undefined
  \newtheorem{rem}{\protect\remarkname}
\else
  \newtheorem{rem}{\protect\remarkname}[chapter]
\fi
EndPreamble
LangPreamble
  \providecommand{\remarkname}{_(Remark)}
EndLangPreamble
BabelPreamble
  \addto\captions$$lang{\renewcommand{\remarkname}{_(Remark)}}
EndBabelPreamble
LabelCounter  remark
End


Style Claim
CopyStyle Remark
LatexName claim
LabelString   "Claim \thechapter.\theclaim."
Preamble
  \theoremstyle{remark}
\ifx\thechapter\undefined
  \newtheorem{claim}{\protect\claimname}
\else
  \newtheorem{claim}{\protect\claimname}[chapter]
\fi
EndPreamble
Requires  amsthm
LangPreamble
  \providecommand{\claimname}{_(Claim)}
EndLangPreamble
BabelPreamble
  \addto\captions$$lang{\renewcommand{\claimname}{_(Claim)}}
EndBabelPreamble
LabelCounter  claim
End


Input theorems-case.inc
#\DeclareLyXModule{Theorems (AMS, Numbered by Type within Chapters)}
#DescriptionBegin
#Defines theorem environments and the proof environment using the extended 
#AMS machinery. Both numbered and unnumbered types are provided. Contrary to the
#plain AMS Theorem module, the different theorem types provided here each have 
#a separate counter (e.g., theorem 1.1, theorem 1.2, lemma 1.1, proposition 
1.1, 
#theorem 1.3, lemma 1.2, ..., as opposed to theorem 1, theorem 2, lemma 3, 
#proposition 4, ...). The numbering restarts for each chapter: theorem 1.1, 
#theorem 2.1, ...
#DescriptionEnd
#Excludes: theorems-std | theorems-starred | theorems-ams | theorems-bytype

# Original Author : David L. Johnson 
# Probably broken by Jean-Marc Lasgouttes 
# modified and modularized by Emmanuel GUREGHIAN 
# Tinkered with Sep. '07 by Paul Rubin 
# Modularized Jan 08 by Richard Heck 
# Hacked June '09 by Paul Rubin  to use separate counters
# Chapter dependence added Oct '16 by Andrew Parsloe 

Format 60

Requiresamsmath,amsthm

# The environments defined (regular and starred) are :
# - theorem
# - corollary
# - lemma
# - proposition
# - conjecture
# - fact
# - definition
# - example
# - solution
# - problem
# - exercise
# - remark
# - claim

# We need separate counters for each theorem-like style.
Counter theorem
End
Counter corollary
End
Counter lemma
End
Counter proposition
End
Counter conjecture
End
Counter fact
End
Counter definition
End
Counter example
End
Counter solution
End
Counter problem
End
Counter exercise
End
Counter remark
End
Counter claim
End


Input theorems-order.inc
Input theorems-ams-chap-bytype.inc
Input theorems-starred.inc
Input theorems-proof.inc
#\DeclareLyXModule{Theorems (AMS-Extended, Numbered by

RE: Numbering of Theorems, etc.

2016-11-17 Thread Bernt Lie


-Original Message-

From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of 
Andrew Parsloe

Sent: onsdag 16. november 2016 23.08

To: lyx-users@lists.lyx.org

Subject: Re: Numbering of Theorems, etc.







On 17/11/2016 6:02 a.m., Richard Heck wrote:

> On 11/16/2016 04:03 AM, Bernt Lie wrote:

>>

>> *From:*Richard Heck [mailto:rgh...@lyx.org]

>> *Sent:* tirsdag 15. november 2016 19.04

>> *To:* Bernt Lie ; LyX Users

>> 

>> *Subject:* Re: Numbering of Theorems, etc.

>>

>> On 11/15/2016 09:43 AM, Bernt Lie wrote:

>>

>> I use LyX 2.2.1 (currently) on Windows 10.

>>

>> I have a rather long document (some 600 pages, with 9 chapters +

>> several appendices), and want to number Exercises, Problems,

>> Examples, Theorems, etc. **independently** and numbered **by the

>> chapter** (or appendix) they appear in. Thus, exercises in chapter

>> 6 should be numbered Exercise 6.1, Exercise 6.2, etc., while

>> examples in chapter 6 should be numbered Example 6.1, Example 6.2,

>> etc.

>>

>> Currently, this doesn’t work. My set-up is:

>>

>> ·Document class: Book (Standard Class)

>>

>> ·Modules: Theorems (AMS, Numbered by Type)

>>

>> What else do I need to set?

>>

>>

>> I assume the problem is that you are not getting the "numbered by

>> chapter" bit? If so, then maybe the easiest thing to do is use the

>> internal LaTeX command \@addtoreset in the preamble, thus:

>> \@addtoreset{theorem}{chapter}

>> Now the theorem counter gets reset whenever the chapter counter is reset.

>>

>> You'll need to do the same thing for any other counters you are

>> using, and see the theorems-ams-bytype.inc file for the names of the

>> various counters.

>>

>> See also: http://www.tex.ac.uk/FAQ-addtoreset.html.

>>

>> Richard

>>

>> --

>>

>> Richard,

>>

>> Thanks for quick reply. I’ve tested it (inserting

>> “\@addtoreset{theorem}{chapter}” in the preamble), but now get the

>> following error messages:

>>

>> OK. Let me try to be a little bit more precise. Currently, the

>> counters count independently. In other words, Definition 1,

>> Definition 2, Theorem 1, Definition 3, Theorem 2, Example 1, etc.

>>

>> However, they (i) do not contain a chapter counter, and (ii) they do

>> (obviously) not reset the chapter counter in each chapter.

>>

>

> See the attached. Sorry, I got the names of the counters wrong. (I

> mixed up the LyX counters and the LaTeX ones.) The LaTeX names are the

> same as the names of the environments as they are declared in the preamble, 
> e.g.:

>  \newtheorem{lem}{\protect\lemmaname}

> So the counter is "lem" for Lemmas.

>

> Richard

>

  Perhaps I've misunderstood, but it seems to me what is wanted is the module 
Theorems (Numbered by

  Type within Chapters) that comes with LyX.



  This allows one to number by type within chapters each of theorems, 
corollaries, lemmas, propositions,

  conjectures, facts, definitions, examples, problems, exercises, remarks and 
claims.



   Andrew

--

Thanks Andrew. Yes, that's what I also thought, but this has no effect... 
Choosing



[cid:image001.jpg@01D240B7.133551E0]



and

[cid:image002.jpg@01D240B7.133551E0]



seems to give the same result. I don’t understand why. (Is it because the first 
selection says AMS, Numbered by Type, and the second one doesn’t mention AMS?)



Anyway, depending on which choice I make first, not all choices are available. 
Example: with the latter of these choices (both Theorems (AMS, ...) and 
Theorems (Numbered by Type...)...

· if I try to select Theorems (AMS, ...) first, option “Delete” is not 
available

· so I have to delete the second option first, and then after that, I 
can delete “Theorems (AMS, ...)”.

Likewise, module “Theorems (Numbered by Type within Chapters)” – which is 
really what I want – can only be added if I *first* add “Theorems (AMS, 
Numbered by Type)”... and then it doesn’t give the expected effect.



Ideally, this is how I’d like it to work, without having to “hack” in the 
preamble...

--

Thanks,

Bernt


Re: Numbering of Theorems, etc.

2016-11-16 Thread Andrew Parsloe



On 17/11/2016 6:02 a.m., Richard Heck wrote:

On 11/16/2016 04:03 AM, Bernt Lie wrote:


*From:*Richard Heck [mailto:rgh...@lyx.org]
*Sent:* tirsdag 15. november 2016 19.04
*To:* Bernt Lie ; LyX Users 
*Subject:* Re: Numbering of Theorems, etc.

On 11/15/2016 09:43 AM, Bernt Lie wrote:

I use LyX 2.2.1 (currently) on Windows 10.

I have a rather long document (some 600 pages, with 9 chapters +
several appendices), and want to number Exercises, Problems,
Examples, Theorems, etc. **independently** and numbered **by the
chapter** (or appendix) they appear in. Thus, exercises in chapter
6 should be numbered Exercise 6.1, Exercise 6.2, etc., while
examples in chapter 6 should be numbered Example 6.1, Example 6.2,
etc.

Currently, this doesn’t work. My set-up is:

·Document class: Book (Standard Class)

·Modules: Theorems (AMS, Numbered by Type)

What else do I need to set?


I assume the problem is that you are not getting the "numbered by
chapter" bit? If so, then maybe the easiest thing to do is use the
internal LaTeX command \@addtoreset in the preamble, thus:
\@addtoreset{theorem}{chapter}
Now the theorem counter gets reset whenever the chapter counter is reset.

You'll need to do the same thing for any other counters you are using,
and see the theorems-ams-bytype.inc file for the names of the various
counters.

See also: http://www.tex.ac.uk/FAQ-addtoreset.html.

Richard

--

Richard,

Thanks for quick reply. I’ve tested it (inserting
“\@addtoreset{theorem}{chapter}” in the preamble), but now get the
following error messages:

OK. Let me try to be a little bit more precise. Currently, the
counters count independently. In other words, Definition 1, Definition
2, Theorem 1, Definition 3, Theorem 2, Example 1, etc.

However, they (i) do not contain a chapter counter, and (ii) they do
(obviously) not reset the chapter counter in each chapter.



See the attached. Sorry, I got the names of the counters wrong. (I mixed
up the LyX counters and the LaTeX ones.) The LaTeX names are the same as
the names of the environments as they are declared in the preamble, e.g.:
 \newtheorem{lem}{\protect\lemmaname}
So the counter is "lem" for Lemmas.

Richard

Perhaps I've misunderstood, but it seems to me what is wanted is the 
module Theorems (Numbered by Type within Chapters) that comes with LyX. 
This allows one to number by type within chapters each of theorems, 
corollaries, lemmas, propositions, conjectures, facts, definitions, 
examples, problems, exercises, remarks and claims.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Numbering of Theorems, etc.

2016-11-16 Thread Richard Heck
On 11/16/2016 04:03 AM, Bernt Lie wrote:
>
> *From:*Richard Heck [mailto:rgh...@lyx.org]
> *Sent:* tirsdag 15. november 2016 19.04
> *To:* Bernt Lie ; LyX Users 
> *Subject:* Re: Numbering of Theorems, etc.
>
>  
>
> On 11/15/2016 09:43 AM, Bernt Lie wrote:
>
> I use LyX 2.2.1 (currently) on Windows 10.
>
>  
>
> I have a rather long document (some 600 pages, with 9 chapters +
> several appendices), and want to number Exercises, Problems,
> Examples, Theorems, etc. **independently** and numbered **by the
> chapter** (or appendix) they appear in. Thus, exercises in chapter
> 6 should be numbered Exercise 6.1, Exercise 6.2, etc., while
> examples in chapter 6 should be numbered Example 6.1, Example 6.2,
> etc.
>
>  
>
> Currently, this doesn’t work. My set-up is:
>
> · Document class: Book (Standard Class)
>
> · Modules: Theorems (AMS, Numbered by Type)
>
>  
>
> What else do I need to set?
>
>
> I assume the problem is that you are not getting the "numbered by
> chapter" bit? If so, then maybe the easiest thing to do is use the
> internal LaTeX command \@addtoreset in the preamble, thus:
> \@addtoreset{theorem}{chapter}
> Now the theorem counter gets reset whenever the chapter counter is reset.
>
> You'll need to do the same thing for any other counters you are using,
> and see the theorems-ams-bytype.inc file for the names of the various
> counters.
>
> See also: http://www.tex.ac.uk/FAQ-addtoreset.html.
>
> Richard
>
> --
>
> Richard,
>
> Thanks for quick reply. I’ve tested it (inserting
> “\@addtoreset{theorem}{chapter}” in the preamble), but now get the
> following error messages:
>
>  
>
> OK. Let me try to be a little bit more precise. Currently, the
> counters count independently. In other words, Definition 1, Definition
> 2, Theorem 1, Definition 3, Theorem 2, Example 1, etc.
>
>  
>
> However, they (i) do not contain a chapter counter, and (ii) they do
> (obviously) not reset the chapter counter in each chapter.
>

See the attached. Sorry, I got the names of the counters wrong. (I mixed
up the LyX counters and the LaTeX ones.) The LaTeX names are the same as
the names of the environments as they are declared in the preamble, e.g.:
\newtheorem{lem}{\protect\lemmaname}
So the counter is "lem" for Lemmas.

Richard



ch.lyx
Description: application/lyx


RE: Numbering of Theorems, etc.

2016-11-16 Thread Bernt Lie
From: Richard Heck [mailto:rgh...@lyx.org]
Sent: tirsdag 15. november 2016 19.04
To: Bernt Lie ; LyX Users 
Subject: Re: Numbering of Theorems, etc.

On 11/15/2016 09:43 AM, Bernt Lie wrote:
I use LyX 2.2.1 (currently) on Windows 10.

I have a rather long document (some 600 pages, with 9 chapters + several 
appendices), and want to number Exercises, Problems, Examples, Theorems, etc. 
*independently* and numbered *by the chapter* (or appendix) they appear in. 
Thus, exercises in chapter 6 should be numbered Exercise 6.1, Exercise 6.2, 
etc., while examples in chapter 6 should be numbered Example 6.1, Example 6.2, 
etc.

Currently, this doesn’t work. My set-up is:

· Document class: Book (Standard Class)

· Modules: Theorems (AMS, Numbered by Type)

What else do I need to set?

I assume the problem is that you are not getting the "numbered by chapter" bit? 
If so, then maybe the easiest thing to do is use the internal LaTeX command 
\@addtoreset in the preamble, thus:
\@addtoreset{theorem}{chapter}
Now the theorem counter gets reset whenever the chapter counter is reset.

You'll need to do the same thing for any other counters you are using, and see 
the theorems-ams-bytype.inc file for the names of the various counters.

See also: http://www.tex.ac.uk/FAQ-addtoreset.html.

Richard
--
Richard,
Thanks for quick reply. I’ve tested it (inserting 
“\@addtoreset{theorem}{chapter}” in the preamble), but now get the following 
error messages:
[cid:image001.jpg@01D23FF0.AC5099B0]

OK. Let me try to be a little bit more precise. Currently, the counters count 
independently. In other words, Definition 1, Definition 2, Theorem 1, 
Definition 3, Theorem 2, Example 1, etc.

However, they (i) do not contain a chapter counter, and (ii) they do 
(obviously) not reset the chapter counter in each chapter.

So, I still have a problem.
-Bernt


Re: Numbering of Theorems, etc.

2016-11-15 Thread Richard Heck
On 11/15/2016 09:43 AM, Bernt Lie wrote:
>
> I use LyX 2.2.1 (currently) on Windows 10.
>
>  
>
> I have a rather long document (some 600 pages, with 9 chapters +
> several appendices), and want to number Exercises, Problems, Examples,
> Theorems, etc. **independently** and numbered **by the chapter** (or
> appendix) they appear in. Thus, exercises in chapter 6 should be
> numbered Exercise 6.1, Exercise 6.2, etc., while examples in chapter 6
> should be numbered Example 6.1, Example 6.2, etc.
>
>  
>
> Currently, this doesn’t work. My set-up is:
>
> · Document class: Book (Standard Class)
>
> · Modules: Theorems (AMS, Numbered by Type)
>
>  
>
> What else do I need to set?
>

I assume the problem is that you are not getting the "numbered by
chapter" bit? If so, then maybe the easiest thing to do is use the
internal LaTeX command \@addtoreset in the preamble, thus:
\@addtoreset{theorem}{chapter}
Now the theorem counter gets reset whenever the chapter counter is reset.

You'll need to do the same thing for any other counters you are using,
and see the theorems-ams-bytype.inc file for the names of the various
counters.

See also: http://www.tex.ac.uk/FAQ-addtoreset.html.

Richard



Numbering of Theorems, etc.

2016-11-15 Thread Bernt Lie
I use LyX 2.2.1 (currently) on Windows 10.

I have a rather long document (some 600 pages, with 9 chapters + several 
appendices), and want to number Exercises, Problems, Examples, Theorems, etc. 
*independently* and numbered *by the chapter* (or appendix) they appear in. 
Thus, exercises in chapter 6 should be numbered Exercise 6.1, Exercise 6.2, 
etc., while examples in chapter 6 should be numbered Example 6.1, Example 6.2, 
etc.

Currently, this doesn’t work. My set-up is:

· Document class: Book (Standard Class)

· Modules: Theorems (AMS, Numbered by Type)

What else do I need to set?

Thanks,
BL


Re: Covington/Linguistics numbering

2016-10-22 Thread Jürgen Spitzmüller
Am Samstag, den 15.10.2016, 10:18 +0200 schrieb Jürgen Spitzmüller:
> FYI this is now fixed in the development tree and will be fixed in
> LyX
> 2.2.3 (*not* forthcoming LyX 2.2.2).

The fix to the stable branch has now been pushed. If you want to use it
in LyX 2.2.2, replace your version of the linguistics module with this
one:

http://www.lyx.org/trac/export/98eeaceb5ed30c8ff39f88575106faef61b5c59e
/lyxgit/lib/layouts/linguistics.module

Jürgen



signature.asc
Description: This is a digitally signed message part


Re: Covington/Linguistics numbering

2016-10-15 Thread Jürgen Spitzmüller
Am Freitag, den 14.10.2016, 09:15 +0200 schrieb Jürgen Spitzmüller:
> The linguistics module did not change in this regard, but the way
> labels are displayed with the layout format that is used here has.
> 
> I am not sure if the current format can be restored with current
> means,
> but I'll check how it can be improved.

FYI this is now fixed in the development tree and will be fixed in LyX
2.2.3 (*not* forthcoming LyX 2.2.2).

Jürgen


signature.asc
Description: This is a digitally signed message part


Re: Covington/Linguistics numbering

2016-10-14 Thread Jürgen Spitzmüller
Am Donnerstag, den 13.10.2016, 11:18 -0400 schrieb Maria Gouskova:
> Hi all,
> 
> So in the Linguistics module, two numbering environments are
> available: consecutive and multiline numbering. Ever since upgrading
> to 2.2.1, I'm having trouble entering multiple consecutive numbering
> examples--the next line is not numbered, so they all behave sort of
> like multiline until a different environment is introduced between
> two examples. That wasn't a problem in older versions (see http://wik
> i.lyx.org/LyX/LinguistLyX#toc10).
> 
> Used to be:
> 
> (1) example (consec)
> (2) example (consec)
> 
> (1) example (multiline)
>  example (multiline cont'd)
> 
> Now (2.2.1):
> 
> (1) example (consec)
>  example (consec still)
> 
> I know that there is a covington issue in 2.2.1 but have the updated
> version of covington.sty, 1.2, so is this something else? Or have
> there been changes in how this environment works in 2.2x?

The linguistics module did not change in this regard, but the way
labels are displayed with the layout format that is used here has.

I am not sure if the current format can be restored with current means,
but I'll check how it can be improved.

Jürgen

> 
> Maria
> 

signature.asc
Description: This is a digitally signed message part


Re: Covington/Linguistics numbering

2016-10-13 Thread Maria Gouskova
On Thu, Oct 13, 2016 at 11:18 AM, Maria Gouskova  wrote:

> Hi all,
>
> So in the Linguistics module, two numbering environments are available:
> consecutive and multiline numbering. Ever since upgrading to 2.2.1, I'm
> having trouble entering multiple consecutive numbering examples--the next
> line is not numbered, so they all behave sort of like multiline until a
> different environment is introduced between two examples. That wasn't a
> problem in older versions (see http://wiki.lyx.org/LyX/LinguistLyX#toc10).
>
> Used to be:
>
> (1) example (consec)
> (2) example (consec)
>
> (1) example (multiline)
>  example (multiline cont'd)
>
> Now (2.2.1):
>
> (1) example (consec)
>  example (consec still)
>
> I know that there is a covington issue in 2.2.1 but have the updated
> version of covington.sty, 1.2, so is this something else? Or have there
> been changes in how this environment works in 2.2x?
>
> Maria
>


Just to clarify, it compiles fine into a PDF, it's just the LyX side that's
kind of confusing. The individual examples aren't labeled as such, so
there's only one blue label in LyX for a block of them and not a new one
per line.

Maria


Covington/Linguistics numbering

2016-10-13 Thread Maria Gouskova
Hi all,

So in the Linguistics module, two numbering environments are available:
consecutive and multiline numbering. Ever since upgrading to 2.2.1, I'm
having trouble entering multiple consecutive numbering examples--the next
line is not numbered, so they all behave sort of like multiline until a
different environment is introduced between two examples. That wasn't a
problem in older versions (see http://wiki.lyx.org/LyX/LinguistLyX#toc10).

Used to be:

(1) example (consec)
(2) example (consec)

(1) example (multiline)
 example (multiline cont'd)

Now (2.2.1):

(1) example (consec)
 example (consec still)

I know that there is a covington issue in 2.2.1 but have the updated
version of covington.sty, 1.2, so is this something else? Or have there
been changes in how this environment works in 2.2x?

Maria


Issue in slide numbering (Beamer)

2016-10-04 Thread Patrick Dupre
Hello,

It is a latex issue, but I discovered with lyx!
Ile the following code provides me a wrong slide numbering
until I comment the following lines
\AtBeginSection[]{
  \frame{ 
  }
}


\documentclass[american]{beamer}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}

\makeatletter

 \newcommand\makebeamertitle{\frame{\maketitle}}%

 \AtBeginDocument{%
   \let\origtableofcontents=\tableofcontents
   
\def\tableofcontents{\@ifnextchar[{\origtableofcontents}{\gobbletableofcontents}}
   \def\gobbletableofcontents#1{\origtableofcontents}
 }

\usetheme{Madrid}%[compress]

\makeatother

\begin{document}

\AtBeginSection[]{
  \frame{ 
  }
}


\title[Saturated Absorption Modeling]{Line Shape }

\author{Patrick DUPRE}

\institute[LPCA]{Laboratoire de Physico-Chimie}
\makebeamertitle
\begin{frame}{Outline}

\tableofcontents{}

\end{frame}

\section{Introduction}
\begin{frame}{Introduction}
\begin{itemize}
\item {Accurate Modern Spectroscopy of Gas requires new Modeling
Efforts stemming} \par
\end{itemize}
\end{frame}

\end{document}


Any idea ?

Thank for any help.


===
 Patrick DUPRÉ | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale   | |
 Tel.  (33)-(0)3 28 23 76 12   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===


Consecutive numbering in KOMA-Script article

2016-05-31 Thread jezZiFeR
Hello, I have a question regarding the numeration in KOMA-script article. I
would like to have consecutive numbering starting from the beginning (with
1) in each section. Right now the numbering is consecutive throughout the
whole document. After each section it just continues, while I would like to
have to begin it with 1 in each section. I hope I have made clear, what I
want to achieve:

SECTION 2

1. Chapter
2. Chapter
…

SECTION 2

1. Chapter
2. Chapter
…

Thanks for any help
Jess


Re: Page numbering

2016-03-29 Thread Gordon Cooper



On 30/03/16 01:08, Maria Gouskova wrote:

Section 17 on page 16 of the fancyhdr manual talks about this.

http://www.ctan.org/pkg/fancyhdr


Thank you Maria,  package chappg  should
solve my problem.

Gordon.



  1   2   3   4   5   6   7   8   9   10   >