This is the repository containing the configuration files for reports in the style of the Grattan Institute, Melbourne.
See https://github.com/grattan/grattex/blob/master/doc/grattexDocumentation.pdf for the documentation.
Staff starting a new report need to "clone the grattex repository on Github" (copy the report template) and "import the repository to edit in Overleaf" (open the template in Overleaf). This can be done using the following steps.
If you do not have a Github account that is connected to the Grattan organisation:
- Create a Github account at github.com using your @grattaninstitute email address and a username that makes it easy to identify yourself (and remember). [Skip if you already have a Github account]
- Ask Mia or Alan to add you to the Grattan Github organisation.
If you do not have an Overleaf account:
- Create an Overleaf account at overleaf.com using your
@grattaninstituteemail address. - Ask Mia or Alan to add you to the Grattan Institute premium account.
- Under 'Account Settings', ensure your account is linked to both Dropbox and Github.
- Logged into your github account, go to
https://github.com/grattan/grattex - Click on
Use this template(the green button on the top-right of the panel) - Change the Owner to
grattan. Give your new repository a name that will clearly identify the project now and in the future. A good example isEnergy-2018-stranded-assets. A bad example ishealth-report. - Select
Private, and make sure theInclude all branchesis unchecked. - Click
Create repository from template. This will take a minute to copy. - Once it has finished, you have successfully cloned the
grattexrepository (copied the report template). You can find it athttps://github.com/grattan/[your-repository-name]. Now it's time to open and edit it in Overleaf.
- Log into your account at at overleaf.com.
- Click
New Project > Import from GitHub. - Locate the repository you just created, and click
Import to Overleaf. - Once imported the document will open and attempt to compile.
- At the top right, click
Shareand:- add collaborators via their email address. Please add Mia, as well as the members of your team, plus Paul and Kat.
- copy the
Anyone with this link can edit the projectlink and paste it just under\documentclass{grattan}as a comment, i.e.:
\documentclass{grattan}
% Anyone with this link can edit the project:
% https://www.overleaf.com/abcdefghi12345so that your coauthors can also invite people to edit the document in your absence
- And that's it. You've now created a new report on Github and Overleaf.
You can get a long way in Latex using Overleaf's 'Rich Text' editor. When you open an Overleaf project and select a file ending in .tex from the left sidebar, code will appear in the centre panel of the screen. At the top left of the code is a toggle button, allowing you to see the file as 'Source' code (which looks code-ish) or 'Rich Text' (which looks a bit more like Microsoft Word, including buttons you can click for section heading or bold text).
Now you can write almost as easily as you would in more user-friendly text editors like Word.
For anything more advanced (footnotes, referencing, tables, figures and other miscellaneous troubleshooting), there are three resources that might help.
- Using LaTeX in reports at Grattan is a more-than-one-hundred page document that should contain the answer. It lives in the Grattan Dropbox under
Grattan Team > Templates > LaTeX > grattexDocumentation.pdf. While super helpful and comprehensive, the document is very long -- the best strategy is toctrl+Ffor whatever you need assistance with. - The latexShowcase project in Overleaf contains many examples of code that you might find useful, including how to use boxes and complex tables. Ask Mia to invite you to this project if you didn't already receive the invite during your induction.
- Your colleagues have probably encountered any issues you might have. Breaking a Latex document can be unnerving and frustrating, but the fix usually takes only a few seconds. Ask around! Mia is the designated 'Latexnician' as of January 2026, and is more than happy to help.
Releasing a report involves adding the front cover, updating the logos/affiliates on page 2, and adding the ISBN and report number
- To add the front cover, ensure that there is a folder in the Overleaf project called
FrontPages, which must contain the front cover as a PDF with the nameFrontPage.pdf. InReport.tex, change the first line of code from\documentclass[embargoed]{grattan}to\documentclass[FrontPage]{grattan}. - Check with Central Services what ISBN and report number your report should have, and ask for a png of the current Affiliates page. Replace whatever ISBN/report number is currently in
Report.texwith the correct one. Save the affiliates page in the folderFrontpageswith the file nameAffiliatesPage.png. - Check that
\CenturyFootnoteis between the 99th and 100th footnote (this will fix the spacing on subsequent footnotes, making sure three-digit footnotes still have a space between the full stop and the footnote content.) Now download your Overleaf project again -- just as you did one week ago, it's time to runcheckGrattanReport(), ensuring that your team is not trying to make any final changes to the document.
- Updated documentation to reflect current processes, including new affiliates page process
- Changed affiliates page.
- Penalties for hyphenation increased
- Fix issue #102 which manifested on TeX Live distributions (like Travis-CI) where
Ibid. (<page ref>)resulted in thepbeing uppercase (PR #114). Thanks to JD for filing.
- Increase hyphenation penalties. Closes #85
- Add
\note(s)withsource(s)permutations. Closes #81
- Add
centredsmallbox.
- Enable the detection of page-straddling cross-references via additional entries in
.log
- Appendix chapter titles are named 'Appendix A' etc.
- New option 'submission'.
- Add
\Chaprefand friends for neater hyperlinks to chapters - Add
\ie\eg\etcmacros.
- Allow long URLs in bibliography, line-breaking at width #36
- Box footnotes are now non-italic #43
- New command,
\doublecolumnfigurenow used #46 - Documentation moved to
./doc/
New features:
-
New option
embargoedenables a command\EmbargoDatewhich prints an Embargo mark on the title page and in the headers #32 -
Patched bug in
cleverefwherevarioref's phrase ``on the previous page'' is never used. #39 -
[t]floats have captions aligned with the baseline. 076df622e7fec025382b804e1b809319aef2fe11 -
KOMA-warnings' advice about
footheight,headheightetc has been accepted. #40 -
Glue component of space between footnote area and text has been reduced to 14pt (which is closer to the current leading). aec03a693b0aad85daa03ceef16316ef855b5b4a
-
Manual specification of
\textfloatsephas now been dropped in favour of the default -
Allow citations in acknowledgements #37