latex, allow image dimensions using px unit (96px=1in)

New key ``'pixelsize'`` in ``latex_elements`` dictionary.
This commit is contained in:
jfbu
2016-06-03 23:44:31 +02:00
parent 4be597bb34
commit f6b0ae903d
3 changed files with 16 additions and 2 deletions

View File

@@ -1601,6 +1601,14 @@ These options influence LaTeX output. See further :doc:`latex`.
``'pointsize'``
Point size option of the document class (``'10pt'``, ``'11pt'`` or
``'12pt'``), default ``'10pt'``.
``'pixelsize'``
px unit size, default ``'49336sp'`` which achieves ``96px=1in`` (as
``1in = 72.27*65536 = 4736286.72sp``, and all dimensions in TeX are
internally integer multiples of ``sp``). To obtain for example
``100px=1in``, one can use ``'0.01in'`` but it is more precise to issue
``'pixelsize':'47363sp',``.
.. versionadded:: 1.5
``'babel'``
"babel" package inclusion, default ``'\\usepackage{babel}'``.
``'fontpkg'``