Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

When you create a reference list (with the command \bibliography{x}), using the apacite package, is there any way to hijack the list, so of speak, and define what individual entries should say in clear text?

For example, if I want to refer to a painting, and I'm using Mendeley as my database for papers, it might get a little tricky to get everything to show up right. Here, instead of trying to hack the style and BibTeX files, it would be much more convenient to just spell out in clear text exactly what the reference should say.

share|improve this question
    
I'm not adding this as an answer, as I'm not sure if it's what you're after: Is it an option to edit the .bbl file that is generated by BibTeX? It's not a good way, as that file is regenerated on each BibTeX run, hence you would have to do the change only after the final run of BibTeX. –  Torbjørn T. Aug 11 '11 at 13:01
    
Exactly. That's one of the problems. In my case, the file gets regenerated by Mendeley so I would have to move it to another location and modify it right before I'm done with my text. However, I'm still not sure if I would be able to modify the file in such a way so that it looked the way I wanted. –  Speldosa Aug 12 '11 at 10:31
    
@Speldosa I don't follow the use of both natbib and biblatex-apa. Are you open to a biblatex-only solution? Bibliography drivers can be overridden... –  Audrey Aug 16 '11 at 18:49
    
@Audrey No, you're completely right. I don't know why I use both either. I'll edit the question to only include biblatex-apa. –  Speldosa Aug 16 '11 at 22:05
1  
Given the flexibility of biblatex it seems to me that you shouldn't need to do this. Do you have a specific example of a particular entry type that you are having difficulty with? (i.e. a bit more detail on your painting example and what Mendelay gives you in the .bib file.) –  Alan Munn Aug 16 '11 at 23:43
show 3 more comments

1 Answer

up vote 3 down vote accepted
+50

Under biblatex, you can override the bibliography drivers as done below. However I probably wouldn't handle the problem this way. The bibliography drivers save you from having to worry about too much format, line breaking, spacing and punctuation. They also ensure entries of the same type are set consistently and can handle bibliographic data in a flexible manner. Considering this, I'd probably reformulate this question or ask a new question providing an example with the problematic entries and the output you're wanting to achieve.

\documentclass{article}
\usepackage{filecontents}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=apa,backend=biber]{biblatex}
\DeclareLanguageMapping{american}{american-apa}

% Identify bib entries that must be manually set
\makeatletter
\AtEveryBibitem{%
  \ifthenelse{\iffieldequalstr{entrykey}{7.01:1}%
              \OR\iffieldequalstr{entrykey}{7.01:2}}
    {\def\abx@field@entrytype{customa}}
    {}}
\makeatother

% Provide text for manual entries
\DeclareBibliographyDriver{customa}{%
  \iffieldequalstr{entrykey}{7.01:1}
    {Entry 7.01:1 --- Herbst-Damm and Kulik. \mkbibemph{Volunteer Support...}}
    {}%
  \iffieldequalstr{entrykey}{7.01:2}
    {Entry 7.01:2 --- Gilbert et al. \mkbibemph{Effects of...}}
    {}}

\begin{filecontents}{\jobname.bib}
@ARTICLE{7.01:1,
  AUTHOR         = {K. L. Herbst-Damm and J. A. Kulik},
  TITLE          = {Volunteer Support, Marital Status, and the Survival Times of Terminally Ill Patients},
  JOURNALTITLE   = {Health Psychology},
  VOLUME         = {24},
  PAGES          = {225--229},
  YEAR           = {2005},
  DOI            = {10.1037/0278-6133.24.2.225},
  URL            = {http://some.url}
}
@ARTICLE{7.01:2,
  AUTHOR         = {D. G. Gilbert and J. F. McClernon and N. E. Rabinovich and C. Sugai and L. C. Plath and G. Asgaard and D. Dickinson and N. Botros},
  TITLE          = {Effects of Quitting Smoking and {EEG} Activation and Attention Last for More Than 31 Days and are More Severe With Stress, Depedence, {DRD2 A1} Allele, and Depressive Traits},
  JOURNALTITLE   = {Nicotine and Tobacco Research},
  VOLUME         = {6},
  PAGES          = {249--267},
  YEAR           = {2004},
  DOI            = {10.1080/14622200410001676305}
}
@ARTICLE{7.01:3a,
  AUTHOR         = {T. J. Sillick and N. S. Schutte},
  TITLE          = {Emotional Intelligence and Self-esteem Mediate Between Perceived Early Parental Love and Adult Happiness.},
  JOURNALTITLE   = {E-Journal of Applied Psychology},
  VOLUME         = {2},
  NUMBER         = {2},
  PAGES          = {38--48},
  YEAR           = {2006},
  URL            = {http://ojs.lib.swin.edu.au/index.php/ejap}
}
\end{filecontents}
\addbibresource{\jobname.bib}

\begin{document}
\nocite{*}
\printbibliography
\end{document}

enter image description here

share|improve this answer
    
This is great. Does anyone know of a thread which talkes about how you can use BibLaTeX-apa in conjunction with Mendeley? As I understand it, Mendeley only create files that can be used with BibTeX (that's why I changed my description above to be about apacite rather than BibLaTeX-apa). –  Speldosa Aug 17 '11 at 10:12
    
@Speldosa So I guess you meant apacite and not biblatex-apa all along? biblatex can, among other things, read data from a bib file. Doesn't Mendeley generate a bib file for you? –  Audrey Aug 17 '11 at 13:27
    
Yes, Mendeley generates a bib-file. However, I can't get it to work with BibLaTeX-apa and I just inferred that this was because of the file I tried to use it with. To find documentation about these things in any other language than geek seems to be really hard :) –  Speldosa Aug 17 '11 at 14:01
    
@Speldosa It'll be hard for anyone to help troubleshoot without details on the error messages you received. For simplicity try adapting the above code again, but this time replace lines 2-6 with \usepackage[style=authoryear]{biblatex}. Omit the filecontents environment and in \addbibresource{\jobname.bib} replace \jobname with the name of your bib file. –  Audrey Aug 17 '11 at 14:46
    
No matter how I do, I get the error message /Tmp.aux:6: Undefined control sequence. l.6 \APACbibcite {Moody2003}{\citeauthoryear {Moody}{Moody}{{\APACyear {2003}}}} Moody2003 is a reference I'm using in other papers I'm writing, I haven't even tried to invoke it here. I'm taking this to a regular forum to get it troubleshot. –  Speldosa Aug 18 '11 at 8:17
show 3 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.