1

I'm numbering my lines in a double-sided ConTeXt Mkiv document like so:

\usemodule[ipsum]

\setuppagenumbering[alternative=doublesided]

\starttext
\startlinenumbering
\ipsum
\ipsum
\ipsum
\ipsum
\ipsum
\ipsum
\stoplinenumbering
\stoptext

They are always put in the left margin, no matter if I'm on a left or right page. Is there a way to put always put them into the inner or outer margin instead? (I'm basically asking the same question as this one for ConTeXt)

  • 3
    Add \setuplinenumbering[location=outer] place the numbers in the outer margins. – Wolfgang Schuster May 29 at 14:51
3

To move the line numbers in the outer margin you have to change the value of the location with the \setuplinenumbering command.

\setuppapersize[A5,landscape]

\setuppagenumbering[alternative=doublesided]

\setuplinenumbering[location=outer]

\starttext

\startlinenumbering
\dorecurse{5}{\samplefile{lorem}}
\stoplinenumbering

\stoptext

enter image description here enter image description here

  • Thank you! :-) Is there any documentation on this? If I remember correctly, both PRAGMA's Reference Manual and the context garden wiki only mention "inmargin" and "intext" as options for location, and I think both resulted in the number being in the left margin... – DP. Jun 5 at 20:14
  • 1
    You find a (nearly) complete list of all options for each command in the command reference. – Wolfgang Schuster Jun 6 at 19:23

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.