Skip to content
Discussion options

You must be logged in to vote

Using height and width attributes are the preferred approach - these are handled specially by pandoc:

The width and height attributes on images are treated specially. When used without a unit, the unit is assumed to be pixels. However, any of the following unit identifiers can be used: px, cm, mm, in, inch and %. There must not be any spaces between the number and the unit. For example:

Dimensions may be converted to a form that is compatible with the output format (for example, dimensions given in pixels will be converted to inches when converting HTML to LaTeX). Conversion between pixels and physical measurements is affected by the --dpi option (by default, 96 dpi is assumed, unless …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RomanLF
Comment options

Answer selected by dragonstyle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants