From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32305 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: raw_tex commands substitution with bibtex input Date: Wed, 8 Mar 2023 21:52:25 -0800 Message-ID: <6DE91339-D332-4DCB-833F-1CECE1DFFB67@gmail.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23108"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBHHIUWQAMGQET5Z432Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Mar 09 06:52:33 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-io1-f60.google.com ([209.85.166.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pa9Ca-0005np-7v for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 09 Mar 2023 06:52:32 +0100 Original-Received: by mail-io1-f60.google.com with SMTP id k13-20020a5d9d4d000000b0074caed3a2d2sf398229iok.12 for ; Wed, 08 Mar 2023 21:52:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1678341151; cv=pass; d=google.com; s=arc-20160816; b=Xh36XwWE1ZxODOlKP0gbKLpoOV8QAXkty6DZjCq5OeN4Ygwbb5tOxZOIuIK3+8W7L6 AN890y7sI6SjiiKHmptkrELPo6REHogrL3naFjGpQj7LDUVOfNn/6Lw4bKMeBrN8f7hu 4pNPT828iHY2T9ySyGkU52S9ies+0ZNofQ7/MW7qEdhVgKWYkSK/z46REmO4x/8I0gP4 BXhwRnXUepgKUgs/xvskXzRxGF6UGSv6R8kS8PN64ajTyPLHZeJ3878xRaDQ9wX3YEGR tOYGR5vhuxH0c0Zj46qmukHVDpWAoKG0RTpkvk5/3J+K5p/WOfMhZWFbbp7Xncj1sP5s Vsbg== 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:message-id:in-reply-to:to :references:date:subject:mime-version:content-transfer-encoding:from :sender:dkim-signature:dkim-signature; bh=03b00YTMCnFasHFL4oqjSrykP00sUR1wZZlh9cQFNuc=; b=DbHDj1qKv+quUVyZydcGMnXSvZFy1A0tI/EqOpk8TW2AJg/buBXbVV94YOkN7E1KLS ChdayfOxBukjmUtEu4Q95DC+y8fUbOe1fcodDBag+yL0gc08u8hA4on6N6TLgNFuoHCz S4vxeXMpfNtiGUvVrQsDp0rpWLY8SFNevgD9BhCMcIbWUKQfE7GKF1OH9e/M47VleVaG M1EUDnquWJbrYs+db+wWUq0UF8lWrGn5QJ92frDRnHBaKUI1roryLwWlsPsHvL5kDoWD gWLbP3lTmeDGi4a+6U/sB8p4+c5TAEYKuFUDOM4RCX3WqBHZvJAZvRf5HDXHn11cu6sw cQIg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dXRRB9UB; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::635 as permitted sender) smtp.mailfrom=fiddlosopher-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=1678341151; 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:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=03b00YTMCnFasHFL4oqjSrykP00sUR1wZZlh9cQFNuc=; b=F0jHW4/Z9LANGM23A2H7kTGZTt77RQlzzvODa4W7bFsY+oC625fzzk9884WG7jK0oa YNZfEbOaBq4dfexL96/phMCciEgK8Cq7/Vp4XUShaVlVZnjiRu/AFbhxvAnyGnSVh5QD 9FmP/qbCadgmN/MTm9EV6j916i8GHJPey8gud86BBrAh0jAr/8TJ1v/TA1PRU4khLlj9 UW3WUpeIbjsqOmg/WntXYYdVZUjROjTn0pxBwoKOpJZ6jrj1kWf2raVoBnZ4CaQBA72Q ksXMsq3wAzHEFeGggNllnubtauQMJh65GQY3sjxWSMDlb+Rqz06 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678341151; 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:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=03b00YTMCnFasHFL4oqjSrykP00sUR1wZZlh9cQFNuc=; b=AkAHr2usa5pC1H2e+HNJE/EEDy3FBpIwvyqrbAg+TVxaZTLCDk68yor52Hpp4tt338 k0GOSDXhVOjYr98vnqpCYw1+MR7d1nSRMeHGoUhBkPiwWBMFDEjmUWq3McRhq7ue+JyM TAytowws+21idZdRKfdj8WWkbV6oM9UIGDlXSgxvCqMZKLKHzFBwPlBaC/eQbHS8B07x V8X4o9BmkjhaeK45UrOjkioKhGfvZ4iPJeeE0KwgfO0O17N3GyVXpBy4/XBj2CrQLkSf nJrCZxRC6NjS45vXfMEwLZ9fiRxxZHQip7T3oigrykEkuAbxpU84TlTt12h290RwK X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678341151; 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:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=03b00YTMCnFasHFL4oqjSrykP00sUR1wZZlh9cQFNuc=; b=y//wI+DOA9Hc/gbAH3x18heYMQzzg1mqvnFUlGxL7rO2/FR4zI1X5CZTywJb8i3Ku9 /3FzBTyNcAIIlTbX2EvKzsrQVUxKzCw8/Zc2HZ1eq4Mi7oSzPFiT60oAnVvr8FYjtHfS prMKUKLY70wHQgUUfJVZh1Nt6ASvlRwHA8DNpVNJnNjmW0H6u7IvvTBH+5J1cEaMvX2z OfsMiqFaMVqW0T18sZ3jkklg5GI4DaZMFPxDhrIlwlYC8eMth19/3LWW9xZUwFvQeVgX 7i7+Wx Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKXiLe+G8sC+cPNUuU9Mq5DbbZGwRnmUrvE0CDVaaC4joiHLT69p GvrYcBewpG0+W3Hx4UZHZio= X-Google-Smtp-Source: AK7set8VFZ5nB9Y1HQAzOi0dFxVbwBBL30iu9y4cTlztadJZPiGQe7ME4l6f4YfupejdMh0DJg82Wg== X-Received: by 2002:a02:23cc:0:b0:3be:81d3:5af3 with SMTP id u195-20020a0223cc000000b003be81d35af3mr10271642jau.3.1678341150912; Wed, 08 Mar 2023 21:52:30 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a6b:f002:0:b0:745:5be5:240d with SMTP id w2-20020a6bf002000000b007455be5240dls107831ioc.2.-pod-prod-gmail; Wed, 08 Mar 2023 21:52:28 -0800 (PST) X-Received: by 2002:a5e:860a:0:b0:744:cd00:854f with SMTP id z10-20020a5e860a000000b00744cd00854fmr2209969ioj.17.1678341148454; Wed, 08 Mar 2023 21:52:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678341148; cv=none; d=google.com; s=arc-20160816; b=TY+W0yv8ae8+ee5Lwb5wB0wbai8zfKdRMw4fMduWywxPfpoQmIRlNvlssOfU43WLFe bMHAQropq/jeZzXEEBXUDXrFwQMf3zfYCLvH4H/JhjkrNSXOu4kokYqHVKYypHQn6uhh ++xxq0HnMbNYmq37//7yJ4mZRVr6PsLdxp2rnsCgiv/tbq3iPE3roTFr+agFN6J51T6g BfCtWSIZpW/93I3uYFBq82Se5nQKZbDkWwMyqeJBqnlpRZ8nQ1JFQPY7ocdvH411lACg ykVAPXhn73+eumUG4OOJGVbbN30da06GuM3WMhKIsqhhvlZWaL1Sm+X/PhGuUoMHEoww q4xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:dkim-signature; bh=CZNwM0YQRngCZ9rgo8/lT0nYrbf940ePZwh91ipOGes=; b=Z9Swx298SGB3Z6/0ZWXoOweiRNgwaugOZ/dgRE5Py5s5Lww5fB5wqaLVGAOhQ5B2+f QUYMpk64EPFEqQYiSTkyEWZ2oq9FwS+hH4WA9jVWwrzofSzY8tzDdghiuBFnZJ/YZRiY g/Ncx+ExHemNjspymDZDYoTvcjq3+n2bhtDT8iqMfCJAWs0gP5wrjNh4MmuSJYSLSuBF 4nd5bXS2KR6nE7RaVfAxNtdHO8sIoM/HRWu8200vWbKanhGPjiRqR/hGTHtLwcHtL6QT 3Cp1lweWb+c58m/TDzBzp4mceJPCZiuJPk7yMBR6yeszX6xkD7AjCxoB6wZaNw90JsCb NyCA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dXRRB9UB; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::635 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com. [2607:f8b0:4864:20::635]) by gmr-mx.google.com with ESMTPS id l6-20020a0566022dc600b0074a162394ebsi692136iow.1.2023.03.08.21.52.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Mar 2023 21:52:28 -0800 (PST) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::635 as permitted sender) client-ip=2607:f8b0:4864:20::635; Original-Received: by mail-pl1-x635.google.com with SMTP id a2so913717plm.4 for ; Wed, 08 Mar 2023 21:52:28 -0800 (PST) X-Received: by 2002:a17:902:cec1:b0:19e:ab29:1ec2 with SMTP id d1-20020a170902cec100b0019eab291ec2mr19521805plg.65.1678341147435; Wed, 08 Mar 2023 21:52:27 -0800 (PST) Original-Received: from smtpclient.apple ([2601:644:4780:3350:d9e1:80f9:3fab:a1e1]) by smtp.gmail.com with ESMTPSA id f18-20020a170902ce9200b0019c93ee6902sm10690386plg.109.2023.03.08.21.52.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Mar 2023 21:52:26 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3696.120.41.1.2) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dXRRB9UB; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::635 as permitted sender) smtp.mailfrom=fiddlosopher-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:32305 Archived-At: We should probably enable raw_tex for bibtex input. Feel free to raise an = issue on the tracker for this. > On Mar 8, 2023, at 4:48 PM, bapt a wrote: >=20 > Hi, >=20 > I'm not sure how to approach this: suppose I want to produce html output = from a .bib file uses LaTeX commands such as `\textregistered`, or `\myname= ` as an alias, etc. but outside a math environment (`$\textregistered$` wou= ld be fine, as it's handled as Inline Math and passed to mathjax).=20 >=20 > With a different input format, I could use the `+raw_tex` extension to ma= ke sure pandoc does not drop the latex commands, and have a Lua filter perf= orm the desired substitutions, as in this answer: https://stackoverflow.com= /a/56391373 >=20 > Unfortunately, I'm getting this message from pandoc: "The extension raw_t= ex is not supported for bibtex" >=20 > Is there a workaround for such substitutions?=20 >=20 > Many thanks, >=20 > baptiste >=20 >=20 > --- > pandoc test.bib --from bibtex+raw_tex -t csljson -o test.json >=20 > sample bibtex >=20 > @preamble{"\providecommand{\textregistered}{\unicode{xAE}}"} > @preamble{"\providecommand{\customalias}{Akshay Agrawal}"} >=20 > @article{agrawal2021mde, > author =3D {\customalias and Alnur Ali and Stephen Boyd}, > doi =3D {10.1561/2200000090}, > journal =3D {Foundations and Trends{\textregistered} in Machine Learning= }, > number =3D {3}, > pages =3D {211--378}, > publisher =3D {Now Publishers}, > title =3D {Minimum-Distortion Embedding}, > url =3D {https://doi.org/10.1561/2200000090}, > volume =3D {14}, > year =3D {2021}, > bdsk-url-1 =3D {https://doi.org/10.1561/2200000090}} >=20 >=20 >=20 >=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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/c6cfd247-822c-419e-a8ec-e3cee10e03f0n%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/6DE91339-D332-4DCB-833F-1CECE1DFFB67%40gmail.com.