Guest User

Untitled

a guest
Nov 21st, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. documentclass[12pt]{article}
  2. usepackage{polyglossia}
  3. setdefaultlanguage{french}
  4. usepackage[T1]{fontenc}
  5. usepackage{csquotes}
  6. usepackage[backend=biber,
  7. style=numeric-comp,
  8. citestyle=authoryear,
  9. sorting=nty,
  10. natbib=true
  11. ]{biblatex}
  12.  
  13. usepackage[xetex]{hyperref}
  14. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  15. usepackage{filecontents}
  16. begin{filecontents}{biblio.bib}
  17.  
  18. @article{georgescu1971,
  19. title={The entropy law and the economic problem},
  20. author={Georgescu-Roegen, Nicholas},
  21. journal={Harvard University, Harvard},
  22. year={1971}
  23. }
  24. end{filecontents}
  25. addbibresource{biblio.bib}
  26. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  27. makeatletter
  28. DeclareFieldFormat{bibhypertarget}{%
  29. bibhypertarget{cbx:instcount:thevalue{instcount}}{#1}}
  30.  
  31. defabx@aux@wikibackref#1#2#3{%
  32. listcsgadd{cbx@wikibackref@#1@#2}{#3}}
  33.  
  34. defblx@addwikibackref#1{%
  35. if@filesw
  36. protected@write@mainaux{}{stringabx@aux@wikibackref
  37. {thec@refsection}{#1}{thevalue{instcount}}}%
  38. fi}
  39.  
  40. defblx@instcount@label{%
  41. label{cbx@instcount@thevalue{instcount}}}
  42.  
  43. AtEveryCitekey{%
  44. blx@addwikibackref{thefield{entrykey}}%
  45. blx@instcount@label
  46. }
  47.  
  48. renewbibmacro*{cite:comp}{%
  49. addtocounter{cbx@tempcntb}{1}%
  50. printtext[bibhypertarget]{%
  51. iffieldundef{shorthand}
  52. {ifbool{bbx:subentry}
  53. {iffieldundef{entrysetcount}
  54. {usebibmacro{cite:comp:comp}}
  55. {usebibmacro{cite:comp:inset}}}
  56. {usebibmacro{cite:comp:comp}}}
  57. {usebibmacro{cite:comp:shand}}}}
  58.  
  59. renewbibmacro*{begentry}{usebibmacro{wikipageref}}
  60.  
  61. newcounter{wikibackrefitemcount}
  62. renewcommand{thewikibackrefitemcount}{alph{wikibackrefitemcount}}
  63. newbibmacro*{wikipageref}{%
  64. ifcsundef{cbx@wikibackref@thec@refsection @thefield{entrykey}}
  65. {}
  66. {setcounter{wikibackrefitemcount}{0}%
  67. renewcommand*{do}[1]{stepcounter{wikibackrefitemcount}}%
  68. dolistcsloop{cbx@wikibackref@thec@refsection @thefield{entrykey}}%
  69. ifnumgreater{value{wikibackrefitemcount}}{1}
  70. {setcounter{wikibackrefitemcount}{0}%
  71. renewcommand*{do}[1]{%
  72. stepcounter{wikibackrefitemcount}%
  73. mkbibsuperscript{%
  74. bibhyperlink{cbx:instcount:##1}{thewikibackrefitemcount}addspace}}%
  75. $uparrow$addspacedolistcsloop{cbx@wikibackref@thec@refsection @thefield{entrykey}}}
  76. {renewcommand*{do}[1]{bibhyperlink{cbx:instcount:##1}{$uparrow$}addspace}%
  77. dolistcsloop{cbx@wikibackref@thec@refsection @thefield{entrykey}}}}}
  78. makeatother
  79.  
  80. begin{document}
  81.  
  82. The book emph{The Enthropy Law and the Economic Process} citep{georgescu1971} is very important to understand the theory of economic degrowth.
  83. newpage
  84.  
  85. printbibliography
  86. end{document}
Add Comment
Please, Sign In to add comment