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, ...)
thedoctor818
Posts: 92
Joined: Fri Apr 24, 2009 8:02 pm

Too much space between chapter and section headings

Postby thedoctor818 » Sun Sep 20, 2009 3:01 am

I had a prob w/ centering chapter headings that is now completely solved - thanks to everyone here. But, now I have way TOO much space above my chapter & *mainly* my section headings. Here is my MWE below.
  1. \documentclass[12pt,letterpaper,twoside,openany]{book}
  2. \usepackage[pagestyles]{titlesec}
  3.  
  4. \titleformat{\chapter}[display]
  5. {\normalfont\huge\bfseries\centering}{}{20pt}{\Huge}
  6. \titlespacing*{\chapter} {0pt}{30pt}{20pt}
  7.  
  8. \titleformat{\section}[display]
  9. {\normalfont\LARGE\bfseries\centering}{}{14pt}{\Large}
  10. \titlespacing*{\section} {0pt}{18pt}{14pt}
  11.  
  12. \titleformat{\subsection}[display]
  13. {\normalfont\Large\bfseries\centering}{}{12pt}{\large}
  14. \titlespacing*{\section} {0pt}{14pt}{10pt}
  15.  
  16. \newpagestyle{mystyle}{\sethead{}{}{}\setfoot{}{\thepage}{}}
  17. \pagestyle{mystyle}
  18.  
  19. \begin{document}
  20. %\maketitle
  21. \tableofcontents
  22.  
  23. \chapter{SATURDAY EVENING PRAYERS.}
  24.  
  25. <text>
  26.  
  27. <other chs>
  28.  
  29. <more text>
  30.  
  31. \chapter{MEALTIME PRAYERS.}
  32.  
  33. \titleformat{\chapter}[display]
  34. {\normalfont\huge\bfseries\centering}{\centering\chaptertitlename\ \thechapter}{20pt}{\Huge}
  35. \titlespacing*{\chapter}
  36. {0pt}{50pt}{40pt}
  37.  
  38. \titleformat{\section}[display]
  39. {\normalfont\Large\bfseries\centering}{}{20pt}{\Large}
  40. \titlespacing*{\chapter}
  41. {0pt}{50pt}{40pt}
  42.  
  43. \appendix
  44. \chapter{A}
  45.  
  46. <more text>
  47.  
  48. \chapter{ORTHOPRAXIS---RIGHT PRACTICE.}
  49. \section{ON THE SIGN OF THE PRECIOUS AND LIFE-GIVING CROSS.}
  50.  
  51. \end{document}


Thanks for any help you all can provide.
-Michael D

Tags:

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

Postby gmedina » Sun Sep 20, 2009 3:45 am

Change the value of the last two arguments of the corresponding \titlespacing commands; use something like the following (I corrected some mistakes in the first arguments also):

  1. \documentclass[12pt,letterpaper,twoside,openany]{book}
  2. \usepackage[pagestyles]{titlesec}
  3.  
  4. \titleformat{\chapter}[display]
  5. {\normalfont\huge\bfseries\centering}{}{20pt}{\Huge}
  6. \titlespacing*{\chapter} {0pt}{30pt}{20pt}
  7.  
  8. \titleformat{\section}[display]
  9. {\normalfont\LARGE\bfseries\centering}{}{14pt}{\Large}
  10. \titlespacing*{\section} {0pt}{18pt}{14pt}
  11.  
  12. \titleformat{\subsection}[display]
  13. {\normalfont\Large\bfseries\centering}{}{12pt}{\large}
  14. \titlespacing*{\subsection} {0pt}{14pt}{10pt}
  15.  
  16. \newpagestyle{mystyle}{\sethead{}{}{}\setfoot{}{\thepage}{}}
  17. \pagestyle{mystyle}
  18.  
  19. \begin{document}
  20. %\maketitle
  21. \tableofcontents
  22.  
  23. \chapter{SATURDAY EVENING PRAYERS.}
  24.  
  25. <text>
  26.  
  27. <other chs>
  28.  
  29. <more text>
  30.  
  31. \chapter{MEALTIME PRAYERS.}
  32.  
  33. \titleformat{\chapter}[display]
  34. {\normalfont\huge\bfseries\centering}{\centering\chaptertitlename\ \thechapter}{20pt}{\Huge}
  35. \titlespacing*{\chapter}
  36. {0pt}{10pt}{10pt}
  37.  
  38. \titleformat{\section}[display]
  39. {\normalfont\Large\bfseries\centering}{}{20pt}{\Large}
  40. \titlespacing*{\section}
  41. {0pt}{10pt}{10pt}
  42.  
  43. \appendix
  44. \chapter{A}
  45.  
  46. <more text>
  47.  
  48. \chapter{ORTHOPRAXIS---RIGHT PRACTICE.}
  49. \section{ON THE SIGN OF THE PRECIOUS AND LIFE-GIVING CROSS.}
  50.  
  51. \end{document}
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 » Tue Sep 22, 2009 1:36 am

I tried that & it works fine. However, when I go back & try to reduce the space above the section headings, by making the 2nd & 3rd numbers smaller - then running tex, I get the following errors:
Missing $ inserted
Double superscript
Missing }

Here is the code I tried:

  1. \documentclass[12pt,letterpaper,twoside,openany]{book}
  2. \usepackage[pagestyles]{titlesec}
  3. \usepackage[left=0.50in,right=0.45in,top=0.50in,bottom=0.50in]{geometry}
  4. \usepackage{liturg, framed, amsmath, amssymb}
  5.  
  6. \titleformat{\chapter}[display]
  7. {\normalfont\huge\bfseries\centering}{}{20pt}{\Huge}
  8. \titlespacing*{\chapter} {0pt}{30pt}{20pt}
  9.  
  10. \titleformat{\section}[display]
  11. {\normalfont\LARGE\bfseries\centering}{}{14pt}{\Large}
  12. \titlespacing*{\section} {0pt}{18pt}{14pt}
  13.  
  14. \titleformat{\subsection}[display]
  15. {\normalfont\Large\bfseries\centering}{}{12pt}{\large}
  16. \titlespacing*{\subsection} {0pt}{14pt}{10pt}
  17.  
  18. \newpagestyle{mystyle}{\sethead{}{}{}\setfoot{}{\thepage}{}}
  19. \pagestyle{mystyle}
  20.  
  21. \begin{document}
  22. %\maketitle
  23. \tableofcontents
  24.  
  25. \chapter{SATURDAY EVENING PRAYERS.}
  26.  
  27. <text>
  28.  
  29. <other chs>
  30.  
  31. <more text>
  32.  
  33. \chapter{MEALTIME PRAYERS.}
  34.  
  35. \titleformat{\chapter}[display]
  36. {\normalfont\huge\bfseries\centering}{\centering\chaptertitlename\ \thechapter}{20pt}{\Huge}
  37. \titlespacing*{\chapter}
  38. {0pt}{50pt}{40pt}
  39.  
  40. \titleformat{\section}[display]
  41. {\normalfont\Large\bfseries\centering}{}{20pt}{\Large}
  42. \titlespacing*{\chapter}
  43. {0pt}{50pt}{40pt}
  44.  
  45. \appendix
  46. \chapter{A}
  47.  
  48. <more text>
  49.  
  50. \chapter{ORTHOPRAXIS---RIGHT PRACTICE.}
  51. \section{ON THE SIGN OF THE PRECIOUS AND LIFE-GIVING CROSS.}
  52.  
  53. \end{document}
-Michael D

User avatar
Stefan Kottwitz
Site Admin
Posts: 9192
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Tue Sep 22, 2009 1:48 am

Do you get such errors with that code posted above? I could compile it without errors or warnings.
Check the posted code again, if it brings errors then post the .log file or post code that would raise the error instead of cut code without error.

Stefan
Site admin

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

Postby thedoctor818 » Tue Sep 22, 2009 2:15 am

Stephan,

This is what I am getting in my log for the original code, and when I try to simplify it:

  1. LOG FILE :
  2. This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=latex 2009.8.19) 21 SEP 2009 20:11
  3. entering extended mode
  4. %&-line parsing enabled.
  5. **001.tex
  6. (./001.tex
  7. LaTeX2e <2005/12/01>
  8. Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
  9. yphenation, arabic, farsi, croatian, ukrainian, russian, bulgarian, czech, slov
  10. ak, danish, dutch, finnish, basque, french, german, ngerman, ibycus, greek, mon
  11. ogreek, ancientgreek, hungarian, italian, latin, mongolian, norsk, icelandic, i
  12. nterlingua, turkish, coptic, romanian, welsh, serbian, slovenian, estonian, esp
  13. eranto, uppersorbian, indonesian, polish, portuguese, spanish, catalan, galicia
  14. n, swedish, ukenglish, pinyin, loaded.
  15. (/usr/share/texmf-texlive/tex/latex/base/book.cls
  16. Document Class: book 2005/09/16 v1.4f Standard LaTeX document class
  17. (/usr/share/texmf-texlive/tex/latex/base/bk12.clo
  18. File: bk12.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
  19. )
  20. \c@part=\count79
  21. \c@chapter=\count80
  22. \c@section=\count81
  23. \c@subsection=\count82
  24. \c@subsubsection=\count83
  25. \c@paragraph=\count84
  26. \c@subparagraph=\count85
  27. \c@figure=\count86
  28. \c@table=\count87
  29. \abovecaptionskip=\skip41
  30. \belowcaptionskip=\skip42
  31. \bibindent=\dimen102
  32. )
  33. (/usr/share/texmf-texlive/tex/latex/titlesec/titlesec.sty
  34. Package: titlesec 2005/01/22 v2.6 Sectioning titles
  35. \ttl@box=\box26
  36. \beforetitleunit=\skip43
  37. \aftertitleunit=\skip44
  38. \ttl@plus=\dimen103
  39. \ttl@minus=\dimen104
  40. \titlewidth=\dimen105
  41. \titlewidthlast=\dimen106
  42. \titlewidthfirst=\dimen107
  43. (/usr/share/texmf-texlive/tex/latex/titlesec/ttlps.def
  44. File: ttlps.def 2005/01/22
  45. ))
  46. (/usr/share/texmf-texlive/tex/latex/geometry/geometry.sty
  47. Package: geometry 2002/07/08 v3.2 Page Geometry
  48. (/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty
  49. Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
  50. \KV@toks@=\toks14
  51. )
  52. \Gm@cnth=\count88
  53. \Gm@cntv=\count89
  54. \c@Gm@tempcnt=\count90
  55. \Gm@bindingoffset=\dimen108
  56. \Gm@wd@mp=\dimen109
  57. \Gm@odd@mp=\dimen110
  58. \Gm@even@mp=\dimen111
  59. \Gm@dimlist=\toks15
  60. (/usr/share/texmf-texlive/tex/xelatex/xetexconfig/geometry.cfg)) (./liturg.sty
  61. Package: liturg
  62. (/usr/share/texmf-texlive/tex/generic/babel/babel.sty
  63. Package: babel 2005/11/23 v3.8h The Babel package
  64. (/usr/share/texmf-texlive/tex/generic/babel/latin.ldf
  65. File: latin.ldf 2007/10/19 v2.0h Latin support from the babel system
  66. (/usr/share/texmf-texlive/tex/generic/babel/babel.def
  67. File: babel.def 2005/11/23 v3.8h Babel common definitions
  68. \babel@savecnt=\count91
  69. \U@D=\dimen112
  70. )
  71. Package babel Info: Making " an active character on input line 184.
  72. )
  73. (/usr/share/texmf-texlive/tex/generic/babel/english.ldf
  74. Language: english 2005/03/30 v3.3o English support from the babel system
  75. \l@british = a dialect from \language\l@english
  76. \l@UKenglish = a dialect from \language\l@english
  77. \l@canadian = a dialect from \language\l@american
  78. \l@australian = a dialect from \language\l@british
  79. \l@newzealand = a dialect from \language\l@british
  80. ))
  81. (/usr/share/texmf-texlive/tex/latex/graphics/color.sty
  82. Package: color 2005/11/14 v1.0j Standard LaTeX Color (DPC)
  83. (/etc/texmf/tex/latex/config/color.cfg
  84. File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
  85. )
  86. Package color Info: Driver file: dvips.def on input line 130.
  87. (/usr/share/texmf-texlive/tex/latex/graphics/dvips.def
  88. File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
  89. )
  90. (/usr/share/texmf-texlive/tex/latex/graphics/dvipsnam.def
  91. File: dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
  92. ))
  93. (/usr/share/texmf-texlive/tex/latex/lettrine/lettrine.sty
  94. File: lettrine.sty 2004/05/22 v1.6 (D. Flipo)
  95. \c@DefaultLines=\count92
  96. \DefaultFindent=\dimen113
  97. \DefaultNindent=\dimen114
  98. \DefaultSlope=\dimen115
  99. \L@lbox=\box27
  100. \L@tbox=\box28
  101. \c@L@lines=\count93
  102. \L@Pindent=\dimen116
  103. \L@Findent=\dimen117
  104. \L@Nindent=\dimen118
  105. \L@lraise=\dimen119
  106. \L@first=\dimen120
  107. \L@next=\dimen121
  108. \L@slope=\dimen122
  109. \L@height=\dimen123
  110. \LettrineWidth=\dimen124
  111. (/usr/share/texmf-texlive/tex/latex/lettrine/lettrine.cfg)) (./ecclesiastic.sty
  112. Package: ecclesiastic 2007/09/28 v.0.1 Ecclesiastic composition of Latin
  113. LaTeX Font Info: Redeclaring font encoding T1 on input line 54.
  114. Package babel Info: Making ' an active character on input line 68.
  115. LaTeX Info: Redefining \lt@cwm on input line 120.
  116. Package babel Info: Making ; an active character on input line 149.
  117. Package babel Info: Making : an active character on input line 150.
  118. Package babel Info: Making ! an active character on input line 151.
  119. Package babel Info: Making ? an active character on input line 152.
  120. )) (./framed.sty
  121. Package: framed 2007/10/04 v 0.95: framed or shaded text with page breaks
  122. \fb@frw=\dimen125
  123. \fb@frh=\dimen126
  124. \FrameRule=\dimen127
  125. \FrameSep=\dimen128
  126. ) (/usr/share/texmf-texlive/tex/latex/amsmath/amsmath.sty
  127. Package: amsmath 2000/07/18 v2.13 AMS math features
  128. \@mathmargin=\skip45
  129. For additional information on amsmath, use the `?' option.
  130. (/usr/share/texmf-texlive/tex/latex/amsmath/amstext.sty
  131. Package: amstext 2000/06/29 v2.01
  132. (/usr/share/texmf-texlive/tex/latex/amsmath/amsgen.sty
  133. File: amsgen.sty 1999/11/30 v2.0
  134. \@emptytoks=\toks16
  135. \ex@=\dimen129
  136. ))
  137. (/usr/share/texmf-texlive/tex/latex/amsmath/amsbsy.sty
  138. Package: amsbsy 1999/11/29 v1.2d
  139. \pmbraise@=\dimen130
  140. )
  141. (/usr/share/texmf-texlive/tex/latex/amsmath/amsopn.sty
  142. Package: amsopn 1999/12/14 v2.01 operator names
  143. )
  144. \inf@bad=\count94
  145. LaTeX Info: Redefining \frac on input line 211.
  146. \uproot@=\count95
  147. \leftroot@=\count96
  148. LaTeX Info: Redefining \overline on input line 307.
  149. \classnum@=\count97
  150. \DOTSCASE@=\count98
  151. LaTeX Info: Redefining \ldots on input line 379.
  152. LaTeX Info: Redefining \dots on input line 382.
  153. LaTeX Info: Redefining \cdots on input line 467.
  154. \Mathstrutbox@=\box29
  155. \strutbox@=\box30
  156. \big@size=\dimen131
  157. LaTeX Font Info: Redeclaring font encoding OML on input line 567.
  158. LaTeX Font Info: Redeclaring font encoding OMS on input line 568.
  159. \macc@depth=\count99
  160. \c@MaxMatrixCols=\count100
  161. \dotsspace@=\muskip10
  162. \c@parentequation=\count101
  163. \dspbrk@lvl=\count102
  164. \tag@help=\toks17
  165. \row@=\count103
  166. \column@=\count104
  167. \maxfields@=\count105
  168. \andhelp@=\toks18
  169. \eqnshift@=\dimen132
  170. \alignsep@=\dimen133
  171. \tagshift@=\dimen134
  172. \tagwidth@=\dimen135
  173. \totwidth@=\dimen136
  174. \lineht@=\dimen137
  175. \@envbody=\toks19
  176. \multlinegap=\skip46
  177. \multlinetaggap=\skip47
  178. \mathdisplay@stack=\toks20
  179. LaTeX Info: Redefining \[ on input line 2666.
  180. LaTeX Info: Redefining \] on input line 2667.
  181. )
  182. (/usr/share/texmf-texlive/tex/latex/amsfonts/amssymb.sty
  183. Package: amssymb 2002/01/22 v2.2d
  184. (/usr/share/texmf-texlive/tex/latex/amsfonts/amsfonts.sty
  185. Package: amsfonts 2001/10/25 v2.2f
  186. \symAMSa=\mathgroup4
  187. \symAMSb=\mathgroup5
  188. LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'
  189. (Font) U/euf/m/n --> U/euf/b/n on input line 132.
  190. )) (./001.aux)
  191. \openout1 = `001.aux'.
  192. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 21.
  193. LaTeX Font Info: ... okay on input line 21.
  194. LaTeX Font Info: Checking defaults for T1/lmr/m/n on input line 21.
  195. LaTeX Font Info: Try loading font information for T1+lmr on input line 21.
  196. (/usr/share/texmf/tex/latex/lm/t1lmr.fd
  197. File: t1lmr.fd 2007/01/14 v1.3 Font defs for Latin Modern
  198. )
  199. LaTeX Font Info: ... okay on input line 21.
  200. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 21.
  201. LaTeX Font Info: ... okay on input line 21.
  202. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 21.
  203. LaTeX Font Info: ... okay on input line 21.
  204. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 21.
  205. LaTeX Font Info: ... okay on input line 21.
  206. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 21.
  207. LaTeX Font Info: ... okay on input line 21.
  208. -------------------- Geometry parameters
  209. paper: letterpaper
  210. landscape: --
  211. twocolumn: --
  212. twoside: true
  213. asymmetric: --
  214. h-parts: 36.135pt, 545.63873pt, 32.52127pt
  215. v-parts: 36.135pt, 722.7pt, 36.135pt
  216. hmarginratio: --
  217. vmarginratio: --
  218. lines: --
  219. heightrounded: --
  220. bindingoffset: 0.0pt
  221. truedimen: --
  222. includehead: --
  223. includefoot: --
  224. includemp: --
  225. driver:
  226. -------------------- Page layout dimensions and switches
  227. \paperwidth 614.295pt
  228. \paperheight 794.96999pt
  229. \textwidth 545.63873pt
  230. \textheight 722.7pt
  231. \oddsidemargin -36.135pt
  232. \evensidemargin -39.74872pt
  233. \topmargin -68.00879pt
  234. \headheight 12.0pt
  235. \headsep 19.8738pt
  236. \footskip 30.0pt
  237. \marginparwidth 98.0pt
  238. \marginparsep 7.0pt
  239. \columnsep 10.0pt
  240. \skip\footins 10.8pt plus 4.0pt minus 2.0pt
  241. \hoffset 0.0pt
  242. \voffset 0.0pt
  243. \mag 1000
  244. \@twosidetrue \@mparswitchtrue
  245. (1in=72.27pt, 1cm=28.45pt)
  246. -----------------------
  247. (./001.toc
  248. LaTeX Font Info: Try loading font information for U+msa on input line 3.
  249. (/usr/share/texmf-texlive/tex/latex/amsfonts/umsa.fd
  250. File: umsa.fd 2002/01/19 v2.2g AMS font definitions
  251. )
  252. LaTeX Font Info: Try loading font information for U+msb on input line 3.
  253. (/usr/share/texmf-texlive/tex/latex/amsfonts/umsb.fd
  254. File: umsb.fd 2002/01/19 v2.2g AMS font definitions
  255. )
  256. ! Missing $ inserted.
  257. <inserted text>
  258. $
  259. l.8 ... \prime \futurelet \@let@token \egroup }{4}
  260. I've inserted a begin-math/end-math symbol since I think
  261. you left one out. Proceed, with fingers crossed.
  262. ! Double superscript.
  263. <recently read> ^
  264. l.8 ... \prime \futurelet \@let@token \egroup }{4}
  265. I treat `x^1^2' essentially like `x^1{}^2'.
  266. ! Extra }, or forgotten $.
  267. <recently read> }
  268. l.8 ... \prime \futurelet \@let@token \egroup }{4}
  269. I've deleted a group-closing symbol because it seems to be
  270. spurious, as in `$x}$'. But perhaps the } is legitimate and
  271. you forgot something else, as in `\hbox{$x}'. In such cases
  272. the way to recover is to insert both the forgotten and the
  273. deleted material, e.g., by typing `I$}'.
  274. ! Missing $ inserted.
  275. <inserted text>
  276. $
  277. l.8 ... \prime \futurelet \@let@token \egroup }{4}
  278. I've inserted a begin-math/end-math symbol since I think
  279. you left one out. Proceed, with fingers crossed.
  280. )
  281. \tf@toc=\write3
  282. \openout3 = `001.toc'.
  283. ! Missing } inserted.
  284. <inserted text>
  285. }
  286. l.23 \tableofcontents
  287. I've inserted something that you may have forgotten.
  288. (See the <inserted text> above.)
  289. With luck, this will get me unwedged. But if you
  290. really didn't forget anything, try typing `2' now; then
  291. my insertion and my current dilemma will both disappear.
  292. [1
  293. ]
  294. Chapter 1.
  295. [2
  296. ]
  297. Chapter 2.
  298. [3
  299. ]
  300. Appendix A.
  301. [4
  302. ]
  303. Appendix B.
  304. [5
  305. ] (./001.aux) )
  306. Here is how much of TeX's memory you used:
  307. 2690 strings out of 94075
  308. 33706 string characters out of 1165176
  309. 91830 words of memory out of 1500000
  310. 5948 multiletter control sequences out of 10000+50000
  311. 10160 words of font info for 38 fonts, out of 1200000 for 2000
  312. 645 hyphenation exceptions out of 8191
  313. 31i,5n,31p,650b,163s stack positions out of 5000i,500n,6000p,200000b,5000s
  314. Output written on 001.dvi (5 pages, 6816 bytes).
-Michael D

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

Postby gmedina » Tue Sep 22, 2009 3:09 am

It's still isn't clear to me if the error appears with the code that you posted before. If that's not the case, please post the offending code itself.

I took a quick look at the log file that you just posted and noticed that your system is using old versions of some packages. Try updating your LaTeX system.
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 » Tue Sep 22, 2009 3:15 am

I'll try doing that first. What is the quickest, easiest way of doing that. I am using ubuntu, & I think TexLive.

-Michael
-Michael D

User avatar
Stefan Kottwitz
Site Admin
Posts: 9192
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Tue Sep 22, 2009 1:27 pm

Hi Michael,

just post a reduced code that really brings the error (minimal working example, follow the link).
If we could reproduce this error using your code we should be able then fo find the cause and to correct it.

Stefan
Site admin

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

Postby thedoctor818 » Tue Sep 22, 2009 11:22 pm

Here is what I have.
  1. \documentclass[12pt,letterpaper,twoside,openany]{book}
  2. \usepackage[pagestyles]{titlesec}
  3. \usepackage[left=0.50in,right=0.45in,top=0.50in,bottom=0.50in]{geometry}
  4. \usepackage{liturg, framed, amsmath, amssymb}
  5.  
  6. \titleformat{\chapter}[display]
  7. {\normalfont\Huge\bfseries\centering}{}{20pt}{\huge}
  8. \titlespacing*{\chapter} {0pt}{30pt}{20pt}
  9.  
  10. \titleformat{\section}[display]
  11. {\normalfont\LARGE\bfseries\centering}{}{14pt}{\Large}
  12. \titlespacing*{\section} {0pt}{18pt}{14pt}
  13.  
  14. \titleformat{\subsection}[display]
  15. {\normalfont\Large\bfseries\centering}{}{12pt}{\large}
  16. \titlespacing*{\subsection} {0pt}{14pt}{10pt}
  17.  
  18. \newpagestyle{mystyle}{\sethead{}{}{}\setfoot{}{\thepage}{}}
  19. \pagestyle{mystyle}
  20.  
  21. \begin{document}
  22. %\maketitle
  23. \tableofcontents
  24.  
  25. \chapter{SATURDAY EVENING PRAYERS.}
  26. \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:}
  27.  
  28. In the Name of the Father, and of the Son, and of the Holy Spirit. Amen.
  29.  
  30. \begin{framed}
  31. \rubric{From St. Thomas Sunday until Ascension, instead of \textbf{O God, cleanse me, a sinner \ldots we say:}}
  32. Christ is risen from the dead, trampling down death by death, and upon those in the tombs bestowing life. \ins{(thrice)}\\
  33.  
  34. \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).}
  35.  
  36. \rubric{Then, in either case, we immediately pray the Trisagion Prayers as below:}
  37. \end{framed}
  38.  
  39. \rubric{Afterwards, we collect our thoughts, and make seven prostrations (or metanoias), saying:}
  40.  
  41. \subsection{THE SEVEN--BOW BEGINNING.}
  42. O God, be merciful to me, a sinner.
  43.  
  44. O God, cleanse me, a sinner, and have mercy on me.
  45.  
  46. Thou hast created me, O Lord, have mercy on me.
  47.  
  48. Countless times have I sinned, O Lord, forgive me.
  49.  
  50. All-holy Lady Theotokos, save me, a sinner,
  51.  
  52. O Angel, my holy Guardian, protect me from all evil.
  53.  
  54. O Saint, \ins{N}, my Patron pray to God for me.
  55.  
  56. \rubric{Then, we begin the Evening Prayers with these words:}
  57. \subsection{THE INTRODUCTORY PRAYERS.}
  58. 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.
  59.  
  60. Glory to Thee, O our God, Glory to Thee.
  61.  
  62. 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.
  63. \documentclass[12pt,letterpaper,twoside,openany]{book}
  64. \usepackage[pagestyles]{titlesec}
  65. \usepackage[left=0.50in,right=0.45in,top=0.50in,bottom=0.50in]{geometry}
  66. \usepackage{liturg, framed, amsmath, amssymb}
  67.  
  68. \titleformat{\chapter}[display]
  69. {\normalfont\Huge\bfseries\centering}{}{20pt}{\huge}
  70. \titlespacing*{\chapter} {0pt}{30pt}{20pt}
  71.  
  72. \titleformat{\section}[display]
  73. {\normalfont\LARGE\bfseries\centering}{}{14pt}{\Large}
  74. \titlespacing*{\section} {0pt}{18pt}{14pt}
  75.  
  76. \titleformat{\subsection}[display]
  77. {\normalfont\Large\bfseries\centering}{}{12pt}{\large}
  78. \titlespacing*{\subsection} {0pt}{14pt}{10pt}
  79.  
  80. \newpagestyle{mystyle}{\sethead{}{}{}\setfoot{}{\thepage}{}}
  81. \pagestyle{mystyle}
  82.  
  83. \begin{document}
  84. %\maketitle
  85. \tableofcontents
  86.  
  87. \chapter{SATURDAY EVENING PRAYERS.}
  88. \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:}
  89.  
  90. In the Name of the Father, and of the Son, and of the Holy Spirit. Amen.
  91.  
  92. \begin{framed}
  93. \rubric{From St. Thomas Sunday until Ascension, instead of \textbf{O God, cleanse me, a sinner \ldots we say:}}
  94. Christ is risen from the dead, trampling down death by death, and upon those in the tombs bestowing life. \ins{(thrice)}\\
  95.  
  96. \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).}
  97.  
  98. \rubric{Then, in either case, we immediately pray the Trisagion Prayers as below:}
  99. \end{framed}
  100.  
  101. \rubric{Afterwards, we collect our thoughts, and make seven prostrations (or metanoias), saying:}
  102.  
  103. \subsection{THE SEVEN--BOW BEGINNING.}
  104. O God, be merciful to me, a sinner.
  105.  
  106. O God, cleanse me, a sinner, and have mercy on me.
  107.  
  108. Thou hast created me, O Lord, have mercy on me.
  109.  
  110. Countless times have I sinned, O Lord, forgive me.
  111.  
  112. All-holy Lady Theotokos, save me, a sinner,
  113.  
  114. O Angel, my holy Guardian, protect me from all evil.
  115.  
  116. O Saint, \ins{N}, my Patron pray to God for me.
  117.  
  118. \rubric{Then, we begin the Evening Prayers with these words:}
  119. \subsection{THE INTRODUCTORY PRAYERS.}
  120. 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.
  121.  
  122. Glory to Thee, O our God, Glory to Thee.
  123.  
  124. 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.
  125. \end[{document}


That is w/o the appendices.
-Michael D

User avatar
Stefan Kottwitz
Site Admin
Posts: 9192
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Wed Sep 23, 2009 2:06 am

That code is not producing that error. Instead the macros \ins and \rubric are undefined. Did you define them somewhere else? Without their definition it's not compilable and also the other errors are not reproducable.

Stefan
Site admin


Return to “Text Formatting”

Who is online

Users browsing this forum: Baidu [Spider] and 4 guests