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

Option to use includepdf instead of includegraphics? #31

Open
gijswijs opened this issue Jan 28, 2019 · 2 comments
Open

Option to use includepdf instead of includegraphics? #31

gijswijs opened this issue Jan 28, 2019 · 2 comments

Comments

@gijswijs
Copy link

I love this filter, but I have a feature request.
I'm using it to create a gantt chart as an appendix to my document. The output filetype of the document is always PDF.
I use pdf as output type for the gantt chart as well, because it has superior quality compared to the png output. But when including the pdf using includegraphics (which is what this filter does by returning pandoc.image) you get Latex complaints about the graphic being too large for the textbody, resulting in weird page breaks (it tries to fit the image on the following page)

Is there a possibility to force this filter to use includepdf (assuming the pdfpages package is installed)?

@gijswijs
Copy link
Author

I already seemed to have found a workaround:

Add a .mermaid.css file with the following content

@page {
    size: Landscape;
}

@bebuch
Copy link

bebuch commented Aug 29, 2019

I have the same issue.

The workaround only works if the plot happens to have the appropriate size.

I think this is the actual bug:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants