pombreda / txt2tags

Automatically exported from code.google.com/p/txt2tags
GNU General Public License v2.0
0 stars 0 forks source link

Request for feature: easy introduction of images (automatic resize) #147

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

It would be nice that when a user
adds an image in a presentation,
the image is automatically resized to
fit in the slide and not overlap with the text.

That's a little painful to have to 
create images with the correct size.

Thanks,
F.

Original issue reported on code.google.com by francois...@gmail.com on 22 May 2012 at 8:18

GoogleCodeExporter commented 9 years ago
For LaTeX output:
(1) Add [width=\\textwidth]  to the \includegraphics  statement

        'img'                  : '\\includegraphics[width=\\textwidth]{\a}',

(2) I also use A4 paper, with margins, so add [a4paper] and package{geometry}:

    'tex': \
r"""\documentclass[a4paper]{article}
\usepackage[margin=15mm]{geometry}

Steve.

Original comment by Stephen....@gmail.com on 22 Jun 2012 at 12:15