From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115519 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wolfgang Schuster via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Set up external figure for particular image type Date: Mon, 18 Jul 2022 22:14:03 +0200 Message-ID: References: <545a6de4-c8a6-b97f-7196-a4000bbdc65f@fiee.net> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4177668387407077917==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40678"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.56 Cc: Wolfgang Schuster To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 18 22:15:06 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDX90-000ALA-9T for gctc-ntg-context-518@m.gmane-mx.org; Mon, 18 Jul 2022 22:15:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 419ED2A3BF2; Mon, 18 Jul 2022 22:14:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yd-kE6guNimf; Mon, 18 Jul 2022 22:14:09 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A3EE32A3BFE; Mon, 18 Jul 2022 22:14:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 248522A3BF2 for ; Mon, 18 Jul 2022 22:14:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Lc-Qf1xIhY2K for ; Mon, 18 Jul 2022 22:14:06 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.42; helo=mail-ej1-f42.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Original-Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 40EB92A3BFC for ; Mon, 18 Jul 2022 22:14:06 +0200 (CEST) Original-Received: by mail-ej1-f42.google.com with SMTP id tk8so12012817ejc.7 for ; Mon, 18 Jul 2022 13:14:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=sLCJtVM4k9EjWpraytRaoKkmo58Uyi+cwr6KnZucN6g=; b=DwWG45o5kFvih4mkNnv0bxRyHJiD/2reZqfxvSCP29egNOzidNQFc7HzRNXpYp2rwj 68s9LyFdOaTWmYOKSiGML+DwcCMZZd9HytflHn3UkUK//7am0U+hvtPgPWGJvjKhYgp7 IxXYQvO/0KMQjzlGFl3e2HAaB7Gajo+EXMYxiX1k0RgfMn96EbT80CWZE9UUKccHU5/z Sltzj47GUULLn86I1bXiMm3kHno3LmiT/R8lSfmzEoxx4rcjYkMBJkMJG8gUimYrsUFL s4IhRB6oNJJG8jPzjCVvX00L0h582FwXGBBAsuYuo8/X3ZJ6paeYTMMa/AZyc8lhHRD9 6x4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=sLCJtVM4k9EjWpraytRaoKkmo58Uyi+cwr6KnZucN6g=; b=A2czMePhQW8yWd1GyqD7I9hCKr9cXDA5+oVxzuidEKP1bT49EE4hh6jzhZ4DRQPFL/ h/b0FcIgrHGqVApAsnEDvoGzsJHc2HK1xasUhAzvMAJfCW5fpZkpBsOzAuwwBXYWipT6 VE4/9B3TkCAT39B56qnXev0eQxffwVkgMDgTcJG92ZlPQBcLDNUftiZXSF/6c8YgzGPV 35vmVQTXslxujERhwYohe/m788e7dKX2GwMemocyydJraSKWWalNg5l5S5U/G3GU4F65 EKuORAid+uKG0iyt6BIGI0SIVldA7eLjJ78uqAcZzXRQvo6AtE/J8EmVVTpVPvB+ObMP otyg== X-Gm-Message-State: AJIora9qzN/M3UPfz3nzidR/eqpBDlTVE/53dLgCuBiygHhqVBNx+Dyp NnU/0XUUgwujNM4N37KjZdV3EzLPkao= X-Google-Smtp-Source: AGRyM1s1aJRnui6DR33V+c1TJWhfL3uyXqa4s0R2qRIvuw/0M8ZVXdVRgGrOdjVrjNcdW2VJxfDBug== X-Received: by 2002:a17:906:5a5b:b0:72b:39cf:6042 with SMTP id my27-20020a1709065a5b00b0072b39cf6042mr26722280ejc.301.1658175245962; Mon, 18 Jul 2022 13:14:05 -0700 (PDT) Original-Received: from ?IPv6:2a02:810d:a8bf:f874::fb39? ([2a02:810d:a8bf:f874::fb39]) by smtp.gmail.com with ESMTPSA id r18-20020a17090609d200b006feed200464sm5779826eje.131.2022.07.18.13.14.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jul 2022 13:14:05 -0700 (PDT) In-Reply-To: Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.io gmane.comp.tex.context:115519 Archived-At: This is a multi-part message in MIME format. --===============4177668387407077917== Content-Type: multipart/alternative; boundary="------------CAC61E91761F5334A47DABBD" Content-Language: en-US This is a multi-part message in MIME format. --------------CAC61E91761F5334A47DABBD Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Thangalin via ntg-context schrieb am 18.07.2022 um 19:10: > Thank you, Wolfgang. > > That looks promising. > > SVG files are converted using MetaPost. I thought the following would > work: > > svg=>{\externalfigure[#1][svg][conversion=mp]} You can probably remove the second argument ([svg]) which was used in my example to pass the default values with \defineexternalfigure. Just using \externalfigure[#1][conversion=mp] where you pass the default values with the second argument is enough. Wolfgang --------------CAC61E91761F5334A47DABBD Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Thangalin via ntg-context schrieb am 18.07.2022 um 19:10:
Thank you, Wolfgang.

That looks promising.

SVG files are converted using MetaPost. I thought the following would work:

svg=>{\externalfigure[#1][svg][conversion=mp]}

You can probably remove the second argument ([svg]) which was used in my example to pass the default values with \defineexternalfigure. Just using \externalfigure[#1][conversion=mp] where you pass the default values with the second argument is enough.

Wolfgang

--------------CAC61E91761F5334A47DABBD-- --===============4177668387407077917== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============4177668387407077917==--