Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. documentclass{amsbook}
  2. usepackage{verbatim}
  3.  
  4. begin{document}
  5.  
  6. tableofcontents
  7.  
  8. chapter[Title with two footnotes]%
  9. {Titleexcept{toc}{protectfootnote{The first footnote}}
  10. with two footnotesexcept{toc}{protectfootnote{The second footnote}}}
  11.  
  12. There is some text in this chapter.footnote{With a footnote}
  13.  
  14. Footnotes should be avoided on chapter titles whenever possible.
  15. However, if a footnote---or other material that should not go
  16. into the table of contents, such as a line break---is present, the
  17. command verb+except{toc}{...}+ should be wrapped around that element
  18. to suppress it from the contents.
  19.  
  20. If the header with such a modification may be used in a running head,
  21. either the verb+[...]+ option or a suitable verb+mark...+ command
  22. must be given to omit the modification from the running head.
  23.  
  24. newpage
  25.  
  26. There is a second page in this chapter.
  27.  
  28. chapter*{A starred titleexcept{toc}{protectfootnotemark} with two
  29. footnotesexcept{toc}{protectfootnotemark}}
  30. markboth{TITLE WITHOUT EITHER FOOTNOTE}{TITLE WITHOUT EITHER FOOTNOTE}
  31.  
  32. addtocounter{footnote}{-1}
  33. footnotetext{This is the first footnote}
  34. addtocounter{footnote}{1}
  35. footnotetext{This is the second footnote}
  36.  
  37. Notice that footnote numbering isn't reset for ``starred'' chapters.
  38. Also, the bracketed verb+[...]+ option doesn't work to provide alternate
  39. titles for such chapters so a verb+mark...+ must be used
  40. (this may be changed in the future).
  41. Furthermore, a verb+footnotemark+, although enclosed in braces as an
  42. argument of verb+except+, will gobble the next space, so an explicit
  43. space must be provided.
  44.  
  45. Section headings can also have footnotesfootnote{An irrelevant footnote}
  46. excluded from the TOC.
  47.  
  48. section[A section heading with a footnote]%
  49. {A section heading, with a
  50. footnote,except{toc}{protectfootnote{And yet another.}}
  51. that is very longexcept{toc}{protect\}
  52. so that it hasfor{toc}{protect\} to be broken under input control}
  53.  
  54. There is also a command verb+for+ that can be used to emph{include}
  55. selected material in the TOC, such as an explicit linebreak different
  56. from one used in the body.
  57.  
  58. newpage
  59.  
  60. There is a second page in this chapter.
  61.  
  62. chapter[Another chapter title]{Another chapter title with a
  63. footnoteexcept{toc}{protectfootnote{This is another footnote}}}
  64.  
  65. Footnote numbering emph{is} reset for numbered chapters.
  66.  
  67. newpage
  68.  
  69. There is also a second page in this chapter too.
  70.  
  71. vspace{3baselineskip}
  72. small
  73. verbatiminput{jobname.tex}
  74. end{document}
  75.  
  76. documentclass{article}
  77.  
  78. makeatletter
  79. defmyfnt{ifxprotect@typeset@protectexpandafterfootnoteelseexpandafter@gobblefi}
  80. makeatother
  81.  
  82. begin{document}
  83.  
  84. tableofcontents
  85.  
  86. section{AAAmyfnt{this}}
  87. z
  88. section{BBBmyfnt{that}}
  89. z
  90. section{CCCmyfnt{the other}}
  91. z
  92.  
  93. end{document}
  94.  
  95. %%PREAMBLE
  96.  
  97. usepackage[stable]{footmisc}
  98.  
  99. %%BODY
  100.  
  101. section{Your Title textsuperscript{footnotesize{footnote{Your foonote}}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement