Re: Conflict between module and cls

2018-10-31 Thread Ke-Cai Cao
Dear Riki,
the cls is download from a journal and it has been attached.
Thanks
KC Cao

On Wed, Oct 31, 2018 at 9:37 PM Richard Kimberly Heck 
wrote:

> On 10/31/18 9:54 PM, Ke-Cai Cao wrote:
>
> Dear all,
>
> After I choose the module of Theorem in using LyX, there is conflict
> between the theoremstyle  of LyX’s module and that in .cls.
>
> Which cls? If the class file provides the theorem style, then that should
> be said there, and we should have a way to avoid duplication.
>
> Riki
>
>
>


rncauth.cls
Description: Binary data


Re: Conflict between module and cls

2018-10-31 Thread Richard Kimberly Heck
On 10/31/18 9:54 PM, Ke-Cai Cao wrote:
>
> Dear all,
>
> After I choose the module of Theorem in using LyX, there is conflict
> between the theoremstyle  of LyX’s module and that in .cls.
>
Which cls? If the class file provides the theorem style, then that
should be said there, and we should have a way to avoid duplication.

Riki




Conflict between module and cls

2018-10-31 Thread Ke-Cai Cao
Dear all,

After I choose the module of Theorem in using LyX, there is conflict
between the theoremstyle  of LyX’s module and that in .cls.

LaTeX Error: Command \theoremstyle already defined.

Is there anyone can give me some hints to solve this conflict? I don’t want
delete the theoremstyle in .cls as it is required for submission to journal.

Thank you so much.

Best Regards,

KC Cao


Re: LyX 2.3.1: bug in "\text" mode of equations

2018-10-31 Thread Daniel

On 31/10/2018 15:10, Bernt Lie wrote:

Yes, I confirm that this fixes the problem:
* In "Documents > Settings... > Formats", I change "Default output set to" from 
"PDF(XeTeX)" to "Default".
NOTE: this does not have immediate affect! I need to:
* save the document with this settings change,
* close LyX,
* open LyX
* open the changed document


You don't have to close LyX if you save under a new file name or? At 
least I don't have to in order to see the effect.



I'm curious:
* why on earth should the behavior in LyX be related to the chosen output 
format?
* does changing from "PDF(XeTeX)" to "Default" have any side effects?


I don't know. But since this behaviour seems like a bug, I'll forward it 
to the developers. Here is a short summary:


Steps to reproduce:
1. Open the attached file.
2. Set Preview to "On".

Actual result:
- The ø is omitted in the preview but not in the output.

Expected result:
- It is not omitted in both

Daniel


template_test-9.lyx
Description: application/lyx


RE: LyX 2.3.1: bug in "\text" mode of equations

2018-10-31 Thread Bernt Lie
Yes, I confirm that this fixes the problem:
* In "Documents > Settings... > Formats", I change "Default output set to" from 
"PDF(XeTeX)" to "Default".
NOTE: this does not have immediate affect! I need to:
* save the document with this settings change,
* close LyX,
* open LyX
* open the changed document

I'm curious: 
* why on earth should the behavior in LyX be related to the chosen output 
format?
* does changing from "PDF(XeTeX)" to "Default" have any side effects?

-Bernt

-Original Message-
From: Daniel  
Sent: onsdag 31. oktober 2018 14.54
To: Bernt Lie ; lyx-users@lists.lyx.org
Subject: Re: LyX 2.3.1: bug in "\text" mode of equations

Thanks. I think I have narrowed down the problem to "Default output set to " 
with "PDF (XeTeX)" in

Document > Settings... > Formats.

Can you confirm that the problem goes away if you use the "Default" 
output format? (To force LyX to regenerate the preview you can just save the 
file under a new name after you made the change.)

Daniel

On 31/10/2018 14:32, Bernt Lie wrote:
> Here is my "template_test.lyx" file, which contains displayed math with 
> \text{} containing letter "ø". This letter is not displayed wieh I have 
> enabled "instant preview". It does show up when preview in LyX is turned off. 
> In any way, it shows up in the generated PDF file.
> 
> Still, it annoys me that it doesn't show up when I turn on "instant preview".
> 
> Any clues? I use the latest version of Windows 10 (v 1803) 64 bit, LyX 2.3.1 
> 64 bit, version from September 2018 (?).
> 
> Suggestions are appreciated.
> Bernt
> 
> -Original Message-
> From: lyx-users@lists.lyx.org  On Behalf Of 
> Daniel
> Sent: Tuesday, October 30, 2018 11:44
> To: lyx-users@lists.lyx.org
> Subject: Re: LyX 2.3.1: bug in "\text" mode of equations
> 
> On 30/10/2018 11:33, Bernt Lie wrote:
>> Hm... I opened a new document of the template, and in this new template, the 
>> preview works. But it does not work in another document from the same 
>> template, where I'm in the process of inserting text from an OCR scanned 
>> paper copy of a document I wrote 30 years ago... (using Adobe Acrobat for 
>> OCR).
>>
>> This is weird. Maybe some junk from the imported, scanned document? I'll 
>> test some more.
> 
> You can also try whether making a copy of your problem document and opening 
> the copy makes a difference. As far as I remember this should force LyX to 
> regenerate the preview.
> 
> Daniel
> 
>> -Original Message-
>> From: Daniel 
>> Sent: Tuesday, October 30, 2018 10:52
>> To: Bernt Lie ; lyx-users@lists.lyx.org
>> Subject: Re: LyX 2.3.1: bug in "\text" mode of equations
>>
>> On 30/10/2018 10:46, Bernt Lie wrote:
>>> OK -- in your LyX file, Instant preview works ok. Two questions:
>>> * Could it depend on which *style* I use?
>>
>> So what style are you using? Can you send a (somewhat) minimal document 
>> where the problem occurs?
>>
>>> * My LyX version is:
>>>
>>> LyX Version 2.3.1-1
>>> (Saturday, September 29, 2018)
>>> Built from git commit hash ce82ba93
>>> Library directory: ~\AppData\Local\LyX 2.3\Resources\ User directory:
>>> ~\AppData\Roaming\LyX2.3\ Qt Version (run-time): 5.10.1 Qt Version
>>> (compile-time): 5.10.1
>>> --
>>> --> How can I update to the latest version *without* uninstalling the 
>>> current one, and installing the new version from scratch?
>>
>> That is the latest version and the same I am using.
>>
>> (There might have been a misunderstanding. I thought you menat your 
>> Windows version by "latest version" but I guess you did mean LyX. The 
>> information I sent was on the Windows version I am using.)
>>
>> Daniel
>>
>>>
>>> -Original Message-
>>> From: lyx-users@lists.lyx.org  On Behalf Of 
>>> Daniel
>>> Sent: Tuesday, October 30, 2018 10:33
>>> To: lyx-users@lists.lyx.org
>>> Subject: Re: LyX 2.3.1: bug in "\text" mode of equations
>>>
>>> On 30/10/2018 09:38, Bernt Lie wrote:
 I use LyX 2.3.1 (64bit) on 64bit Win 10, latest version, and have Instant 
 preview turned on.

 I need to insert some text in an equation. Two options:
 * \text{my text}
 * \mathrm{text}

 With \text{}, space is automatically handled. With \mathrm{}, I need to 
 use the escape character (backslash) to get space. There are probably also 
 some spacing differences -- I assume \text{} is the correct choice if I 
 write text and not math.

 There is a problem with \text{} if I use Instant preview *on*...: if I 
 include character "ø" in the text string, it shows if I turn Instant 
 preview *off*, but is removed if I turn Instant preview *off*.

 The generated PDF file *includes* the symbol "ø", but ... it does not show 
 up in the preview with Instant preview turned *on*.

 Presumably, this is a problem with other non-English ASCII characters, too?

 -B
>>>
>>> I cannot reproduce the problem. The ø in the attached file shows with 
>>> instant preview turned on.
>>>
>>> This is on 

Re: LyX 2.3.1: bug in "\text" mode of equations

2018-10-31 Thread Daniel
Thanks. I think I have narrowed down the problem to "Default output set 
to " with "PDF (XeTeX)" in


Document > Settings... > Formats.

Can you confirm that the problem goes away if you use the "Default" 
output format? (To force LyX to regenerate the preview you can just save 
the file under a new name after you made the change.)


Daniel

On 31/10/2018 14:32, Bernt Lie wrote:

Here is my "template_test.lyx" file, which contains displayed math with \text{} containing letter 
"ø". This letter is not displayed wieh I have enabled "instant preview". It does show up 
when preview in LyX is turned off. In any way, it shows up in the generated PDF file.

Still, it annoys me that it doesn't show up when I turn on "instant preview".

Any clues? I use the latest version of Windows 10 (v 1803) 64 bit, LyX 2.3.1 64 
bit, version from September 2018 (?).

Suggestions are appreciated.
Bernt

-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of Daniel
Sent: Tuesday, October 30, 2018 11:44
To: lyx-users@lists.lyx.org
Subject: Re: LyX 2.3.1: bug in "\text" mode of equations

On 30/10/2018 11:33, Bernt Lie wrote:

Hm... I opened a new document of the template, and in this new template, the 
preview works. But it does not work in another document from the same template, 
where I'm in the process of inserting text from an OCR scanned paper copy of a 
document I wrote 30 years ago... (using Adobe Acrobat for OCR).

This is weird. Maybe some junk from the imported, scanned document? I'll test 
some more.


You can also try whether making a copy of your problem document and opening the 
copy makes a difference. As far as I remember this should force LyX to 
regenerate the preview.

Daniel


-Original Message-
From: Daniel 
Sent: Tuesday, October 30, 2018 10:52
To: Bernt Lie ; lyx-users@lists.lyx.org
Subject: Re: LyX 2.3.1: bug in "\text" mode of equations

On 30/10/2018 10:46, Bernt Lie wrote:

OK -- in your LyX file, Instant preview works ok. Two questions:
* Could it depend on which *style* I use?


So what style are you using? Can you send a (somewhat) minimal document where 
the problem occurs?


* My LyX version is:

LyX Version 2.3.1-1
(Saturday, September 29, 2018)
Built from git commit hash ce82ba93
Library directory: ~\AppData\Local\LyX 2.3\Resources\ User directory:
~\AppData\Roaming\LyX2.3\ Qt Version (run-time): 5.10.1 Qt Version
(compile-time): 5.10.1
--
--> How can I update to the latest version *without* uninstalling the current 
one, and installing the new version from scratch?


That is the latest version and the same I am using.

(There might have been a misunderstanding. I thought you menat your
Windows version by "latest version" but I guess you did mean LyX. The
information I sent was on the Windows version I am using.)

Daniel



-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of
Daniel
Sent: Tuesday, October 30, 2018 10:33
To: lyx-users@lists.lyx.org
Subject: Re: LyX 2.3.1: bug in "\text" mode of equations

On 30/10/2018 09:38, Bernt Lie wrote:

I use LyX 2.3.1 (64bit) on 64bit Win 10, latest version, and have Instant 
preview turned on.

I need to insert some text in an equation. Two options:
* \text{my text}
* \mathrm{text}

With \text{}, space is automatically handled. With \mathrm{}, I need to use the 
escape character (backslash) to get space. There are probably also some spacing 
differences -- I assume \text{} is the correct choice if I write text and not 
math.

There is a problem with \text{} if I use Instant preview *on*...: if I include character 
"ø" in the text string, it shows if I turn Instant preview *off*, but is 
removed if I turn Instant preview *off*.

The generated PDF file *includes* the symbol "ø", but ... it does not show up 
in the preview with Instant preview turned *on*.

Presumably, this is a problem with other non-English ASCII characters, too?

-B


I cannot reproduce the problem. The ø in the attached file shows with instant 
preview turned on.

This is on Windows 10 Pro 64bit version 17134.345. ("latest version"
is a bit ambigous since there are different update tracks and the
recently pulled "October 2018 Update".)

Daniel






RE: LyX 2.3.1: bug in "\text" mode of equations

2018-10-31 Thread Bernt Lie
Here is my "template_test.lyx" file, which contains displayed math with \text{} 
containing letter "ø". This letter is not displayed wieh I have enabled 
"instant preview". It does show up when preview in LyX is turned off. In any 
way, it shows up in the generated PDF file.

Still, it annoys me that it doesn't show up when I turn on "instant preview".

Any clues? I use the latest version of Windows 10 (v 1803) 64 bit, LyX 2.3.1 64 
bit, version from September 2018 (?). 

Suggestions are appreciated.
Bernt

-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of Daniel
Sent: Tuesday, October 30, 2018 11:44
To: lyx-users@lists.lyx.org
Subject: Re: LyX 2.3.1: bug in "\text" mode of equations

On 30/10/2018 11:33, Bernt Lie wrote:
> Hm... I opened a new document of the template, and in this new template, the 
> preview works. But it does not work in another document from the same 
> template, where I'm in the process of inserting text from an OCR scanned 
> paper copy of a document I wrote 30 years ago... (using Adobe Acrobat for 
> OCR).
> 
> This is weird. Maybe some junk from the imported, scanned document? I'll test 
> some more.

You can also try whether making a copy of your problem document and opening the 
copy makes a difference. As far as I remember this should force LyX to 
regenerate the preview.

Daniel

> -Original Message-
> From: Daniel 
> Sent: Tuesday, October 30, 2018 10:52
> To: Bernt Lie ; lyx-users@lists.lyx.org
> Subject: Re: LyX 2.3.1: bug in "\text" mode of equations
> 
> On 30/10/2018 10:46, Bernt Lie wrote:
>> OK -- in your LyX file, Instant preview works ok. Two questions:
>> * Could it depend on which *style* I use?
> 
> So what style are you using? Can you send a (somewhat) minimal document where 
> the problem occurs?
> 
>> * My LyX version is:
>>
>> LyX Version 2.3.1-1
>> (Saturday, September 29, 2018)
>> Built from git commit hash ce82ba93
>> Library directory: ~\AppData\Local\LyX 2.3\Resources\ User directory:
>> ~\AppData\Roaming\LyX2.3\ Qt Version (run-time): 5.10.1 Qt Version
>> (compile-time): 5.10.1
>> --
>> --> How can I update to the latest version *without* uninstalling the 
>> current one, and installing the new version from scratch?
> 
> That is the latest version and the same I am using.
> 
> (There might have been a misunderstanding. I thought you menat your 
> Windows version by "latest version" but I guess you did mean LyX. The 
> information I sent was on the Windows version I am using.)
> 
> Daniel
> 
>>
>> -Original Message-
>> From: lyx-users@lists.lyx.org  On Behalf Of 
>> Daniel
>> Sent: Tuesday, October 30, 2018 10:33
>> To: lyx-users@lists.lyx.org
>> Subject: Re: LyX 2.3.1: bug in "\text" mode of equations
>>
>> On 30/10/2018 09:38, Bernt Lie wrote:
>>> I use LyX 2.3.1 (64bit) on 64bit Win 10, latest version, and have Instant 
>>> preview turned on.
>>>
>>> I need to insert some text in an equation. Two options:
>>> * \text{my text}
>>> * \mathrm{text}
>>>
>>> With \text{}, space is automatically handled. With \mathrm{}, I need to use 
>>> the escape character (backslash) to get space. There are probably also some 
>>> spacing differences -- I assume \text{} is the correct choice if I write 
>>> text and not math.
>>>
>>> There is a problem with \text{} if I use Instant preview *on*...: if I 
>>> include character "ø" in the text string, it shows if I turn Instant 
>>> preview *off*, but is removed if I turn Instant preview *off*.
>>>
>>> The generated PDF file *includes* the symbol "ø", but ... it does not show 
>>> up in the preview with Instant preview turned *on*.
>>>
>>> Presumably, this is a problem with other non-English ASCII characters, too?
>>>
>>> -B
>>
>> I cannot reproduce the problem. The ø in the attached file shows with 
>> instant preview turned on.
>>
>> This is on Windows 10 Pro 64bit version 17134.345. ("latest version"
>> is a bit ambigous since there are different update tracks and the 
>> recently pulled "October 2018 Update".)
>>
>> Daniel
>>




template_test.lyx
Description: template_test.lyx


Re: Multi-page table in landscape mode

2018-10-31 Thread Dr Eberhard W Lisse
Rich,

Off the cuff, I'd put it on a right flushed multicolumn and mark it as
footer (or whatever it's called in the menu). Then you need a line a 'last
footer'.

MWEs are very helpful...

el

Rich Shepard  wrote:
>Reading Chapter 2 (Tables) in the embedded objects help manual I see an
> example of a table with the line, 'continued on next page,' but no
> instruction on how to insert that. 
[…]
> Regards,
> 
> Rich




-- 
Replace nospam with el if you want to email me