-
I am preparing a slide-deck for mobile view in 9:16 aspect ratio. The aspect ratio is observed in the previewer, but when I export the slides to pdf or pptx, they are "printed" on an a4 sheet with whitespace to the right and to the bottom of each slide. I tried putting a theme.css into the same folder as the presentation with this content: /* @theme 916 */
@import 'default';
section {
width: 360px;
height: 640px;
} and calling it in the frontmatter like this:
But this didn't change the output. I tried this on a windows 11 vscode installation and on an ubuntu 22.04 vscode installation. Please help. I have spent half a day trying to solve this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
If your theme was recognizing by Marp correctly, just removing a line |
Beta Was this translation helpful? Give feedback.
Is not VS Code reporting theme issues? If there was an yellow underline at
theme: 916
, you can see that your custom theme is not loading.To set the workspace preference
markdown.marp.themes
correctly, we recommend to set the path for theme CSS with the relative path from the VS code project root. e.g../theme.css
.