28

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?

landroni
  • 1,333
Jiew Meng
  • 2,479

1 Answers1

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).

AndiDog
  • 133
  • 2
    Once the width has been defined, the useful shortcut for a linebreak is ctrl+shift+enter. – landroni Jan 22 '16 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 '16 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. – Olivier Hubert Oct 06 '17 at 13:28
  • are you sure that you have write access to the file? –  Oct 06 '17 at 19:26
  • 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. – Olivier Hubert Oct 09 '17 at 06: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 07 '18 at 03:04