I know it is possible to include references to specific sections/chapters of citations in Latex, but am wondering if there is a way to do this within the R Bookdown environment. Searches show lots of ways to reference other sections of the book I am writing in bookdown. For context, including a bookdown citation such as [#Gelman2014] produces the following reference in the pdf output: (Gelman 2014). I am looking for a way to get something along the lines of (Gelman 2014 Sec 2.1). Thanks in advance!
Welcome to SO, #lcaruso!
You could try something like this:
[#Gelman2014 \text{Sec} 2.1]
I am writing my PhD thesis as a combination of my papers. First I wrote an "introduction" chapter, then chapter 2, 3 and 4 are my papers and the chapter 5 is "conclusion". All of these 5 chapters have been written in separate latex files. Now, I was wondering how can I put all of them in a single file so that I can produce outlines of materials and figures?
I know how to combine simple files, but in this case, 3 of them are journal papers with different formatting (e.g. one of them is 1 column and the other is two columns). According to my university rules I should add the journal paper chapters in their own format (the format which they were published) and not a unify format similar to the others.
Now, I was wondering how can I do this?
I got errors when I compiled which says the formatting is defined in the main latex file which has link to the others and you can not define separate documents, or I have used "\maketitle" for writing the title of each paper but I got error that this instruction is only for the main file and so on...
how can I manage this? thanks
What is the best approach to merging latex generated from nbconvert with other latex? In my case I have several company specified forms (which I have latex for) that I want to merge with the notebook/nbconvert generated latex. And, I want to follow the company template for headers/footers/page numbering/table of contents, etc. (these are already available in a latex project).
So with my very basic understanding, I see two possible approaches. Are either viable or is there something else that I am missing?
1) ipython notebook centric - is there a way to modify the preamble to include all the packages and other stuff that my forms need? Company header/footer? etc
or
2) including ipython nbconvert output as part of an external latex project with an include. Is there a way to break out the preamble stuff that nbconvert generates?
I don't have a good handle on how nbconvert pulls together the pieces. So, any adivce or information on how nbconvert deals with latex would be much appreciated.
Both 1) and 2) are possible. You can generate the most basic latex with nbconvert using the base template --template=base and insert that into your own company latex. You can even override existing blocks (cf Jinja Documentation) to extend and/or replace existing blocks. Cf this Old and not up to date explanation
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.