From e005ac1f023ba8a62647031a4cb3aee7915b5a61 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 6 May 2010 16:12:35 +0000 Subject: doc + separate package notoccite git-svn-id: svn://tug.org/texlive/trunk@18129 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/doc/latex/notoccite/notoccite.pdf | Bin 0 -> 232896 bytes .../texmf-dist/doc/latex/notoccite/notoccite.tex | 58 +++++++++++++++++++++ Master/texmf-dist/tex/latex/ltxmisc/notoccite.sty | 43 --------------- .../texmf-dist/tex/latex/notoccite/notoccite.sty | 43 +++++++++++++++ Master/tlpkg/bin/tlpkg-ctan-check | 2 +- Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc | 1 + Master/tlpkg/tlpsrc/notoccite.tlpsrc | 0 7 files changed, 103 insertions(+), 44 deletions(-) create mode 100644 Master/texmf-dist/doc/latex/notoccite/notoccite.pdf create mode 100644 Master/texmf-dist/doc/latex/notoccite/notoccite.tex delete mode 100644 Master/texmf-dist/tex/latex/ltxmisc/notoccite.sty create mode 100644 Master/texmf-dist/tex/latex/notoccite/notoccite.sty create mode 100644 Master/tlpkg/tlpsrc/notoccite.tlpsrc (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/notoccite/notoccite.pdf b/Master/texmf-dist/doc/latex/notoccite/notoccite.pdf new file mode 100644 index 00000000000..0c7dc63f9de Binary files /dev/null and b/Master/texmf-dist/doc/latex/notoccite/notoccite.pdf differ diff --git a/Master/texmf-dist/doc/latex/notoccite/notoccite.tex b/Master/texmf-dist/doc/latex/notoccite/notoccite.tex new file mode 100644 index 00000000000..1f7298fe4a0 --- /dev/null +++ b/Master/texmf-dist/doc/latex/notoccite/notoccite.tex @@ -0,0 +1,58 @@ +\documentclass[pagesize=auto, parskip=half, fontsize=12pt, DIV=9]{scrartcl} + +\usepackage{fixltx2e} +\usepackage{etex} +\usepackage{xspace} +\usepackage{lmodern} +\usepackage[T1]{fontenc} +\usepackage{textcomp} +\usepackage{microtype} +\usepackage{hyperref} + +\newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}} +\newcommand*{\pkg}[1]{\textsf{#1}} +\newcommand*{\cs}[1]{\texttt{\textbackslash#1}} +\makeatletter +\newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}} +\makeatother + +\addtokomafont{title}{\rmfamily} + +\title{The \pkg{notoccite} package} +\author{Donald Arseneau\thanks{\mail{asnd@triumf.ca}; TRIUMF, Vancouver, Canada}} +\date{Jul 20, 2000} + + +\begin{document} + +\maketitle + +\noindent +Ordinarily, cites used in titles or figure captions also appear in +the table of contents and list of figures. If you then run \texttt{bibtex} +using the \pkg{unsrt} (unsorted) style, they get numbered starting from 1, +not the number they should have in the main text. + +A good option is to avoid cites in titles, and to specify optional +caption text without cites:\\[0.4ex] +\small +\verb+\caption [Picture of a bird.]{Picture of a bird \cite{audobon}.}+ +\normalsize + +If you must use moving cites, you could manage them by deleting \textsc{toc} +and \textsc{lof} files, then running \texttt{latex} once, then \texttt{bibtex}\@. However, the +following definition fixes the problem so you don't need to worry +about that. + +\emph{NOTE:} This definition works for the ordinary \LaTeX\ definitions +for \cmd{\cite} and others (\cmd{\addtocontents}, \cmd{\label}) but it may well +fail when used with various packages for citations or cross +references. + +It works by locally setting \cmd{\@fileswfalse}, which is something like +\cmd{\nofiles}, but \cmd{\@fileswfalse} does not affect \cmd{\label} or \cmd{\addtocontents}. +\cmd{\nofiles} does most of its work by redefining \cmd{\protected@write}, and +neither \cmd{\addtocontents} nor \cmd{\label} check for \cs{if@filesw}. \cmd{\cite} \emph{does} +check \cs{if@filesw}. + +\end{document} diff --git a/Master/texmf-dist/tex/latex/ltxmisc/notoccite.sty b/Master/texmf-dist/tex/latex/ltxmisc/notoccite.sty deleted file mode 100644 index af4ec3bd048..00000000000 --- a/Master/texmf-dist/tex/latex/ltxmisc/notoccite.sty +++ /dev/null @@ -1,43 +0,0 @@ -% notoccite.sty no t.o.c. cite Jul 20, 2000 -% Donald Arseneau asnd@triumf.ca TRIUMF, Vancouver, Canada, -% This is unrestricted software contributed to the public domain. -% -% Ordinarily, cites used in titles or figure captions also appear in -% the table of contents and list of figures. If you then run bibtex -% using the unsrt (unsorted) style, they get numbered starting from 1, -% not the number they should have in the main text. -% -% A good option is to avoid cites in titles, and to specify optional -% caption text without cites: -% \caption [Picture of a bird.]{Picture of a bird \cite{audobon}.} -% -% If you must use moving cites, you could manage them by deleting toc -% and lof files, then running latex once, then bibtex. However, the -% following definition fixes the problem so you don't need to worry -% about that. -% -% *NOTE* This definition works for the ordinary LaTeX definitions -% for \cite and others (\addtocontents, \label) but it may well -% fail when used with various packages for citations or cross -% references. -% -% It works by locally setting \@fileswfalse, which is something like -% \nofiles, but \@fileswfalse does not affect \label or \addtocontents. -% \nofiles does most of its work by redefining \protected@write, and -% neither \addtocontents nor \label check for \if@filesw. \cite *does* -% check \if@filesw. - -\ProvidesPackage{notoccite}[2000/07/20] -\def\@starttoc#1{% - \begingroup - \@fileswfalse - \makeatletter - \@input{\jobname.#1}% - \endgroup - \if@filesw - \expandafter\newwrite\csname tf@#1\endcsname - \immediate\openout \csname tf@#1\endcsname \jobname.#1\relax - \fi - \@nobreakfalse -} - diff --git a/Master/texmf-dist/tex/latex/notoccite/notoccite.sty b/Master/texmf-dist/tex/latex/notoccite/notoccite.sty new file mode 100644 index 00000000000..af4ec3bd048 --- /dev/null +++ b/Master/texmf-dist/tex/latex/notoccite/notoccite.sty @@ -0,0 +1,43 @@ +% notoccite.sty no t.o.c. cite Jul 20, 2000 +% Donald Arseneau asnd@triumf.ca TRIUMF, Vancouver, Canada, +% This is unrestricted software contributed to the public domain. +% +% Ordinarily, cites used in titles or figure captions also appear in +% the table of contents and list of figures. If you then run bibtex +% using the unsrt (unsorted) style, they get numbered starting from 1, +% not the number they should have in the main text. +% +% A good option is to avoid cites in titles, and to specify optional +% caption text without cites: +% \caption [Picture of a bird.]{Picture of a bird \cite{audobon}.} +% +% If you must use moving cites, you could manage them by deleting toc +% and lof files, then running latex once, then bibtex. However, the +% following definition fixes the problem so you don't need to worry +% about that. +% +% *NOTE* This definition works for the ordinary LaTeX definitions +% for \cite and others (\addtocontents, \label) but it may well +% fail when used with various packages for citations or cross +% references. +% +% It works by locally setting \@fileswfalse, which is something like +% \nofiles, but \@fileswfalse does not affect \label or \addtocontents. +% \nofiles does most of its work by redefining \protected@write, and +% neither \addtocontents nor \label check for \if@filesw. \cite *does* +% check \if@filesw. + +\ProvidesPackage{notoccite}[2000/07/20] +\def\@starttoc#1{% + \begingroup + \@fileswfalse + \makeatletter + \@input{\jobname.#1}% + \endgroup + \if@filesw + \expandafter\newwrite\csname tf@#1\endcsname + \immediate\openout \csname tf@#1\endcsname \jobname.#1\relax + \fi + \@nobreakfalse +} + diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 359844448fb..82d1128d61d 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -210,7 +210,7 @@ my @TLP_working = qw( nag namespc natbib nath nature ncclatex ncctools needspace newfile newlfm newspaper newverbs nextpage nfssext-cfr niceframe nicetext nih nkarta noitcrul nolbreaks - nomencl nomentbl nonfloat nopageno nostarch notes notes2bib + nomencl nomentbl nonfloat nopageno nostarch notes notes2bib notoccite nrc ntgclass ntheorem-vn numname numprint oberdiek ocgtools ocr-latex octavo ofs ogham oldlatin oldstyle onlyamsmath onrannual opcit diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index f6f8c72591f..2cad992a944 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -413,6 +413,7 @@ depend nomentbl depend nonfloat depend nopageno depend notes +depend notoccite depend ntabbing depend ntheorem depend numname diff --git a/Master/tlpkg/tlpsrc/notoccite.tlpsrc b/Master/tlpkg/tlpsrc/notoccite.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d -- cgit v1.2.3