diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/papertex/papertex.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/papertex/papertex.dtx | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/Master/texmf-dist/source/latex/papertex/papertex.dtx b/Master/texmf-dist/source/latex/papertex/papertex.dtx index 44a106cfff1..f9505158291 100644 --- a/Master/texmf-dist/source/latex/papertex/papertex.dtx +++ b/Master/texmf-dist/source/latex/papertex/papertex.dtx @@ -22,7 +22,7 @@ %<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01] %<class>\ProvidesClass{papertex} %<*class> - [2007/01/15 v1.1a paperTeX class] + [2007/01/18 v1.1b paperTeX class] %</class> % %<*driver> @@ -58,6 +58,7 @@ % \changes{v1.0}{2006/07/06}{Initial version} % \changes{v1.1}{2007/01/10}{Some minor changes} % \changes{v1.1a}{2007/01/15}{Changes in documentation} +% \changes{v1.1b}{2007/01/18}{Short news have label. They could not be referenced before. Phantomsections added.} % % \GetFileInfo{papertex.dtx} % @@ -213,7 +214,7 @@ % \DescribeEnv{shortnews} % The |shortnews| environment creates a block of short news. Althought it has its own title and subtitle, each piece of news within it may have a title. To use it just type: % \begin{quote} -% |\begin{shortnews}|\marg{num-of-columns}\marg{title}\marg{subtitle}\\ +% |\begin{shortnews}|\marg{num-of-columns}\marg{title}\marg{subtitle}\marg{label}\\ % \ldots\\ % |\shortnewsitem|\marg{title}\marg{text}\\ % \ldots\\ @@ -1456,6 +1457,8 @@ % It also uses \texttt{multicol} feature to expand the news headings all over the columns and creates a % new PDF bookmark and label. % +% The fifth parameter gets the name of the label that the user can use in the front page index. It uses |\phantomsection| to make |\pageref| work. Notice that \papertex{} has not any sections. +% % It tells |multicols| environment that it should appear $4cm$ of text at least. % Otherwise, it changes to a new page. % \begin{macrocode} @@ -1463,13 +1466,14 @@ { \papertex@say{Adding a new piece of news} \renewcommand{\papertex@ncolumns}{#1} - \pdfbookmark[1]{#2}{\thepage} - \label{#5} \begin{multicols}{#1}[% \papertex@pages{#4} \papertex@innerTitle{#2}% \papertex@innerSubtitle{#3}% ][4cm]% + \phantomsection + \pdfbookmark[1]{#2}{\thepage} + \label{#5} } {~\innerTextFinalMark{} \end{multicols} @@ -1528,11 +1532,12 @@ \newenvironment{editorial}[4] { \papertex@say{Adding a new editorial} -\pdfbookmark[1]{#2}{\thepage} -\label{#4} \begin{multicols}{#1}[% \papertex@editorialTit{#2}{#3}% ][4cm] +\phantomsection +\pdfbookmark[1]{#2}{\thepage} +\label{#4} } { \end{multicols} @@ -1559,11 +1564,13 @@ % %Next environment introduces a short news group. % \begin{macrocode} -\newenvironment{shortnews}[3] +\newenvironment{shortnews}[4] { \papertex@say{Adding a short news block} - \pdfbookmark[1]{#2}{\thepage} \begin{multicols}{#1}[\papertex@shortnewsTit{#2}{#3}][4cm] % + \phantomsection + \pdfbookmark[1]{#2}{\thepage} + \label{#4} \par % } { |