Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question - Can i do a4 documentation ? #43

Closed
melck opened this issue Jun 5, 2019 · 4 comments
Closed

Question - Can i do a4 documentation ? #43

melck opened this issue Jun 5, 2019 · 4 comments
Labels
question 🙅 Not issue, just a question (should post to Marp discussion)

Comments

@melck
Copy link

melck commented Jun 5, 2019

Hello,

I like marp to do slide presentation. I want to go further and use it for internal documentation. I think to create a custom style for slide and A4 document and then when i want to do documentation i would change $size and custom style properties.

Is it possible with marp ? Is it intented for usage like that ? Coud you give some advice ?

@yhatt yhatt added the question 🙅 Not issue, just a question (should post to Marp discussion) label Jun 5, 2019
@yhatt
Copy link
Member

yhatt commented Jun 5, 2019

Yes, Marp allows setting custom slide size by using theme CSS.

$size directive is only available for the old Marp app, and cannot use in Marp Next tools by technical restriction. You have to use theme CSS whenever wanna change the size.

/* theme-for-documentation.css */
/* @theme theme-for-documentation */

@import 'default';

section {
  /* A4 document size */
  width: 210mm;
  height: 297mm;
}

h1 {
  /* ...and your custom style properties... */
}

However, Marp for VS Code is not yet supported custom theme CSS (#39). Currently only Marp CLI is available to use the custom theme.

marp --theme theme-for-documentation.css your-markdown.md --pdf

marp-team/marpit#163 would be helpful too.

@melck
Copy link
Author

melck commented Jun 12, 2019

Ok perfect, @yhatt How can i help you for this feature ?

I supposed, i need to fork marp-core then marp-cli then marp-vscode ?

@yhatt
Copy link
Member

yhatt commented Jun 12, 2019

We have received really many similar requests about this, so I created a new issue at Marp Core: marp-team/marp-core#91. It may be too complex as a first issue, but discuss and work about this would be good for many users.

@yhatt
Copy link
Member

yhatt commented Jul 29, 2019

The latest Marp for VS Code v0.8.0 can use custom theme CSS.
https://github.com/marp-team/marp-vscode#use-custom-theme

@yhatt yhatt closed this as completed Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question 🙅 Not issue, just a question (should post to Marp discussion)
Projects
None yet
Development

No branches or pull requests

2 participants