pagedown html resume with aside on first page only

Cross posting from this Stackoverflow post which hasn't gotten any responses.

I'm attempting to make a CV using R Markdown and the {pagedown} package.

Is it possible to only include the grey aside bar on the first page?

I've tried playing with the page identifiers as described here.

@page :first {
    width: var(--sidebar-width);
    padding: 0.6in var(--sidebar-horizontal-padding);
    font-size: 0.8rem;
    float: right;
    position: absolute;
    right: 0;

My hope was that defining the .aside inside :first would make the grey aside bar only appear on page one, but no luck. Any suggestions?

A minimal example is here:

You are on the right track: if you want to do it like that (which is very clean, congratulations!) you have to modify all the remaining parts of the pagedown::html_resume() stylesheet; in other words, you cannot just add this declaration, this is not sufficient.

You have two options:

  • write a new clean stylesheet which would implement a sidebar only on the first page
  • use one of these quick and dirty hacks. They work well :smiling_imp:.

This is perfect! Thanks!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.