\setuppagenumbering [alternative=doublesided, location=] %undo default page numbering in middle of header; doublesided option will ensure that the document has an even number of pages
%Define an odd page break between books that omits headers and footers in blank pages
\definepagebreak[blankpagebreak][yes,header,footer,right]
%Setup body and title fonts (is any of this redundant, or can it be consolidated?):
\definefontsynonym [EBGaramond] [name:EBGaramond-Regular] [features=default]
\definefontfamily[garamond] [rm] [EBGaramond] [features={default}]
\setupbodyfont[garamond, 12pt]
\setupinterlinespace[18pt] %text line spacing
\definefont[MyPartFont][EBGaramond at 24pt][line=36pt] %font command to be used for setting MyPart heading texts
%Macro for adjusting kerning of MyPart heading texts (can any of this can be handled in the \definefont call?):
\define[1]\MyPartTextCommand{%
\kerncharacters[0.6666]%increase letterspacing
\WORDS{#1}%set all letters in uppercase
}
%Macro for page break after MyPart headings:
\define\AfterMyPart{%
\page[blankpagebreak]%
}
%Define a new heading at the level of a part:
\definehead[MyPart][part]
\setuphead[MyPart][
number=no,%do not add a number to this heading
page=blankpagebreak,%always start this on an odd page
header=empty,%disable headers for this page
footer=empty,%disable footers for this page
align={flushleft, nothyphenated},%titling alignment settings
textstyle=\MyPartFont,%set text style
textcommand=\MyPartTextCommand,%set text formatting command
commandafter=\AfterBookTitle%add a double page break afterwards
]
%Setup header and footer text:
\setupheadertexts[{\structureuservariable{booktitle}}\hfill][][][\hfill {\structureuservariable{booktitle}}] %even left, even right, odd left, odd right
\setupfootertexts[\pagenumber][][][\pagenumber] %even left, even right, odd left, odd right
%Ensure that whitespace respects the grid layout:
\setupblank[line,fixed]
\starttext
\startMyPart[title={Title for Title Page}][booktitle={Title for Header}]
\input knuth\par
\input knuth\par
\input knuth\par
\input knuth\par
\input knuth\par
\input knuth
\stopMyPart
\stoptext
```