In my report, I'm citing the Standards for Educational and Psychological Testing by AERA, APA, and NCME.
#Book{standards,
title = {{Standards for Educational and Psychological Testing}},
author = {{American Educational Research Association} and {American Psychological Association} and {National Council on Measurement in Education}},
shortauthor = {AERA},
publisher = {American Educational Research Association},
address = {Washington, DC},
year = {2014}
}
According to APA style guide 6th ed., recognizable abbreviations for authoring organizations should be used. The first time I'm citing this book in the text, it should look like this:
Here is some filler text (American Educational Research Association
[AERA], American Psychological Association, & National Council
on Measurement in Education, 2014). And here is some more
filler text (AERA et al., 2014).
However, my citations are currently showing like this:
Here is some filler text (American Educational Research Association,
American Psychological Association, & National Council on Measurement
in Education, 2014). And here is some more filler text (American
Educational Research Association et al., 2014).
Is there a way to implement these citations in bookdown? A minimally reproducible example is here: https://github.com/wjakethompson/bookdown-citations
I've developed a partially working solution. This solution prints the long author and shortened version, but only works for a single author, and as it uses LaTeX to achieve the customisation, it only works for PDF outputs.
Adapting your provided example, I have created a bibliography test.bib as follows:
#Book{standards2,
title = {{Standards for Educational and Psychological Testing}},
author = {{American Educational Research Association}},
shortauthor = {AERA},
publisher = {American Educational Research Association},
address = {Washington, DC},
year = {2014}
}
A file header.tex is also created. This defines a new LaTeX command \citefull, which prints out a citation in the format (author [shortauthor], year). The approach was loosely based off this answer here. The file content is as follows:
\DeclareCiteCommand{\citefull}
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\DeclareNameAlias{labelname}{first-last}%
\usebibmacro{prenote}}
{\ifciteindex
{\indexnames{labelname}}
{}%
(\printnames{author}
[\printnames{shortauthor}],
{\printdate})
}
{\usebibmacro{postnote}}
% Adds a comma between the author and year
\renewcommand*{\nameyeardelim}{\addcomma\space}
Below is the Rmarkdown file. Changes are made to use biblatex as the citation package. To have a full citation, the command \citefull{} can be used.
---
output:
pdf_document:
includes:
in_header: header.tex
citation_package: biblatex
bibliography: test.bib
biblio-style: authoryear
---
\citefull{standards2}
[#standards2]
Additional Notes
As I said, this is a partial solution as it doesn't work for multiple
authors, and I must admit my knowledge of customising LaTeX citations
does not extend that far! Hopefully, someone will be able to expand on
this answer to be able to improve this functionality.
I attempted using the solution explained
here,
but as it requires LaTeX packages to be loaded before biblatex, it
would require the altering of the pandoc .tex template. I felt this
was less optimal that using a header file.
Even if I did edit the original template, I was still having problems
getting this solution working. I was getting an error
\DeclareLanguageMappingSuffix and wasn't able to work out where I
was messing things up.
I hope these notes help anyone who considers exploring a better solution.
I was able to improve on the solution provided by Mikey Harper. It is still a partial solution only, since it uses LaTeX packages and therefore works only for PDF. The main idea is to use the this LaTeX solution and adapt it to RMarkdown. Content of test.bib:
#Book{standards,
title = {{Standards for Educational and Psychological Testing}},
author = {{American Educational Research Association} and {American Psychological Association} and {National Council on Measurement in Education}},
shortauthor = {{AERA et al.}},
publisher = {American Educational Research Association},
address = {Washington, DC},
year = {2014}
}
Rmd file:
---
output:
pdf_document:
citation_package: biblatex
bibliography: test.bib
biblio-style: apa
biblatexoptions:
- sortcites
header-includes:
- \DeclareLanguageMapping{english}{american-apa}
---
[#standards]
[#standards]
Result:
This is not quite the requested format, since the short author is at the end of author list, but according to this question, there is no better solution. I have therefore opened https://github.com/plk/biblatex-apa/issues/63.
Related
I have been looking for an answer to my problem for quite a while now and was not able to find one that really meets my requirements.
I am using biblatex with citestyle alphabetic. For most cases this is absolutely fine. But now I would like to cite a study and would like a specific set of letters to appear in the text.
The biblatex source looks as follows:
#Report{Kost2018,
author = {Kost, Christoph and Shammugam, Shivenes},
title = {{Levelized Cost of Electricity Renewable Energy Technologies}},
institution = {Fraunhofer ISE},
year = {2018},
}
Now, with \autocite{Kost2018}, as expected, the citation comes out as [Kos+18].
What I would like instead is something like [ISE18] because the reader will more likely know this institute rather than the author. Also, if I cite several studies of that insistute, it is more clear to the reader.
I would be really greatfull if someone could help me on this.
You can use the biblatex key shorthand:
#Report{Kost2018,
author = {Kost, Christoph and Shammugam, Shivenes},
shorthand = {ISE18},
title = {{Levelized Cost of Electricity Renewable Energy Technologies}},
institution = {Fraunhofer ISE},
year = {2018}
}
Description from the biblatex documentation:
label
A designation to be used by the citation style as a substitute for the regular label if
any data required to generate the regular label is missing. For example, when an
author-year citation style is generating a citation for an entry which is missing the
author or the year, it may fall back to label. See § 2.3.2 for details. Note that, in contrast to shorthand, label is only used as a fallback. See also shorthand.
shorthand
A special designation to be used by the citation style instead of the usual label. If
defined, it overrides the default label. See also label.
Reference: How to specify bibliography alpha key without modifying the .bst file or using BibLaTeX
I write most text using org-mode nowadays, and I often use it to generate PDF via LaTeX (xelatex, specifcally). But now I want to use it to write scientific articles, and journals often want me to use a specific style. This includes a .cls-file, which is easy enough using org-latex-classes, but quite often, they require a specific setup following \begin{document} (i.e. a specific abstract section, funky author and affiliation, etc, and I don't see how to do that. That is, I now do this within a #+begin/end_latex section - but this needs to be completely rewritten if I switch style.
I realize I probably need to fiddle with the LaTeX code at some point, but I'd like to minimize this fiddling as far as possible, and I'd like to be able to switch from one journal to another with a minimum of fuss, and keeping my org-mode source as intact as possible.
See item 3 at http://kitchingroup.cheme.cmu.edu/blog/2014/08/08/What-we-are-using-org-mode-for/
There is a list of papers there we have written in org-mode and exported to LaTeX. We have probably 8 more since that post.
In the SI you can find the org-source embedded in the PDF, and here: Spencer D. Miller, Vladimir V. Pushkarev, Andrew J. Gellman and John R. Kitchin, Simulating Temperature Programmed Desorption of Oxygen on Pt(111) Using DFT Derived Coverage Dependent Desorption Barriers, Topics In Catalysis, 57(1), 106-117 (2013). http://link.springer.com/article/10.1007%2Fs11244-013-0166-3 you can even find our manuscript embedded.
You may also want to checkout https://github.com/jkitchin/org-ref for citation management and https://github.com/jkitchin/jmax/blob/master/ox-manuscript.el for how we do our exports.
Depending on the amount of latex polishing you need to do, you may find it simpler to just add some things to your org file, and use a little bit of babel directly. Here is a snippet of how the start of one my files might look. Some of things are in there, because I will also have the R code for the statistical analyses in the org file in order to be able to have a more reproducible work flow:
# -*- mode: org; org-export-babel-evaluate: nil -*-
#+Title: This is my title
#+Author: An Author, Another Author, and Last Author
#+Options: toc:nil ':t *:nil -:nil ::nil <:nil ^:t author:t d:t H:5 |:t
#+Property: header-args:R :session *myarticlessection* :results output :exports both :cache yes
#+Latex_Class: article
#+Latex_Class_Options: [12pt]
#+Latex_Header: \usepackage{amsmath}
#+Latex_Header: \usepackage[T1]{fontenc}
#+Latex_Header: \usepackage{mathptmx}
#+Latex_Header_Extra: \linespread{1.5}
#+LATEX_HEADER: \usepackage[citestyle=authoryear-icomp,bibstyle=authoryear, hyperref=true,backref=true,maxcitenames=3,url=true,backend=biber,natbib=true] {biblatex}
#+Latex_header: \addbibresource{myarticles.bib}
#+BEGIN_SRC latex :results output
\begin{abstract}
Here is where I put the abstract.
\end{abstract}
#+END_SRC
#+RESULTS:
#+BEGIN_LaTeX
\begin{abstract}
And this is where it ended up after evaluating the babel block.
\end{abstract}
#+END_LaTeX
I used org-mode to write several papers, including my PhD thesis. It helped me greatly to keep track of open problems, priorities, annotations etc.
I use a small custom converter that reads the .org file and exports parts of it to a .tex file. Note that "normal" org-mode text (including headings, text, priorities, keywords etc.) is not exported, just the stuff between #BEGIN_LaTeX and #END_LaTeX tags. This way, you can make annotations as you see fit, which won't appear in the published text.
I would like to add a note in the Latex Chapter environment that the work
I am describing in the following has been published in a paper. In other words,
it should look something like this:
Chapter 6
The Evolution in research
The research described in this Chapter has been published in:
R. Moor and J.Morris. The Evolution of Research, Workshop on
Education, 2010, pp. 180-190
Once upon a time ....
Or alternatively:
The research described in this Chapter has been published in:
R. Moor and J.Morris. The Evolution of Research, Workshop on
Education, 2010, pp. 180-190
Chapter 6
The Evolution in research
Once upon a time ....
Anyone an idea if there is something like a template for doing that in Latex?
Many thanks,
Rob
You could redefine the \chapter command to make it accept one more (optional) argument containing your description.
In order to use the same name, look at Redefining latex macro using same name
I'm using LaTeX and BibTeX for an article, and I want to able to cite the title of an article I reference. What is the command to do this?
I'm using \bibliographystyle{chicago} and it does not appear to be \citeT{}, \citetitle{} or \citeTitle{}
#Norman, and the various commenters, are correct in that it would be difficult to do this with bibtex and other tools. But, there is an alternative. Biblatex does allow this through the command \citetitle. Also, if you really want to, the formatting drivers in biblatex are easily readable and modifiable, but only if you feel the need. Unfortunately, it is not part of any distribution, yet, so it has to be downloaded and installed.
Just type in the title. Even natbib, the most powerful widespread BibTeX package, is not powerful enough to do what you want out of the box. Trying to get BibTeX to extract the title for you, by means of a LateX command, is possible, but it would require that you
Design a new format for bibliography items that is incompatible with existing formats.
Write your own custom .bst file, using the very strange postfix language that is used only by BibTeX, to be compatible with your new format.
Write a new LaTeX command to pull the title information out of the new format.
Speaking as someone who has written several custom bst files as well as a replacement for BibTeX, it's just not worth fooling with. After all, if you are citing the paper, you probably know the title anyway.
EDIT: If you have to do this with multiple papers, I would try to cheat. Extend the bst file so that it writes into the bbl file a command that writes into the aux file the title associated with each bibkey. You can model the bbl command on \label and the actual title-citing command on \ref.
This is how I solve the title issue for cited papers:
In the preamble
include Natbib:
\usepackage[sort&compress]{natbib}
If you want to cite a TITLE instead of an author in the text you define the title like this in the preamble:
\defcitealias{Weiser1996designingcalm}{Designing Calm Technology}
Note:
You need to have a bibtex item (for the title ''Designing Calm Technology'') with the key {Weiser1996designingcalm}.
In the paper where you want to write the cited paper's title
\citetalias{Weiser1996designingcalm}
this results in => Designing Calm Technology (i.e. the text you specified with the \defcitealias command above)
or
\citepalias{Weiser1996designingcalm}
that results in => (Designing Calm Technology) (i.e. title with parenthesis)
This question is old and maybe \citefield was not around back in the days, but now it works like charm for this kind of problems:
\documentclass[varwidth]{standalone}
\usepackage{biblatex}
\begin{filecontents}{\jobname.bib}
#article{example,
title = {NAME OF PAPER},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\citefield{example}{title}
\end{document}
Got it from this question.
Thanks to Anders for the hint. \defcitealias seems to be the way to go.
Bibtex produces a .bbl file which contains the bibliography entries. something like that
\bibitem[\protect\citeauthoryear{Andrienko
{\itshape{et~al.}}}{2003}]{Andrienko2003}
Andrienko, G., Andrienko, N., and Voss, H., 2003. {GIS for Everyone: The
CommonGIS Project and Beyond}. {\itshape {In}}: {\itshape {Maps and the
Internet}}., 131--146 Elsevier.
I use Eclipse, which is free and that you may already have to apply regular expressions in this file when needed. '\R' acts as platform independent line delimiter. Here is an example of multi-line search:
search:
\\bibitem.*(\R.*)?\R?\{([^{]*)\}\R^[^\\].*\d\d\d\d\.\s([^\.]*\R?[^\.]*)\R?.*\R?.*
and replace:
\\defcitealias{$2}{$3}
(For myself I use \\bibitem.*(\R.*)?\R?\{([^{]*)\}$\R^([^\\].*[^\}]$\R.*$\R.*) to get all the item text)
Et produces a series of \defcitealias that can be copypasted elsewhere:
\defcitealias{Andrienko2003}{{GIS for Everyone: The
CommonGIS Project and Beyond}}
Finally, this can be used to build a custom command such as:
\newcommand{\MyCite}[1]{\citet*{#1}. \citetalias{#1}.}
Used as \MyCite{Andrienko2003} and producing: Andrienko et al. (2003). GIS for Everyone: The CommonGIS Project and Beyond.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I've heard that title capitalization in bibliography is the bibliography style's role (the bst file). Is there a bibliography style file that capitalizes book titles but not paper titles? For example, a paper title should be like
Hello world and hello kitty
a book title should be like
Hello World and Hello Kitty
bib style plain.bst doesn't seem to capitalize book titles. A minimal example:
minbib.tex
\documentclass{article}
\begin{document}
See \cite{book1}.
\bibliographystyle{plain}
\bibliography{min}
\end{document}
min.bib
#book{book1,
AUTHOR = {Petersen, K.},
TITLE = {Ergodic theory},
PUBLISHER = {Cambridge University Press},
YEAR = 1989,
}
The book title in the dvi output is "Ergodic theory", not "Ergodic Theory".
I've checked this against the contents of the plain.bst file, rather thanrelying on dimly recalled assertions about what bibtex does, as per the post of mine I deleted... plain.bst treats titles in one of two ways, using the functions it defines, first, format.title, used, e.g., for #article, which lowercases, and then format.btitle, used for #book, which puts the title in emphasis without touching the capitalisation.
Rules for capitalising titles are complex, complex enough that one can't expect a .bst file to completely automate it. For example, Chicago Manual of Style says one should "Lowercase prepositions, regardless of length" with a list of examples. But prepositionhood is a semantic role, that is syntactically generative: CMoS gives as an example preposition "according to". And one of the exceptions is to capitalise when the preposition is stressed: e.g., in "Alice Through the Looking Glass", where stress isn't even semantic, but a pragmatic property of the word. So it's not the bst's role.
So the Right Thing is to put title strings in title case, protecting the capitalisation of proper names with {}s (e.g., From {B}rouwer to {H}ilbert). Do this with articles too, since some reflist styles, e.g., MLA, put article titles into title case, but most scientif styles lowercase them.
plain.bst gets one thing wrong: for #article, it does not consider colons, which are used to indicate subtitles. So protect the capital letter after colons.
There is a tool to generate custom bib-styles, makebst.tex. When I run it as
latex /usr/share/texmf-texlive/tex/latex/custom-bib/makebst.tex
it asks a lot of questions, and in particular, it allows to select capitalization of article titles:
CAPITALIZATION OF ARTICLE TITLE:
(*) Sentence style (capitalize first word and those in braces)
(t) Title style (just as in bib entry)
Select:
\ans=t
You have selected: Title style
There is no such option for book titles though... But even in this case “Title” style means only “just as in bib entry”. So probably you need to capitalize titles manually.