Skip to content

Commit

Permalink
Merge pull request #25 from ahewer/master
Browse files Browse the repository at this point in the history
Poster content is now placed inside an environment
  • Loading branch information
Alexander Hewer committed Jul 23, 2015
2 parents 9b75d01 + f81b852 commit f7ff374
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ to your preamble.

## Managing the content

Place the content of the poster inside the poster environment:

\begin{poster}
...
\end{poster}

Use

\begin{posterblock}
Expand Down Expand Up @@ -217,6 +223,8 @@ Resulting poster:

\begin{document}

\begin{poster}

% tweak layout
% increase width of poster
\setlength{\textwidth}{\paperwidth - 30pt}
Expand Down Expand Up @@ -312,6 +320,8 @@ Resulting poster:
\fbox{\huge \bfseries LOGO 4}
\end{logobox}

\end{poster}

\end{document}

Resulting poster:
Expand Down
10 changes: 4 additions & 6 deletions mspposter.sty
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% create tikzpicture
\AtBeginDocument {%

\newenvironment{poster}{%
% set width
\textwidth0.9\paperwidth

Expand All @@ -658,7 +657,7 @@
every node/.style={
outer sep=0
},
% style for boxes
% default style for poster block
box/.style={
opacity=0.5,
text opacity=1.0,
Expand All @@ -667,6 +666,7 @@
ultra thick,
rounded corners
},
% default style for logo bar
logoboxbg/.style={
align=center,
minimum width=\paperwidth + 10pt,
Expand All @@ -693,9 +693,7 @@
\shade [bottom color=red!30,top color=orange!40]
(upper -| bgleft) rectangle (bottom -| bgright);
\end{scope}
}

\AtEndDocument {%
}{%
\poster.closeBlock()
\end{tikzpicture}%
}
Expand Down
4 changes: 4 additions & 0 deletions poster.tex
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@

\begin{document}

\begin{poster}

% tweak layout
% increase width of poster
\setlength{\textwidth}{\paperwidth - 30pt}
Expand Down Expand Up @@ -165,4 +167,6 @@
\fbox{\huge \bfseries LOGO 4}
\end{logobox}

\end{poster}

\end{document}

0 comments on commit f7ff374

Please sign in to comment.