General ⇒ Flowfram thumbtabs and crop package
-
jasonblewis
- Posts: 8
- Joined: Mon Mar 23, 2009 4:08 am
Flowfram thumbtabs and crop package
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 356 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Flowfram thumbtabs and crop package
Code: Select all
\setthumbtab{all}{width=1.1\thumbtabwidth}
\setthumbtabindex{all}{width=1.1\thumbtabwidth}
Nicola Talbot
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
-
jasonblewis
- Posts: 8
- Joined: Mon Mar 23, 2009 4:08 am
Re: Flowfram thumbtabs and crop package
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
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
Code: Select all
\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
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
-
jasonblewis
- Posts: 8
- Joined: Mon Mar 23, 2009 4:08 am
Re: Flowfram thumbtabs and crop package
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
\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}%
}
\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}
Regards
Nicola Talbot
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
-
jasonblewis
- Posts: 8
- Joined: Mon Mar 23, 2009 4:08 am
Re: Flowfram thumbtabs and crop package
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 309 times
Flowfram thumbtabs and crop package
Regards
Nicola Talbot
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
-
jasonblewis
- Posts: 8
- Joined: Mon Mar 23, 2009 4:08 am
Re: Flowfram thumbtabs and crop package
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