0

I try to create a tikzposter containing some longer pieces of text. I would like those to have indented paragraphs. I tried setting \setlength{\parindent}{1em}, but that didn't solve the problem (it absolutely changed nothing).

So my question is: How do I enable \parindent in tikzposter?

\documentclass[landscape,a0paper]{tikzposter}
\usepackage{scrextend}
\usepackage{multicol}
\usepackage{lipsum} % just for debugging purposes

\title{\bfseries Test title}
\institute{My institute}
\author{My colleagues and me}

\usetheme{Board} %board, envelope, wave, autumn
\usecolorstyle[colorPalette=BlueGrayOrange,colorOne=gray!70,colorTwo=darkgray!80,colorThree=gray!10]{Spain}%Russia
\usebackgroundstyle{Rays}
\usetitlestyle{Default}
\useblockstyle{Board}
\useinnerblockstyle{Default} % Table

\settitle{\centering\vbox{\centering
    \color{titlefgcolor}\vspace*{1em}\scalebox{1.3}{\bfseries\huge\scshape\@title}\par\vspace*{1em}
    {\LARGE\@author\par}\vspace*{1em}{\large\@institute}
}}
\changefontsizes{32pt}

\tikzposterlatexaffectionproofoff

\begin{document}
    \maketitle[width=.7\textwidth] % See Section 4.1
    \block{Block with wrong paragraph indentation}{
        \begin{multicols}{2}
            \innerblock{Test}{
                \lipsum[2]\par
                \lipsum[1]
            }
            \innerblock{Test}{
                \lipsum[2]\par
                \lipsum[1]
            }
        \end{multicols}
    }
\end{document}
7
  • Not a real answer, but if you set the \parindent inside the innerblock (i.e. right before \lipsum) you get indentation. Feb 14, 2017 at 9:17
  • I think tiksposter block are nodes, so probably you need: tex.stackexchange.com/questions/22656/…
    – Ignasi
    Feb 14, 2017 at 9:25
  • @Ignasi Thanks. That was the hint I needed. So you could post that as an answer.
    – TeXnician
    Feb 14, 2017 at 9:58
  • (I see my comment was not very clear, as I gave exactly the same hint ...) Feb 14, 2017 at 10:53
  • @TorbjørnT. I didn't understood your solution. I've deleted my answer. Please, write yours.
    – Ignasi
    Feb 14, 2017 at 10:58

1 Answer 1

2

TikZPoster defines blocks with TikZ-nodes and their contents is a \parbox which is not indented by default. But you can force indentation in each particular block adding \setlength{\parindent}{3em} before the text. (See How to indent a paragraph inside a TikZ node?, and comments from Torbjørn T. to this answer and question)

\documentclass[landscape,a0paper]{tikzposter}
\usepackage{scrextend}
\usepackage{multicol}
\usepackage{lipsum} % just for debugging purposes

\title{\bfseries Test title}
\institute{My institute}
\author{My colleagues and me}

\usetheme{Board} %board, envelope, wave, autumn
\usecolorstyle[colorPalette=BlueGrayOrange,colorOne=gray!70,colorTwo=darkgray!80,colorThree=gray!10]{Spain}%Russia
\usebackgroundstyle{Rays}
\usetitlestyle{Default}
\useblockstyle{Board}
\useinnerblockstyle{Default} % Table

\settitle{\centering\vbox{\centering
    \color{titlefgcolor}\vspace*{1em}\scalebox{1.3}{\bfseries\huge\scshape\@title}\par\vspace*{1em}
    {\LARGE\@author\par}\vspace*{1em}{\large\@institute}
}}
\changefontsizes{32pt}

\tikzposterlatexaffectionproofoff

\begin{document}
    \maketitle[width=.7\textwidth] % See Section 4.1
    \block{Block with wrong paragraph indentation}{
        \begin{multicols}{2}
            \innerblock{Test}{
                \setlength{\parindent}{3em} %<--- Indentation
                \lipsum[2]\par
                \lipsum[1]
            }
            \innerblock{Test}{
                \lipsum[2]\par
                \lipsum[1]
            }
        \end{multicols}
    }
\end{document}

enter image description here

1
  • You don't need the \indent. Edit: The block text is put in a \parbox, in an \hbox, and that box is measured, and later put in a \node, see tikzposter.cls. Feb 14, 2017 at 10:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .