Help with a table

13 views
Skip to first unread message

Ian Hodgson

unread,
Dec 19, 2022, 7:48:28 AM12/19/22
to XLingPaper
Hello folks. I'm having trouble with a table. This is the first time I've ever done it. Here is a part of it in the XML Mind editor:

table _in_XML-mind.png
There are a few column spans, but no row spans, so I have set the total width of the spanned columns to 8cm each. For the normal columns I have set the width to 2.5cm (containing langData) and 5.5cm (containing glosses), so that the spanned columns have the same width as the two normal columns under them.

However, when I publish to pdf it looks like at least the left most column is really wide, causing the whole table to disappear off the right margin. 

table_in_pdf.png

Also, maybe unrelated (?), is that the only part of the table that shows in the pdf is the bottom 9 rows. Additionally, between the bottom two rows on the pdf output there should be a th row, which is completely missing.

Before I spend more time on this than I've got by experimenting some more with the attributes, can anyone give me some helpful pointers? Thanks.

Ian

XLingPaper

unread,
Dec 19, 2022, 11:07:34 AM12/19/22
to xling...@googlegroups.com, Ian Hodgson
Hi, Ian.

Please zip up your document per section 11.45 "Create a Zip File of My Document" of the user documentation and email me the zip file.  I'll see what can be done and will let you know.

--Andy
--
You received this message because you are subscribed to the Google Groups "XLingPaper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xlingpaper+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xlingpaper/6aa2a706-728e-4aba-ab8e-000f59cf4145n%40googlegroups.com.

XLingPaper

unread,
Dec 19, 2022, 2:01:17 PM12/19/22
to xling...@googlegroups.com
The main issue with this table was the use of th elements to get bold cells when those cells were not actually part of the table heading.  In such cases, one needs to convert the th elements to td elements and then use object elements to make the content be bold.

--Andy

Ian Hodgson

unread,
Dec 22, 2022, 9:28:10 AM12/22/22
to XLingPaper
Another question about tables. I have a table with 80+ rows of data, that I want to put counter elements in for. Do I have to do that manually 80+times?

Ian

Ian Hodgson

unread,
Dec 22, 2022, 10:01:48 AM12/22/22
to XLingPaper
Actually, I can't understand the instructions properly for putting in table row counters. I managed it in one cell, but can't work out how I did it. And in the pdf, the number was in bold and I could not find a way to edit the attributes of the counter element to change this. Also, the number appeared inside a column as opposed to to the left of a column like the one in user documentation 6.1.2., which I like.

Any pointers? Thank you so much.

Ian

Ian Hodgson

unread,
Dec 22, 2022, 10:17:38 AM12/22/22
to XLingPaper
So I've found a way but it's horrible. I click to the left of a langData element in a cell then choose insert before and I have counter to choose. But this puts the counter inside the cell, so when I align right to get the numbers to line up nicely, the whole cell contents are aligned right (expectedly, but this isn't what I want). How do I put the counters in properly?

Selection_012.png



And here is the pdf output:

Selection_013.png

XLingPaper

unread,
Dec 22, 2022, 12:02:41 PM12/22/22
to xling...@googlegroups.com, Ian Hodgson
Hi, Ian.

To get something like what is in section 6.1.2 of the user documentation, you need to put the counter element in its own column.

The easiest way I know of to create a table with dozens of rows containing the same kind of things is to do this:
  1. Insert the table/tablenumbered element where it needs to go.
  2. Assuming the table has at least one row that will be the table heading, add enough columns for the heading.  You click in the appropriate cell of the heading and use XLingPaper menu item / Table Column / Insert Before (or Insert After).
  3. Enter the column heading content in those columns.
  4. In the last row of the (as of yet too small) table, enter things like text, langData, gloss, object, and/or counter elements that will need to be in each column.  For example, in your table, you need four columns.  It looks like the first column is plain text so you'd leave that cell with the text "rectangle box" .  Alternatively, you could create a type element that you will use for all instances of semantic features and then in that cell insert an object element whose type attribute is set to that semantic feature.  In either case, do not key any data in that cell yet.  The second cell would contain a counter element.  Be sure to click on the td element in the node path bar and set the align element of the cell to 'right.'  The third cell would contain a langData element set to the correct language element (most likely your default lVernacular one).  You can delete the "text" box if you want. The fourth cell would have a gloss element set to its correct language element (most likely your default lGloss one).  Again, you can delete the text box here.  It might look something like this (I did not delete the text cell in this example):
  5. Decide how many rows and columns the table will need (at least roughly).
  6. Click somewhere in a table cell.  Use XLingPaper menu item / Increase Table Size.  Set the number of Non-header Rows to what you need or think you'll need.  Maybe like this:
  7. Click OK.

This command will then repeat whatever is in the last row until the table has the specified number of rows.  You can now key the data as needed.

You could also key the needed items in the second row before using the Increase Table Size command - the command only repeats the last row.

One other thing that can help is to learn how to make a temporary macro using the XMLmind XML Editor's macro ability.  Here's how:
  1. Use Tools menu item / Record Macro / Start Recording (you can use Esc-m also for this).
  2. Use the mouse and/or the keyboard to do what needs to be done.
  3. Use Tools menu item / Record Macro / Stop Recording (you can use Esc-m also for this; yes, Esc-m both starts and stops the recording of a macro).

To replay a macro either use Tools menu item / Record Macro / Replay Macro or type Esc-p.  I think of this as Esc-m (to start or stop a *m*acro) and Esc-p (to *p*lay a macro).  By the way, when we say use "Esc-m" we mean press the Esc key and let go and then press the m key.

Hopefully using a macro will help make fixing your table easier, among other repeatable work.

--Andy

Hugh Paterson III

unread,
Dec 22, 2022, 7:07:21 PM12/22/22
to xling...@googlegroups.com
You could always use the search and replace feature in the code
View rather than the editor view. 

--
All the best,
-Hugh

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages