Page Layoutflowfram: border color missing

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
mrclock
Posts: 2
Joined: Mon Apr 16, 2012 10:08 pm

flowfram: border color missing

Post by mrclock »

Hello,

I have a problem with the flowfram package, which I haven't been able to resolve yet on my own.

When I create a flow frame with a colored border, only the left and the upper borders have the correct color, the lower and the right borders are black. This happens only on the first page, on all subsequent pages the colors of all four borders are correct.

my code:

Code: Select all

\documentclass{article}
\usepackage{flowfram}

\newflowframe*{10cm}{15cm}{25pt}{25pt}[main]
\setallflowframes{border=plain, bordercolor=red}

\begin{document}
only left and upper border are red, lower and right border are black

\framebreak
all 4 borders are red
\end{document}
Can anyone reproduce this effect or is this a problem with my installation?

Thanks in advance

Fabian

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Re: flowfram: border color missing

Post by nlct »

I can reproduce the same effect, but I'm stumped as to what's causing it. I've filed it as a bug and will try to track down the problem.

Regards
Nicola Talbot
mrclock
Posts: 2
Joined: Mon Apr 16, 2012 10:08 pm

Re: flowfram: border color missing

Post by mrclock »

Thank you for the quick reply. At least I know that it's not my fault. Nevertheless flowfram is a great package.

Fabian
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

flowfram: border color missing

Post by nlct »

Here's a workaround that uses tikz instead of \fbox:

Code: Select all

\documentclass{article}

\usepackage{flowfram}
\usepackage{tikz}
\usepackage{lipsum}

\newcommand{\redborder}[1]{\tikz \node[draw,rectangle,red] {#1};}

\newflowframe*{10cm}{15cm}{25pt}{25pt}[main]
\setallflowframes{border=redborder}

\begin{document}
\lipsum
\end{document}
Regards
Nicola Talbot
Post Reply