How to restart numbering of lines in “reledpar” package











up vote
2
down vote

favorite












I'm trying to learn how to use the package "reledpar". In particular I would like to have multiple texts on a page and their translations on the facing page. Thus I saw that using reledpar package (coming with the reledmac) could be the path to follow.



I start by the following simple code:



documentclass[twoside]{book}

usepackage{reledmac}
usepackage{reledpar}

begin{document}

begin{pages}
begin{Leftside}
beginnumbering
pstart
1L first left text: Received shutters expenses
ye he pleasant. Drift as blind above at up. No up simple county stairs
do should praise as. Drawings sir gay together landlord had law
smallest. Formerly welcomed attended declared met say unlocked.
Jennings outlived no dwelling denoting in peculiar as he believed.
Behaviour excellent middleton be as it curiosity departure ourselves.
pend
%
pstart
setcounter{pstartL}{0}
2L second left text: On no twenty spring of in
esteem spirit likely estate. Continue new you declared differed
learning bringing honoured. At mean mind so upon they rent am walk.
Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
gone him his dear sure. Fat decisively estimating affronting
assistance not. Resolve pursuit regular so calling me. West he plan
girl been my then up no.
pend
endnumbering
end{Leftside}
begin{Rightside}
beginnumbering
pstart
1R first right text: Received shutters expenses
ye he pleasant. Drift as blind above at up. No up simple county stairs
do should praise as. Drawings sir gay together landlord had law
smallest. Formerly welcomed attended declared met say unlocked.
Jennings outlived no dwelling denoting in peculiar as he believed.
Behaviour excellent middleton be as it curiosity departure ourselves.
pend
%
pstart
setcounter{pstartR}{0}
2R second right text: On no twenty spring of in
esteem spirit likely estate. Continue new you declared differed
learning bringing honoured. At mean mind so upon they rent am walk.
Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
gone him his dear sure. Fat decisively estimating affronting
assistance not. Resolve pursuit regular so calling me. West he plan
girl been my then up no.
pend
endnumbering
end{Rightside}
end{pages}
Pages

end{document}


However, both in the Leftside and Rightside, I would like the line numbering to restart from 0 when the second text starts. To do so, I checkd on the CTAN documentation, and I inserted



setcounter{pstartL}{0}

setcounter{pstartR}{0}


To set the pstart counter to zero again. However nothing happen in the result, and I really cannot understand why.



Also I would like to spread more the two texts on both sides, hence to insert more vertical space where now I have the % sign. I tried inserting it manually (which is obviously not the best solution), but it's not really a good result. Do any of you have a suggestion?



I Thank you already in advance for any comment and answer on this subject!










share|improve this question







New contributor




M. M. R. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • The counters in TeX sometimes require double compilation to appear correctly in the output file.
    – Harald Lichtenstein
    2 days ago















up vote
2
down vote

favorite












I'm trying to learn how to use the package "reledpar". In particular I would like to have multiple texts on a page and their translations on the facing page. Thus I saw that using reledpar package (coming with the reledmac) could be the path to follow.



I start by the following simple code:



documentclass[twoside]{book}

usepackage{reledmac}
usepackage{reledpar}

begin{document}

begin{pages}
begin{Leftside}
beginnumbering
pstart
1L first left text: Received shutters expenses
ye he pleasant. Drift as blind above at up. No up simple county stairs
do should praise as. Drawings sir gay together landlord had law
smallest. Formerly welcomed attended declared met say unlocked.
Jennings outlived no dwelling denoting in peculiar as he believed.
Behaviour excellent middleton be as it curiosity departure ourselves.
pend
%
pstart
setcounter{pstartL}{0}
2L second left text: On no twenty spring of in
esteem spirit likely estate. Continue new you declared differed
learning bringing honoured. At mean mind so upon they rent am walk.
Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
gone him his dear sure. Fat decisively estimating affronting
assistance not. Resolve pursuit regular so calling me. West he plan
girl been my then up no.
pend
endnumbering
end{Leftside}
begin{Rightside}
beginnumbering
pstart
1R first right text: Received shutters expenses
ye he pleasant. Drift as blind above at up. No up simple county stairs
do should praise as. Drawings sir gay together landlord had law
smallest. Formerly welcomed attended declared met say unlocked.
Jennings outlived no dwelling denoting in peculiar as he believed.
Behaviour excellent middleton be as it curiosity departure ourselves.
pend
%
pstart
setcounter{pstartR}{0}
2R second right text: On no twenty spring of in
esteem spirit likely estate. Continue new you declared differed
learning bringing honoured. At mean mind so upon they rent am walk.
Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
gone him his dear sure. Fat decisively estimating affronting
assistance not. Resolve pursuit regular so calling me. West he plan
girl been my then up no.
pend
endnumbering
end{Rightside}
end{pages}
Pages

end{document}


However, both in the Leftside and Rightside, I would like the line numbering to restart from 0 when the second text starts. To do so, I checkd on the CTAN documentation, and I inserted



setcounter{pstartL}{0}

setcounter{pstartR}{0}


To set the pstart counter to zero again. However nothing happen in the result, and I really cannot understand why.



Also I would like to spread more the two texts on both sides, hence to insert more vertical space where now I have the % sign. I tried inserting it manually (which is obviously not the best solution), but it's not really a good result. Do any of you have a suggestion?



I Thank you already in advance for any comment and answer on this subject!










share|improve this question







New contributor




M. M. R. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • The counters in TeX sometimes require double compilation to appear correctly in the output file.
    – Harald Lichtenstein
    2 days ago













up vote
2
down vote

favorite









up vote
2
down vote

favorite











I'm trying to learn how to use the package "reledpar". In particular I would like to have multiple texts on a page and their translations on the facing page. Thus I saw that using reledpar package (coming with the reledmac) could be the path to follow.



I start by the following simple code:



documentclass[twoside]{book}

usepackage{reledmac}
usepackage{reledpar}

begin{document}

begin{pages}
begin{Leftside}
beginnumbering
pstart
1L first left text: Received shutters expenses
ye he pleasant. Drift as blind above at up. No up simple county stairs
do should praise as. Drawings sir gay together landlord had law
smallest. Formerly welcomed attended declared met say unlocked.
Jennings outlived no dwelling denoting in peculiar as he believed.
Behaviour excellent middleton be as it curiosity departure ourselves.
pend
%
pstart
setcounter{pstartL}{0}
2L second left text: On no twenty spring of in
esteem spirit likely estate. Continue new you declared differed
learning bringing honoured. At mean mind so upon they rent am walk.
Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
gone him his dear sure. Fat decisively estimating affronting
assistance not. Resolve pursuit regular so calling me. West he plan
girl been my then up no.
pend
endnumbering
end{Leftside}
begin{Rightside}
beginnumbering
pstart
1R first right text: Received shutters expenses
ye he pleasant. Drift as blind above at up. No up simple county stairs
do should praise as. Drawings sir gay together landlord had law
smallest. Formerly welcomed attended declared met say unlocked.
Jennings outlived no dwelling denoting in peculiar as he believed.
Behaviour excellent middleton be as it curiosity departure ourselves.
pend
%
pstart
setcounter{pstartR}{0}
2R second right text: On no twenty spring of in
esteem spirit likely estate. Continue new you declared differed
learning bringing honoured. At mean mind so upon they rent am walk.
Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
gone him his dear sure. Fat decisively estimating affronting
assistance not. Resolve pursuit regular so calling me. West he plan
girl been my then up no.
pend
endnumbering
end{Rightside}
end{pages}
Pages

end{document}


However, both in the Leftside and Rightside, I would like the line numbering to restart from 0 when the second text starts. To do so, I checkd on the CTAN documentation, and I inserted



setcounter{pstartL}{0}

setcounter{pstartR}{0}


To set the pstart counter to zero again. However nothing happen in the result, and I really cannot understand why.



Also I would like to spread more the two texts on both sides, hence to insert more vertical space where now I have the % sign. I tried inserting it manually (which is obviously not the best solution), but it's not really a good result. Do any of you have a suggestion?



I Thank you already in advance for any comment and answer on this subject!










share|improve this question







New contributor




M. M. R. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I'm trying to learn how to use the package "reledpar". In particular I would like to have multiple texts on a page and their translations on the facing page. Thus I saw that using reledpar package (coming with the reledmac) could be the path to follow.



I start by the following simple code:



documentclass[twoside]{book}

usepackage{reledmac}
usepackage{reledpar}

begin{document}

begin{pages}
begin{Leftside}
beginnumbering
pstart
1L first left text: Received shutters expenses
ye he pleasant. Drift as blind above at up. No up simple county stairs
do should praise as. Drawings sir gay together landlord had law
smallest. Formerly welcomed attended declared met say unlocked.
Jennings outlived no dwelling denoting in peculiar as he believed.
Behaviour excellent middleton be as it curiosity departure ourselves.
pend
%
pstart
setcounter{pstartL}{0}
2L second left text: On no twenty spring of in
esteem spirit likely estate. Continue new you declared differed
learning bringing honoured. At mean mind so upon they rent am walk.
Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
gone him his dear sure. Fat decisively estimating affronting
assistance not. Resolve pursuit regular so calling me. West he plan
girl been my then up no.
pend
endnumbering
end{Leftside}
begin{Rightside}
beginnumbering
pstart
1R first right text: Received shutters expenses
ye he pleasant. Drift as blind above at up. No up simple county stairs
do should praise as. Drawings sir gay together landlord had law
smallest. Formerly welcomed attended declared met say unlocked.
Jennings outlived no dwelling denoting in peculiar as he believed.
Behaviour excellent middleton be as it curiosity departure ourselves.
pend
%
pstart
setcounter{pstartR}{0}
2R second right text: On no twenty spring of in
esteem spirit likely estate. Continue new you declared differed
learning bringing honoured. At mean mind so upon they rent am walk.
Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
gone him his dear sure. Fat decisively estimating affronting
assistance not. Resolve pursuit regular so calling me. West he plan
girl been my then up no.
pend
endnumbering
end{Rightside}
end{pages}
Pages

end{document}


However, both in the Leftside and Rightside, I would like the line numbering to restart from 0 when the second text starts. To do so, I checkd on the CTAN documentation, and I inserted



setcounter{pstartL}{0}

setcounter{pstartR}{0}


To set the pstart counter to zero again. However nothing happen in the result, and I really cannot understand why.



Also I would like to spread more the two texts on both sides, hence to insert more vertical space where now I have the % sign. I tried inserting it manually (which is obviously not the best solution), but it's not really a good result. Do any of you have a suggestion?



I Thank you already in advance for any comment and answer on this subject!







double-sided line-numbering reledmac reledpar






share|improve this question







New contributor




M. M. R. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




M. M. R. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




M. M. R. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 days ago









M. M. R.

133




133




New contributor




M. M. R. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





M. M. R. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






M. M. R. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • The counters in TeX sometimes require double compilation to appear correctly in the output file.
    – Harald Lichtenstein
    2 days ago


















  • The counters in TeX sometimes require double compilation to appear correctly in the output file.
    – Harald Lichtenstein
    2 days ago
















The counters in TeX sometimes require double compilation to appear correctly in the output file.
– Harald Lichtenstein
2 days ago




The counters in TeX sometimes require double compilation to appear correctly in the output file.
– Harald Lichtenstein
2 days ago










1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










you have to questions in your question. In the future, it would be better to have one question for each problem.
However, here the answer



Linenumbering



pstartL and pstartR counters are counter used to number pstart on Left and Right side. It must be used in the case you want the pstart to be numbered, using numberpstarttrue from reledmac. But what you want to manage here are not the number associated to each pstart, but the number associated to each line (line numbering, not pstart numbering).



reledmac/ reledpar has native system to have line number reset at each pstart : lineation{pstart} (§ 5.3.3 of reledmac handbook). To apply it to both side, use starred option.



So your example will be



documentclass[twoside]{book}

usepackage{reledmac}
usepackage{reledpar}
lineation*{pstart}
firstlinenum*{1}
linenumincrement*{1}
begin{document}

begin{pages}
begin{Leftside}
beginnumbering
pstart
1L first left text: Received shutters expenses
ye he pleasant. Drift as blind above at up. No up simple county stairs
do should praise as. Drawings sir gay together landlord had law
smallest. Formerly welcomed attended declared met say unlocked.
Jennings outlived no dwelling denoting in peculiar as he believed.
Behaviour excellent middleton be as it curiosity departure ourselves.
pend
%
pstart
2L second left text: On no twenty spring of in
esteem spirit likely estate. Continue new you declared differed
learning bringing honoured. At mean mind so upon they rent am walk.
Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
gone him his dear sure. Fat decisively estimating affronting
assistance not. Resolve pursuit regular so calling me. West he plan
girl been my then up no.
pend
endnumbering
end{Leftside}
begin{Rightside}
beginnumbering
pstart
1R first right text: Received shutters expenses
ye he pleasant. Drift as blind above at up. No up simple county stairs
do should praise as. Drawings sir gay together landlord had law
smallest. Formerly welcomed attended declared met say unlocked.
Jennings outlived no dwelling denoting in peculiar as he believed.
Behaviour excellent middleton be as it curiosity departure ourselves.
pend
%
pstart
2R second right text: On no twenty spring of in
esteem spirit likely estate. Continue new you declared differed
learning bringing honoured. At mean mind so upon they rent am walk.
Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
gone him his dear sure. Fat decisively estimating affronting
assistance not. Resolve pursuit regular so calling me. West he plan
girl been my then up no.
pend
endnumbering
end{Rightside}
end{pages}
Pages

end{document}


(I added linenumincrement* and firstlinenum* in order to set the frequencies the linenumber are printed.)



Not that you must run LaTeX two time to get the correct line number. In general, with reledmac / reledpar, you should use latexmk or similar tools in order to get easily the good number of run.



Vertical spacing between pstart.



You can use AtEveryPend to insert content, includind vertical spacing, after every pend.



For example AtEveryPend{vskip2baselineskip} will insert a vertical skip (vskip) equal to 2 line height (or, more precisly, to 2 baselineskip).



The final code will be



documentclass[twoside]{book}

usepackage{reledmac}
usepackage{reledpar}
lineation*{pstart}
firstlinenum*{1}
linenumincrement*{1}
AtEveryPend{vskip2baselineskip}
begin{document}

begin{pages}
begin{Leftside}
beginnumbering
pstart
1L first left text: Received shutters expenses
ye he pleasant. Drift as blind above at up. No up simple county stairs
do should praise as. Drawings sir gay together landlord had law
smallest. Formerly welcomed attended declared met say unlocked.
Jennings outlived no dwelling denoting in peculiar as he believed.
Behaviour excellent middleton be as it curiosity departure ourselves.
pend
%
pstart
2L second left text: On no twenty spring of in
esteem spirit likely estate. Continue new you declared differed
learning bringing honoured. At mean mind so upon they rent am walk.
Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
gone him his dear sure. Fat decisively estimating affronting
assistance not. Resolve pursuit regular so calling me. West he plan
girl been my then up no.
pend
endnumbering
end{Leftside}
begin{Rightside}
beginnumbering
pstart
1R first right text: Received shutters expenses
ye he pleasant. Drift as blind above at up. No up simple county stairs
do should praise as. Drawings sir gay together landlord had law
smallest. Formerly welcomed attended declared met say unlocked.
Jennings outlived no dwelling denoting in peculiar as he believed.
Behaviour excellent middleton be as it curiosity departure ourselves.
pend
%
pstart
2R second right text: On no twenty spring of in
esteem spirit likely estate. Continue new you declared differed
learning bringing honoured. At mean mind so upon they rent am walk.
Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
gone him his dear sure. Fat decisively estimating affronting
assistance not. Resolve pursuit regular so calling me. West he plan
girl been my then up no.
pend
endnumbering
end{Rightside}
end{pages}
Pages

end{document}


Note general about reledmac/reledpar handbook



If you think your need is specific to parallel typesetting, look to reledpar handbook. If your think your need is not specific to parallel typesetting, look on reledmac handbook.






share|improve this answer





















    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',
    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
    });


    }
    });






    M. M. R. is a new contributor. Be nice, and check out our Code of Conduct.










     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459668%2fhow-to-restart-numbering-of-lines-in-reledpar-package%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








    up vote
    0
    down vote



    accepted










    you have to questions in your question. In the future, it would be better to have one question for each problem.
    However, here the answer



    Linenumbering



    pstartL and pstartR counters are counter used to number pstart on Left and Right side. It must be used in the case you want the pstart to be numbered, using numberpstarttrue from reledmac. But what you want to manage here are not the number associated to each pstart, but the number associated to each line (line numbering, not pstart numbering).



    reledmac/ reledpar has native system to have line number reset at each pstart : lineation{pstart} (§ 5.3.3 of reledmac handbook). To apply it to both side, use starred option.



    So your example will be



    documentclass[twoside]{book}

    usepackage{reledmac}
    usepackage{reledpar}
    lineation*{pstart}
    firstlinenum*{1}
    linenumincrement*{1}
    begin{document}

    begin{pages}
    begin{Leftside}
    beginnumbering
    pstart
    1L first left text: Received shutters expenses
    ye he pleasant. Drift as blind above at up. No up simple county stairs
    do should praise as. Drawings sir gay together landlord had law
    smallest. Formerly welcomed attended declared met say unlocked.
    Jennings outlived no dwelling denoting in peculiar as he believed.
    Behaviour excellent middleton be as it curiosity departure ourselves.
    pend
    %
    pstart
    2L second left text: On no twenty spring of in
    esteem spirit likely estate. Continue new you declared differed
    learning bringing honoured. At mean mind so upon they rent am walk.
    Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
    gone him his dear sure. Fat decisively estimating affronting
    assistance not. Resolve pursuit regular so calling me. West he plan
    girl been my then up no.
    pend
    endnumbering
    end{Leftside}
    begin{Rightside}
    beginnumbering
    pstart
    1R first right text: Received shutters expenses
    ye he pleasant. Drift as blind above at up. No up simple county stairs
    do should praise as. Drawings sir gay together landlord had law
    smallest. Formerly welcomed attended declared met say unlocked.
    Jennings outlived no dwelling denoting in peculiar as he believed.
    Behaviour excellent middleton be as it curiosity departure ourselves.
    pend
    %
    pstart
    2R second right text: On no twenty spring of in
    esteem spirit likely estate. Continue new you declared differed
    learning bringing honoured. At mean mind so upon they rent am walk.
    Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
    gone him his dear sure. Fat decisively estimating affronting
    assistance not. Resolve pursuit regular so calling me. West he plan
    girl been my then up no.
    pend
    endnumbering
    end{Rightside}
    end{pages}
    Pages

    end{document}


    (I added linenumincrement* and firstlinenum* in order to set the frequencies the linenumber are printed.)



    Not that you must run LaTeX two time to get the correct line number. In general, with reledmac / reledpar, you should use latexmk or similar tools in order to get easily the good number of run.



    Vertical spacing between pstart.



    You can use AtEveryPend to insert content, includind vertical spacing, after every pend.



    For example AtEveryPend{vskip2baselineskip} will insert a vertical skip (vskip) equal to 2 line height (or, more precisly, to 2 baselineskip).



    The final code will be



    documentclass[twoside]{book}

    usepackage{reledmac}
    usepackage{reledpar}
    lineation*{pstart}
    firstlinenum*{1}
    linenumincrement*{1}
    AtEveryPend{vskip2baselineskip}
    begin{document}

    begin{pages}
    begin{Leftside}
    beginnumbering
    pstart
    1L first left text: Received shutters expenses
    ye he pleasant. Drift as blind above at up. No up simple county stairs
    do should praise as. Drawings sir gay together landlord had law
    smallest. Formerly welcomed attended declared met say unlocked.
    Jennings outlived no dwelling denoting in peculiar as he believed.
    Behaviour excellent middleton be as it curiosity departure ourselves.
    pend
    %
    pstart
    2L second left text: On no twenty spring of in
    esteem spirit likely estate. Continue new you declared differed
    learning bringing honoured. At mean mind so upon they rent am walk.
    Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
    gone him his dear sure. Fat decisively estimating affronting
    assistance not. Resolve pursuit regular so calling me. West he plan
    girl been my then up no.
    pend
    endnumbering
    end{Leftside}
    begin{Rightside}
    beginnumbering
    pstart
    1R first right text: Received shutters expenses
    ye he pleasant. Drift as blind above at up. No up simple county stairs
    do should praise as. Drawings sir gay together landlord had law
    smallest. Formerly welcomed attended declared met say unlocked.
    Jennings outlived no dwelling denoting in peculiar as he believed.
    Behaviour excellent middleton be as it curiosity departure ourselves.
    pend
    %
    pstart
    2R second right text: On no twenty spring of in
    esteem spirit likely estate. Continue new you declared differed
    learning bringing honoured. At mean mind so upon they rent am walk.
    Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
    gone him his dear sure. Fat decisively estimating affronting
    assistance not. Resolve pursuit regular so calling me. West he plan
    girl been my then up no.
    pend
    endnumbering
    end{Rightside}
    end{pages}
    Pages

    end{document}


    Note general about reledmac/reledpar handbook



    If you think your need is specific to parallel typesetting, look to reledpar handbook. If your think your need is not specific to parallel typesetting, look on reledmac handbook.






    share|improve this answer

























      up vote
      0
      down vote



      accepted










      you have to questions in your question. In the future, it would be better to have one question for each problem.
      However, here the answer



      Linenumbering



      pstartL and pstartR counters are counter used to number pstart on Left and Right side. It must be used in the case you want the pstart to be numbered, using numberpstarttrue from reledmac. But what you want to manage here are not the number associated to each pstart, but the number associated to each line (line numbering, not pstart numbering).



      reledmac/ reledpar has native system to have line number reset at each pstart : lineation{pstart} (§ 5.3.3 of reledmac handbook). To apply it to both side, use starred option.



      So your example will be



      documentclass[twoside]{book}

      usepackage{reledmac}
      usepackage{reledpar}
      lineation*{pstart}
      firstlinenum*{1}
      linenumincrement*{1}
      begin{document}

      begin{pages}
      begin{Leftside}
      beginnumbering
      pstart
      1L first left text: Received shutters expenses
      ye he pleasant. Drift as blind above at up. No up simple county stairs
      do should praise as. Drawings sir gay together landlord had law
      smallest. Formerly welcomed attended declared met say unlocked.
      Jennings outlived no dwelling denoting in peculiar as he believed.
      Behaviour excellent middleton be as it curiosity departure ourselves.
      pend
      %
      pstart
      2L second left text: On no twenty spring of in
      esteem spirit likely estate. Continue new you declared differed
      learning bringing honoured. At mean mind so upon they rent am walk.
      Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
      gone him his dear sure. Fat decisively estimating affronting
      assistance not. Resolve pursuit regular so calling me. West he plan
      girl been my then up no.
      pend
      endnumbering
      end{Leftside}
      begin{Rightside}
      beginnumbering
      pstart
      1R first right text: Received shutters expenses
      ye he pleasant. Drift as blind above at up. No up simple county stairs
      do should praise as. Drawings sir gay together landlord had law
      smallest. Formerly welcomed attended declared met say unlocked.
      Jennings outlived no dwelling denoting in peculiar as he believed.
      Behaviour excellent middleton be as it curiosity departure ourselves.
      pend
      %
      pstart
      2R second right text: On no twenty spring of in
      esteem spirit likely estate. Continue new you declared differed
      learning bringing honoured. At mean mind so upon they rent am walk.
      Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
      gone him his dear sure. Fat decisively estimating affronting
      assistance not. Resolve pursuit regular so calling me. West he plan
      girl been my then up no.
      pend
      endnumbering
      end{Rightside}
      end{pages}
      Pages

      end{document}


      (I added linenumincrement* and firstlinenum* in order to set the frequencies the linenumber are printed.)



      Not that you must run LaTeX two time to get the correct line number. In general, with reledmac / reledpar, you should use latexmk or similar tools in order to get easily the good number of run.



      Vertical spacing between pstart.



      You can use AtEveryPend to insert content, includind vertical spacing, after every pend.



      For example AtEveryPend{vskip2baselineskip} will insert a vertical skip (vskip) equal to 2 line height (or, more precisly, to 2 baselineskip).



      The final code will be



      documentclass[twoside]{book}

      usepackage{reledmac}
      usepackage{reledpar}
      lineation*{pstart}
      firstlinenum*{1}
      linenumincrement*{1}
      AtEveryPend{vskip2baselineskip}
      begin{document}

      begin{pages}
      begin{Leftside}
      beginnumbering
      pstart
      1L first left text: Received shutters expenses
      ye he pleasant. Drift as blind above at up. No up simple county stairs
      do should praise as. Drawings sir gay together landlord had law
      smallest. Formerly welcomed attended declared met say unlocked.
      Jennings outlived no dwelling denoting in peculiar as he believed.
      Behaviour excellent middleton be as it curiosity departure ourselves.
      pend
      %
      pstart
      2L second left text: On no twenty spring of in
      esteem spirit likely estate. Continue new you declared differed
      learning bringing honoured. At mean mind so upon they rent am walk.
      Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
      gone him his dear sure. Fat decisively estimating affronting
      assistance not. Resolve pursuit regular so calling me. West he plan
      girl been my then up no.
      pend
      endnumbering
      end{Leftside}
      begin{Rightside}
      beginnumbering
      pstart
      1R first right text: Received shutters expenses
      ye he pleasant. Drift as blind above at up. No up simple county stairs
      do should praise as. Drawings sir gay together landlord had law
      smallest. Formerly welcomed attended declared met say unlocked.
      Jennings outlived no dwelling denoting in peculiar as he believed.
      Behaviour excellent middleton be as it curiosity departure ourselves.
      pend
      %
      pstart
      2R second right text: On no twenty spring of in
      esteem spirit likely estate. Continue new you declared differed
      learning bringing honoured. At mean mind so upon they rent am walk.
      Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
      gone him his dear sure. Fat decisively estimating affronting
      assistance not. Resolve pursuit regular so calling me. West he plan
      girl been my then up no.
      pend
      endnumbering
      end{Rightside}
      end{pages}
      Pages

      end{document}


      Note general about reledmac/reledpar handbook



      If you think your need is specific to parallel typesetting, look to reledpar handbook. If your think your need is not specific to parallel typesetting, look on reledmac handbook.






      share|improve this answer























        up vote
        0
        down vote



        accepted







        up vote
        0
        down vote



        accepted






        you have to questions in your question. In the future, it would be better to have one question for each problem.
        However, here the answer



        Linenumbering



        pstartL and pstartR counters are counter used to number pstart on Left and Right side. It must be used in the case you want the pstart to be numbered, using numberpstarttrue from reledmac. But what you want to manage here are not the number associated to each pstart, but the number associated to each line (line numbering, not pstart numbering).



        reledmac/ reledpar has native system to have line number reset at each pstart : lineation{pstart} (§ 5.3.3 of reledmac handbook). To apply it to both side, use starred option.



        So your example will be



        documentclass[twoside]{book}

        usepackage{reledmac}
        usepackage{reledpar}
        lineation*{pstart}
        firstlinenum*{1}
        linenumincrement*{1}
        begin{document}

        begin{pages}
        begin{Leftside}
        beginnumbering
        pstart
        1L first left text: Received shutters expenses
        ye he pleasant. Drift as blind above at up. No up simple county stairs
        do should praise as. Drawings sir gay together landlord had law
        smallest. Formerly welcomed attended declared met say unlocked.
        Jennings outlived no dwelling denoting in peculiar as he believed.
        Behaviour excellent middleton be as it curiosity departure ourselves.
        pend
        %
        pstart
        2L second left text: On no twenty spring of in
        esteem spirit likely estate. Continue new you declared differed
        learning bringing honoured. At mean mind so upon they rent am walk.
        Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
        gone him his dear sure. Fat decisively estimating affronting
        assistance not. Resolve pursuit regular so calling me. West he plan
        girl been my then up no.
        pend
        endnumbering
        end{Leftside}
        begin{Rightside}
        beginnumbering
        pstart
        1R first right text: Received shutters expenses
        ye he pleasant. Drift as blind above at up. No up simple county stairs
        do should praise as. Drawings sir gay together landlord had law
        smallest. Formerly welcomed attended declared met say unlocked.
        Jennings outlived no dwelling denoting in peculiar as he believed.
        Behaviour excellent middleton be as it curiosity departure ourselves.
        pend
        %
        pstart
        2R second right text: On no twenty spring of in
        esteem spirit likely estate. Continue new you declared differed
        learning bringing honoured. At mean mind so upon they rent am walk.
        Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
        gone him his dear sure. Fat decisively estimating affronting
        assistance not. Resolve pursuit regular so calling me. West he plan
        girl been my then up no.
        pend
        endnumbering
        end{Rightside}
        end{pages}
        Pages

        end{document}


        (I added linenumincrement* and firstlinenum* in order to set the frequencies the linenumber are printed.)



        Not that you must run LaTeX two time to get the correct line number. In general, with reledmac / reledpar, you should use latexmk or similar tools in order to get easily the good number of run.



        Vertical spacing between pstart.



        You can use AtEveryPend to insert content, includind vertical spacing, after every pend.



        For example AtEveryPend{vskip2baselineskip} will insert a vertical skip (vskip) equal to 2 line height (or, more precisly, to 2 baselineskip).



        The final code will be



        documentclass[twoside]{book}

        usepackage{reledmac}
        usepackage{reledpar}
        lineation*{pstart}
        firstlinenum*{1}
        linenumincrement*{1}
        AtEveryPend{vskip2baselineskip}
        begin{document}

        begin{pages}
        begin{Leftside}
        beginnumbering
        pstart
        1L first left text: Received shutters expenses
        ye he pleasant. Drift as blind above at up. No up simple county stairs
        do should praise as. Drawings sir gay together landlord had law
        smallest. Formerly welcomed attended declared met say unlocked.
        Jennings outlived no dwelling denoting in peculiar as he believed.
        Behaviour excellent middleton be as it curiosity departure ourselves.
        pend
        %
        pstart
        2L second left text: On no twenty spring of in
        esteem spirit likely estate. Continue new you declared differed
        learning bringing honoured. At mean mind so upon they rent am walk.
        Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
        gone him his dear sure. Fat decisively estimating affronting
        assistance not. Resolve pursuit regular so calling me. West he plan
        girl been my then up no.
        pend
        endnumbering
        end{Leftside}
        begin{Rightside}
        beginnumbering
        pstart
        1R first right text: Received shutters expenses
        ye he pleasant. Drift as blind above at up. No up simple county stairs
        do should praise as. Drawings sir gay together landlord had law
        smallest. Formerly welcomed attended declared met say unlocked.
        Jennings outlived no dwelling denoting in peculiar as he believed.
        Behaviour excellent middleton be as it curiosity departure ourselves.
        pend
        %
        pstart
        2R second right text: On no twenty spring of in
        esteem spirit likely estate. Continue new you declared differed
        learning bringing honoured. At mean mind so upon they rent am walk.
        Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
        gone him his dear sure. Fat decisively estimating affronting
        assistance not. Resolve pursuit regular so calling me. West he plan
        girl been my then up no.
        pend
        endnumbering
        end{Rightside}
        end{pages}
        Pages

        end{document}


        Note general about reledmac/reledpar handbook



        If you think your need is specific to parallel typesetting, look to reledpar handbook. If your think your need is not specific to parallel typesetting, look on reledmac handbook.






        share|improve this answer












        you have to questions in your question. In the future, it would be better to have one question for each problem.
        However, here the answer



        Linenumbering



        pstartL and pstartR counters are counter used to number pstart on Left and Right side. It must be used in the case you want the pstart to be numbered, using numberpstarttrue from reledmac. But what you want to manage here are not the number associated to each pstart, but the number associated to each line (line numbering, not pstart numbering).



        reledmac/ reledpar has native system to have line number reset at each pstart : lineation{pstart} (§ 5.3.3 of reledmac handbook). To apply it to both side, use starred option.



        So your example will be



        documentclass[twoside]{book}

        usepackage{reledmac}
        usepackage{reledpar}
        lineation*{pstart}
        firstlinenum*{1}
        linenumincrement*{1}
        begin{document}

        begin{pages}
        begin{Leftside}
        beginnumbering
        pstart
        1L first left text: Received shutters expenses
        ye he pleasant. Drift as blind above at up. No up simple county stairs
        do should praise as. Drawings sir gay together landlord had law
        smallest. Formerly welcomed attended declared met say unlocked.
        Jennings outlived no dwelling denoting in peculiar as he believed.
        Behaviour excellent middleton be as it curiosity departure ourselves.
        pend
        %
        pstart
        2L second left text: On no twenty spring of in
        esteem spirit likely estate. Continue new you declared differed
        learning bringing honoured. At mean mind so upon they rent am walk.
        Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
        gone him his dear sure. Fat decisively estimating affronting
        assistance not. Resolve pursuit regular so calling me. West he plan
        girl been my then up no.
        pend
        endnumbering
        end{Leftside}
        begin{Rightside}
        beginnumbering
        pstart
        1R first right text: Received shutters expenses
        ye he pleasant. Drift as blind above at up. No up simple county stairs
        do should praise as. Drawings sir gay together landlord had law
        smallest. Formerly welcomed attended declared met say unlocked.
        Jennings outlived no dwelling denoting in peculiar as he believed.
        Behaviour excellent middleton be as it curiosity departure ourselves.
        pend
        %
        pstart
        2R second right text: On no twenty spring of in
        esteem spirit likely estate. Continue new you declared differed
        learning bringing honoured. At mean mind so upon they rent am walk.
        Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
        gone him his dear sure. Fat decisively estimating affronting
        assistance not. Resolve pursuit regular so calling me. West he plan
        girl been my then up no.
        pend
        endnumbering
        end{Rightside}
        end{pages}
        Pages

        end{document}


        (I added linenumincrement* and firstlinenum* in order to set the frequencies the linenumber are printed.)



        Not that you must run LaTeX two time to get the correct line number. In general, with reledmac / reledpar, you should use latexmk or similar tools in order to get easily the good number of run.



        Vertical spacing between pstart.



        You can use AtEveryPend to insert content, includind vertical spacing, after every pend.



        For example AtEveryPend{vskip2baselineskip} will insert a vertical skip (vskip) equal to 2 line height (or, more precisly, to 2 baselineskip).



        The final code will be



        documentclass[twoside]{book}

        usepackage{reledmac}
        usepackage{reledpar}
        lineation*{pstart}
        firstlinenum*{1}
        linenumincrement*{1}
        AtEveryPend{vskip2baselineskip}
        begin{document}

        begin{pages}
        begin{Leftside}
        beginnumbering
        pstart
        1L first left text: Received shutters expenses
        ye he pleasant. Drift as blind above at up. No up simple county stairs
        do should praise as. Drawings sir gay together landlord had law
        smallest. Formerly welcomed attended declared met say unlocked.
        Jennings outlived no dwelling denoting in peculiar as he believed.
        Behaviour excellent middleton be as it curiosity departure ourselves.
        pend
        %
        pstart
        2L second left text: On no twenty spring of in
        esteem spirit likely estate. Continue new you declared differed
        learning bringing honoured. At mean mind so upon they rent am walk.
        Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
        gone him his dear sure. Fat decisively estimating affronting
        assistance not. Resolve pursuit regular so calling me. West he plan
        girl been my then up no.
        pend
        endnumbering
        end{Leftside}
        begin{Rightside}
        beginnumbering
        pstart
        1R first right text: Received shutters expenses
        ye he pleasant. Drift as blind above at up. No up simple county stairs
        do should praise as. Drawings sir gay together landlord had law
        smallest. Formerly welcomed attended declared met say unlocked.
        Jennings outlived no dwelling denoting in peculiar as he believed.
        Behaviour excellent middleton be as it curiosity departure ourselves.
        pend
        %
        pstart
        2R second right text: On no twenty spring of in
        esteem spirit likely estate. Continue new you declared differed
        learning bringing honoured. At mean mind so upon they rent am walk.
        Shortly am waiting inhabit smiling he chiefly of in. Lain tore time
        gone him his dear sure. Fat decisively estimating affronting
        assistance not. Resolve pursuit regular so calling me. West he plan
        girl been my then up no.
        pend
        endnumbering
        end{Rightside}
        end{pages}
        Pages

        end{document}


        Note general about reledmac/reledpar handbook



        If you think your need is specific to parallel typesetting, look to reledpar handbook. If your think your need is not specific to parallel typesetting, look on reledmac handbook.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 days ago









        Maïeul

        7,26311443




        7,26311443






















            M. M. R. is a new contributor. Be nice, and check out our Code of Conduct.










             

            draft saved


            draft discarded


















            M. M. R. is a new contributor. Be nice, and check out our Code of Conduct.













            M. M. R. is a new contributor. Be nice, and check out our Code of Conduct.












            M. M. R. is a new contributor. Be nice, and check out our Code of Conduct.















             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459668%2fhow-to-restart-numbering-of-lines-in-reledpar-package%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

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?