...
I use several typesetting conventions in this book.1
Note: Used when calling out an important note or a caveat.
When interacting with the menu system to follow \menu{a>set>of>instructions} or interacting with a particular \menu{user interface element} you'll see this formatting.
If you are directed to a particular file, \directory{the/full/file/path} will be shown. If the full path has already been used in the same section, a shorthand will be used, e.g. \directory{path}.
When referencing ClassNames
, functions()
, XML attributes
, or other code items inline, a special font is used.
A box with syntax highlighting is used for longer code segments.
public class CalculatorActivity extends ActionBarActivity
{
@Override
protected void onCreate( Bundle savedInstanceState )
{
super.onCreate( savedInstanceState );
setContentView( R.layout.activity_calculator );
}
}
Finally, key shortcuts are shown as: \keys{cmd + \Alt + \ctrl + \tab + \shift + \return + O}2
\newpage