# Define items with a custom name in preamble, use them in the document

I have items such as \myphone and several others defined in a preamble.sty file and would like to reference these items in my document using this name (similar to CSS classes). How does this mechanism work?

In the preamble:

\def\myphone{555-5555}

In the document:

\lhead{myphone}

Replay

Category: preamble Time: 2016-07-29 Views: 0
Tags: preamble