Open kleintob opened 2 years ago
@hannesdatta can you please review and if you agree that it's ready put the label ready to be worked on?
This sounds all good! I would pitch this as two separate building blocks: a "latex table gallery" and a "latex figure" gallery.
For the tables, it's important you explain the various options that you have to make these tables. See also my own tex templates here: https://github.com/hannesdatta/platformpower/tree/master/paper/code & the code that generates the paper here: https://github.com/hannesdatta/platformpower/blob/master/paper/code/paper.tex.
Desired outline:
1) Overview
latex is great for tables - e.g., machine generated using packages (e.g., R w/ stargazer or esttab in Stata), or even using tools such as tablefill for customized tables.
but, the prob here is: there are thousand ways to generate tables, different packages, etc.
these are the main comparisons:
here is a gallery of tables w/ CODE you can directly copy paste, plus a screenshot how the table looks like.
advanced use cases: now you got your tex table, but how to integrate it in your document?
In designing the templates, please always adhere to our standard guidelines for tables, such as column names, table notes, etc.
If done, have a building block for a gallery of plots and how to integrate them in a tex doc.
Sounds all good to me. Just for extra inspiration please see the tables and figures in my working papers: https://www.tobiasklein.ws/working-papers Also, some of the links under the heading "academic writing" may have useful input to develop more content related to writing up a paper or a thesis.
@thierrylahaije interesting in picking this up?
@juliehabets latex is not a thing I am very familiar with, I think other RA's are better at this than I am
@KleinJonasUVT - given your recent thesis experience, would that be something for you to handle?
Contact Details
T.J.Klein@uvt.nl
Is your content request related to a problem you've encountered during your research process? Please describe.
It's very important that the tables and figures in a research paper are accessible and pleasant to look at. One principle that more and more people find important are that tables and figures are self-contained. This means that one can browse through the paper and look at a table or figure and understand what's going on without reading the main text of the paper. For this, it's good to have table notes.
I think it would be great to have a building block with an example table (code snippet and screenshot of the final table) that people could use as a starting point for their own tables.
Also, it would be good to at some point link to the tablefill building block and point out that one should make filling in the numbers part of the workflow.
We should also refer to some of the building blocks that we currently have under the heading "write your paper". In particular, the LaTeX template for a paper should probably link to this building block, also the LyX template.
Here is some input for the building block and a starting point to make an example table:
In general, what works well is to use a minipage within the table or figure environment. I usually center the minipage and then play around with the width. Before the minipage I put some extra space, with \vspace.
Alternatively, one can also use the threeparttable package:
I don’t think this works for figures though, and in general I did not like the results as much. A tiny bit ugly IMHO.
Then, regarding sideways tables. One way to do this is to use the sidewaystable environment. A nicer (I think) way is to use a normal table, but to then rotate the page in the pdf. For this, you use the landscape option. Here is an example:
One has to fiddle around a bit to do this in the right place. A refinement is to use this in combination with a package that executes all this when the next page break comes. I can’t find the name of that package though.
It would also be good to add some advice on tables more generally. Using the booktabs package is nice.