Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.28 KB | None | 0 0
  1. documentclass{scrreprt}
  2. usepackage[ngerman]{babel}
  3. usepackage{filecontents}
  4. usepackage{xcolor}
  5. usepackage{manyfoot}
  6. usepackage[babel]{csquotes}
  7. usepackage[backend=biber,style=chem-angew,mcite,subentry]{biblatex}
  8. usepackage{hyperref}
  9. hypersetup{%
  10. colorlinks,
  11. linkcolor={red!0!black},
  12. citecolor={blue!0!black},
  13. urlcolor={blue!80!black}
  14. }
  15.  
  16. ExecuteBibliographyOptions{citetracker=true,sorting=none,maxcitenames=10,doi=false,url=false,isbn=false,hyperref=true,backref=false}
  17.  
  18. DefineBibliographyStrings{ngerman}{
  19. andothers = {textit{et~aladddot}}
  20. }
  21.  
  22. % Citation footnotes: use footnoteA
  23. DeclareNewFootnote{A}
  24.  
  25. % Vanilla footnotes: use footnoteB
  26. DeclareNewFootnote{B}
  27.  
  28. % Number of each bibliography entry in brackets
  29. DeclareFieldFormat{labelnumberwidth}{mkbibbrackets{#1}}
  30.  
  31. makeatletter
  32.  
  33. newtoggle{cbx@togcite}
  34.  
  35. % Citation number superscript in brackets
  36. renewcommand@makefntext[1]{%
  37. iftoggle{cbx@togcite}
  38. {@textsuperscript{normalfont[@thefnmark]}enspace #1}
  39. {@textsuperscript{normalfont@thefnmark}enspace #1}%
  40. globaltogglefalse{cbx@togcite}}
  41.  
  42. % Citation number superscript in brackets (for babel french)
  43. ifdef{@makefntextFB}{%
  44. renewcommand@makefntextFB[1]{%
  45. iftoggle{cbx@togcite}
  46. {@textsuperscript{normalfont[@thefnmark]}enspace #1}
  47. {@textsuperscript{normalfont@thefnmark}enspace #1}%
  48. globaltogglefalse{cbx@togcite}}}{}
  49.  
  50. %---------------------------------------------------------------
  51. % Mostly verbatim from Joseph Wright
  52. % http://www.texdev.net/2010/03/08/biblatex-numbered-citations-as-footnotes/
  53.  
  54. DeclareCiteCommand{sfcite}[cbx@superscript]%
  55. {usebibmacro{cite:init}%
  56. letmulticitedelim=supercitedelim
  57. iffieldundef{prenote}
  58. {}
  59. {BibliographyWarning{Ignoring prenote argument}}%
  60. iffieldundef{postnote}
  61. {}
  62. {BibliographyWarning{Ignoring postnote argument}}}
  63. {usebibmacro{citeindex}%
  64. usebibmacro{sfcite}%
  65. usebibmacro{cite:comp}}
  66. {}
  67. {usebibmacro{cite:dump}}
  68.  
  69. newbibmacro*{sfcite}{%
  70. ifciteseen
  71. {}
  72. {xapptocbx@citehook{%
  73. globaltoggletrue{cbx@togcite}%
  74. noexpandfootnotetextA[thefield{labelnumber}]{%
  75. fullcite{thefield{entrykey}}addperiod}}}}
  76.  
  77. newrobustcmd{cbx@superscript}[1]{%
  78. mkbibsuperscript{mkbibbrackets{#1}}%
  79. cbx@citehook%
  80. globalletcbx@citehook=empty}
  81.  
  82. letcbx@citehook=empty
  83. %---------------------------------------------------------------
  84.  
  85. makeatother
  86.  
  87.  
  88. begin{filecontents}{jobname.bib}
  89. @Article{Frank1953,
  90. author = {Frank, F. C.},
  91. title = {On spontaneous asymmetric synthesis},
  92. journal = {Biochim. Biophys. Acta},
  93. year = {1953},
  94. volume = {11},
  95. pages = {459-463},
  96. doi = {http://dx.doi.org/10.1016/0006-3002(53)90082-1},
  97. url = {http://www.sciencedirect.com/science/article/pii/0006300253900821},
  98. }
  99.  
  100. @Article{Kagan1986,
  101. author = {Puchot, C. and Samuel, O. and Dunach, E. and Zhao, S. and Agami, C. and Kagan, H. B.},
  102. title = {Nonlinear effects in asymmetric synthesis. Examples in asymmetric oxidations and aldolization reactions},
  103. journal = {J. Am. Chem. Soc.},
  104. year = {1986},
  105. volume = {108},
  106. number = {9},
  107. pages = {2353-2357},
  108. doi = {10.1021/ja00269a036},
  109. url = {http://dx.doi.org/10.1021/ja00269a036},
  110. }
  111.  
  112. @article{Soai1995,
  113. author = {Soai, Kenso and Shibata, Takanori and Morioka, Hiroshi and Choji, Kaori},
  114. title = {Asymmetric autocatalysis and amplification of enantiomeric excess of a chiral molecule},
  115. journal = {Nature},
  116. year = {1995},
  117. volume = {378},
  118. number = {6559},
  119. pages = {767-768},
  120. url = {http://dx.doi.org/10.1038/378767a0}
  121. }
  122.  
  123. @Article{Brown2001,
  124. author = {Blackmond, Donna G. and McMillan, Christopher R. and Ramdeehul, Shailesh and Schorm, Andrea and Brown, John M.},
  125. title = {Origins of Asymmetric Amplification in Autocatalytic Alkylzinc Additions},
  126. journal = {J. Am. Chem. Soc.},
  127. year = {2001},
  128. volume = {123},
  129. number = {41},
  130. pages = {10103-10104},
  131. doi = {10.1021/ja0165133},
  132. url = {http://dx.doi.org/10.1021/ja0165133},
  133. }
  134. end{filecontents}
  135.  
  136. addbibresource{jobname.bib}
  137.  
  138. newbibmacro{string+doiurlisbn}[1]{%
  139. iffieldundef{doi}{%
  140. iffieldundef{url}{%
  141. iffieldundef{isbn}{%
  142. iffieldundef{issn}{%
  143. #1%
  144. }{%
  145. href{http://books.google.com/books?vid=ISSNthefield{issn}}{#1}%
  146. }%
  147. }{%
  148. href{http://books.google.com/books?vid=ISBNthefield{isbn}}{#1}%
  149. }%
  150. }{%
  151. href{thefield{url}}{#1}%
  152. }%
  153. }{%
  154. href{https://doi.org/thefield{doi}}{#1}%
  155. }%
  156. }
  157.  
  158. DeclareFieldFormat{journaltitle}{usebibmacro{string+doiurlisbn}{mkbibemph{#1}}}
  159.  
  160. begin{document}
  161. chapter{Title}
  162. nullvfillnoindent
  163. Vanilla footnote.footnoteB{This is a very very very very very very very very very very very very very very very very very very long Vanilla footnote text.}
  164. First citation.sfcite{Frank1953}
  165. First citation.sfcite{Kagan1986}
  166. Vanilla footnote.footnoteB{Vanilla footnote text.}
  167. First ``multi'' citation.sfcite{Frank1953,Kagan1986,Soai1995}
  168. chapter{Title}
  169. nullvfillnoindent
  170. Second citation.sfcite{Frank1953}
  171. Vanilla footnote.footnoteB{Vanilla footnote text.}
  172. Second citation.sfcite{Soai1995}
  173. Second citation.sfcite{Kagan1986}footnoteB{Vanilla footnote text.}
  174. First citation.sfcite{Brown2001}
  175. printbibliography
  176. end{document}
  177.  
  178. usepackage[hang]{footmisc}
  179. setlengthfootnotemargin{10pt}
  180.  
  181. deffootnote[1em]{1em}{1em}{%
  182. textsuperscript{makebox[1em][l]{thefootnotemark}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement