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