diff --git a/scripts/run-docs-build b/scripts/run-docs-build
index 2e7298e..ad8fece 100755
--- a/scripts/run-docs-build
+++ b/scripts/run-docs-build
@@ -42,6 +42,20 @@ mkdir buildtools
 ${buildtools_localpath} -y -d $builddir/buildtools
 . $builddir/buildtools/environment-setup*
 
+textooldir=/srv/autobuilder/valkyrie.yocto.io/docs-build-tex-tools
+if [ -e /srv/autobuilder/valkyrie.yocto.io/ -a ! -e ${textooldir} ]; then
+    mkdir -p /tmp/textemp
+    pushd /tmp/textemp
+    wget https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
+    zcat < install-tl-unx.tar.gz | tar xf -
+    cd install-tl-*/
+    ./install-tl --scheme=small --texdir=${textooldir} --no-interaction
+    PATH=$PATH:${textooldir}/bin/x86_64-linux tlmgr install titlesec varwidth tabulary needspace upquote framed capt-of wrapfig fncychap gnu-freefont ctex
+    popd
+fi
+
+PATH=$PATH:${textooldir}/bin/x86_64-linux
+
 # Getting the old docbook built docs from an archive. Not rebuilding them.
 docbookarchive_localpath=${sharedir}/cluster-downloads-cache/`basename ${docbookarchive_url}`
 if [ ! -e ${docbookarchive_localpath} ]; then
