acep-uaf / aetr-web-book-2024

Alaska Electricity Trends Report as a web book
https://acep-uaf.github.io/aetr-web-book-2024/
Creative Commons Attribution Share Alike 4.0 International
0 stars 4 forks source link

Fix formatting in Historical Reports (PDF version) #81

Closed ianalexmac closed 1 week ago

ianalexmac commented 1 month ago

We've got some formatting issues on the Historical Reports portion of the PDF. I believe the fix involves modifying TEX files. Probably a pain and not high priority, but worth discussing anyways.

Screenshot of the problem:

historical_reports

jikaczmarski commented 1 month ago

Yea, this is going to be a result of Quarto's table package implementations. LaTeX table implementation is really bad using basic packages and I always recommend things like tabularx over tabular. However, I'm not sure we can override Quarto's default tabular environment.

My intuition leads me to two options,

  1. Remove the table from the PDF render
  2. I create the entire table using a \tabularx implementation and we call that conditionally if a PDF is being rendered.

@ianalexmac Do you fell like we might be able to conditionally call a .tex?

ianalexmac commented 1 month ago

@jikaczmarski I remember you saying that tables in LaTeX are notoriously bad. Bummer. However I'm pretty sure I have a trick to conditionally call a .tex file depending on the render format.

eldobbins commented 1 week ago

Fixed text overwriting, but could not make other stylistic improvements (shading, borders, padding) that would improve readability.

eldobbins commented 1 week ago

Eh. It looks OK. Even Jesse says so.