mixedmath

Explorations in math and programming
David Lowry-Duda



I write most professional correspondence in either plaintext (markdown) or latex+pdf. I recently had to make two versions of the same document in latex and Google Docs.1 1This is unnatural. The medium of communication affects both the reading and writing experience. But I don't explain why, and instead merely comment on how. Eventually the latex+pdf version will be made public, so I write the initial draft in latex.

The Venting Part

Latex is a more powerful and easier drafting language than Google Docs. Something that surprised me is that table placement is actually radically easier in latex than Google Docs - this blew my mind. I think there is no way to have a table in Google Docs that will not break across different pages!

Or actually, there is, but it's clearly a kludge. You can set it so that Google Docs tables won't split a single large row across different pages. And you can embed one table inside another table. So to make an unbreakable table, you embed it inside a 1x1 table with unsplittable rows.2 2Awful awful kludge. But to be totally fair, I also routinely use some kludges in final latex rendering, so this is perhaps a wash.

One common reason to want tables to not split is to let them flow with text. If you change text position, then you want tables to move appropriately. And almost every table or figure or graphic should probably have a caption, and (I guess) the best way to have a caption is also via a table. For tables, you just add a merged row and write the caption there. For other figures, you embed the figure in a table, add a row and put the caption. There is no other sane way to keep the figure and caption together that I've seen.3 3Or you could do what I've seen many others do, which is generate the caption as part of the figure and then have a single PNG to place. Also awful. And if these are allowed to float in a document, then sometimes you can have the table/figure on one page and the caption on the next — and there is no way4 4Lies! You just also put these into 1x1 tables. to prevent this!

Finally, Google Docs is a citation and figure labelling nightmare. I understand now that poor bibliography styles exist because of a lack of drafting support.

The Tips Part

I will have to do this again. I note the tricks that are useful.

The short theme is treat 1xN tables like HTML container divs and use these to place things well.


Leave a comment

Info on how to comment

To make a comment, please send an email using the button below. Your email address won't be shared (unless you include it in the body of your comment). If you don't want your real name to be used next to your comment, please specify the name you would like to use. If you want your name to link to a particular url, include that as well.

bold, italics, and plain text are allowed in comments. A reasonable subset of markdown is supported, including lists, links, and fenced code blocks. In addition, math can be formatted using $(inline math)$ or $$(your display equation)$$.

Please use plaintext email when commenting. See Plaintext Email and Comments on this site for more. Note also that comments are expected to be open, considerate, and respectful.

Comment via email