General ⇒ Flowfram thumbtabs and crop package
-
- 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
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
Flowfram thumbtabs and crop package
You could try increasing the thumbtab width after the thumbtabs have been created with \makethumbtabs. For example:
Regards
Nicola Talbot
Code: Select all
Code, edit and compile here:
\setthumbtab{all}{width=1.1\thumbtabwidth}\setthumbtabindex{all}{width=1.1\thumbtabwidth}
Nicola Talbot
LaTeX Resources: http://www.dickimaw-books.com/latexresources.html
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
-
- 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
That's exactly what I was after. Thanks.
Jason
-
- Posts: 8
- Joined: Mon Mar 23, 2009 4:08 am
Flowfram thumbtabs and crop package
I spoke to soon. It does work very well for a single sided document howerver I am using:jasonblewis wrote:Hi Nicola,
That's exactly what I was after. Thanks.
Jason
Code: Select all
\usepackage[twoside,a4paper,margin=1cm,tmargin=0.5cm,bmargin=1.5cm]{geometry}
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
Flowfram thumbtabs and crop package
I've thought of a better approach:
Change the value of \bleedoffset as appropriate.
Hope that helps.
Regards
Nicola Talbot
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
Hope that helps.
Regards
Nicola Talbot
LaTeX Resources: http://www.dickimaw-books.com/latexresources.html
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
-
- 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
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
Flowfram thumbtabs and crop package
That's odd, I didn't notice a difference.jasonblewis wrote: It does not seem to have any effect on the thumbtabs further throught the document though
You need to shift and make the box wider to do that.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?
The text is centred in the box by default so you'd need to redefine \thumbtabformat to fix 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.
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}%}
Regards
Nicola Talbot
LaTeX Resources: http://www.dickimaw-books.com/latexresources.html
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
-
- 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
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
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
Regards
Nicola Talbot
LaTeX Resources: http://www.dickimaw-books.com/latexresources.html
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
-
- 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
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