From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30169 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: How to render \textsf with pandoc.RawInline Date: Wed, 9 Feb 2022 09:56:37 +0000 Message-ID: References: <578d6310-8ebb-4154-b2b1-2614773829abn@googlegroups.com> <87h798bdgv.fsf@zeitkraut.de> 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="blaine.gmane.org:116.202.254.214"; logging-data="26370"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBNVAR2IAMGQEO6KK75Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Feb 09 10:58:19 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f60.google.com ([209.85.221.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nHjju-0006cH-NN for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 09 Feb 2022 10:58:18 +0100 Original-Received: by mail-wr1-f60.google.com with SMTP id q8-20020adfb188000000b001e33a8cdbf4sf883811wra.16 for ; Wed, 09 Feb 2022 01:58:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1644400698; cv=pass; d=google.com; s=arc-20160816; b=x76yi2BF8qmbhvuejAhHMTybO75XbMD3uGO+hOmUy2TwfvwoNZr6Z4dlNaBDu2YKU1 bLCs5WkXnLEyds8Zy9RBw5P1YS9oy8eNGUQP9820MibJGQ7PqJShny+6PN0xeK60ZM9j 5wzbQOzvXXEpTx/Zt0IEEMvYCFcgoE+02yFSs8NxvixKF8E/Jo+38HAUNUX9XXA5oVK8 wGgqO4aRvjtztVhJjEw5IEosc+E84B4vsmkicMbJoGxEVHhuyfEhcMw6HzCFS9xWoxkf z4qHmY+7NUzv/HCSxILXs3a49oD6wZ0S8QKFKGmMDofHwQmI1fRenzKyGyAPi+xLiVh3 9fbw== 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=GjL2HKQRYwtGXs7E8LN+Byz8sEyEt/NGY97owNDBu50=; b=dGj/egdDDwuDb43CDl/eFzrPpnpfUFu1gTH7Pmz26sFMf0/o6wvGZEg+J8ndTjELUK TXqtOqmQdeY9WTp9b1sBmhWThSzXmthsCKYQH83WQZUbIKWnQs8FQiJLoB/ygBaz4gNc La/9RnT2pXTsa1zL+YR4uIZ1xtmiwEGUCG2p0Lfv4LomSFcQylBCrsrob8xWrwhrpRLr Q5bXSnp3PLoJTM9uO4hJz8XRxA8xyXWBf4UxPnE1WM75WjMA/6ITQG4z3vtzEzvOKBJO KzqIAE/8JSS96dcBGKwzPai6FWXWZJw7tJtudnUwhAOnwhw02yojFkOtCqlQeOrSgJL1 9lgw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=YyXpiCRQ; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :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=GjL2HKQRYwtGXs7E8LN+Byz8sEyEt/NGY97owNDBu50=; b=a0hq9e8B5TjUbKRlSHmnmfq95pm0MvuoSpNwETVA4+ERg3gf1JeMWkJzEMu0dJ5SPl PZrlyLE2i59B2fhlqOxizroyK48lSJI9joyb8YIqLNp1MgOKKSPjey5+ComzApikt26n Eure/mgdHiQgSpBFkCt8PU6Z5mxjCDrT+cMZRmD9F9YY5iK5b8Na4JdwA58oZR8jMiZs A6PGf0NayMKOJOx1dTPuMUjH8ySu42To2svs07EOObBMa/2vubhlweqvzJOmIOFxR+5+ vcBd9ke7amBfoi3tdCzXJa2JFsf2xjTmzmplVa4JmBBR05dWfLjKs8+h2Tf95zc7TykK mH4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to: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=GjL2HKQRYwtGXs7E8LN+Byz8sEyEt/NGY97owNDBu50=; b=Smfbp44FfGAqDUDkcInVp/ZZGURaVKDXtkg7DB6IqRhSJq/QoN5hwjIsmTwW/Ecb0z wU0x1GG9LV5xtO/MSSY7hLadrG0E1ZfIVjBEOGO1XB4jbDVrq9auZ5vPRxez6/DMcAj9 1ySmGqTxb6PALGQCa0ZXeBts0RCgg0WYOzJ7PemL7M/TALn01iUXBb1gP2dPQM4Nbq7P a4bXhqWVaGUWG8FsqPnO29gkQxyx7RJQ+xL3goZfL7xZWn3ey1aIYuKi52IoddLSnXMN Yv6/pEl8GN85kDvtzHaoP3p/1iSEew5vWWLV9Nncc+MU Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5316XuyP5Erx918Yb5X6PzSu//oZxbsCdRZrdMIGuhED5ru72h/7 yKlaPZL0V460gB1DmaM5UoQ= X-Google-Smtp-Source: ABdhPJw9ZLsCVkt05v7iGupyW/YY8VKSdj5G3g3Jec2zDhbu55aDxdHKaFGObrOxIoVc1wxN4Zvc0g== X-Received: by 2002:a5d:62c4:: with SMTP id o4mr973268wrv.319.1644400698223; Wed, 09 Feb 2022 01:58:18 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a1c:19c1:: with SMTP id 184ls1968215wmz.0.canary-gmail; Wed, 09 Feb 2022 01:58:13 -0800 (PST) X-Received: by 2002:a05:600c:35d4:: with SMTP id r20mr1776148wmq.147.1644400693788; Wed, 09 Feb 2022 01:58:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644400693; cv=none; d=google.com; s=arc-20160816; b=myQjaulrXn88waPD9k9nhrc6zI/cYgo9fMZ3a4n4ATVfGlWMlFeEOX88tNsvihSLjL o0yS2LgUdQ4ikXbmMh466cSc1LfrTGxkUlhKGd1QoheGTZQUDXQdNFFUuvBMhX1O66+B VoyRJBAHDUDfrq1glXHJZ67dAMVgaHFXshDGwZGZ/fgoZZqQS0FYAN81SScpJIEya4j6 phCnBKck4x9kI5SKZdF2BdCnGgZg9VGpFnmLYglbAp2oxHb2W0DvCwXa7Ti+zKvldr8m jaVroQno4qXNLoqga21vwFrfHDidhkExqaRueWwnJBX7pQI05/36LvTZAWK5uRPVF1mr 8JMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=Xb8zMiWS9PX+D/SH4MunTvzf8PTpheA/eJZMMjezUfQ=; b=XSZjfU76xaAWhw1RJoWr7wl6EejxbYNvK+1rmQn9TzQ85gllSCKLJ+Df6d7wSdSE2c 3sxnUgUdH1dVrlsBWeZvQKQR4HnnTiQDrQYYpg9bjY7qbIMy7esaEme0YJTXOLsuDfQi aL6wuXElkSE0AXMlxi6j/cNk4brjZ6UYzWzHVHdWGlaCXBAzlzZats6dX2Ruuw0Er0+Z +NJK0uZb7O7oFzlUXjB/C77eAQVaSDAAHr5ggtLKqcGOLW31BDa0yLxf7WkvP9Nd/J1t nitpouMusek2kELg3cUaquH9CMBA9HbnaTKW5yStw4fNrEsniAnpjXWeqInedzw9WKAr gIMg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=YyXpiCRQ; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout02.posteo.de (mout02.posteo.de. [185.67.36.66]) by gmr-mx.google.com with ESMTPS id ay1si240526wmb.3.2022.02.09.01.58.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 01:58:13 -0800 (PST) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) client-ip=185.67.36.66; Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 5137F240103 for ; Wed, 9 Feb 2022 10:58:13 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JtwLD5cQtz6tmf for ; Wed, 9 Feb 2022 10:58:12 +0100 (CET) Content-Disposition: inline In-Reply-To: <87h798bdgv.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=YyXpiCRQ; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:30169 Archived-At: I thought about this too, but can we be confident that the LaTeX writer wil= l continue enclosing spans in braces in the future? I ask this because the = ConTeXt writer doesn't do it, and there have been breaking changes in the L= aTeX writer recently related to the shift from polyglossia to babel (e.g.= =C2=A0changes in language tags). Le Wednesday 09 February 2022 =C3=A0 10:18:01AM, Albert Krewinkel a =C3=A9c= rit : > Nandakumar Chandrasekhar writes: >=20 > > Unfortunately the latex i get is {\textsf sans-serif} instead of > > \textsf{sans-serif}. Is there a way to get the output I want? > > I could use sffamily inline but would like to learn how to get textsf > > to work. >=20 > You could splice the raw TeX element in before the span and rely on the > LaTeX writer to add the braces around the span: >=20 > function Span(span) > if span.classes:includes "sans-serif" then > return { > pandoc.RawInline('tex', '\\textsf'), > span > } > end > end >=20 >=20 > --=20 > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 >=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/87h798bdgv.fsf%40zeitkraut.de. --=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/YgOP1SRSMlBW85Bk%40localhost.