diff options
author | Karl Berry <karl@freefriends.org> | 2011-10-19 22:28:08 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-10-19 22:28:08 +0000 |
commit | 772976b31dcc12f45676b472887bd330bff5b9d7 (patch) | |
tree | 07ac899623525d86c15a80c484cf2e9d6938396c /Master/texmf-dist/tex/latex | |
parent | 19492a456e1fc5b19603e0d9b96cf10fb5195b52 (diff) |
thumbs (19oct11)
git-svn-id: svn://tug.org/texlive/trunk@24332 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/thumbs/thumbs.sty | 83 |
1 files changed, 57 insertions, 26 deletions
diff --git a/Master/texmf-dist/tex/latex/thumbs/thumbs.sty b/Master/texmf-dist/tex/latex/thumbs/thumbs.sty index 6191e707189..f2dec087375 100644 --- a/Master/texmf-dist/tex/latex/thumbs/thumbs.sty +++ b/Master/texmf-dist/tex/latex/thumbs/thumbs.sty @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Project: thumbs -%% Version: 2011/08/22 v1.0i +%% Version: 2011/10/19 v1.0j %% %% Copyright (C) 2010, 2011 by %% H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de> @@ -38,29 +38,45 @@ %% thumbs.sty, thumbs.pdf, thumbs.ins, thumbs.drv, %% thumbs-example.tex. %% -\NeedsTeXFormat{LaTeX2e}[2009/09/24] -\ProvidesPackage{thumbs}[2011/08/22 v1.0i +\NeedsTeXFormat{LaTeX2e}[2009/09/24]% recent: 2011/06/27 +\ProvidesPackage{thumbs}[2011/10/19 v1.0j Thumb marks and overwiew page(s) (HMM)] %% This package allows to create a customizable thumb index, %% providing a quick and easy reference methode for large documents, %% as well as an overview page. -\message{^^J *** Compiling with SW(P)? ^^J% - Please see the sw(p)*.log or \jobname.log-file! *** ^^J} -\PackageWarningNoLine{thumbs}{% - When compiling with SWP 5.50 Build 2960\MessageBreak% - (\copyright\space MacKichan Software, Inc.),\MessageBreak% - these additional packages are needed:\MessageBreak% - \string\usepackage[T1]{fontenc}\MessageBreak% - \string\usepackage{amsfonts}\MessageBreak% - \string\usepackage[math]{cellspace}\MessageBreak% - \string\usepackage{xcolor}\MessageBreak% - \string\pagecolor{white}\MessageBreak% - \string\newcommand{\string\QTO}[2]{\string#2}\MessageBreak% - especially before hyperref and thumbs,\MessageBreak% - but best right after the \string\documentclass!\MessageBreak% - } +\IfFileExists{tcilatex.tex}{% + % Quite probably SWP/SW/SN + \PackageWarningNoLine{thumbs}{% + When compiling with SWP 5.50 Build 2960\MessageBreak% + (copyright MacKichan Software, Inc.),\MessageBreak% + these additional packages are needed:\MessageBreak% + \string\usepackage[T1]{fontenc}\MessageBreak% + \string\usepackage{amsfonts}\MessageBreak% + \string\usepackage[math]{cellspace}\MessageBreak% + \string\usepackage{xcolor}\MessageBreak% + \string\pagecolor{white}\MessageBreak% + \string\newcommand{\string\QTO}[2]{\string##2}\MessageBreak% + especially before hyperref and thumbs,\MessageBreak% + but best right after the \string\documentclass!% + }% + }{% Probably not SWP/SW/SN + \message{^^J *** Compiling with SW(P)? ^^J% + When compiling with SWP 5.50 Build 2960^^J% + (copyright MacKichan Software, Inc.),^^J% + these additional packages are needed:^^J% + \string\usepackage[T1]{fontenc}^^J% + \string\usepackage{amsfonts}^^J% + \string\usepackage[math]{cellspace}^^J% + \string\usepackage{xcolor}^^J% + \string\pagecolor{white}^^J% + \string\newcommand{\string\QTO}[2]{\string##2}^^J% + especially before hyperref and thumbs,^^J% + but best right after the \string\documentclass!^^J% + ^^J% + }% + } \RequirePackage{kvoptions}[2010/12/23]% v3.10 \RequirePackage{atbegshi}[2011/01/30]% v1.15 @@ -71,7 +87,8 @@ \RequirePackage{pagecolor}[2011/08/08]% v1.0c \RequirePackage{rerunfilecheck}[2011/04/15]% v1.7 \RequirePackage{infwarerr}[2010/04/08]% v1.3 -\RequirePackage{atveryend}[2011/04/23]% v1.7 +\RequirePackage{atveryend}[2011/04/23]% v1.7, +%% v1.8 would be needed but is currently (2011/10/19) not available at CTAN yet %% thumbs may work with earlier versions of LaTeX2e and those packages, %% but this was not tested. Please consider updating your LaTeX contribution %% and packages to the most recent version (if they are not already the most @@ -88,6 +105,7 @@ \DeclareStringOption{bottomthumbmargin}[auto] \DeclareBoolOption[true]{ignorehoffset} \DeclareBoolOption[true]{ignorevoffset} +\DeclareBoolOption{nophantomsection}% false by default, but true if used \DeclareBoolOption[true]{verbose} \DeclareComplementaryOption{silent}{verbose} \DeclareBoolOption{draft} @@ -109,14 +127,14 @@ \fi \ifthumbs@ignorehoffset - \PackageWarningNoLine{thumbs}{% + \PackageInfo{thumbs}{% Option ignorehoffset NOT =false:\MessageBreak% hoffset will be ignored.\MessageBreak% To make thumbs regard hoffset use option\MessageBreak% ignorehoffset=false} \gdef\th@bmshoffset{0pt} \else - \PackageWarningNoLine{thumbs}{% + \PackageInfo{thumbs}{% Option ignorehoffset=false:\MessageBreak% hoffset will be regarded.\MessageBreak% This might move the thumb marks away from the paper edge} @@ -124,14 +142,14 @@ \fi \ifthumbs@ignorevoffset - \PackageWarningNoLine{thumbs}{% + \PackageInfo{thumbs}{% Option ignorevoffset NOT =false:\MessageBreak% voffset will be ignored.\MessageBreak% To make thumbs regard voffset use option\MessageBreak% ignorevoffset=false} \gdef\th@bmsvoffset{-\voffset} \else - \PackageWarningNoLine{thumbs}{% + \PackageInfo{thumbs}{% Option ignorevoffset=false:\MessageBreak% voffset will be regarded.\MessageBreak% This might move the thumb mark outside of the printable area} @@ -182,7 +200,7 @@ \ifthumbs@verbose% \relax \else - \PackageWarningNoLine{thumbs}{% + \PackageInfo{thumbs}{% Option verbose=false (or silent=true) found:\MessageBreak% You will lose some information} \fi @@ -515,12 +533,18 @@ \xdef\th@mb@titlelabel{}% } +\gdef\th@mbsphantom{1} + +\newcommand{\thumbsnophantom}{% + \gdef\th@mbsphantom{0}% + } + \newcommand{\addthumb}[4]{% \gdef\th@mbprinting{1}% \advance\th@mbposy\th@mbheighty% \advance\th@mbposy\th@mbsdistance% \ifdim\th@mbposy>\th@mbposybottom% - \PackageWarning{thumbs}{% + \PackageInfo{thumbs}{% Thumbs column full, starting another column.\MessageBreak% }% \setlength{\th@mbposy}{\th@mbposytop}% @@ -556,7 +580,14 @@ \setlength{\th@mbposyA}{\th@mbstmpwidth}% \@ifundefined{Hy@Warning}{% hyperref not loaded }{% hyperref loaded - \phantomsection% + \ifthumbs@nophantomsection% \relax + \else% + \ifx\th@mbsphantom\pagesLTS@one% + \phantomsection% + \else% + \gdef\th@mbsphantom{1}% + \fi% + \fi% }% \label{thumbs.\th@mbs}% \if@filesw% |