summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-04-09 00:13:10 +0000
committerKarl Berry <karl@freefriends.org>2011-04-09 00:13:10 +0000
commit92e469e7e97e8358e62cec89f243d2a272bfc46f (patch)
tree055ab10d68405c19fd6aece48fd8c2de0d5a2e44
parent0134a901b3bfde202f7ed14d8a5edf553aed3ebe (diff)
warning (8apr11)
git-svn-id: svn://tug.org/texlive/trunk@22028 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/warning/warning-doc.pdfbin0 -> 254870 bytes
-rw-r--r--Master/texmf-dist/doc/latex/warning/warning-doc.tex78
-rw-r--r--Master/texmf-dist/source/latex/warning/warning.xml31
3 files changed, 78 insertions, 31 deletions
diff --git a/Master/texmf-dist/doc/latex/warning/warning-doc.pdf b/Master/texmf-dist/doc/latex/warning/warning-doc.pdf
new file mode 100644
index 00000000000..8d12e159cfd
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/warning/warning-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/warning/warning-doc.tex b/Master/texmf-dist/doc/latex/warning/warning-doc.tex
new file mode 100644
index 00000000000..d8b78dbdf6e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/warning/warning-doc.tex
@@ -0,0 +1,78 @@
+\documentclass[pagesize=auto, parskip=half, fontsize=12pt, DIV=11]{scrartcl}
+
+\usepackage{fixltx2e}
+\usepackage{etex}
+\usepackage{lmodern}
+\usepackage[T1]{fontenc}
+\usepackage{textcomp}
+\usepackage[svgnames]{xcolor}
+\usepackage{listings}
+\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
+\newcommand*{\meta}[1]{\textlangle\textsl{#1}\textrangle}
+\newcommand*{\marg}[1]{\texttt{\{}\meta{#1}\texttt{\}}}
+
+\addtokomafont{title}{\rmfamily}
+\deffootnote{1em}{1em}{\textsuperscript{\thefootnotemark}}
+
+\lstset{%
+ language=[LaTeX]TeX,%
+ columns=flexible,%
+ upquote=true,%
+ numbers=left,%
+ basicstyle=\ttfamily,%
+ keywordstyle=\color{Navy},%
+ commentstyle=\color{DimGray},%
+ stringstyle=\color{SeaGreen},%
+ numberstyle=\scriptsize\color{SlateGray}%
+}
+
+\title{The \pkg{warning} package\thanks{This manual corresponds to \pkg{warning.sty}~v0.01, dated~2001/08/17.}}
+\subtitle{Global warnings at the end of the screen output\\and the logfile}
+\author{Harald Harders\thanks{\mail{h.harders@tu-bs.de}}}
+\date{2001/08/17}
+
+
+\begin{document}
+
+\maketitle
+
+Sometimes a class or package has to make a global warning such as
+``Rerun for this or that reason'' or ``This is draft, change this
+before the final run''. If you are generating them with
+\verb+\AtEndDocument{\PackageWarningNoLine+\marg{packagename}\marg{warning}\verb+}+
+the warning appears very early before the filelist. Then the
+warning can easily be overseen. This package provides a command
+that surely puts the warning at the end near to the global
+warnings generated by \LaTeX\ itself.
+You can add a warning to a list of user defined warnings using the
+command \cmd{\addglobalwarning} as it can be seen in the example below.
+
+This package could be useful for the warnings generated e.\,g.\ by
+the packages \pkg{changebar.sty} or \pkg{longtable.sty}.
+
+Harald Harders
+
+
+\minisec{Example:}
+
+\begin{lstlisting}
+\documentclass{article}
+\usepackage{warning}
+\addglobalwarning{%
+ \ClassWarningNoLine{testclass}{This is a global warning}}
+\addglobalwarning{%
+ \PackageWarningNoLine{testpackage}{This is another global warning}}
+\begin{document}
+Hello
+\end{document}
+\end{lstlisting}
+
+\end{document}
diff --git a/Master/texmf-dist/source/latex/warning/warning.xml b/Master/texmf-dist/source/latex/warning/warning.xml
deleted file mode 100644
index 69a397a7173..00000000000
--- a/Master/texmf-dist/source/latex/warning/warning.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE entry SYSTEM "../catalogue.dtd">
-<entry id="warning"
- datestamp="2001/08/17"
- modifier="h.harders@tu-bs.de">
- <about>
- <name>warning</name>
- <caption>Global warnings at the end of the logfile.</caption>
- <author>
- <name>Harald Harders</name>
- <email>h.harders@tu-bs.de</email>
- </author>
- <license type="lppl"/>
- <version>
- <number>0.01</number>
- </version>
- </about>
- <description>
- <abstract>
- This package provides a command that generates a list of warnings
- that are printed out at the very end of the logfile.
- This is useful for warning such as
- ``Rerun for this or that reason'' or ``This is draft, change this
- before the final run''.
- </abstract>
- </description>
- <distribution>
- <texlive>latex3</texlive>
- <ctan>macros/latex/contrib/supported/warning</ctan>
- </distribution>
-</entry>