From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79485 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Images in MultiMarkdown -> context -> PDF Date: Fri, 23 Nov 2012 16:45:48 -0500 (EST) Message-ID: References: <50AC5BB4.4010205@wisc.edu> <1F8187F3-69EF-4DA3-8150-D6682B92E595@wisc.edu> <50AD1AAA.1040302@wisc.edu> <50AFEBEB.6090107@wisc.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1353707166 30060 80.91.229.3 (23 Nov 2012 21:46:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Nov 2012 21:46:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 23 22:46:17 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tc14g-00061t-Hx for gctc-ntg-context-518@m.gmane.org; Fri, 23 Nov 2012 22:46:14 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 306FD10319; Fri, 23 Nov 2012 22:46:03 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id oRUcH2UjcN28; Fri, 23 Nov 2012 22:45:59 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 21B931030A; Fri, 23 Nov 2012 22:45:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A3B701030A for ; Fri, 23 Nov 2012 22:45:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id QKVNy6rtXrCP for ; Fri, 23 Nov 2012 22:45:55 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 70DB410271 for ; Fri, 23 Nov 2012 22:45:54 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qANLjpNK018656 for ; Fri, 23 Nov 2012 22:45:53 +0100 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By tombraider.mr.itd.umich.edu ID 50AFEE8E.3C9C0.12268 ; Authuser adityam; 23 Nov 2012 16:45:50 EST In-Reply-To: <50AFEBEB.6090107@wisc.edu> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TIr9JQRk - e6a23d367416 - 20121123 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:79485 Archived-At: On Fri, 23 Nov 2012, Guy Stalnaker wrote: > But I'm left with another problem, again something that becomes apparent as > the difference between having two output formats in my document workflow: > markdown -> pandoc -> html/text -> context tex -> pdf. This time it's images > that are too wide for the available textarea in the pdf document. Now that > the dpi is set, they display at the expected full resolution, yet if they are > greater than 6.5*72=438 pixels, they go over the right margin. I know I can, > individually, modify each /externalfigure directive and add > 'width=\textwidth', but that really is a PITA. This document will have close > to a hundred images. > > I will investigate using a commandline script, exif data, and convert to work > through all of the images in the folder to scale/resize them so that they fit > in the PDF document margin width. I don't think that the html version will > suffer if I do this. \setupexternalfigures[maxwidth=\textwidth] Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________