From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28958 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: errors converting to PDF ["can't allocate region"] Date: Sun, 01 Aug 2021 16:15:18 -0600 Message-ID: References: <274588F4-8776-42E2-A982-3B8FAA3472C2@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21399"; mail-complaints-to="usenet@ciao.gmane.io" To: SlyFox , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBA52TSEAMGQET24NPGI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Aug 02 00:15:34 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f57.google.com ([209.85.210.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mAJk6-0005Nd-5e for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 02 Aug 2021 00:15:34 +0200 Original-Received: by mail-ot1-f57.google.com with SMTP id a16-20020a0568300090b02904bbc3b57656sf7233587oto.9 for ; Sun, 01 Aug 2021 15:15:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1627856132; cv=pass; d=google.com; s=arc-20160816; b=RkjiZP51M1MWberi+OkAr0s2UN8LOOOo0lNazTkY2BaYvbtAVe61B2HB3qWZw5rNPO 1YwT67baoEm1wwK1ZkiUPSCX6krNvXaI6BbhYvOQzrmCqrOqudgtvoVpRgGGbje67k1i KiIiBqmqZtv3uQvyV6ppaUo2KmL5pbZ3eF5dGKRJggS5378efNZkK2PVg12J02roJU+j yZtuTybrUMjEp++AptjACELolGOJI5JY+QsQ9+Ya5y/QTyAJwBWm+17NSqLZnhKkbwBc 6wikh1hmGgobfzR9buYFeP8e8QlnXmvdVNF36VVd0cfL+K1+hvcEWFAT6V1epNOE6CZg W5sw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=jY7Y1fOy81tTfRFglWHFHPMPncTKyAF+QyvOwQHkdWQ=; b=dhdlZOc3vbXgxL5E/VQ6L8L2JDIgVlZ2Us7nzsE17sm6tUfy/Q5hMB1FEtsI4h4r9A ie3IeNq5zdc2JCbvGvj97LGF0h76zTMorWeewoLClbVQppE99v5S4yER2H/am3yFJ6Ta Rv7MiaAhHDX3RshACUPjgE2HMtXq0MYe3U4Mi5BRTWasuWF1XU610Q8szez3LR6SD/CV O/nCbIeHAyR6jeLmDI0PZtg6aPT7KE/tbt/AidPAu7iJ5wv33Zw6vyNBupSqMOjdW7Hk c9A3DlVpLWxQUXj23JU34zCCUArZ3IN/j7C5XQ9AQMUvyXGx3x3goTEPv3FudmtC5NCN erKQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=QbwCFvUj; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1033 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=jY7Y1fOy81tTfRFglWHFHPMPncTKyAF+QyvOwQHkdWQ=; b=IWaKr7kOAFsJP78yVXh5v4OO/lgCTzmFnPrpWSUta57tEYRiZVxepw4iGw5DsI0OBP Qrmw1lbvGAmS0K040T9FNCDzSpcpTZ8PccSeIbD/ARGSK+Ev1ZRkBcmaP5VKMRf7m+7b YX3j0Wh0hiH1i64EFUCW7eAZ/Pg2PzMHzlToyj1olmSzI32baZCOzo2dtligliSrUSin N0RVOct+jR+mATmUXBMg7wcmff2rSwkscmwZfDK1BE99HxJzSZn7vcqAFWNmGoQoO++9 ckRzkezmfrPGEpKjwbI4kxy9iihtml/LY/FzZ9s6ufwgpsCsXAzZBVTzU5rUXE0lhoBS wOsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=jY7Y1fOy81tTfRFglWHFHPMPncTKyAF+QyvOwQHkdWQ=; b=YXEz3hdmtmuzaqtS0Qv//t9qRPiaevL6y9pIXloQ7qkxL6uxI6GvaHLA4B2EKyYMzF safMaEzEiNEX+ym8NUd1UhlgvqhUCrK9XgL3CCw8aYqJ85t7c+49mRz+qbDrQ2SXDgk/ W4nXZVa4cEPxCkCTMPIaYcb7USnKSeXYUA9AQUXJHA2dXyWtNQNNZ9afb/izfFF3ZTfS AwhjPpgd+7QDCYgoskMMeYfJuGYXYTRkOEPJk6YJvJiM395UHqKb6cix4zb1Bk8+0Ud3 woIiVKscp+TSiweS9cSW9//Q67qEghgw5nic9hZ0XZUbg2K5FKrO0X9f164hMhlBEjCY tDzg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533MNucu260DRP8LHmZoQK9cubhHUJY7/cqWlvSEKuadzVkHWqx1 GwpEIJScpvciOEBHXjIH3mM= X-Google-Smtp-Source: ABdhPJx8q4Ld9c/EeIOyx0AIqwHuDsZFSmCDPzU2M3US814upo60HVCgp8Z8DOsltohH4B5ifYt+ZA== X-Received: by 2002:aca:4e91:: with SMTP id c139mr8498814oib.72.1627856132405; Sun, 01 Aug 2021 15:15:32 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:b84:: with SMTP id a4ls1819445otv.9.gmail; Sun, 01 Aug 2021 15:15:31 -0700 (PDT) X-Received: by 2002:a9d:5d14:: with SMTP id b20mr9731241oti.307.1627856130920; Sun, 01 Aug 2021 15:15:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627856130; cv=none; d=google.com; s=arc-20160816; b=JRLbZFczV1FrhgL+BBscOETUoepuOlotj+MlEMSFJHsLQuCmGBGr7Bl3zmBYuCMEKS 2GQLmgn3097aeglabRNpiGvwKCRR8Bkjj6QBCeZeM2BXBDm3KAK1TReum1uNdwULdRG0 2bTzxGbNdJxZWyEGBmV2VqWHmMKhaq3JA1+IBdHZwGC56z6oUAoclekRbuz3/lMyYlM2 sUesdjOMt9KjCQWQsXrtIVakP5QWJyZBtl7Ms4osddD/HvJ4YnEQzftAQUV9ECjDgPXv CNVQJ4iMXYrVZimVZ3shZfYlG3kNWNyoTVGq4t5QipO4SwdWdaA75XjfAidBBeo1V3MT 9EWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=SuhHOkBkrQnMPJAmlI1D1u1epQ7c3FGeToi9VqOi9Ts=; b=G6bX5FoiLBL+zgpUbn2UW5gkKoUVpK/vouXxJxBZ6I4j1la4epaa2A32plRMtqlu9V DX/uU+jV5432VP4fRKfvuSJ4xYPnPeGKbt0/t3Bm6w6br5HzOuuDja8m3Iw3YFeLRugj 5LJpZNaicYW9CFxCB/8UU1wwJdr6VJFvvcmb9sW/dEo2O74CxdVnBMeeVxOxWRA4bSeX dY/KBKRANTT3+xNi8JWjddTxTuFB/I7jWfSyLj/gOHP0GiTarqQU7IQYdDNDR/MKT2CX 5zfUADHDZgUjxSys5xUF9XNyqbOJzsGODpuuSH2p9rgm8ZSda9+6bDBnq1FWyxvPr0lP 8mvg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=QbwCFvUj; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1033 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com. [2607:f8b0:4864:20::1033]) by gmr-mx.google.com with ESMTPS id l31si64131otv.3.2021.08.01.15.15.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 Aug 2021 15:15:30 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1033 as permitted sender) client-ip=2607:f8b0:4864:20::1033; Original-Received: by mail-pj1-x1033.google.com with SMTP id u9-20020a17090a1f09b029017554809f35so28698639pja.5 for ; Sun, 01 Aug 2021 15:15:30 -0700 (PDT) X-Received: by 2002:a17:902:c20c:b029:12c:afb8:fad2 with SMTP id 12-20020a170902c20cb029012cafb8fad2mr3951421pll.19.1627856129996; Sun, 01 Aug 2021 15:15:29 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id 26sm8323558pjj.27.2021.08.01.15.15.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Aug 2021 15:15:29 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 558E9A230; Sun, 1 Aug 2021 18:15:18 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=QbwCFvUj; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1033 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:28958 Archived-At: for f in *.md; do pandoc --pdf-engine=/Library/TeX/texbin/pdflatex "$f" -s -o "${f%.txt}.pdf"; done SlyFox writes: > So how do you combine the two commands to batch convert? > > for f in *.md; do pandoc "$f" -s -o "${f%.txt}.pdf"; done > > --pdf-engine=/Library/TeX/texbin/pdflatex > > On Wednesday, June 9, 2021 at 7:40:37 PM UTC+4 John MacFarlane wrote: > >> "Jason Davies" writes: >> >> > Hi folks, >> > >> > I just tried to convert three short Word files one at a time; one worked >> > fine but two gave errors like this: >> > >> > pandoc(24405,0x209984e00) malloc: can't allocate region >> > :*** mach_vm_map(size=1048576, flags: 100) failed (error code=268435465) >> > pandoc(24405,0x209984e00) malloc: *** set a breakpoint in >> > malloc_error_break to debug >> > pandoc: pdflatex: createProcess: runInteractiveProcess: exec: resource >> > exhausted (Cannot allocate memory) >> > >> >> I just got an M1 mac, and I ran into this same error. >> >> I found that if I fully specify the pdflatex path, it works: >> >> pandoc -o my.pdf --pdf-engine=/Library/TeX/texbin/pdflatex >> >> It's a bit mysterious why this should be needed, since >> `which pdflatex` returns this path! >> And running pandoc with --verbose shows that the PATH is >> correctly passed through to the process running pdflatex. >> >> Anyone have any ideas? AT least this gives a workaround... >> > > -- > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/c70c1da4-1ec9-4d34-aed3-7abf1c689adan%40googlegroups.com.