LaTeX forum ⇒ Page LayoutBoxes in tikzposter

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Manusch
Posts: 4
Joined: Fri Aug 28, 2015 6:52 pm

Boxes in tikzposter

Postby Manusch » Fri Aug 28, 2015 6:55 pm

I designed a poster with the style tikzsposter. My problems are the too big distances between title of the poster and a box and the position of the text in a box
I tried already the options given in tikzposter, but nothing has worked... Is it possible to change that distances?
  1. \documentclass[12pt, a2paper, portrait, margin=0mm, innermargin=10mm, titleinnersep=0mm,blockbodyinnersep=0mm, blocktitleinnersep=0mm, blockverticalspace=5mm, colspace=5mm, subcolspace=5mm]{tikzposter}
  2.  
  3. \usepackage[ngerman]{babel}
  4. %\usepackage[latin1]{inputenc}
  5.  
  6. \usetitlestyle{Envelope}
  7. \usebackgroundstyle{Rays}
  8. \useblockstyle{Envelope}
  9. \usecolorstyle{Spain}
  10.  
  11. \title{Titel}
  12. \author{Autor}
  13. \institute{Institut}
  14. \begin{document}
  15. \maketitle
  16. \begin{columns}
  17. \column{0.33}
  18.  
  19. \block{}
  20. {\small
  21. \section*{Aufgabenstellung}
  22. TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
  23. }
  24. \end{columns}
  25. \end{document}
Image

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 4077
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Fri Aug 28, 2015 7:10 pm

Welcome,
is there any reason for crossposting?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

User avatar
cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Fri Aug 28, 2015 7:18 pm

Shouldn't it be

  1. \block{Aufgabenstellung}{
  2. TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
  3. TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
  4. TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
  5. TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
  6. TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
  7. }


Or do you need section titles within a block?

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

Manusch
Posts: 4
Joined: Fri Aug 28, 2015 6:52 pm

Postby Manusch » Fri Aug 28, 2015 9:10 pm

First: Sorry Johannes_B für crossposting, but I have to submit it urgently to my professor.
To you cgnieder
blocktitle for aufgabenstellung is not a good solution, because the box with the title become too big...I have to write many things on this poster...
I have done it now with \textbf{Aufgabenstellung}, as a normal text.
So the position of the text in the box (distance between text and margins of the box) and the distance from the postertitle to the box are left over. Is it possible to reduce this distances?

User avatar
Johannes_B
Site Moderator
Posts: 4077
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Fri Aug 28, 2015 9:42 pm

As long as the link is there for transparency, i don't mind crossposting. Right now, i would say let's keep all discussions on goLaTeX and summarize the result in here.

Of course, if a user drops in not being a member of goLaTeX (our german partner forum) feel free to make suggestions.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

User avatar
cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Fri Aug 28, 2015 9:50 pm

Well, you can redefine \section. tikzposter loads extarticle which uses the same definition for \section as article, i.e., it inserts a skip of 3.5ex before the section. YOu can redefine it to insert a 0-skip:

  1. \makeatletter
  2. \renewcommand\section{%
  3. \@startsection
  4. {section}% name
  5. {1}% level
  6. {\z@}% indent
  7. {0ex \@plus -1ex \@minus -.2ex}% beforeskip, changed!
  8. {2.3ex \@plus.2ex}% afterskip
  9. {\normalfont\Large\bfseries}% style
  10. }
  11. \makeatother


If you add this to your preamble you should get what you want.

I normally wouldn't recommend this but in this case you should be quite save – the usual document markup isn't really needed on a poster.

Caveat: try

  1. \block{}{
  2. \section*{Aufgabenstellung}
  3. TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
  4. TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
  5. TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
  6.  
  7. \section*{Bla bla bla}
  8. TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
  9. TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
  10. }


If you plan to use it this way then simply insert some negative space:

  1. \block{}{
  2. \vspace{-3.5ex}
  3. \section*{Aufgabenstellung}
  4. TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
  5. TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
  6. TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
  7.  
  8. \section*{Bla bla bla}
  9. TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
  10. TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
  11. }


Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

User avatar
Johannes_B
Site Moderator
Posts: 4077
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Fri Aug 28, 2015 10:18 pm

I wouldn't bother redefining \section, i would do \newcommand{\fakesection}[1]{\small\textbf{#1}\par\vspace{\baselineskip}} and use it instead.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

User avatar
cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Fri Aug 28, 2015 10:29 pm

Johannes_B wrote:i would do \newcommand{\fakesection}[1]{\small\textbf{#1}\par\vspace{\baselineskip}} and use it instead.


Plus a \noindent maybe? BTW: in the example only the main text is small and not the heading.

(If time matters I (personally) wouldn't even do that but really add the negative space.)

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

Manusch
Posts: 4
Joined: Fri Aug 28, 2015 6:52 pm

Postby Manusch » Fri Aug 28, 2015 10:42 pm

Hm, both newcommands doesnt work... cgnieders version doesnt change anything and with johannes_bs version I get a bigger distance...
\vplus{-3.5ex} works, but the position of the text is no stranger than before...the distance from the end of the text to the box is bigger than from the beginning of the text to the end of the box. Not possible giving the text more space in the boxes?

User avatar
Johannes_B
Site Moderator
Posts: 4077
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Fri Aug 28, 2015 10:54 pm

Once again a reason to post in german. I have no idea what spaces you mean, it is a complete kauderwelsh.

Without a minimal working example, it is even harder to say anything useful.

@clemens The blocks use \parboxes internally, no parindent there.

  1. \documentclass[12pt, a2paper, portrait, margin=0mm,
  2. innermargin=10mm, titleinnersep=0mm, blockbodyinnersep=0mm,
  3. blocktitleinnersep=0mm, blockverticalspace=5mm, colspace=5mm,
  4. subcolspace=5mm]{tikzposter}
  5.  
  6. \usepackage[ngerman]{babel}
  7.  
  8. \usetitlestyle{Envelope}
  9. \usebackgroundstyle{Rays}
  10. \useblockstyle{Envelope}
  11. \usecolorstyle{Spain}
  12.  
  13. \title{Titel}
  14. \author{Autor}
  15. \institute{Institut}
  16.  
  17.  
  18. \usepackage{blindtext}
  19. \newcommand{\fakesection}[1]{\textbf{#1}\small\par}
  20. \begin{document}
  21. \maketitle
  22. \begin{columns}
  23. \column{0.33}
  24.  
  25. \block{}
  26. {
  27. \fakesection{Aufgabenstellung}
  28. \blindtext
  29. \the\parindent
  30. }
  31. \end{columns}
  32. \end{document}


by the way, a few of the global options are invalid and do nothing. a
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “Page Layout”

Who is online

Users browsing this forum: MSN [Bot] and 3 guests