Re: LyX 2.3.4 Windows Installer for Testing

2020-02-04 Thread Jürgen Spitzmüller
Am Mittwoch, den 05.02.2020, 00:32 +0100 schrieb Stephan Witt:
> Yes, but LyX can test for footnotehyper's presence with
> isAvailable().
> Patch attached, ok?

Are you sure docs do not break with hyperref and plain footnote
package?

Jürgen


signature.asc
Description: This is a digitally signed message part
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyX 2.3.4 Windows Installer for Testing

2020-02-04 Thread Jürgen Spitzmüller
Am Dienstag, den 04.02.2020, 23:40 -0500 schrieb Richard Kimberly Heck:
> We don't really control was various distros do, obviously. I wonder
> whether it would be worth trying to pare down the User Guide a bit,
> so
> that it was compilable with a relatively minimal LaTeX installation.
> Stuff on multi-language support (which, I assume, is where these
> dependencies come from) could be moved into the Additional Features
> manual. That one, and the other manuals, have a lot of dependencies,
> for
> relatively obvious reasons.

I think if people would complain, those packagers might revisit their
decisions. These are really just a few Linux distros who do this. I
don't think we should let ourselves constrain from this really
nonsensical decision.

Also, the LyX binaries could easily require all texlive-lang packages.

Jürgen

> 
> Riki
> 
> 


signature.asc
Description: This is a digitally signed message part
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyX 2.3.4 Windows Installer for Testing

2020-02-04 Thread Jürgen Spitzmüller
Am Dienstag, den 04.02.2020, 19:11 +0100 schrieb Pavel Sanda:
> It might be worth to report it, do we have clue whether adding all 
> other languages is heavy in terms of space (are some dictionaries
> needed?)

It's not heavy at all. Thos *.ldf files are rather short text files.
Language-specific fonts might be heavier, but those could be easily
separated.

Jürgen


signature.asc
Description: This is a digitally signed message part
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyX 2.3.4 Windows Installer for Testing

2020-02-04 Thread Richard Kimberly Heck
On 2/4/20 1:11 PM, Pavel Sanda wrote:
> On Tue, Feb 04, 2020 at 06:40:35PM +0100, Jürgen Spitzmüller wrote:
>> Am Dienstag, den 04.02.2020, 18:22 +0100 schrieb Pavel Sanda:
>>> Compiling user guide doesn't work for me for quite some time
>>> due to missing packages (some french & spanish babel related
>>> stuff).
>>> Likely just matter of installing them, then maybe other stuff
>>> pops up as well. I do not think we should really depend on
>>> so much stuff for basic manual, but I do not want to become
>>> maintainer either ;)
>> I still fail to understand why some distros do not install (babel)
>> language packages right away. Babel is so fundamental to LaTeX, after
>> all.
> I guess only english related stuff is considered as generic enough.
>
> It might be worth to report it, do we have clue whether adding all 
> other languages is heavy in terms of space (are some dictionaries needed?)

We don't really control was various distros do, obviously. I wonder
whether it would be worth trying to pare down the User Guide a bit, so
that it was compilable with a relatively minimal LaTeX installation.
Stuff on multi-language support (which, I assume, is where these
dependencies come from) could be moved into the Additional Features
manual. That one, and the other manuals, have a lot of dependencies, for
relatively obvious reasons.

Riki


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


Re: LyX 2.3.4 Windows Installer for Testing

2020-02-04 Thread Stephan Witt
Am 04.02.2020 um 18:38 schrieb Jürgen Spitzmüller :
> 
> Am Dienstag, den 04.02.2020, 18:11 +0100 schrieb Stephan Witt:
>> Is anyone able to reproduce the problems with Linux?
> 
> Works for me.
> 
> footnotehyper is in TeXLive and MikTeX as of 2016.

Yes, but LyX can test for footnotehyper's presence with isAvailable().
Patch attached, ok?

Stephan



footnotehyper.patch
Description: Binary data
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyX 2.3.4 Windows Installer for Testing

2020-02-04 Thread Stephan Witt
Am 04.02.2020 um 20:54 schrieb mn :
> 
> On 04.02.20 18:11, Stephan Witt wrote:
> 
>> Anyway, the English version doesn’t work for me too.
>> 
>> I'm facing a strange error:
>> ==
>>  LaTeX Error: File `footnotehyper.sty' not found.
>> Enter file name:
>> ! Emergency stop.
>> 
>> 
>> l.36 \usepackage
>>{amsmath}^^M
>> *** (cannot \read from terminal in nonstop modes)
>> ==
>> 
>> Perhaps my LaTeX installation is outdated.
>> 
>> Is anyone able to reproduce the problems with Linux?
> 
> 
> It compiles OKish.
> But spews a lot of warnings regarding compatibility, mainly KOMA-related?
> 
> 
> Alternatively, just try this:
> http://ftp.lyx.de/Documentation/en/UserGuide.pdf (2.3.3)
> 
> open in Preview or Skim.

No problem here with Preview or Skim.
"The LYX User’s Guide
by the LYX Team∗ Version 2.2.x
April 20, 2017"
Preview Version 10.1 (944.6.16.1)
Skim Version 1.4.7 (81)

Stephan

> 
> No display.
> Open in Preview and export as PDF. Works (losing bookmarks etc)
> 
> mn
> -- 
> lyx-devel mailing list
> lyx-devel@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-devel

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


Re: LyX 2.3.4 Windows Installer for Testing

2020-02-04 Thread mn
On 04.02.20 18:11, Stephan Witt wrote:

> Anyway, the English version doesn’t work for me too.
>
> I'm facing a strange error:
> ==
>   LaTeX Error: File `footnotehyper.sty' not found.
>  Enter file name:
> ! Emergency stop.
> 
>
> l.36 \usepackage
> {amsmath}^^M
> *** (cannot \read from terminal in nonstop modes)
> ==
>
> Perhaps my LaTeX installation is outdated.
>
> Is anyone able to reproduce the problems with Linux?


It compiles OKish.
But spews a lot of warnings regarding compatibility, mainly KOMA-related?


Alternatively, just try this:
http://ftp.lyx.de/Documentation/en/UserGuide.pdf (2.3.3)

open in Preview or Skim.

No display.
Open in Preview and export as PDF. Works (losing bookmarks etc)

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


Re: LyX 2.3.4 Windows Installer for Testing

2020-02-04 Thread Pavel Sanda
On Tue, Feb 04, 2020 at 06:40:35PM +0100, Jürgen Spitzmüller wrote:
> Am Dienstag, den 04.02.2020, 18:22 +0100 schrieb Pavel Sanda:
> > Compiling user guide doesn't work for me for quite some time
> > due to missing packages (some french & spanish babel related
> > stuff).
> > Likely just matter of installing them, then maybe other stuff
> > pops up as well. I do not think we should really depend on
> > so much stuff for basic manual, but I do not want to become
> > maintainer either ;)
> 
> I still fail to understand why some distros do not install (babel)
> language packages right away. Babel is so fundamental to LaTeX, after
> all.

I guess only english related stuff is considered as generic enough.

It might be worth to report it, do we have clue whether adding all 
other languages is heavy in terms of space (are some dictionaries needed?)

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


Re: LyX 2.3.4 Windows Installer for Testing

2020-02-04 Thread Jürgen Spitzmüller
Am Dienstag, den 04.02.2020, 18:22 +0100 schrieb Pavel Sanda:
> Compiling user guide doesn't work for me for quite some time
> due to missing packages (some french & spanish babel related
> stuff).
> Likely just matter of installing them, then maybe other stuff
> pops up as well. I do not think we should really depend on
> so much stuff for basic manual, but I do not want to become
> maintainer either ;)

I still fail to understand why some distros do not install (babel)
language packages right away. Babel is so fundamental to LaTeX, after
all.

Jürgen


signature.asc
Description: This is a digitally signed message part
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyX 2.3.4 Windows Installer for Testing

2020-02-04 Thread Jürgen Spitzmüller
Am Dienstag, den 04.02.2020, 18:11 +0100 schrieb Stephan Witt:
> Is anyone able to reproduce the problems with Linux?

Works for me.

footnotehyper is in TeXLive and MikTeX as of 2016.

Jürgen


signature.asc
Description: This is a digitally signed message part
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyX 2.3.4 Windows Installer for Testing

2020-02-04 Thread Pavel Sanda
On Tue, Feb 04, 2020 at 06:11:37PM +0100, Stephan Witt wrote:
> Perhaps my LaTeX installation is outdated.
> 
> Is anyone able to reproduce the problems with Linux?

Compiling user guide doesn't work for me for quite some time
due to missing packages (some french & spanish babel related
stuff).
Likely just matter of installing them, then maybe other stuff
pops up as well. I do not think we should really depend on
so much stuff for basic manual, but I do not want to become
maintainer either ;)

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


Re: LyX 2.3.4 Windows Installer for Testing

2020-02-04 Thread Stephan Witt
Am 04.02.2020 um 07:52 schrieb mn :
> 
> On 03.02.20 23:35, Stephan Witt wrote:
> 
>>> 
>>> Just got around testing the Mac version.
>> 
>> Which Mac version did you test? The version you’ve built from source or the 
>> official one from download?
>> 
> 
> macOS 10.12, TeXLive 2019.
> Release version of LyX 2.3.4, as per download from ftp.lyx.org
> 
> (Sunday, January 12, 2020 Qt Version (run-time): 5.9.8
> Qt Version (compile-time): 5.9.8)
> 
>>> UserGuide.pdf on macOS with default PDF viewer is unusable.
>> 
>> Which version of UserGuide.pdf - the english or some other language?
>> 
> 
> Tried and reported on English UserGuide. Just reran again. Same difference.
> Funny enough, the German UserGuide under /de/ compiles and displays…
> 
>>> Unfortunately, UserGuide is
>>> 
>>> - blank in Preview.app
>>> - crashing Skim.app
>> 
>> I cannot reproduce both of these with the german version.
>> 
> 
> Try again with English version.
> After multiple reboots, still broken as reported.

Multiple reboots? Why this?

Anyway, the English version doesn’t work for me too.

I'm facing a strange error:
==
  LaTeX Error: File `footnotehyper.sty' not found.
 Enter file name: 
! Emergency stop.
 
 
l.36 \usepackage
{amsmath}^^M
*** (cannot \read from terminal in nonstop modes)
==

Perhaps my LaTeX installation is outdated.

Is anyone able to reproduce the problems with Linux?


>>> - transparency-grid empty in PDF-Expert
>>> - optically OK in Adobe Reader
>>> 
>>> IMO most probably related to this bug
>>> https://tex.stackexchange.com/questions/76273/multiple-pdfs-with-page-group-included-in-a-single-page-warning
>>> 
>>> post-processing the file makes it readable in all PDF apps.
>> 
>> What did you do exactly?
> 
> pdfsizeopt --do-optimize-fonts=no
> 
>>> This seems to be not only the fault of pdftex.
>>> The images include with LyX trigger this?
>>> 
>>> (Let me repeat again at this point that all PNGs, all SVGZs and all PDFs
>>> included in LyX can be also made much smaller, reducing shipping size.
>>> Why does nobody care about this at all?)
>> 
>> Do you think this is related with the reported problems?
> 
> Yes. But unproven for this case. UserGuide.pdf is broken for a long time
> now on PDFkit based viewers.

Sorry, I cannot verify it for now. But probably you should file a ticket then.

> UserGuide includes countless inludes/images. As for example PNG, and
> PDF, and minipages…
> In case of PNG they are probably just not optimised.

Probably, an example would be nice.

> With PDFs they look like too big *and* trigger the problem?
> 
>> What do you mean with *much* smaller exactly?
> 
> double digit percentage savings on average.
> 
>> There are 272 png files with an total size of about 1.1 MByte.
>> There are 10 pdf files with a size of about 200 kBytes total.
>> There are 1443 svgz files with a size of about 4 MBytes total.
>> The shipping size of the LyX bundle is more than 127 MBytes.
>> Do you think reducing the images makes it *much* smaller?
> 
> Not overall, as those e.g. dictionaries take up a big chunk.
> But I do not have a solution for making *them* smaller.
> 
> What I do see is that image files *can* be made smaller *easily*.
> 
> With pngout, advpng, optipng, trimage, imgopt, svgclean,…
> 
> Regardless whether they trigger the reported bug, that should be done
> once, before shipping, saving thousands upon thousands of installed
> bytes on user's machines.

I cannot believe it makes a real difference for users. 
As I said already I expect a gain of about 500k if one saves 10% of the image 
size.
If anyone wants to do it the way to go is the optimization of the image 
sources, IMHO.
Perhaps you can file a ticket for this too?

Stephan

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


Re: Problem with if/else/fi in figure environment

2020-02-04 Thread Jürgen Spitzmüller
Am Dienstag, den 04.02.2020, 17:02 +0100 schrieb Glen Guhr:
> Section 1 works fine. There, I am loading the two pictures, where
> separate figure environments are put after  \if  \else.
> 
> In section2 I am trying to load the very same pictures. There, I need
> to
> switch the pictures within one figure environment, because for both I
> want to use the same caption and labels. Only the picture should be
> switched, depending on the selected \if-condition.

The problem probably is that you use relative paths in ERT (whereas the
file is processed in a temporary directory).

Why not use real graphic insets as in the attached modified example?

Jürgen


Working_example.lyx
Description: application/lyx


signature.asc
Description: This is a digitally signed message part
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Problem with if/else/fi in figure environment

2020-02-04 Thread Glen Guhr
Dear Sir or Madam,

I am facing a problem while using Lyx and LaTeX source code within on
figure environment. I have added a minimum working example giving me the
error message, shown at the end of my email. The working example is
devided in two sections.

Section 1 works fine. There, I am loading the two pictures, where
separate figure environments are put after  \if  \else.

In section2 I am trying to load the very same pictures. There, I need to
switch the pictures within one figure environment, because for both I
want to use the same caption and labels. Only the picture should be
switched, depending on the selected \if-condition.

I am not sure, whether it is a bug or a feature. But the TeX source code
for opening the picture via \includegraphics, is completely the same. So
it is very hard to find the issue.

I have also tried to use *.pdf pictures. But there I am getting the same
error message.

I also tried using  \includesvg instead of using \includegraphics, but
there I got the same error message.


So any help in solving this issue would be greatly appreciated. Thank
you in advance.


With kind regards,


Glen



Here is the error message, but section 1 on the example prooves, that
the pictures can be found and loaded correctly:


**

LaTeX Warning: File `"Pictures/Testbild-02 de".svg' not found on input
line 64.


! Unable to load picture or PDF file 'Pictures/Testbild-02'.

   d
l.64 ...tring"Pictures/Testbild-02 de\string".svg}

The requested image couldn't be read because
it was not a recognized image format.

File: "Pictures/Testbild-02 de".svg Graphic file (type QTm)

! Unable to load picture or PDF file 'Pictures/Testbild-02'.

   d
l.64 ...tring"Pictures/Testbild-02 de\string".svg}

The requested image couldn't be read because
it was not a recognized image format.

**


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