LyXLyx Macros with text and linebreak

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
hnn
Posts: 2
Joined: Sun Dec 01, 2019 6:58 pm

Lyx Macros with text and linebreak

Post by hnn »

Hello,

I use the macro feature of lxy to define some special words in my thesis. So this works quite good. I was also able to get a line break inside the macros with "\allowbreak". But unluckily when a line break happens inside the macro than the space is still used and not all words are in one line at the right side of the text (see line 2 in pdf).

Attached a pdf, and an example with Lyx 2.2.3

Any ideas how to solve this?

Thanks, Kind regards, Markus
line_break_test.lyx
(5.12 KiB) Downloaded 184 times
line_break_test.pdf
(23.52 KiB) Downloaded 222 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

hnn
Posts: 2
Joined: Sun Dec 01, 2019 6:58 pm

Lyx Macros with text and linebreak

Post by hnn »

solved: changing the order of space und allowbreak did it.
Post Reply