Skip to content

Commit

Permalink
pinpblue is now called headercolor
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Oct 24, 2017
1 parent a4ec465 commit 734080e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ChangeLog
Expand Up @@ -2,7 +2,7 @@

* inst/rmarkdown/templates/pdf/resources/template.tex: Support
YAML frontmatter arguments headercolor and linkcolor
* inst/rmarkdown/templates/pdf/skeleton/pinp.cls: Minor cleanup
* inst/rmarkdown/templates/pdf/skeleton/pinp.cls: Minor cleanups
related to the two colour variables

2017-10-04 Dirk Eddelbuettel <edd@debian.org>
Expand Down
12 changes: 6 additions & 6 deletions inst/rmarkdown/templates/pdf/skeleton/pinp.cls
Expand Up @@ -457,7 +457,7 @@ THE ABSTRACT\vskip12pt}\let\go\relax\fi
\providecommand*{\toclevel@acknow@section}{0}
% Format is set for research articles by default
\titleformat{\acknow@section}[runin]
{\sffamily\normalsize\bfseries\color{pinpblue}}
{\sffamily\normalsize\bfseries\color{headercolor}}
{}
{0em}
{#1.}
Expand Down Expand Up @@ -614,26 +614,26 @@ THE ABSTRACT\vskip12pt}\let\go\relax\fi
\newenvironment{CodeChunk}{}{}

%% Set colors -- now via test and fallback default in template
%\definecolor{pinpblue}{HTML}{185FAF} % imagecolorpicker on blue for new R logo
%\definecolor{headercolor}{HTML}{185FAF} % imagecolorpicker on blue for new R logo

% Add colour to the title
\appto{\titlefont}{\color{pinpblue}}
\appto{\titlefont}{\color{headercolor}}

% ...and section headings
\titleformat{\section}
{\large\sffamily\bfseries\color{pinpblue}}
{\large\sffamily\bfseries\color{headercolor}}
{\thesection.}
{0.5em}
{#1}
[]
\titleformat{name=\section,numberless}
{\large\sffamily\bfseries\color{pinpblue}}
{\large\sffamily\bfseries\color{headercolor}}
{}
{0em}
{#1}
[]
\titleformat{\subsection}[runin]
{\sffamily\bfseries\color{pinpblue}} %\itshape}%
{\sffamily\bfseries\color{headercolor}} %\itshape}%
{\thesubsection.}
{0.5em}
{#1. }
Expand Down

0 comments on commit 734080e

Please sign in to comment.