Computational Economics

computational tools for economists

Pasting data into .lyx / Text wrapping in table in LyX

leave a comment »

Pasting data into .lyx

1. open your xls file

2. Select the requisite number of columns and rows

3. Come back to your lyx document

4. Insert a table which has at least the selected number of rows and columns

5. Go to the cell on your lyx table where you want the top left corner of the
section to be placed.

6. select either Edit -> Paste Special -> Plain Text or Edit -> Paste Special -> Plain Text, Join Lines

Text wrapping in table in LyX

LaTeX’s algorithms for formatting tables have a few shortcomings. One is that it will not automatically wrap text in cells, even if it overruns the width of the page. For columns that you know will contain a certain amount of text, then it is recommended that you use the p attribute and specify the desired width of the column (although it may take some trial-and-error to get the result you want). Use the m attribute to have the lines aligned toward the middle of the box and the b attribute to align along the bottom of the box.

LyX: right click in a cell -> more… -> setting… -> Table Settings (column settings, row settings, etc.)


Written by Jingjing Wang

10/29/2011 at 12:33 am

Posted in LyX

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: