SHARE
TWEET

Untitled

a guest Jun 24th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass{article}
  2.  
  3. usepackage{filecontents}
  4.  
  5. begin{filecontents}{jobname.bib}
  6. @book{Labov1972,
  7.     Address = {Philadelphia},
  8.     Author = {William Labov},
  9.     Publisher = {University of Pennsylvania Press},
  10.     Title = {Sociolinguistic Patterns},
  11.     Year = {1972}}
  12.  
  13. @book{Chomsky1957,
  14.     Address = {The Hague},
  15.     Author = {Noam Chomsky},
  16.     Publisher = {Mouton},
  17.     Title = {Syntactic Structures},
  18.     Year = {1957}}
  19. end{filecontents}
  20.  
  21. usepackage{biblatex}
  22. addbibresource{jobname.bib}
  23.  
  24. newififbibtitle
  25.  
  26. newcommandSetBibTitle[1]{defbibtitle{#1}bibtitletrue}
  27.  
  28. bibtitletrue
  29.  
  30. SetBibTitle{My Books}
  31.  
  32. begin{document}
  33.  
  34. Test cite{Chomsky1957}.
  35.  
  36. % This doesn't fail but also doesn't change the title
  37. ifbibtitle
  38.     setkeys{blx@bib1}{title=bib1}
  39.     setkeys{blx@biblist1}{title=biblist1}
  40.     setkeys{blx@bib2}{title=bib2}
  41.     setkeys{blx@biblist2}{title=biblist2}
  42.     setkeys{blx@bhd}{title=bhd}
  43. fi
  44.  
  45. printbibliography
  46.  
  47. % This fails
  48. % printbibliography[ifbibtitle title=bibtitlefi]{}    
  49.  
  50. % T.. as does this.
  51. % printbibliography[{ifbibtitle title=bibtitlefi}]{}
  52.  
  53. end{document}
  54.      
  55. ifbibtitle
  56.     printbibliography[title=bibtitle]
  57. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top