From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32278 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: A A Newsgroups: gmane.text.pandoc Subject: Including SVGs with LaTeX math in Pandoc? Date: Mon, 6 Mar 2023 16:11:37 +0100 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000bf422b05f63cb6d5" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14592"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDJ77HUDRUCBBNMFTCQAMGQE6XZH3RY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Mar 06 16:11:52 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-il1-f187.google.com ([209.85.166.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pZCVE-0003fO-0z for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 06 Mar 2023 16:11:52 +0100 Original-Received: by mail-il1-f187.google.com with SMTP id k13-20020a056e021a8d00b0031bae68b383sf4300810ilv.18 for ; Mon, 06 Mar 2023 07:11:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1678115510; cv=pass; d=google.com; s=arc-20160816; b=ZwzG9X/p74urAIhQigEbydmBwzjw0fAZHJuR4LYxXDZiCt5pdwHnJ4JK4eeg5gwmvt yRVBdj96FarIVCEv8VfbJtZqr1BmdUxeJe9egiW8KVbjgKFR6obAob17gCDdLhN67u+R ItCJ6kAYPQYNOpMw2faLrtGewY/nR9mYfZ14pO672dFeT84HTZEG+eAShX8mdIVG6RE0 VBpPnpOUZDlGLy+legbt+MtLbnoh44owp1Q4vkEmU8EJB64+Zk1K0n0LVGjVIMKdO3fh oSUiay5m0e2Bzbr3f9WFChHuCo3m7W4G6W1I7M4b0tLntrO/HhJt6P421r2fSCR4H5Nm BW3Q== 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:to:subject:message-id:date :from:mime-version:sender:dkim-signature:dkim-signature; bh=eL5MGBja1gcyQFNksR9ckwXBXghBpzQYuVWNJPf3kpA=; b=fqwZCppqfHJLWR57WeJ/WDpUUI61p018Idd7xdDyKuJowfvxU0VYbPacKj5WhOQI+t qFSQ8bWzL+0i7F3eJ6MmML9EKgX3t60YFw7xuHBSlh8t31e2+GURqphgoI9zKLXgY2WF r1HUoZdQvoamO7ePSwVtKwyXp2zCZeIjLDxDkngNOIWFi6Lf7YB2P+0glI6dnGp+mY4S 1ndVNGrOInfuVMlMRdhmaOAqP4lG++4ZcXDeZLRTbHVVBcqZMDhrL5gG8/d+dADIITh5 q7paACSaPWISf/bSTiJDoAlkESrVWFfbgU/7RoqmezaUSZhIZutaEsUP+PQniPnYvd3K Ky1w== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ut4RacUM; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::429 as permitted sender) smtp.mailfrom=amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1678115510; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:mime-version:sender:from:to:cc:subject:date :message-id:reply-to; bh=eL5MGBja1gcyQFNksR9ckwXBXghBpzQYuVWNJPf3kpA=; b=QvEkVoouzHmR/Ib5BK/41MD5PH7G20Rwyf12MFi2MTxziGanqXVF8GpZvShsSZlUtM BSZOrV3AxohgvBApnM/50v8FdFhudW+Q6+BRWhuZ603Con5cHd3Vcopus90s3dvutmQu YOk6ew6yKyHL/evuA0DYwA4/1DjdPlLxUAYzNRexJxtONhmH1mu1kS4tV+m69rviW+vW 9kDjzSrIrv/VV6QotQ9sm7MH1p/NhZlaUaQF0Qv0wDSDIFegDv0Nv1M7SY8B8z8cJyiU nLxy4KMu4VHknyRVbRqAsqrZP8rahc5WDOZTpa59H0B1k8CtbPP4bzaBuPJ+b9renbG/ rFpQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678115510; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=eL5MGBja1gcyQFNksR9ckwXBXghBpzQYuVWNJPf3kpA=; b=Wm2rE78WQE9AdEAob9xzN9Qb1qlRYVAR6Sap+EnARi3BiJOf0s2S+xYgPKo1MmBFM1 c9+sFFVeEmEYpgzl/dS2UxLMfs28hY+TCJ6tBOu5iqWb/MKc+lbW1AoZbUi+fx527eZ3 gE9LT/hyH8aaiz5btdAzTL6mr1jELLgp/jJH/ivubcoth6Kzmx0qvxW7SYvwQTG0ugza 5ZEx0JgVAlnTP4I5nsdL6yFobVwYwfvtXqMyzQcBoqwYmCKLIX0uWuh4o1CRVTcvsu2g 4Ad+E5amjuMVGrTx4ZDEAzaxAvue6JCcxr/PNvN/FYHbiqJOu8fb7kJH0GRfilq4DvVf kQhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678115510; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:mime-version:x-gm-message-state:sender:from:to :cc:subject:date:message-id:reply-to; bh=eL5MGBja1gcyQFNksR9ckwXBXghBpzQYuVWNJPf3kpA=; b=Ziy3Qhp7BE3hYgfVVcurSvh0H9Y1ZWN3uH+N9SXXrfnfB1YarI7SpqpdskMbDRxGtQ yW9GBz2p15zTwzWmWXjMAnNoQjPrIZZT9hrxXD0wo+umecLRPaxbhNCRuXc18AFhhnKc xXJJEJ2P5fwOIxS16gDCxE/wI0D8Dowsl9GkHeqrKEt/qcvKkFb2F8z+MnW+78SX0oP+ Y26Trboe39+KwESw6gi8zRvKt/rjkQHxsnZsgIrQ1BdOgZq3hWRemUk4MAqI1BrQk9LR ZU3U2fCP6UiEjKRCmRCrUse+pntOfWGjBPzKCEEP8YU2PGfK3qoFlTsWoEXrbJ7Mc Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKURWKuTwko31akF6s88d04rc2hHXhMFXyf/B4DbLmplvAMQsrnu IOrunMxAGfp/04frtSH24Hk= X-Google-Smtp-Source: AK7set8IWTjfoOC/PZHYAVL/3bZ/3LGgr43jCTYwwZKJgUCe3Nw8eBvmbupgQCyTu49s0v/0ZVAejQ== X-Received: by 2002:a05:6e02:d4a:b0:310:a24c:4231 with SMTP id h10-20020a056e020d4a00b00310a24c4231mr5284924ilj.6.1678115510768; Mon, 06 Mar 2023 07:11:50 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6e02:542:b0:314:1891:45e5 with SMTP id i2-20020a056e02054200b00314189145e5ls3009692ils.5.-pod-prod-gmail; Mon, 06 Mar 2023 07:11:48 -0800 (PST) X-Received: by 2002:a92:b30f:0:b0:315:56ab:1705 with SMTP id p15-20020a92b30f000000b0031556ab1705mr7446259ilh.27.1678115508505; Mon, 06 Mar 2023 07:11:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678115508; cv=none; d=google.com; s=arc-20160816; b=i6x6WZ3sx9iTcj8s0D3DZopAE4UcXJuPdVBWVlwRaWq68qXDyReqE2hNwnJtlY5xjO jjC98qmghwG/OJCMNX4H55BamPniPuDYRDTDGkW7FTdJKOKEuq9jmbWp/AO9Aia2huKw wcNya6ClPgkQr1E/dWDA6zBsQ1eOGWk1PxYoZvOl64S7TNDQS6N7dErU6SLvacB4+NL5 ta3+vvhEQOXl62AHGGFKlguIMx+bF/YKJIGMrcpu0CrKm5BhGYZKn2PzC52wrKK8KWjS joGpIoJTm9ktKlqPdbQCi+VfTVc8SjJVhum2U2biEqSHn3jmS957pUuYxPDFKSx1BjaK Zj1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=hBGruxTQ8dO45Y4lC5BKVnivwFfkFMdw6PVpnc6/tss=; b=r/qrfFxGrqtJLXalw3eVlhW28bltbp+vNtnBE57gMM7gh9oHdqRqCONUNGlaqEILS/ on7zyBK3G5ih7tROIWaWFrBkL9U0Keq6IT2amPWRRkpL7eC/JKOQll/AcYGpaepbiR8Z Zoku5pJlnMf/2ra+favvsG4g17BuJGAyAqNdDHwg7kM4/4dwBeWgpbPmED4n2cDQIdzZ 9cD+UW5Qttsd+jTGnVXzMG+e5COrbZI4rVBF3y/F/6Tq7IOSG+dvk9RemAVC7WoEb/Rh r8kuJTa/01azO/qm3hSjxT82uuDCOjmxJhUEXFZDcJKSMsLM/pl1PJ0FryzJnh7VO4ea DDEw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ut4RacUM; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::429 as permitted sender) smtp.mailfrom=amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com. [2607:f8b0:4864:20::429]) by gmr-mx.google.com with ESMTPS id cx24-20020a056638491800b003c5196a884dsi1113548jab.5.2023.03.06.07.11.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Mar 2023 07:11:48 -0800 (PST) Received-SPF: pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::429 as permitted sender) client-ip=2607:f8b0:4864:20::429; Original-Received: by mail-pf1-x429.google.com with SMTP id y10so5981254pfi.8 for ; Mon, 06 Mar 2023 07:11:48 -0800 (PST) X-Received: by 2002:a62:8284:0:b0:593:dcf6:acc2 with SMTP id w126-20020a628284000000b00593dcf6acc2mr4713581pfd.1.1678115508010; Mon, 06 Mar 2023 07:11:48 -0800 (PST) X-Original-Sender: amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ut4RacUM; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::429 as permitted sender) smtp.mailfrom=amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:32278 Archived-At: --000000000000bf422b05f63cb6d5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I=E2=80=99d like to include SVG graphics in my LaTeX document using pandoc.= I understand this is currently not supported so I have resorted to the idea of performing the SVG to PDF conversion externally and then including in my markdown using something like this: ![whee](foo.pdf) I would prefer not to do this conversion using raw inkscape because the svg package in LaTeX has the added advantage of rendering LaTeX math within the figure if it encounters LaTeX math in the SVG. This won=E2=80=99t happen if= I only use inkscape. Unfortunately, I haven=E2=80=99t found a way to ensure that the resulting P= DF is cropped to the extents of the image *after* doing a LaTeX compilation. For example: \documentclass{article} \usepackage{svg} \begin{document} \includesvg[scale=3D1.0]{idea.svg} \end{document} will compile as a full A4 sized page with page number. If I then include it in my markdown as ![idea](idea.pdf) I=E2=80=99d get the whole page as my = =E2=80=9Cfigure=E2=80=9D and not only the SVG. How can include SVGs with LaTeX math in Pandoc ? --=20 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 e= mail 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/CAMwawgPKcXu-CapB6d_vSWc7%3DvfA_sQSzFnnv4nGBurq6%2BMkEw%40ma= il.gmail.com. --000000000000bf422b05f63cb6d5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

I=E2=80=99d like to include SVG graphic= s in my LaTeX document using pandoc. I understand this is currently not supported so I have r= esorted to the idea of performing the SVG to PDF conversion externally and = then including in my markdown using something like this:

![whee](foo.pdf)

I would prefer not= to do this conversion using raw inkscape because t= he svg package in LaTeX has the added advantage of = rendering LaTeX math within the figure if it encounters LaTeX math in the S= VG. This won=E2=80=99t happen if I only use inkscape.

Unfortunately, I haven=E2=80=99= t found a way to ensure that the resulting PDF is cropped to the extents of= the image after doing a LaTeX compilation. For example:

\documentclass{article}

\usepackage{svg}

\begin{document}
    \includesvg[scale=3D1.0]{idea.svg}

\end{document}

will compile as a = full A4 sized page with page number. If I then include it in my markdown as= ![idea](idea.pdf) I=E2=80=99d get the whole page a= s my =E2=80=9Cfigure=E2=80=9D and not only the SVG.

How can include SVGs with LaTeX= math in Pandoc ?

--
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 view this discussion on the web visit https://gro= ups.google.com/d/msgid/pandoc-discuss/CAMwawgPKcXu-CapB6d_vSWc7%3DvfA_sQSzF= nnv4nGBurq6%2BMkEw%40mail.gmail.com.
--000000000000bf422b05f63cb6d5--