PDF irregularity
I downloaded a Full PDF from my projects and noticed that tables were messed up...this is a 3 column table - and the first column is printed vertically, later in the document the third colum of a 3 column table suffers this same malady. I have not check every table. Some tables where the data in libretexts is left justified becomes centered in the PDF...makes it much more difficult to read.
Any thoughts or fixes anyone knows?? Pat
|
|
|
|
smmuller@...
For the vertically printed column problem, I checked out the source code, and it looks like your second and third column widths are set to 40% and 25%, but your first column doesn't have a value. I guess for some reason the pdf thinks the first column width should be 0%, and all your text is getting squished.
The easiest way to fix this would be to go in editing mode, and drag the column border over a little. Resizing it should automatically give it a width in the source code.
|
|
|
|
Patrick McClanahan
Yes - I was able to fix the table width in the fashion you mentioned.
However, I am unable to get the text left justified. Any other ideas??
Pat
Patrick McClanahan
Professor of Computer Science
Science and Math 252
San Joaquin Delta College
Stockton, CA
(209) 954-5323
From: main@Libretexts-ConstructionForum.groups.io <main@Libretexts-ConstructionForum.groups.io> on behalf of smmuller via groups.io <smmuller@...>
Sent: Friday, August 7, 2020 4:26 PM To: main@Libretexts-ConstructionForum.groups.io <main@Libretexts-ConstructionForum.groups.io> Subject: Re: [Libretexts-ConstructionForum] PDF irregularity
For the vertically printed column problem, I checked out
the source code, and it looks like your second and third column widths are set to 40% and 25%, but your first column doesn't have a value.
I guess for some reason the pdf thinks the first column width should be 0%, and all your text is getting squished.
The easiest way to fix this would be to go in editing mode, and drag the column border over a little. Resizing it should automatically give it a width in the source
code.
|
|
|
|
Delmar Larsen <dlarsen@...>
Sorry, I should have confirmed this a few days ago, but didn't get the time. Sophia is 100% correct. The printing system we have doesn't like fixed widths in the tables, hence why we typically use them in responsive mode. I will add fixing this automatically via the Brad bot so this will be addressed automatically on our side. Give me a day please.
|
|
|
|
Patrick McClanahan
AWESOME!! Thank you Delmar...I appreciate the assist
Pat
Patrick McClanahan
Professor of Computer Science
Science and Math 252
San Joaquin Delta College
Stockton, CA
(209) 954-5323
From: main@Libretexts-ConstructionForum.groups.io <main@Libretexts-ConstructionForum.groups.io> on behalf of Delmar Larsen via groups.io <dlarsen@...>
Sent: Friday, August 7, 2020 6:46 PM To: main@Libretexts-ConstructionForum.groups.io <main@Libretexts-ConstructionForum.groups.io> Subject: Re: [Libretexts-ConstructionForum] PDF irregularity
Sorry, I should have confirmed this a few days ago, but didn't get the time. Sophia is 100% correct. The printing system we have doesn't like fixed widths in the tables, hence why we typically use them in responsive mode. I will add fixing this automatically
via the Brad bot so this will be addressed automatically on our side. Give me a day please.
|
|
|
|
Delmar Larsen <dlarsen@...>
I removed both the default vertical and horizontal alignments for table entries in the pdf. They are up to the author to decide how to best present the data in the table.
|
|
|
|
Patrick McClanahan
How then do we control the placement of data?? There is a Vertical Alignment selection when you right click the table. I am not seeing any difference in my tables....do I need to alter something?
Pat
Patrick McClanahan
Professor of Computer Science
Science and Math 252
San Joaquin Delta College
Stockton, CA
(209) 954-5323
From: main@Libretexts-ConstructionForum.groups.io <main@Libretexts-ConstructionForum.groups.io> on behalf of Delmar Larsen via groups.io <dlarsen@...>
Sent: Saturday, August 8, 2020 2:27 PM To: main@Libretexts-ConstructionForum.groups.io <main@Libretexts-ConstructionForum.groups.io> Subject: Re: [Libretexts-ConstructionForum] PDF irregularity
I removed both the default vertical and horizontal alignments for table entries in the pdf. They are up to the author to decide how to best present the data in the table.
|
|
|
|
Delmar Larsen <dlarsen@...>
You can control the horizontal alignment via the normal standard editor (like in normal text). if you are saying it doesn't show up in your PDF, then share with me the URL and I will confirm on my side.
|
|
|
|
Patrick McClanahan
I select the table, I right click in the table, select Align-> Top, then also select Alignment from the menu bar, and select Align Left.
Do I have to compile it before I see it in PDF? Because I am not seeing any difference
Pat
Patrick McClanahan
Professor of Computer Science
Science and Math 252
San Joaquin Delta College
Stockton, CA
(209) 954-5323
From: main@Libretexts-ConstructionForum.groups.io <main@Libretexts-ConstructionForum.groups.io> on behalf of Delmar Larsen via groups.io <dlarsen@...>
Sent: Saturday, August 8, 2020 4:20 PM To: main@Libretexts-ConstructionForum.groups.io <main@Libretexts-ConstructionForum.groups.io> Subject: Re: [Libretexts-ConstructionForum] PDF irregularity
You can control the horizontal alignment via the normal standard editor (like in normal text). if you are saying it doesn't show up in your PDF, then share with me the URL and I will confirm on my side.
|
|
|
|
Good point. To get the noncached PDF add ?nocache to the end of the URL (the PDF URL, not the library URL).
I will take a look tomorrow morning.
|
|
|
|
Delmar Larsen <dlarsen@...>
I am still having trouble finding why the default is center justified, although I have turned off forcing it. The CSS is a bit hairy in this matter.
The problem is that he CKEditor registers left justification as default and doesn't force it into the HTML code. The CSS for print then doesn't know the author wants it to be left justified (it will work on all the others). If I cannot figure this out quickly, I will make a table style that you can select in the table settings that will have it there. Since you are a computer guy, you can probably accept a harder answer. What works is to select right justified in your tables, then got into the html code and do a find/replace on all "mt-align-right" into "mt-align-left" and that fixes it. Sorry for a clunky answer, but this works for now.
|
|
|
|
Delmar Larsen <dlarsen@...>
I set up a bot to edit the tables to fix this. Let me know if you still have problems. I ran it on your book.
|
|
|