LaTeX forum ⇒ Text FormattingToo much space between chapter and section headings

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: too much space

Postby gmedina » Wed Sep 23, 2009 3:16 am

Hi Michael,

besides the remark made by Stefan_K, notice that your code contains two nested preambles so the compilation will produce errors.
1,1,2,3,5,8,13,21,34,55,89,144,233,...

Tags:

thedoctor818
Posts: 92
Joined: Fri Apr 24, 2009 8:02 pm

Postby thedoctor818 » Tue Sep 29, 2009 4:44 am

Below is my liturgical.sty package I have found my errors, but still cannot figure out which number to reduce in order to get the desired result [decreaesed spacing above the section & subsection & chapter headers]

  1. %Packages
  2. \ProvidesPackage{liturgical}
  3.  
  4. \RequirePackage[british]{babel}
  5. \RequirePackage{color}
  6. \RequirePackage{lettrine}
  7. \RequirePackage{ecclesiastic}
  8. \RequirePackage{liturg}
  9. \RequirePackage[pagestyles]{titlesec}
  10. \RequirePackage{framed}
  11. \RequirePackage{amsmath, amssymb}
  12.  
  13. %Commands
  14. \titleformat{\chapter}[display]
  15. {\normalfont\Huge\bfseries\centering}{}{20pt}{\huge}
  16. \titlespacing*{\chapter} {0pt}{28pt}{20pt}
  17.  
  18. \titleformat{\section}[display]
  19. {\normalfont\LARGE\bfseries\centering}{}{14pt}{\Large}
  20. \titlespacing*{\section} {0pt}{16pt}{14pt}
  21.  
  22. \titleformat{\subsection}[display]
  23. {\normalfont\Large\bfseries\centering}{}{12pt}{\large}
  24. \titlespacing*{\subsection} {0pt}{14pt}{12pt}
  25.  
  26. \newpagestyle{mystyle}{\sethead{}{}{}\setfoot{}{\thepage}{}}
  27. \pagestyle{mystyle}
  28. %End Macro


Here is what I want it to look like using my liturgical package. Note that however; I wish to do this using \section & \subsection.

  1. \documentclass[12pt,letterpaper,twoside,openany]{book}
  2. \usepackage[left=0.50in,right=0.45in,top=0.50in,bottom=0.50in]{geometry}
  3. \usepackage{liturgical}
  4.  
  5. \title{AN ORTHODOX RULE OF PRAYER.}
  6. \author{Father Thomas Moore, Michael Dykes}
  7. \begin{document}
  8. \maketitle
  9. \tableofcontents
  10.  
  11.  
  12. \chapter{APOLYTIKIA AND KONTAKIA FOR THE MONTH OF SEPTEMBER.}
  13.  
  14. \rubric{Here are simplified rubrics for Sunday Troparia, and Kontakia; when there is no Major Feast Day.}
  15.  
  16. \hhourheading{01: The Indiction; that is the Church New Year. \red{III}}
  17. \rubric{Feast, Dispensation for Wine and Oil.}
  18. \hourheading{Apolytikion for the Indiction. \ins{Tone II.}}
  19. O Creator of the Universe, Thou hast appointed times by Thine own power; bless the crown of this year with Thy goodness, O Lord. Preserve in safety Thy rulers and Thy cities: and through the intercession of the Theotokos, save us!
  20.  
  21. \hourheading{Apolytikion for the Theotokos. \ins{Tone I.}}
  22. Rejoice, O Virgin Theotokos, Full of Joy, Refuge and Protectress of the human race, for from you the Redeemer of the world was incarnate! For as you alone, Mother and Virgin, are ever-blessed and most-glorified, beseech Christ God to grant peace to the whole world.
  23.  
  24. \hourheading{Apolytikion for St. Simeon. \ins{Tone I.}}
  25. You were a pillar of patient endurance,
  26. Having imitated the forefathers, O Venerable One:
  27. Job in suffering, and Joseph in temptations.
  28. You lived like the bodiless ones while yet in the flesh, O Simeon, our Father.
  29. Beseech Christ God that our souls may be saved.
  30.  
  31. \rubric{Glory.}
  32.  
  33. \hourheading{Kontakion for St. Simeon. \ins{Tone II. ``Seeking the things of the highest''}}
  34. Seeking the things of the Highest,
  35. And having made you pillar a fiery chariot, you were joined to the heights.
  36. Therefore, you have become a companion to the angels, O Venerable One,
  37. And with them you are praying incessantly to Christ God for us all.
  38.  
  39. \rubric{Both now and ever.}
  40.  
  41. \hourheading{Kontakion for the Indiction. \ins{Tone IV. ``As thou wast voluntarily raised up''}}
  42. O Creator and Master of time and the ages, Triune and Merciful God of all: Grant blessings for the course of this year, and in Thy boundless mercy save those who worship Thee and cry out in fear: O Saviour, grant blessings to all Mankind!
  43.  
  44. \hourheading{07: The Forefeast of the Nativity of the Theotokos.}
  45.  
  46. \hhourheading{08: THE NATIVITY OF OUR ALL-HOLY LADY, THE THEOTOKOS AND EVER-VIRGIN MARY. \red{I}}
  47. \rubric{Feast; Dispensation for Fish, Wine, and Oil.}
  48. \hourheading{Apolytikion for the Nativity of the Theotokos. \ins{Tone IV.}}
  49. Your Nativity, O Virgin,
  50. Has proclaimed joy to the whole universe!
  51. The Sun of Righteousness, Christ our God,
  52. Has shone from You, O Theotokos!
  53. By annulling the curse,
  54. He bestowed a blessing.
  55. By destroying death, He has granted us eternal Life.
  56.  
  57. \rubric{Glory. Now and ever.}
  58.  
  59. \hourheading{Kontakion for the Nativity of the Theotokos. \ins{Tone IV.}}
  60. By Your Nativity, O Most Pure Virgin,
  61. Joachim and Anna are freed from barrenness;
  62. Adam and Eve, from the corruption of death.
  63. And we, your people, freed from the guilt of sin, celebrate and sing to you:
  64. The barren woman gives birth to the Theotokos, the Nourisher of our life!
  65.  
  66. \ins{Because of the nearness of this feast to that of The Elevation of the Cross, The Feast of The Nativity of the Theotokos is celebrated for only Five Days--its Apodosis being on 12 September--instead of the usual Eight.}
  67.  
  68. \end{document}



Sorry for the length, please help if possible.

Thanks,

-Michael D
-Michael D

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Postby gmedina » Tue Sep 29, 2009 8:02 pm

Hi Michael,

I did a simple test using the code you provided and immediately got errors regarding an option clash for the babel package; so I temporarily commented out the line loading the babel package and added latin as global option, but even then I got errors regarding the \rubric command (an isuue that had already been pointed out to you). Can you please tell us which package provides that command? Or, if you defined it, can you include the definition?
1,1,2,3,5,8,13,21,34,55,89,144,233,...

thedoctor818
Posts: 92
Joined: Fri Apr 24, 2009 8:02 pm

Postby thedoctor818 » Mon Oct 05, 2009 5:26 pm

Sorry for the delay in replying. Here is the code that supplies the \rubric. It is in my variation of liturg.sty below. I have deleted the references to ``latin'' as I am not Roman Catholic, but an Orthodox Christian.

  1. % \begin{macrocode}
  2. \ProvidesPackage{liturg}
  3.  
  4. \RequirePackage[british]{babel}
  5. \RequirePackage{color}
  6.  
  7. \newcommand\stich[1]{%
  8. \textcolor{red}{S. }#1%
  9. }
  10.  
  11. \newcommand{\psalmheading}[1]{%
  12. \begin{center}
  13. \textbf{\noindent\normalsize\textcolor{red}{#1}}
  14. \end{center}
  15. }
  16.  
  17. \newcommand{\ppsalmheading}[1]{%
  18. \begin{center}
  19. \textbf{\noindent\Large\textcolor{red}{#1}}
  20. \end{center}
  21. }
  22.  
  23. \newcommand\hourheading[1]{%
  24. \begin{center}
  25. \normalsize\textbf{#1}\\%
  26. \end{center}
  27. }
  28.  
  29. \newcommand\hhourheading[1]{%
  30. \begin{center}
  31. \large\textbf{#1}\\%
  32. \end{center}
  33. }
  34.  
  35. \newcommand{\prayerheading}[1]{%
  36. \begin{center}
  37. \textcolor{red}{#1}
  38. \end{center}
  39. }
  40.  
  41. \newcommand\rubric[1]{%
  42. \begin{center}
  43. \textit{\noindent\small\textcolor{red}{#1}}\normalsize\\%
  44. \end{center}
  45. }
  46.  
  47. \newcommand\rrubric[1]{%
  48. \begin{center}
  49. \textit{\noindent\normalsize\textcolor{red}{#1}}\normalsize\\%
  50. \end{center}
  51. }
  52.  
  53. \newcommand\ins[1]{%
  54. \textit{\small\textcolor{red}{#1}}
  55. }
  56.  
  57. \newcommand\iins[1]{%
  58. \textit{\normalsize\textcolor{red}{#1}}
  59. }
  60.  
  61. \newcommand{\red}{\textcolor{red}}
  62.  
  63. \newcommand\priestword{S. }
  64. \newcommand\deaconword{D. }
  65. \newcommand\readerword{R. }
  66. \newcommand\choirword{C. }
  67.  
  68. \newcommand{\massenglish}{%
  69. \renewcommand\priestword{P. }
  70. \renewcommand\deaconword{D. }
  71. \renewcommand\readerword{R. }
  72. \renewcommand\choirword{C. }
  73. }
  74.  
  75. \newcommand\priest[1]{%
  76. \noindent\textcolor{red}{\priestword}{#1}\\%
  77. }
  78.  
  79. \newcommand\deacon[1]{%
  80. \noindent\textcolor{red}{\deaconword}{#1}\\%
  81. }
  82.  
  83. \newcommand\reader[1]{%
  84. \noindent\textcolor{red}{\readerword}{#1}\\%
  85. }
  86.  
  87. \newcommand\choir[1]{%
  88. \noindent\textcolor{red}{\choirword}{#1}\\%
  89. }
  90. % \end{macrocode}



Now, here is the package I created off of this: liturgical.sty

  1. %Packages
  2. \ProvidesPackage{liturgical}
  3.  
  4. \RequirePackage[british]{babel}
  5. \RequirePackage{color}
  6. \RequirePackage{liturg}
  7. \RequirePackage[pagestyles]{titlesec}
  8. \RequirePackage{framed}
  9. \RequirePackage{amsmath, amssymb}
  10.  
  11. %Commands
  12. \titleformat{\chapter}[display]
  13. {\normalfont\Huge\bfseries\centering}{}{20pt}{\huge}
  14. \titlespacing{\chapter} {0pt}{16pt}{12pt}
  15.  
  16. \titleformat{\section}[display]
  17. {\normalfont\LARGE\bfseries\centering}{}{14pt}{\Large}
  18. \titlespacing{\section} {0pt}{10pt}{8pt}
  19.  
  20. \titleformat{\subsection}[display]
  21. {\normalfont\Large\bfseries\centering}{}{12pt}{\large}
  22. \titlespacing{\subsection} {0pt}{8pt}{6pt}
  23.  
  24. \newpagestyle{mystyle}{\sethead{}{}{}\setfoot{}{\thepage}{}}
  25. \pagestyle{mystyle}
  26. %End Macro


Now, finally; here is an abbreviated example of the code I am trying to run & shorten the spaces above each ``section'' header.

  1. \documentclass[12pt,letterpaper,twoside,openany]{book}
  2. \usepackage[left=0.50in,right=0.45in,top=0.55in,bottom=0.65in]{geometry}
  3. \usepackage{liturgical}
  4.  
  5. \title{AN ORTHODOX RULE OF PRAYER.}
  6. \author{Father Thomas Moore, Michael Dykes}
  7. \begin{document}
  8. \maketitle
  9. \tableofcontents
  10.  
  11. \chapter{SATURDAY EVENING PRAYERS.}
  12. \ins{Towards evening, we stand before the holy icons (having lit a candle and maybe some incense), with reverence and fear of God; we gather our thoughts, make the Sign of the Cross, and say:}\\
  13.  
  14. In the Name of the Father, and of the Son, and of the Holy Spirit. Amen.
  15.  
  16. \begin{framed}
  17. \rubric{From St. Thomas Sunday until Ascension, instead of \textbf{O God, cleanse me, a sinner \ldots we say:}}
  18. Christ is risen from the dead, trampling down death by death, and upon those in the tombs bestowing life. \ins{(thrice)}\\
  19.  
  20. \ins{During any Vigil-rank Festal Period [(see Appendix A) - including your and your Temple's Patronal Feast Day], we begin our prayers by praying the Festal Troparia (again, see Appendix A).}
  21.  
  22. \rubric{Then, in either case, we immediately pray the Trisagion Prayers as below:}
  23. \end{framed}
  24.  
  25. \rubric{Afterwards, we collect our thoughts, and make seven prostrations (or metanoias), saying:}
  26.  
  27. \section{THE SEVEN--BOW BEGINNING.}
  28. O God, be merciful to me, a sinner.
  29.  
  30. O God, cleanse me, a sinner, and have mercy on me.
  31.  
  32. Thou hast created me, O Lord, have mercy on me.
  33.  
  34. Countless times have I sinned, O Lord, forgive me.
  35.  
  36. All-holy Lady Theotokos, save me, a sinner,
  37.  
  38. O Angel, my holy Guardian, protect me from all evil.
  39.  
  40. O Saint, \ins{N}, my Patron pray to God for me.
  41.  
  42. \rubric{Then, we begin the Evening Prayers with these words:}
  43. \section{THE INTRODUCTORY PRAYERS.}
  44. O Lord Jesus Christ our God, through the prayers of our Thine All-pure Mother, of our holy and God-bearing Fathers, and of all the saints, have mercy on us. Amen.
  45.  
  46. Glory to Thee, O our God, Glory to Thee.
  47.  
  48. O Heavenly King, the Comforter, the Spirit of Truth, Who art everywhere present and fillest all things, Treasury of blessings and Giver of Life: Come and abide in us; and cleanse us from every impurity, and save our souls, O Good One.
  49.  
  50. \section{TRISAGION PRAYERS.}
  51. Holy God. Holy Mighty. Holy Immortal. Have mercy on us. \ins{(thrice)}
  52.  
  53. Glory to the Father, and to the Son, and to the Holy Spirit; now and ever, and unto ages of ages. Amen.
  54.  
  55. O Most-holy \ins{(All-holy)} Trinity: Have mercy on us. Lord: cleanse us from our sins. Master: Pardon our transgressions. Holy One: Visit and heal our infirmities, for Thy Name's sake.
  56.  
  57. Lord, have mercy. \ins{(thrice)}
  58.  
  59. Glory to the Father, and to the Son, and to the Holy Spirit; now and ever, and unto ages of ages. Amen.
  60.  
  61. Our Father, Who art in heaven, hallowed be Thy Name. Thy Kingdom come; Thy will be done on earth as it is in Heaven. Give us this day our daily bread; and forgive us our debts as we forgive our debtors. And lead us not into temptation, but deliver us from the evil one.
  62.  
  63. Through the prayers of our holy Fathers, O Lord Jesus Christ our God, have mercy on us. Amen.
  64.  
  65. \section{EVENING TROPARIA. TONE VI.}
  66. Have mercy on us, O Lord, have mercy on us, for laying aside all excuse, we sinners offer to Thee,as to our Master, this supplication: Have mercy on us.
  67.  
  68. \rubric{Glory to the Father, and to the Son, and to the Holy Spirit.}
  69.  
  70. O Lord, have mercy on us, for in Thee have we put our trust. Do not be angry with us, nor remember our iniquities, but look down on us even now, since Thou art compassionate, and deliver us from our enemies. For Thou art our God and we are Thy people; we are all the work of Thy hands, and we call on Thy Name.
  71.  
  72. \rubric{Both now and ever, and unto ages of ages. Amen.}
  73.  
  74. O blessed Theotokos, open the doors of compassion to us whose hope is in thee, that we may not perish but be delivered from adversity through thee, who art the salvation of the Christian people.
  75.  
  76. Lord, have mercy. \ins{(twelve times)}
  77.  
  78. \section{EVENING PRAYER AT THE BOWING OF THE HEADS.}
  79. O Lord our God, Who didst bow down the heavens and come down for the salvation of the human race: Do Thou look upon Thy servants and Thine inheritance. For unto Thee, the dread Judge Who lovest Mankind, have Thy servants bowed their heads and submissively inclined their necks, awaiting not help from men, but Thy mercy, in expectation of Thy salvation. Whom do Thou protect at all times, both during the present evening and the approaching night, from every adverse action of the devil, and from vain thoughts and evil imaginations. Blessed and Most-glorified be the majesty of Thy Kingdom, of the Father, and of the Son, and of the Holy Spirit; now and ever, and unto ages of ages. Amen.\\
  80.  
  81. <more text>
  82.  
  83. \chapter{WEEKDAY MORNING PRAYERS}
  84.  
  85. <more chapters>
  86.  
  87. \appendix
  88. \part{MENAIA.}
  89. \chapter{APOLYTIKIA AND KONTAKIA FOR THE MONTH OF SEPTEMBER.}
  90. \ins{Here are simplified rubrics for Sunday Troparia, and Kontakia; when there is no Major Feast Day.}
  91. \section{01: The Indiction; that is the Church New Year. \red{III}}
  92. \rubric{Feast, Dispensation for Wine and Oil.}
  93. \hourheading{Apolytikion for the Indiction. \ins{Tone II.}}
  94. O Creator of the Universe, Thou hast appointed times by Thine own power; bless the crown of this year with Thy goodness, O Lord. Preserve in safety Thy rulers and Thy cities: and through the intercession of the Theotokos, save us!
  95.  
  96. \hourheading{Apolytikion for the Theotokos. \ins{Tone I.}}
  97. Rejoice, O Virgin Theotokos, Full of Joy, Refuge and Protectress of the human race, for from you the Redeemer of the world was incarnate! For as you alone, Mother and Virgin, are ever-blessed and most-glorified, beseech Christ God to grant peace to the whole world.
  98.  
  99. \hourheading{Apolytikion for St. Simeon. \ins{Tone I.}}
  100. You were a pillar of patient endurance,
  101. Having imitated the forefathers, O Venerable One:
  102. Job in suffering, and Joseph in temptations.
  103. You lived like the bodiless ones while yet in the flesh, O Simeon, our Father.
  104. Beseech Christ God that our souls may be saved.
  105.  
  106. \rubric{Glory.}
  107.  
  108. \hourheading{Kontakion for St. Simeon. \ins{Tone II. ``Seeking the things of the highest''}}
  109. Seeking the things of the Highest,
  110. And having made you pillar a fiery chariot, you were joined to the heights.
  111. Therefore, you have become a companion to the angels, O Venerable One,
  112. And with them you are praying incessantly to Christ God for us all.
  113.  
  114. \rubric{Both now and ever.}
  115.  
  116. \hourheading{Kontakion for the Indiction. \ins{Tone IV. ``As thou wast voluntarily raised up''}}
  117. O Creator and Master of time and the ages, Triune and Merciful God of all: Grant blessings for the course of this year, and in Thy boundless mercy save those who worship Thee and cry out in fear: O Saviour, grant blessings to all Mankind!
  118.  
  119. \subsection{07: The Forefeast of the Nativity of the Theotokos.}
  120.  
  121. \section{08: THE NATIVITY OF OUR ALL-HOLY LADY, THE THEOTOKOS AND EVER-VIRGIN MARY. \red{I}}
  122. \rubric{Feast; Dispensation for Fish, Wine, and Oil.}
  123. \hourheading{Apolytikion for the Nativity of the Theotokos. \ins{Tone IV.}}
  124. Your Nativity, O Virgin,
  125. Has proclaimed joy to the whole universe!
  126. The Sun of Righteousness, Christ our God,
  127. Has shone from You, O Theotokos!
  128. By annulling the curse,
  129. He bestowed a blessing.
  130. By destroying death, He has granted us eternal Life.
  131.  
  132. \rubric{Glory. Now and ever.}
  133.  
  134. \hourheading{Kontakion for the Nativity of the Theotokos. \ins{Tone IV.}}
  135. By Your Nativity, O Most Pure Virgin,
  136. Joachim and Anna are freed from barrenness;
  137. Adam and Eve, from the corruption of death.
  138. And we, your people, freed from the guilt of sin, celebrate and sing to you:
  139. The barren woman gives birth to the Theotokos, the Nourisher of our life!
  140.  
  141. \ins{Because of the nearness of this feast to that of The Elevation of the Cross, The Feast of The Nativity of the Theotokos is celebrated for only Five Days--its Apodosis being on 12 September--instead of the usual Eight.}
  142.  
  143. <more text>
  144.  
  145. <more appendices>
  146. \end{document}


I think I now have defined everything.
-MD
-Michael D


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 6 guests