SECURITY-MARKING

Report title

Report subtitle

DD Month YYYY
Team Name, Cabinet Office

{pagedown} reports for Cabinet Office

The {deckhand} package is a wrapper around the {pagedown} package to enable you to make reports in Rmarkdown that align (broadly) with the Cabinet Office’s corporate identity guidelines.

A page is created in your Rmarkdown by creating a grid-page entity ::::{.grid-page .page-type} where .page-type is the layout design you want to use (remember to close off with four colons :::: before your next page).

You can then include page elements such as :::{.title}, :::{.maintext} and :::{.content1}, closing each element with :::. See below for an example.

The following pages show the supported layouts. You can also construct custom layouts based on the underlying grid system (explained at the end).

::::{.grid-page .two-col}

:::{.title}
Page title
:::

:::{.maintext}
Main commentary text for the page
:::

:::{.content1}
```r
my_r_code
```
:::

:::{.content2}
```r
more_r_code
```
:::

::::

Divider title

Use .divider to use this page layout. This is the .maintext element.

Single Content

Use .single-content to use this page layout. This is the .maintext element.

This is the .secondarytext element.

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content1

Single Content (wide)

Use .single-content-wide to use this page layout. This is the .maintext.

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content1

Single Content (high)

Use .single-content-high to use this page layout. This is the .maintext.

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content1

Two column

Use .two-col to use this page layout. This is the .maintext.

This is the .secondarytext element.

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content1

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content2

Two column (wide)

Use .two-col-wide to use this page layout. This is the .maintext.

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content1

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content2

Two row

Use .two-row to use this page layout. This is the .maintext.

This is the .secondarytext element.

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content1

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content2

Two row (high)

Use .two-row-high to use this page layout. This is the .maintext.

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content1

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content2

Three column

Use .three-col to use this page layout. This is the .maintext.

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo Penguin size by species

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content2

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content3

Three row

Use .three-row to use this page layout. This is the .maintext.

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo Penguin size by species

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content2

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content3

Three row (small)

Use .three-row-small to use this page layout. This is the .maintext.

This is the .secondarytext element.

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content1

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content2

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content3

Four box content

Use .four-content to use this page layout. This is the .maintext.

This is the .secondarytext element.

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content1

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content2

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content3

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content4

Four box content (wide)

Use .four-content-wide to use this page layout. This is the .maintext.

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content1

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content2

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content3

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content4

Four box content (high)

Use .four-content-high to use this page layout. This is the .maintext.

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content1

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content2

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content3

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content4

Four column

Use .four-col to use this page layout. This is the .maintext.

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content1

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content2

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content3

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content4

Six content (wide)

Use .six-content-wide to use this page layout. This is the .maintext.

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content1

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content2

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content3

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content4

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content5

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content6

Six content (high)

Use .six-content-high to use this page layout. This is the .maintext.

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content1

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content2

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content3

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content4

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content5

40 50 60 170 180 190 200 210 220 230 Adelie Chinstrap Gentoo .content6

Notes page

There is also a notes page layout, intended for Annexes, with a title across the top and the .maintext element spanning the page.

Lorem ipsum dolor sit amet, nec egestas sem varius. At aliquet mauris consequat phasellus arcu. In, magnis tempus ut eu ullamcorper velit tortor. Tempus quam, et dui est id leo tincidunt. Et, ante vel, sed sollicitudin enim.

Tincidunt faucibus in mattis nisl commodo a. Porta et ligula sociosqu, rhoncus hac. Quis tincidunt, ad nec ipsum a cras elementum, aliquam feugiat non. Himenaeos lectus mi in viverra sodales, donec quis vestibulum lacinia eu nec ex. Hac dui.

Nec leo elementum ut aliquam a. Ac, finibus mi ac ad magna sit quam. Non mi scelerisque ullamcorper litora. Maximus, ligula pulvinar erat ut interdum et ac. Diam arcu diam ac ante eu ut nec lobortis.

Magna eget convallis venenatis id vulputate. Ipsum semper ac blandit in vel, phasellus vehicula egestas interdum. Interdum hac amet sodales sed eu molestie. Vitae ac vestibulum felis lacus ut fusce conubia ac aptent donec vel. At ac.

Conubia eu justo ut pellentesque ac cubilia sed. Sit ornare sit enim, quis sodales, risus nunc cursus. Duis et ut, mattis ante tincidunt, neque magna non in luctus diam porttitor aenean in. Auctor quisque quam auctor ex nostra. Quis, dolor imperdiet venenatis finibus ac, varius nibh.

Taciti nunc dapibus tempor nisi nisi non potenti arcu penatibus ipsum eu. Vulputate pulvinar vestibulum dolor vehicula faucibus, diam, nullam a. Cum odio eleifend. Turpis posuere risus nulla sit sit mus. Dolor eget vulputate netus, lacus et massa nec eu habitant tortor.

Sociis mollis sed ullamcorper turpis, lacus lorem hendrerit congue sem, sed sodales risus, himenaeos. Porttitor nascetur interdum nisi mi euismod et. Nunc mollis vel ut interdum quis velit eget eget, vestibulum. Maecenas pellentesque sapien tempor eget curae tincidunt ut. Et, amet malesuada a mattis conubia natoque amet.

Diam ultricies in commodo curae diam bibendum nunc eget at. Torquent arcu at vestibulum quis in laoreet. Velit, pulvinar netus et aliquet mus adipiscing eros sollicitudin viverra, ut vel. Fermentum rhoncus risus urna at bibendum sit donec. Sed in non et laoreet sed vel platea orci, vestibulum metus tellus.

Lorem cras, ac suspendisse, vitae dui primis augue condimentum turpis lorem ut odio. Turpis sit ultricies sed elementum, odio vitae non ad. Aliquet accumsan sociosqu at tristique sed enim tincidunt nullam consequat nulla ligula elit aliquam conubia? In, odio id imperdiet mollis nec sagittis. Nulla lacinia quisque mollis sed, hendrerit ultrices faucibus nisl. Sed erat mollis facilisis fringilla, nisi.

Custom layouts

Custom layouts

The report template is built on a 12x12 grid. In addition to the set layouts shown before, bespoke layouts can also be constructed using the custom css classes. These are in the format .start-row-X and .end-column-Y, allowing you to specify the start and end rows and columns for a content box. Bear in mind the .title element is a 4x4 box starting in the upper left corner.

A standard .maintext element (such as this) occupies rows 1-4 and columns 5-12, to replicate this on a custom page use the classes .start-row-1 .end-row-4 .start-column-5 .end-column-12 .maintext, ensure you also include the .maintext class so that text flows across two columns.

.start-row-7 .end-row-9 .start-column-1 .end-column-3

.start-row-6 .end-row-10 .start-column-6 .end-column-11

r1c1
r1c2
r1c3
r1c4
r1c5
r1c6
r1c7
r1c8
r1c9
r1c10
r1c11
r1c12
r2c1
r2c2
r2c3
r2c4
r2c5
r2c6
r2c7
r2c8
r2c9
r2c10
r2c11
r2c12
r3c1
r3c2
r3c3
r3c4
r3c5
r3c6
r3c7
r3c8
r3c9
r3c10
r3c11
r3c12
r4c1
r4c2
r4c3
r4c4
r4c5
r4c6
r4c7
r4c8
r4c9
r4c10
r4c11
r4c12
r5c1
r5c2
r5c3
r5c4
r5c5
r5c6
r5c7
r5c8
r5c9
r5c10
r5c11
r5c12
r6c1
r6c2
r6c3
r6c4
r6c5
r6c6
r6c7
r6c8
r6c9
r6c10
r6c11
r6c12
r7c1
r7c2
r7c3
r7c4
r7c5
r7c6
r7c7
r7c8
r7c9
r7c10
r7c11
r7c12
r8c1
r8c2
r8c3
r8c4
r8c5
r8c6
r8c7
r8c8
r8c9
r8c10
r8c11
r8c12
r9c1
r9c2
r9c3
r9c4
r9c5
r9c6
r9c7
r9c8
r9c9
r9c10
r9c11
r9c12
r10c1
r10c2
r10c3
r10c4
r10c5
r10c6
r10c7
r10c8
r10c9
r10c10
r10c11
r10c12
r11c1
r11c2
r11c3
r11c4
r11c5
r11c6
r11c7
r11c8
r11c9
r11c10
r11c11
r11c12
r12c1
r12c2
r12c3
r12c4
r12c5
r12c6
r12c7
r12c8
r12c9
r12c10
r12c11
r12c12