如何强制将单词移至行尾?

如何强制将单词移至行尾?

如何强制我的文档将选定的单词拉到每行的末尾(如果需要,也将它们用连字符连接起来)?

我有一份旧文档。我知道页面大小,我想我已经找到了原始字体对应的现代字体。但是,我不知道确切的边距和其他一些细节。有没有办法让我将单词指定为行末,然后让其余单词自行对齐?

这是我的代码:

\documentclass{article}
    \usepackage[paperwidth=25.7cm, paperheight=40.6cm,bindingoffset=0in,left=1.2in,right=0.5in,
    top=0.9in,bottom=1in,footskip=.25in]{geometry}


    \usepackage{lettrine}
    \usepackage{fontspec}
        \defaultfontfeatures{Ligatures={Historical}}
        \setmainfont[Ligatures={Common,Rare},Scale=1.9]{Adobe Caslon Pro}

    \newcommand{\prelude}[1]{\textsuperscript{\emph{#1.}\quad}}  


    \begin{document}
       \noindent deſires, may reſt there. Purge our hearts from envy, hatred, and malice; 
       that we may never ſuffer the ſun to go down upon our wrath ; but may always go to 
       our reſt in peace, charity, and good-will, with a conſcience void of offence
       towards thee and towards men: That ſo we may be preſerved pure and blameleſs,
       unto the coming of our Lord and Saviour Jeſus Chriſt. \textit{Amen.}
       \lettrine[ante={\prelude{The Interceſſion}}, loversize=0.2]{A}{ND} 
        accept, O Lord, our interceſſions for all mankind. Let the light of
        thy Goſpel ſhine upon all nations; and may as many as have received it,
        live as becomes it. Be gracious unto thy Church; and grant that every member
        of the fame, in his vocation and miniſtry, may ſerve thee faithfully. Bleſs
        all in authority over us; and ſo rule their hearts and ſtrengthen their hands,
        that they may puniſh wickedneſs and vice, and maintain thy true religion and virtue.
        Send down thy bleſſings temporal and ſpiritual, upon all our relations, friends,
        and neighbours. Reward all who have done us good, and pardon all thoſe who have
        done or wiſh us evil, and give them repentance and better minds. Be merciful to
        all who are in any trouble; and do thou, the God of pity, adminiſter to them 
        according to their ſeveral neceſſities, for his ſake who went about doing good,
        thy Son our Saviour Jeſus Chriſt. \textit{Amen.}

       \lettrine[ante={\prelude{The Thanksgiving}}, loversize=0.1]{T}{O} 
          our prayers, O Lord, we join our unfeigned thanks for all the 
          mercies; for our being, our reaſon, and all other endowments and faculties of ſoul
          and body; for our health, friends, food, and raiment, and all the other comforts and
          conveniences of life. Above all we adore thy mercy in ſending thy only Son into the
          world to redeem us from ſin and eternal death, and in giving us the knowledge and           
          ſenſe of our duty towards thee. We bleſs thee for thy patience with us, notwithſtanding
          our many and great provocations; for all the directions, aſſiſtances, and comforts of thy
          Holy Spirit; for thy continual care and watchful providence over us through the whole
          courſe of our lives; and particularly for the mercies and benefits of the paſt day:
          Beſecching thee to continue theſe thy bleſſings to us; and to give is grace to ſhow
          our thankfulneſs in a ſincere obedience to his laws through whoſe merits and
          interceſſion we received them all, thy Son our Saviour Jeſus Chriſt. \textit{Amen.}

       \lettrine[ante={\prelude{Prayer for God's pro-\\tection through the night
       following.}}, loversize=0.1]{I}{N} particular we beſeech thee to continue thy
gracious protection to us this night. Defend us from all dangers and miſchiefs, and from
the fear of them; that we may enjoy ſuch refreſhing ſleep as may lit us for the 
duties of the following day. Make us ever mindful of the time when we ſhall lie
 down in the duſt; and grant us grace always to live in fuch a ſtate, that we may
 never be afraid to die: So that living and dying we may be thine, through the 
 merits and ſatisfaction of thy Son Chriſt Jeſus, in whoſe Name we offer up theſe 
 imperfect prayers. Amen.
       THE grace of our Lord Jeſus Chriſt, and the love of God, and the fellowſhip of
       the Holy Ghoſt, be with us all evermore. \textit{Amen.}

       \begin{center}
       \textpilcrow \textit{ On Sundays and on other days, when it may be convenient,
it will be proper to begin with a\\Chapter, or part of a Chapter, from the New Teſtament}
       \end{center}

    \end{document}

这是原始(左)和输出(右)的屏幕截图。

屏幕截图

另外,我该如何强制将“protection”变为“pro-tection”(带有返回值)\lettrine[ante={\prelude{Prayer for God's pro-\\tection through the night following.}}, loversize=0.1]{I}{N}

答案1

我不确定是否完全理解您的要求,但是这样的事情该怎么办?

在此处输入图片描述

代码:

\documentclass{article}
    \usepackage[paperwidth=25.7cm, paperheight=40.6cm,bindingoffset=0in,left=1.2in,right=0.5in,
    top=0.9in,bottom=1in,footskip=.25in]{geometry}

    \usepackage{graphicx}

    \usepackage{lettrine}
    \usepackage{fontspec}
        \defaultfontfeatures{Ligatures={Historical}}
        \setmainfont[Ligatures={Common,Rare},Scale=1.9]{Adobe Caslon Pro}

    \newcommand{\prelude}[1]{%
      \raisebox{0.5\baselineskip}{\parbox[t]{4.5cm}{\scriptsize\hspace{1em}\emph{#1.}}\quad}}

    \linespread{1.75}\selectfont
    \setlength{\parskip}{10pt}


    \begin{document}
       \noindent deſires, may reſt there. Purge our hearts from envy, hatred, and malice;
       that we may never ſuffer the ſun to go down upon our wrath ; but may always go to
       our reſt in peace, charity, and good-will, with a conſcience void of offence
       towards thee and towards men: That ſo we may be preſerved pure and blameleſs,
       unto the coming of our Lord and Saviour Jeſus Chriſt. \textit{Amen.}
       \lettrine[ante={\prelude{The Interceſſion}}]{A}{ND}
        accept, O Lord, our interceſſions for all mankind. Let the light of
        thy Goſpel ſhine upon all nations; and may as many as have received it,
        live as becomes it. Be gracious unto thy Church; and grant that every member
        of the fame, in his vocation and miniſtry, may ſerve thee faithfully. Bleſs
        all in authority over us; and ſo rule their hearts and ſtrengthen their hands,
        that they may puniſh wickedneſs and vice, and maintain thy true religion and virtue.
        Send down thy bleſſings temporal and ſpiritual, upon all our relations, friends,
        and neighbours. Reward all who have done us good, and pardon all thoſe who have
        done or wiſh us evil, and give them repentance and better minds. Be merciful to
        all who are in any trouble; and do thou, the God of pity, adminiſter to them
        according to their ſeveral neceſſities, for his ſake who went about doing good,
        thy Son our Saviour Jeſus Chriſt. \textit{Amen.}

       \lettrine[ante={\prelude{The Thanksgiving}}]{T}{O}
          our prayers, O Lord, we join our unfeigned thanks for all the
          mercies; for our being, our reaſon, and all other endowments and faculties of ſoul
          and body; for our health, friends, food, and raiment, and all the other comforts and
          conveniences of life. Above all we adore thy mercy in ſending thy only Son into the
          world to redeem us from ſin and eternal death, and in giving us the knowledge and
          ſenſe of our duty towards thee. We bleſs thee for thy patience with us, notwithſtanding
          our many and great provocations; for all the directions, aſſiſtances, and comforts of thy
          Holy Spirit; for thy continual care and watchful providence over us through the whole
          courſe of our lives; and particularly for the mercies and benefits of the paſt day:
          Beſecching thee to continue theſe thy bleſſings to us; and to give is grace to ſhow
          our thankfulneſs in a ſincere obedience to his laws through whoſe merits and
          interceſſion we received them all, thy Son our Saviour Jeſus Chriſt. \textit{Amen.}

       \lettrine[ante={\prelude{Prayer for God's protection through the night
       following}}]{I}{N} particular we beſeech thee to continue thy
gracious protection to us this night. Defend us from all dangers and miſchiefs, and from
the fear of them; that we may enjoy ſuch refreſhing ſleep as may lit us for the
duties of the following day. Make us ever mindful of the time when we ſhall lie
 down in the duſt; and grant us grace always to live in fuch a ſtate, that we may
 never be afraid to die: So that living and dying we may be thine, through the
 merits and ſatisfaction of thy Son Chriſt Jeſus, in whoſe Name we offer up theſe
 imperfect prayers. Amen.
       THE grace of our Lord Jeſus Chriſt, and the love of God, and the fellowſhip of
       the Holy Ghoſt, be with us all evermore. \textit{Amen.}

       \begin{center}
       \textpilcrow \textit{ On Sundays and on other days, when it may be convenient,
it will be proper to begin with a\\Chapter, or part of a Chapter, from the New Teſtament}
       \end{center}

    \end{document} 

我所改变的是:

  • 我已经从你的s中删除了所有loversizes\lettrine
  • 我增加了行间距

    \linespread{1.75}\selectfont
    
  • 我通过以下方式增加了段落之间的间距

    \setlength{\parskip}{10pt}
    
  • 我已经完全改变了您的\prelude命令,将其插入到其中,\parbox这样单词就会自动连字符,并且所有单词都具有相同的大小。


编辑

新版本,里面有手动中断\prelude(以展示其工作原理)和一些改进(请注意第三个\lettrine......)

\documentclass{article}
    \usepackage[paperwidth=25.7cm, paperheight=40.6cm,bindingoffset=0in,left=1.2in,right=0.5in,
    top=0.9in,bottom=1in,footskip=.25in]{geometry}

    \usepackage{graphicx}

    \usepackage{lettrine}
    \usepackage{fontspec}
        \defaultfontfeatures{Ligatures={Historical}}
        \setmainfont[Ligatures={Common,Rare},Scale=1.9]{Adobe Caslon Pro}

    \newcommand{\prelude}[1]{%
      \raisebox{0.5\baselineskip}{\parbox[t]{4.5cm}{\scriptsize\hspace{1em}\emph{#1.}}\quad}}

 %  \linespread{1.75}\selectfont
    \setlength{\parskip}{10pt}

    \renewcommand*{\DefaultLraise}{-0.4}
    \renewcommand*{\DefaultLoversize}{0.2}


    \begin{document}
       \noindent deſires, may reſt there. Purge our hearts from envy, hatred, and malice;
       that we may never ſuffer the ſun to go down upon our wrath ; but may always go to
       our reſt in peace, charity, and good-will, with a conſcience void of offence
       towards thee and towards men: That ſo we may be preſerved pure and blameleſs,
       unto the coming of our Lord and Saviour Jeſus Chriſt. \textit{Amen.}
       \lettrine[ante={\prelude{The Interceſſion}}]{A}{ND}
        accept, O Lord, our interceſſions for all mankind. Let the light of
        thy Goſpel ſhine upon all nations; and may as many as have received it,
        live as becomes it. Be gracious unto thy Church; and grant that every member
        of the fame, in his vocation and miniſtry, may ſerve thee faithfully. Bleſs
        all in authority over us; and ſo rule their hearts and ſtrengthen their hands,
        that they may puniſh wickedneſs and vice, and maintain thy true religion and virtue.
        Send down thy bleſſings temporal and ſpiritual, upon all our relations, friends,
        and neighbours. Reward all who have done us good, and pardon all thoſe who have
        done or wiſh us evil, and give them repentance and better minds. Be merciful to
        all who are in any trouble; and do thou, the God of pity, adminiſter to them
        according to their ſeveral neceſſities, for his ſake who went about doing good,
        thy Son our Saviour Jeſus Chriſt. \textit{Amen.}

       \lettrine[ante={\prelude{The Thanksgiving}}]{T}{O}
          our prayers, O Lord, we join our unfeigned thanks for all the
          mercies; for our being, our reaſon, and all other endowments and faculties of ſoul
          and body; for our health, friends, food, and raiment, and all the other comforts and
          conveniences of life. Above all we adore thy mercy in ſending thy only Son into the
          world to redeem us from ſin and eternal death, and in giving us the knowledge and
          ſenſe of our duty towards thee. We bleſs thee for thy patience with us, notwithſtanding
          our many and great provocations; for all the directions, aſſiſtances, and comforts of thy
          Holy Spirit; for thy continual care and watchful providence over us through the whole
          courſe of our lives; and particularly for the mercies and benefits of the paſt day:
          Beſecching thee to continue theſe thy bleſſings to us; and to give is grace to ſhow
          our thankfulneſs in a ſincere obedience to his laws through whoſe merits and
          interceſſion we received them all, thy Son our Saviour Jeſus Chriſt. \textit{Amen.}

       \lettrine[ante={\prelude{Prayer for God's pro-\linebreak tection through the night
       following}},lines=3,loversize=-0.2,lraise=0.1,slope=-25pt]{I}{N} particular we beſeech thee to continue thy
gracious protection to us this night. Defend us from all dangers and miſchiefs, and from
the fear of them; that we may enjoy ſuch refreſhing ſleep as may lit us for the
duties of the following day. Make us ever mindful of the time when we ſhall lie
 down in the duſt; and grant us grace always to live in fuch a ſtate, that we may
 never be afraid to die: So that living and dying we may be thine, through the
 merits and ſatisfaction of thy Son Chriſt Jeſus, in whoſe Name we offer up theſe
 imperfect prayers. Amen.
       THE grace of our Lord Jeſus Chriſt, and the love of God, and the fellowſhip of
       the Holy Ghoſt, be with us all evermore. \textit{Amen.}

       \begin{center}
       \textpilcrow \textit{ On Sundays and on other days, when it may be convenient,
it will be proper to begin with a\\Chapter, or part of a Chapter, from the New Teſtament}
       \end{center}

    \end{document} 

输出:

在此处输入图片描述

相关内容