Regression on master: zh_CN tutorial.lyx compiles with error

Enrico Forestieri forenr at lyx.org
Wed Aug 12 14:54:55 UTC 2020


On Wed, Aug 12, 2020 at 01:45:16PM +0200, Jürgen Spitzmüller wrote:
> Am Mittwoch, den 12.08.2020, 13:41 +0200 schrieb Enrico Forestieri:
> > I do not understand what you mean. You should simply revert 1af67974
> > and the apply that patch.
> 
> I did that, and it re-introduced what I fixed. I will go ahead and fix
> the error Kornel spotted, then you can do your changes on top of that.

Done at f5672a484. I didn't change the behavior. In particular, the
font switch is not closed after the inset, as was done in the patch
I posted earlier.

I mean that making everything bold in the attached document produces
the following latex code:

\textbf{a}{\bfseries{}%
\begin{tabular}{|c|}
\hline 
b\tabularnewline
\hline 
\end{tabular}c}

whereas the patch I posted earlier was producing

\textbf{a}{\bfseries{}%
\begin{tabular}{|c|}
\hline 
b\tabularnewline
\hline 
\end{tabular}}\textbf{c}

-- 
Enrico
-------------- next part --------------
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 598
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass article
\use_default_options true
\maintain_unincluded_children no
\language english
\language_package default
\inputencoding utf8
\fontencoding auto
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\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 false
\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\float_placement class
\float_alignment class
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_package amsmath 1
\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 basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 1
\use_minted 0
\use_lineno 0
\index Index
\shortcut idx
\color #008000
\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 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\tablestyle default
\tracking_changes false
\output_changes false
\change_bars false
\postpone_fragile_content true
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\docbook_table_output 0
\end_header

\begin_body

\begin_layout Standard
a
\begin_inset Tabular
<lyxtabular version="3" rows="1" columns="1">
<features tabularvalignment="middle">
<column alignment="center" valignment="top">
<row>
<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
b
\end_layout

\end_inset
</cell>
</row>
</lyxtabular>

\end_inset

c
\end_layout

\end_body
\end_document


More information about the lyx-devel mailing list