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

Help on usage and some comments #2

Open
kleinbottle opened this issue Jun 15, 2016 · 5 comments
Open

Help on usage and some comments #2

kleinbottle opened this issue Jun 15, 2016 · 5 comments

Comments

@kleinbottle
Copy link

kleinbottle commented Jun 15, 2016

Thanks for this script: it is exactly what I was looking for.

FYI, I am using a YAML header block in my source file so:

---
header-includes:
- \usepackage{wrapfig}
---

for which I believe that there is no need to modify the standard LaTeX template.

The line in my source file that I wish to wraparound has this figure information:

![A view of a room. {0}](room.jpg){width=50%}

Does the {width=50%} come into play at all? Numbers other than 0 give me results akin to what I need, but I wanted to find out if the {width=...} syntax is honoured by the script.

Also, is it possible to have one figure on the right and another on the left in the same document, with this single script?

Many thanks.

@scotthartley
Copy link
Owner

Glad to hear that the script is helpful to you. Your suggestion about the YAML header is quite a bit more elegant than creating new templates; I'll add to the documentation.

The script unfortunately does not currently honor the width tag: It predates this feature in pandoc, and I haven't gotten around to adding it. I will leave this issue open and try to fix down the road (unfortunately kind of swamped right now).

The script puts all images on the right (I wanted to keep it as simple as possible).

@meereeum
Copy link

+1 for width tag ! (:

@gnpan
Copy link

gnpan commented Jan 7, 2018

+1 for width tag.
Thanks!

@gnpan
Copy link

gnpan commented Jan 14, 2018

Without the width tag, images have to be scaled manually to the width specified in {X}. An alternative solution for having large figures scale down to fit in the {X} space is to have at least one other figure within the document that is not wrapped. If you don't have one, you can create a png with just a white dot and add ![](dot.png) anywhere in the text. This works well, at least with the default pandoc latex template and xelatex engine that I used.

@scotthartley
Copy link
Owner

I'm a bit swamped right now but will try to take a look. In general, I have subscribed to the theory that figures should be created at the intended print size, but I can see how this isn't always convenient.

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

4 participants