Odd formatting with charts/trees

5 views
Skip to first unread message

John Brownie

unread,
Jul 25, 2023, 5:34:41 AM7/25/23
to XLingPaper
I have a paper that has a fairly ordinary structure, but I get weird results with one section.

As you can see in the screen shots (if they go through…), the relevant section has the format
<p>
<tree><img>
<p>
<tree><img>
<p>
<chart><img>
<s1>
<p>
<ul>

The PDF produced has everything shifting further to the right as it goes, and doesn’t reset until the page break.

Am I doing something wrong, or is this a bug? I am doing this on a Mac, if that makes a difference. I tried it on a Windows machine, which worked OK, but I didn’t have the style sheet or fonts I have on the Mac.

Any pointers?

John
Screenshot 2023-07-25 at 11.57.14.png
Screenshot 2023-07-25 at 11.57.22.png

John Brownie

unread,
Jul 26, 2023, 4:57:12 AM7/26/23
to XLingPaper
I've done a bit of exploring on my Windows machine. Some of the style sheets make the elements creep across the page, others don't. I haven't been able to discern a pattern, though.

John

Steve Marlett

unread,
Jul 26, 2023, 8:19:32 AM7/26/23
to xling...@googlegroups.com
I haven’t experienced anything like what you describe, so this is intriguing. Does the same thing happen if you put the charts and images are put into a “figure” (which is what I do because that is what a published paper would expect)?

—Steve

-- 
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/83e3fc80-c93a-4f12-aa03-0b605d9eaed8n%40googlegroups.com.

John Brownie

unread,
Jul 26, 2023, 8:33:00 AM7/26/23
to xling...@googlegroups.com
I tried it with the first one. It’s a tree element, so the convert/wrap doesn’t allow figure, but framedElement worked, and that got everything lined up. The second tree I left as is, since it didn’t seem to affect the output.

Thanks for a helpful suggestion!

John

XLingPaper

unread,
Jul 26, 2023, 12:33:55 PM7/26/23
to xling...@googlegroups.com
John, could you please tell us at least one style sheet that causes the problem?  I'd like to try and figure out what the issue is.

Thanks,

--Andy
--

John Brownie

unread,
Jul 27, 2023, 1:59:08 AM7/27/23
to xling...@googlegroups.com
It fails with the IJAL Paper style sheet, the IJAL Paper Submission style sheet, the LSA Journal style sheet, and my own SIL International Paper A4. The Handout style sheet and SIL-UND Work Papers work. The Poster Session A4 style sheet has the opposite problem, shifting things to the left.

A different issue. When I try to associate the SILEWPPaperAsPaper style sheet, it complains that the style sheet is book-oriented, which sounds like an error in the style sheet.

I’ve uploaded the zip file to the Google Drive, and it’s called Austronesian test.

John

XLingPaper

unread,
Jul 27, 2023, 11:23:18 AM7/27/23
to xling...@googlegroups.com
John:

Thank you for the information on style sheets and the test file.  I'll be looking into it.

The SILEWPPaperAsBookStylesheet is indeed a book-oriented style sheet.  If you create a new book document and associate it with this style sheet, you'll see it has this:



In case that image does not come through, the comment says "As of October 2015, SILEWP has frontmatter material paged using lowercase roman numerals and the body using arabic numerals. The body must also start over at page 1. This is like a book, even though these are called papers. This style sheet attempts to match that..."

So while it is called a paper, it formats like a book as far as XLingPaper is concerned.  I tried to imply this with the file name of the style sheet, but I guess it's not clear enough...

--Andy

John Brownie

unread,
Jul 27, 2023, 11:32:42 AM7/27/23
to xling...@googlegroups.com
On 27 Jul 2023 at 18:23:19, XLingPaper <xlingpaper_s...@sil.org> wrote:
The SILEWPPaperAsBookStylesheet is indeed a book-oriented style sheet.

Yes, but I was trying the SILEWPPaperAsPaperStyleSheet, which sounds as though it should be a paper, not a book…

John

XLingPaper

unread,
Jul 27, 2023, 12:06:25 PM7/27/23
to xling...@googlegroups.com
John:

I found the bug and fixed it.  Do you want a new installer now as opposed to waiting until November when the next release comes out?  If so, please let me know and also tell me if you're using a Mac, Windows, or Linux (my guess is Mac, but I don't want to assume).

--Andy

XLingPaper

unread,
Jul 27, 2023, 12:10:26 PM7/27/23
to xling...@googlegroups.com
Ah, thanks.  I missed that.  I'll remove that one.

--Andy


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

John Brownie

unread,
Jul 27, 2023, 1:19:43 PM7/27/23
to xling...@googlegroups.com
Hi Andy,

Thanks! Yes, a new installer for now would be good. I use both Mac and Windows (my desktop is a Mac, my laptop is Windows).

John

You received this message because you are subscribed to a topic in the Google Groups "XLingPaper" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xlingpaper/hxe1dLU-yLk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xlingpaper+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xlingpaper/f7fcafae-4e16-1b2f-adab-5343bb795d6e%40sil.org.

XLingPaper

unread,
Jul 27, 2023, 1:48:20 PM7/27/23
to xling...@googlegroups.com
John (and anyone else interested):

There's a new (unsigned) Windows installer at https://drive.google.com/file/d/18zcPVi6SsBQ9-OruiOw-mrsNXDpB3EpD/view?usp=sharing.

There's a new Mac installer at https://drive.google.com/file/d/1khUcLF2QjzJgYnc2pMtjEAYQEQwf2YCb/view?usp=sharing.

--Andy

XLingPaper

unread,
Jul 27, 2023, 4:12:48 PM7/27/23
to xling...@googlegroups.com
The windows installer there is now signed so it should not be as hard to use on Windows 11. (It's at the same URL.)

--Andy

XLingPaper

unread,
Jul 28, 2023, 11:32:59 AM7/28/23
to xling...@googlegroups.com
Hi, John.

This certainly looks like a bug.  Which version of XLingPaper are you using?  (Use XlingPaper menu item / About XLingPaper.)

Please create a zip file per what is in section 11.45 "Create a Zip File of My Document" in the user documentation and email it to me.  I'll see if it still happens with the current version.  If so, I'll work on fixing it and getting the fix to you.

You can also try changing the tree elements to chart elements:
  1. Click on the tree diagram
  2. Click on 'tree' in the node path bar.
  3. Use Convert to change tree to chart.

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

John Brownie

unread,
Jul 28, 2023, 1:06:32 PM7/28/23
to xling...@googlegroups.com
Um, this was the bug that you fixed in the last couple of days. It’s working fine now with the new version.

John

Andy Black

unread,
Jul 28, 2023, 1:12:00 PM7/28/23
to xling...@googlegroups.com
Right.  My apologies.  I got a notice from the list this morning saying that this message did not go out and chose to let it go out now.  Not the best idea...

I'm glad to hear it working fine now.

--Andy
Reply all
Reply to author
Forward
0 new messages