Adding a Latex table

Be aware that complex latex are perfect to show online and to export to PDFs or Latex, but they are unlikely to show well when exporting to word.  To include a latex table we first include a latex junk in the AUTHOREA document, then we tide things up, which means that we give a sensible name to the new file, put it in the appropriate directory and adapt layout.md accordingly. Then we add an R file that produces the latex code of the table and write it into the .tex -FileThe R-code to produce Table \ref{tab:} can be inspected here.  When clicking on the table itself the latex code that was produced by the R script is shown. When collaborates change this latex code (e..g to change the caption) you need to make sure to manually include the changes into the R script that is producing the table. This can easily be done with the diff comparison that is implemented in RStudio:  when you run the R-script to produce the Latex code for the table just hit the diff button in the git tab. The differences between the old version and new version of the .tex file will be shown and you may see some changes that you should manually copy into the R-script.