From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28592 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Can anyone provide a simple example of how to use custom styles with ODT output? Date: Tue, 15 Jun 2021 09:39:47 +0200 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a7506105c4c91427" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13242"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBT5SUGDAMGQEFCFZAQQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jun 15 09:40:01 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f61.google.com ([209.85.128.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lt3g1-0003C7-1Z for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 15 Jun 2021 09:40:01 +0200 Original-Received: by mail-wm1-f61.google.com with SMTP id m23-20020a05600c3b17b02901b3e8a9db8esf2961425wms.6 for ; Tue, 15 Jun 2021 00:40:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623742800; cv=pass; d=google.com; s=arc-20160816; b=pyp5eMqeC/YvHE0fsuTi02f8VjrDzE2+grLKBrWp4zrc9G5azlXWFQ7RV6R/nY2rPK 0CZQKsLC7wpdTxkxV3GSdCtFCCypgilTi8XOhWB7CvlUFSwClSqLPiBkqL7N08+bPjbI 8hTVbrT4No09pSc0j3NiAIrQf7gh/Dw7CfpmkC6JOscAYKhbRyn1ef1iUuN16Dbw0rZH eFO3ggUObpNYQiHwQk1JDN+AwURaEnhLzm1UFOsbUccNBWPTHCsUfJ6LFyLirmYzYVcL 43gHGqb1ZERa7ncAW7vUB0G+ilJUuIA9jAm9NgpNYiX3enH72i9KoPEIdfGU5CvP/vsW 2Qgg== 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:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:sender:dkim-signature; bh=3YPeGA2hpT3yOdBU+oBSQqRKxNvsOKXtlzkykTAleew=; b=U43j7wzIHP2I6vKKjHDlhcvouey/XOhgMMwXHZCU89+k/afO6Aue8ex0yaaYhL6fR3 UGvtTwu0J7fvRa4yZoBBTz33A56T+MhBnvY2BMgKHkdgTDzYa0rYTO7cJ1DKhrk58AzC b9RmlbB+w1xvOO/+X3cQBNitfL7a9E2t+gbIqlF0Hd+rRnNcQJGM4U7tSvRFPrskXmqP MXVLWqIMed0a0AfpMNGtiI2uOxM36b6XTRHQNQBTTJIbyzG1g5HjlZxU1uwbbRWA/1st ahYaMctnxh5dPGSoIwBTqpgbqrr62M1b8OWpT+R+gEoTytfJM8UR0WrT/aAzxVWEzDuk xV8g== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.167.53 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:reply-to:from:date :message-id:subject:to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=3YPeGA2hpT3yOdBU+oBSQqRKxNvsOKXtlzkykTAleew=; b=Lm4DYhIvXHf0aHRuh9uCEkEwtLwwv0xyW504qqssttxL+xlUE0lMbDbBtN7LwYk5uL XEGnbk8+cKoslk65iKmomijYLETEDgzjzd/Iy2t8hNw3A4Jfm1i32EsjsE1ns9KBDIbr qCBHD1bRl1CcvEta3dIIdbAskzRDRWGfre2T80ccRR+e/6D+7cbYdmtylM+5BaLaJ1ot fNSFcM1ltpvl2++46G8cAPyBJu3rl6gFcs3IfBo0czTXF2UxPSm41dgz3pSCSCAUSU1e Qj9ndaDMxdBfk+vodxYcukz4woUlofYR9O+Rb5MzHcKjb8fHLoe/8BWWH2zUXHDV+V+D fZ8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to :reply-to:from:date:message-id:subject:to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=3YPeGA2hpT3yOdBU+oBSQqRKxNvsOKXtlzkykTAleew=; b=NyfOINgQUzET++HxdUyBu6zRq4wkENvhZLNGBlADYUS/kz1dDULrlQ2tYC1a7adlNF gYDJtZAH5FMBfQaRFOM2J8oPo4Xz1XfN2zUO7frVBXZBg4iaa7jDmR0eI5PxRy5p/OwF yWXByi529BySmwee8bdMRAJ+vyxoQaNsVJ/RLaieHLRG9LEaNdFoltBOa4PzDUZGLAV9 4WmQaJrLz3eY83YqzO2CpOq0MkwVhlXc34vulnSWUsW56uSXO8DOcdgO2+AP4tTV+/Xg wQpIbwif4FrW69KJQzpALqsmCinrioODlxnf6lrhfVBrfP4eDh8DqHHkAK9KuZeQJnDS T5SA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533nSbl0rKkvNE0WFhvDrOJeyD+2Sc0+kvUbD9q2fY+J4EsIriJU jI3s/ENEAGVVzdLOLTHefSE= X-Google-Smtp-Source: ABdhPJwucDAtDVFba+w8IuQX8H1OVC80UNode9Ek06bvsVy1RILF6On4mhY3SZSRDzPvi5eU0cJjGg== X-Received: by 2002:adf:fe86:: with SMTP id l6mr24225761wrr.106.1623742800707; Tue, 15 Jun 2021 00:40:00 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:19d3:: with SMTP id u19ls1023702wmq.3.canary-gmail; Tue, 15 Jun 2021 00:39:58 -0700 (PDT) X-Received: by 2002:a7b:c4da:: with SMTP id g26mr3733865wmk.64.1623742798358; Tue, 15 Jun 2021 00:39:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623742798; cv=none; d=google.com; s=arc-20160816; b=Xrbc6boLqMGotcwAVqpwMwxKNPq5Q9xvkRyBqyjbzI0uh8HWa8unOwlTrv2UH8fd53 nahaiW6Ia1QVuUgThBbJQ9RmuJU6doWXiHLTDIN69Ky+6qRRkLt0CFZCQqCxA0ueNGaH yCxwo5/LcFlV3b2nMe27RHBzXSNO0/kfposaqmv6RfOjcF4zkBcBJT4RLG0CI7eT/dnX RbqsvZPiVrexf6Y5dQBylllfkjBAzbLfDyuKkPc1540eB1+HcztCuiu1GyvsXYDwyTY4 OGG7TZcVPhx5/ISw/FKJUtRTX7A/OcyYKWjYPoQcN7YpZUT6yE2hQToaU3YwTWCR+m+r vblw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version; bh=OjkYxgHOReTux7PRCuM6rcAiT8EhrhL5eb4y7kYXiMk=; b=aPBjx/grJ5d277c1ZDjXGJhsQeT6xJ1H0HW/ccnaamdG54XGFZ6xNffZUiIAz3fCZw kDLGp4CcN7S49S7QMWiX+X8aw/v2LtCmK+VBlVfgcXAimJRc8bdrNosp0gHGsDgcEq+1 /OCzyXCy6924vaZjg5/7BLGAYYKk+22QQn+Qwr82NfFZFz3SPhyXkxCphk0E/StQ8wCS DR5f2m4sP4rRZsuVQ7Kq2r/U2aMx57Ay/y3PxUJpm1mbH+B1UfoIWtzFICQpTB6rqeUT XzZFYP8c4E7qDNT+2+ZLPrUulcjRA+GKam8teJPGDd7ACoI6YJ7s/nhUW7QPaW0vqYlL WMxw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.167.53 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com. [209.85.167.53]) by gmr-mx.google.com with ESMTPS id 76si60487wrc.0.2021.06.15.00.39.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Jun 2021 00:39:58 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.167.53 as permitted sender) client-ip=209.85.167.53; Original-Received: by mail-lf1-f53.google.com with SMTP id p17so25376312lfc.6 for ; Tue, 15 Jun 2021 00:39:58 -0700 (PDT) X-Received: by 2002:a19:c81:: with SMTP id 123mr14920378lfm.313.1623742797530; Tue, 15 Jun 2021 00:39:57 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.167.53 as permitted sender) smtp.mailfrom=melroch-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.io gmane.text.pandoc:28592 Archived-At: --000000000000a7506105c4c91427 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I will try to produce a working reference doc (with LibreOffice) when I get back to my desktop later today and send it. Meanwhile a tip is to use only ASCII letters (no space, digits, punctuation or multibyte chars) in your style names. Den m=C3=A5n 14 juni 2021 22:27T. Kurt Bond skrev: > No, I did create a character style. > > On Mon, Jun 14, 2021 at 4:07 PM BPJ wrote: > >> Did you by any chance create a paragraph style rather than a character >> style? Custom-style spans need character styles; divs need paragraph sty= les. >> >> Den m=C3=A5n 14 juni 2021 21:16T. Kurt Bond skrev: >> >>> This >>> comment says custom styles have been implemented for ODT, but I can't f= ind >>> any examples of how to do it. >>> >>> I know that I have to use --reference-doc=3Dcustom=3Dcustom-reference.o= dt >>> and I know how to produce custom-reference.odt using >>> >>> pandoc -o custom-reference.odt --print-default-data-file reference.odt >>> >>> and I know how to create the custom styles in custom-reference.odt, but >>> I can't figure out how to put the pieces together. >>> >>> I want to have, for instance, a custom style name that makes things >>> marked up with it show up in italics in the ODT output. Should this >>> markdown work? >>> >>> This sentence includes a name: [J. Random User]{custom-style=3D"name"}. >>> >>> It doesn't seem to work. >>> -- >>> T. Kurt Bond, tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, https://tkurtbond.github.io >>> >>> -- >>> 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/CAN1EhV8K3qkd4XpHY7T5%= 3DSfXr4qgA%2BVp4AQZ2KsnvEQwTctf7A%40mail.gmail.com >>> >>> . >>> >> -- >> You received this message because you are subscribed to the Google Group= s >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n >> 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/CADAJKhCZ8%3DEVj_%3DVik= W2MawA%2BQwz0-0c7z_bJgf3DTXHNRKcnw%40mail.gmail.com >> >> . >> > > > -- > T. Kurt Bond, tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, https://tkurtbond.github.io > > -- > 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/CAN1EhV__DCJTc%3DUbC2Mpv= Po5qdmodWwXQkPTf6ws1Eipw9m%2BoA%40mail.gmail.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/CADAJKhDhJpwVtjq75HYziKdywSWxa9LX2WNsH2p%3D_ScKM_0y6A%40mail= .gmail.com. --000000000000a7506105c4c91427 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I will try to produce a working reference doc (with Libre= Office) when I get back to my desktop later today and send it. Meanwhile a = tip is to use only ASCII letters (no space, digits, punctuation or multibyt= e chars) in your style names.


Den m=C3=A5n 14 ju= ni 2021 22:27T. Kurt Bond <tkurtb= ond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
No, I did create a character style.

On Mon, Jun 14, 2021 at 4:07 = PM BPJ <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Did you by any chance create a= paragraph style rather than a character style? Custom-style spans need cha= racter styles; divs need paragraph styles.

Den m=C3=A5n 14 juni 2021 21:16T.= Kurt Bond <tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
This comment says custom styles have been im= plemented for ODT, but I can't find any examples of how to do it.
<= br>
I know that I have to use --reference-doc= =3Dcustom=3Dcustom-reference.odt and I know how to produce custom-reference.odt using
p= andoc -o custom-reference.odt --print-default-data-file reference.odt
and I know how to create the custom styles in custom-reference.odt, but I can't figure out how = to put the pieces together.

I want to have, for in= stance, a custom style=C2=A0name that makes things marked up with it show u= p in italics in the ODT output.=C2=A0 Should this markdown work?
This sentence includes a name: [J. Random User]{custom-= style=3D"name"}.

--
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/CAN1EhV8K3qkd4XpHY7T5%3DSfXr4qgA%2BVp4AQZ2KsnvEQwTctf7A%40ma= il.gmail.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 pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-di= scuss/CADAJKhCZ8%3DEVj_%3DVikW2MawA%2BQwz0-0c7z_bJgf3DTXHNRKcnw%40mail.gmai= l.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 pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-dis= cuss/CAN1EhV__DCJTc%3DUbC2MpvPo5qdmodWwXQkPTf6ws1Eipw9m%2BoA%40mail.gmail.c= om.

--
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://group= s.google.com/d/msgid/pandoc-discuss/CADAJKhDhJpwVtjq75HYziKdywSWxa9LX2WNsH2= p%3D_ScKM_0y6A%40mail.gmail.com.
--000000000000a7506105c4c91427--