Re: Bulk changing environments in Lyx

2023-04-20 Thread Steve Litt
Udicoudco said on Thu, 20 Apr 2023 03:24:09 +0300

>On Thu, Apr 20, 2023 at 2:10 AM Steve Litt 
>wrote:
>>
>> Dr Paul Verschueren said on Tue, 18 Apr 2023 15:12:10 +
>>  
>> >Dear all -
>> >I just had to change the AMS document type for a long paper.  
>>
>> Does long paper really require a change of doctype? I think you can
>> do what you need by putting the following two lines in your  
>> Docuument=>settings=>Latex_preamble:  
>>
>> 
>> \pageheight=14in %Paper height
>> \pagewidth=8.5in  %Paper width
>> 
>>
>> The preceding works as long as you compile with luatex, which is the
>> best way to compile anyway. I don't know about the AMS document type,
>> but my best guess would be it would accommodate the preceding.
>> Naturally you'd need to change all the margins in LyX, but that's
>> easy.
>>
>>  
>
>The primitives macros called \pageheight and \pagewidth are not
>responsible for the size of the text block, they are only changing
>the size of the media box that the pdf reader displays.

Exactly! You change the margins, and therefore the size of the text
block, in LyX itself.

>
>They were first introduced in pdftex
>(where they are called \pdfpageheight
>and \pdfpagewidth, and in xetex as well)
>since the pdf format is not meant to be used
>just for printing.
>
>On the other hand, LaTeX is using
>two macros called \paperheight and \paperwidth
>to control the text block (they are basically \textwidth and
>\textheight plus some extra space for the margins).

This is true. I've used \paperheight and \paperwidth in some of my LyX
authored books meant to be read on a small device, so these are
probably a better way to go.

SteveT

Steve Litt 
Autumn 2022 featured book: Thriving in Tough Times
http://www.troubleshooters.com/bookstore/thrive.htm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Some questions on automatically completion in lyx.

2023-04-20 Thread Hongyi Zhao
On Friday, April 21, 2023, Richard Kimberly Heck  wrote:

> On 4/20/23 01:03, Hongyi Zhao wrote:
>
>> 2. How can I enable the normal text completion, say, when I type
>> `coun`, then all the possible words with such prefix should be
>> triggered to display in a popup window.
>>
>
> The possible completions are taken from the documents you have open. You
> activate it under Tools> Preferences> Editing> Input Completion. There are
> options there to control how long it takes until the popup appears, etc. If
> you set the inline completion delay to, say, 1 sec, then hitting Tab will
> show the popup.
>
> This is all in the User Guide, section 2.7.


 But I want to do the completion from a dictionary file on the disk without
opening it, is this possible?

>
> Riki
>
> Best,
Zhao


-- 
Assoc. Prof. Hongsheng Zhao 
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Some questions on automatically completion in lyx.

2023-04-20 Thread Richard Kimberly Heck

On 4/20/23 01:03, Hongyi Zhao wrote:

2. How can I enable the normal text completion, say, when I type
`coun`, then all the possible words with such prefix should be
triggered to display in a popup window.


The possible completions are taken from the documents you have open. You 
activate it under Tools> Preferences> Editing> Input Completion. There 
are options there to control how long it takes until the popup appears, 
etc. If you set the inline completion delay to, say, 1 sec, then hitting 
Tab will show the popup.


This is all in the User Guide, section 2.7.

Riki


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


Re: Screen font question-inline

2023-04-20 Thread Dr Eberhard W Lisse
Oh

then you can also look at (in my case)


\screen_zoom 180

and increase the number

el


On 20/04/2023 21:02, John White wrote:
[...]
> Its already set to the Dejavu fonts.  I vote to leave this alone as alt
> + or alt - while editing a lyx doc is all I need. If I had known about
> the alt adjustments, I would not have posted in the first place.
[...]

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


Re: Screen font question-inline

2023-04-20 Thread Dr Eberhard W Lisse
Oh

then you can also look at (in my case)


\screen_zoom 180

and increase the number

el


On 20/04/2023 21:02, John White wrote:
[...]
> Its already set to the Dejavu fonts.  I vote to leave this alone as alt
> + or alt - while editing a lyx doc is all I need. If I had known about
> the alt adjustments, I would not have posted in the first place.
[...]

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


Re: Screen font question-inline

2023-04-20 Thread John White
On Thursday, April 20, 2023 11:45:35 AM PDT Dr Eberhard W Lisse wrote:
> ok, than we'll move to the deep stuff :-)-O
> 
> I don't have Debian, but on my Mac there is a ~/.lyx directory where
> there is a file called lyxrc which has, in my case,
> 
>   \screen_font_roman "Noto Serif"
>   \screen_font_sans "Noto Sans"
>   \screen_font_typewriter "Noto Sans Mono"
> 
> so you want end LyX, then locate the file and change that to read
> something like
> 
>   \screen_font_roman "DejaVu Serif"
>   \screen_font_sans "DejaVu Sans"
>   \screen_font_typewriter "Hack"
> 
> and then start LyX again and see what that does.
> 
> el

Its already set to the Dejavu fonts.  I vote to leave this alone as alt + or 
alt - while editing 
a lyx doc is all I need. If I had known about the alt adjustments, I would not 
have posted 
in the first place.

Thanks again,

John

John
> 
> On 20/04/2023 20:27, John White wrote:
> > Thank for the suggestion. I can move window left and right, but not up
> > or down. The little move icon shows, but I can't reach the bottom edge.
> > 
> > On Thursday, April 20, 2023 9:55:34 AM PDT Dr Eberhard W Lisse wrote:
> >> Drag on a lateral edge of the window to move it, then make it narrower
> >> 
> >> and do same on the top (or bottom) edge.
> >> 
> >> 
> >> 
> >> el

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


Re: Screen font question-inline

2023-04-20 Thread Dr Eberhard W Lisse
ok, than we'll move to the deep stuff :-)-O

I don't have Debian, but on my Mac there is a ~/.lyx directory where
there is a file called lyxrc which has, in my case,

\screen_font_roman "Noto Serif"
\screen_font_sans "Noto Sans"
\screen_font_typewriter "Noto Sans Mono"

so you want end LyX, then locate the file and change that to read
something like

\screen_font_roman "DejaVu Serif"
\screen_font_sans "DejaVu Sans"
\screen_font_typewriter "Hack"

and then start LyX again and see what that does.

el

On 20/04/2023 20:27, John White wrote:
> Thank for the suggestion. I can move window left and right, but not up
> or down. The little move icon shows, but I can't reach the bottom edge.
> 
> 
> On Thursday, April 20, 2023 9:55:34 AM PDT Dr Eberhard W Lisse wrote:
> 
>> Drag on a lateral edge of the window to move it, then make it narrower
> 
>> and do same on the top (or bottom) edge.
> 
>>
> 
>> el
> 
> 
> 

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


Re: Screen font question-inline

2023-04-20 Thread John White
Thank for the suggestion. I can move window left and right, but 
not up or down. The little move icon shows, but I can't reach the 
bottom edge.

On Thursday, April 20, 2023 9:55:34 AM PDT Dr Eberhard W Lisse 
wrote:
> Drag on a lateral edge of the window to move it, then make it 
narrower
> and do same on the top (or bottom) edge.
> 
> el

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


Re: Screen font question-inline

2023-04-20 Thread Dr Eberhard W Lisse
Drag on a lateral edge of the window to move it, then make it narrower
and do same on the top (or bottom) edge.

el




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


Re: Screen font question-inline

2023-04-20 Thread John White

On Thursday, April 20, 2023 8:27:02 AM PDT Paul A. Rubin wrote:
> On 4/19/23 13:44, John White wrote:
> > I hope Mr. Hoffner is right but I know of no way to make my screen
> > larger. I can't figure that out.
> > 
> > On Wednesday, April 19, 2023 9:34:09 AM PDT Eckhard Höffner wrote:
> > > Actually you are missing the buttom of the window. Maybe your screen is
> > > 
> > > to small. Mine is 1150px high (attached).
> 
> A couple of things you might try with the dialog:
> 
>  1. if the dialog is opening maximized (full screen), try clicking the
> middle button in the upper right corner to toggle it from full
> screen to windowed; and

Assuming I understand and followed instructions, this did not help.  Screen 
gets smaller 
but shows same thing.

>  2. if it is windowed (not maximized) and you still can't see the
> buttons, try grabbing the upper edge or top left corner with the
> mouse and resizing it.
> 
> On my system, you can stretch or shrink the dialog window up to a point,
> but there is a minimum size below which you cannot go.

Not sure I understand "windowed" but nothing I do allows me to see the buttons.

Again, Alt + or Alt - while in the lyx document being edited, works great.  I 
have no need 
to fix it in Preferences.

Thanks to you and Doc for your help.

John
> 
> Paul

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


Re: Screen font question-inline

2023-04-20 Thread Paul A. Rubin

On 4/19/23 13:44, John White wrote:


I hope Mr. Hoffner is right but I know of no way to make my screen 
larger. I can't figure that out.



On Wednesday, April 19, 2023 9:34:09 AM PDT Eckhard Höffner wrote:

> Actually you are missing the buttom of the window. Maybe your screen is

> to small. Mine is 1150px high (attached).




A couple of things you might try with the dialog:

1. if the dialog is opening maximized (full screen), try clicking the
   middle button in the upper right corner to toggle it from full
   screen to windowed; and
2. if it is windowed (not maximized) and you still can't see the
   buttons, try grabbing the upper edge or top left corner with the
   mouse and resizing it.

On my system, you can stretch or shrink the dialog window up to a point, 
but there is a minimum size below which you cannot go.


Paul

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


Re: Screen font question-inline

2023-04-20 Thread John White
Thanks Pavel (and Doc - last email),

Nothing I do seems to make the screen larger (or smaller) while on the 
screen-fonts 
page in Preferences. I will try again upon receiving further (and more 
specific) 
instructions.

However, now that I know about (Alt - and Alt +) while in the lyx document, I 
am a happy 
camper and have no need to change screen fonts in Preferences.

John

On Thursday, April 20, 2023 3:13:31 AM PDT Pavel Sanda wrote:
> On Wed, Apr 19, 2023 at 10:44:42AM -0700, John White wrote:
> > I hope Mr. Hoffner is right but I know of no way to make
> > my screen larger. I can't figure that out.
> 
> Indeed it looks your screen is too small to show the whole dialog.
> It will be even worse with 2.4 and we should perhaps do something about it.
> 
> Anyway for the moment, even though you don't see the buttons you should
> still be able to use them via accelerators, i.e. for OK button you need
> to press Alt+O.
> 
> Does it help with saving your preferences?
> 
> Pavel

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


RE: Bulk changing environments in Lyx

2023-04-20 Thread Dr Paul Verschueren
On Thu, Apr 20, 2023 at 2:10 AM Steve Litt  wrote:
>
> Dr Paul Verschueren said on Tue, 18 Apr 2023 15:12:10 +
>
> >Dear all -
> >I just had to change the AMS document type for a long paper.
>
> Does long paper really require a change of doctype? I think you can do 
> what you need by putting the following two lines in your
> Docuument=>settings=>Latex_preamble:
>
> 
> \pageheight=14in %Paper height
> \pagewidth=8.5in  %Paper width
> 
>
> The preceding works as long as you compile with luatex, which is the 
> best way to compile anyway. I don't know about the AMS document type, 
> but my best guess would be it would accommodate the preceding.
> Naturally you'd need to change all the margins in LyX, but that's easy.
>
> >I have made heavy use of the paragraph/subparagraph environments, but 
> >these do not exist(!) in the new doctype. Is there any way of doing a 
> >find/replace via Lyx? If not, is there any alternative to hacking the 
>>Lyx source, and does anyone foresee any gotchas with this approach?
> >(I'll obviously take a backup first). Many thanks
>
> If worst comes to worst, you could create a new document type, based on 
> whatever new document type you are moving to, in a layout file, and just 
> create new paragraph/subparagraphs environments.

My apologies - by "a long paper" I meant an academic paper which is long (ie 
many pages).
For publication in an academic journal, one needs to submit a Latex document 
using the journal's own document type, and the environments supported by that 
document type.
Many mathematicians write directly in Latex, but I much prefer to write in Lyx 
and export to Latex for submission.

It is very common for a paper to be redirected from one journal to another, and 
the submission document then needs to be changed to work with the new journal's 
document type.
In this use case, Jean-Marc Lasgouttes' solution (below) is very elegant and in 
fact shows another benefit of Lyx over raw Latex:

You could try, in Document Settings>Local Layout, something like

Style Paragraph
   ObsoletedBy SubsubSection
End

Style SubParagraph
   ObsoletedBy SpecialSection
End

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


Re: Screen font question-inline

2023-04-20 Thread Pavel Sanda
On Wed, Apr 19, 2023 at 10:44:42AM -0700, John White wrote:
> I hope Mr. Hoffner is right but I know of no way to make 
> my screen larger. I can't figure that out.

Indeed it looks your screen is too small to show the whole dialog.
It will be even worse with 2.4 and we should perhaps do something about it.

Anyway for the moment, even though you don't see the buttons you should
still be able to use them via accelerators, i.e. for OK button you need
to press Alt+O.

Does it help with saving your preferences?

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


Re: Screen font question-inline

2023-04-20 Thread Dr Eberhard Lisse
Make the Window smaller :-)-O

BTW, I use NoTo for the Screen as well as for text.

el

On 19/04/2023 19:44, John White wrote:
> I hope Mr. Hoffner is right but I know of no way to make my screen
> larger. I can't figure that out.
> 
> 
> On Wednesday, April 19, 2023 9:34:09 AM PDT Eckhard Höffner wrote:
> 
>> Actually you are missing the buttom of the window. Maybe your screen is
> 
>> to small. Mine is 1150px high (attached).
> 
> 
> 

-- 
To email me replace 'nospam' with 'el'


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