Select a note to target the start of its bar. With no selection, the change applies to the bar you are entering.
!style=x!g gives a cross notehead. [D !style=x!g] stacks D4 and G5.
!style=x!g
[D !style=x!g]
Choose “Save as PDF” in the browser’s print dialog to get a file.