Multiple citations, biblatex and APA

Issues with multiple citations of an author and biblatex-apa
Recently I had to refer an author multiple times in a document. I had recently shifted to biber and biblatex. The American Psychological Association (APA) style was the recommended style.
And in the final references
The author name was, let us, was Wilbur-Markus Rowland, and he had about 10-11 articles. The author had many co-authors, in some cases this author was the first author in other cases he was the second or even third one.
Now the issue that I was facing was this: The same author name was getting cited differently at different places.
For example, in some cases it appeared like
W.-M. Rowland, in other cases Wilbur-Markus Rowland, and in some cases even as Rowland. This was very confusing. And on top of all that the final references had entries like
Rowland W.-M. (W. M.)
Rowland W.-M. (Wilbur-Markus)
Rowland W. M. (Wilbur-Markus)
Rowland W. M. (W.-M.)
I checked and rechecked the bibtex entries in hope of finding some error but it was not to be found. I must have done a Clean All a dozen times, after editing the bib file.. I tried adding same name entries for Rowland as first author to be the same, but it didn’t work. This was really frustrating.
Similarly a couple of references with two different authors with a common surname were giving intials in the main text. For example, D. R. Cook and M. P. Cook. Now all other refernces (except the Rowland one) were coming as per the APA requirement, which is (Author, Year), so ideally they should have been (Cook & Weston, 1999) and (Cook, 2004). But rather they were being displayed as (D. R. Cook & Weston, 1999) and (M. P. Cook, 2004). Now no change in the bib file was changing any of this. I thought there was some issue with the bib entries. I deleted the entries and entered them again manually, but no avail.
Then I chanced upon this link

 even though the year of publication differs in the two Campbell (Cook in our case) references, the lead author’s initials should be included in all text citations, regardless of how often they appear.

So the Cook mystery was solved. biblatex was compiling correctly as per the APA guidelines, the initials for the two different Cook entries must be there. This is because

 Including the initials helps the reader avoid confusion within the text and locate the entry in the reference list.

Now for the Rowland entry, the next part of the blog gave me a hint towards the possible problem:

Although this rule seems straightforward, one thing that trips up some writers is how to proceed when different lead authors with the same surname are also listed in other references in which they are not the lead author.

After this I checked the entries where Rowland was second or third author. These entries differed from the entries where he was the lead author. And this was causing the problem. For each different entry style of his name, biblatex was considering him as a separate author. Hence the initials and the different references entries with names in brackets. Once all the entries for Rowland were made consistent the problem disappeared. Phew!
This issue bugged me for almost a couple of working days, to find the cause and subsequent addressing was most rewarding.
Note that the bibtex references that I had were taken from google scholar, hence differing styles in author name. Please make them consistent. This is a warning for future me and others who are reading this post.
 

The True Purpose Of Graphic Display – J. W. Tukey

John Wilder Tukey, one of the greatest Statistician of the last century points to what the purpose of a graphic display should be:

  1.  Graphics are for the qualitative/descriptive – conceivably the semi quantitative – never for the carefully quantitative (tables do that better).
  2. Graphics are for comparison – comparison of one kind or another – not for access to individual amounts.
  3. Graphics are for impact – interocular impact if possible, swinging-finger impact if that is the best one can do, or impact for the unexpected as a minimum – but almost never for something that has to be worked at hard to be perceived.
  4. Finally, graphics should report the results of careful data analysis – rather than be an attempt to replace it. (Exploration-to guide data analysis – can make essential interim use of graphics, but unless we are describing the exploration process rather than its results, the final graphic should build on the data analysis rather than the reverse.)

From:

Tukey, J. W. (1993). Graphic comparisons of several linked aspects: Alternatives and suggested principles. Journal of Computational and Graphical Statistics, 2(1), 1-33.

On Design

Design is both the disruptor and being disrupted. It’s disrupting markets, organizations, and relationships, and forcing us to rethink how we live. The discipline of design is also experiencing tremendous growth and change, largely influenced by economic and technology factors. No longer an afterthought, design is now an essential part of a product, and it may even be the most important part of a product’s value.
Source: Experience design is shaping our future – O’Reilly Radar

Citation inside a Caption – LaTeX

Recently while writing my thesis, I came across a strange error while compiling with LaTeX. The problem arose when I gave a cite command inside a caption environment. The caption was for a figure. For example
\caption{This is the caption for a figure. From  \cite{friend2005}}
This gave the following error:

! Argument of \Hy@tempa has an extra }.
<inserted text>
\par
l.89 ...sity estimate. From  \cite{friend2005}}

?
Runaway argument?
\@captype {\@firstoftwo {\@ifstar {\HAR@acite }{\HAR@fcite }}}\def \reserved@b
\ETC.
! Paragraph ended before \Hy@tempa was complete.
<to be read again>
\par
l.89 …sity estimate. From  \cite{friend2005}}
?
A little googling around I found this site which solved the problem in a second.
So the command should read like:

\caption{This is the caption for a figure. From  \protect\cite{friend2005}}

And the problem is solved. In case you are wondering what \protect does look here.

LaTeX Notes

This is a post for self-reference.
There are many LaTeX packages that I come across, and forget about them.
This page will keep a track of those packages. It will be updated with new hacks and packages that are useful.

\usepackage{libgreek}

\usepackage{pgfgantt}

  • For including video/audio files in Beamer presentations

\usepackage{media9}

Caffeine…

Caffeine is the source of new ideas. - Anon (in Fortune)

My day starts with a cup of coffee, and this cup mostly fulfils my daily requirement for caffeine.
Long gone are the days of instant coffee and now I do brew my own.F or this purpose I mostly rely on two of Bombay’s best coffee shops that I know of; namely Philips Coffee and Tea and Mysore Concerns (The Coffee People since 1939).
Both shops I discovered quite accidentally. Philips Tea and Coffee has registered office near Khadi Bhavan on D. N. Road in Fort. Naturally curious I enquired, but there was no sale there, and they guided me to a Sale store down the lane towards Strand Book Shop. There are two varieties of coffee beans available with them the Highlander and Peaberry. Peaberry which I prefer is priced at Rs. 420 a kilo and Highlander is a little low, maybe Rs. 380. The best part is that they grind the beans just in front of you and the aroma that is generated is too good to be described in words. Since I have a “fussy coffee machine” it is not very happy to brew when the powder is too fine, so they grind it as per my requirement, a bit coarse. They have chain of shops throughout Bombay, I mostly take my stock from the Chembur which is close to where I live, but sometimes also from the Fort shop, which is where I visit to hunt for books. They also sell a variety of teas and stock a few magazines many of them Mallu.

The Mysore Concerns shop I discovered quite weirdly. I was on my BEST-bus tours of Bombay some years back, and suddenly near Maheshwari Udyan or King’s Circle I smelt coffee. It was a strong one. And just as the bus passed over it went away. Anyways I was supposed to get down at the stop, as I was on a book hunting mission. I just could not resist myself from finding source of the smell. And the source turned out to be the Mysore Concerns shop, which keeps on grinding coffee beans throughout the day which produces aroma which wanders along the streets. They also sell Coimbatore butter which I have never tried. But this was too good to resist. The price is lower as compared to Philips Rs. 340 per kilo and AFAIK they do not have any variants in the coffee they sell. But going to Matunga all the way to get coffee was not practical many times, but then someone told me that you get it in Chembur too. Although the pack says there is NO BRANCH as opposed to Philips people.
I have collected quite a number of different cups ~ 20 for the morning coffee ritual, and the milk is mostly got from the canteen, I do not as yet like black coffee, I want it with lots of milk (preferably buffalo) and no sugar. Some of the more costly ones are from Chimp and the logo of the brand a Chimp printed on the inside of the cup seems to enjoy surfing the sea of coffee as much as I do.

I had a fortunate visit to a spice garden which belonged to a friend near Bangalore, and I saw there coffee plants ,the green beans and the fragrant white flowers for the first time. They tell me that till you roast the coffee beans you don’t get the aroma of coffee from any other part of the plant.


 
And remember always: a bad coffee is worse than no coffee…


And interestingly the science behind the coffee rings, though not the above one, is explanied.