Re: Settings file for lyx

2022-06-01 Thread Richard Kimberly Heck

On 6/1/22 17:43, ehud.be...@protonmail.com wrote:

Thank you very much.

The last option you mentioned is the one I would like to adopt. But, 
where is this preferences file located?


If you look under Help > About LyX, it will tell you where your user 
directory is. The preferences file is in that directory. On Linux, this 
is (by default) at $HOME/.lyx/. It is of course elsewhere on Windows and 
OSX and also is, as I said, configurable at runtime via the -userdir option.


Riki





--- Original Message ---
On Wednesday, June 1st, 2022 at 5:27 AM, Richard Kimberly Heck 
 wrote:



On 5/31/22 16:42, tush via lyx-users wrote:

Me and my colleagues are working on a multi-user project.
Is there any way to guarantee that all of us have the same LyX settings?
We can share screenshots of the settings window, but I prefer 
something more technical.


I mean, the document settings are part of the file.
But LyX settings definitely should not be the same for all users. 
Particularly, settings that are related to languages, font encoding 
and shortcuts, for example, could change if an expert user has made 
changes after the first installation.


I was wondering if I can write down a file to be sent via email to 
my colleagues so can double-click and open it, and after running it 
they would have the same settings for LyX as me, the project manager.


Is there such a thing?


Any document-specific settings are contained in the document itself. 
So you do not have to worry about those. They will travel with the 
document. You can see them yourself. Just open the LyX file with a 
text editor. It will look something like this:


#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 608
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass paper

The document settings are in the header, which ends with \end_header.

The system-wide settings are all contained in text files that you can 
find in your user directory, most importantly the 'preferences' file. 
So to synchronize those, you just need to send that file to other 
users. But I'm not sure that those are what you have in mind.


Note, by the way, that it is easy to use LyX with different 
configurations. The '-userdir' flag lets you specify a user 
directory, so your users could have one for use with this project and 
a different one that they use for other thingsif they want.


Riki




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


Re: Settings file for lyx

2022-06-01 Thread tush via lyx-users
Thank you very much.

The last option you mentioned is the one I would like to adopt. But, where is 
this preferences file located?

Moreover, in the LyX->Preferences->Paths window, I don't see such a file.

Could you give me more instructions on how to find it?
--- Original Message ---
On Wednesday, June 1st, 2022 at 5:27 AM, Richard Kimberly Heck 
 wrote:

> On 5/31/22 16:42, tush via lyx-users wrote:
>
>> Me and my colleagues are working on a multi-user project.
>> Is there any way to guarantee that all of us have the same LyX settings?
>> We can share screenshots of the settings window, but I prefer something more 
>> technical.
>>
>> I mean, the document settings are part of the file.
>> But LyX settings definitely should not be the same for all users. 
>> Particularly, settings that are related to languages, font encoding and 
>> shortcuts, for example, could change if an expert user has made changes 
>> after the first installation.
>>
>> I was wondering if I can write down a file to be sent via email to my 
>> colleagues so can double-click and open it, and after running it they would 
>> have the same settings for LyX as me, the project manager.
>>
>> Is there such a thing?
>
> Any document-specific settings are contained in the document itself. So you 
> do not have to worry about those. They will travel with the document. You can 
> see them yourself. Just open the LyX file with a text editor. It will look 
> something like this:
>
> #LyX 2.4 created this file. For more info see https://www.lyx.org/
> \lyxformat 608
> \begin_document
> \begin_header
> \save_transient_properties true
> \origin unavailable
> \textclass paper
>
> The document settings are in the header, which ends with \end_header.
>
> The system-wide settings are all contained in text files that you can find in 
> your user directory, most importantly the 'preferences' file. So to 
> synchronize those, you just need to send that file to other users. But I'm 
> not sure that those are what you have in mind.
>
> Note, by the way, that it is easy to use LyX with different configurations. 
> The '-userdir' flag lets you specify a user directory, so your users could 
> have one for use with this project and a different one that they use for 
> other thingsif they want.
>
> Riki-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Exercises at end of sections

2022-06-01 Thread Richard Kimberly Heck

On 6/1/22 14:20, Joseph Hesse wrote:

On 5/31/22 23:38, Richard Kimberly Heck wrote:

On 5/30/22 12:59, Tobias Hilbricht wrote:

Am Montag, dem 30.05.2022 um 05:38 -0500 schrieb Joseph Hesse:

Hello,
I am writing a text book and want to have numbered exercises at the
end of each section.  Please point me to the docs or packages that will
let me do this.
Thank you,
Joe Hesse


There probably is some pre-existing package you could adapt. But this 
would be relatively easy to do from scratch. My first thought would 
be as in the attached file. Is there something you need that isn't here?


Riki



Riki,
Thank you for your reply.
Your example is what I would like.  How do I get "Chapter Exercises" 
and "Reasoning/Exercise" to appear in the environment drop down list 
at the top left of lyx?


I actually had not noticed the "Chapter Exercises" environment. Looking 
at it now, it is meant for exactly this, but it seems kind of broken. It 
hasn't been touched really since 2003. (The environment is provided by 
the AMS Book document class, at least in LyX's version of it. See 
Settings > Document Class in the example file I sent.) Maybe I'll try to 
fix it for 2.4.


So I was doing things more manually.

The Exercises heading is just a Section*, and I've typed "Exercises" as 
the section title.


For the exercises themselves, I used the Exercise environment that's 
provide by the Theorems (AMS, Numbered by Type within Chapters) module. 
Look under Document > Settings > Modules to see where it came from. (In 
LyX 2.4, the modules will be better organized.)


Note that you can write modules yourself, if you wish, to generate new 
environments of this kind. See Chapter 5 of the Help > Customization 
manual for details. Of just look at the modules themselves (which are in 
your LyX system directory, named whatever.module) to see how they work.


Riki



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


Re: Exercises at end of sections

2022-06-01 Thread Joseph Hesse

On 5/31/22 23:38, Richard Kimberly Heck wrote:

On 5/30/22 12:59, Tobias Hilbricht wrote:

Am Montag, dem 30.05.2022 um 05:38 -0500 schrieb Joseph Hesse:

Hello,
I am writing a text book and want to have numbered exercises at the
end of each section.  Please point me to the docs or packages that will
let me do this.
Thank you,
Joe Hesse


There probably is some pre-existing package you could adapt. But this 
would be relatively easy to do from scratch. My first thought would be 
as in the attached file. Is there something you need that isn't here?


Riki



Riki,
Thank you for your reply.
Your example is what I would like.  How do I get "Chapter Exercises" and 
"Reasoning/Exercise" to appear in the environment drop down list at the 
top left of lyx?

Joe


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