Re: Problem saving documents in Dropbox

2019-04-13 Thread Paul A. Rubin

On 4/13/19 11:59 AM, Dr Paul Verschueren wrote:


Dear all –

Using LyX Version 2.3.2-1 (14 December 2018) under Win10, I am 
experiencing the problem described below with seemingly greater 
regularity.


I’m guessing the atomicity of the Lyx save/rename operation is being 
broken by a locking operation by Dropbox.


Does anyone know more?

The problem is intermittent and takes the form of a write failure on 
saving:


imap://parubin73%40gmail%2e...@imap.googlemail.com:993/fetch%3EUID%3E/LyX%20users%3E3955?header=quotebody=1.2=image001.png

When I press OK, I get:

imap://parubin73%40gmail%2e...@imap.googlemail.com:993/fetch%3EUID%3E/LyX%20users%3E3955?header=quotebody=1.3=image002.png

On pressing Retry, the document is saved.

Since it takes only a couple of clicks to complete the save operation, 
I have been living with this for a while, but it is getting irritating 
especially as the frequency appears to be increasing. Any suggestions 
(other than don’t use Dropbox!) gratefully received.


Paul

This is a known issue, and it seems to be due to a combination of how 
Dropbox syncs files (locking the file during sync) and how Windows 
handles files. There's a ticket for it (#10091) 
 with a lengthy commentary. I 
routinely edit .lyx files on Dropbox with no problem (on Linux Mint), so 
it's apparently not just a Dropbox sync issue.


Currently there seems to be no fix. If you're going to be editing a file 
on Dropbox and doing frequent saves along the way, it might be worth 
pausing synchronization by Dropbox during the edit and then resuming 
sync after the final save. On Mint, I can pause/resume sync by 
right-clicking the Dropbox icon in the system tray and clicking a menu 
item; hopefully it's comparably easy on Windows.


Paul



Re: Trouble exporting multi-part documents

2019-04-13 Thread Daniel

On 13/04/2019 16:47, Dr Eberhard Lisse wrote:

On 2019-04-13 16:34 , Daniel wrote:

On 13/04/2019 15:01, Dr Eberhard Lisse wrote:

On 2019-04-12 16:43 , Daniel wrote:

A similar way, but without the need of extra master documents, to
achieve this is to have all parts in child documents, including one with
the Title and TOC, etc. Then you can deactivate child documents via the
Document > Settings of the master as seems fitting.

Daniel

If make the changes in each LyX "master" file you run in to the

problem

of having to keep track of the changes.

Therefor it's better having "master" LyX files and an include.tex for
all common changes.

el



I don't understand what you mean. My suggestion means you don't need to
more than one LyX master file.

Daniel


My suggestion is that you do, but minimal ones, and have once "master"
include file which all import.

Otherwise if you make a change to one file you have to pay attention
making the change in all files.

el


I don't see anything in the original question that would lead to the 
problem you mention.


Daniel



Problem saving documents in Dropbox

2019-04-13 Thread Dr Paul Verschueren
Dear all -
Using LyX Version 2.3.2-1 (14 December 2018) under Win10, I am experiencing the 
problem described below with seemingly greater regularity.
I'm guessing the atomicity of the Lyx save/rename operation is being broken by 
a locking operation by Dropbox.
Does anyone know more?

The problem is intermittent and takes the form of a write failure on saving:
[cid:image001.png@01D4374F.61710D50]

When I press OK, I get:
[cid:image002.png@01D4374F.61710D50]

On pressing Retry, the document is saved.

Since it takes only a couple of clicks to complete the save operation, I have 
been living with this for a while, but it is getting irritating especially as 
the frequency appears to be increasing. Any suggestions (other than don't use 
Dropbox!) gratefully received.

Paul





Re: Lyx template froma tex template

2019-04-13 Thread Dr Eberhard Lisse
Jose,

there is always tex2lyx

el

On 2019-04-10 07:06 , Baris Erkus wrote:
> On 07-Apr-19 8:08 PM, Jose Luis Varona Santana wrote:
> Hi, my name is José Luis Varona Santana. I'm writing my master's thesis on 
> lyx but my University has a tex template. How could i made a lyx template 
> from the .tex one?
> Thanks' before all
> Lic. José Luis Varona Santana
> 
> Hi Jose,
> 
> A good starting point for this is: 
> https://wiki.lyx.org/Layouts/CreatingLayouts
> 
> Referring this page: If you are a beginner, a simple layout file in the form 
> of
> 
> #% Do not delete the line below; configure depends on this
> #  \DeclareLaTeXClass[acmsiggraph]{ACM SigGraph}
> 
> # Read the definitions from article.layout
> Input article.layout
> 
> will suffice. You will be putting many information into preamble and in the 
> main file using ERT. You will do several try-and-errors to make it work, but 
> if you are careful, this should be at most one days of work for beginners 
> (this is my experience). Please note that class-specific styles, environments 
> and commands will not be immediately available under LyX menus and options. 
> However, they will work in the preamble and in the main file by ERT.
> 
> Also, Section 5.3 of the Customization document under LyX help has both on 
> introductory and advanced information on layouts. If you have time, placing 
> the class-specific styles, environments and other commands into the LyX menus 
> should not be that difficult. Look at some layout files that come with LyX 
> and try-and-error with Section 5.3.7 and other sections of the Customization 
> file.
> 
> Good Luck.
> 
> Baris
> 
> --
> ↓↓
> Please bottom-post. Start your reply here:
> 



Re: Trouble exporting multi-part documents

2019-04-13 Thread Dr Eberhard Lisse
My suggestion is that you do, but minimal ones, and have once "master"
include file which all import.

Otherwise if you make a change to one file you have to pay attention
making the change in all files.

el

On 2019-04-13 16:34 , Daniel wrote:
> On 13/04/2019 15:01, Dr Eberhard Lisse wrote:
>> On 2019-04-12 16:43 , Daniel wrote:
>>> A similar way, but without the need of extra master documents, to
>>> achieve this is to have all parts in child documents, including one with
>>> the Title and TOC, etc. Then you can deactivate child documents via the
>>> Document > Settings of the master as seems fitting.
>>>
>>> Daniel
>>> > If make the changes in each LyX "master" file you run in to the
>>> problem
>> of having to keep track of the changes.
>>
>> Therefor it's better having "master" LyX files and an include.tex for
>> all common changes.
>>
>> el
>>
> 
> I don't understand what you mean. My suggestion means you don't need to
> more than one LyX master file.
> 
> Daniel
> 
> 



Re: Trouble exporting multi-part documents

2019-04-13 Thread Daniel

On 13/04/2019 15:01, Dr Eberhard Lisse wrote:

On 2019-04-12 16:43 , Daniel wrote:

A similar way, but without the need of extra master documents, to
achieve this is to have all parts in child documents, including one with
the Title and TOC, etc. Then you can deactivate child documents via the
Document > Settings of the master as seems fitting.

Daniel
> If make the changes in each LyX "master" file you run in to the problem

of having to keep track of the changes.

Therefor it's better having "master" LyX files and an include.tex for
all common changes.

el



I don't understand what you mean. My suggestion means you don't need to 
more than one LyX master file.


Daniel



Re: Trouble exporting multi-part documents

2019-04-13 Thread Dr Eberhard Lisse
If make the changes in each LyX "master" file you run in to the problem
of having to keep track of the changes.

Therefor it's better having "master" LyX files and an include.tex for
all common changes.

el

On 2019-04-12 16:43 , Daniel wrote:
> On 11/04/2019 10:08, Helge Hafting wrote:
>>
>> Den 01.04.2019 20:58, skrev Paul Johnson:
>>> I have a dissertation template for students at my University. There
>>> is a main thesis document and then the separate chapters are in
>>> subdirectories. (http://crmda.ku.edu/node/555)
>>>
>>> Currently, in version, "KU-thesis-20190201.zip
>>> ",
>>> it appears to work for everybody to use LyX to edit either the main
>>> document or the individual chapters.
>>>
>>> However, I have students who want to use the dissertation template as
>>> raw LaTexX files, rather than within LyX.  Here I run into a bad
>>> problem.
>>>
>> [...]
>>
>> The problem happens when some file is both used as a child document
>> and as a freestanding document, and you wish to work on the TeX files
>> instead of in LyX.
>>
>>
>> Here is a solution:
>>
>> Use your dissertation & chapter files as-is, I guess you have good
>> reasons for dividing up the document like that. (And it is something
>> both LyX and LaTeX does well too.)
>>
>> But never use a chapter file alone. Instead, create a dummy master
>> document for each chapter file. It should contain no text, but the
>> same settings & preamble as the real master document. And it should
>> include that single chapter file. This way, the chapter file is a
>> child document to the dissertation, but also a child document to the
>> "chapter master document".
>>
>> No change for those who work on the dissertation as a whole - they
>> need the dissertation master file and the chapter files. They won't
>> need the "chapter master" files.
>>
>> Those who wish to work on a single chapter, can then open the chapter
>> master file and do an export from there. They should get two LaTeX
>> files; the master and the chapter file. The  chapter latex file won't
>> work alone, but they will run pdflatex against the chapter master
>> which will include the chapter tex file they work on.  If need be,
>> such a chapter tex file can be moved back and forth between those who
>> work on a complete dissertation and those who do single-chapter work.
>> Because it is now an included file in either case - included from a
>> dissertation master or from a chapter master.
>>
>>
>> This works fine - unless users find it too complicated having two files.
>>
>> Helge Hafting
>>
>>
> 
> A similar way, but without the need of extra master documents, to
> achieve this is to have all parts in child documents, including one with
> the Title and TOC, etc. Then you can deactivate child documents via the
> Document > Settings of the master as seems fitting.
> 
> Daniel
> 
>