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
Related
I am working on finalizing my Wiley Template for Software: Practice and Experience Journal.
I could not find how to include the following in the latex template for that Journal:
Author Contributions,
Data availability statement and
ORCIDs
These authors have done it quite well at the end of their manuscript: https://onlinelibrary.wiley.com/doi/epdf/10.1002/spe.3098
I looked it up, and MDPI Journal has this command \dataavailabilitystatement(Text)
However, for the SPE Journal, I cannot find that provision in the latex template here: https://onlinelibrary.wiley.com/page/journal/1097024x/homepage/la_tex_class_file.htm
I would be grateful for any guidance.
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.
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'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.
Many journals require submission of a blinded version of your paper. The blinded version usually removes:
the list of authors
any citations to the authors' work
How can I create a blinded version of my manuscript without doing this manually?
You could use the extract package to generate a separate LaTeX source file for the paper with the author list and acknowledgements automatically removed. I believe the versions package could be used to do this as well.
As for blinding the citations, I think the point is to refer to your own work in a neutral and unrevealing way. Here are some examples of correct and incorrect ways to cite your own work in a blinded manuscript:
Incorrect: "As I have argued elsewhere..."
Corrected: "As Jones (2001) has argued..."
Incorrect: "As I argue in (Jones 2001)."
Corrected: "As Jones (2001) argues."
Incorrect: "This argument is fleshed out in my (2001)."
Corrected: "Jones (2001) makes this argument in more detail."
One thing that is often overlooked in these cases, is that you do not really need to remove citations of your own work, as long as you refer to them in the third person. Instead of writing "As shown in our previous paper (Removed for review) ...", you should write "As shown by Smith et al. (Smith, Jones, and Adams, 2008)...".
This reads much better and saves you some of the trouble, while typically satisfying the submission rules for journals and conference. This way all you have to do is remove the list of authors, which is not hard to do by hand.
Hadley, you say it's necessary to remove all references to your own work. Is that really the case? At a certain career stage, the absence of a set of citations could very well give away the identity of the author!
I will betray my old-fart status by advising you to ignore those who advise using the active voice. Changing "Hadley (2009) showed that the sky is blue" to "The sky is blue (Hadley 2009)" is a simple solution to the problem of "I" (and "we" and "some of us" and "some of us, plus others") in technical writing. And it has an additional bonus: it focusses attention on the matter at hand, not on the people involved. You want the reader's internal eye to see that broad sweep of azure, not your avatar ;-)
To remove the list of authors, you could use \renewcommand to "edit" your \maketitle in order to avoid listing article's authors. For author's citations, you could do the same.
For example.
\renewcommand{\maketitle}{\title}