Starting new environment in the middle of a line

Udicoudco udifoglle at gmail.com
Thu Nov 10 10:36:23 UTC 2022


On Thu, Nov 10, 2022 at 9:22 AM Udicoudco <udifoglle at gmail.com> wrote:

>
>
> On Wed, Nov 9, 2022 at 7:16 PM Scott Kostyshak <scott.kostyshak at gmail.com>
> wrote:
>
>> Sometimes (but not too often), I want to start an environment in the
>> middle of a line.
>>
>> In LaTeX, it seems to work fine, although I don't know if this is
>> considered bad practice. But in LyX, we can only start an environment at
>> the beginning of a paragraph I believe.
>>
>
> To my knowledge lyx starts  a new line with nested environments in the
> latex code, but that should not start a new paragraph, unless the latex
> environment   is forcing you to start a new paragraph with \par or a
> similar command.
>
>
>> Attached is an example in LyX that uses ERT. I haven't actually
>> implemented this environment in LyX yet (I'm still planning to). Sometimes
>> I can use the \uncover command, but other times I prefer an environment.
>>
>> I also attach an example .tex file with an environment that is
>> implemented in LyX (block). I attach the example as a .tex file
>> (example-block.tex), and the imported .lyx file
>> (example-block-imported.23.lyx). LyX makes a paragraph break and then nests
>> the environment. This causes a linebreak that I don't want in the
>> corresponding PDF.
>>
>
> I think that the differences in the output PDF are coming from using the
> block environment with the non ERT version and the uncover environment in
> the file with the ERT (note that also the .tex files produces the same pdf
> as example-block-imported.23.lyx)
>
> To check my suspicion I've tried to see if using uncover as a style layout
> in lyx will cause this problem. To do so I copied the block layout from the
> beamer.layout file to the local layout and changed the style name, latex
> name and label name to uncover. see the attached file.
>

Sorry, I now realize that you probably meant that lyx starts a new
paragraph in the GUI when starting an environment and not in the latex code
nor the pdf output.

>
>
-- 
>> lyx-devel mailing list
>> lyx-devel at lists.lyx.org
>> http://lists.lyx.org/mailman/listinfo/lyx-devel
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20221110/09d6eb37/attachment-0001.html>


More information about the lyx-devel mailing list