From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28589 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: Mon, 14 Jun 2021 22:07:30 +0200 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e01aa705c4bf68e8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9076"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBDXOT2DAMGQE64LZJ6Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jun 14 22:07:44 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f186.google.com ([209.85.208.186]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lsss4-00029t-L0 for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 14 Jun 2021 22:07:44 +0200 Original-Received: by mail-lj1-f186.google.com with SMTP id m11-20020a2e580b0000b0290152246e1297sf4419371ljb.13 for ; Mon, 14 Jun 2021 13:07:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623701264; cv=pass; d=google.com; s=arc-20160816; b=xau8tJdGIywi3lzh2bW6npLIRA+gyBojxdwcwnDBRg6pwwYLxtoDPEGt7eQm6+Xud8 Da8cu75ouRWwaXasmziNyksCaNwXvCSwQU4YjVlBYrtaFayazJXY5ZAjx1O5p4fLCkYq Mdji1bhD7vXBdRj/3Tp/7JsoGOKV/auBq/qMSY1bGkCrK3RsEE3KYJyxBxaGDGx5Ha68 7yMkGEyN+eGJoFqPfQmqirdyTAGQRRXzPKOKgXsuj4w16rddh4yQrHOXPdbJCYm6D6lc +Megp6IpQ1HiiAvDVwD7w4mi5o/aOgWwPvjbu9JkWUtkLjmckVDfkehraWP3i9JxPOeX anlw== 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=Uv7ePjy53u4+O60Moc8WEnpHPpmUTdiSI2Ffx0J42Eo=; b=dqJvLFd9YSH8EvlP+d4+tO30vh7euTMwH4NeeNBByzvfteXSyHTr+7enJ+1qXv5L0u RliyrojBuPH2fCm5I71M4EiFsv8kM7qnGYHij/mg+XeYY/xkdcKmAbp5mHgyjdHBV0Qc YJJG098qhRUUz/EsOl1pN7EEqL/Q1IMxYVULo6S3KQJLD4m8kOS4RSnpQky52JLX/l8M Sxzr0nBC4UIe/Z4KPcwVf6nzo7H++l6MiHYoAIkSOYi5l7jzqjzJxt1whGHCpGSw3xwG YVrjhTmnwDea9IBMnyiBvClufo8fgHfMzgNNqhw/eBY4b6Z7WSTRF1A9coipLiXQXwE2 7yOA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NIv+FoP2; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::235 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=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject: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=Uv7ePjy53u4+O60Moc8WEnpHPpmUTdiSI2Ffx0J42Eo=; b=R+ahbFyrPznqNK3mdHGagzo04mzPdy8Bs4nBa2zCpiM1X+judqgSbAVBhixVO1oc+6 GyvHDm+qlg6kd2uiw5ZLMZnwp6wvWHgYTHu0XYZ+xq2yn6iPHWe+74FLh24ABVLcHvMk lwS7nFrLjl2V5+alS4pH2p0xAmwnd58ej8e+PvcI+ydGbcEKIUiByKrxotYjAnrP9/dM 2M+vCOXwW9SAajYFbsU36wzb+iZrfdI3JZpSgDlH+oKFpkiqVSxaVGfbjXoLyrWkmyv/ H7ZPqxi1W2uTg4mljmQSOoLhh/RtOuDr0xKVA/1W9cTaE/qbZn6ceYoZFuTJSNcfBYms AUAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject: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=Uv7ePjy53u4+O60Moc8WEnpHPpmUTdiSI2Ffx0J42Eo=; b=Ig092dA+yQYykfvxUpZfFrKJe28SoxYEMeb1iIsacOizMlseq/721m6g/+0LG4fp0l Z81xV7e8/wFhS4ktE53Bq0Ttg2NrhgJBMhcQx1WEEQq5/a3a6Ud7xyv/gaMHS+ueA+vP VZYlf9xUxEvd9NFPXaT8RbTcoQUdYO01NWsRRzGMVAfAus6ATgSQlHr4f3q65p6fwrDz xQnQkqTpPVNt2KXZY2u093xjLArgY9Nu+fdNBgKqLFO5uwnhV3TnqkQoH8uBHOZQkoZ9 qmXeHWl0i3QhThqioSSXfll1olRZRO0iyzADFw9GovuTkxvcpm9rz75MlBDvUz8Uzgbz yTYQ== 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:from :date:message-id:subject: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=Uv7ePjy53u4+O60Moc8WEnpHPpmUTdiSI2Ffx0J42Eo=; b=nv+/Ab7UuO2SJeob4P/w74xeFspHKCWFeRhhSXe3720CESrebDGcEHQU7txX9ey1wd Io9CVBVT+e9WMDSD5/wLbPxJT4wkQX6rO83ZAGDGxTtp0zW8h6CAVY48Zyu6ClUiQU7Y aYxuatsl4ekdFtFjL0sOqGEu1dSZoeDQgH5WwXgmqy9zeBOcB6qzae0XeigMsgGq7ZVu Y4OsQAxoPp2KLZ3NIxBTK4NgjzzDZnwCuSkZLzTZfTBzBQv2F5Ly7cjDZ04ubsENShva CZQk1TEifDWet7RDXNdOcdu6xwnogEwYNZBh7lROYhNFZufUwxfCCk1/5PrDqjfFNxvi 4xyA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531nRZmTGvvQ767eGIiRaBJ8mT2f9FEO5JJiVONTMTBgg5JQZiLl ZacU/pPa6byA+tiudnf1rCo= X-Google-Smtp-Source: ABdhPJy2V1nmKrWYwUyv62vJMzcnpTTn1XH5yx37W1PV5/lEHo3aIfEmcErz5SlJ/FdRHP7atcREIA== X-Received: by 2002:a05:6512:324b:: with SMTP id c11mr9158954lfr.623.1623701264199; Mon, 14 Jun 2021 13:07:44 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:3f94:: with SMTP id x20ls4376220lfa.0.gmail; Mon, 14 Jun 2021 13:07:41 -0700 (PDT) X-Received: by 2002:a19:f504:: with SMTP id j4mr13656263lfb.242.1623701261261; Mon, 14 Jun 2021 13:07:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623701261; cv=none; d=google.com; s=arc-20160816; b=iy5bOkXxDgsk3apJfGhYlyVEZGvxiBU8pv34ZLeqHi2eN1PZSLSRKeR6YttQKDfFBt RDN7y8cTvNyHL7Iq4uNv8NSAlEBG6JV/yW/i2ZVXzXCg9Hjt1WSOsUvA3Dtr6/rtkkrW MdiDWu4qNhVaq2b4O22NAjL4cRWlyS7BEAau6liUJbI1rRurO4QNtS1Q9lVyyjyk0JuW GTZzcuAL+N4Un/F1arpSTZWneqCDSe0Z/rFQEXK9wcJs1Lbe5Z2OLfBlJF/oO/AfHCO6 4jyEgswpJoWLn7CBPYSXNHPel4OXVD4qOEpeajYGl8TAsACOBKZU0r6Urxm1ruWtevev T/Dg== 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=8bTgeZh/VZlHGWJzqtlHRbYAyjjlTdfW34R7sKCvm/k=; b=0NOZzxSKlBnLXicb8tlYmBiYSYYi7oUqCdYHYkKERfHTZmpdCYfOoV0jHWOCNGel6s JUxb5anA6TZ3XOtTkIlnTBIMolvYtEeYWle6sEEG/5zsfrs/NB+IKwZVi+3fzWw9myMZ FmbBOreNXM8Bo5sJ9SBvFntAqIIp3KnPuq/lIC/lUhEh1U/54z0mP5nJWg0O3XgKlTDK bPzbw0uiii2mJvd+S+a7auI+MvBQai4bisqLoHMBr3wu32yXHKLltFG9QXYaxajie4e+ PMOYsVlsGSibF2aVXkydpFH3+Xy1EhIOuA4qZE2WCBVq0z/kG3bidsHR17DiO4WkmAJc Qp0Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NIv+FoP2; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::235 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-lj1-x235.google.com (mail-lj1-x235.google.com. [2a00:1450:4864:20::235]) by gmr-mx.google.com with ESMTPS id j2si10098lfe.8.2021.06.14.13.07.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Jun 2021 13:07:41 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::235 as permitted sender) client-ip=2a00:1450:4864:20::235; Original-Received: by mail-lj1-x235.google.com with SMTP id b37so5782397ljr.13 for ; Mon, 14 Jun 2021 13:07:41 -0700 (PDT) X-Received: by 2002:a05:651c:10b9:: with SMTP id k25mr15007977ljn.256.1623701260866; Mon, 14 Jun 2021 13:07:40 -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=20161025 header.b=NIv+FoP2; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::235 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:28589 Archived-At: --000000000000e01aa705c4bf68e8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Did you by any chance create a paragraph style rather than a character style? Custom-style spans need character styles; divs need paragraph styles= . 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 fin= d > any examples of how to do it. > > I know that I have to use --reference-doc=3Dcustom=3Dcustom-reference.odt= 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 marke= d > up with it show up in italics in the ODT output. Should this markdown wo= rk? > > 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%3D= SfXr4qgA%2BVp4AQZ2KsnvEQwTctf7A%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/CADAJKhCZ8%3DEVj_%3DVikW2MawA%2BQwz0-0c7z_bJgf3DTXHNRKcnw%40= mail.gmail.com. --000000000000e01aa705c4bf68e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Did you by any chance create a paragraph style rather tha= n a character style? Custom-style spans need character styles; divs need pa= ragraph 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 implemented for ODT,= but I can't find any examples of how to do it.

I know th= at I have to use --reference-doc=3Dcustom=3Dcustom= -reference.odt and I know how to produce cu= stom-reference.odt using
pandoc -o custom-referenc= e.odt --print-default-data-file reference.odt
and I= know how to create the custom styles in custom-re= ference.odt, but I can't figure out how to put the pieces togeth= er.

I want to have, for instance, a custom style= =C2=A0name that makes things marked up with it show up in italics in the OD= T output.=C2=A0 Should this markdown work?
This sen= tence includes a name: [J. Random User]{custom-style=3D"name"}.
It doesn't seem to work.
--
=

--
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/CAN1EhV8K3qkd4XpHY7T5%3DSfXr4qgA%2BVp4AQZ2KsnvEQwTctf7A%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://g= roups.google.com/d/msgid/pandoc-discuss/CADAJKhCZ8%3DEVj_%3DVikW2MawA%2BQwz= 0-0c7z_bJgf3DTXHNRKcnw%40mail.gmail.com.
--000000000000e01aa705c4bf68e8--