Re: how to scale a xfig figure in lyx?

2018-04-18 Thread Jürgen Spitzmüller
Am Mittwoch, den 18.04.2018, 20:26 +0200 schrieb Wolfgang Engelmann:
> I can't scale a x.fig figure in a float figure which I inserted as
> file 
>  > external material > xfig figure. It is shown too large in the pdf 
> output, whatever textwidth I insert.

You can put it in the Scalebox inset (from the Graphic Boxes module).

Jürgen

> 
> Wolfgang
> 
> 

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


RE: epsilon/varepsilon & Times Roman?

2018-04-18 Thread Bernt Lie
Thanks Richard and Günter,

Choosing:

> Document>Settings>Fonts>Maths: Times Roman (New TX)

solved the problem. HOWEVER, \epsilon and \varepsilon *still* looks the same in 
the LyX preview.

-Bernt

-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of Guenter 
Milde
Sent: Wednesday, April 18, 2018 19:07
To: lyx-users@lists.lyx.org
Subject: Re: epsilon/varepsilon & Times Roman?

On 2018-04-18, Richard Kimberly Heck wrote:

> [-- Type: text/plain, Encoding: 8bit --]

> On 04/18/2018 11:19 AM, Bernt Lie wrote:

>> I use Lyx 2.2.3, with Times Roman font.

>>  

>> Is it correct that Times Roman does not distinguish between “\epsilon”
>> and “\varepsilon”?


> I do not see a difference, with or without:
>     \usepackage{mathptmx}

Mathptmx is used for Times Roman by default. It is a stop-gap measure combining 
several fonts for maths.

Better support is gained with newmathtx: select 
Document>Settings>Fonts>Maths: Times Roman (New TX)

The \epsilon vs. \varepsilon problem is also solved when selecting the extended 
Times-Roman version "TeX Gyre Termes".

Günter



Re: How to properly rotate float sideways

2018-04-18 Thread racoon

On 2018-04-18 16:21, Jürgen Spitzmüller wrote:
2018-04-18 15:56 GMT+02:00 racoon >:


I think sideways floats (figures, tables) are pretty common. That is
why there is a package for it. The (pdf)lscape packages itself seem
not to support floating at all. So both packages fail in providing
either the one or the other.


I did not argue about that, but about the default behavior.

Anyway, I just wanted to make the point that having a floating
landscape page is common enough so that LyX users might want to have
it, at least as an option.


This option is now available in the new Landscape module (via "Landscape 
(floating)").


Great, thanks!

Daniel


how to scale a xfig figure in lyx?

2018-04-18 Thread Wolfgang Engelmann
I can't scale a x.fig figure in a float figure which I inserted as file 
> external material > xfig figure. It is shown too large in the pdf 
output, whatever textwidth I insert.


Wolfgang




Re: lambda > solved, but font question

2018-04-18 Thread Wolfgang Engelmann


Am 18.04.2018 um 19:11 schrieb Guenter Milde:

On 2018-04-16, Wolfgang Engelmann wrote:


[-- Type: text/plain, Encoding: 8bit --]




Am 16.04.2018 um 10:06 schrieb Wolfgang Engelmann:

I select in lyx (2.3.0) in math
\lambda_{max}=528nm
but get in the pdf output
   ̆max = 528nm
why? (Debian stretch)
Wolfgang

just changed the fonts in settings from
palatino
helvetica
computer modern typewriter
to computer modern, which displaces the \lambda correctly.
But I don't like the font too much. Any alternatives?

It works here LyX 2.2.2, Debian/TeXlive17, Palatino

Can you test with View>Source whether the "mathpazo" package is used?

Thanks for your help.
I could, however,  not find View>source, to check for mathpazo
I am using Lyx2.3.0 Debian/TeXlive2017
perhaps this is what you ment:
Code-preview pane
it showed

$\mathrm{\lambda_{max}=528nm}$

I have added in document>settings

\usepackage{mathpazo}

but that did not help either.

Wolfgang



You can also try with setting Fonts>Mathematics: Times Roman New TX

I tried this, but \lambda is not shown
Wolfgang


Günter





Re: lambda > solved, but font question

2018-04-18 Thread Guenter Milde
On 2018-04-16, Wolfgang Engelmann wrote:

> [-- Type: text/plain, Encoding: 8bit --]



> Am 16.04.2018 um 10:06 schrieb Wolfgang Engelmann:

>> I select in lyx (2.3.0) in math
>> \lambda_{max}=528nm

>> but get in the pdf output

>>   ̆max = 528nm

>> why? (Debian stretch)

>> Wolfgang

> just changed the fonts in settings from
> palatino
> helvetica
> computer modern typewriter

> to computer modern, which displaces the \lambda correctly.
> But I don't like the font too much. Any alternatives?

It works here LyX 2.2.2, Debian/TeXlive17, Palatino

Can you test with View>Source whether the "mathpazo" package is used?

You can also try with setting Fonts>Mathematics: Times Roman New TX

Günter



Re: epsilon/varepsilon & Times Roman?

2018-04-18 Thread Guenter Milde
On 2018-04-18, Richard Kimberly Heck wrote:

> [-- Type: text/plain, Encoding: 8bit --]

> On 04/18/2018 11:19 AM, Bernt Lie wrote:

>> I use Lyx 2.2.3, with Times Roman font.

>>  

>> Is it correct that Times Roman does not distinguish between “\epsilon”
>> and “\varepsilon”?


> I do not see a difference, with or without:
>     \usepackage{mathptmx}

Mathptmx is used for Times Roman by default. It is a stop-gap measure
combining several fonts for maths.

Better support is gained with newmathtx: select 
Document>Settings>Fonts>Maths: Times Roman (New TX)

The \epsilon vs. \varepsilon problem is also solved when selecting the
extended Times-Roman version "TeX Gyre Termes".

Günter



Re: epsilon/varepsilon & Times Roman?

2018-04-18 Thread Richard Kimberly Heck
On 04/18/2018 11:19 AM, Bernt Lie wrote:
>
> I use Lyx 2.2.3, with Times Roman font.
>
>  
>
> Is it correct that Times Roman does not distinguish between “\epsilon”
> and “\varepsilon”?
>

I do not see a difference, with or without:
    \usepackage{mathptmx}

Riki



epsilon/varepsilon & Times Roman?

2018-04-18 Thread Bernt Lie
I use Lyx 2.2.3, with Times Roman font.

Is it correct that Times Roman does not distinguish between “\epsilon” and 
“\varepsilon”?

-Bernt


Re: How to properly rotate float sideways

2018-04-18 Thread Jürgen Spitzmüller
2018-04-18 15:56 GMT+02:00 racoon :

> I think sideways floats (figures, tables) are pretty common. That is why
> there is a package for it. The (pdf)lscape packages itself seem not to
> support floating at all. So both packages fail in providing either the one
> or the other.
>

I did not argue about that, but about the default behavior.


> Anyway, I just wanted to make the point that having a floating landscape
> page is common enough so that LyX users might want to have it, at least as
> an option.
>

This option is now available in the new Landscape module (via "Landscape
(floating)").

Jürgen


>
> Daniel
>
>


Re: How to properly rotate float sideways

2018-04-18 Thread racoon

On 18/04/2018 15:48, Jürgen Spitzmüller wrote:
2018-04-18 15:43 GMT+02:00 racoon >:


For me to work with the pure landscape environment was pretty
annoying. I guess it is quite common that landscape pages are
inserted without cutting off text. That is also how the
sidewaysfigure/table works (which unfortunately does not rotate the
page).


Granted, but if it would be that common, I suppose the (pdf)lscape 
packages would do it by default. There are many occasions where you 
don't want the environment to float.


I think sideways floats (figures, tables) are pretty common. That is why 
there is a package for it. The (pdf)lscape packages itself seem not to 
support floating at all. So both packages fail in providing either the 
one or the other.


Anyway, I just wanted to make the point that having a floating landscape 
page is common enough so that LyX users might want to have it, at least 
as an option.


Daniel



Re: How to properly rotate float sideways

2018-04-18 Thread Jürgen Spitzmüller
2018-04-18 15:43 GMT+02:00 racoon :

> For me to work with the pure landscape environment was pretty annoying. I
> guess it is quite common that landscape pages are inserted without cutting
> off text. That is also how the sidewaysfigure/table works (which
> unfortunately does not rotate the page).
>

Granted, but if it would be that common, I suppose the (pdf)lscape packages
would do it by default. There are many occasions where you don't want the
environment to float.

Jürgen


>
> Daniel
>
>


Re: How to properly rotate float sideways

2018-04-18 Thread racoon

On 18/04/2018 15:33, Jürgen Spitzmüller wrote:
2018-04-18 15:17 GMT+02:00 racoon >:


Thanks. If I understood correctly, the landscape.module would take
care of the inner part, i.e.

\begin{landscape}
...
\end{landscape}


Correct.


However, this does not lead to nice results since it will cut off
the page text where inserted. So, it might be a good idea to incorporate

\afterpage{...}

in order to allow for text wrapping.


I don't think we should do this by default. We could add a second inset 
that does this, though.


For me to work with the pure landscape environment was pretty annoying. 
I guess it is quite common that landscape pages are inserted without 
cutting off text. That is also how the sidewaysfigure/table works (which 
unfortunately does not rotate the page).


Daniel



Re: How to properly rotate float sideways

2018-04-18 Thread Jürgen Spitzmüller
2018-04-18 15:17 GMT+02:00 racoon :

> Thanks. If I understood correctly, the landscape.module would take care of
> the inner part, i.e.
>
> \begin{landscape}
> ...
> \end{landscape}
>

Correct.


>
> However, this does not lead to nice results since it will cut off the page
> text where inserted. So, it might be a good idea to incorporate
>
> \afterpage{...}
>
> in order to allow for text wrapping.
>

I don't think we should do this by default. We could add a second inset
that does this, though.

Jürgen


>
> Daniel
>


Re: How to properly rotate float sideways

2018-04-18 Thread racoon

On 18/04/2018 14:40, Jürgen Spitzmüller wrote:
2018-04-17 13:25 GMT+02:00 racoon >:


\afterpage{
         \clearpage
         \begin{landscape}
                 # put float here #
         \end{landscape}
}

(I have created a module for it.)


Also see https://www.lyx.org/trac/ticket/10801


Thanks. If I understood correctly, the landscape.module would take care 
of the inner part, i.e.


\begin{landscape}
...
\end{landscape}

However, this does not lead to nice results since it will cut off the 
page text where inserted. So, it might be a good idea to incorporate


\afterpage{...}

in order to allow for text wrapping.

Daniel


Re: How to properly rotate float sideways

2018-04-18 Thread Jürgen Spitzmüller
2018-04-17 13:25 GMT+02:00 racoon :

> \afterpage{
> \clearpage
> \begin{landscape}
> # put float here #
> \end{landscape}
> }
>
> (I have created a module for it.)
>

Also see https://www.lyx.org/trac/ticket/10801

Jürgen


Re: How to properly rotate float sideways

2018-04-18 Thread racoon

On 17/04/2018 14:42, Rich Shepard wrote:

On Tue, 17 Apr 2018, racoon wrote:


I have some wide figures and tables that don't fit on a portrait page.

I tried to use the "Rotate sideways" option in LyX but it is hard to read
the PDF online since the text on the sideways page is sideways.


Daniel,

   I don't know if my experiences apply to your situation, but when I 
have a

wide table and I rotate it, it does not display properly with the dvips
preview, but does when I compile the file to a .pdf. And, yes, it is
difficult to read on-screen unless you use a reader like MasterPDFEditor
which allows on-screen rotation of a PDF file.


Hi Rich,

Yes, I had compiled the sideways float to PDF. If I understood you 
correctly, then your suggestion is to leave the rotation of the pages to 
the user. I guess most PDF viewers support the rotation of pages these 
days. Though I am a bit worried whether every reader of my text is able 
to do it.


But it made me aware of one side-effect of my solution. The default zoom 
in many PDF readers will be lowered so that the rotated page fits in. 
This leads to all portrait pages showing on a lower zoom than normal. 
However, I am still inclined to think that the average user can zoom a 
page but less to rotate it. But it's a trade-off.


Daniel



Re: How to properly rotate float sideways

2018-04-18 Thread racoon

On 17/04/2018 21:12, Steve Litt wrote:

On Tue, 17 Apr 2018 13:25:52 +0200
racoon  wrote:


Hi,

I have some wide figures and tables that don't fit on a portrait page.


Your afterpage solution sounds good to me, but that sounds like
strongarming a symptom rather than fixing the root cause. The root
cause is using anything, in a book, that is wider than a small phone
turned sideways. The days we could assume a 20" screen (or letter or a4
paper) are gone, and with them, the use of tables, and big
complex diagrams or pictures. >
Isn't there a way you could refactor your tables to make them into
several skinny tables? Also, with complex graphics, is there a way to
present the full picture in miniature, with clickable areas to bring up
sub-pictures? I know I can do this with html+svg, and it would be very
handy with LyX too.

What I try to do these days, with new construction, is to make try to
make sure nothing I use is more than 300 to 500 pixels wide. By
filtering the big stuff out at the authoring stage, I don't need to
jump through hoops at the publishing stage.


Unfortunately, it is hard to break down my diagram without loosing some 
of the representation that makes it easier to grasp the information it 
contains. Same with the tables. Cutting them down makes it harder to 
comprehend them.


Concerning the phone: I guess, given my limitations, the afterpage 
solution is better than LyX's default sideways float solution since the 
phone can then be turned sideways to read the sideways page which offers 
more space. So maybe LyX should have an extended feature for this.




Re: Smaller font in floats in the working area

2018-04-18 Thread racoon

On 12/04/2018 11:55, Guenter Milde wrote:

Sorry for the noise,

Günter


No worries. I should have stated what I already tried.

Daniel