Comprehensive TeX Archive Network

Direc­tory tex-archive/macros/latex/contrib/labelcas


This LaTeX2e-package provides macros "\eachlabelcase" and "\lotlabelcase"
as a means of forking depending on whether specific labels are defined in
the current document.


Copyright (C) 2006 by Ulrich Diez  <ulrich.diez@alumni.uni-tuebingen.de>

This Work may be distributed and/or modified under the conditions of the
LaTeX Project Public License, either version 1.3 of this license or (at
your option) any later version.  The latest version of this license is in:


and version 1.3 or later is part of all distributions of LaTeX version
2003/12/01 or later.

This Work has the LPPL maintenance status `author-maintained'.

The author and Current Maintainer of this Work is Ulrich Diez.

This Work consists of the files labelcas.dtx, labelcas.ins, README and the
derived files labelcas.sty and labelcas.pdf.


Distributed files include:

   README        -- This file
   labelcas.pdf  -- Preformatted documentation
   labelcas.sty  -- Package-file for inclusion in document-preambles
   labelcas.ins  -- Extracts .sty-file from .dtx-file
   labelcas.dtx  -- Combined source both of .sty-file and documentation



Place labelcas.ins and labelcas.dtx into directories searched by TeX.
In order to obtain the .sty-file, run TeX or LaTeX2e or pdfTeX or
pdfLaTeX2e on labelcas.ins.
In order to obtain the documentation, place labelcas.sty into a
directory searched by TeX and run (pdf)LaTeX2e on labelcas.dtx.
Index:          makeindex -s gind.ist -o labelcas.ind labelcas.idx
Change-history: makeindex -s gglo.ist -o labelcas.gls labelcas.glo

If you wish to obtain information about usage of the macros while
omitting sections related to package-implementation and change-
history, enable "\OnlyDescription" by activating line 42/removing
the leading percent-char from line 42 in the file labelcas.dtx
before compiling.

Paper-format of the documentation is a4. If you wish to have the
documentation in letter-paper, it should be sufficient to remove
the a4paper-option in line 29 of the file labelcas.dtx before

Within the source-code for the documentation, the hyperref-package is
used. If you wish to obtain the documentation without (colorized)
hyperlinks (e.g., for printing), make sure that the hyperref-package
is loaded with the "draft"-option by activating line 34/removing the
leading percent-char from line 34 in the file labelcas.dtx before



Name Size Date Notes
README 2698 2006-08-15 02:06
la­bel­cas.dtx 73578 2006-08-15 01:54
la­bel­cas.ins 1772 2006-08-07 16:16
la­bel­cas.pdf 292795 2006-08-15 02:00
la­bel­cas.sty 6735 2006-08-14 21:59

Down­load the con­tents of this pack­age in one zip archive (236.7k).

la­bel­cas – Check the ex­is­tence of la­bels, and fork ac­cord­ingly

The pack­age de­fines two com­mands:

  • \each­la­bel­case, which dis­tin­guishes whether a set of la­bels is de­fined, and for each la­bel ei­ther queues ac­tion ac­cord­ingly, or ap­pends the ac­tion to a macro; and
  • \lot­la­bel­case, which takes a comma-sep­a­rated list of la­bel names, and dis­tin­guishes the re­sult­ing ac­tion on whether all were de­fined, whether none were de­fined, whether not all were de­fined, or whether the lest is empty (again, the ac­tion re­sult­ing from \lot­la­bel­case may be writ­ten to a macro).

Pack­age De­tailsla­bel­cas
Li­censeThe LaTeX Project Public Li­cense 1.3
Main­tainerUl­rich Diez (in­ac­tive)
Con­tained inTeX Live as la­bel­cas
MiKTeX as la­bel­cas
Topics la­bel and ref­er­ence sys­tems
sup­port for de­vel­op­ment of (La)TeX macros
Guest Book Sitemap Contact Contact Author