GeneralFlowfram thumbtabs and crop package

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

Flowfram thumbtabs and crop package

Post by jasonblewis »

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
(948 Bytes) Downloaded 327 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Flowfram thumbtabs and crop package

Post by nlct »

You could try increasing the thumbtab width after the thumbtabs have been created with \makethumbtabs. For example:

Code: Select all

Code, edit and compile here:
\setthumbtab{all}{width=1.1\thumbtabwidth}
\setthumbtabindex{all}{width=1.1\thumbtabwidth}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Regards
Nicola Talbot
jasonblewis
Posts: 8
Joined: Mon Mar 23, 2009 4:08 am

Re: Flowfram thumbtabs and crop package

Post by jasonblewis »

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

Post by jasonblewis »

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:

Code: Select all

\usepackage[twoside,a4paper,margin=1cm,tmargin=0.5cm,bmargin=1.5cm]{geometry}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Flowfram thumbtabs and crop package

Post by nlct »

I've thought of a better approach:

Code: Select all

Code, edit and compile here:
\newlength\bleedoffset
\setlength{\bleedoffset}{2pt}
\getdynamicbounds*{thumbtab1}
\addtolength{\ffareax}{\bleedoffset}
\edef\shiftthumbtabs{x=\the\ffareax}
\getdynamicevenbounds*{thumbtab1}
\addtolength{\ffareax}{-\bleedoffset}
\edef\shiftthumbtabs{% \noexpand\setthumbtab{all}{\shiftthumbtabs,evenx=\the\ffareax}%
\noexpand\setthumbtabindex{all}{\shiftthumbtabs,evenx=\the\ffareax}%
}
\shiftthumbtabs
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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

Post by jasonblewis »

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
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Flowfram thumbtabs and crop package

Post by nlct »

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:

Code: Select all

Code, edit and compile here:
\documentclass[10pt]{report}
\usepackage[a4paper,twoside,margin=1cm,tmargin=0.5cm,bmargin=1.5cm]{geometry}
\usepackage{lipsum}
\usepackage{flowfram}
\newlength\bleedoffset
\setlength{\bleedoffset}{2pt}
\addtolength{\thumbtabwidth}{\bleedoffset}
\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}
\addtolength{\ffareax}{\bleedoffset}
\edef\shiftthumbtabs{x=\the\ffareax}
\getdynamicevenbounds*{thumbtab1}
\addtolength{\ffareax}{-\bleedoffset}
\edef\shiftthumbtabs{%
\noexpand\setthumbtab{all}{\shiftthumbtabs,evenx=\the\ffareax}%
\noexpand\setthumbtabindex{all}{\shiftthumbtabs,evenx=\the\ffareax}%
}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Hope that helps.

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

Re: Flowfram thumbtabs and crop package

Post by jasonblewis »

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
(14.97 KiB) Downloaded 280 times
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Flowfram thumbtabs and crop package

Post by nlct »

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

Post by jasonblewis »

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
Post Reply