## LaTeX forum ⇒ General ⇒ Flowfram thumbtabs and crop package

LaTeX specific issues not fitting into one of the other forums of this category.
jasonblewis
Posts: 8
Joined: Mon Mar 23, 2009 4:08 am

### Flowfram thumbtabs and crop package

Hi,

I am trying to use flowfram thumbtabs with the crop package.

I can generate the thumbtabs without problem however is there a way to get the thumbtabs to bleed beyond the page boundary, so they can be cropped off and hence run right to the edge of the final printed page?

Here is a sample document.

Thanks,

Jason
Attachments
test-thumbtabs.tex

LaTeXguide.org • LaTeX-Cookbook.net

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

### Flowfram thumbtabs and crop package

You could try increasing the thumbtab width after the thumbtabs have been created with \makethumbtabs. For example:
\setthumbtab{all}{width=1.1\thumbtabwidth}
\setthumbtabindex{all}{width=1.1\thumbtabwidth}


Regards
Nicola Talbot

jasonblewis
Posts: 8
Joined: Mon Mar 23, 2009 4:08 am

### Re: Flowfram thumbtabs and crop package

Hi Nicola,

That's exactly what I was after. Thanks.

Jason

jasonblewis
Posts: 8
Joined: Mon Mar 23, 2009 4:08 am

### Flowfram thumbtabs and crop package

jasonblewis wrote:Hi Nicola,

That's exactly what I was after. Thanks.

Jason

I spoke to soon. It does work very well for a single sided document howerver I am using:

\usepackage[twoside,a4paper,margin=1cm,tmargin=0.5cm,bmargin=1.5cm]{geometry}


in my document. The twoside option appears to cause a problem in that the thumbtabs always get extended to the right.

sorry I didn't included the twoside option in my test document I posted before but I was trying to keep my example as simple as possible.

Is there any way to make the thumbtab box respect the twopage option?

Thanks,

Jason

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

### Flowfram thumbtabs and crop package

I've thought of a better approach:
\newlength\bleedoffset
\setlength{\bleedoffset}{2pt}

\getdynamicbounds*{thumbtab1}

\edef\shiftthumbtabs{x=\the\ffareax}

\getdynamicevenbounds*{thumbtab1}

\edef\shiftthumbtabs{%   \noexpand\setthumbtab{all}{\shiftthumbtabs,evenx=\the\ffareax}%
\noexpand\setthumbtabindex{all}{\shiftthumbtabs,evenx=\the\ffareax}%
}

\shiftthumbtabs


Change the value of \bleedoffset as appropriate.

Hope that helps.

Regards
Nicola Talbot

jasonblewis
Posts: 8
Joined: Mon Mar 23, 2009 4:08 am

### Re: Flowfram thumbtabs and crop package

Hi Nicola,

Thanks for that.

I tried your code out and it shifts the boxes in the thumbtab index to the right when its on the right hand page, and to the left on the left hand page which is good.

It does not seem to have any effect on the thumbtabs further throught the document though.

Also is there any way to make this enlarge the thumbtab box by moving the right hand edge of the box(or left hand when on the left page) instead of shifting the box?

Will this approach also shift the text in the thumbtab? your current solution also shifts the text which is no good as it will get cropped off the page when it is trimmed.

Any suggestions would be greatly appreciated.

Thanks,

Jason

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

### Flowfram thumbtabs and crop package

jasonblewis wrote:It does not seem to have any effect on the thumbtabs further throught the document though

That's odd, I didn't notice a difference.
jasonblewis wrote:Also is there any way to make this enlarge the thumbtab box by moving the right hand edge of the box(or left hand when on the left page) instead of shifting the box?

You need to shift and make the box wider to do that.
jasonblewis wrote:Will this approach also shift the text in the thumbtab? your current solution also shifts the text which is no good as it will get cropped off the page when it is trimmed.

The text is centred in the box by default so you'd need to redefine \thumbtabformat to fix that.

I've modified your code to incorporate the above:
\documentclass[10pt]{report}
\usepackage[a4paper,twoside,margin=1cm,tmargin=0.5cm,bmargin=1.5cm]{geometry}
\usepackage{lipsum}
\usepackage{flowfram}

\newlength\bleedoffset
\setlength{\bleedoffset}{2pt}

\renewcommand{\thumbtabformat}[2]{%
\ifodd\value{page}\relax
\hspace*{-\bleedoffset}%
\rotatebox{-90}{\parbox[c][\thumbtabwidth]{#2}{%
\centering#1}}%
\else
\hspace*{\bleedoffset}%
\rotatebox{90}{\parbox[c][\thumbtabwidth]{#2}{%
\centering#1}}%
\fi
}

%              ofset height
\makethumbtabs[50mm]{25mm}
\usepackage[cam,width=230truemm,height=317truemm,axes,center]{crop}

% Thumb tabs not defined on first run
\ifnum\value{maxthumbtabs}>0\relax

\getdynamicbounds*{thumbtab1}

\edef\shiftthumbtabs{x=\the\ffareax}

\getdynamicevenbounds*{thumbtab1}

\edef\shiftthumbtabs{%
\noexpand\setthumbtab{all}{\shiftthumbtabs,evenx=\the\ffareax}%
\noexpand\setthumbtabindex{all}{\shiftthumbtabs,evenx=\the\ffareax}%
}

\shiftthumbtabs
\fi

\begin{document}

\tocandthumbtabindex

\enablethumbtabs
\chapter{chapter1}
\lipsum
\subsection{test subsection}
\lipsum
\subsection{test subsection}
\lipsum
\subsection{test subsection}
\lipsum
\subsection{test subsection}
\lipsum
\chapter{chapter2}
\lipsum
\subsection{test1}
\lipsum
\chapter{chapter3}
\lipsum
\subsection{test1}
\lipsum
\chapter{chapter4}
\lipsum
\subsection{test1}
\lipsum
\subsection{test1}
\lipsum
\subsection{test1}
\lipsum
\subsection{test1}
\lipsum

\chapter{chapter5}
\lipsum

\chapter{chapter6}
\lipsum

\chapter{chapter7}
\lipsum

\chapter{chapter8}
\lipsum

\end{document}


Hope that helps.

Regards
Nicola Talbot

jasonblewis
Posts: 8
Joined: Mon Mar 23, 2009 4:08 am

### Re: Flowfram thumbtabs and crop package

Hi Nicola,

Thanks for your example, it works pretty well.

I am now encountering a strange problem where the thumbtabs and the footer page numbers on the page sometimes don't appear when I use the longtables package. It seems to have problems when the longtable spans more than one page.

I have made an example document that shows the problem. It's pretty long because I wanted to show when it does and doesn't work.

Any idea why it might be happening and how I could fix it?

Thanks,

Jason
Attachments
test-thumbtabs2.tex

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

### Flowfram thumbtabs and crop package

Unfortunately longtable and flowfram don't work well together as they both change the output routine, which is why there's a problem when the table spans more than one page. I think this is one of the few occasions where it's better to use supertabular.

Regards
Nicola Talbot

jasonblewis
Posts: 8
Joined: Mon Mar 23, 2009 4:08 am

### Re: Flowfram thumbtabs and crop package

Hi Nicola,

Thanks for your suggestion. I ended up using the xtab package and along with your code, has solved the problem.

Thanks again for all your help.

Jason