Re: centering all ert environments in document

2024-05-04 Thread Richard Kimberly Heck

On 5/4/24 18:12, matan guedj wrote:

hello,
I have multiple ert environments in a lyx document I also put each 
inside a preview environment so that the rendered output is aligned to 
the left, I want to have it such that all the ert (inside preview) are 
aligned to the center, I imagine it's doable with some commands in the 
preamble but I couldn't find out how.


The preview inset is a LyX-only thing, so to speak. It does not 
correspond to anything in LaTeX. It just causes whatever's in it to be 
displayed in LyX as a 'preview'. So there's no way to affect the LaTeX 
output of these, since there isn't any.


To do something like this, you would probably do best to define a custom 
inset that just wraps whatever's inside it in \begin{center} and 
\end{center}. Or, if these previews are in their own paragraph, then 
define a paragraph style to do the same thing.


Riki


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


centering all ert environments in document

2024-05-04 Thread matan guedj
hello,
I have multiple ert environments in a lyx document I also put each inside a
preview environment so that the rendered output is aligned to the left, I
want to have it such that all the ert (inside preview) are aligned to the
center, I imagine it's doable with some commands in the preamble but I
couldn't find out how.
thanks in advance for the help.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users