Re: tex2LyX

2018-05-22 Thread Jürgen Spitzmüller
2018-05-22 9:17 GMT+02:00 Jean-Marc Lasgouttes:

> > \begin{thm}
> > For every $\epsilon>0$, there is a constant $\delta>0$ so that if
> > \end{theorem}
>

Yes, thanks. Fixing that does not help, though.

Jürgen


Re: Weird directory, different order of templates...

2018-05-22 Thread Charlie
On Tue, 22 May 2018 09:45:45 +0200
Daniel CLEMENT  wrote:

> Le mardi 22 mai 2018 à 16:23 +1000, Charlie a écrit :
> > On Tue, 22 May 2018 07:40:00 +0200
> > Daniel CLEMENT  wrote:
> >   
> > > Le mardi 22 mai 2018 à 11:43 +1000, Charlie a écrit :  
> > > > Hello Everyone,
> > > > 
> > > > In my templates directory when opened with a file
> > > > manager, my directories have always been and still are on top,
> > > > and below them the various individual files in that directory.
> > > > That has always been in LyX as well.
> > > > 
> > > > Suddenly, the opposite is true in LyX, my directories are at the
> > > > bottom of the directory I open, and the individual files are at
> > > > the top, so I have to scroll down to get to the directories.
> > > > 
> > > > I imagine I have probably used a some obscure keyboard shortcut
> > > > to have this happen, but I have trolled through these and am
> > > > unable to find the one that does this. If that is actually the
> > > > cause.
> > > > 
> > > > Would appreciate any advice.
> > > > 
> > > > TIA
> > > > Charlie
> > > > 
> > > I see you are using Linux. Under my distro, LyX does not use the
> > > standard dialogs. There are 2 views.
> > > 
> > > Could it be that you had enable the "detailed" view, and by chance
> > > clicked on a column title, like, "sort by type"?  
> > 
> > 
> > Thanks Daniel,
> > 
> > Can't find "sort by type".  
> 
> I realize I was not very precise. I'm attaching a screenshot of my LyX
> dialog; not sure it will work so let me describe as well.
> 
> The last 2 icons (before "Documents" and "Examples" are "list view"
> and "detailed view" (I do my best to translate from French).
> 
> I suggest that you select the latter. Then you end up with an
> explorer-like windows, where the columns have titles "name", "size",
> "type" and so on. These are clickable. A small arrow (up or down) next
> to one column shows how the files and folders are sorted.
> 
> Try clicking on the "name" or "type", once or twice. If I do that, I
> get precisely what you describe, but then a 2nd click restores the
> "directory first" sort order.
> 
> HTH - Daniel



Thank you Daniel.

Clicking on either list view or detail view once or twice just brings
it or from one to another. Right clicking on the directory doesn't
allow me to do anything.

Clicking on list vies does show **two** columns in the window. However,
the individual, single files are the first, at the top, instead of
under the directories. Which have always been on the top.

The detail view delivers a single column, the individual files are still
shown at the top instead of below the directories.

Ce la vie. I think I will just have to live with it.

Thank you for your suggestions.

Stay well,
Charlie
-- 
Registered Linux User:- 329524
***

Man is the only animal for whom his own existence is a problem
which he has to solve. Erich Fromm

***

Debian GNU/Linux - Magic indeed.

-


Re: tex2LyX

2018-05-22 Thread Richard Kimberly Heck
On 05/22/2018 06:57 PM, Hal Kierstead wrote:
> Is there a place were one can read the requirements for a LaTex file
> to import correctly? For instance most files I receive from
> collaborators do not have the theorem definitions in the right form. 

Others can perhaps chime in on this, but I think the issue has to do
with what theorem environments are defined in the various
theorem*.module files. Certainly if your collaborators used the theorem
definitions from those files, then all would be well; and it may be that
you could define your own module, with whatever definitions your friends
use, and that would work. But I don't know.

> I think LyX is a great tool, both for learning LaTex and doing serious 
> writing. However none of my 70 coauthors have used it, and except for my 
> current students, I know of nobody in my department who uses it. I think the 
> greatest obstacle to wider use is that Tex2LyX does not work reliably. By the 
> nature of the task, Tex2LyX is trying to convert files that were not written 
> for LyX, so requiring special forms of LaTex devalues the program.  When I 
> collaborate I end up using LaTex instead of LyX most of the time or using LyX 
> to create LaTex segments to cut and paste. One of the first big advantages of 
> LyX is that you get structure for your document with numbered theorems, etc. 
> It would be nice for demonstration/advertising purposes if this always worked.

Unfortunately, there's no way that tex2lyx can understand arbitrary
constructs, so we will always be limited somehow. People using LaTeX
will sometimes do things like:

\def\begq{\begin{quote}}
\def\endq{\end{quote}}

We can't possibly figure that out in the tex2lyx code.

The truth is that even exporting a LyX file to LaTeX and then
re-importing that same file (what we call "roundtrip") won't always give
you the same file back again. It's a goal to have this work, but even
then it is not easy. So, in all honestly, we would not advertise that
LyX allows one to collaborate with someone using raw LaTeX. We even
discourage trying to collaborate with someone using a different major
version, e.g., 2.2.x vs 2.3.x, largely for the same sort of reason: the
need to use ERT to handle new constructs in the lower version.

All that said, improving tex2lyx is always a goal, so specific bug
reports are always welcome.

Riki



Re: tex2LyX

2018-05-22 Thread Scott Kostyshak
On Wed, May 23, 2018 at 02:54:25AM +, Richard Kimberly Heck wrote:

> then it is not easy. So, in all honestly, we would not advertise that
> LyX allows one to collaborate with someone using raw LaTeX.

+1 we would all love for LyX to seamlessly import LaTeX, but it is just
way too complicated of an issue. I also recommend that when
collaborating, you should use the same set of tools. Although LyX
exports LaTeX, it is not a LaTeX editor.

As Riki mentioned, there are continued improvements. see the "tex2lyx"
section of the following for recent improvements that will be in LyX's
2.3.1 release:

https://www.lyx.org/trac/browser/lyxgit/status.23x?rev=2.3.x

Best,

Scott


signature.asc
Description: PGP signature


Re: tex2LyX

2018-05-22 Thread Hal Kierstead


> On May 22, 2018, at 12:12 AM, Jürgen Spitzmüller  wrote:
> 
> Am Dienstag, den 22.05.2018, 09:04 +0200 schrieb Jürgen Spitzmüller:
>> One problem is that the theorems are named and defined differently to
>> those LyX supports ("theorem" and "corollary" vs. "thm" and "cor"),
>> and
>> see
>> 
>> https://www.lyx.org/trac/ticket/10432
>> 
>> If I change that, it sill does not import for me, so there must be
>> another issue.
> 
> It's the [section]. See attached file. This looks like a bug. Could you
> file a report, please?
> 
> Jürgen
> 
>> 
>> Jürgen
>> 
>>> 
>>> Riki
> 

Jürgen and Riki -

Thanks. I will try to file the bug report.

Is there a place were one can read the requirements for a LaTex file to import 
correctly? For instance most files I receive from collaborators do not have the 
theorem definitions in the right form.

I think LyX is a great tool, both for learning LaTex and doing serious writing. 
However none of my 70 coauthors have used it, and except for my current 
students, I know of nobody in my department who uses it. I think the greatest 
obstacle to wider use is that Tex2LyX does not work reliably. By the nature of 
the task, Tex2LyX is trying to convert files that were not written for LyX, so 
requiring special forms of LaTex devalues the program.  When I collaborate I 
end up using LaTex instead of LyX most of the time or using LyX to create LaTex 
segments to cut and paste. One of the first big advantages of LyX is that you 
get structure for your document with numbered theorems, etc. It would be nice 
for demonstration/advertising purposes if this always worked.

Hal





Re: Weird directory, different order of templates...

2018-05-22 Thread Daniel CLEMENT
Le mardi 22 mai 2018 à 16:23 +1000, Charlie a écrit :
> On Tue, 22 May 2018 07:40:00 +0200
> Daniel CLEMENT  wrote:
> 
> > Le mardi 22 mai 2018 à 11:43 +1000, Charlie a écrit :
> > >   Hello Everyone,
> > > 
> > >   In my templates directory when opened with a file manager,
> > > my directories have always been and still are on top, and below
> > >   them the various individual files in that directory. That
> > > has always been in LyX as well.
> > > 
> > > Suddenly, the opposite is true in LyX, my directories are at the
> > > bottom of the directory I open, and the individual files are at the
> > > top, so I have to scroll down to get to the directories.
> > > 
> > > I imagine I have probably used a some obscure keyboard shortcut to
> > > have this happen, but I have trolled through these and am unable to
> > > find the one that does this. If that is actually the cause.
> > > 
> > > Would appreciate any advice.
> > > 
> > > TIA
> > > Charlie
> > >   
> > I see you are using Linux. Under my distro, LyX does not use the
> > standard dialogs. There are 2 views.
> > 
> > Could it be that you had enable the "detailed" view, and by chance
> > clicked on a column title, like, "sort by type"?
> 
> 
> Thanks Daniel,
> 
> Can't find "sort by type".

I realize I was not very precise. I'm attaching a screenshot of my LyX
dialog; not sure it will work so let me describe as well.

The last 2 icons (before "Documents" and "Examples" are "list view" and
"detailed view" (I do my best to translate from French).

I suggest that you select the latter. Then you end up with an
explorer-like windows, where the columns have titles "name", "size",
"type" and so on. These are clickable. A small arrow (up or down) next
to one column shows how the files and folders are sorted.

Try clicking on the "name" or "type", once or twice. If I do that, I get
precisely what you describe, but then a 2nd click restores the
"directory first" sort order.

HTH - Daniel
> 
> Using LyX Version 2.2.2 Qt Version (run-time): 5.7.1 Qt Version
> (compile-time): 5.7.1
> 
> on
> 
> Linux 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07)
> x86_64 GNU/Linux
> 
> Using fvwm.
> 
> The file manager does not have this problem with the directories
> 
> There is another thing not working with LyX as well and has been so for
> many months. That being the scroll bar is not seen till F7 is pressed
> for spell checking, then the scroll bar appears and remains.
> 
> Will probably just have to live with these things.
> 
> Thank you for your reply,
> Charlie
> 

-- 
Daniel CLEMENT


Re: Weird directory, different order of templates...

2018-05-22 Thread Charlie
On Tue, 22 May 2018 07:40:00 +0200
Daniel CLEMENT  wrote:

> Le mardi 22 mai 2018 à 11:43 +1000, Charlie a écrit :
> > Hello Everyone,
> > 
> > In my templates directory when opened with a file manager,
> > my directories have always been and still are on top, and below
> > them the various individual files in that directory. That
> > has always been in LyX as well.
> > 
> > Suddenly, the opposite is true in LyX, my directories are at the
> > bottom of the directory I open, and the individual files are at the
> > top, so I have to scroll down to get to the directories.
> > 
> > I imagine I have probably used a some obscure keyboard shortcut to
> > have this happen, but I have trolled through these and am unable to
> > find the one that does this. If that is actually the cause.
> > 
> > Would appreciate any advice.
> > 
> > TIA
> > Charlie
> >   
> I see you are using Linux. Under my distro, LyX does not use the
> standard dialogs. There are 2 views.
> 
> Could it be that you had enable the "detailed" view, and by chance
> clicked on a column title, like, "sort by type"?


Thanks Daniel,

Can't find "sort by type".

Using LyX Version 2.2.2 Qt Version (run-time): 5.7.1 Qt Version
(compile-time): 5.7.1

on

Linux 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07)
x86_64 GNU/Linux

Using fvwm.

The file manager does not have this problem with the directories

There is another thing not working with LyX as well and has been so for
many months. That being the scroll bar is not seen till F7 is pressed
for spell checking, then the scroll bar appears and remains.

Will probably just have to live with these things.

Thank you for your reply,
Charlie

-- 
Registered Linux User:- 329524
***

The real voyage of discovery consists not in seeking new
landscapes, but in having new eyes. --Marcel Proust

***

Debian GNU/Linux - Magic indeed.

-


Re: tex2LyX

2018-05-22 Thread Jürgen Spitzmüller
Am Montag, den 21.05.2018, 11:24 -0400 schrieb Richard Kimberly Heck:
> On 05/19/2018 06:55 PM, Hal Kierstead wrote:
> > All -
> > 
> > I am using LyX 2.3.0 on macOS 10.13.4. When I try to import a tex
> > file I get ert for every theorem type statement. Is there away to
> > avoid this?
> 
> Someone else should be able to answer this better, but I believe this
> is
> supposed to work.

One problem is that the theorems are named and defined differently to
those LyX supports ("theorem" and "corollary" vs. "thm" and "cor"), and
see

https://www.lyx.org/trac/ticket/10432

If I change that, it sill does not import for me, so there must be
another issue.

Jürgen

> 
> Riki
> 

signature.asc
Description: This is a digitally signed message part


Re: tex2LyX

2018-05-22 Thread Jürgen Spitzmüller
Am Dienstag, den 22.05.2018, 09:04 +0200 schrieb Jürgen Spitzmüller:
> One problem is that the theorems are named and defined differently to
> those LyX supports ("theorem" and "corollary" vs. "thm" and "cor"),
> and
> see
> 
> https://www.lyx.org/trac/ticket/10432
> 
> If I change that, it sill does not import for me, so there must be
> another issue.

It's the [section]. See attached file. This looks like a bug. Could you
file a report, please?

Jürgen

> 
> Jürgen
> 
> > 
> > Riki\documentclass{amsart}


\theoremstyle{plain}  
\newtheorem{thm}{\protect\theoremname}[section]
%\newtheorem{thm}{\protect\theoremname}% => works
\newtheorem{cor}[thm]{\protect\corollaryname}
% -
\begin{document}
\section{Introduction}\label{sec:introduction}

We assume 

\begin{thm}
For every $\epsilon>0$, there is a constant $\delta>0$ so that if
\end{theorem}

\begin{cor}
For every $\epsilon>0$, there is a constant $\delta>0$ so that if
\end{cor}

\begin{thm}
There exists a positive constant $C_2$ so that
\end{thm}

\end{document}



signature.asc
Description: This is a digitally signed message part


Re: tex2LyX

2018-05-22 Thread Jean-Marc Lasgouttes

Le 22/05/2018 à 09:12, Jürgen Spitzmüller a écrit :

Am Dienstag, den 22.05.2018, 09:04 +0200 schrieb Jürgen Spitzmüller:

One problem is that the theorems are named and defined differently to
those LyX supports ("theorem" and "corollary" vs. "thm" and "cor"),
and
see

https://www.lyx.org/trac/ticket/10432

If I change that, it sill does not import for me, so there must be
another issue.


It's the [section]. See attached file. This looks like a bug. Could you
file a report, please?


The following does not look good in you example (mismatch in begin/end). 
Not sure whether this matters.


JMarc

> \begin{thm}
> For every $\epsilon>0$, there is a constant $\delta>0$ so that if
> \end{theorem}