Help with basic single-page pdf report #4570
Replies: 3 comments 3 replies
-
Depending upon your familiarity with LaTeX, a good place to start is the documentation on template partials, which breaks the LaTeX template that we use to generate PDFs into smaller bits that be easily replaced: https://quarto.org/docs/journals/templates.html#templates In this case, you could take a look at using either I don't have a great non-academic example of accomplishing this at my fingertips, but there are some community members here who may also be able to weigh in. HTH! |
Beta Was this translation helpful? Give feedback.
-
After a bit of rummaging around, I've temporarily abandoned the template partials because they're too much of a deep rabbit hole (I expect it will take a newb like myself couple of weeks full-time to get crude fluency in TeX ?). It appears, however, that I can sort-of get close to where I need to be by simply excluding the title. Modifying the default "Quarto Document" slightly, like this...
Yields something with my "header" at the top... Ok... I found I could make the table full width by simply adding more dashes...
I guess now it's just a matter of ditching the ugly fonts, adding borders to the sides and some styling. Is this the right track? Is there an easier way? |
Beta Was this translation helpful? Give feedback.
-
If you don't know anything about LaTeX, creating a template according to what you need is going to be tricky. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am in a situation where I would like to generate a single-page pdf report, but having lots of trouble with getting layout to comply with what I need.
I was able to get approximately what I want to render in HTML, but to make it work in PDF is eluding me. See below for an example of the layout (this is the HTML version, sorry for the obfuscation).
This type of single-page report is called a "manufacturing traveler sheet". IMHO, these very common in manufacturing test operations. These reports typically have a fixed amount of data but space is strictly constrained. The preference is for a pdf which can be printed out, rubber-stamped and signed. I can use HTML for now, but it's cumbersome and requires proper scaling for it to fit on a page.
The desired format is very simple...
It's just a header block jammed up at the top of the page with a border around it and some name-value pairs laid out neatly. Note the change in font size for the "PASS". This is the big problem right now. No idea how to do that in a PDF render.
The body of the report is just some tables and plots (I think I can handle these in pdf).
The footer is again a block with a border around it, this time some titles and and spaces for people to put signatures and notes. I can't make this happen in PDF.
I just can't figure out how to get a header and footer block to work in PDF and don't know where to start. It seems that default pdf format is intended for academic papers. That's nice, but things like reports and datasheets should be feasible too, right? Just need some pointers to get started with this.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions