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

pandoc -t options should be overwritten #697

Closed
kohske opened this issue Dec 24, 2013 · 3 comments
Closed

pandoc -t options should be overwritten #697

kohske opened this issue Dec 24, 2013 · 3 comments
Labels
bug Bugs
Milestone

Comments

@kohske
Copy link
Contributor

kohske commented Dec 24, 2013

Now, e.g,

in.md

<!--pandoc
s:
webtex:
i:
t: slidy
-->

contents

then,

pandoc('in.md')

generates a command like:

executing pandoc  -s --webtex -i -t slidy -f markdown -t html -o t01.html 't01.md'

as you can see -t slidy is ignored due to -t html.
Thus I cannot generate html5 slide.

So, is it possible to omit adding -t html if -t is already specified by the configuration.

@yihui
Copy link
Owner

yihui commented Jan 22, 2014

In this case, you have to call pandoc(input, format = 'slidy'), but you have a good point here about what should be done about the -t option. Let me think about it.

yihui added a commit to yihui/knitr-examples that referenced this issue Jan 24, 2014
@yihui yihui closed this as completed in da8e203 Jan 24, 2014
@yihui
Copy link
Owner

yihui commented Jan 24, 2014

I have changed format to t in config. Now pandoc('in.md') should produce slidy output for you.

yihui added a commit that referenced this issue Jan 26, 2014
yihui added a commit that referenced this issue Oct 12, 2016
@github-actions
Copy link

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants