From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/24915 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Support for Julia language in fenced code block attributes? Date: Mon, 20 Apr 2020 09:33:54 -0700 Message-ID: References: <8CA79C9B-70B2-4176-84FB-3BD72051A708@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="43079"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pandoc-discuss To: Dominique Orban Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB745672AKGQEMDYEXDQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Apr 20 18:34:11 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f186.google.com ([209.85.215.186]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jQZN4-000B5X-Ve for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 20 Apr 2020 18:34:11 +0200 Original-Received: by mail-pg1-f186.google.com with SMTP id u15sf10144464pgg.14 for ; Mon, 20 Apr 2020 09:34:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1587400449; cv=pass; d=google.com; s=arc-20160816; b=ipM1K2SkfCH5wJpYdqkJiJez6NqsaMPxNARFZh/kfPsPK7PIiiRmkPHbs2vuapzKNX CeDcmDLar0MVy8C2x4x5GnjEDJClH0CATTs0xpxpCo63bbuglf4/N7DpKJiyZqs/1V3P tMjIDhladV+J0PLYyoUmCuKDe86oksS9Ci/eOsk7B0uUAzwp6w39M52VX5mR0fBBpw3G u3I0rAfPKjwTAcSQMNmdo927jY6s09r0h2slP3MWyrPDBEUXM1j7X1mqyP2mzaLzAW8x 4Mclhi7zL6WqSD5OsgCV3urgNqRBDxbF/oTPeDefQ94qG6VPaou/XQaIkVfOh6+6FW+B G4zQ== 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:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:sender:dkim-signature; bh=w0cG+tsPvui/q/D8fGtIIcm1RaxPmnOJQ97MzkDQOLE=; b=CTQdR/I1mbDj96aajeoyeYXtnzkMAyXD0N7MUdG0pmeIGOEPnenluzHH4ROh6YJgdl B+YH8Kc2b/4rvkEJOAeD2iqI1uw+fCa8KljNpDRx0V6Tft50Go7UuNbSCgZAb6/rEd1B je4DoC3dD0HYgZrSRk1ZaieQvxIaWPh83DuDFLoodVS3rWbKsxngmqbAHuBWiMxNtv+q mXRfDChhUbDozF8KgJHoZSsNPbhc/gweO1Sd47XMHfHTzNgGs8HoMEkkMQJgNU3xY2Vl wKsET7Rk1VBXTnO8qVwIUIM4fUnYZKaaCnT/dKDGQXgEIxoXWmYPdn6PybbAeq/kEPKc /oxA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=IqnXl6Kp; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::536 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:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding: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=w0cG+tsPvui/q/D8fGtIIcm1RaxPmnOJQ97MzkDQOLE=; b=VJzf5P0ZYFzwfXJ6Aqo5Qs/hFL7mFh4b1ZdJEq06dJAFRnPxhFuXYG9zXHKickrLC6 ErLSizr0SfZMYeMC7bLqcccFRZIa36xaoa/rKuhppcfxUNYt5gtdI+s2yYfFzfkbAG6S +CGTW9JWYp80pEO3mdp4VZeWrIWhHeLBr3COux6ujOgawn7PBYmE/HlOt5a94Jg6WflQ RwyMsZIZbWIKzz06h8uwy8V1isWpTd4+7U+TYWdOnzJPnInmCLK5ebQZq3fJbPwsAdou 1dp+QkLrcHPUJ0Vq+zDza1/Rr3aOlczdTPr43yUX5tFQJCba3VzsWhlF2j8uj7p/bLUw /tSw== 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:cc:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :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=w0cG+tsPvui/q/D8fGtIIcm1RaxPmnOJQ97MzkDQOLE=; b=skqcR/op1u5U4RvpceoxuZk5buh3cmV6ZqVA+7Ql+dWJtuUpsCy7YV0rcgMw86VkNN 8ySE/q+wAvfJ5ZmelG7FEDYdmsUrg4sxqhjRx8l1Y/S6huzkUBw0X6CHHnjcaZzNiv5Q 0o+m3ktLvzJeW5SezWR1nSMyNTGytcZpeF8jPTK2oS1g/pcnrNumKyIFs+jYKUC1thzj 6m8AsRKK8pcYp97X8BT5BPND/3Y+wHOjDNIS0IOrNbBC6mTfntp6wPsrqI4FNIiW2yHl nUdvMnRrC6Fj7r8SlGmYAPW5OJqGeMymdE+LpQbkkSGAaHU5BSgCbPi4ztcL59IK6BmC Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AGi0PubBn0z39R5yNAvtoCY9iZBH//M2L9qdx1K7lpnn+5rfKwD+6ESK lYry9+HHaHXhRF/IK9lQURE= X-Google-Smtp-Source: APiQypIFYYOACWAZpNV9jtBdujPy8PsWElKxoCAPOtMdvitKDEymdjOU93GDAnKUiZwk/f/G/pVeJg== X-Received: by 2002:a17:90b:1b02:: with SMTP id nu2mr228142pjb.95.1587400449783; Mon, 20 Apr 2020 09:34:09 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90a:5d97:: with SMTP id t23ls230773pji.0.canary-gmail; Mon, 20 Apr 2020 09:34:06 -0700 (PDT) X-Received: by 2002:a17:90a:b884:: with SMTP id o4mr287833pjr.8.1587400446817; Mon, 20 Apr 2020 09:34:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587400446; cv=none; d=google.com; s=arc-20160816; b=KIALMEcKUPu9KjXXPmKL+Y9lHeFA6QdrU+f4vecRitY72pb4kKB68SmOH5DT2cdoGy tq1gLe+1fGTNbY2uk0p0X52I/dnC56ZHBV5qJOnCynxk6xEtCYZszeOkdeiA1mlq0sRA PxLMBaPqGuCNk+1trnCXqi+9LAQD28RQ3VzmriAMcfNvhwuKiduEbDkiYlPuC77bJWpA zoxiQoqXQHlFJdvqsRojEQFgE1Oafxg3IBGDLMQnnUM0CFIGeRw+GQvjn0Ipb9vM+sJJ 8jRMYsmOStJevCCrG4kS080iaDNDFn6lfpvyM85zPRJDGPlL6Y7MCofLX0k7YSc8oM7P ctlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=OXRexKw1FtgGzhxX2fFxXpe+uGjchRG2sFD2f91bP+s=; b=cgDnD47qLTscag3S+mojuGMN1HRbW8g6mm5UNHEGOq6Td3IAe+F/e+23k6XR/qiMPq uC+fXFaj6dPwxep++2Q+e43Q2msC8Q8p92ABzTXWg25tp7bZrN4D4YgJvreKSotki+dn kUj2ehVYxtzVA6gGUvf/b7r47NUeC7tki0Ae19pHJP+67hN1ZiJ7mI5Q2qGRQQ/p6KLr ebRaTjqU4jEbY6+p+0NRe4enpGj+LMMuypGTxriXfkPm/bC0s8YTrCJkPay80zu7rQLy w6S/RBaw/1ZTbKjE2xEZSSomKl51uPDFyqFjaUpmGVgPtrOhiLH1VeOVxvJJgHOTjKqw 6qBQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=IqnXl6Kp; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::536 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com. [2607:f8b0:4864:20::536]) by gmr-mx.google.com with ESMTPS id j5si151944pll.4.2020.04.20.09.34.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Apr 2020 09:34:06 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::536 as permitted sender) client-ip=2607:f8b0:4864:20::536; Original-Received: by mail-pg1-x536.google.com with SMTP id r4so5319780pgg.4 for ; Mon, 20 Apr 2020 09:34:06 -0700 (PDT) X-Received: by 2002:a62:178b:: with SMTP id 133mr17610108pfx.61.1587400446417; Mon, 20 Apr 2020 09:34:06 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id c1sm1470843pfo.152.2020.04.20.09.34.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 09:34:05 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 7AEA2A256; Mon, 20 Apr 2020 12:33:54 -0400 (EDT) In-Reply-To: <8CA79C9B-70B2-4176-84FB-3BD72051A708-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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=IqnXl6Kp; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::536 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:24915 Archived-At: Pandoc supports the officially supported listings languages -- but obviously we can't support every available LaTeX package. Sorry. however, try this: ``` {language=3DJulia} test ``` This should produce \begin{lstlisting}[language=3DJulia] test \end{lstlisting} Dominique Orban writes: > Julia is supported by way of the jlcode package: https://github.com/wg030= /jlcode, which uses listings, and provides some support for unicode charact= ers often used in Julia code. > > I'm converting from a markdown document that represents input and output = (as in a Jupyter notebook). The --listings option is useful here because in= put blocks are marked as {.julia} while output blocks aren't marked, and so= can be displayed differently. You're right that code is highlighted withou= t --listings but unfortunately, all code blocks look the same. > > Thanks! > > Dominique > >> On Apr 19, 2020, at 20:34, John MacFarlane wrote: >>=20 >> =EF=BB=BF >> Is Julia supported by the LaTeX listings package? If it is, >> we can add support. >>=20 >> You can also try without `--listings`. Pandoc has built-in >> highlighting for julia. >>=20 >> Dominique writes: >>=20 >>> I'm converting markdown to PDF using the >>>=20 >>> --listings >>>=20 >>> option. I have fenced code blocks marked as Julia language: >>>=20 >>> ~~~~{.julia} >>>>> using Pkg >>>>> pkg"activate ." >>>>> ~~~~~~~~~~~~~ >>>>=20 >>>>=20 >>> (those are generated by a package called Weave.jl). The LaTeX generated= =20 >>> file looks as follows >>>=20 >>> \begin{lstlisting} >>> using Pkg >>> pkg"activate ." >>> \end{lstlisting} >>>=20 >>> As an experiment, if I change=20 >>> {.julia} >>>=20 >>> in the original code block to=20 >>> {.haskell} >>>=20 >>> the LaTeX file says >>>=20 >>> \begin{lstlisting}[language=3DHaskell] >>>=20 >>> Is Julia not currently supported? What does it take to support it? >>>=20 >>> Many thanks in advance. >>>=20 >>> --=20 >>> You received this message because you are subscribed to the Google Grou= ps "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/ms= gid/pandoc-discuss/336e638c-1c44-44cd-952b-771fa7187792%40googlegroups.com. --=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/m2imhup159.fsf%40johnmacfarlane.net.