I know LyX is very strict on not allowing empty lines but I think there should be one exception: a line that contains only a display formula.

The attached document demonstrates the situation: LyX shows no space difference between the text and the display formula. However, the output shows such difference. It would be good if LyX makes one aware that one has started a new paragraph before a display formula by showing that extra empty line created.

Also, the numbering/bullets get moved in front of the display formula in LyX. I guess this problem would be solved as well if the empty line would be rendered in LyX.

Maybe it would be even good if such an empty line would be highlighted with some symbol at the beginning because most of the time the added break will not be on purpose. And it can even lead to the infamous LaTeX error in LyX when, for example, a description contains only a display formula.
--
Daniel
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass article
\begin_preamble
\usepackage{multicol}
\end_preamble
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\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_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
\paperfontsize default
\spacing single
\use_hyperref true
\pdf_bookmarks true
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder false
\pdf_colorlinks false
\pdf_backref false
\pdf_pdfusetitle true
\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 false
\use_refstyle 1
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 1
\math_indentation default
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\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
No break after...
 (same spacing in LyX and LaTeX output)
\begin_inset Formula 
\begin{align*}
x
\end{align*}

\end_inset


\end_layout

\begin_layout Standard
Break after...
 (different spacing in LyX and LaTeX output)
\end_layout

\begin_layout Standard
\begin_inset Formula 
\begin{align*}
x
\end{align*}

\end_inset


\end_layout

\begin_layout Standard
With text...
 (same spacing in LyX and LaTeX output)
\end_layout

\begin_layout Enumerate
Text
\begin_inset Formula 
\begin{align*}
x
\end{align*}

\end_inset


\end_layout

\begin_layout Standard
(Unimportant intermezzo for getting an indented paragraph...)
\end_layout

\begin_layout Standard
Without text...
 (different spacing in LyX and LaTeX output)
\end_layout

\begin_layout Enumerate
\begin_inset Formula 
\begin{align*}
x
\end{align*}

\end_inset


\end_layout

\end_body
\end_document
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to