improved upquote compatibility (from #34); now works when style is set outside preamble