1

I want to set the font for my entire document as a courier / typewriter font, so that it resembles a typewritten manuscript.

This includes turning off hyphenation for the entire document.

So far, I have tried this:

\usetypescript[courier][uc]
\setupbodyfont[courier,12pt]

\setupalign [nothyphenated]

Though this gives me what I want, I find that ConTeXt is being excesively tolerant with it, extending words far beyond reasonable limits, even cutting words when reaching the end of paper.

Is there anything more I can do?

  • 1
    Use ragged text instead of justified: \setupalign[nothyphenated, right] – Marco Mar 2 '16 at 16:25
  • By checking the wiki I see that this option left aligns the text... I thought this was the default behaviour. – J.A. Rubio Mar 2 '16 at 17:16
1

Turning off hyphenation makes it very hard for TeX to justify paragraphs. Overfull and underfull boxes are the result. One can help TeX here by allowing the text to be set with a ragged edge. This is achieved by \setupalign[flushleft].

\showframe
\setupbodyfont[cursor,12pt]
\setupalign[nothyphenated,flushleft]
\starttext
\input knuth
\stoptext

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.