Bug with 2.3.8->2.4

Herbert Voss Herbert.Voss at fu-berlin.de
Fri Jan 27 19:42:33 UTC 2023


In a document of 2.3 I see:

....
|\begin_inset Graphics
     filename 3-42.jpg
     lyxscale 15
     width 15text%
     clip
     rotateOrigin center
     height 20.0theight%

\end_inset
|....


Reading the file with 2.4 on macOS I see:

....
\begin_inset Graphics
     filename /private/tmp/3-42.jpg
     lyxscale 15
     width 15text%
     clip
     rotateOrigin center
     special height=20.0theight%

\end_inset
...


which is converted to LaTeX as

....
\centering{}\includegraphics[clip,width=0.15\textwidth,height=20.0theight%]{/private/tmp/3-42}\\
\includegraphics[clip,width=0.15\textwidth,height=20.0theight%]{/private/tmp/3-42}\\
\includegraphics[clip,width=0.15\textwidth,height=20.0theight%]{/private/tmp/3-42}\\
...


which is wrong!

Herbert


Version 2.4.0-beta2 (11. Dezember 2022)

Qt-Version (Laufzeit): 6.4.1 (Plattform: cocoa)

Qt-Version (bei Erstellung): 6.4.1

OS-Version (bei Erstellung): macOS 13.1

Python-Aufruf: python3 -tt
-------------- next part --------------
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties false
\origin unavailable
\textclass scrbook
\begin_preamble
% Definitionen um Legenden neben Tabellen und Abbildungen zu setzen
\usepackage{sidecap}

\newcommand{\FigBesBeg}[1][1.0]{%
 \let\MyFigure\figure
 \let\MyEndfigure\endfigure
 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}

\newcommand{\FigBesEnd}{%
 \let\figure\MyFigure
 \let\endfigure\MyEndfigure}
\end_preamble
\use_default_options true
\begin_modules
logicalmkup
\end_modules
\maintain_unincluded_children true
\language british
\language_package default
\inputencoding utf8
\fontencoding global
\font_roman "libertine" "default"
\font_sans "helvet" "default"
\font_typewriter "cmtt" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts true
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype true
\use_dash_ligatures true
\graphics default
\default_output_format pdf5
\output_sync 0
\bibtex_command biber
\index_command default
\paperfontsize default
\spacing single
\use_hyperref true
\pdf_title "Models for biological Rhythms"
\pdf_author "Karl-Heinz Witte, Wolfgang Engelmann and Anders Johnsson"
\pdf_subject "Chronobiology"
\pdf_keywords "Examples Rhythms Models Simulations Significance"
\pdf_bookmarks true
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks true
\pdf_pdfborder true
\pdf_colorlinks true
\pdf_backref false
\pdf_pdfusetitle true
\pdf_quoted_options "linkcolor=red, citecolor=blue, urlcolor=green, filecolor=blue"
\papersize a5paper
\use_geometry false
\use_package amsmath 0
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine biblatex
\cite_engine_type authoryear
\biblio_style plainnat
\biblio_options uniquename=false
\biblatex_bibstyle biblatex-spbasic
\biblatex_citestyle biblatex-spbasic
\use_bibtopic false
\use_indices true
\paperorientation portrait
\suppress_date true
\justification true
\use_refstyle 0
\use_minted 0
\index Subject index
\shortcut idx
\color #008000
\end_index
\index Name index
\shortcut nam
\color #00ffff
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 1
\papercolumns 1
\papersides 2
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Standard
The 
\emph on
Kalanchoe
\emph default
 petal movement rhythm as shown in figure 
\begin_inset CommandInset ref
LatexCommand ref
reference "fig:KalanchoePetalCells"

\end_inset

 and the motor cells shrinking and swelling leads to the closing and opening of the flowers 
\series bold

\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
FigBesBeg
\end_layout

\end_inset


\series default

\begin_inset Float figure
placement H
wide false
sideways false
status open

\begin_layout Plain Layout
\align center
\begin_inset Graphics
	filename 3-42.jpg
	lyxscale 15
	width 15text%
	clip
	rotateOrigin center
	height 20.0theight%

\end_inset


\begin_inset Newline newline
\end_inset


\begin_inset Graphics
	filename 3-42.jpg
	lyxscale 15
	width 15text%
	clip
	rotateOrigin center
	height 20.0theight%

\end_inset


\begin_inset Newline newline
\end_inset


\begin_inset Graphics
	filename 3-42.jpg
	lyxscale 15
	width 15text%
	clip
	rotateOrigin center
	height 20.0theight%

\end_inset


\begin_inset Newline newline
\end_inset


\begin_inset Caption Standard

\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "fig:KalanchoePetalCells"

\end_inset


\begin_inset Argument 1
status open

\begin_layout Plain Layout

\emph on
Kalanchoe
\emph default
 petal,
 upper and lower epidermis
\end_layout

\end_inset

Section through a 
\emph on
Kalanchoe
\emph default
 petal (center) with upper epidermis (plaster epithelium,
 red,
 seen from above at the left) and lower epidermis (plaster epithelium,
 right).
 Between the upper and lower epidermis are about 15 layers of motor cells,
 which extent,
 if the turgor increases.
 The upper epidermis cells are also able to extend.
 The cells of the lower epidermis do not extent,
 but this epidermis can be bend up and down,
 depending on the turgor of the motor cells (see figure x).
\end_layout

\end_inset


\end_layout

\end_inset


\series bold

\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
FigBesEnd
\end_layout

\end_inset


\end_layout

\end_body
\end_document
-------------- next part --------------
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 613
\begin_document
\begin_header
\save_transient_properties false
\origin unavailable
\textclass scrbook
\begin_preamble
% Definitionen um Legenden neben Tabellen und Abbildungen zu setzen
\usepackage{sidecap}

\newcommand{\FigBesBeg}[1][1.0]{%
 \let\MyFigure\figure
 \let\MyEndfigure\endfigure
 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}

\newcommand{\FigBesEnd}{%
 \let\figure\MyFigure
 \let\endfigure\MyEndfigure}
\end_preamble
\use_default_options true
\begin_modules
logicalmkup
\end_modules
\maintain_unincluded_children strict
\language british
\language_package default
\inputencoding utf8
\fontencoding auto
\font_roman "libertine" "default"
\font_sans "helvet" "default"
\font_typewriter "cmtt" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts true
\font_sc false
\font_roman_osf false
\font_sans_osf false
\font_typewriter_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype true
\use_dash_ligatures true
\graphics default
\default_output_format pdf5
\output_sync 0
\bibtex_command biber
\index_command default
\paperfontsize default
\spacing single
\use_hyperref true
\pdf_title "Models for biological Rhythms"
\pdf_author "Karl-Heinz Witte, Wolfgang Engelmann and Anders Johnsson"
\pdf_subject "Chronobiology"
\pdf_keywords "Examples Rhythms Models Simulations Significance"
\pdf_bookmarks true
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks true
\pdf_pdfborder true
\pdf_colorlinks true
\pdf_backref false
\pdf_pdfusetitle true
\pdf_quoted_options "linkcolor=red, citecolor=blue, urlcolor=green, filecolor=blue"
\papersize a5
\use_geometry false
\use_package amsmath 0
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine biblatex
\cite_engine_type authoryear
\biblio_style plainnat
\biblio_options uniquename=false
\biblatex_bibstyle biblatex-spbasic
\biblatex_citestyle biblatex-spbasic
\use_bibtopic false
\use_indices true
\paperorientation portrait
\suppress_date true
\justification true
\use_refstyle 0
\use_minted 0
\use_lineno 0
\index Subject index
\shortcut idx
\color #008000
\end_index
\index Name index
\shortcut nam
\color #00ffff
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 1
\papercolumns 1
\papersides 2
\paperpagestyle default
\tablestyle default
\tracking_changes false
\output_changes false
\change_bars false
\postpone_fragile_content false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\docbook_table_output 0
\docbook_mathml_prefix 1
\end_header

\begin_body

\begin_layout Standard
The 
\emph on
Kalanchoe
\emph default
 petal movement rhythm as shown in figure 
\begin_inset CommandInset ref
LatexCommand ref
reference "fig:KalanchoePetalCells"
nolink "false"

\end_inset

 and the motor cells shrinking and swelling leads to the closing and opening of the flowers 
\series bold

\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
FigBesBeg
\end_layout

\end_inset


\series default

\begin_inset Float figure
placement H
alignment document
wide false
sideways false
status open

\begin_layout Plain Layout
\align center
\begin_inset Graphics
	filename /private/tmp/3-42.jpg
	lyxscale 15
	width 15text%
	clip
	rotateOrigin center
	special height=20.0theight%

\end_inset


\begin_inset Newline newline
\end_inset


\begin_inset Graphics
	filename /private/tmp/3-42.jpg
	lyxscale 15
	width 15text%
	clip
	rotateOrigin center
	special height=20.0theight%

\end_inset


\begin_inset Newline newline
\end_inset


\begin_inset Graphics
	filename /private/tmp/3-42.jpg
	lyxscale 15
	width 15text%
	clip
	rotateOrigin center
	special height=20.0theight%

\end_inset


\begin_inset Newline newline
\end_inset


\begin_inset Caption Standard

\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "fig:KalanchoePetalCells"

\end_inset


\begin_inset Argument 1
status open

\begin_layout Plain Layout

\emph on
Kalanchoe
\emph default
 petal,
 upper and lower epidermis
\end_layout

\end_inset

Section through a 
\emph on
Kalanchoe
\emph default
 petal (center) with upper epidermis (plaster epithelium,
 red,
 seen from above at the left) and lower epidermis (plaster epithelium,
 right).
 Between the upper and lower epidermis are about 15 layers of motor cells,
 which extent,
 if the turgor increases.
 The upper epidermis cells are also able to extend.
 The cells of the lower epidermis do not extent,
 but this epidermis can be bend up and down,
 depending on the turgor of the motor cells (see figure x).
\end_layout

\end_inset


\end_layout

\end_inset


\series bold

\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
FigBesEnd
\end_layout

\end_inset


\end_layout

\end_body
\end_document
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 24.tex
Type: application/x-tex
Size: 2781 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20230127/8648b1f8/attachment.tex>


More information about the lyx-devel mailing list