Advertisement
Guest User

LaTeX: Extra page when using thmbox

a guest
Jun 2nd, 2014
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. % MWE corresponding following question: http://tex.stackexchange.com/q/182780/39090
  2. % german comments removed!
  3.  
  4. % ======== main.tex File ========
  5.  
  6. \documentclass[
  7. a4paper,
  8. oneside,
  9. 12pt,
  10. toc=listof,
  11. toc=bibliography,
  12. ]{scrreprt}%
  13.  
  14. \usepackage{styles/bachelor}
  15.  
  16. \begin{document}
  17.  
  18. \include{chapters/titelpage}
  19.  
  20. \pagenumbering{roman}
  21.  
  22. % ..........
  23.  
  24. \tableofcontents
  25. \newpage
  26.  
  27. \pagenumbering{arabic}
  28.  
  29. % TEXT TEXT TEXT TEXT
  30. % \include{} used
  31.  
  32. \nocite{*}
  33. \bibliographystyle{plain}
  34. \bibliography{bib/bibfile}
  35.  
  36. \end{document}
  37.  
  38. %% ======== bachelor.sty - File ========
  39.  
  40. \usepackage[utf8]{inputenc}
  41. \usepackage[T1]{fontenc}
  42. \usepackage[ngerman]{babel}
  43.  
  44.  
  45. \usepackage[
  46. autostyle,
  47. german=quotes
  48. ]{csquotes}
  49. \usepackage{marvosym}
  50.  
  51. \usepackage{pifont}
  52.  
  53.  
  54. \usepackage{setspace}
  55. \onehalfspacing
  56.  
  57. \usepackage{scrhack}
  58.  
  59. \usepackage{array}
  60.  
  61.  
  62. \usepackage{graphicx}
  63. \usepackage{caption}
  64. \usepackage{subfig}
  65.  
  66. \usepackage{amsmath}
  67. \usepackage{amssymb}
  68. \usepackage{empheq}
  69. \usepackage{dsfont}
  70. \usepackage{amstext}
  71. \usepackage{amsfonts}
  72. \usepackage{amsthm}
  73. \usepackage{wasysym}
  74.  
  75. \usepackage[S]{thmbox}
  76.  
  77. \usepackage{color}
  78.  
  79. \usepackage{listings}
  80.  
  81. \usepackage{algorithm}
  82. \usepackage{algpseudocode}
  83.  
  84. \usepackage{parskip}
  85.  
  86. \usepackage{fancyhdr}
  87.  
  88. \usepackage{ifthen}
  89.  
  90. \usepackage[
  91. bookmarks,
  92. raiselinks,
  93. pageanchor,
  94. colorlinks,
  95. citecolor=black,
  96. linkcolor=black,
  97. urlcolor=magenta,
  98. filecolor=cyan
  99. menucolor=red,
  100. ]{hyperref}
  101.  
  102. \usepackage[
  103. left=3cm,right=2.5cm,top=1.5cm,bottom=1.5cm,
  104. headheight=7mm,headsep=1.2cm,
  105. footskip=1.5cm,includeheadfoot
  106. ]{geometry}
  107.  
  108. \theoremstyle{plain} \newtheorem{lem}{Lemma}[section]
  109. % ===========================================================================================================================
  110. \theoremstyle{remark} \newtheorem*{rem}{Remarks and Extensions} %%%% HERE IS THE BUG!
  111. % ===========================================================================================================================
  112. \theoremstyle{plain} \newtheorem{thm}[lem]{Theorem}
  113. \theoremstyle{definition} \newtheorem{defi}{Definition}
  114. \theoremstyle{plain} \newtheorem{cor}[lem]{Corollary}
  115.  
  116. \DeclareMathOperator*{\argmin}{\arg \min}%
  117.  
  118. \pagestyle{fancy}
  119.  
  120. \renewcommand{\chaptermark}[1]{
  121. \markboth{\thechapter \quad #1}{}}
  122.  
  123. \ifthenelse{\boolean{@twoside}}
  124. {
  125. \fancyhf{}
  126. \fancyhead[RO,LE]{\small\sffamily\bfseries\thepage}
  127. \fancyhead[LO]{\small\sffamily\nouppercase{\leftmark}}
  128. \renewcommand{\headrulewidth}{0.4pt}
  129. \renewcommand{\footrulewidth}{0pt}
  130. \fancypagestyle{plain}{
  131. \fancyhf{}
  132. \fancyhead[RO,LE]{\small\sffamily\bfseries\thepage}
  133. \renewcommand{\headrulewidth}{0.4pt}
  134. \renewcommand{\footrulewidth}{0pt}
  135. }
  136. }
  137. {
  138. \fancyhf{}
  139. \fancyhead[R]{\small\sffamily\bfseries\thepage}
  140. \fancyhead[L]{\small\sffamily\nouppercase{\leftmark}}
  141. \renewcommand{\headrulewidth}{0.4pt}
  142. \renewcommand{\footrulewidth}{0pt}
  143. \fancypagestyle{plain}{
  144. \fancyhf{}
  145. \fancyhead[R]{\small\sffamily\bfseries\thepage}
  146. \renewcommand{\headrulewidth}{0.4pt}
  147. \renewcommand{\footrulewidth}{0pt}
  148. }
  149. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement