# list-macros macro

The list-macros macro produces a sorted
report of all items defined as macros in the specified account name
or your local MD (if md is specified).

## Syntax

```
list-macros {md|md.pathname} {(options}
```

## Parameter(s)

| md\|md.pathname | Specifies the path name for the master dictionary from which to list items that are defines as macros. If not specified, the default is the current MD. | |
| --- | --- | --- |
| options | n | Affects output to the terminal only, preventing output from pausing at the end of each (terminal) page of output. |
| p | Directs output to the system printer, via the spooler. | |

## See also

- [list-commands macro](https://d3codex.com/tcl/list-commands-macro/)
- [list-menu command](https://d3codex.com/tcl/list-menu-command/)
- [list-menus macro](https://d3codex.com/tcl/list-menus-macro/)
- [listprocs command](https://d3codex.com/tcl/listprocs-command/)
- [Macros](https://d3codex.com/definitions/macros-glossary/)
- [Options (Access Query Language)](https://d3codex.com/access/options-access-query-language/)

---
Source: https://d3codex.com/tcl/list-macros-macro/ - part of the D3Codex reference.
