Changing color of inline citations in a pdf output from RMarkdown
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I am having troubles when changing the color of inline citations in a pdf output from RMarkdown. Let's start with the YAML:
---
title: MY TITLE
author: "Mario Modesto-Mata"
date: "20 September 2018"
output:
pdf_document:
highlight: espresso
number_sections: yes
toc: yes
toc_depth: 4
bibliography: references.bib
csl: ajpa.csl
---
As you can see, I have my bibliography specified (references.bib
) and the citation style (ajpa.csl
). I must say it works pretty nice.
However, I am writing a long manuscript and I would like inline citations to be colored to allow readers distinguish what is text and what are citations.
Before changing color
This is my example where you can see the inline citations.
Cada diente se forma en un momento concreto bajo una fuerte regulación
genética. Por lo tanto, presentan cada uno su propia trayectoria de
crecimiento, desarrollo, tasa de formación y momento de erupción, que
son relativamente independientes del resto de piezas dentales. Por
este motivo, cada especie posee un patrón de desarrollo dental
particular y bien definido en función de las trayectorias de
crecimiento concretas de cada diente o clase de dientes
[@BermudezdeCastrochicoGranDolina2002;
@SmithDentaldevelopmentevolution1991;
@SmithDentaldevelopmentmeasure1989;
@SmithPatternsdentaldevelopment1994]. El desarrollo dental es
altamente heredable y relativamente resistente a los procesos de
malnutrición y enfermedad, existiendo menos variación en su patrón de
desarrollo respecto a los parámetros de maduración esqueléticos
[@Lewisrelationshiptoothformation1960].
When I convert it into a PDF using RMarkdown, I get correct inline citations:
After changing color
I searched on this forum and found a potential solution, as you can read in the original question.
However, when I implement those tips, as seen in this code:
Cada diente se forma en un momento concreto bajo una fuerte regulación
genética. Por lo tanto, presentan cada uno su propia trayectoria de
crecimiento, desarrollo, tasa de formación y momento de erupción, que
son relativamente independientes del resto de piezas dentales. Por
este motivo, cada especie posee un patrón de desarrollo dental
particular y bien definido en función de las trayectorias de
crecimiento concretas de cada diente o clase de dientes
textcolor{blue}{[@BermudezdeCastrochicoGranDolina2002;
@SmithDentaldevelopmentevolution1991;
@SmithDentaldevelopmentmeasure1989;
@SmithPatternsdentaldevelopment1994]}. El desarrollo dental es
altamente heredable y relativamente resistente a los procesos de
malnutrición y enfermedad, existiendo menos variación en su patrón de
desarrollo respecto a los parámetros de maduración esqueléticos
textcolor{blue}{[@Lewisrelationshiptoothformation1960]}.
I get this output:
As you can see, the bracked text has turned blue, but I lost the correct inline citations.
Question
- How can I change the color of the inline citations without losing the citations themselves? Maybe there is an option to add in the YAML (which would be fantastic) instead of customizing every single citation along the whole manuscript?
UPDATE
You can download a ZIP file with part of my Rmd file, ajpa.csl and references.bib.
latex pdf-generation r-markdown citations
add a comment |
I am having troubles when changing the color of inline citations in a pdf output from RMarkdown. Let's start with the YAML:
---
title: MY TITLE
author: "Mario Modesto-Mata"
date: "20 September 2018"
output:
pdf_document:
highlight: espresso
number_sections: yes
toc: yes
toc_depth: 4
bibliography: references.bib
csl: ajpa.csl
---
As you can see, I have my bibliography specified (references.bib
) and the citation style (ajpa.csl
). I must say it works pretty nice.
However, I am writing a long manuscript and I would like inline citations to be colored to allow readers distinguish what is text and what are citations.
Before changing color
This is my example where you can see the inline citations.
Cada diente se forma en un momento concreto bajo una fuerte regulación
genética. Por lo tanto, presentan cada uno su propia trayectoria de
crecimiento, desarrollo, tasa de formación y momento de erupción, que
son relativamente independientes del resto de piezas dentales. Por
este motivo, cada especie posee un patrón de desarrollo dental
particular y bien definido en función de las trayectorias de
crecimiento concretas de cada diente o clase de dientes
[@BermudezdeCastrochicoGranDolina2002;
@SmithDentaldevelopmentevolution1991;
@SmithDentaldevelopmentmeasure1989;
@SmithPatternsdentaldevelopment1994]. El desarrollo dental es
altamente heredable y relativamente resistente a los procesos de
malnutrición y enfermedad, existiendo menos variación en su patrón de
desarrollo respecto a los parámetros de maduración esqueléticos
[@Lewisrelationshiptoothformation1960].
When I convert it into a PDF using RMarkdown, I get correct inline citations:
After changing color
I searched on this forum and found a potential solution, as you can read in the original question.
However, when I implement those tips, as seen in this code:
Cada diente se forma en un momento concreto bajo una fuerte regulación
genética. Por lo tanto, presentan cada uno su propia trayectoria de
crecimiento, desarrollo, tasa de formación y momento de erupción, que
son relativamente independientes del resto de piezas dentales. Por
este motivo, cada especie posee un patrón de desarrollo dental
particular y bien definido en función de las trayectorias de
crecimiento concretas de cada diente o clase de dientes
textcolor{blue}{[@BermudezdeCastrochicoGranDolina2002;
@SmithDentaldevelopmentevolution1991;
@SmithDentaldevelopmentmeasure1989;
@SmithPatternsdentaldevelopment1994]}. El desarrollo dental es
altamente heredable y relativamente resistente a los procesos de
malnutrición y enfermedad, existiendo menos variación en su patrón de
desarrollo respecto a los parámetros de maduración esqueléticos
textcolor{blue}{[@Lewisrelationshiptoothformation1960]}.
I get this output:
As you can see, the bracked text has turned blue, but I lost the correct inline citations.
Question
- How can I change the color of the inline citations without losing the citations themselves? Maybe there is an option to add in the YAML (which would be fantastic) instead of customizing every single citation along the whole manuscript?
UPDATE
You can download a ZIP file with part of my Rmd file, ajpa.csl and references.bib.
latex pdf-generation r-markdown citations
1
Try withbegingroupcolor{blue}[@X; @Y; ... ]endgroup
.
– Werner
Nov 23 '18 at 18:09
It works nice. However, is there any possibility to include that style in the YAML? I have hundreds of citations in my manuscript and it becomes a hard task...
– antecessor
Nov 24 '18 at 19:54
I'll attempt to provide some guidance here if you can supply a comprehensive, complete minimal example that includes an entire Rmarkdown document, together withreference.bib
and a link toajpa.csl
. Of course, just use on reference and a small document...
– Werner
Nov 25 '18 at 7:27
@Werner I updated my question with a link to download a ZIP file by the end. Thanks in advance.
– antecessor
Nov 25 '18 at 9:37
add a comment |
I am having troubles when changing the color of inline citations in a pdf output from RMarkdown. Let's start with the YAML:
---
title: MY TITLE
author: "Mario Modesto-Mata"
date: "20 September 2018"
output:
pdf_document:
highlight: espresso
number_sections: yes
toc: yes
toc_depth: 4
bibliography: references.bib
csl: ajpa.csl
---
As you can see, I have my bibliography specified (references.bib
) and the citation style (ajpa.csl
). I must say it works pretty nice.
However, I am writing a long manuscript and I would like inline citations to be colored to allow readers distinguish what is text and what are citations.
Before changing color
This is my example where you can see the inline citations.
Cada diente se forma en un momento concreto bajo una fuerte regulación
genética. Por lo tanto, presentan cada uno su propia trayectoria de
crecimiento, desarrollo, tasa de formación y momento de erupción, que
son relativamente independientes del resto de piezas dentales. Por
este motivo, cada especie posee un patrón de desarrollo dental
particular y bien definido en función de las trayectorias de
crecimiento concretas de cada diente o clase de dientes
[@BermudezdeCastrochicoGranDolina2002;
@SmithDentaldevelopmentevolution1991;
@SmithDentaldevelopmentmeasure1989;
@SmithPatternsdentaldevelopment1994]. El desarrollo dental es
altamente heredable y relativamente resistente a los procesos de
malnutrición y enfermedad, existiendo menos variación en su patrón de
desarrollo respecto a los parámetros de maduración esqueléticos
[@Lewisrelationshiptoothformation1960].
When I convert it into a PDF using RMarkdown, I get correct inline citations:
After changing color
I searched on this forum and found a potential solution, as you can read in the original question.
However, when I implement those tips, as seen in this code:
Cada diente se forma en un momento concreto bajo una fuerte regulación
genética. Por lo tanto, presentan cada uno su propia trayectoria de
crecimiento, desarrollo, tasa de formación y momento de erupción, que
son relativamente independientes del resto de piezas dentales. Por
este motivo, cada especie posee un patrón de desarrollo dental
particular y bien definido en función de las trayectorias de
crecimiento concretas de cada diente o clase de dientes
textcolor{blue}{[@BermudezdeCastrochicoGranDolina2002;
@SmithDentaldevelopmentevolution1991;
@SmithDentaldevelopmentmeasure1989;
@SmithPatternsdentaldevelopment1994]}. El desarrollo dental es
altamente heredable y relativamente resistente a los procesos de
malnutrición y enfermedad, existiendo menos variación en su patrón de
desarrollo respecto a los parámetros de maduración esqueléticos
textcolor{blue}{[@Lewisrelationshiptoothformation1960]}.
I get this output:
As you can see, the bracked text has turned blue, but I lost the correct inline citations.
Question
- How can I change the color of the inline citations without losing the citations themselves? Maybe there is an option to add in the YAML (which would be fantastic) instead of customizing every single citation along the whole manuscript?
UPDATE
You can download a ZIP file with part of my Rmd file, ajpa.csl and references.bib.
latex pdf-generation r-markdown citations
I am having troubles when changing the color of inline citations in a pdf output from RMarkdown. Let's start with the YAML:
---
title: MY TITLE
author: "Mario Modesto-Mata"
date: "20 September 2018"
output:
pdf_document:
highlight: espresso
number_sections: yes
toc: yes
toc_depth: 4
bibliography: references.bib
csl: ajpa.csl
---
As you can see, I have my bibliography specified (references.bib
) and the citation style (ajpa.csl
). I must say it works pretty nice.
However, I am writing a long manuscript and I would like inline citations to be colored to allow readers distinguish what is text and what are citations.
Before changing color
This is my example where you can see the inline citations.
Cada diente se forma en un momento concreto bajo una fuerte regulación
genética. Por lo tanto, presentan cada uno su propia trayectoria de
crecimiento, desarrollo, tasa de formación y momento de erupción, que
son relativamente independientes del resto de piezas dentales. Por
este motivo, cada especie posee un patrón de desarrollo dental
particular y bien definido en función de las trayectorias de
crecimiento concretas de cada diente o clase de dientes
[@BermudezdeCastrochicoGranDolina2002;
@SmithDentaldevelopmentevolution1991;
@SmithDentaldevelopmentmeasure1989;
@SmithPatternsdentaldevelopment1994]. El desarrollo dental es
altamente heredable y relativamente resistente a los procesos de
malnutrición y enfermedad, existiendo menos variación en su patrón de
desarrollo respecto a los parámetros de maduración esqueléticos
[@Lewisrelationshiptoothformation1960].
When I convert it into a PDF using RMarkdown, I get correct inline citations:
After changing color
I searched on this forum and found a potential solution, as you can read in the original question.
However, when I implement those tips, as seen in this code:
Cada diente se forma en un momento concreto bajo una fuerte regulación
genética. Por lo tanto, presentan cada uno su propia trayectoria de
crecimiento, desarrollo, tasa de formación y momento de erupción, que
son relativamente independientes del resto de piezas dentales. Por
este motivo, cada especie posee un patrón de desarrollo dental
particular y bien definido en función de las trayectorias de
crecimiento concretas de cada diente o clase de dientes
textcolor{blue}{[@BermudezdeCastrochicoGranDolina2002;
@SmithDentaldevelopmentevolution1991;
@SmithDentaldevelopmentmeasure1989;
@SmithPatternsdentaldevelopment1994]}. El desarrollo dental es
altamente heredable y relativamente resistente a los procesos de
malnutrición y enfermedad, existiendo menos variación en su patrón de
desarrollo respecto a los parámetros de maduración esqueléticos
textcolor{blue}{[@Lewisrelationshiptoothformation1960]}.
I get this output:
As you can see, the bracked text has turned blue, but I lost the correct inline citations.
Question
- How can I change the color of the inline citations without losing the citations themselves? Maybe there is an option to add in the YAML (which would be fantastic) instead of customizing every single citation along the whole manuscript?
UPDATE
You can download a ZIP file with part of my Rmd file, ajpa.csl and references.bib.
latex pdf-generation r-markdown citations
latex pdf-generation r-markdown citations
edited Nov 25 '18 at 9:37
antecessor
asked Nov 23 '18 at 16:00
antecessorantecessor
650518
650518
1
Try withbegingroupcolor{blue}[@X; @Y; ... ]endgroup
.
– Werner
Nov 23 '18 at 18:09
It works nice. However, is there any possibility to include that style in the YAML? I have hundreds of citations in my manuscript and it becomes a hard task...
– antecessor
Nov 24 '18 at 19:54
I'll attempt to provide some guidance here if you can supply a comprehensive, complete minimal example that includes an entire Rmarkdown document, together withreference.bib
and a link toajpa.csl
. Of course, just use on reference and a small document...
– Werner
Nov 25 '18 at 7:27
@Werner I updated my question with a link to download a ZIP file by the end. Thanks in advance.
– antecessor
Nov 25 '18 at 9:37
add a comment |
1
Try withbegingroupcolor{blue}[@X; @Y; ... ]endgroup
.
– Werner
Nov 23 '18 at 18:09
It works nice. However, is there any possibility to include that style in the YAML? I have hundreds of citations in my manuscript and it becomes a hard task...
– antecessor
Nov 24 '18 at 19:54
I'll attempt to provide some guidance here if you can supply a comprehensive, complete minimal example that includes an entire Rmarkdown document, together withreference.bib
and a link toajpa.csl
. Of course, just use on reference and a small document...
– Werner
Nov 25 '18 at 7:27
@Werner I updated my question with a link to download a ZIP file by the end. Thanks in advance.
– antecessor
Nov 25 '18 at 9:37
1
1
Try with
begingroupcolor{blue}[@X; @Y; ... ]endgroup
.– Werner
Nov 23 '18 at 18:09
Try with
begingroupcolor{blue}[@X; @Y; ... ]endgroup
.– Werner
Nov 23 '18 at 18:09
It works nice. However, is there any possibility to include that style in the YAML? I have hundreds of citations in my manuscript and it becomes a hard task...
– antecessor
Nov 24 '18 at 19:54
It works nice. However, is there any possibility to include that style in the YAML? I have hundreds of citations in my manuscript and it becomes a hard task...
– antecessor
Nov 24 '18 at 19:54
I'll attempt to provide some guidance here if you can supply a comprehensive, complete minimal example that includes an entire Rmarkdown document, together with
reference.bib
and a link to ajpa.csl
. Of course, just use on reference and a small document...– Werner
Nov 25 '18 at 7:27
I'll attempt to provide some guidance here if you can supply a comprehensive, complete minimal example that includes an entire Rmarkdown document, together with
reference.bib
and a link to ajpa.csl
. Of course, just use on reference and a small document...– Werner
Nov 25 '18 at 7:27
@Werner I updated my question with a link to download a ZIP file by the end. Thanks in advance.
– antecessor
Nov 25 '18 at 9:37
@Werner I updated my question with a link to download a ZIP file by the end. Thanks in advance.
– antecessor
Nov 25 '18 at 9:37
add a comment |
1 Answer
1
active
oldest
votes
We can set YAML options link-citations: yes
and linkcolor: blue
.
---
title: MY TITLE
author: "Mario Modesto-Mata"
date: "20 September 2018"
output:
pdf_document:
highlight: espresso
number_sections: yes
toc: yes
toc_depth: 4
# bibliography: references.bib
# csl: ajpa.csl
references:
- id: hawking_thermodynamics_1983
author:
- family: Hawking
given: S. W.
- family: Page
given: Don. N.
publisher: Communications in Mathematical Physics
title: Thermodynamics of Black Holes in Anti-de Sitter Space.
volume: 87
type: article-journal
issued:
year: 1983
link-citations: yes
linkcolor: blue
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## Header
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua
[@hawking_thermodynamics_1983].
# Bibliography
Yielding
Note: This also works with bibliography: ...
instead of references: ...
.
Is this what you want?
Partially. I would like all the citations to be colored in blue. So in the exampleHawking and Page 1963
would be in blue, not only the year. We are getting closer @jay.sf
– antecessor
Nov 26 '18 at 15:39
I'm not sure that's even possible.rmarkdown
has its limits, consider to use LaTeX instead, or try to get an answer on TeX-Stackexchange. Anyway, why do you want to do that at all? Do you really like to read such blueish papers: https://doi.org/10.1016/j.annals.2014.12.001? If you look at p. 145 of the quote from "Gursoy, Chi, & Dyer, 2009, 2010". Did you find it easily? What would you like that should happen if you click on the different years?
– jay.sf
Nov 26 '18 at 16:25
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53449743%2fchanging-color-of-inline-citations-in-a-pdf-output-from-rmarkdown%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
We can set YAML options link-citations: yes
and linkcolor: blue
.
---
title: MY TITLE
author: "Mario Modesto-Mata"
date: "20 September 2018"
output:
pdf_document:
highlight: espresso
number_sections: yes
toc: yes
toc_depth: 4
# bibliography: references.bib
# csl: ajpa.csl
references:
- id: hawking_thermodynamics_1983
author:
- family: Hawking
given: S. W.
- family: Page
given: Don. N.
publisher: Communications in Mathematical Physics
title: Thermodynamics of Black Holes in Anti-de Sitter Space.
volume: 87
type: article-journal
issued:
year: 1983
link-citations: yes
linkcolor: blue
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## Header
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua
[@hawking_thermodynamics_1983].
# Bibliography
Yielding
Note: This also works with bibliography: ...
instead of references: ...
.
Is this what you want?
Partially. I would like all the citations to be colored in blue. So in the exampleHawking and Page 1963
would be in blue, not only the year. We are getting closer @jay.sf
– antecessor
Nov 26 '18 at 15:39
I'm not sure that's even possible.rmarkdown
has its limits, consider to use LaTeX instead, or try to get an answer on TeX-Stackexchange. Anyway, why do you want to do that at all? Do you really like to read such blueish papers: https://doi.org/10.1016/j.annals.2014.12.001? If you look at p. 145 of the quote from "Gursoy, Chi, & Dyer, 2009, 2010". Did you find it easily? What would you like that should happen if you click on the different years?
– jay.sf
Nov 26 '18 at 16:25
add a comment |
We can set YAML options link-citations: yes
and linkcolor: blue
.
---
title: MY TITLE
author: "Mario Modesto-Mata"
date: "20 September 2018"
output:
pdf_document:
highlight: espresso
number_sections: yes
toc: yes
toc_depth: 4
# bibliography: references.bib
# csl: ajpa.csl
references:
- id: hawking_thermodynamics_1983
author:
- family: Hawking
given: S. W.
- family: Page
given: Don. N.
publisher: Communications in Mathematical Physics
title: Thermodynamics of Black Holes in Anti-de Sitter Space.
volume: 87
type: article-journal
issued:
year: 1983
link-citations: yes
linkcolor: blue
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## Header
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua
[@hawking_thermodynamics_1983].
# Bibliography
Yielding
Note: This also works with bibliography: ...
instead of references: ...
.
Is this what you want?
Partially. I would like all the citations to be colored in blue. So in the exampleHawking and Page 1963
would be in blue, not only the year. We are getting closer @jay.sf
– antecessor
Nov 26 '18 at 15:39
I'm not sure that's even possible.rmarkdown
has its limits, consider to use LaTeX instead, or try to get an answer on TeX-Stackexchange. Anyway, why do you want to do that at all? Do you really like to read such blueish papers: https://doi.org/10.1016/j.annals.2014.12.001? If you look at p. 145 of the quote from "Gursoy, Chi, & Dyer, 2009, 2010". Did you find it easily? What would you like that should happen if you click on the different years?
– jay.sf
Nov 26 '18 at 16:25
add a comment |
We can set YAML options link-citations: yes
and linkcolor: blue
.
---
title: MY TITLE
author: "Mario Modesto-Mata"
date: "20 September 2018"
output:
pdf_document:
highlight: espresso
number_sections: yes
toc: yes
toc_depth: 4
# bibliography: references.bib
# csl: ajpa.csl
references:
- id: hawking_thermodynamics_1983
author:
- family: Hawking
given: S. W.
- family: Page
given: Don. N.
publisher: Communications in Mathematical Physics
title: Thermodynamics of Black Holes in Anti-de Sitter Space.
volume: 87
type: article-journal
issued:
year: 1983
link-citations: yes
linkcolor: blue
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## Header
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua
[@hawking_thermodynamics_1983].
# Bibliography
Yielding
Note: This also works with bibliography: ...
instead of references: ...
.
Is this what you want?
We can set YAML options link-citations: yes
and linkcolor: blue
.
---
title: MY TITLE
author: "Mario Modesto-Mata"
date: "20 September 2018"
output:
pdf_document:
highlight: espresso
number_sections: yes
toc: yes
toc_depth: 4
# bibliography: references.bib
# csl: ajpa.csl
references:
- id: hawking_thermodynamics_1983
author:
- family: Hawking
given: S. W.
- family: Page
given: Don. N.
publisher: Communications in Mathematical Physics
title: Thermodynamics of Black Holes in Anti-de Sitter Space.
volume: 87
type: article-journal
issued:
year: 1983
link-citations: yes
linkcolor: blue
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## Header
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua
[@hawking_thermodynamics_1983].
# Bibliography
Yielding
Note: This also works with bibliography: ...
instead of references: ...
.
Is this what you want?
answered Nov 26 '18 at 13:28
jay.sfjay.sf
6,90331841
6,90331841
Partially. I would like all the citations to be colored in blue. So in the exampleHawking and Page 1963
would be in blue, not only the year. We are getting closer @jay.sf
– antecessor
Nov 26 '18 at 15:39
I'm not sure that's even possible.rmarkdown
has its limits, consider to use LaTeX instead, or try to get an answer on TeX-Stackexchange. Anyway, why do you want to do that at all? Do you really like to read such blueish papers: https://doi.org/10.1016/j.annals.2014.12.001? If you look at p. 145 of the quote from "Gursoy, Chi, & Dyer, 2009, 2010". Did you find it easily? What would you like that should happen if you click on the different years?
– jay.sf
Nov 26 '18 at 16:25
add a comment |
Partially. I would like all the citations to be colored in blue. So in the exampleHawking and Page 1963
would be in blue, not only the year. We are getting closer @jay.sf
– antecessor
Nov 26 '18 at 15:39
I'm not sure that's even possible.rmarkdown
has its limits, consider to use LaTeX instead, or try to get an answer on TeX-Stackexchange. Anyway, why do you want to do that at all? Do you really like to read such blueish papers: https://doi.org/10.1016/j.annals.2014.12.001? If you look at p. 145 of the quote from "Gursoy, Chi, & Dyer, 2009, 2010". Did you find it easily? What would you like that should happen if you click on the different years?
– jay.sf
Nov 26 '18 at 16:25
Partially. I would like all the citations to be colored in blue. So in the example
Hawking and Page 1963
would be in blue, not only the year. We are getting closer @jay.sf– antecessor
Nov 26 '18 at 15:39
Partially. I would like all the citations to be colored in blue. So in the example
Hawking and Page 1963
would be in blue, not only the year. We are getting closer @jay.sf– antecessor
Nov 26 '18 at 15:39
I'm not sure that's even possible.
rmarkdown
has its limits, consider to use LaTeX instead, or try to get an answer on TeX-Stackexchange. Anyway, why do you want to do that at all? Do you really like to read such blueish papers: https://doi.org/10.1016/j.annals.2014.12.001? If you look at p. 145 of the quote from "Gursoy, Chi, & Dyer, 2009, 2010". Did you find it easily? What would you like that should happen if you click on the different years?– jay.sf
Nov 26 '18 at 16:25
I'm not sure that's even possible.
rmarkdown
has its limits, consider to use LaTeX instead, or try to get an answer on TeX-Stackexchange. Anyway, why do you want to do that at all? Do you really like to read such blueish papers: https://doi.org/10.1016/j.annals.2014.12.001? If you look at p. 145 of the quote from "Gursoy, Chi, & Dyer, 2009, 2010". Did you find it easily? What would you like that should happen if you click on the different years?– jay.sf
Nov 26 '18 at 16:25
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53449743%2fchanging-color-of-inline-citations-in-a-pdf-output-from-rmarkdown%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Try with
begingroupcolor{blue}[@X; @Y; ... ]endgroup
.– Werner
Nov 23 '18 at 18:09
It works nice. However, is there any possibility to include that style in the YAML? I have hundreds of citations in my manuscript and it becomes a hard task...
– antecessor
Nov 24 '18 at 19:54
I'll attempt to provide some guidance here if you can supply a comprehensive, complete minimal example that includes an entire Rmarkdown document, together with
reference.bib
and a link toajpa.csl
. Of course, just use on reference and a small document...– Werner
Nov 25 '18 at 7:27
@Werner I updated my question with a link to download a ZIP file by the end. Thanks in advance.
– antecessor
Nov 25 '18 at 9:37