Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » creating a package » currentPackage
next | previous | forward | backward | up | index | toc

# currentPackage -- the current package

## Description

    i1 : newPackage "Foo"

    o1 = Foo

    o1 : Package

    i2 : currentPackage

    o2 = Foo

    o2 : Package

    i3 : endPackage "Foo"

    o3 = Foo

    o3 : Package

## Version

This documentation describes version 1.25.11 of Macaulay2.

## Citation

If you have used Macaulay2 in your research, please cite it as follows:

    @misc{M2,
      author = {Grayson, Daniel R. and Stillman, Michael E.},
      title = {Macaulay2, a software system for research in algebraic geometry},
      howpublished = {Available at \url{https://macaulay2.com/}}
    }

Moreover, you can use the cite function to learn how to cite any particular Macaulay2 packages which contributed to your research.

## For the programmer

The object currentPackage is a package, defined in Macaulay2Doc.m2, with auxiliary files in Macaulay2Doc/.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Macaulay2Doc/functions/package-doc.m2:688:0.