Re: how to scale a xfig figure in lyx?

2018-04-19 Thread Wolfgang Engelmann


Am 19.04.2018 um 17:43 schrieb Jürgen Spitzmüller:
2018-04-19 17:34 GMT+02:00 Wolfgang Engelmann 
mailto:engelm...@uni-tuebingen.de>>:


Here is a MWE. How can I scale it down in the pdf export?


Like this. Have a look at the External Material dialog, third pane 
("Size and Rotation"), where I entered the size as "80 Textwidth %".

ok, got it now.


Why you insert the figure a second time as a PDF is beyond me.

I sent a wrong lyx-file, the second fig should have been omitted.


Jürgen

Wolfgang



The file you corrected gives me this error message:

#

Package caption Info: Begin \AtBeginDocument code.

Package caption Info: End \AtBeginDocument code.

Package lastpage Info: Please have a look at the pageslts package at

(lastpage) https://www.ctan.org/pkg/pageslts

(lastpage) ! on input line 154.

! LaTeX Error: File `1_home_we_Downloads_Schrempf-Fig02.pdftex_t' not found.

Type X to quit or  to proceed,

or enter new name. (Default extension: pdftex_t)

Enter file name:

! Emergency stop.





I can't view it even if I select 'show output anyway'. I have to produce 
the pdftex_t file which I do -as mentioned before- in xfig by 'export 
the xfig figure as combined PDF/LaTeX (both parts)'. This is the content 
of the pdftex_t file:


\begin{picture}(0,0)% \includegraphics{Schrempf-Fig02.pdf}% 
\end{picture}% \setlength{\unitlength}{4144sp}% % 
\begingroup\makeatletter\ifx\SetFigFont\undefined% 
\gdef\SetFigFont#1#2#3#4#5{% \reset@font\fontsize{#1}{#2pt}% 
\fontfamily{#3}\fontseries{#4}\fontshape{#5}% \selectfont}% 
\fi\endgroup% \begin{picture}(8062,10221)(583,-9679) \end{picture}%


Thanks again, now I know what I have to do (the "Size and Rotation" 
pane!!!).


Wolfgang



Re: how to scale a xfig figure in lyx?

2018-04-19 Thread Jürgen Spitzmüller
2018-04-19 17:34 GMT+02:00 Wolfgang Engelmann :

> Here is a MWE. How can I scale it down in the pdf export?
>

Like this. Have a look at the External Material dialog, third pane ("Size
and Rotation"), where I entered the size as "80 Textwidth %".

Why you insert the figure a second time as a PDF is beyond me.

Jürgen


> Wolfgang
>


xfig.lyx
Description: application/lyx


Re: how to scale a xfig figure in lyx?

2018-04-19 Thread Wolfgang Engelmann



Am 19.04.2018 um 15:51 schrieb Jürgen Spitzmüller:
2018-04-19 14:58 GMT+02:00 Wolfgang Engelmann 
mailto:engelm...@uni-tuebingen.de>>:


Thanks, Jürgen,
I think one mistake I made was, not to export the xfig figure as
combined PDF/LaTeX (both parts), which I now did. In the
Lyx:Graphics window I clicked Scale graphics (%) and changed the
output size from 50 over various smaller sizes down to 1 (%).
However, the figure pdf output does not change and is far to large.
This is the output I see on the terminal:

figure \ref{fig:recording of petal movement},

figure \ref{fig:recording of movement of single flowers}).

\begin{figure}

\begin{centering}


\input{Schrempf-Fig02.pdftex_t}\includegraphics[clip,scale=0.01]{Schrempf-Fig02}

\par\end{centering}

\caption[Recording of petal movement]{\label{fig:recording of
petal movement}Recording of petal movement

using a cuvette, schematic (after \citet{Engelmann1973}). Details

in text.}

\end{figure}

May be I did not quite grasp what you ment.


You don't need to export the xfig figure to PDF. Just use the external 
template (Insert > File > External Material). This should work. If it 
doesn't, please send a MWE.


Jürgen

Wolfgang



Here is a MWE. How can I scale it down in the pdf export?
Wolfgang


xfig.lyx
Description: application/lyx


Re: how to scale a xfig figure in lyx?

2018-04-19 Thread Jürgen Spitzmüller
2018-04-19 14:58 GMT+02:00 Wolfgang Engelmann :

> Thanks, Jürgen,
> I think one mistake I made was, not to export the xfig figure as combined
> PDF/LaTeX (both parts), which I now did. In the Lyx:Graphics window I
> clicked Scale graphics (%) and changed the output size from 50 over various
> smaller sizes down to 1 (%). However, the figure pdf output does not change
> and is far to large.
> This is the output I see on the terminal:
>
> figure \ref{fig:recording of petal movement},
>
> figure \ref{fig:recording of movement of single flowers}).
>
> \begin{figure}
>
> \begin{centering}
>
> \input{Schrempf-Fig02.pdftex_t}\includegraphics[clip,scale=
> 0.01]{Schrempf-Fig02}
>
> \par\end{centering}
>
> \caption[Recording of petal movement]{\label{fig:recording of petal
> movement}Recording of petal movement
>
> using a cuvette, schematic (after \citet{Engelmann1973}). Details
>
> in text.}
>
> \end{figure}
>
> May be I did not quite grasp what you ment.
>

You don't need to export the xfig figure to PDF. Just use the external
template (Insert > File > External Material). This should work. If it
doesn't, please send a MWE.

Jürgen


> Wolfgang
>


Re: how to scale a xfig figure in lyx?

2018-04-19 Thread Wolfgang Engelmann


Am 19.04.2018 um 14:58 schrieb Wolfgang Engelmann:



Am 19.04.2018 um 10:04 schrieb Jürgen Spitzmüller:
2018-04-19 8:56 GMT+02:00 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).


Having said that, using the external material dialog size options 
should also work (and do so for me).


Jürgen


Thanks, Jürgen,
I think one mistake I made was, not to export the xfig figure as 
combined PDF/LaTeX (both parts), which I now did. In the Lyx:Graphics 
window I clicked Scale graphics (%) and changed the output size from 
50 over various smaller sizes down to 1 (%). However, the figure pdf 
output does not change and is far to large.

This is the output I see on the terminal:

figure \ref{fig:recording of petal movement},

figure \ref{fig:recording of movement of single flowers}).

\begin{figure}

\begin{centering}

\input{Schrempf-Fig02.pdftex_t}\includegraphics[clip,scale=0.01]{Schrempf-Fig02}

\par\end{centering}

\caption[Recording of petal movement]{\label{fig:recording of petal 
movement}Recording of petal movement


using a cuvette, schematic (after \citet{Engelmann1973}). Details

in text.}

\end{figure}

May be I did not quite grasp what you ment.

Wolfgang


p.s.
I also noticed something very strange: There are more fig files in my 
document, but the pdf output of all of them is the first figure, which 
is much to large.

Wolfgang
Wolfgang


Re: how to scale a xfig figure in lyx?

2018-04-19 Thread Wolfgang Engelmann


Am 19.04.2018 um 10:04 schrieb Jürgen Spitzmüller:
2018-04-19 8:56 GMT+02:00 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).


Having said that, using the external material dialog size options 
should also work (and do so for me).


Jürgen


Thanks, Jürgen,
I think one mistake I made was, not to export the xfig figure as 
combined PDF/LaTeX (both parts), which I now did. In the Lyx:Graphics 
window I clicked Scale graphics (%) and changed the output size from 50 
over various smaller sizes down to 1 (%). However, the figure pdf output 
does not change and is far to large.

This is the output I see on the terminal:

figure \ref{fig:recording of petal movement},

figure \ref{fig:recording of movement of single flowers}).

\begin{figure}

\begin{centering}

\input{Schrempf-Fig02.pdftex_t}\includegraphics[clip,scale=0.01]{Schrempf-Fig02}

\par\end{centering}

\caption[Recording of petal movement]{\label{fig:recording of petal 
movement}Recording of petal movement


using a cuvette, schematic (after \citet{Engelmann1973}). Details

in text.}

\end{figure}

May be I did not quite grasp what you ment.

Wolfgang



Re: how to scale a xfig figure in lyx?

2018-04-19 Thread Jürgen Spitzmüller
2018-04-19 8:56 GMT+02:00 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).
>

Having said that, using the external material dialog size options should
also work (and do so for me).

Jürgen


Re: lambda > solved, but font question

2018-04-19 Thread Guenter Milde
On 2018-04-18, Wolfgang Engelmann wrote:
> Am 18.04.2018 um 19:11 schrieb Guenter Milde:
>> On 2018-04-16, Wolfgang Engelmann wrote:
>>> 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)

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

> 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

Yes, the name was changed.

> it showed

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

Now, if you change in the code preview the "viewport" (second drop-down list
on the left) from [Current Paragraph] to [Complete Source] or [Preamble
only], you will be able to see the LyX-written LaTeX preamble.

With Document>Settings>Fonts as

Roman:  Palatino
SansDefault
TT  Default
Math:   Automatic

I get the preamble:

\documentclass[english]{article}
\usepackage{mathpazo}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}

i.e. there is no need for

> \usepackage{mathpazo}

in the custom LaTeX preamble (Document>Settings>LaTeX Preamble).

>> You can also try with setting Fonts>Mathematics: Times Roman New TX
> I tried this, but \lambda is not shown


Now found the difference: You put \lambda in \mathrm.

Unfortunately, support for upright Greek letters in mathematics is
limited in traditional TeX. Standard TeX and most mathematical packages
use either italic Greek characters or a text font without Greek letters
with \mathrm. This is why you get an italic lambda with LatinModern or
Times but a wrong (text) character with Palatino.

For background and details, see
http://mirrors.ctan.org/macros/latex/contrib/isomath/isomath.html#oml-font-encoding

Do you really want an *upright* Lambda? This would indicate a
constant value or a physical unit (see, e.g.
http://old.iupac.org/standing/idcns/italic-roman_dec99.pdf).

If you put only the "max" and the unit into \mathrm, everything should be
fine (except for the missing space between value and unit).

Otherwise, see
http://mirrors.ctan.org/macros/latex/contrib/isomath/isomath.html#how-to-get-upright-small-greek-letters
for options to get upright Greek in 8-bit LaTeX maths or use non-TeX fonts
with Xe/LuaTeX.

regards,

Günter