From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33003 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: custom color for highlight Date: Tue, 1 Aug 2023 14:45:31 +0200 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000096244c0601dbec10" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32186"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRB5X4UOTAMGQEDWD3OGY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 01 14:45:45 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f55.google.com ([209.85.210.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qQokz-0008Bv-IU for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 01 Aug 2023 14:45:45 +0200 Original-Received: by mail-ot1-f55.google.com with SMTP id 46e09a7af769-6bc56f23c65sf10884597a34.2 for ; Tue, 01 Aug 2023 05:45:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690893944; cv=pass; d=google.com; s=arc-20160816; b=J+LdJZJ435z3YnRkHVO6OhOOvGwPUoF4OmyZ+/UcQxVAmgXg3oeQkvRWiUDkyvcu2S Z2SVqmLSJLE24qdM+CSzJeAQERaBvl2DJhdzI5J01TWz2GMegZJcWk/uXgTOrE5iolAc 8YUd0grx5+N4ZdVpQh/BSYXV8p8GSJUPitCfnIS90sME5nSD94vYUJfpY9js/AbH/vs9 kM4TLCnKWdpKibwSXpLZycgWq8k5HcuttRg8njJYPlBYE57yqDU3iliu2Ui8N3BRjPh6 H7tV59M33S7KJaBNETaR3cpfIOEwKZ0Ejnp9d8vaFwwqMzM2R/+cNRJiCjbv2u+OzDjM xllw== 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:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=FGogV2pypbEz5HMCN3LosNizs4gtO0cP4bIax3W+yBY=; fh=7hVwPa9wYt5eiBYfSHHLDYQlAmXCnXdxB8L+IfejXog=; b=FPVEEUBvvLSZb+weRnrF5qFdezitkVrp5EKPMSUGaoHcypAe1ZsSpRiqX9hoMHWzOp oAAPynXYrnjakTqDHh4ZVi/z5otRv3LznAs8PyWpaYskyhul5ITOPXpvj5krfhkEzm8X xrqChp2eBsLyjoTHyvjjikrz3plvq0YJ6mK66XD4AQZ7EU7maocpeDW4GgkJJotmCMey ry42no1RqTQ3yasVrXMS8LoifpuLFh4bUZ6lPmYUyDYkFYQDCxHssRD+kCcbhgqkb354 7ok9ggSS0FpsTMtC6BI0k8/83hPCkBW9G8aqrM06OgeY2YLuMXO8cxmH3uZOo+fL/uYl 5r3g== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=gnsP2tFV; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b2d as permitted sender) smtp.mailfrom=melroch-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=20221208; t=1690893944; x=1691498744; 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:in-reply-to:references:mime-version:sender :from:to:cc:subject:date:message-id:reply-to; bh=FGogV2pypbEz5HMCN3LosNizs4gtO0cP4bIax3W+yBY=; b=KvSaCouDAsrZwgtkyXLWIBltE/ntNVj8pnuhFtw0X7/l56GiZZuB2HLYhkpZT1t+VI o5xgBvCSF8YjvXcWHRTUGrHlIiZmwSIGi8UYeCW0TW61q1Q3Z0Dp4NMfwjI+DVjuajJj uOQdeA3AqkebnEF2yiNPc0B4cf5r32BPW1tGOuIYWc4xkvEigmtN0tCdY/ksjJxqBNV4 FYxZiwSlD/wjDv3LJajoH4uIL7Tp24ZZBQxGb8WWj58CkV9+woQlu2OPo6jb2tUsrxon XcZ1igKWWwfhKkfbCup3lvDpB3vYtFUvGhkv2xK/drhlN4Kl+IsL1AoJdgGRWbAUH8EP DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690893944; x=1691498744; 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:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=FGogV2pypbEz5HMCN3LosNizs4gtO0cP4bIax3W+yBY=; b=Mu3A89MldzzT1XDyhHOVNMOOI6Y9eGD2KBx20eCJQR6Wsr19ClER+yjNrs9ccTAxwY S6ShtdLfCk7QBEHKreQvFPmBkakzwu7qies0UHG8psZgAmco72dXnX2OYq34rPR8Ww37 AVY66p48B2d768YQ0/gDCbjxlpwDjcxhvAwk6rdN0U1U90oQdl7P/SQ7SqVns8L7kdgA sTJn4a5+knw8pZU+uQZf6CCPzceeJTncQ9lZxdqw38Yt4Arpa5W2yXYhkoDq72n9FFHg FahtH1Wku6P+MdcCQbysPFGEfthDCCyxkyteU/eXVXRrc4qZ62jH2d4kwh5Oby1wxNQR qOlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690893944; x=1691498744; 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:in-reply-to:references:mime-version :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=FGogV2pypbEz5HMCN3LosNizs4gtO0cP4bIax3W+yBY=; b=Yptq9Z6crHNm6nVxXgHjh3c3rNMkyXQdOUp2GJ9bzyqvxzVMyagfcBewU5EKZ5wbR7 /tJheWxUZ00ECAwfOLch4D6Dt2cSC7GKfFGI1is9UAA7k1KoCwoWbiUoL88wNz4xRUEY 2ASqyjsBnJVql/VyH+bjvqfUmIpYxsOZmenr+olBAHJToeGHMnbWc4ozUag8jmK3PO+Y 5hk25j8ZA5to++LYp9mJg0TvLTGInYJ5eSbPy0XvmmF9txpZbv1s/NvWn7AG7lwrIAEu bqZj1B Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ABy/qLZQ9cym1xYIj+31uw18RxrNHDojN94yvPff3QFF8UEHH6s45Bwy 3W51ginLWDCso7KGca/seg8= X-Google-Smtp-Source: APBJJlG96sjSn0DizYR5LBVT8FqD9aKQAmo82ZX10K2x54vrIjfoHKmu6EWGJIU9VvPZ3imyiGVckg== X-Received: by 2002:a05:6870:b507:b0:1bb:9737:5ace with SMTP id v7-20020a056870b50700b001bb97375acemr16088303oap.26.1690893944434; Tue, 01 Aug 2023 05:45:44 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:6489:b0:1ba:cc9b:59e3 with SMTP id cz9-20020a056870648900b001bacc9b59e3ls1071551oab.1.-pod-prod-03-us; Tue, 01 Aug 2023 05:45:41 -0700 (PDT) X-Received: by 2002:a05:6870:f718:b0:1b7:16f3:d37f with SMTP id ej24-20020a056870f71800b001b716f3d37fmr16510443oab.17.1690893941585; Tue, 01 Aug 2023 05:45:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690893941; cv=none; d=google.com; s=arc-20160816; b=W1kI82DbK1/dt8ihoc6WdOd6mHi7zoQEvMEf6+aB1mtGOer9LLhnbXicVM+CIzzZCr 9y4QQ4H2uzThn/ykTAb6flZmXINmTzm/MnvSCI3NUGuIZKEFc5y9Y7LLtaA549QzU8E0 wFvA2TP21kGPK4MaAmu8x57Oi/bjQ1SpctE9+C3dQhwS/QNN3e06mJ6j9w9MFrRFlssL OqAom2RDbNtlHQmaLpsTOJ8KMe0Zsg1pKBZa3wtJze5lP5YuCiaLr8Re5w9lwQueAXYv xUdnR96gggHk5RGjmAkZ3+P3bxc6wCjD3EBuGQ8wVQgLmWmNjpH3jNcUhyuQfxJNAiUX awtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=jcx3CB1dS81qfzXwX0XahRgmDAjhaR+yaRBnOheEpvc=; fh=7hVwPa9wYt5eiBYfSHHLDYQlAmXCnXdxB8L+IfejXog=; b=ytxo6/hCq9rLdp9GOpSOtvzJEGyG2t3HXBBazr+03Er2AZ5oLg8HCthv6LwJjvyvyd 2r+8etjz0u2riqRk3vaQcpAhs6odKNMadaZSIsZ1OUnGPVpFlJbtLesZ8ZUZfHboLrgQ XdWgknojqpngc+VDfaTGoekECGkb6/Zd2HRsYOwTrbF9Z+n3yaNwoZfMDiOQ1SsZ57Rd u62DPyPlCzRoutKmdMVR2Qs5KsH7g4oeHGItB3H300ueEHwhQp6nhAZszOtzDrABRM9P L4DsoB7MhODd0TL+OvxZya4RxFz/dU0SLhzY2phcYehS+BfbmMg147WG1dJIV3Zf6NMi dx3Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=gnsP2tFV; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b2d as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com. [2607:f8b0:4864:20::b2d]) by gmr-mx.google.com with ESMTPS id k20-20020a056870819400b001bb4e51a1e9si963202oae.3.2023.08.01.05.45.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Aug 2023 05:45:41 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b2d as permitted sender) client-ip=2607:f8b0:4864:20::b2d; Original-Received: by mail-yb1-xb2d.google.com with SMTP id 3f1490d57ef6-d29a5f7dc74so4137177276.3 for ; Tue, 01 Aug 2023 05:45:41 -0700 (PDT) X-Received: by 2002:a25:216:0:b0:d08:5632:6b78 with SMTP id 22-20020a250216000000b00d0856326b78mr12807997ybc.47.1690893938990; Tue, 01 Aug 2023 05:45:38 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=gnsP2tFV; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b2d as permitted sender) smtp.mailfrom=melroch-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:33003 Archived-At: --00000000000096244c0601dbec10 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Den m=C3=A5n 31 juli 2023 05:02Sylvain Hubert skrev= : > We can highlight text with {.mark} > > pandoc -o main.docx <<<'aaa [bbb]{.mark} ccc' > > but it's always in light yellow. Can we customize the color? > If I'm not mdepends on the output format. In HTML-based formats you can use custom CSS to style `mark` elements however you like: ``````css mark { color: COLOR } `````` where COLOR is a CSS color code like `#00ff00` or any CSS color name https://www.w3.org/wiki/CSS/Properties/color/keywords In LaTeX since it uses the `\hl` command from the soul package you can use the `\sethlcolor{COLORNAME}` somewhere early, preferably in the preamble, but a raw latex block at the top of the document will probably do. Since the default latex template loads xcolor with the `dvipsnames`, `svgnames` and `x11names` named color sets COLORNAME can be any color from those sets as shown in section 4 of the xcolor manual http://mirrors.ctan.org/macros/latex/contrib/xcolor/xcolor.pdf (I *think* x11names wins where it and svgnames differ, but those differences are fairly minor.) I'm not sure how to do it in other formats, but those two at least will cover most to-PDF use cases. --=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/msgid/pandoc-discuss/e0ab28c3-471e-4bc7-9957-= c5660ea1a20cn%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/CADAJKhAWyEmosxMExPeAhCSub%2BUsX2kJ0gWVH0zvY%2B0jb42ZKw%40ma= il.gmail.com. --00000000000096244c0601dbec10 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Den m=C3=A5n 31 juli 2023 05:02Sylvain Hubert <champigno= om-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
We can = highlight text with {.mark}

=C2=A0 =C2=A0 pandoc -o main= .docx <<<'aaa [bbb]{.mark} ccc'

but it's always in light yellow. Can we customize the color?

If I&#= 39;m not mdepends on the output format. In HTML-based formats you can use c= ustom CSS to style `mark` elements however you like:

``````css
mark { color:= COLOR }
``````

where COLOR is a CSS color code like `#00ff00` or any CSS co= lor name


=C2=A0In LaTeX since it uses the `\hl` command from the soul = package you can use the `\sethlcolor{COLORNAME}` somewhere early, preferabl= y in the preamble, but a raw latex block at the top of the document will pr= obably do.
Since the default latex template loads xc= olor with the `dvipsnames`, `svgnames` and `x11names` named color sets COLO= RNAME can be any color from those sets as shown in section 4 of the xcolor = manual


(I *think* x11names wins where it and svgname= s differ, but those differences are fairly minor.)
<= br>
I'm not sure how to do it in other formats, = but those two at least will cover most to-PDF use cases.

--
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 pandoc-discuss+unsubscribe@goo= glegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e= 0ab28c3-471e-4bc7-9957-c5660ea1a20cn%40googlegroups.com.

--
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/CADAJKhAWyEmosxMExPeAhCSub%2BUsX2kJ0g= WVH0zvY%2B0jb42ZKw%40mail.gmail.com.
--00000000000096244c0601dbec10--