static bool isAvailable(std::string const & name);
/// Has the package been required?
bool isRequired(std::string const & name) const;
- /* Is it necessary to load the package? This is true if
- isRequired is true and the feature is not provided by the
- textclass.
+ /** Is this feature already provided
+ * e.g. by the document class?
+ */
+ bool isProvided(std::string const & name) const;
+ /** Is it necessary to load the package? This is true if
+ isRequired is true and the feature is not already provided
*/
bool mustProvide(std::string const & name) const;
///
void setBuffer(Buffer const &);
///
BufferParams const & bufferParams() const;
- /* Which language package do we require? \p englishbabel determines
- * if we require babel even if English is the only language.
+ /** Which language package do we require? \p englishbabel determines
+ * if we require babel even if English is the only language.
*/
- LangPackage langPackage(bool englishbabel = false) const;
+ LangPackage langPackage() const;
/// Convenience function to test if we use babel
- bool useBabel(bool englishbabel = false) const { return langPackage(englishbabel) == LANG_PACK_BABEL; }
+ bool useBabel() const { return langPackage() == LANG_PACK_BABEL; }
/// Convenience function to test if we use polyglossia
bool usePolyglossia() const { return langPackage() == LANG_PACK_POLYGLOSSIA; }
/// are we in a float?