25

I am trying to add linebreaks in my table cell but found that LyX doesn't allow me to. How can I insert a newline inside a table cell?

1

1 Answer 1

25

go into the menu of the tabular (right mouse click when cursor is inside the tabular) and then choose a width for the column. Then you can have linebreaks inside this cell with \newline or with an empty line for a new paragraph.

The width setting can be found on right-click > More > Settings > Column Settings > Width (LyX 2.1.4).

6
  • 2
    Once the width has been defined, the useful shortcut for a linebreak is ctrl+shift+enter.
    – landroni
    Jan 22, 2016 at 16:06
  • @landroni in latest versions of Lyx it seems the shortcut is no longer necessary, a simple enter is enough to do a linebreak.
    – gaborous
    May 31, 2016 at 20:54
  • 1
    I have the same problem as OP, the width thing works well, but I am unable to use either ctrl+enter or enter if I want to do it manually. It shows 'command disabled' at the bottom of the LyX editor. I have LyX 2.2.3 on Windows 7. Thank you.
    – user89073
    Oct 6, 2017 at 13:28
  • 1
    @Herbert I am not sure I understand your comment. I am editing the LyX file and can save it. I, therefore, think I have write access to the file. I was wondering if it was possible to 're-enable' this command in LyX, so I clicked on 'reconfigure' in the menu. I restarted LyX but still did not work.
    – user89073
    Oct 9, 2017 at 6:13
  • 1
    @user89073 I thought had the same problem as you (LyX 2.2.3 on Ubuntu). But indeed when you fix the width you can use linebreaks in the usual way.
    – lcv
    Feb 7, 2018 at 3:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.