LaTeX forum ⇒ BibTeX, biblatex and biberNeed help installing custom .bst file

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
mgmillani
Posts: 16
Joined: Fri Dec 20, 2013 7:26 pm

Need help installing custom .bst file

Postby mgmillani » Sat Jan 18, 2014 12:03 pm

I'm trying to create my own .bst file as I couldn't find any package that generates the bibliography in the format that I need. So here is what I did so far:
  • Generated the file gesellschaft.bst using latex makebst
  • Put this file on ~/.texmf-var/bibtex/bst
  • Copied /usr/share/texlive/texmf-dist/bibtex/bst/base/plain.bst to ~/.texmf-var/bibtex/bst/plaincopy.bst

If I try to compile the following file
  1. \documentclass{article}
  2. \usepackage[utf8]{inputenc}
  3. \usepackage[english]{babel}
  4. \usepackage[T1]{fontenc}
  5. \usepackage{natbib}
  6. %\usepackage{hyperref}
  7.  
  8. \title{Title}
  9. \author{Myself}
  10.  
  11. \begin{document}
  12. \maketitle
  13.  
  14. \section{Introduction}
  15. \cite{Suber2004}
  16.  
  17. \bibliographystyle{gesellschaft}
  18. \bibliography{ref}
  19. \end{document}


with ref.bib being:
  1. @online{Suber2004,
  2. author = {Suber, Peter},
  3. title = {Open Access Overview},
  4. month = aug,
  5. year = {2013},
  6. url = {\url{http://legacy.earlham.edu/~peters/fos/overview.htm}},
  7. note = {[accessed 15 December 2013]}
  8. }


everything works ok. If I uncomment the 6th line (that is, use hyperref package), however, it doesn't work, with no .pdf produced. The last lines of the log file are (the name of the .tex file is mid.tex):
  1. (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty
  2. Package: hobsub-generic 2012/05/28 v1.13 Bundle oberdiek, subset generic (HO)
  3. Package: hobsub 2012/05/28 v1.13 Construct package bundles (HO)
  4. Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)
  5. Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
  6. Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)
  7. Package ifluatex Info: LuaTeX not detected.
  8. Package: ifvtex 2010/03/01 v1.5 Detect VTeX and its facilities (HO)
  9. Package ifvtex Info: VTeX not detected.
  10. Package: intcalc 2007/09/27 v1.1 Expandable calculations with integers (HO)
  11. Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)
  12. Package ifpdf Info: pdfTeX in PDF mode is detected.
  13. Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
  14. Package etexcmds Info: Could not find \expanded.
  15. (etexcmds) That can mean that you are not using pdfTeX 1.50 or
  16. (etexcmds) that some package has redefined \expanded.
  17. (etexcmds) In the latter case, load this package earlier.
  18. Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)
  19. Package: kvdefinekeys 2011/04/07 v1.3 Define keys (HO)
  20. Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO
  21. )
  22. Package pdftexcmds Info: LuaTeX not detected.
  23. Package pdftexcmds Info: \pdf@primitive is available.
  24. Package pdftexcmds Info: \pdf@ifprimitive is available.
  25. Package pdftexcmds Info: \pdfdraftmode found.
  26. Package: pdfescape 2011/11/25 v1.13 Implements pdfTeX's escape features (HO)
  27. Package: bigintcalc 2012/04/08 v1.3 Expandable calculations on big integers (HO
  28. )
  29. Package: bitset 2011/01/30 v1.1 Handle bit-vector datatype (HO)
  30. Package: uniquecounter 2011/01/30 v1.2 Provide unlimited unique counter (HO)
  31. )
  32. Package hobsub Info: Skipping package `hobsub' (already loaded).
  33. Package: letltxmacro 2010/09/02 v1.4 Let assignment for LaTeX macros (HO)
  34. Package: hopatch 2012/05/28 v1.2 Wrapper for package hooks (HO)
  35. Package: xcolor-patch 2011/01/30 xcolor patch
  36. Package: atveryend 2011/06/30 v1.8 Hooks at the very end of document (HO)
  37. Package atveryend Info: \enddocument detected (standard20110627).
  38. Package: atbegshi 2011/10/05 v1.16 At begin shipout hook (HO)
  39. Package: refcount 2011/10/16 v3.4 Data extraction from label references (HO)
  40. Package: hycolor 2011/01/30 v1.7 Color options for hyperref/bookmark (HO)
  41. )
  42. (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
  43. Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
  44. \KV@toks@=\toks16
  45. )
  46. (/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty
  47. Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
  48. )
  49. (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty
  50. Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)
  51. )
  52. \@linkdim=\dimen104
  53. \Hy@linkcounter=\count89
  54. \Hy@pagecounter=\count90
  55.  
  56. (/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def
  57. File: pd1enc.def 2012/05/13 v6.82q Hyperref: PDFDocEncoding definition (HO)
  58. Now handling font encoding PD1 ...
  59. ... no UTF-8 mapping file for font encoding PD1
  60. )
  61. \Hy@SavedSpaceFactor=\count91
  62.  
  63. (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg
  64. File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
  65. )
  66. Package hyperref Info: Hyper figures OFF on input line 4062.
  67. Package hyperref Info: Link nesting OFF on input line 4067.
  68. Package hyperref Info: Hyper index ON on input line 4070.
  69. Package hyperref Info: Plain pages OFF on input line 4077.
  70. Package hyperref Info: Backreferencing OFF on input line 4082.
  71. Package hyperref Info: Implicit mode ON; LaTeX internals redefined.
  72. Package hyperref Info: Bookmarks ON on input line 4300.
  73. \c@Hy@tempcnt=\count92
  74.  
  75. (/usr/share/texlive/texmf-dist/tex/latex/url/url.sty
  76. \Urlmuskip=\muskip10
  77. Package: url 2006/04/12 ver 3.3 Verb mode for urls, etc.
  78. )
  79. LaTeX Info: Redefining \url on input line 4653.
  80. \Fld@menulength=\count93
  81. \Field@Width=\dimen105
  82. \Fld@charsize=\dimen106
  83. Package hyperref Info: Hyper figures OFF on input line 5773.
  84. Package hyperref Info: Link nesting OFF on input line 5778.
  85. Package hyperref Info: Hyper index ON on input line 5781.
  86. Package hyperref Info: backreferencing OFF on input line 5788.
  87. Package hyperref Info: Link coloring OFF on input line 5793.
  88. Package hyperref Info: Link coloring with OCG OFF on input line 5798.
  89. Package hyperref Info: PDF/A mode OFF on input line 5803.
  90. LaTeX Info: Redefining \ref on input line 5843.
  91. LaTeX Info: Redefining \pageref on input line 5847.
  92. \Hy@abspage=\count94
  93. \c@Item=\count95
  94. \c@Hfootnote=\count96
  95. )
  96.  
  97. Package hyperref Message: Driver (autodetected): hpdftex.
  98.  
  99. (/usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def
  100. File: hpdftex.def 2012/05/13 v6.82q Hyperref driver for pdfTeX
  101. \Fld@listcount=\count97
  102. \c@bookmark@seq@number=\count98
  103.  
  104. (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty
  105. Package: rerunfilecheck 2011/04/15 v1.7 Rerun checks for auxiliary files (HO)
  106. Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2
  107. 82.
  108. )
  109. \Hy@SectionHShift=\skip45
  110. )
  111. (./mid.aux)
  112. \openout1 = `mid.aux'.
  113.  
  114. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 11.
  115. LaTeX Font Info: ... okay on input line 11.
  116. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 11.
  117. LaTeX Font Info: ... okay on input line 11.
  118. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 11.
  119. LaTeX Font Info: ... okay on input line 11.
  120. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 11.
  121. LaTeX Font Info: ... okay on input line 11.
  122. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 11.
  123. LaTeX Font Info: ... okay on input line 11.
  124. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 11.
  125. LaTeX Font Info: ... okay on input line 11.
  126. LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 11.
  127. LaTeX Font Info: ... okay on input line 11.
  128. \AtBeginShipoutBox=\box26
  129. Package hyperref Info: Link coloring OFF on input line 11.
  130. (/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
  131. Package: nameref 2010/04/30 v2.40 Cross-referencing by name of section
  132.  
  133. (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty
  134. Package: gettitlestring 2010/12/03 v1.4 Cleanup title references (HO)
  135. )
  136. \c@section@level=\count99
  137. )
  138. LaTeX Info: Redefining \ref on input line 11.
  139. LaTeX Info: Redefining \pageref on input line 11.
  140. LaTeX Info: Redefining \nameref on input line 11.
  141.  
  142. (./mid.out) (./mid.out)
  143. \@outlinefile=\write3
  144. \openout3 = `mid.out'.
  145.  
  146. LaTeX Font Info: External font `cmex10' loaded for size
  147. (Font) <12> on input line 13.
  148. LaTeX Font Info: External font `cmex10' loaded for size
  149. (Font) <8> on input line 13.
  150. LaTeX Font Info: External font `cmex10' loaded for size
  151. (Font) <6> on input line 13.
  152. (./mid.bbl
  153. ! TeX capacity exceeded, sorry [input stack size=5000].
  154. \@makeother #1->\catcode `#1
  155. 12\relax
  156. l.11 ...acy.earlham.edu/~peters/fos/overview.htm}}
  157. .
  158. If you really absolutely need more capacity,
  159. you can ask a wizard to enlarge me.
  160.  
  161.  
  162. Here is how much of TeX's memory you used:
  163. 5116 strings out of 493485
  164. 72165 string characters out of 3143525
  165. 830661 words of memory out of 3000000
  166. 8412 multiletter control sequences out of 15000+200000
  167. 10900 words of font info for 29 fonts, out of 3000000 for 9000
  168. 957 hyphenation exceptions out of 8191
  169. 5000i,6n,9987p,179b,287s stack positions out of 5000i,500n,10000p,200000b,50000s
  170. ! ==> Fatal error occurred, no output PDF file produced!


which doesn't say anything to me. The output of latexmk also doesn't help me at all.

If I use plaincopy as the style, the compilation stops with the following message:
  1. ! Package natbib Error: Bibliography not compatible with author-year citations.
  2.  
  3. (natbib) Press <return> to continue in numerical citation style.
  4.  
  5.  
  6. See the natbib package documentation for explanation.
  7. Type H <return> for immediate help.
  8. ...
  9.  
  10. l.21 ...mand\NAT@force@numbers{}\NAT@force@numbers


On the other hand, if I use plain style, it works, which means I probably installed my .bst files wrongly.

What did I do wrong? My files are found without any problems, so they are in the correct folder, but they don't behave like they should (why isn't plaincopy the same thing as plain?).


EDIT (January 7, 2014):
Placing the .bst file on the same folder as the .tex file works fine, but I don't want that.


Last bumped by mgmillani on Sat Jan 18, 2014 12:03 pm.

Tags:

Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 6 guests