BibTeX, biblatex and biberbiblatex-mla | Space before Page missing

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
fauxpas
Posts: 4
Joined: Thu Apr 05, 2012 5:05 pm

biblatex-mla | Space before Page missing

Post by fauxpas »

Hey everyone :)

I've got a problem with biblatex-mla. I've used this package before without any problems but for some reason (had to reinstall MiKTeX and everything else) I've got one now :(

When I use \autocite[11]{key}, then the output in the document isn't (Author 11) but (Author11). I've tried looking in the documentation but couldn't find anything.. now I could of course just add a ~ in front of the page number manually, but when I quote from the same source repeatedly, I will end up with something like ( 11), which of course isn't acceptable.

Does anyone have any ideas? I'm a bit lost.

Example Code:

Code: Select all

\documentclass{article}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=mla]{biblatex}
\usepackage{hyperref}

\bibliography{references}
\begin{document}
\autocite[76]{Delbridge1992}\\
\end{document}
references.bib:

Code: Select all

@BOOK{Delbridge1992,
  title = {The Macquarie Dictionary},
  author= {Max Mustermann},
  publisher = {Macquarie Library},
  year = {1992},
  editor = {Arthur Delbridge}
}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Flipsen
Posts: 1
Joined: Tue Apr 10, 2012 6:19 pm

biblatex-mla | Space before Page missing

Post by Flipsen »

I had the same problem and finally solved it. I attached the modified version as replacement for the original one. I have a Mac so the path to my mla.cbx is

Code: Select all

/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex-mla
Please tell me if it worked.


Regards
Attachments
mla.cbx.zip
The modified citation style.
(5.12 KiB) Downloaded 188 times
fauxpas
Posts: 4
Joined: Thu Apr 05, 2012 5:05 pm

biblatex-mla | Space before Page missing

Post by fauxpas »

Hey, sorry for the incredibly late reply :D I hadn't seen your post earlier to back then I just did it manually in the end.

Sadly, using your file doesn't seem to have helped. I'll check on another MiKTeX installation to be sure.


Edit:
I've also noticed that I have to set the back-end to BibTeX to get citations to work. Still no space though :(

Edit II:
Is there a way to verify if modifying the "mla.cbx" file actually does anything? Because even if I delete all its contents, the document compiles just as before. I'm ovbiously far from being an expert on LaTeX, but that really shouldn't be the case, right? Using MiKTeX 2.9 on Windows 7. I also reran the "refresh FNDB" and "update formats" under Settings.

Edit III:
Got it to working! I was using my desktop PC instead of my laptop and I noticed that it didn't even have any folder for biblatex or biblatex-mla in the MiKTeX directory but it still compiled the document. So I did a search for *.cbx on C:/ and noticed it was in %User%/Appdata/Roaming/MiKTeX/2.9/tex/latex.. changed the file and voila! It worked. Thanks so much!


For anyone using the file above: I noticed with one of the works I cited that it had added "asd" in front of the title.. I found that the string had made it into the "mla.cbx" file:

Code: Select all

\DeclareCiteCommand{\cite}[\mkbibparens]
  {\usebibmacro{prenote}}%
  {\usebibmacro{citeindex}%
   asd\usebibmacro{cite:mla}}%
  {}
  {\usebibmacro{postnote}}
Just remove the asd and it should be fine :)
Post Reply