AC-Archive
Autoconf Macro Archive

ac-archive.sf.net: - Project CVS - Download
Macro Index
- AM Support
- C++ Support
- C Support
- Fortran Support
- Java Support
- Cross Compilation
- Installed Packages
- Miscellaneous
- LaTeX Support
- Uncategorized
- archive macros
- adl's macros
- bkorb's macros
- guidod's macros
- latex's macros
- other's macros
- rleigh's macros
- obsoleted macros
- released macros
- search index

Documentation
- Contribute!
- History
- acincludedir m4
- acinclude (tool)
- macro howto
- ax tricks
- maintainers
- License
- Topics

generated...
2007-08-05

(C) 2007 guidod
Download the M4 Source.

acltx_default_class

Back to the Main Page.

Synopsis
ACLTX_DEFAULT_CLASS([OTHER-DEFAULT-CLASS])
, 
Version

2006-07-16

Author

Boretti Mathieu <boretti@eig.unige.ch>

License

lgpl

Category

cryp.to ac-archive's LaTeX Support (released)

Documentation

This class search for the first suitable class in book report article and set defaultclass to this value If no one of this classes are found, fail

M4 Source Code
AC_DEFUN([ACLTX_DEFAULT_CLASS],[
    if test "$acltx_cv_latex_class_default" = "" ; then
        ACLTX_CLASSES([m4_ifval([$1],[$1,])book,report,article],defaultclass)
    fi
    AC_MSG_CHECKING([for a default class in m4_ifval([$1],[$1,])book,report,article])
    AC_CACHE_VAL(acltx_cv_latex_class_default,[
        acltx_cv_latex_class_default=$defaultclass;
    ])
    AC_MSG_RESULT($defaultclass)
    AC_SUBST(defaultclass)
    if test "$defaultclass" = "no" ; then
        AC_MSG_ERROR([Unable to locate a default class])
    fi
])