Am 29.11.2015 um 22:26 schrieb Jean-Marc Lasgouttes:
Why would the text in the minipage need different vertical spacing than
the main text? They are of same nature.
Well, the user is free to decide. if he likes it, why not? Note that i
am arguing for a method to set the alignment to ALL box types, also to
parboxes. Since we already provide this feature for makebox I don't see
a reason why we don't allow this for the other box types.
You basically argue that this vertical spacing is never wanted in LaTeX.
This is incorrect. If you use an environment to center things you will
get the space, but in other TeX editors you can decide if you use
\begin{center} or \centering. LyX doesn't give you this choice.
(Attached is an example)
- The box dialog provides an alignment for the whole box content. For
this setting \raggedleft etc. should be used for the WHOLE content of
the box, no matter if there are several paragraphs or not.
- The paragraph alignment is independent of this!!! (see the attached
example)
This separation between box alignment and paragraph alignment does not
exist in LaTeX. This is a creation that you propose.
Yes, because LyX doesn't allow you to choose between e.g. \begin{center}
or \centering.
That is exactly how I once implemented it. If adding BOX_CODE to
noTrivlistCentering does this, then this should be done.
Adding BOX_CODE to noTrivListCentering would make all paragraph
alignment changes use \raggedleft and friends.
Good.
I'd be interested to see what your real world use cases look like. I
tend to use hfills a lot instead of weird alignments. But probably we
don't use boxes in the same settings.
That is the important point. It is not important what we developers
prefer but to give the users the freedom to do what they like if LaTeX
allows this.
regards Uwe
#LyX 2.1 created this file. For more info see http://www.lyx.org/
\lyxformat 474
\begin_document
\begin_header
\textclass article
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_math auto
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\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
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\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
hello hello hello hello hello hello hello hello hello hello hello hello
hello hello hello hello hello hello hello hello hello hello hello hello
\end_layout
\begin_layout Standard
\align center
hello
\end_layout
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Plain Layout
hello hello hello hello hello hello hello hello hello hello hello hello
hello hello hello hello hello hello hello hello hello hello hello hello
\end_layout
\begin_layout Plain Layout
\end_layout
\begin_layout Plain Layout
\backslash
centering hello
\end_layout
\end_inset
\end_layout
\end_body
\end_document