reledmac linenumbers inside of the print space












0















Using the reledmac package I have trouble with putting the linenumbers inside of the print space (cf. picture).



enter image description here



The code in the preamble is now simply:



usepackage[parfill]{parskip}
usepackage[series={A,B,C}]{reledmac}
usepackage{reledpar}


%%%Xendnumberonlyfirstinline
Xendbeforepagenumber{S.,}
Xendafterpagenumber{:,}
Xendlineprefixsingle{Z.,}

setgoalfraction{0.85}

usepackage{url}
urlstyle{same}

lineation{section}
linenummargin{left}%%right für Zeilennummern rechts
%%%setRlineflag{}


usepackage{pdflscape} %%Querformatiges Bild

linenumincrement*{5}
firstlinenum*{0} %Zahl hochsetzen, um Titelei unnummeriert zu haben


How can I get the linenumber inside of the document?



A "minimal" Example with the full preamble:



% arara: xelatex

documentclass[10pt,twoside]{scrbook}
KOMAoptions
{
fontsize=10pt,
paper=24cm:17cm,
pagesize=pdftex,
DIV=calc,
} %%%weitere Einstellungen des Seitenspiegels



usepackage{leading}
leading{12pt}




usepackage[%%%text={12cm,17.8cm},
paperwidth=17cm,
paperheight=23cm,
top=1.6cm,%%%3.45cm,
bottom=3.45cm,%%%8.04cm,
inner=2.7cm,%%%4.15cm,
outer=2.3cm,%%%4.85cm,
%%% marginparsep=7mm,
%%%marginparwidth=48mm,
]{geometry} %%% Seitenlayout

%%usepackage[onehalfspacing]{setspace}

%%usepackage[bmargin=2.25cm]{geometry}


%%setheadsepline{0.4pt}
setkomafont{pageheadfoot}{normalfontnormalcolorsmall}setkomafont{pagenumber}{normalfont}

%Formatierung der Kopfzeilen:
addtokomafont{pagehead}{normalfont}


setkomafont{disposition}{normalcolorbfseries} %Schrift in Überschriften, Inhaltsverzeichnis

clubpenalty=10000
widowpenalty=10000

usepackage[parfill]{parskip}
usepackage[series={A,B,C}]{reledmac}
usepackage{reledpar}

usepackage{hyperref}
usepackage{epigraph} %für Zitate

usepackage{tipa} %%für IPA-Zeichen
%%%Xendnumberonlyfirstinline

Xendbeforepagenumber{S.,}
Xendafterpagenumber{:,}
Xendlineprefixsingle{Z.,}

setgoalfraction{0.85}

usepackage{url}
urlstyle{same}

lineation{section}
linenummargin{left}%%right für Zeilennummern rechts
%setRlineflag{}


usepackage{pdflscape} %%Querformatiges Bild

linenumincrement*{5}
firstlinenum*{0} %Zahl hochsetzen, um Titelei unnummeriert zu haben

maxchunks{10000}

% Hurenkinder und Schusterjungen verhindern
clubpenalty10000
widowpenalty10000
displaywidowpenalty=10000

usepackage{tabularx}

usepackage{color}
usepackage{multicol,multirow, bigdelim}%%times RAUS
usepackage{amsmath}
usepackage{fontspec}
usepackage{polyglossia, xunicode}
usepackage{libertine}
setmainfont[Ligatures=TeX]{Linux Libertine}%Linux Libertine O %%EzraSIL hat keine kursiva

letsvthefootnotethefootnote %idee wegen fußnotenabstand

setmainlanguage{german}
setotherlanguage{hebrew}
newfontfamilyhebrewfont[Script=Hebrew, Scale=0.8]{EzraSIL} %Keter YG %%hebräische schrift auf 9ppt verkleinert



%addsubsection definiert
makeatletter
newcommand*addsubsec{secdef@addsubsec@saddsubsec}
newcommand*{@addsubsec}{}
def@addsubsec[#1]#2{subsection*{#2}addcontentsline{toc}{subsection}{#1}
if@twosideifx@mkbothmarkbothmarkright{#1}fifi
}
newcommand*{@saddsubsec}[1]{subsection*{#1}@mkboth{}{}}
makeatother




%Header
usepackage[automark]{scrpage2}
pagestyle{scrheadings}
clearscrheadfoot
chead{headmark}
ohead{pagemark}
automark[section]{chapter}
renewcommand*{sectionmarkformat}{}
renewcommand*{chaptermarkformat}{}


setmainlanguage{german}
setotherlanguage{hebrew}




newcommandeinzugjid{hangindent=5mmhangafter=1}

newcommandspeaker[1]{noindent{#1} einzugjid
}

newcommandeinzug{hangindent=5mmhangafter=1}

newcommandspeakerd[1]{noindent
{textsc{#1}} einzug
}


usepackage[normalem]{ulem}



usepackage[german=guillemets]{csquotes}
usepackage[style=authoryear,language=ngerman]{biblatex} bibliography{LitGrobsdorfEdition}
renewcommand*{postnotedelim}{addcolon,}
DeclareFieldFormat{postnote}{#1}
DeclareFieldFormat{multipostnote}{#1}


deffootnote[normalparindent]
{0em}
{normalparindent}
{thefootnotemark ,}
newlength{normalparindent}
AtBeginDocument{setlength{normalparindent}{parindent}}

usepackage{bidi}autofootnoterule

deffootnote{1em}{0em}{thefootnotemark ,} %%neu aus Ricarda-Diss



wrapcontentX[A]{texthebrew}
makeatletter
renewcommand{footnoteruleA}{right@footnoterule}
makeatother



usepackage{gb4e}
noautomath

begin{document}




begin{pages}
begin{Leftside}begin{hebrew}
setRTL
beginnumbering

pstart {large{{texthebrew{textbf{איילפטער אויפטריטט}}}}} pend
pstart {texthebrew{גומפלכען אלליין}} pend




pstart {texthebrew{
איך בין דאָך גאָטטלויב בייא דיע מערערכער רעכט אַהגעזֵיעה –. זיע האָן מיך מיינע שמה אַלל גערן. דוא איס אַזוֹא אַהנע הויזע פֿון {שמאַלשטאַדט}, דיע לאָסט דאָך אַס חַזֶר קאַהן אַהג פֿוממער. דוֹא ווילל איך אַה שבועה דרוף טהוא, דאַס דיע פֿערליבט אין מיר איס. דען ווען איך איהר אַביסכה שפאַס מאַכע ווילל, דען גֵיהט זיע גלייך
{{begin{small}|liningnums{35}|end{small}}}
פֿאָרט, אַלס ווען זיע ניקס צו טוא וועלט מיט מיר האָן; און דאַס איס דער רעכטע סימן, דאַס זיע פֿערליעבט אין מיר איס. יאַ גומפלכה איס קאַה שוטה! – יאַ, יאַ, אום {בחינים} גֵיהט זיע מיר ניט איממער אויס דעם וועג, וואו זיע מיך זיכט. – איך בין אָבער אַהך אַה ראַהר קערלכע. זאָלל מיך אַה דוננער פערשלאַגע (זיעהט אין דען שפיעגעל) אַה בֵיזעל בין איך! אַה ביסכה דיקקער זעללט איך זייא. נוא, וואַס טוט מער דערמיט. דער מענש מאַכט זיך ניט זעלבסט. איך ווארד ערשט נאך אַמויהל אין דען הויף גאַנגע,
דען קאממער בעססער בייא זיך פאַקקע. יאַ, גומפלכה איס קאַה שוטה.
איך בין מיינע שמה געשייטער וויע זיע אַלל, זיע
{אוצע}
מיך אָסר אלל ניט.
}} pend
%%ed footnotetextB[ref{ric1}]{{texthebrew{אוצע}}: LR{‘foppen’, parencite[§,309]{Tendlau1860} textit{uzen}, parencite[43]{GuggenheimGruenberg1976} textit{uuzəә}, hessisch textit{uzen}, textit{utzen} parencite[281]{Hessen-NassauischesWB}.}}



pstart {texthebrew{ענדע דעס ערשטן אופצוגס.{begin{small}|liningnums{36}|end{small}}
}} pend


endnumbering
end{hebrew}end{Leftside}


begin{Rightside}

beginnumbering

pstart {large textbf{Elfter Auftritt}} pend
pstart textit{Gumpelchen alleine} pend


pstart Ich bin doch gottlob bei den Mädchen recht angesehen. – Sie haben mich alle gern. Da ist so eine aus Schmalstadt, die kann nicht von mir lassen. Da will ich drauf schwören, dass die verliebt in mich ist. Denn wenn ich mit ihr ein bisschen Spaß machen will, dann geht sie gleich fort, als ob sie nichts mit mir zu tun haben wollte; und das ist das rechte Anzeichen, dass sie in mich verliebt ist. Ja, Gumpelchen ist kein Narr! Ja, ja, sie geht mir ja nicht umsonst immer aus dem Weg, wenn sie mich sieht. Ich bin aber auch ein toller Kerl, soll mich der Donner erschlagen. textit{(Sieht in den Spiegel.)} Ah, ein schöner Mann bin ich. Ein bisschen dicker sollte ich sein. Nun, was tut man dann. Der Mensch macht sich nicht selbst. Ich werde erst noch einmal in den Hof gehen, dann kann man mehr zu sich packen. Ja, Gumpelchen ist kein Narr. Ich bin, meine Seele, gescheiter wie sie alle, sie foppen mich gewiss alle nicht. pend

pstart Ende des ersten Aufzugs. pend

endnumbering

end{Rightside}
end{pages}
Pages

end{document}









share|improve this question

























  • Your example is not really minimal and does not compile (mainly because of the fonts). Could you try to throw out all the stuff that is not strictly necessary for this problem?

    – DG'
    Feb 27 at 10:31











  • If I remove some of the stuff concerning the fonts I can compile your example. What I can see is that the page number and the line numbers don't align. If you want to fix that, you should move the the page number in the margin and (if needed) make the text narrower. Is this what you want?

    – DG'
    Feb 27 at 10:39











  • thanks! that is exactly what I want. But how do I "move the the page number in the margin "?

    – לאה פּאַסטעך
    Feb 27 at 10:57
















0















Using the reledmac package I have trouble with putting the linenumbers inside of the print space (cf. picture).



enter image description here



The code in the preamble is now simply:



usepackage[parfill]{parskip}
usepackage[series={A,B,C}]{reledmac}
usepackage{reledpar}


%%%Xendnumberonlyfirstinline
Xendbeforepagenumber{S.,}
Xendafterpagenumber{:,}
Xendlineprefixsingle{Z.,}

setgoalfraction{0.85}

usepackage{url}
urlstyle{same}

lineation{section}
linenummargin{left}%%right für Zeilennummern rechts
%%%setRlineflag{}


usepackage{pdflscape} %%Querformatiges Bild

linenumincrement*{5}
firstlinenum*{0} %Zahl hochsetzen, um Titelei unnummeriert zu haben


How can I get the linenumber inside of the document?



A "minimal" Example with the full preamble:



% arara: xelatex

documentclass[10pt,twoside]{scrbook}
KOMAoptions
{
fontsize=10pt,
paper=24cm:17cm,
pagesize=pdftex,
DIV=calc,
} %%%weitere Einstellungen des Seitenspiegels



usepackage{leading}
leading{12pt}




usepackage[%%%text={12cm,17.8cm},
paperwidth=17cm,
paperheight=23cm,
top=1.6cm,%%%3.45cm,
bottom=3.45cm,%%%8.04cm,
inner=2.7cm,%%%4.15cm,
outer=2.3cm,%%%4.85cm,
%%% marginparsep=7mm,
%%%marginparwidth=48mm,
]{geometry} %%% Seitenlayout

%%usepackage[onehalfspacing]{setspace}

%%usepackage[bmargin=2.25cm]{geometry}


%%setheadsepline{0.4pt}
setkomafont{pageheadfoot}{normalfontnormalcolorsmall}setkomafont{pagenumber}{normalfont}

%Formatierung der Kopfzeilen:
addtokomafont{pagehead}{normalfont}


setkomafont{disposition}{normalcolorbfseries} %Schrift in Überschriften, Inhaltsverzeichnis

clubpenalty=10000
widowpenalty=10000

usepackage[parfill]{parskip}
usepackage[series={A,B,C}]{reledmac}
usepackage{reledpar}

usepackage{hyperref}
usepackage{epigraph} %für Zitate

usepackage{tipa} %%für IPA-Zeichen
%%%Xendnumberonlyfirstinline

Xendbeforepagenumber{S.,}
Xendafterpagenumber{:,}
Xendlineprefixsingle{Z.,}

setgoalfraction{0.85}

usepackage{url}
urlstyle{same}

lineation{section}
linenummargin{left}%%right für Zeilennummern rechts
%setRlineflag{}


usepackage{pdflscape} %%Querformatiges Bild

linenumincrement*{5}
firstlinenum*{0} %Zahl hochsetzen, um Titelei unnummeriert zu haben

maxchunks{10000}

% Hurenkinder und Schusterjungen verhindern
clubpenalty10000
widowpenalty10000
displaywidowpenalty=10000

usepackage{tabularx}

usepackage{color}
usepackage{multicol,multirow, bigdelim}%%times RAUS
usepackage{amsmath}
usepackage{fontspec}
usepackage{polyglossia, xunicode}
usepackage{libertine}
setmainfont[Ligatures=TeX]{Linux Libertine}%Linux Libertine O %%EzraSIL hat keine kursiva

letsvthefootnotethefootnote %idee wegen fußnotenabstand

setmainlanguage{german}
setotherlanguage{hebrew}
newfontfamilyhebrewfont[Script=Hebrew, Scale=0.8]{EzraSIL} %Keter YG %%hebräische schrift auf 9ppt verkleinert



%addsubsection definiert
makeatletter
newcommand*addsubsec{secdef@addsubsec@saddsubsec}
newcommand*{@addsubsec}{}
def@addsubsec[#1]#2{subsection*{#2}addcontentsline{toc}{subsection}{#1}
if@twosideifx@mkbothmarkbothmarkright{#1}fifi
}
newcommand*{@saddsubsec}[1]{subsection*{#1}@mkboth{}{}}
makeatother




%Header
usepackage[automark]{scrpage2}
pagestyle{scrheadings}
clearscrheadfoot
chead{headmark}
ohead{pagemark}
automark[section]{chapter}
renewcommand*{sectionmarkformat}{}
renewcommand*{chaptermarkformat}{}


setmainlanguage{german}
setotherlanguage{hebrew}




newcommandeinzugjid{hangindent=5mmhangafter=1}

newcommandspeaker[1]{noindent{#1} einzugjid
}

newcommandeinzug{hangindent=5mmhangafter=1}

newcommandspeakerd[1]{noindent
{textsc{#1}} einzug
}


usepackage[normalem]{ulem}



usepackage[german=guillemets]{csquotes}
usepackage[style=authoryear,language=ngerman]{biblatex} bibliography{LitGrobsdorfEdition}
renewcommand*{postnotedelim}{addcolon,}
DeclareFieldFormat{postnote}{#1}
DeclareFieldFormat{multipostnote}{#1}


deffootnote[normalparindent]
{0em}
{normalparindent}
{thefootnotemark ,}
newlength{normalparindent}
AtBeginDocument{setlength{normalparindent}{parindent}}

usepackage{bidi}autofootnoterule

deffootnote{1em}{0em}{thefootnotemark ,} %%neu aus Ricarda-Diss



wrapcontentX[A]{texthebrew}
makeatletter
renewcommand{footnoteruleA}{right@footnoterule}
makeatother



usepackage{gb4e}
noautomath

begin{document}




begin{pages}
begin{Leftside}begin{hebrew}
setRTL
beginnumbering

pstart {large{{texthebrew{textbf{איילפטער אויפטריטט}}}}} pend
pstart {texthebrew{גומפלכען אלליין}} pend




pstart {texthebrew{
איך בין דאָך גאָטטלויב בייא דיע מערערכער רעכט אַהגעזֵיעה –. זיע האָן מיך מיינע שמה אַלל גערן. דוא איס אַזוֹא אַהנע הויזע פֿון {שמאַלשטאַדט}, דיע לאָסט דאָך אַס חַזֶר קאַהן אַהג פֿוממער. דוֹא ווילל איך אַה שבועה דרוף טהוא, דאַס דיע פֿערליבט אין מיר איס. דען ווען איך איהר אַביסכה שפאַס מאַכע ווילל, דען גֵיהט זיע גלייך
{{begin{small}|liningnums{35}|end{small}}}
פֿאָרט, אַלס ווען זיע ניקס צו טוא וועלט מיט מיר האָן; און דאַס איס דער רעכטע סימן, דאַס זיע פֿערליעבט אין מיר איס. יאַ גומפלכה איס קאַה שוטה! – יאַ, יאַ, אום {בחינים} גֵיהט זיע מיר ניט איממער אויס דעם וועג, וואו זיע מיך זיכט. – איך בין אָבער אַהך אַה ראַהר קערלכע. זאָלל מיך אַה דוננער פערשלאַגע (זיעהט אין דען שפיעגעל) אַה בֵיזעל בין איך! אַה ביסכה דיקקער זעללט איך זייא. נוא, וואַס טוט מער דערמיט. דער מענש מאַכט זיך ניט זעלבסט. איך ווארד ערשט נאך אַמויהל אין דען הויף גאַנגע,
דען קאממער בעססער בייא זיך פאַקקע. יאַ, גומפלכה איס קאַה שוטה.
איך בין מיינע שמה געשייטער וויע זיע אַלל, זיע
{אוצע}
מיך אָסר אלל ניט.
}} pend
%%ed footnotetextB[ref{ric1}]{{texthebrew{אוצע}}: LR{‘foppen’, parencite[§,309]{Tendlau1860} textit{uzen}, parencite[43]{GuggenheimGruenberg1976} textit{uuzəә}, hessisch textit{uzen}, textit{utzen} parencite[281]{Hessen-NassauischesWB}.}}



pstart {texthebrew{ענדע דעס ערשטן אופצוגס.{begin{small}|liningnums{36}|end{small}}
}} pend


endnumbering
end{hebrew}end{Leftside}


begin{Rightside}

beginnumbering

pstart {large textbf{Elfter Auftritt}} pend
pstart textit{Gumpelchen alleine} pend


pstart Ich bin doch gottlob bei den Mädchen recht angesehen. – Sie haben mich alle gern. Da ist so eine aus Schmalstadt, die kann nicht von mir lassen. Da will ich drauf schwören, dass die verliebt in mich ist. Denn wenn ich mit ihr ein bisschen Spaß machen will, dann geht sie gleich fort, als ob sie nichts mit mir zu tun haben wollte; und das ist das rechte Anzeichen, dass sie in mich verliebt ist. Ja, Gumpelchen ist kein Narr! Ja, ja, sie geht mir ja nicht umsonst immer aus dem Weg, wenn sie mich sieht. Ich bin aber auch ein toller Kerl, soll mich der Donner erschlagen. textit{(Sieht in den Spiegel.)} Ah, ein schöner Mann bin ich. Ein bisschen dicker sollte ich sein. Nun, was tut man dann. Der Mensch macht sich nicht selbst. Ich werde erst noch einmal in den Hof gehen, dann kann man mehr zu sich packen. Ja, Gumpelchen ist kein Narr. Ich bin, meine Seele, gescheiter wie sie alle, sie foppen mich gewiss alle nicht. pend

pstart Ende des ersten Aufzugs. pend

endnumbering

end{Rightside}
end{pages}
Pages

end{document}









share|improve this question

























  • Your example is not really minimal and does not compile (mainly because of the fonts). Could you try to throw out all the stuff that is not strictly necessary for this problem?

    – DG'
    Feb 27 at 10:31











  • If I remove some of the stuff concerning the fonts I can compile your example. What I can see is that the page number and the line numbers don't align. If you want to fix that, you should move the the page number in the margin and (if needed) make the text narrower. Is this what you want?

    – DG'
    Feb 27 at 10:39











  • thanks! that is exactly what I want. But how do I "move the the page number in the margin "?

    – לאה פּאַסטעך
    Feb 27 at 10:57














0












0








0


1






Using the reledmac package I have trouble with putting the linenumbers inside of the print space (cf. picture).



enter image description here



The code in the preamble is now simply:



usepackage[parfill]{parskip}
usepackage[series={A,B,C}]{reledmac}
usepackage{reledpar}


%%%Xendnumberonlyfirstinline
Xendbeforepagenumber{S.,}
Xendafterpagenumber{:,}
Xendlineprefixsingle{Z.,}

setgoalfraction{0.85}

usepackage{url}
urlstyle{same}

lineation{section}
linenummargin{left}%%right für Zeilennummern rechts
%%%setRlineflag{}


usepackage{pdflscape} %%Querformatiges Bild

linenumincrement*{5}
firstlinenum*{0} %Zahl hochsetzen, um Titelei unnummeriert zu haben


How can I get the linenumber inside of the document?



A "minimal" Example with the full preamble:



% arara: xelatex

documentclass[10pt,twoside]{scrbook}
KOMAoptions
{
fontsize=10pt,
paper=24cm:17cm,
pagesize=pdftex,
DIV=calc,
} %%%weitere Einstellungen des Seitenspiegels



usepackage{leading}
leading{12pt}




usepackage[%%%text={12cm,17.8cm},
paperwidth=17cm,
paperheight=23cm,
top=1.6cm,%%%3.45cm,
bottom=3.45cm,%%%8.04cm,
inner=2.7cm,%%%4.15cm,
outer=2.3cm,%%%4.85cm,
%%% marginparsep=7mm,
%%%marginparwidth=48mm,
]{geometry} %%% Seitenlayout

%%usepackage[onehalfspacing]{setspace}

%%usepackage[bmargin=2.25cm]{geometry}


%%setheadsepline{0.4pt}
setkomafont{pageheadfoot}{normalfontnormalcolorsmall}setkomafont{pagenumber}{normalfont}

%Formatierung der Kopfzeilen:
addtokomafont{pagehead}{normalfont}


setkomafont{disposition}{normalcolorbfseries} %Schrift in Überschriften, Inhaltsverzeichnis

clubpenalty=10000
widowpenalty=10000

usepackage[parfill]{parskip}
usepackage[series={A,B,C}]{reledmac}
usepackage{reledpar}

usepackage{hyperref}
usepackage{epigraph} %für Zitate

usepackage{tipa} %%für IPA-Zeichen
%%%Xendnumberonlyfirstinline

Xendbeforepagenumber{S.,}
Xendafterpagenumber{:,}
Xendlineprefixsingle{Z.,}

setgoalfraction{0.85}

usepackage{url}
urlstyle{same}

lineation{section}
linenummargin{left}%%right für Zeilennummern rechts
%setRlineflag{}


usepackage{pdflscape} %%Querformatiges Bild

linenumincrement*{5}
firstlinenum*{0} %Zahl hochsetzen, um Titelei unnummeriert zu haben

maxchunks{10000}

% Hurenkinder und Schusterjungen verhindern
clubpenalty10000
widowpenalty10000
displaywidowpenalty=10000

usepackage{tabularx}

usepackage{color}
usepackage{multicol,multirow, bigdelim}%%times RAUS
usepackage{amsmath}
usepackage{fontspec}
usepackage{polyglossia, xunicode}
usepackage{libertine}
setmainfont[Ligatures=TeX]{Linux Libertine}%Linux Libertine O %%EzraSIL hat keine kursiva

letsvthefootnotethefootnote %idee wegen fußnotenabstand

setmainlanguage{german}
setotherlanguage{hebrew}
newfontfamilyhebrewfont[Script=Hebrew, Scale=0.8]{EzraSIL} %Keter YG %%hebräische schrift auf 9ppt verkleinert



%addsubsection definiert
makeatletter
newcommand*addsubsec{secdef@addsubsec@saddsubsec}
newcommand*{@addsubsec}{}
def@addsubsec[#1]#2{subsection*{#2}addcontentsline{toc}{subsection}{#1}
if@twosideifx@mkbothmarkbothmarkright{#1}fifi
}
newcommand*{@saddsubsec}[1]{subsection*{#1}@mkboth{}{}}
makeatother




%Header
usepackage[automark]{scrpage2}
pagestyle{scrheadings}
clearscrheadfoot
chead{headmark}
ohead{pagemark}
automark[section]{chapter}
renewcommand*{sectionmarkformat}{}
renewcommand*{chaptermarkformat}{}


setmainlanguage{german}
setotherlanguage{hebrew}




newcommandeinzugjid{hangindent=5mmhangafter=1}

newcommandspeaker[1]{noindent{#1} einzugjid
}

newcommandeinzug{hangindent=5mmhangafter=1}

newcommandspeakerd[1]{noindent
{textsc{#1}} einzug
}


usepackage[normalem]{ulem}



usepackage[german=guillemets]{csquotes}
usepackage[style=authoryear,language=ngerman]{biblatex} bibliography{LitGrobsdorfEdition}
renewcommand*{postnotedelim}{addcolon,}
DeclareFieldFormat{postnote}{#1}
DeclareFieldFormat{multipostnote}{#1}


deffootnote[normalparindent]
{0em}
{normalparindent}
{thefootnotemark ,}
newlength{normalparindent}
AtBeginDocument{setlength{normalparindent}{parindent}}

usepackage{bidi}autofootnoterule

deffootnote{1em}{0em}{thefootnotemark ,} %%neu aus Ricarda-Diss



wrapcontentX[A]{texthebrew}
makeatletter
renewcommand{footnoteruleA}{right@footnoterule}
makeatother



usepackage{gb4e}
noautomath

begin{document}




begin{pages}
begin{Leftside}begin{hebrew}
setRTL
beginnumbering

pstart {large{{texthebrew{textbf{איילפטער אויפטריטט}}}}} pend
pstart {texthebrew{גומפלכען אלליין}} pend




pstart {texthebrew{
איך בין דאָך גאָטטלויב בייא דיע מערערכער רעכט אַהגעזֵיעה –. זיע האָן מיך מיינע שמה אַלל גערן. דוא איס אַזוֹא אַהנע הויזע פֿון {שמאַלשטאַדט}, דיע לאָסט דאָך אַס חַזֶר קאַהן אַהג פֿוממער. דוֹא ווילל איך אַה שבועה דרוף טהוא, דאַס דיע פֿערליבט אין מיר איס. דען ווען איך איהר אַביסכה שפאַס מאַכע ווילל, דען גֵיהט זיע גלייך
{{begin{small}|liningnums{35}|end{small}}}
פֿאָרט, אַלס ווען זיע ניקס צו טוא וועלט מיט מיר האָן; און דאַס איס דער רעכטע סימן, דאַס זיע פֿערליעבט אין מיר איס. יאַ גומפלכה איס קאַה שוטה! – יאַ, יאַ, אום {בחינים} גֵיהט זיע מיר ניט איממער אויס דעם וועג, וואו זיע מיך זיכט. – איך בין אָבער אַהך אַה ראַהר קערלכע. זאָלל מיך אַה דוננער פערשלאַגע (זיעהט אין דען שפיעגעל) אַה בֵיזעל בין איך! אַה ביסכה דיקקער זעללט איך זייא. נוא, וואַס טוט מער דערמיט. דער מענש מאַכט זיך ניט זעלבסט. איך ווארד ערשט נאך אַמויהל אין דען הויף גאַנגע,
דען קאממער בעססער בייא זיך פאַקקע. יאַ, גומפלכה איס קאַה שוטה.
איך בין מיינע שמה געשייטער וויע זיע אַלל, זיע
{אוצע}
מיך אָסר אלל ניט.
}} pend
%%ed footnotetextB[ref{ric1}]{{texthebrew{אוצע}}: LR{‘foppen’, parencite[§,309]{Tendlau1860} textit{uzen}, parencite[43]{GuggenheimGruenberg1976} textit{uuzəә}, hessisch textit{uzen}, textit{utzen} parencite[281]{Hessen-NassauischesWB}.}}



pstart {texthebrew{ענדע דעס ערשטן אופצוגס.{begin{small}|liningnums{36}|end{small}}
}} pend


endnumbering
end{hebrew}end{Leftside}


begin{Rightside}

beginnumbering

pstart {large textbf{Elfter Auftritt}} pend
pstart textit{Gumpelchen alleine} pend


pstart Ich bin doch gottlob bei den Mädchen recht angesehen. – Sie haben mich alle gern. Da ist so eine aus Schmalstadt, die kann nicht von mir lassen. Da will ich drauf schwören, dass die verliebt in mich ist. Denn wenn ich mit ihr ein bisschen Spaß machen will, dann geht sie gleich fort, als ob sie nichts mit mir zu tun haben wollte; und das ist das rechte Anzeichen, dass sie in mich verliebt ist. Ja, Gumpelchen ist kein Narr! Ja, ja, sie geht mir ja nicht umsonst immer aus dem Weg, wenn sie mich sieht. Ich bin aber auch ein toller Kerl, soll mich der Donner erschlagen. textit{(Sieht in den Spiegel.)} Ah, ein schöner Mann bin ich. Ein bisschen dicker sollte ich sein. Nun, was tut man dann. Der Mensch macht sich nicht selbst. Ich werde erst noch einmal in den Hof gehen, dann kann man mehr zu sich packen. Ja, Gumpelchen ist kein Narr. Ich bin, meine Seele, gescheiter wie sie alle, sie foppen mich gewiss alle nicht. pend

pstart Ende des ersten Aufzugs. pend

endnumbering

end{Rightside}
end{pages}
Pages

end{document}









share|improve this question
















Using the reledmac package I have trouble with putting the linenumbers inside of the print space (cf. picture).



enter image description here



The code in the preamble is now simply:



usepackage[parfill]{parskip}
usepackage[series={A,B,C}]{reledmac}
usepackage{reledpar}


%%%Xendnumberonlyfirstinline
Xendbeforepagenumber{S.,}
Xendafterpagenumber{:,}
Xendlineprefixsingle{Z.,}

setgoalfraction{0.85}

usepackage{url}
urlstyle{same}

lineation{section}
linenummargin{left}%%right für Zeilennummern rechts
%%%setRlineflag{}


usepackage{pdflscape} %%Querformatiges Bild

linenumincrement*{5}
firstlinenum*{0} %Zahl hochsetzen, um Titelei unnummeriert zu haben


How can I get the linenumber inside of the document?



A "minimal" Example with the full preamble:



% arara: xelatex

documentclass[10pt,twoside]{scrbook}
KOMAoptions
{
fontsize=10pt,
paper=24cm:17cm,
pagesize=pdftex,
DIV=calc,
} %%%weitere Einstellungen des Seitenspiegels



usepackage{leading}
leading{12pt}




usepackage[%%%text={12cm,17.8cm},
paperwidth=17cm,
paperheight=23cm,
top=1.6cm,%%%3.45cm,
bottom=3.45cm,%%%8.04cm,
inner=2.7cm,%%%4.15cm,
outer=2.3cm,%%%4.85cm,
%%% marginparsep=7mm,
%%%marginparwidth=48mm,
]{geometry} %%% Seitenlayout

%%usepackage[onehalfspacing]{setspace}

%%usepackage[bmargin=2.25cm]{geometry}


%%setheadsepline{0.4pt}
setkomafont{pageheadfoot}{normalfontnormalcolorsmall}setkomafont{pagenumber}{normalfont}

%Formatierung der Kopfzeilen:
addtokomafont{pagehead}{normalfont}


setkomafont{disposition}{normalcolorbfseries} %Schrift in Überschriften, Inhaltsverzeichnis

clubpenalty=10000
widowpenalty=10000

usepackage[parfill]{parskip}
usepackage[series={A,B,C}]{reledmac}
usepackage{reledpar}

usepackage{hyperref}
usepackage{epigraph} %für Zitate

usepackage{tipa} %%für IPA-Zeichen
%%%Xendnumberonlyfirstinline

Xendbeforepagenumber{S.,}
Xendafterpagenumber{:,}
Xendlineprefixsingle{Z.,}

setgoalfraction{0.85}

usepackage{url}
urlstyle{same}

lineation{section}
linenummargin{left}%%right für Zeilennummern rechts
%setRlineflag{}


usepackage{pdflscape} %%Querformatiges Bild

linenumincrement*{5}
firstlinenum*{0} %Zahl hochsetzen, um Titelei unnummeriert zu haben

maxchunks{10000}

% Hurenkinder und Schusterjungen verhindern
clubpenalty10000
widowpenalty10000
displaywidowpenalty=10000

usepackage{tabularx}

usepackage{color}
usepackage{multicol,multirow, bigdelim}%%times RAUS
usepackage{amsmath}
usepackage{fontspec}
usepackage{polyglossia, xunicode}
usepackage{libertine}
setmainfont[Ligatures=TeX]{Linux Libertine}%Linux Libertine O %%EzraSIL hat keine kursiva

letsvthefootnotethefootnote %idee wegen fußnotenabstand

setmainlanguage{german}
setotherlanguage{hebrew}
newfontfamilyhebrewfont[Script=Hebrew, Scale=0.8]{EzraSIL} %Keter YG %%hebräische schrift auf 9ppt verkleinert



%addsubsection definiert
makeatletter
newcommand*addsubsec{secdef@addsubsec@saddsubsec}
newcommand*{@addsubsec}{}
def@addsubsec[#1]#2{subsection*{#2}addcontentsline{toc}{subsection}{#1}
if@twosideifx@mkbothmarkbothmarkright{#1}fifi
}
newcommand*{@saddsubsec}[1]{subsection*{#1}@mkboth{}{}}
makeatother




%Header
usepackage[automark]{scrpage2}
pagestyle{scrheadings}
clearscrheadfoot
chead{headmark}
ohead{pagemark}
automark[section]{chapter}
renewcommand*{sectionmarkformat}{}
renewcommand*{chaptermarkformat}{}


setmainlanguage{german}
setotherlanguage{hebrew}




newcommandeinzugjid{hangindent=5mmhangafter=1}

newcommandspeaker[1]{noindent{#1} einzugjid
}

newcommandeinzug{hangindent=5mmhangafter=1}

newcommandspeakerd[1]{noindent
{textsc{#1}} einzug
}


usepackage[normalem]{ulem}



usepackage[german=guillemets]{csquotes}
usepackage[style=authoryear,language=ngerman]{biblatex} bibliography{LitGrobsdorfEdition}
renewcommand*{postnotedelim}{addcolon,}
DeclareFieldFormat{postnote}{#1}
DeclareFieldFormat{multipostnote}{#1}


deffootnote[normalparindent]
{0em}
{normalparindent}
{thefootnotemark ,}
newlength{normalparindent}
AtBeginDocument{setlength{normalparindent}{parindent}}

usepackage{bidi}autofootnoterule

deffootnote{1em}{0em}{thefootnotemark ,} %%neu aus Ricarda-Diss



wrapcontentX[A]{texthebrew}
makeatletter
renewcommand{footnoteruleA}{right@footnoterule}
makeatother



usepackage{gb4e}
noautomath

begin{document}




begin{pages}
begin{Leftside}begin{hebrew}
setRTL
beginnumbering

pstart {large{{texthebrew{textbf{איילפטער אויפטריטט}}}}} pend
pstart {texthebrew{גומפלכען אלליין}} pend




pstart {texthebrew{
איך בין דאָך גאָטטלויב בייא דיע מערערכער רעכט אַהגעזֵיעה –. זיע האָן מיך מיינע שמה אַלל גערן. דוא איס אַזוֹא אַהנע הויזע פֿון {שמאַלשטאַדט}, דיע לאָסט דאָך אַס חַזֶר קאַהן אַהג פֿוממער. דוֹא ווילל איך אַה שבועה דרוף טהוא, דאַס דיע פֿערליבט אין מיר איס. דען ווען איך איהר אַביסכה שפאַס מאַכע ווילל, דען גֵיהט זיע גלייך
{{begin{small}|liningnums{35}|end{small}}}
פֿאָרט, אַלס ווען זיע ניקס צו טוא וועלט מיט מיר האָן; און דאַס איס דער רעכטע סימן, דאַס זיע פֿערליעבט אין מיר איס. יאַ גומפלכה איס קאַה שוטה! – יאַ, יאַ, אום {בחינים} גֵיהט זיע מיר ניט איממער אויס דעם וועג, וואו זיע מיך זיכט. – איך בין אָבער אַהך אַה ראַהר קערלכע. זאָלל מיך אַה דוננער פערשלאַגע (זיעהט אין דען שפיעגעל) אַה בֵיזעל בין איך! אַה ביסכה דיקקער זעללט איך זייא. נוא, וואַס טוט מער דערמיט. דער מענש מאַכט זיך ניט זעלבסט. איך ווארד ערשט נאך אַמויהל אין דען הויף גאַנגע,
דען קאממער בעססער בייא זיך פאַקקע. יאַ, גומפלכה איס קאַה שוטה.
איך בין מיינע שמה געשייטער וויע זיע אַלל, זיע
{אוצע}
מיך אָסר אלל ניט.
}} pend
%%ed footnotetextB[ref{ric1}]{{texthebrew{אוצע}}: LR{‘foppen’, parencite[§,309]{Tendlau1860} textit{uzen}, parencite[43]{GuggenheimGruenberg1976} textit{uuzəә}, hessisch textit{uzen}, textit{utzen} parencite[281]{Hessen-NassauischesWB}.}}



pstart {texthebrew{ענדע דעס ערשטן אופצוגס.{begin{small}|liningnums{36}|end{small}}
}} pend


endnumbering
end{hebrew}end{Leftside}


begin{Rightside}

beginnumbering

pstart {large textbf{Elfter Auftritt}} pend
pstart textit{Gumpelchen alleine} pend


pstart Ich bin doch gottlob bei den Mädchen recht angesehen. – Sie haben mich alle gern. Da ist so eine aus Schmalstadt, die kann nicht von mir lassen. Da will ich drauf schwören, dass die verliebt in mich ist. Denn wenn ich mit ihr ein bisschen Spaß machen will, dann geht sie gleich fort, als ob sie nichts mit mir zu tun haben wollte; und das ist das rechte Anzeichen, dass sie in mich verliebt ist. Ja, Gumpelchen ist kein Narr! Ja, ja, sie geht mir ja nicht umsonst immer aus dem Weg, wenn sie mich sieht. Ich bin aber auch ein toller Kerl, soll mich der Donner erschlagen. textit{(Sieht in den Spiegel.)} Ah, ein schöner Mann bin ich. Ein bisschen dicker sollte ich sein. Nun, was tut man dann. Der Mensch macht sich nicht selbst. Ich werde erst noch einmal in den Hof gehen, dann kann man mehr zu sich packen. Ja, Gumpelchen ist kein Narr. Ich bin, meine Seele, gescheiter wie sie alle, sie foppen mich gewiss alle nicht. pend

pstart Ende des ersten Aufzugs. pend

endnumbering

end{Rightside}
end{pages}
Pages

end{document}






line-numbering reledmac linenumber






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 27 at 10:26







לאה פּאַסטעך

















asked Feb 27 at 10:08









לאה פּאַסטעךלאה פּאַסטעך

806




806













  • Your example is not really minimal and does not compile (mainly because of the fonts). Could you try to throw out all the stuff that is not strictly necessary for this problem?

    – DG'
    Feb 27 at 10:31











  • If I remove some of the stuff concerning the fonts I can compile your example. What I can see is that the page number and the line numbers don't align. If you want to fix that, you should move the the page number in the margin and (if needed) make the text narrower. Is this what you want?

    – DG'
    Feb 27 at 10:39











  • thanks! that is exactly what I want. But how do I "move the the page number in the margin "?

    – לאה פּאַסטעך
    Feb 27 at 10:57



















  • Your example is not really minimal and does not compile (mainly because of the fonts). Could you try to throw out all the stuff that is not strictly necessary for this problem?

    – DG'
    Feb 27 at 10:31











  • If I remove some of the stuff concerning the fonts I can compile your example. What I can see is that the page number and the line numbers don't align. If you want to fix that, you should move the the page number in the margin and (if needed) make the text narrower. Is this what you want?

    – DG'
    Feb 27 at 10:39











  • thanks! that is exactly what I want. But how do I "move the the page number in the margin "?

    – לאה פּאַסטעך
    Feb 27 at 10:57

















Your example is not really minimal and does not compile (mainly because of the fonts). Could you try to throw out all the stuff that is not strictly necessary for this problem?

– DG'
Feb 27 at 10:31





Your example is not really minimal and does not compile (mainly because of the fonts). Could you try to throw out all the stuff that is not strictly necessary for this problem?

– DG'
Feb 27 at 10:31













If I remove some of the stuff concerning the fonts I can compile your example. What I can see is that the page number and the line numbers don't align. If you want to fix that, you should move the the page number in the margin and (if needed) make the text narrower. Is this what you want?

– DG'
Feb 27 at 10:39





If I remove some of the stuff concerning the fonts I can compile your example. What I can see is that the page number and the line numbers don't align. If you want to fix that, you should move the the page number in the margin and (if needed) make the text narrower. Is this what you want?

– DG'
Feb 27 at 10:39













thanks! that is exactly what I want. But how do I "move the the page number in the margin "?

– לאה פּאַסטעך
Feb 27 at 10:57





thanks! that is exactly what I want. But how do I "move the the page number in the margin "?

– לאה פּאַסטעך
Feb 27 at 10:57










1 Answer
1






active

oldest

votes


















3














You are using the depreciated package scrpage2, it has been replaced by scrlayer-scrpage, which allows you to define layers in the margin, which can contain the page number:



DeclareNewLayer[
oddpage,
rightmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hspace{marginparsep}pagemarkhfill%
}
]{pagenumber.odd}

DeclareNewLayer[
evenpage,
leftmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hfillpagemarkhspace{marginparsep}%
}
]{pagenumber.even}

AddLayersToPageStyle{scrheadings}{pagenumber.odd, pagenumber.even}


When you embed this in your document like that:



% arara: xelatex

documentclass[10pt,twoside]{scrbook}
KOMAoptions
{
fontsize=10pt,
paper=24cm:17cm,
pagesize=pdftex,
DIV=calc,
} %%%weitere Einstellungen des Seitenspiegels



usepackage{leading}
leading{12pt}




usepackage[%%%text={12cm,17.8cm},
paperwidth=17cm,
paperheight=23cm,
top=1.6cm,%%%3.45cm,
bottom=3.45cm,%%%8.04cm,
inner=2.7cm,%%%4.15cm,
outer=2.3cm,%%%4.85cm,
%%% marginparsep=7mm,
%%%marginparwidth=48mm,
]{geometry} %%% Seitenlayout

%%usepackage[onehalfspacing]{setspace}

%%usepackage[bmargin=2.25cm]{geometry}


%%setheadsepline{0.4pt}
setkomafont{pageheadfoot}{normalfontnormalcolorsmall}setkomafont{pagenumber}{normalfont}

%Formatierung der Kopfzeilen:
addtokomafont{pagehead}{normalfont}


setkomafont{disposition}{normalcolorbfseries} %Schrift in Überschriften, Inhaltsverzeichnis

clubpenalty=10000
widowpenalty=10000

usepackage[parfill]{parskip}
usepackage[series={A,B,C}]{reledmac}
usepackage{reledpar}

usepackage{hyperref}
usepackage{epigraph} %für Zitate

usepackage{tipa} %%für IPA-Zeichen
%%%Xendnumberonlyfirstinline

Xendbeforepagenumber{S.,}
Xendafterpagenumber{:,}
Xendlineprefixsingle{Z.,}

setgoalfraction{0.85}

usepackage{url}
urlstyle{same}

lineation{section}
linenummargin{left}%%right für Zeilennummern rechts
%setRlineflag{}


usepackage{pdflscape} %%Querformatiges Bild

linenumincrement*{5}
firstlinenum*{0} %Zahl hochsetzen, um Titelei unnummeriert zu haben

maxchunks{10000}

% Hurenkinder und Schusterjungen verhindern
clubpenalty10000
widowpenalty10000
displaywidowpenalty=10000

usepackage{tabularx}

usepackage{color}
usepackage{multicol,multirow, bigdelim}%%times RAUS
usepackage{amsmath}
usepackage{fontspec}
usepackage{polyglossia, xunicode}
usepackage{libertine}
% setmainfont[Ligatures=TeX]{Linux Libertine}%Linux Libertine O %%EzraSIL hat keine kursiva

letsvthefootnotethefootnote %idee wegen fußnotenabstand

setmainlanguage{german}
setotherlanguage{hebrew}
% newfontfamilyhebrewfont[Script=Hebrew, Scale=0.8]{EzraSIL} %Keter YG %%hebräische schrift auf 9ppt verkleinert



%addsubsection definiert
makeatletter
newcommand*addsubsec{secdef@addsubsec@saddsubsec}
newcommand*{@addsubsec}{}
def@addsubsec[#1]#2{subsection*{#2}addcontentsline{toc}{subsection}{#1}
if@twosideifx@mkbothmarkbothmarkright{#1}fifi
}
newcommand*{@saddsubsec}[1]{subsection*{#1}@mkboth{}{}}
makeatother




%Header
usepackage[automark]{scrlayer-scrpage}

DeclareNewLayer[
oddpage,
rightmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hspace{marginparsep}pagemarkhfill%
}
]{pagenumber.odd}

DeclareNewLayer[
evenpage,
leftmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hfillpagemarkhspace{marginparsep}%
}
]{pagenumber.even}

AddLayersToPageStyle{scrheadings}{pagenumber.odd, pagenumber.even}

clearscrheadfoot
chead{headmark}
automark[section]{chapter}
renewcommand*{sectionmarkformat}{}
renewcommand*{chaptermarkformat}{}


setmainlanguage{german}
setotherlanguage{hebrew}




newcommandeinzugjid{hangindent=5mmhangafter=1}

newcommandspeaker[1]{noindent{#1} einzugjid
}

newcommandeinzug{hangindent=5mmhangafter=1}

newcommandspeakerd[1]{noindent
{textsc{#1}} einzug
}


usepackage[normalem]{ulem}



usepackage[german=guillemets]{csquotes}
usepackage[style=authoryear,language=ngerman]{biblatex} bibliography{LitGrobsdorfEdition}
renewcommand*{postnotedelim}{addcolon,}
DeclareFieldFormat{postnote}{#1}
DeclareFieldFormat{multipostnote}{#1}


deffootnote[normalparindent]
{0em}
{normalparindent}
{thefootnotemark ,}
newlength{normalparindent}
AtBeginDocument{setlength{normalparindent}{parindent}}

usepackage{bidi}autofootnoterule

deffootnote{1em}{0em}{thefootnotemark ,} %%neu aus Ricarda-Diss



wrapcontentX[A]{texthebrew}
makeatletter
renewcommand{footnoteruleA}{right@footnoterule}
makeatother



usepackage{gb4e}
noautomath

begin{document}




begin{pages}
begin{Leftside}begin{hebrew}
setRTL
beginnumbering

pstart {large{{texthebrew{textbf{איילפטער אויפטריטט}}}}} pend
pstart {texthebrew{גומפלכען אלליין}} pend




pstart {texthebrew{
איך בין דאָך גאָטטלויב בייא דיע מערערכער רעכט אַהגעזֵיעה –. זיע האָן מיך מיינע שמה אַלל גערן. דוא איס אַזוֹא אַהנע הויזע פֿון {שמאַלשטאַדט}, דיע לאָסט דאָך אַס חַזֶר קאַהן אַהג פֿוממער. דוֹא ווילל איך אַה שבועה דרוף טהוא, דאַס דיע פֿערליבט אין מיר איס. דען ווען איך איהר אַביסכה שפאַס מאַכע ווילל, דען גֵיהט זיע גלייך
{{begin{small}|liningnums{35}|end{small}}}
פֿאָרט, אַלס ווען זיע ניקס צו טוא וועלט מיט מיר האָן; און דאַס איס דער רעכטע סימן, דאַס זיע פֿערליעבט אין מיר איס. יאַ גומפלכה איס קאַה שוטה! – יאַ, יאַ, אום {בחינים} גֵיהט זיע מיר ניט איממער אויס דעם וועג, וואו זיע מיך זיכט. – איך בין אָבער אַהך אַה ראַהר קערלכע. זאָלל מיך אַה דוננער פערשלאַגע (זיעהט אין דען שפיעגעל) אַה בֵיזעל בין איך! אַה ביסכה דיקקער זעללט איך זייא. נוא, וואַס טוט מער דערמיט. דער מענש מאַכט זיך ניט זעלבסט. איך ווארד ערשט נאך אַמויהל אין דען הויף גאַנגע,
דען קאממער בעססער בייא זיך פאַקקע. יאַ, גומפלכה איס קאַה שוטה.
איך בין מיינע שמה געשייטער וויע זיע אַלל, זיע
{אוצע}
מיך אָסר אלל ניט.
}} pend
%%ed footnotetextB[ref{ric1}]{{texthebrew{אוצע}}: LR{‘foppen’, parencite[§,309]{Tendlau1860} textit{uzen}, parencite[43]{GuggenheimGruenberg1976} textit{uuzəә}, hessisch textit{uzen}, textit{utzen} parencite[281]{Hessen-NassauischesWB}.}}



pstart {texthebrew{ענדע דעס ערשטן אופצוגס.{begin{small}|liningnums{36}|end{small}}
}} pend


endnumbering
end{hebrew}end{Leftside}


begin{Rightside}

beginnumbering

pstart {large textbf{Elfter Auftritt}} pend
pstart textit{Gumpelchen alleine} pend


pstart Ich bin doch gottlob bei den Mädchen recht angesehen. – Sie haben mich alle gern. Da ist so eine aus Schmalstadt, die kann nicht von mir lassen. Da will ich drauf schwören, dass die verliebt in mich ist. Denn wenn ich mit ihr ein bisschen Spaß machen will, dann geht sie gleich fort, als ob sie nichts mit mir zu tun haben wollte; und das ist das rechte Anzeichen, dass sie in mich verliebt ist. Ja, Gumpelchen ist kein Narr! Ja, ja, sie geht mir ja nicht umsonst immer aus dem Weg, wenn sie mich sieht. Ich bin aber auch ein toller Kerl, soll mich der Donner erschlagen. textit{(Sieht in den Spiegel.)} Ah, ein schöner Mann bin ich. Ein bisschen dicker sollte ich sein. Nun, was tut man dann. Der Mensch macht sich nicht selbst. Ich werde erst noch einmal in den Hof gehen, dann kann man mehr zu sich packen. Ja, Gumpelchen ist kein Narr. Ich bin, meine Seele, gescheiter wie sie alle, sie foppen mich gewiss alle nicht. pend

pstart Ende des ersten Aufzugs. pend

endnumbering

end{Rightside}
end{pages}
Pages

end{document}


You will get page numbers in the margins:



enter image description here






share|improve this answer


























  • Wow, thank you! It works – but with one strange problem: I only have the page-numbers for the right side but not for the left. Is there something missing?

    – לאה פּאַסטעך
    Feb 27 at 13:55











  • I know it's a mess …has it's history. But thanks again. I'll try to get it work for the left pages…

    – לאה פּאַסטעך
    Feb 27 at 14:28











  • Have a look at your original document, are you redefining the head somewhere else?

    – DG'
    Feb 27 at 14:28











  • I have the problem even with your example above – as far as I see it, there is no other definition of the header

    – לאה פּאַסטעך
    Feb 27 at 14:29











  • Strange. If you compile my example you get the page number 3 but not 2? Which TeX distribution are you using? Is it up to date?

    – DG'
    Feb 27 at 14:40











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476906%2freledmac-linenumbers-inside-of-the-print-space%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














You are using the depreciated package scrpage2, it has been replaced by scrlayer-scrpage, which allows you to define layers in the margin, which can contain the page number:



DeclareNewLayer[
oddpage,
rightmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hspace{marginparsep}pagemarkhfill%
}
]{pagenumber.odd}

DeclareNewLayer[
evenpage,
leftmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hfillpagemarkhspace{marginparsep}%
}
]{pagenumber.even}

AddLayersToPageStyle{scrheadings}{pagenumber.odd, pagenumber.even}


When you embed this in your document like that:



% arara: xelatex

documentclass[10pt,twoside]{scrbook}
KOMAoptions
{
fontsize=10pt,
paper=24cm:17cm,
pagesize=pdftex,
DIV=calc,
} %%%weitere Einstellungen des Seitenspiegels



usepackage{leading}
leading{12pt}




usepackage[%%%text={12cm,17.8cm},
paperwidth=17cm,
paperheight=23cm,
top=1.6cm,%%%3.45cm,
bottom=3.45cm,%%%8.04cm,
inner=2.7cm,%%%4.15cm,
outer=2.3cm,%%%4.85cm,
%%% marginparsep=7mm,
%%%marginparwidth=48mm,
]{geometry} %%% Seitenlayout

%%usepackage[onehalfspacing]{setspace}

%%usepackage[bmargin=2.25cm]{geometry}


%%setheadsepline{0.4pt}
setkomafont{pageheadfoot}{normalfontnormalcolorsmall}setkomafont{pagenumber}{normalfont}

%Formatierung der Kopfzeilen:
addtokomafont{pagehead}{normalfont}


setkomafont{disposition}{normalcolorbfseries} %Schrift in Überschriften, Inhaltsverzeichnis

clubpenalty=10000
widowpenalty=10000

usepackage[parfill]{parskip}
usepackage[series={A,B,C}]{reledmac}
usepackage{reledpar}

usepackage{hyperref}
usepackage{epigraph} %für Zitate

usepackage{tipa} %%für IPA-Zeichen
%%%Xendnumberonlyfirstinline

Xendbeforepagenumber{S.,}
Xendafterpagenumber{:,}
Xendlineprefixsingle{Z.,}

setgoalfraction{0.85}

usepackage{url}
urlstyle{same}

lineation{section}
linenummargin{left}%%right für Zeilennummern rechts
%setRlineflag{}


usepackage{pdflscape} %%Querformatiges Bild

linenumincrement*{5}
firstlinenum*{0} %Zahl hochsetzen, um Titelei unnummeriert zu haben

maxchunks{10000}

% Hurenkinder und Schusterjungen verhindern
clubpenalty10000
widowpenalty10000
displaywidowpenalty=10000

usepackage{tabularx}

usepackage{color}
usepackage{multicol,multirow, bigdelim}%%times RAUS
usepackage{amsmath}
usepackage{fontspec}
usepackage{polyglossia, xunicode}
usepackage{libertine}
% setmainfont[Ligatures=TeX]{Linux Libertine}%Linux Libertine O %%EzraSIL hat keine kursiva

letsvthefootnotethefootnote %idee wegen fußnotenabstand

setmainlanguage{german}
setotherlanguage{hebrew}
% newfontfamilyhebrewfont[Script=Hebrew, Scale=0.8]{EzraSIL} %Keter YG %%hebräische schrift auf 9ppt verkleinert



%addsubsection definiert
makeatletter
newcommand*addsubsec{secdef@addsubsec@saddsubsec}
newcommand*{@addsubsec}{}
def@addsubsec[#1]#2{subsection*{#2}addcontentsline{toc}{subsection}{#1}
if@twosideifx@mkbothmarkbothmarkright{#1}fifi
}
newcommand*{@saddsubsec}[1]{subsection*{#1}@mkboth{}{}}
makeatother




%Header
usepackage[automark]{scrlayer-scrpage}

DeclareNewLayer[
oddpage,
rightmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hspace{marginparsep}pagemarkhfill%
}
]{pagenumber.odd}

DeclareNewLayer[
evenpage,
leftmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hfillpagemarkhspace{marginparsep}%
}
]{pagenumber.even}

AddLayersToPageStyle{scrheadings}{pagenumber.odd, pagenumber.even}

clearscrheadfoot
chead{headmark}
automark[section]{chapter}
renewcommand*{sectionmarkformat}{}
renewcommand*{chaptermarkformat}{}


setmainlanguage{german}
setotherlanguage{hebrew}




newcommandeinzugjid{hangindent=5mmhangafter=1}

newcommandspeaker[1]{noindent{#1} einzugjid
}

newcommandeinzug{hangindent=5mmhangafter=1}

newcommandspeakerd[1]{noindent
{textsc{#1}} einzug
}


usepackage[normalem]{ulem}



usepackage[german=guillemets]{csquotes}
usepackage[style=authoryear,language=ngerman]{biblatex} bibliography{LitGrobsdorfEdition}
renewcommand*{postnotedelim}{addcolon,}
DeclareFieldFormat{postnote}{#1}
DeclareFieldFormat{multipostnote}{#1}


deffootnote[normalparindent]
{0em}
{normalparindent}
{thefootnotemark ,}
newlength{normalparindent}
AtBeginDocument{setlength{normalparindent}{parindent}}

usepackage{bidi}autofootnoterule

deffootnote{1em}{0em}{thefootnotemark ,} %%neu aus Ricarda-Diss



wrapcontentX[A]{texthebrew}
makeatletter
renewcommand{footnoteruleA}{right@footnoterule}
makeatother



usepackage{gb4e}
noautomath

begin{document}




begin{pages}
begin{Leftside}begin{hebrew}
setRTL
beginnumbering

pstart {large{{texthebrew{textbf{איילפטער אויפטריטט}}}}} pend
pstart {texthebrew{גומפלכען אלליין}} pend




pstart {texthebrew{
איך בין דאָך גאָטטלויב בייא דיע מערערכער רעכט אַהגעזֵיעה –. זיע האָן מיך מיינע שמה אַלל גערן. דוא איס אַזוֹא אַהנע הויזע פֿון {שמאַלשטאַדט}, דיע לאָסט דאָך אַס חַזֶר קאַהן אַהג פֿוממער. דוֹא ווילל איך אַה שבועה דרוף טהוא, דאַס דיע פֿערליבט אין מיר איס. דען ווען איך איהר אַביסכה שפאַס מאַכע ווילל, דען גֵיהט זיע גלייך
{{begin{small}|liningnums{35}|end{small}}}
פֿאָרט, אַלס ווען זיע ניקס צו טוא וועלט מיט מיר האָן; און דאַס איס דער רעכטע סימן, דאַס זיע פֿערליעבט אין מיר איס. יאַ גומפלכה איס קאַה שוטה! – יאַ, יאַ, אום {בחינים} גֵיהט זיע מיר ניט איממער אויס דעם וועג, וואו זיע מיך זיכט. – איך בין אָבער אַהך אַה ראַהר קערלכע. זאָלל מיך אַה דוננער פערשלאַגע (זיעהט אין דען שפיעגעל) אַה בֵיזעל בין איך! אַה ביסכה דיקקער זעללט איך זייא. נוא, וואַס טוט מער דערמיט. דער מענש מאַכט זיך ניט זעלבסט. איך ווארד ערשט נאך אַמויהל אין דען הויף גאַנגע,
דען קאממער בעססער בייא זיך פאַקקע. יאַ, גומפלכה איס קאַה שוטה.
איך בין מיינע שמה געשייטער וויע זיע אַלל, זיע
{אוצע}
מיך אָסר אלל ניט.
}} pend
%%ed footnotetextB[ref{ric1}]{{texthebrew{אוצע}}: LR{‘foppen’, parencite[§,309]{Tendlau1860} textit{uzen}, parencite[43]{GuggenheimGruenberg1976} textit{uuzəә}, hessisch textit{uzen}, textit{utzen} parencite[281]{Hessen-NassauischesWB}.}}



pstart {texthebrew{ענדע דעס ערשטן אופצוגס.{begin{small}|liningnums{36}|end{small}}
}} pend


endnumbering
end{hebrew}end{Leftside}


begin{Rightside}

beginnumbering

pstart {large textbf{Elfter Auftritt}} pend
pstart textit{Gumpelchen alleine} pend


pstart Ich bin doch gottlob bei den Mädchen recht angesehen. – Sie haben mich alle gern. Da ist so eine aus Schmalstadt, die kann nicht von mir lassen. Da will ich drauf schwören, dass die verliebt in mich ist. Denn wenn ich mit ihr ein bisschen Spaß machen will, dann geht sie gleich fort, als ob sie nichts mit mir zu tun haben wollte; und das ist das rechte Anzeichen, dass sie in mich verliebt ist. Ja, Gumpelchen ist kein Narr! Ja, ja, sie geht mir ja nicht umsonst immer aus dem Weg, wenn sie mich sieht. Ich bin aber auch ein toller Kerl, soll mich der Donner erschlagen. textit{(Sieht in den Spiegel.)} Ah, ein schöner Mann bin ich. Ein bisschen dicker sollte ich sein. Nun, was tut man dann. Der Mensch macht sich nicht selbst. Ich werde erst noch einmal in den Hof gehen, dann kann man mehr zu sich packen. Ja, Gumpelchen ist kein Narr. Ich bin, meine Seele, gescheiter wie sie alle, sie foppen mich gewiss alle nicht. pend

pstart Ende des ersten Aufzugs. pend

endnumbering

end{Rightside}
end{pages}
Pages

end{document}


You will get page numbers in the margins:



enter image description here






share|improve this answer


























  • Wow, thank you! It works – but with one strange problem: I only have the page-numbers for the right side but not for the left. Is there something missing?

    – לאה פּאַסטעך
    Feb 27 at 13:55











  • I know it's a mess …has it's history. But thanks again. I'll try to get it work for the left pages…

    – לאה פּאַסטעך
    Feb 27 at 14:28











  • Have a look at your original document, are you redefining the head somewhere else?

    – DG'
    Feb 27 at 14:28











  • I have the problem even with your example above – as far as I see it, there is no other definition of the header

    – לאה פּאַסטעך
    Feb 27 at 14:29











  • Strange. If you compile my example you get the page number 3 but not 2? Which TeX distribution are you using? Is it up to date?

    – DG'
    Feb 27 at 14:40
















3














You are using the depreciated package scrpage2, it has been replaced by scrlayer-scrpage, which allows you to define layers in the margin, which can contain the page number:



DeclareNewLayer[
oddpage,
rightmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hspace{marginparsep}pagemarkhfill%
}
]{pagenumber.odd}

DeclareNewLayer[
evenpage,
leftmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hfillpagemarkhspace{marginparsep}%
}
]{pagenumber.even}

AddLayersToPageStyle{scrheadings}{pagenumber.odd, pagenumber.even}


When you embed this in your document like that:



% arara: xelatex

documentclass[10pt,twoside]{scrbook}
KOMAoptions
{
fontsize=10pt,
paper=24cm:17cm,
pagesize=pdftex,
DIV=calc,
} %%%weitere Einstellungen des Seitenspiegels



usepackage{leading}
leading{12pt}




usepackage[%%%text={12cm,17.8cm},
paperwidth=17cm,
paperheight=23cm,
top=1.6cm,%%%3.45cm,
bottom=3.45cm,%%%8.04cm,
inner=2.7cm,%%%4.15cm,
outer=2.3cm,%%%4.85cm,
%%% marginparsep=7mm,
%%%marginparwidth=48mm,
]{geometry} %%% Seitenlayout

%%usepackage[onehalfspacing]{setspace}

%%usepackage[bmargin=2.25cm]{geometry}


%%setheadsepline{0.4pt}
setkomafont{pageheadfoot}{normalfontnormalcolorsmall}setkomafont{pagenumber}{normalfont}

%Formatierung der Kopfzeilen:
addtokomafont{pagehead}{normalfont}


setkomafont{disposition}{normalcolorbfseries} %Schrift in Überschriften, Inhaltsverzeichnis

clubpenalty=10000
widowpenalty=10000

usepackage[parfill]{parskip}
usepackage[series={A,B,C}]{reledmac}
usepackage{reledpar}

usepackage{hyperref}
usepackage{epigraph} %für Zitate

usepackage{tipa} %%für IPA-Zeichen
%%%Xendnumberonlyfirstinline

Xendbeforepagenumber{S.,}
Xendafterpagenumber{:,}
Xendlineprefixsingle{Z.,}

setgoalfraction{0.85}

usepackage{url}
urlstyle{same}

lineation{section}
linenummargin{left}%%right für Zeilennummern rechts
%setRlineflag{}


usepackage{pdflscape} %%Querformatiges Bild

linenumincrement*{5}
firstlinenum*{0} %Zahl hochsetzen, um Titelei unnummeriert zu haben

maxchunks{10000}

% Hurenkinder und Schusterjungen verhindern
clubpenalty10000
widowpenalty10000
displaywidowpenalty=10000

usepackage{tabularx}

usepackage{color}
usepackage{multicol,multirow, bigdelim}%%times RAUS
usepackage{amsmath}
usepackage{fontspec}
usepackage{polyglossia, xunicode}
usepackage{libertine}
% setmainfont[Ligatures=TeX]{Linux Libertine}%Linux Libertine O %%EzraSIL hat keine kursiva

letsvthefootnotethefootnote %idee wegen fußnotenabstand

setmainlanguage{german}
setotherlanguage{hebrew}
% newfontfamilyhebrewfont[Script=Hebrew, Scale=0.8]{EzraSIL} %Keter YG %%hebräische schrift auf 9ppt verkleinert



%addsubsection definiert
makeatletter
newcommand*addsubsec{secdef@addsubsec@saddsubsec}
newcommand*{@addsubsec}{}
def@addsubsec[#1]#2{subsection*{#2}addcontentsline{toc}{subsection}{#1}
if@twosideifx@mkbothmarkbothmarkright{#1}fifi
}
newcommand*{@saddsubsec}[1]{subsection*{#1}@mkboth{}{}}
makeatother




%Header
usepackage[automark]{scrlayer-scrpage}

DeclareNewLayer[
oddpage,
rightmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hspace{marginparsep}pagemarkhfill%
}
]{pagenumber.odd}

DeclareNewLayer[
evenpage,
leftmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hfillpagemarkhspace{marginparsep}%
}
]{pagenumber.even}

AddLayersToPageStyle{scrheadings}{pagenumber.odd, pagenumber.even}

clearscrheadfoot
chead{headmark}
automark[section]{chapter}
renewcommand*{sectionmarkformat}{}
renewcommand*{chaptermarkformat}{}


setmainlanguage{german}
setotherlanguage{hebrew}




newcommandeinzugjid{hangindent=5mmhangafter=1}

newcommandspeaker[1]{noindent{#1} einzugjid
}

newcommandeinzug{hangindent=5mmhangafter=1}

newcommandspeakerd[1]{noindent
{textsc{#1}} einzug
}


usepackage[normalem]{ulem}



usepackage[german=guillemets]{csquotes}
usepackage[style=authoryear,language=ngerman]{biblatex} bibliography{LitGrobsdorfEdition}
renewcommand*{postnotedelim}{addcolon,}
DeclareFieldFormat{postnote}{#1}
DeclareFieldFormat{multipostnote}{#1}


deffootnote[normalparindent]
{0em}
{normalparindent}
{thefootnotemark ,}
newlength{normalparindent}
AtBeginDocument{setlength{normalparindent}{parindent}}

usepackage{bidi}autofootnoterule

deffootnote{1em}{0em}{thefootnotemark ,} %%neu aus Ricarda-Diss



wrapcontentX[A]{texthebrew}
makeatletter
renewcommand{footnoteruleA}{right@footnoterule}
makeatother



usepackage{gb4e}
noautomath

begin{document}




begin{pages}
begin{Leftside}begin{hebrew}
setRTL
beginnumbering

pstart {large{{texthebrew{textbf{איילפטער אויפטריטט}}}}} pend
pstart {texthebrew{גומפלכען אלליין}} pend




pstart {texthebrew{
איך בין דאָך גאָטטלויב בייא דיע מערערכער רעכט אַהגעזֵיעה –. זיע האָן מיך מיינע שמה אַלל גערן. דוא איס אַזוֹא אַהנע הויזע פֿון {שמאַלשטאַדט}, דיע לאָסט דאָך אַס חַזֶר קאַהן אַהג פֿוממער. דוֹא ווילל איך אַה שבועה דרוף טהוא, דאַס דיע פֿערליבט אין מיר איס. דען ווען איך איהר אַביסכה שפאַס מאַכע ווילל, דען גֵיהט זיע גלייך
{{begin{small}|liningnums{35}|end{small}}}
פֿאָרט, אַלס ווען זיע ניקס צו טוא וועלט מיט מיר האָן; און דאַס איס דער רעכטע סימן, דאַס זיע פֿערליעבט אין מיר איס. יאַ גומפלכה איס קאַה שוטה! – יאַ, יאַ, אום {בחינים} גֵיהט זיע מיר ניט איממער אויס דעם וועג, וואו זיע מיך זיכט. – איך בין אָבער אַהך אַה ראַהר קערלכע. זאָלל מיך אַה דוננער פערשלאַגע (זיעהט אין דען שפיעגעל) אַה בֵיזעל בין איך! אַה ביסכה דיקקער זעללט איך זייא. נוא, וואַס טוט מער דערמיט. דער מענש מאַכט זיך ניט זעלבסט. איך ווארד ערשט נאך אַמויהל אין דען הויף גאַנגע,
דען קאממער בעססער בייא זיך פאַקקע. יאַ, גומפלכה איס קאַה שוטה.
איך בין מיינע שמה געשייטער וויע זיע אַלל, זיע
{אוצע}
מיך אָסר אלל ניט.
}} pend
%%ed footnotetextB[ref{ric1}]{{texthebrew{אוצע}}: LR{‘foppen’, parencite[§,309]{Tendlau1860} textit{uzen}, parencite[43]{GuggenheimGruenberg1976} textit{uuzəә}, hessisch textit{uzen}, textit{utzen} parencite[281]{Hessen-NassauischesWB}.}}



pstart {texthebrew{ענדע דעס ערשטן אופצוגס.{begin{small}|liningnums{36}|end{small}}
}} pend


endnumbering
end{hebrew}end{Leftside}


begin{Rightside}

beginnumbering

pstart {large textbf{Elfter Auftritt}} pend
pstart textit{Gumpelchen alleine} pend


pstart Ich bin doch gottlob bei den Mädchen recht angesehen. – Sie haben mich alle gern. Da ist so eine aus Schmalstadt, die kann nicht von mir lassen. Da will ich drauf schwören, dass die verliebt in mich ist. Denn wenn ich mit ihr ein bisschen Spaß machen will, dann geht sie gleich fort, als ob sie nichts mit mir zu tun haben wollte; und das ist das rechte Anzeichen, dass sie in mich verliebt ist. Ja, Gumpelchen ist kein Narr! Ja, ja, sie geht mir ja nicht umsonst immer aus dem Weg, wenn sie mich sieht. Ich bin aber auch ein toller Kerl, soll mich der Donner erschlagen. textit{(Sieht in den Spiegel.)} Ah, ein schöner Mann bin ich. Ein bisschen dicker sollte ich sein. Nun, was tut man dann. Der Mensch macht sich nicht selbst. Ich werde erst noch einmal in den Hof gehen, dann kann man mehr zu sich packen. Ja, Gumpelchen ist kein Narr. Ich bin, meine Seele, gescheiter wie sie alle, sie foppen mich gewiss alle nicht. pend

pstart Ende des ersten Aufzugs. pend

endnumbering

end{Rightside}
end{pages}
Pages

end{document}


You will get page numbers in the margins:



enter image description here






share|improve this answer


























  • Wow, thank you! It works – but with one strange problem: I only have the page-numbers for the right side but not for the left. Is there something missing?

    – לאה פּאַסטעך
    Feb 27 at 13:55











  • I know it's a mess …has it's history. But thanks again. I'll try to get it work for the left pages…

    – לאה פּאַסטעך
    Feb 27 at 14:28











  • Have a look at your original document, are you redefining the head somewhere else?

    – DG'
    Feb 27 at 14:28











  • I have the problem even with your example above – as far as I see it, there is no other definition of the header

    – לאה פּאַסטעך
    Feb 27 at 14:29











  • Strange. If you compile my example you get the page number 3 but not 2? Which TeX distribution are you using? Is it up to date?

    – DG'
    Feb 27 at 14:40














3












3








3







You are using the depreciated package scrpage2, it has been replaced by scrlayer-scrpage, which allows you to define layers in the margin, which can contain the page number:



DeclareNewLayer[
oddpage,
rightmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hspace{marginparsep}pagemarkhfill%
}
]{pagenumber.odd}

DeclareNewLayer[
evenpage,
leftmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hfillpagemarkhspace{marginparsep}%
}
]{pagenumber.even}

AddLayersToPageStyle{scrheadings}{pagenumber.odd, pagenumber.even}


When you embed this in your document like that:



% arara: xelatex

documentclass[10pt,twoside]{scrbook}
KOMAoptions
{
fontsize=10pt,
paper=24cm:17cm,
pagesize=pdftex,
DIV=calc,
} %%%weitere Einstellungen des Seitenspiegels



usepackage{leading}
leading{12pt}




usepackage[%%%text={12cm,17.8cm},
paperwidth=17cm,
paperheight=23cm,
top=1.6cm,%%%3.45cm,
bottom=3.45cm,%%%8.04cm,
inner=2.7cm,%%%4.15cm,
outer=2.3cm,%%%4.85cm,
%%% marginparsep=7mm,
%%%marginparwidth=48mm,
]{geometry} %%% Seitenlayout

%%usepackage[onehalfspacing]{setspace}

%%usepackage[bmargin=2.25cm]{geometry}


%%setheadsepline{0.4pt}
setkomafont{pageheadfoot}{normalfontnormalcolorsmall}setkomafont{pagenumber}{normalfont}

%Formatierung der Kopfzeilen:
addtokomafont{pagehead}{normalfont}


setkomafont{disposition}{normalcolorbfseries} %Schrift in Überschriften, Inhaltsverzeichnis

clubpenalty=10000
widowpenalty=10000

usepackage[parfill]{parskip}
usepackage[series={A,B,C}]{reledmac}
usepackage{reledpar}

usepackage{hyperref}
usepackage{epigraph} %für Zitate

usepackage{tipa} %%für IPA-Zeichen
%%%Xendnumberonlyfirstinline

Xendbeforepagenumber{S.,}
Xendafterpagenumber{:,}
Xendlineprefixsingle{Z.,}

setgoalfraction{0.85}

usepackage{url}
urlstyle{same}

lineation{section}
linenummargin{left}%%right für Zeilennummern rechts
%setRlineflag{}


usepackage{pdflscape} %%Querformatiges Bild

linenumincrement*{5}
firstlinenum*{0} %Zahl hochsetzen, um Titelei unnummeriert zu haben

maxchunks{10000}

% Hurenkinder und Schusterjungen verhindern
clubpenalty10000
widowpenalty10000
displaywidowpenalty=10000

usepackage{tabularx}

usepackage{color}
usepackage{multicol,multirow, bigdelim}%%times RAUS
usepackage{amsmath}
usepackage{fontspec}
usepackage{polyglossia, xunicode}
usepackage{libertine}
% setmainfont[Ligatures=TeX]{Linux Libertine}%Linux Libertine O %%EzraSIL hat keine kursiva

letsvthefootnotethefootnote %idee wegen fußnotenabstand

setmainlanguage{german}
setotherlanguage{hebrew}
% newfontfamilyhebrewfont[Script=Hebrew, Scale=0.8]{EzraSIL} %Keter YG %%hebräische schrift auf 9ppt verkleinert



%addsubsection definiert
makeatletter
newcommand*addsubsec{secdef@addsubsec@saddsubsec}
newcommand*{@addsubsec}{}
def@addsubsec[#1]#2{subsection*{#2}addcontentsline{toc}{subsection}{#1}
if@twosideifx@mkbothmarkbothmarkright{#1}fifi
}
newcommand*{@saddsubsec}[1]{subsection*{#1}@mkboth{}{}}
makeatother




%Header
usepackage[automark]{scrlayer-scrpage}

DeclareNewLayer[
oddpage,
rightmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hspace{marginparsep}pagemarkhfill%
}
]{pagenumber.odd}

DeclareNewLayer[
evenpage,
leftmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hfillpagemarkhspace{marginparsep}%
}
]{pagenumber.even}

AddLayersToPageStyle{scrheadings}{pagenumber.odd, pagenumber.even}

clearscrheadfoot
chead{headmark}
automark[section]{chapter}
renewcommand*{sectionmarkformat}{}
renewcommand*{chaptermarkformat}{}


setmainlanguage{german}
setotherlanguage{hebrew}




newcommandeinzugjid{hangindent=5mmhangafter=1}

newcommandspeaker[1]{noindent{#1} einzugjid
}

newcommandeinzug{hangindent=5mmhangafter=1}

newcommandspeakerd[1]{noindent
{textsc{#1}} einzug
}


usepackage[normalem]{ulem}



usepackage[german=guillemets]{csquotes}
usepackage[style=authoryear,language=ngerman]{biblatex} bibliography{LitGrobsdorfEdition}
renewcommand*{postnotedelim}{addcolon,}
DeclareFieldFormat{postnote}{#1}
DeclareFieldFormat{multipostnote}{#1}


deffootnote[normalparindent]
{0em}
{normalparindent}
{thefootnotemark ,}
newlength{normalparindent}
AtBeginDocument{setlength{normalparindent}{parindent}}

usepackage{bidi}autofootnoterule

deffootnote{1em}{0em}{thefootnotemark ,} %%neu aus Ricarda-Diss



wrapcontentX[A]{texthebrew}
makeatletter
renewcommand{footnoteruleA}{right@footnoterule}
makeatother



usepackage{gb4e}
noautomath

begin{document}




begin{pages}
begin{Leftside}begin{hebrew}
setRTL
beginnumbering

pstart {large{{texthebrew{textbf{איילפטער אויפטריטט}}}}} pend
pstart {texthebrew{גומפלכען אלליין}} pend




pstart {texthebrew{
איך בין דאָך גאָטטלויב בייא דיע מערערכער רעכט אַהגעזֵיעה –. זיע האָן מיך מיינע שמה אַלל גערן. דוא איס אַזוֹא אַהנע הויזע פֿון {שמאַלשטאַדט}, דיע לאָסט דאָך אַס חַזֶר קאַהן אַהג פֿוממער. דוֹא ווילל איך אַה שבועה דרוף טהוא, דאַס דיע פֿערליבט אין מיר איס. דען ווען איך איהר אַביסכה שפאַס מאַכע ווילל, דען גֵיהט זיע גלייך
{{begin{small}|liningnums{35}|end{small}}}
פֿאָרט, אַלס ווען זיע ניקס צו טוא וועלט מיט מיר האָן; און דאַס איס דער רעכטע סימן, דאַס זיע פֿערליעבט אין מיר איס. יאַ גומפלכה איס קאַה שוטה! – יאַ, יאַ, אום {בחינים} גֵיהט זיע מיר ניט איממער אויס דעם וועג, וואו זיע מיך זיכט. – איך בין אָבער אַהך אַה ראַהר קערלכע. זאָלל מיך אַה דוננער פערשלאַגע (זיעהט אין דען שפיעגעל) אַה בֵיזעל בין איך! אַה ביסכה דיקקער זעללט איך זייא. נוא, וואַס טוט מער דערמיט. דער מענש מאַכט זיך ניט זעלבסט. איך ווארד ערשט נאך אַמויהל אין דען הויף גאַנגע,
דען קאממער בעססער בייא זיך פאַקקע. יאַ, גומפלכה איס קאַה שוטה.
איך בין מיינע שמה געשייטער וויע זיע אַלל, זיע
{אוצע}
מיך אָסר אלל ניט.
}} pend
%%ed footnotetextB[ref{ric1}]{{texthebrew{אוצע}}: LR{‘foppen’, parencite[§,309]{Tendlau1860} textit{uzen}, parencite[43]{GuggenheimGruenberg1976} textit{uuzəә}, hessisch textit{uzen}, textit{utzen} parencite[281]{Hessen-NassauischesWB}.}}



pstart {texthebrew{ענדע דעס ערשטן אופצוגס.{begin{small}|liningnums{36}|end{small}}
}} pend


endnumbering
end{hebrew}end{Leftside}


begin{Rightside}

beginnumbering

pstart {large textbf{Elfter Auftritt}} pend
pstart textit{Gumpelchen alleine} pend


pstart Ich bin doch gottlob bei den Mädchen recht angesehen. – Sie haben mich alle gern. Da ist so eine aus Schmalstadt, die kann nicht von mir lassen. Da will ich drauf schwören, dass die verliebt in mich ist. Denn wenn ich mit ihr ein bisschen Spaß machen will, dann geht sie gleich fort, als ob sie nichts mit mir zu tun haben wollte; und das ist das rechte Anzeichen, dass sie in mich verliebt ist. Ja, Gumpelchen ist kein Narr! Ja, ja, sie geht mir ja nicht umsonst immer aus dem Weg, wenn sie mich sieht. Ich bin aber auch ein toller Kerl, soll mich der Donner erschlagen. textit{(Sieht in den Spiegel.)} Ah, ein schöner Mann bin ich. Ein bisschen dicker sollte ich sein. Nun, was tut man dann. Der Mensch macht sich nicht selbst. Ich werde erst noch einmal in den Hof gehen, dann kann man mehr zu sich packen. Ja, Gumpelchen ist kein Narr. Ich bin, meine Seele, gescheiter wie sie alle, sie foppen mich gewiss alle nicht. pend

pstart Ende des ersten Aufzugs. pend

endnumbering

end{Rightside}
end{pages}
Pages

end{document}


You will get page numbers in the margins:



enter image description here






share|improve this answer















You are using the depreciated package scrpage2, it has been replaced by scrlayer-scrpage, which allows you to define layers in the margin, which can contain the page number:



DeclareNewLayer[
oddpage,
rightmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hspace{marginparsep}pagemarkhfill%
}
]{pagenumber.odd}

DeclareNewLayer[
evenpage,
leftmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hfillpagemarkhspace{marginparsep}%
}
]{pagenumber.even}

AddLayersToPageStyle{scrheadings}{pagenumber.odd, pagenumber.even}


When you embed this in your document like that:



% arara: xelatex

documentclass[10pt,twoside]{scrbook}
KOMAoptions
{
fontsize=10pt,
paper=24cm:17cm,
pagesize=pdftex,
DIV=calc,
} %%%weitere Einstellungen des Seitenspiegels



usepackage{leading}
leading{12pt}




usepackage[%%%text={12cm,17.8cm},
paperwidth=17cm,
paperheight=23cm,
top=1.6cm,%%%3.45cm,
bottom=3.45cm,%%%8.04cm,
inner=2.7cm,%%%4.15cm,
outer=2.3cm,%%%4.85cm,
%%% marginparsep=7mm,
%%%marginparwidth=48mm,
]{geometry} %%% Seitenlayout

%%usepackage[onehalfspacing]{setspace}

%%usepackage[bmargin=2.25cm]{geometry}


%%setheadsepline{0.4pt}
setkomafont{pageheadfoot}{normalfontnormalcolorsmall}setkomafont{pagenumber}{normalfont}

%Formatierung der Kopfzeilen:
addtokomafont{pagehead}{normalfont}


setkomafont{disposition}{normalcolorbfseries} %Schrift in Überschriften, Inhaltsverzeichnis

clubpenalty=10000
widowpenalty=10000

usepackage[parfill]{parskip}
usepackage[series={A,B,C}]{reledmac}
usepackage{reledpar}

usepackage{hyperref}
usepackage{epigraph} %für Zitate

usepackage{tipa} %%für IPA-Zeichen
%%%Xendnumberonlyfirstinline

Xendbeforepagenumber{S.,}
Xendafterpagenumber{:,}
Xendlineprefixsingle{Z.,}

setgoalfraction{0.85}

usepackage{url}
urlstyle{same}

lineation{section}
linenummargin{left}%%right für Zeilennummern rechts
%setRlineflag{}


usepackage{pdflscape} %%Querformatiges Bild

linenumincrement*{5}
firstlinenum*{0} %Zahl hochsetzen, um Titelei unnummeriert zu haben

maxchunks{10000}

% Hurenkinder und Schusterjungen verhindern
clubpenalty10000
widowpenalty10000
displaywidowpenalty=10000

usepackage{tabularx}

usepackage{color}
usepackage{multicol,multirow, bigdelim}%%times RAUS
usepackage{amsmath}
usepackage{fontspec}
usepackage{polyglossia, xunicode}
usepackage{libertine}
% setmainfont[Ligatures=TeX]{Linux Libertine}%Linux Libertine O %%EzraSIL hat keine kursiva

letsvthefootnotethefootnote %idee wegen fußnotenabstand

setmainlanguage{german}
setotherlanguage{hebrew}
% newfontfamilyhebrewfont[Script=Hebrew, Scale=0.8]{EzraSIL} %Keter YG %%hebräische schrift auf 9ppt verkleinert



%addsubsection definiert
makeatletter
newcommand*addsubsec{secdef@addsubsec@saddsubsec}
newcommand*{@addsubsec}{}
def@addsubsec[#1]#2{subsection*{#2}addcontentsline{toc}{subsection}{#1}
if@twosideifx@mkbothmarkbothmarkright{#1}fifi
}
newcommand*{@saddsubsec}[1]{subsection*{#1}@mkboth{}{}}
makeatother




%Header
usepackage[automark]{scrlayer-scrpage}

DeclareNewLayer[
oddpage,
rightmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hspace{marginparsep}pagemarkhfill%
}
]{pagenumber.odd}

DeclareNewLayer[
evenpage,
leftmargin,
height=1in+voffset+topmargin+headheight,
contents={usekomafont{pageheadfoot}usekomafont{pagehead}%
vfill%
hfillpagemarkhspace{marginparsep}%
}
]{pagenumber.even}

AddLayersToPageStyle{scrheadings}{pagenumber.odd, pagenumber.even}

clearscrheadfoot
chead{headmark}
automark[section]{chapter}
renewcommand*{sectionmarkformat}{}
renewcommand*{chaptermarkformat}{}


setmainlanguage{german}
setotherlanguage{hebrew}




newcommandeinzugjid{hangindent=5mmhangafter=1}

newcommandspeaker[1]{noindent{#1} einzugjid
}

newcommandeinzug{hangindent=5mmhangafter=1}

newcommandspeakerd[1]{noindent
{textsc{#1}} einzug
}


usepackage[normalem]{ulem}



usepackage[german=guillemets]{csquotes}
usepackage[style=authoryear,language=ngerman]{biblatex} bibliography{LitGrobsdorfEdition}
renewcommand*{postnotedelim}{addcolon,}
DeclareFieldFormat{postnote}{#1}
DeclareFieldFormat{multipostnote}{#1}


deffootnote[normalparindent]
{0em}
{normalparindent}
{thefootnotemark ,}
newlength{normalparindent}
AtBeginDocument{setlength{normalparindent}{parindent}}

usepackage{bidi}autofootnoterule

deffootnote{1em}{0em}{thefootnotemark ,} %%neu aus Ricarda-Diss



wrapcontentX[A]{texthebrew}
makeatletter
renewcommand{footnoteruleA}{right@footnoterule}
makeatother



usepackage{gb4e}
noautomath

begin{document}




begin{pages}
begin{Leftside}begin{hebrew}
setRTL
beginnumbering

pstart {large{{texthebrew{textbf{איילפטער אויפטריטט}}}}} pend
pstart {texthebrew{גומפלכען אלליין}} pend




pstart {texthebrew{
איך בין דאָך גאָטטלויב בייא דיע מערערכער רעכט אַהגעזֵיעה –. זיע האָן מיך מיינע שמה אַלל גערן. דוא איס אַזוֹא אַהנע הויזע פֿון {שמאַלשטאַדט}, דיע לאָסט דאָך אַס חַזֶר קאַהן אַהג פֿוממער. דוֹא ווילל איך אַה שבועה דרוף טהוא, דאַס דיע פֿערליבט אין מיר איס. דען ווען איך איהר אַביסכה שפאַס מאַכע ווילל, דען גֵיהט זיע גלייך
{{begin{small}|liningnums{35}|end{small}}}
פֿאָרט, אַלס ווען זיע ניקס צו טוא וועלט מיט מיר האָן; און דאַס איס דער רעכטע סימן, דאַס זיע פֿערליעבט אין מיר איס. יאַ גומפלכה איס קאַה שוטה! – יאַ, יאַ, אום {בחינים} גֵיהט זיע מיר ניט איממער אויס דעם וועג, וואו זיע מיך זיכט. – איך בין אָבער אַהך אַה ראַהר קערלכע. זאָלל מיך אַה דוננער פערשלאַגע (זיעהט אין דען שפיעגעל) אַה בֵיזעל בין איך! אַה ביסכה דיקקער זעללט איך זייא. נוא, וואַס טוט מער דערמיט. דער מענש מאַכט זיך ניט זעלבסט. איך ווארד ערשט נאך אַמויהל אין דען הויף גאַנגע,
דען קאממער בעססער בייא זיך פאַקקע. יאַ, גומפלכה איס קאַה שוטה.
איך בין מיינע שמה געשייטער וויע זיע אַלל, זיע
{אוצע}
מיך אָסר אלל ניט.
}} pend
%%ed footnotetextB[ref{ric1}]{{texthebrew{אוצע}}: LR{‘foppen’, parencite[§,309]{Tendlau1860} textit{uzen}, parencite[43]{GuggenheimGruenberg1976} textit{uuzəә}, hessisch textit{uzen}, textit{utzen} parencite[281]{Hessen-NassauischesWB}.}}



pstart {texthebrew{ענדע דעס ערשטן אופצוגס.{begin{small}|liningnums{36}|end{small}}
}} pend


endnumbering
end{hebrew}end{Leftside}


begin{Rightside}

beginnumbering

pstart {large textbf{Elfter Auftritt}} pend
pstart textit{Gumpelchen alleine} pend


pstart Ich bin doch gottlob bei den Mädchen recht angesehen. – Sie haben mich alle gern. Da ist so eine aus Schmalstadt, die kann nicht von mir lassen. Da will ich drauf schwören, dass die verliebt in mich ist. Denn wenn ich mit ihr ein bisschen Spaß machen will, dann geht sie gleich fort, als ob sie nichts mit mir zu tun haben wollte; und das ist das rechte Anzeichen, dass sie in mich verliebt ist. Ja, Gumpelchen ist kein Narr! Ja, ja, sie geht mir ja nicht umsonst immer aus dem Weg, wenn sie mich sieht. Ich bin aber auch ein toller Kerl, soll mich der Donner erschlagen. textit{(Sieht in den Spiegel.)} Ah, ein schöner Mann bin ich. Ein bisschen dicker sollte ich sein. Nun, was tut man dann. Der Mensch macht sich nicht selbst. Ich werde erst noch einmal in den Hof gehen, dann kann man mehr zu sich packen. Ja, Gumpelchen ist kein Narr. Ich bin, meine Seele, gescheiter wie sie alle, sie foppen mich gewiss alle nicht. pend

pstart Ende des ersten Aufzugs. pend

endnumbering

end{Rightside}
end{pages}
Pages

end{document}


You will get page numbers in the margins:



enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 27 at 14:52

























answered Feb 27 at 13:46









DG'DG'

10.7k21844




10.7k21844













  • Wow, thank you! It works – but with one strange problem: I only have the page-numbers for the right side but not for the left. Is there something missing?

    – לאה פּאַסטעך
    Feb 27 at 13:55











  • I know it's a mess …has it's history. But thanks again. I'll try to get it work for the left pages…

    – לאה פּאַסטעך
    Feb 27 at 14:28











  • Have a look at your original document, are you redefining the head somewhere else?

    – DG'
    Feb 27 at 14:28











  • I have the problem even with your example above – as far as I see it, there is no other definition of the header

    – לאה פּאַסטעך
    Feb 27 at 14:29











  • Strange. If you compile my example you get the page number 3 but not 2? Which TeX distribution are you using? Is it up to date?

    – DG'
    Feb 27 at 14:40



















  • Wow, thank you! It works – but with one strange problem: I only have the page-numbers for the right side but not for the left. Is there something missing?

    – לאה פּאַסטעך
    Feb 27 at 13:55











  • I know it's a mess …has it's history. But thanks again. I'll try to get it work for the left pages…

    – לאה פּאַסטעך
    Feb 27 at 14:28











  • Have a look at your original document, are you redefining the head somewhere else?

    – DG'
    Feb 27 at 14:28











  • I have the problem even with your example above – as far as I see it, there is no other definition of the header

    – לאה פּאַסטעך
    Feb 27 at 14:29











  • Strange. If you compile my example you get the page number 3 but not 2? Which TeX distribution are you using? Is it up to date?

    – DG'
    Feb 27 at 14:40

















Wow, thank you! It works – but with one strange problem: I only have the page-numbers for the right side but not for the left. Is there something missing?

– לאה פּאַסטעך
Feb 27 at 13:55





Wow, thank you! It works – but with one strange problem: I only have the page-numbers for the right side but not for the left. Is there something missing?

– לאה פּאַסטעך
Feb 27 at 13:55













I know it's a mess …has it's history. But thanks again. I'll try to get it work for the left pages…

– לאה פּאַסטעך
Feb 27 at 14:28





I know it's a mess …has it's history. But thanks again. I'll try to get it work for the left pages…

– לאה פּאַסטעך
Feb 27 at 14:28













Have a look at your original document, are you redefining the head somewhere else?

– DG'
Feb 27 at 14:28





Have a look at your original document, are you redefining the head somewhere else?

– DG'
Feb 27 at 14:28













I have the problem even with your example above – as far as I see it, there is no other definition of the header

– לאה פּאַסטעך
Feb 27 at 14:29





I have the problem even with your example above – as far as I see it, there is no other definition of the header

– לאה פּאַסטעך
Feb 27 at 14:29













Strange. If you compile my example you get the page number 3 but not 2? Which TeX distribution are you using? Is it up to date?

– DG'
Feb 27 at 14:40





Strange. If you compile my example you get the page number 3 but not 2? Which TeX distribution are you using? Is it up to date?

– DG'
Feb 27 at 14:40


















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476906%2freledmac-linenumbers-inside-of-the-print-space%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?