xhtml export from Lyx: Size of figures

2019-11-28 Thread Wolfgang Engelmann
How can I change the size of images for the xhtml export from Lyx? At 
the moment, whatever I change -scale graphics, width- the figure is too 
large. I use debian, lyx 2.33 and koma script book style A5. The figures 
are in floats.


Wolfgang

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


xhtml export from Lyx: List of figures

2019-11-28 Thread Wolfgang Engelmann
the xhtml export from Lyx leads to a list of figures which shows the 
whole content of the legends. I would like to have here only the short 
title, but the long title in the legends. What would be the best way to 
achieve this (98 figures!).


Wolfgang

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


Re: pdf graphic in lyx file > converting error

2019-11-28 Thread Kornel Benko
Am Thu, 28 Nov 2019 08:46:47 +0100
schrieb Wolfgang Engelmann :

> Am 27.11.19 um 20:00 schrieb Kornel Benko:
> > Am Wed, 27 Nov 2019 19:39:06 +0100
> > schrieb Wolfgang Engelmann :
> >  
> >> I try to insert a pdf graphic in a float of a book document, but get
> >> /error converting in a loadable format/. What do I have to set in the  
> >> tools>file handling>converters to make it work, respectively, in which  
> >> help file and where there do I find infos? Its an older file (2016)
> >> which used to work. Has something changed in the meantime?
> >>
> >> Wolfgang
> >>  
> > Maybe you suffer from values in /etc/ImageMagick-6/policy.xml?
> >
> > Try to comment the PDF line, i.e.
> > from
> > 
> > to
> > 
> >
> > Kornel
> >  
> Thanks, Kornel. I have done as you suggested ( is commenting 
> out, I guess?) and reconfigured lyx. But it did no help. Wolfgang

Yes, it is commenting out. But the following advise from Jürgen is better
because /etc/ImageMagick-6/policy.xml will be overwritten on each update
of package imagemagick-6-common.

Kornel


pgpbKcPcCloHK.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: pdf graphic in lyx file > converting error

2019-11-28 Thread Wolfgang Engelmann



Am 28.11.19 um 09:51 schrieb Jürgen Spitzmüller:

Am Donnerstag, den 28.11.2019, 08:46 +0100 schrieb Wolfgang Engelmann:

Thanks, Kornel. I have done as you suggested ( is
commenting
out, I guess?) and reconfigured lyx. But it did no help. Wolfgang

Try the following: Copy policy.xml to your local ImageMagic config
folder (~/.config/ImageMagick here) and add the following at the bottom
of the file:

   
   
   

instead of the respective existing domain="coder" ... "pattern=..."
lines.

But keep in mind that the restrictions have been introduced due to
severe security issues. So change this at you own risk.

Jürgen


Thanks, Jürgen.

For the time being, I use now lyx on my notebook, which runs on Debian 
buster instead of Mint tina on the PC. I have no problems here. I will 
look into it later.


Wolfgang

  

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


Re: pdf graphic in lyx file > converting error

2019-11-28 Thread Jürgen Spitzmüller
Am Donnerstag, den 28.11.2019, 08:46 +0100 schrieb Wolfgang Engelmann:
> Thanks, Kornel. I have done as you suggested ( is
> commenting 
> out, I guess?) and reconfigured lyx. But it did no help. Wolfgang

Try the following: Copy policy.xml to your local ImageMagic config
folder (~/.config/ImageMagick here) and add the following at the bottom
of the file:

  
  
  

instead of the respective existing domain="coder" ... "pattern=..."
lines.

But keep in mind that the restrictions have been introduced due to
severe security issues. So change this at you own risk.

Jürgen

 


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


Re: pdf graphic in lyx file > converting error

2019-11-28 Thread Baris Erkus
On 28-Nov-19 11:09 AM, Wolfgang Engelmann wrote:


Am 27.11.19 um 20:04 schrieb Baris Erkus:
On 27-Nov-19 9:39 PM, Wolfgang Engelmann wrote:

I try to insert a pdf graphic in a float of a book document, but get error 
converting in a loadable format. What do I have to set in the tools>file 
handling>converters to make it work, respectively, in which help file and where 
there do I find infos? Its an older file (2016) which used to work. Has 
something changed in the meantime?

Wolfgang


Does this problem occur when you open the file and when LyX tries to show the 
PDF or when you compile the file (e.g with pdflatex)? I am trying to understand 
if this is a LyX issue or latex issue.

There were questions about PDF is not converted correctly for LyX preview in 
the list, which is related to PDF to PNG conversion, and I had the following 
recommendation for such problems. I do not know if this is your problem but 
worth to remind this:

Default LyX will show the PDFs with lower quality on the screen, when scaled. 
To solve this problem you need to tell to increase the resolution of the 
preview image as follows:

  *   Make sure the convert utility of ImageMagick is installed and the utility 
"convert" is made available to path.
  *   Start LyX and do not open a file.
  *   Go to "Preferences" under the "Tools" menu.
  *   Go to "Converters" under the "File Handling" section.
  *   Select "PDF(graphics)" from "From Format:" and "PNG" from "To Format:"
  *   To "Converter:" write : convert -density *** -trim -quality 100 -sharpen 
0x1.0 $$i $$o, where *** can be 200 to start with. You may try other values 
based on the results.
  *   Click "Add" button.
  *   Click "Apply" button.
  *   Click "Save" button.
  *   Select "Reconfigure" under "Tools" menu.
  *   Restart LyX.

--
↓↓
Please bottom-post. Start your reply here:

Thanks, Barris.

I do have Version: ImageMagick 6.9.7-4 with convert.

Did you mean to put this in the extra flag line? >

  *
  *   To "Converter:" write : convert -density *** -trim -quality 100 -sharpen 
0x1.0 $$i $$o, where *** can be 200 to start with. You may try other values 
based on the results.


  *   Click "Save" button.

There was no save button, I clicked ok

I opened my document. Now instead of

error converting in a loadable format.

I get

error loading file into memory

What I plan to do now is to try it with Debian buster on my notebook. I am 
currently on Linux Mint Tina using my PC.

Wolfgang


This is the final setting of PDF (graphics) -> PNG converter on my LyX (I may 
be wrong with the save button):

[cid:part1.8EA7CA67.005E9DAF@hotmail.com]

Some suggestions:

  *   I guess the convert utility works fine on your computer but maybe a 
double check by running it on the command line.
  *   Clear the PNG cache folder. On Windows, this folder is under the users 
folder.


--
↓↓
Please bottom-post. Start your reply here:
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: pdf graphic in lyx file > converting error

2019-11-28 Thread Wolfgang Engelmann


Am 27.11.19 um 20:04 schrieb Baris Erkus:

On 27-Nov-19 9:39 PM, Wolfgang Engelmann wrote:


I try to insert a pdf graphic in a float of a book document, but get 
/error converting in a loadable format/. What do I have to set in the 
tools>file handling>converters to make it work, respectively, in 
which help file and where there do I find infos? Its an older file 
(2016) which used to work. Has something changed in the meantime?


Wolfgang


Does this problem occur when you open the file and when LyX tries to 
show the PDF or when you compile the file (e.g with pdflatex)? I am 
trying to understand if this is a LyX issue or latex issue.


There were questions about PDF is not converted correctly for LyX 
preview in the list, which is related to PDF to PNG conversion, and I 
had the following recommendation for such problems. I do not know if 
this is your problem but worth to remind this:


Default LyX will show the PDFs with lower quality on the screen, when 
scaled. To solve this problem you need to tell to increase the 
resolution of the preview image as follows:


  * Make sure the convert utility of ImageMagick is installed and the
utility "convert" is made available to path.
  * Start LyX and do not open a file.
  * Go to "Preferences" under the "Tools" menu.
  * Go to "Converters" under the "File Handling" section.
  * Select "PDF(graphics)" from "From Format:" and "PNG" from "To Format:"
  * To "Converter:" write :|convert -density *** -trim -quality 100
-sharpen 0x1.0 $$i $$o|, where *** can be 200 to start with. You
may try other values based on the results.
  * Click "Add" button.
  * Click "Apply" button.
  * Click "Save" button.
  * Select "Reconfigure" under "Tools" menu.
  * Restart LyX.

--
↓↓
Please bottom-post. Start your reply here:


Thanks, Barris.

I do have Version: ImageMagick 6.9.7-4 with convert.

Did you mean to put this in the extra flag line? >

 *


 * To "Converter:" write :|convert -density *** -trim -quality 100
   -sharpen 0x1.0 $$i $$o|, where *** can be 200 to start with. You may
   try other values based on the results.


 * Click "Save" button.

There was no save button, I clicked ok

I opened my document. Now instead of

/error converting in a loadable format/.

I get

/error loading file into memory
/

What I plan to do now is to try it with Debian buster on my notebook. I 
am currently on Linux Mint Tina using my PC.


Wolfgang



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