Re: 2.4 alpha2 failing on windows 10

2021-02-10 Thread Richard Kimberly Heck

On 2/10/21 4:28 PM, Yu Jin wrote:
Am Mi., 10. Feb. 2021 um 20:23 Uhr schrieb Richard Kimberly Heck 
mailto:rikih...@lyx.org>>:


On 2/10/21 2:14 PM, Thibaut Cuvelier wrote:

On Wed, 10 Feb 2021 at 18:34, José Abílio Matos mailto:jama...@lyx.org>> wrote:

On Wednesday, February 10, 2021 12:48:17 PM WET Thibaut
Cuvelier wrote:
> @José : reconfiguring LyX does not solve the problem. It
really looks like
> it cannot find Python.

We did not change the python detection code since alpha-1... :-(


However, this must be the cause of the problems. I just tried
adding Python to the PATH environment variable, and everything
worked perfectly.

Maybe LyX is tricked in some way by the python.exe that Microsoft
puts in the PATH? (It's not a real Python, just something that
tells you how to install it.) With this, you can start "a Python
executable", but it will not execute any script (I believe it
always returns an error code).


That may be. Where do we record what Python we found?

If so, then the solution would be to try running some simple
Python file using whatever we find and see if that works. E.g. run
the program "1;".

I have contributed some lines to python recognition on windows 
(https://www.lyx.org/trac/ticket/11712 
): But because of what was 
written by Thibaut (adding Python to PATH), it  looks to me that the 
failure is not in this function but in rather LyX failing to add path 
prefix. I can also reproduce this btw. I have checked the path prefix 
in the settings, all is done right there. But even if I add python dir 
to PATH, it then will not find other dependencies (imagemagik and 
ghostscript).


I would try reverting all the changes to configure.py since alpha 1 and 
see if that fixes the problem. We did not get this report with alpha 1. 
These are:


f7beed1e
e95513c8
9d4ffac7
e3fe4d65
daa6f143
c0fe2522
af49df00
738dccbf

If that helps, then add them back one at a time and find the culprit.

Riki


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


Re: 2.4 alpha2 failing on windows 10

2021-02-10 Thread Yu Jin
Am Mi., 10. Feb. 2021 um 20:23 Uhr schrieb Richard Kimberly Heck <
rikih...@lyx.org>:

> On 2/10/21 2:14 PM, Thibaut Cuvelier wrote:
>
> On Wed, 10 Feb 2021 at 18:34, José Abílio Matos  wrote:
>
>> On Wednesday, February 10, 2021 12:48:17 PM WET Thibaut Cuvelier wrote:
>> > @José : reconfiguring LyX does not solve the problem. It really looks
>> like
>> > it cannot find Python.
>>
>> We did not change the python detection code since alpha-1... :-(
>>
>
> However, this must be the cause of the problems. I just tried adding
> Python to the PATH environment variable, and everything worked perfectly.
>
> Maybe LyX is tricked in some way by the python.exe that Microsoft puts in
> the PATH? (It's not a real Python, just something that tells you how to
> install it.) With this, you can start "a Python executable", but it will
> not execute any script (I believe it always returns an error code).
>
> That may be. Where do we record what Python we found?
>
> If so, then the solution would be to try running some simple Python file
> using whatever we find and see if that works. E.g. run the program "1;".
>
I have contributed some lines to python recognition on windows (
https://www.lyx.org/trac/ticket/11712): But because of what was written by
Thibaut (adding Python to PATH), it  looks to me that the failure is not in
this function but in rather LyX failing to add path prefix. I can also
reproduce this btw. I have checked the path prefix in the settings, all is
done right there. But even if I add python dir to PATH, it then will not
find other dependencies (imagemagik and ghostscript).
-- 
Eugene
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: 2.4 alpha2 failing on windows 10

2021-02-10 Thread Richard Kimberly Heck

On 2/10/21 2:14 PM, Thibaut Cuvelier wrote:
On Wed, 10 Feb 2021 at 18:34, José Abílio Matos > wrote:


On Wednesday, February 10, 2021 12:48:17 PM WET Thibaut Cuvelier
wrote:
> @José : reconfiguring LyX does not solve the problem. It really
looks like
> it cannot find Python.

We did not change the python detection code since alpha-1... :-(


However, this must be the cause of the problems. I just tried adding 
Python to the PATH environment variable, and everything worked perfectly.


Maybe LyX is tricked in some way by the python.exe that Microsoft puts 
in the PATH? (It's not a real Python, just something that tells you 
how to install it.) With this, you can start "a Python executable", 
but it will not execute any script (I believe it always returns an 
error code).


That may be. Where do we record what Python we found?

If so, then the solution would be to try running some simple Python file 
using whatever we find and see if that works. E.g. run the program "1;".


Riki



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


Re: LyX 2.4 Alpha 2

2021-02-10 Thread Richard Kimberly Heck

On 2/10/21 10:24 AM, José Abílio Matos wrote:

On Friday, February 5, 2021 10:24:23 PM WET Richard Kimberly Heck wrote:

Hi, all,

I've put tarballs for Alpha 2, built from f4003593, here:

http://ftp.lyx.org/ftp/pub/lyx/devel/lyx-2.4/

This includes the latest epub export stuff.

Please prepare such binaries as it makes sense to release.

As said previously, we did not get many serious bug reports from alpha
1. So if this goes well also we can move at the next stage to feature
freeze and beta 1.

Riki

Hi Riki,
   one small note to help poor packagers, like me in this role :-) , it would
be nice for the package to have a consistent name between releases.

For alpha1 the directory was called "lyx-2.4.0-alpha1" (OK and the usual
procedure) while for alpha 2 it was called "lyx-2.4.0dev".


Yes, sorry. I forgot to update configure.ac before the build.

Riki


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


Re: 2.4 alpha2 failing on windows 10

2021-02-10 Thread Thibaut Cuvelier
On Wed, 10 Feb 2021 at 18:34, José Abílio Matos  wrote:

> On Wednesday, February 10, 2021 12:48:17 PM WET Thibaut Cuvelier wrote:
> > @José : reconfiguring LyX does not solve the problem. It really looks
> like
> > it cannot find Python.
>
> We did not change the python detection code since alpha-1... :-(
>

However, this must be the cause of the problems. I just tried adding Python
to the PATH environment variable, and everything worked perfectly.

Maybe LyX is tricked in some way by the python.exe that Microsoft puts in
the PATH? (It's not a real Python, just something that tells you how to
install it.) With this, you can start "a Python executable", but it will
not execute any script (I believe it always returns an error code).
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: 2.4 alpha2 failing on windows 10

2021-02-10 Thread José Abílio Matos
On Wednesday, February 10, 2021 12:48:17 PM WET Thibaut Cuvelier wrote:
> @José : reconfiguring LyX does not solve the problem. It really looks like
> it cannot find Python.

We did not change the python detection code since alpha-1... :-(

-- 
José Abílio


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


Re: Apply for LyX Template Design for MDPI Publishing Ltd.

2021-02-10 Thread Enrico Forestieri
On Wed, Feb 10, 2021 at 05:11:04AM +0100, Latex wrote:
> Dear Enrico,
> 
> Thank you very much again!

You're welcome!

> We ran the lyx template and found there was a compile bug warning.
> Please see the attached picture.
> 
> But if we run our latex template firstly, lyx template can be compiled
> normally. Why is that? I saw it can't identify .eps picture directly,
> right? Or what's wrong with our operation for lyx?

Sorry, it was an oversight on my part. I first ran pdflatex on the latex
template and thus was not aware of the problem. When a postscript file
is included, pdflatex launches epstopdf to convert it. So it executes
the command "epstopdf outfile=Definitions/logo-orcid-eps-converted-to.pdf
Definitions/logo-orcid.eps" and then includes the converted graphics.

However, LyX typesets the document by making a copy of all required
files to a temporary directory, so that the document directory is not
polluted. Of course, LyX can only copy the files it is aware of, i.e.,
the ones that are inserted by using the GUI. The files included by the
class cannot be copied because they are unknown. Anyway, LyX accounts
for that by including the document directory to the TEXINPUTS
environment variable used by TeX. In this way, TeX can find all required
files.

Unfortunately, epstopdf is an external program that does not follow the
same rules as TeX for finding the required files and thus it fails.
The simplest way for dealing with this is not specifying the extension
of the graphics to be included and provide all formats that can be
included by a given TeX backend. For example, if a latex document
contains \includegraphics{foo} and the files foo.eps and foo.pdf are
provided, then the dvi backend will use foo.eps and the pdf backend will
use foo.pdf, without the need of any conversion.

So, what I have done is removing all .eps extensions from mdpi.cls and
providing the necessary .pdf formats. In the attached archive you can
find only the files that I modified or added. Other than the .pdf files
and the modified mdpi.cls file, you can also find a new .layout file
with the correction of a small glitch and new template.lyx where I
simply added instructions on how to obtain the various \citeXXX variants
for citations. I am also attaching a diff showing what has changed.

> And another question is about the argument in our latex template.
> \documentclass[journal,article,submit,moreauthors,pdftex]{Definitions/mdpi} 
> 
> In the command, all arguments in square brackets can be changed. Such
> as "submit“ can be changed to "accept", "journal" can be changed to a
> designated journal name, others are same.
> When the arguments has been changed, they can produce a different
> format pdf file. If we need to change them, how to modify lyx
> template? or .layout file?

The class options can be found in
Document → Settings → Document Class → Custom
and can be easily changed there. Essentially, here you have all the
arguments that go in the square brackets of \documentclass.

Sorry for the inconvenience

-- 
Enrico
<>
Only in new/Definitions: logo-ccby.pdf
Only in new/Definitions: logo-mdpi.pdf
Only in new/Definitions: logo-orcid.pdf
diff -urp old/Definitions/mdpi.cls new/Definitions/mdpi.cls
--- old/Definitions/mdpi.cls2021-01-18 08:59:24.0 +0100
+++ new/Definitions/mdpi.cls2021-02-10 15:30:13.425267100 +0100
@@ -529,7 +529,7 @@
 
 %% ORCID
 % Make Orcid icon
-\newcommand{\orcidicon}{\includegraphics[width=0.32cm]{Definitions/logo-orcid.eps}}
+\newcommand{\orcidicon}{\includegraphics[width=0.32cm]{Definitions/logo-orcid}}
 
 % Define link and button for each author
 \foreach \x in {A, ..., Z}{%
@@ -634,20 +634,20 @@
\OR \equal{\@arttype}{Book}}{}{%
\ifthenelse{\equal{\@status}{submit}}{% 
\hfill \href{https://www.mdpi.com}{%
-   
\includegraphics[height=1cm]{Definitions/logo-mdpi.eps}}%
+   
\includegraphics[height=1cm]{Definitions/logo-mdpi}}%
}{

\href{https://www.mdpi.com/journal/\@journal}{

\includegraphics[height=1.2cm]{Definitions/\@journal-logo.eps}}%
\hfill

\ifthenelse{\equal{\@journal}{proceedings}}{

\href{https://www.mdpi.com/journal/\@journal}{
-   
\includegraphics[height=1.2cm]{Definitions/logo-conference.eps}
+   
\includegraphics[height=1.2cm]{Definitions/logo-conference}
\hfill}
}{}

\ifthenelse{\equal{\@journal}{scipharm}}{%
- 

Re: LyX 2.4 Alpha 2

2021-02-10 Thread José Abílio Matos
On Friday, February 5, 2021 10:24:23 PM WET Richard Kimberly Heck wrote:
> Hi, all,
> 
> I've put tarballs for Alpha 2, built from f4003593, here:
> 
> http://ftp.lyx.org/ftp/pub/lyx/devel/lyx-2.4/
> 
> This includes the latest epub export stuff.
> 
> Please prepare such binaries as it makes sense to release.
> 
> As said previously, we did not get many serious bug reports from alpha
> 1. So if this goes well also we can move at the next stage to feature
> freeze and beta 1.
> 
> Riki

Hi Riki,
  one small note to help poor packagers, like me in this role :-) , it would 
be nice for the package to have a consistent name between releases.

For alpha1 the directory was called "lyx-2.4.0-alpha1" (OK and the usual 
procedure) while for alpha 2 it was called "lyx-2.4.0dev".

I know that this is a small detail. :-)

Best regards,
-- 
José Abílio


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


Re: 2.4 alpha2 failing on windows 10

2021-02-10 Thread Thibaut Cuvelier
On Wed, 10 Feb 2021 at 08:50, Pavel Sanda  wrote:

> On Tue, Feb 09, 2021 at 06:14:10PM +1300, Andrew Parsloe wrote:
> > I've twice downloaded the 64 bit alpha2 installer for windows and
> installed
> > it. However when I try to open a document in it I get a series of errors
> > starting with unable to find the article layout, then unable to read cite
> > engine basic, then failures of both lyx2lyx and tex2lyx scripts. Trying
> to
> > reconfigure also fails. When I look at Help > About LyX I see
>
> I just got similar report from another win user.
> My guess it that configure refactoring broke something on windows.
>
> Thibaut, can you succesfully install & run alpha2?
>

I can reproduce the same problem as Andrew with a fresh 64-bit LyX 2.4.
@José : reconfiguring LyX does not solve the problem. It really looks like
it cannot find Python.
Is there any way to get the console output? I think the answer lies in
STDERR, somewhere…

By the way, would it be possible for the installer to add the version name
in the shortcut for the Start menu? Right now, only the folder with the
shortcut has the version, but this information is lost as soon as you
search in the menu.
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: 2.4 alpha2 failing on windows 10

2021-02-10 Thread José Abílio Matos
On Tuesday, February 9, 2021 10:09:27 AM WET Andrew Parsloe wrote:
> I've attached the output from the messages pane (with All debug messages
> set) resulting from when I click on the new document icon. (If this is
> not sufficient, then Yes, I can run LyX from the command line. What
> arguments should be used?)
> 
> Andrew

Hi Andrew,
  do the problems go away if you run/select: Tools->Reconfigure

Best regards,
-- 
José Abílio


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