From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23140 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Patrick Kenny Newsgroups: gmane.text.pandoc Subject: Modifying image conversion from epub to ConTeXt Date: Sun, 14 Jul 2019 11:07:49 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2062_2102113450.1563127669655" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="77829"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDLYD7NCUUKBB5W6VXUQKGQE5AMS5NQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jul 14 20:07:54 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f59.google.com ([209.85.210.59]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hmiue-000K5z-O5 for gtp-pandoc-discuss@m.gmane.org; Sun, 14 Jul 2019 20:07:52 +0200 Original-Received: by mail-ot1-f59.google.com with SMTP id w5sf8525359otg.0 for ; Sun, 14 Jul 2019 11:07:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=QF/G6kaoAuV+71/cJjjWGhTHCl52q8AQwrZ4JC+EQ4M=; b=nhgK55YetkAfiZUNFy1M+jbVUVMV2TPtxxB9bwLGChkUiNA51OPqbBmkN75edNBwPz LQkcBQm07b6It6iNIqJbfDiy+dkiC/3Iz147NNob8oRIo5MatQxhUs2Zs7uNWO6fPgmr mYc+Fgtc2Op4OK7Afy/lBtpRm+v5PvLe11i8nIgc72coLLebH9mgqqNfhLfdLceWsPLW z0h6o8QazLn9bqStE4DoA3AKjcLd7XtR44PWCdDZ6PTdzUJGpvjh4zdGMZThSODmAJ91 6VpmI/pT/1kzHJv8VN6DJrwde4Zey7j0/2Idd8dJvX9E5BXA+7yjz2wm28ZBnTDOm9qk ekLg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=QF/G6kaoAuV+71/cJjjWGhTHCl52q8AQwrZ4JC+EQ4M=; b=PQO6Y+VTYxeY0Whc1KuBUICuM0JC7QEyuYLLDdCm60MOcZorNZIOyBksEHAAwltOBl AHwSNp9Qty5EFu9tzJ1Ut8VwRjRHMB8Z4wmrXfSLmTwqqL6o18NKzZd2C/k3mlzY1Xzh i43XRerJ4nhv52+OycIQ3SJj2n0zhpVGUbPXdcGvm2E4cypyzqs7pUNg8g9WoeV0PGY1 foKPIjxNVzcC/YxTsGCU2BKpkE1G/x2A9gI27LqmdIFOPqLsTnGwlW8NqYYLiHirEanX +tA+STwf6P1cr8hqMTkORSeyoBup4MDYi+52LhOnL2Kcxnxz9XllLByNFB8lXFSLrin+ FHaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=QF/G6kaoAuV+71/cJjjWGhTHCl52q8AQwrZ4JC+EQ4M=; b=QQGSnK0f6Nzfj1aY/R35sO+bjV4iC1nexCEqM80YBQiqPaQtEIYorl+gkFRLIlYSTJ B7iqDnwYzkuIjxE8+XnOrcEvNli8ZkPL3nFCPZddjPc7/EQb+zNzlxxvEaAh76pUSrX2 dwZE2cRXPooe7OwvdV6CoxwC4Kr19QbkhzqnQSytl0wXqBqNGUc4LA4aACS16NGI4+/w cqB1CNI080aR4aRcwwfIjL3u8WRbadBppvMKQezmEEWYTv0iUrgSemBtoBAjv5mY9jT3 1bC6wnQkNauLMhV+Vvcq37X8eKU6DBWbrsFs4iBczDPnWYprcbRPCI5wAWWaIqygnmxm 6l2w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAUYJIDvkFpr5JdpfetlEVLB6VG6EOjUd6UPmoCc2PZC33fhcUI8 Ss7+0KuTkS0BxoNDdxxgFcQ= X-Google-Smtp-Source: APXvYqwsifxOxSwQflHx3123o8WHssIlDk1C2LiNVYIvhxlEcRjo15dcfZz7AVnqlDa17U2mul4Rrw== X-Received: by 2002:aca:c64d:: with SMTP id w74mr11385143oif.137.1563127671335; Sun, 14 Jul 2019 11:07:51 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:5d4:: with SMTP id d20ls1912011oij.14.gmail; Sun, 14 Jul 2019 11:07:50 -0700 (PDT) X-Received: by 2002:a05:6808:98:: with SMTP id s24mr10888199oic.127.1563127670268; Sun, 14 Jul 2019 11:07:50 -0700 (PDT) X-Original-Sender: ptmkenny-Re5JQEeQqe8AvxtiuMwx3w@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.org gmane.text.pandoc:23140 Archived-At: ------=_Part_2062_2102113450.1563127669655 Content-Type: multipart/alternative; boundary="----=_Part_2063_1968731509.1563127669655" ------=_Part_2063_1968731509.1563127669655 Content-Type: text/plain; charset="UTF-8" I have an epub that I am attempting to convert to TeX for use with ConTeXt. This epub includes JPGs and SVGs. The JPGs are fine as is, but for the SVGs, I want to modify the conversion to prevent line breaks when at the start of a paragraph and specify a width for all of them. Conversion command: pandoc -f epub -t context -o body.tex myepub.epub Current output: {\externalfigure[media/svg/1f4ae.svg]} Title {\externalfigure[media/svg/1f4af.svg]} Desired output: \dontleavehmode{\externalfigure[media/svg/1f4ae.svg][width=0.5cm]} Title \dontleavehmode{\externalfigure[media/svg/1f4af.svg][width=0.5cm]} What's the best way to modify how all the SVGs are converted but not touch the JPGs? -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/cf583d7d-be4f-4513-95f0-7abb4f642580%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_2063_1968731509.1563127669655 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have an epub that I am attempting to convert t= o TeX for use with ConTeXt.

This epub includ= es JPGs and SVGs.=C2=A0 The JPGs are fine as is, but for the SVGs, I want t= o modify the conversion to prevent line breaks when at the start of a parag= raph and specify a width for all of them.

Conversi= on command:
pandoc -f epub -t context -o body.tex myepub.epu= b

Current output:
{\externalfigure= [media/svg/1f4ae.svg]} Title
{\externalfigure[media/svg/1f4af.svg= ]}

Desired output:
\dontleaveh= mode{\externalfigure[media/svg/1f4ae.svg][width=3D0.5cm]} Title
\= dontleavehmode{\externalfigure[media/svg/1f4af.svg][width=3D0.5cm]}

What's the best way to modify how all the SVGs = are converted but not touch the JPGs?



--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/cf583d7d-be4f-4513-95f0-7abb4f642580%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_2063_1968731509.1563127669655-- ------=_Part_2062_2102113450.1563127669655--