# bug in use of \AtBeginDocument

Issue #12 resolved
Sam Mason created an issue

I've just started using this class instead of the original package from Elena and have run into issues when combining it with microtype. A poster suggested that it could be due to incorrect use of \AtBeginDocument:

http://tex.stackexchange.com/questions/165846/incompatibility-between-tikzposter-class-and-microtype-package

This looks to be a one-liner to fix:

--- tikzposter.dtx.1    2014-03-17 16:19:28.000000000 +0000
+++ tikzposter.dtx  2014-03-17 16:19:57.000000000 +0000
@@ -1842,7 +1842,7 @@

% --------------------------------------- %
% Document environment
-\AtBeginDocument{%
+\AfterEndPreamble{%
% Get titlegraphic height
\settototalheight{\titlegraphicheight}{\hbox{\@titlegraphic}}


I've not tried installing from this, but the equivalent change works for me.