From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/22316 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Axel Rauschmayer Newsgroups: gmane.text.pandoc Subject: Convert \index{true@`true`} to \index{true@\texttt{true}} ? Date: Tue, 19 Mar 2019 09:31:49 -0700 (PDT) Message-ID: <2d229904-88ac-452d-90da-d27d54528779@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1037_1767194013.1553013109201" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="165606"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDYNJWVNWQLBB55SYTSAKGQEKYKC4HY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Mar 19 17:31:54 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi1-f189.google.com ([209.85.167.189]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1h6Hec-000gyj-7S for gtp-pandoc-discuss@m.gmane.org; Tue, 19 Mar 2019 17:31:54 +0100 Original-Received: by mail-oi1-f189.google.com with SMTP id w139sf4791609oiw.21 for ; Tue, 19 Mar 2019 09:31:53 -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=6pVoAW1r8hIbu8iCLS7WvaU6LC35hKFEhTEKkQFKRl0=; b=n+lKPLVOaBAGuXC8qDMdDr5Dl3np5pcykVaOmWxupX7S/EKF4zk32jQiHsE+qmb3r6 V9CGK7Bt/RcAH9BLP3esHOtjdpplKezroDgR//8xFe0j0DA0enEJcMz7XouG0afN3rPZ x2Gqw8gUmeSrMLmrnb0CS2jnupIWg5iBC5bfJpV3jXi8/IzfGuyLKs+VqJW1YYcQ0sHo HpcHKNxfxcu1KJ8HBsfrDBYEJhG7B/342HeIi5fpmqEGM3/thEp/daN/b0OPpNbT+36r YLBp3s/UuapveN00WZjv4O7U8B69EI2l+bG1OoxMB25JhH8MyaiFUr6MEfElHMieEdRB gaJQ== 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=6pVoAW1r8hIbu8iCLS7WvaU6LC35hKFEhTEKkQFKRl0=; b=WyatxnYMdTEIrp1R8bN9nVu2uGNtdFkUAjbXXxnaDrNPcosIWW43rKR5m4hOERVSYk rPKVfPY2Pu/JwqNaxeUQppLD10D8TlH+O28aIkpwuymJzjq37yS14TcXvBjaIjPjW9yN lK6Qct3EFcb9k17UTWyf8pVCbz5m/ShhTSQmjCCxtr1Ym8CFj6dEpAlUrRNFOrgxyHZP 100Hm4E5lLmugH8L0hwwUgy8PDinvmLpBJo3OGmm9uJ7uHYlZ8xFwDHHwqoo42HnpC0t 3sTv1O5S9dpzyFFS3Cfoui9DicWxnHG0QxmRd5t1MzDZ4ugP4HVdU6vbEsteRHdcLmkX ybFQ== 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=6pVoAW1r8hIbu8iCLS7WvaU6LC35hKFEhTEKkQFKRl0=; b=KHfo0dmz3At5ISnJvdZphIKHlxjUIE5+wfNOZxVjSc+kb88pB7Yua0uCUeGNPXT6OY OxLGceJ6SPIC7MJ7vnWsZEy184LSS1o3KmBPpFJaRuHnS7oTCBT3bPbtiVtBmWBt2M3a l6HCC+1s6T6gG1/dTaVGmrQVroff/hac4P2dcABeID8Gj3cMtD4kGsAR2MleltCal4lm co6nUcaC+mKxgHEhrucXaVM8/C0KVNEFVbSbHw4Dl14EvMqdgF/pxau3OjI/dLqc71VJ 7N1aHnb4dBKunuyhHDwgNVT9Ioldf4xkG7P63N1LW7b1ItjlJQ7OlAO9lLCUGlY64Te8 WTGw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAXyNNb+7n+4jdXdd7wjSjC7eXbJTFc49Ugv48aWne0IzA4Nl0+W 3CXbwx58PNfCyyOw9AbnkMg= X-Google-Smtp-Source: APXvYqx8/RJOsxh01NsZgDFfhmfvfOH8JD8uvikicE0pqnbkrQJeP4MZbJb5P2ajtSsQPvfvTruYxw== X-Received: by 2002:a9d:77d5:: with SMTP id w21mr2347601otl.227.1553013112004; Tue, 19 Mar 2019 09:31:52 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:5dc1:: with SMTP id r184ls983982oib.5.gmail; Tue, 19 Mar 2019 09:31:50 -0700 (PDT) X-Received: by 2002:aca:c002:: with SMTP id q2mr1887753oif.145.1553013110455; Tue, 19 Mar 2019 09:31:50 -0700 (PDT) X-Original-Sender: rauschma-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:22316 Archived-At: ------=_Part_1037_1767194013.1553013109201 Content-Type: multipart/alternative; boundary="----=_Part_1038_403666920.1553013109201" ------=_Part_1038_403666920.1553013109201 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable What is the best way to convert \index{true@`true`} to=20 \index{true@\texttt{true}} via a filter? - I can parse what comes after @ into an AST via read(), but I don=E2=80= =99t=20 know how to do either of the following two things: - wrap raw LaTeX around the AST (not possible, AFAICT) - convert the AST to a string with raw LaTeX (to be wrapped in=20 \index{true@=C2=B7=C2=B7=C2=B7}) =20 --=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 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/2d229904-88ac-452d-90da-d27d54528779%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_1038_403666920.1553013109201 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
What is the best way to convert=C2=A0\index{true@`true`} to \index{true@\texttt{true}} via a filter?
  • I can= parse what comes after @ into an AST via read(), but I don=E2=80=99t know = how to do either of the following two things:
    • wrap raw LaTeX ar= ound the AST (not possible, AFAICT)
    • convert the AST to a string wit= h raw LaTeX (to be wrapped in=C2=A0\index{true@=C2=B7=C2=B7=C2=B7})
    <= /ul>

--
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/2d229904-88ac-452d-90da-d27d54528779%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_1038_403666920.1553013109201-- ------=_Part_1037_1767194013.1553013109201--