title: Tables or images too wide in Pandoc output as DOCX or PDF/LaTeX
body: <p>I am writing a quick and dirty report using pandoc and markdown. </p>
  
  <p>I need to generate a PDF or a DOCX with minimum hassle, I don't care much about which (best would be both, of course). Also, I am somewhat constrained regarding the figures and tables -- they have been generated a priori with another program and I would rather be able to insert them as they are then to convert them to suit pandoc's needs.</p>
  
  <p>However, the main constraint is that I don't want to edit the resulting document manually, be that LaTeX or DOCX. I want to do all editing in markdown.</p>
  
  <p>Here is the problem:</p>
  
  <ul>
  <li>In DOCX, the tables are displayed fine: they have the width of the document. However, the figures are much too wide. I can either convert the images to a lower resolution (which doesn't look nice), or manually resize the images in Word (which is out of question).</li>
  <li>In PDF, the generated figures are fine (more or less), however another two problems appear:
  
  <ul>
  <li>The tables are too wide, because there are no line breaks, and</li>
  <li>LaTeX being LaTeX, the order of figures and tables are "reorganized", that is, they are not consecutive.</li>
  </ul></li>
  </ul>
  
  <p>Thus, none of the documents generated are usable for my purposes.</p>
  
  <p>All I wanted to do is to slap together some results and generate a file that I can send to another scientist. </p>
  
  <p><strong>Question:</strong> what is the best solution to generate a quick and dirty report in pandoc with minimum effort and at least all results visible? </p>
  
  <p><strong>Update:</strong> Upgrading pandoc to 1.4 or later solves the issue -- the figures have now correct sizes in docx documents.</p>