Problem opening beamer document with 2.1.0

2014-04-26 Thread Pietro Cortese

Hello,

I have found a problem while migrating from 2.0.7 to 2.1.0.
The beamer slides that I'm working on cannot be opened in the new 
version. It seems to be connected with the new layout. I tried to 
specify in the document to use the old (local) layout but I had no 
success in opening the files.


I extracted a portion that reproduces the problem.

Thanks in advance,
Pietro Cortese


bugreport.lyx
Description: application/lyx


Re: Problem opening beamer document with 2.1.0

2014-04-26 Thread Pietro Cortese

Thanks a lot!
Pietro

On 04/26/2014 04:46 PM, Jürgen Spitzmüller wrote:

2014-04-26 16:26 GMT+02:00 Pietro Cortese:

Hello,

I have found a problem while migrating from 2.0.7 to 2.1.0.
The beamer slides that I'm working on cannot be opened in the new
version. It seems to be connected with the new layout. I tried to
specify in the document to use the old (local) layout but I had no
success in opening the files.


The problem are the {} in the Block titles. The conversion routine
assumes that opening and closing brackets are in two separate TeX mode
insets. But you can also just remove them, and the file will be converted.

HTH
Jürgen


I extracted a portion that reproduces the problem.

Thanks in advance,
Pietro Cortese




Small conversion issue with beamer

2014-11-23 Thread Pietro Cortese

Hello,

I have found a small conversion issue from lyx 2.0 to 2.1.
In 2.0 one could define blocks and, for what I could tell, the block 
title was to be specified with ERT.


In 2.1 one can insert the block title and the ERT text is now 
interpreted as part of the block.


You can find in attachment the same document compiled with lyx 2.0 and 
lyx 2.1.


I wrote a small awk script to correct the problem.

Best regards,
Pietro


beamer-test.lyx
Description: application/lyx


beamer-test-2.0.pdf
Description: Adobe PDF document


beamer-test-2.1.pdf
Description: Adobe PDF document


convert.awk
Description: application/awk


Re: Calculations in lyx

2010-06-01 Thread Pietro Cortese
Hello,

It would be nice to have the possibility of making calculations in lyx. 

>From time to time I make some table in excel or openoffice with some 
calculations and then I copy the numbers to lyx. Then I update something 
on the table and I have to update also my document.

I saw that tex has some computation features but only fixed point.

It would be great to have some (c like) computing in lyx with variables and
putting in some inset printf("%5.3f", myvariable) and when you close the 
inset the result appears and gets updated every time you save or export 
the document.

Thanks in advance,
Pietro



Image resolution in preview

2010-06-22 Thread Pietro Cortese

Hello,

I need often to look in detail at a graph that I recently imported into 
lyx. The resolution of the displayed image is poor (e.g. when you import a 
pdf image).


In order to improve this I tried to modify the line "opts" of 
the file /usr/share/lyx/scripts/convertDefault.py into for example opts = 
"-depth 8 -density 144x144". The image improves, however the clipping is 
messed up.


Could it be possible to use the screen resolution parameter not only for 
fonts but also for images? Alternatively the "scale on screen" image could 
change the resolution of the displayed image and not scale a low 
resolution one.


It would be also nice if the clipping dialogue would be improved to 
provide istantaneous previews as soon as a new number is put into the 
bounding box. It would also increase the productivity if one could have 
also some arrows to increase or decrease each bounding box parameter to 
avoid typing numbers.


Thanks in advance,
Pietro Cortese


Small problems with figure previews

2016-09-16 Thread Pietro Cortese

Hello,

I'm including some figures in a lyx and I would like to have a preview 
with better resolution. I'm using a lyx file as a logbook and I would 
like to see clearly pictures and included documents.


Picture scaling increase the dimension but not the resolution.

I tried to add a new converter in Tools-File-handling-Converters from 
PDF to png but it didn't work.


Only solution seems to be to put the picture inside a preview box.

Another problem is when including external material with pdfpages. If 
you specify for example in the latex options "pages=4" in the preview 
you see always the first page. In this case if you include the pdfpages 
inside a preview box you get an error message on output Warning: Failed 
to produce 1 preview snippet(s).


Please could you give me some suggestion?

Many thanks,

Pietro



Missing Glyphs! error

2016-09-17 Thread Pietro Cortese

Hello,

when compiling the attached document with pdflatex in lyx2.2.1 or 
lyx2.2.0 I get the error message:


Missing Glyphs!

Missing character: There is no ; in font nullfont!

However if I open the containing directory and compile by hand the tex 
file with pdflatex there are no errors.


When opening the same document in lyx2.1.5 it compiles without problems.

It is a very weird situation. Please could you have a look?

Thank you in advance,

Pietro Cortese



broken_in_2.2.lyx
Description: application/lyx


Re: Small problems with figure previews

2016-09-17 Thread Pietro Cortese
Hi Scott,

yes I'm referring to the image displayed in lyx that has low resolution
and becomes unreadable. Scaling the image makes it bigger but does not
improve resolution.

Bu running lyx 2.2.1 in debug mode I see that the image is first
converted from pdf to eps and then loaded into cache

graphics/GraphicsCacheItem.cpp (265): Image conversion succeeded.
graphics/GraphicsCacheItem.cpp (295): Loading image.
graphics/GraphicsCacheItem.cpp (301): Image loading succeeded.

Best regards,
Pietro


On Fri, Sep 16, 2016 at 10:20:09AM +0200, Pietro Cortese wrote:
> Hello,
> 
> I'm including some figures in a lyx and I would like to have a preview
with
> better resolution. I'm using a lyx file as a logbook and I would like
to see
> clearly pictures and included documents.
> 
> Picture scaling increase the dimension but not the resolution.
> 
> I tried to add a new converter in Tools-File-handling-Converters from
PDF to
> png but it didn't work.
> 
> Only solution seems to be to put the picture inside a preview box.
> 
> Another problem is when including external material with pdfpages. If
you
> specify for example in the latex options "pages=4" in the preview you
see
> always the first page. In this case if you include the pdfpages inside
a
> preview box you get an error message on output Warning: Failed to
produce 1
> preview snippet(s).
> 
> Please could you give me some suggestion?


Hi Pietro,

To make sure I understand, you are only referring to LyX's display
right? i.e. there is no problem with the final PDF output?

What is your LyX version?

You can run LyX as

 lyx -dbg graphics

to get more information about graphics conversions.

Scott




Re: Small problems with figure previews

2016-09-17 Thread Pietro Cortese
The converter to pdf to eps in my setup is:

pdftops -eps -f 1 -l 1 $$i $$o

this probably explains why when using pdfpages material the preview in
lyx is always the first page.

However this conversion preserves resolution. The loss of resolution
should be downstream of the conversion.

Best regards,
Pietro



Re: Small problems with figure previews

2016-09-18 Thread Pietro Cortese
Dear Scott,

I send you an example that on my system (Centos 7) shows the problem.

newfile2.pdf is included bt newfile1.lyx and the text displays correctly
in the output but on my system does not display well in lyx.
Best regards,
Pietro


newfile1.lyx
Description: application/lyx


newfile2.pdf
Description: Adobe PDF document


Fwd: Re: Small problems with figure previews

2016-09-18 Thread Pietro Cortese

 Forwarded Message 
Subject:Re: Small problems with figure previews
Date:   Sun, 18 Sep 2016 18:03:29 +0200
From:   Pietro Cortese 
To: parubi...@gmail.com, skost...@lyx.org



Hello,

for some reason I'm not receiving e-mails from you and I didn't see the
screehsot. I had left the scaling to 150% in the example. However even
with 100% the result is not very easy to read.
The result seems to be independent on the fact that I put
"convert $$i $$o" or "convert -density 300 -units pixelsperinc $$i $$o"
in the eps to png conversion. I have the impression that convert is not
called. I renamed /usr/bin/convert to /usr/bin/convert-no and the
picture is loaded anyway.

Pietro



Re: Fwd: Re: Small problems with figure previews

2016-09-20 Thread Pietro Cortese
Hello,

by using the debugging option as you suggested and looking in the code
the issue became clear.
With QT4.8 lyx is using QT for conversion and therefore the suggestion
to change the converter settings didn't work.
I recompiled with QT5 and now it is using the external converter and
therefore the suggestion:
convert -density 150  $$i $$o
does the trick.

Thanks,
Pietro