From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/11955 Path: news.gmane.org!not-for-mail From: nkalvi Newsgroups: gmane.text.pandoc Subject: Re: ePub with custom CSS that places images Date: Sun, 8 Feb 2015 10:04:13 -0800 (PST) Message-ID: <2be53ac8-9b60-4050-8093-c51a24ff99a3@googlegroups.com> References: <54D792F6.2070800@web.de> <54D7A1A1.6090303@web.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_90_1144014711.1423418653808" X-Trace: ger.gmane.org 1423418660 23719 80.91.229.3 (8 Feb 2015 18:04:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Feb 2015 18:04:20 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBC423VNOQYLBBHWK32TAKGQEMZLPW2Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Feb 08 19:04:16 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vc0-f183.google.com ([209.85.220.183]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YKWDP-0007ej-Fd for gtp-pandoc-discuss@m.gmane.org; Sun, 08 Feb 2015 19:04:15 +0100 Original-Received: by mail-vc0-f183.google.com with SMTP id kv7sf5347497vcb.0 for ; Sun, 08 Feb 2015 10:04:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=ykpz3LZvTdYFIWqCixKnL/xQPg4s+qltSl6cq6gGvaA=; b=ACilOwmwufkkSEK5hP1Uy2UQYDiP4tkWi29aNDzw59F1rf7nCxyxNMEOcb/IT0W6A9 dduVcquxQoYQ1e3/hACcUsGPtQgMxXTfMMDrLW34qEV6QFxhnAuY6J+4oiRItg3HQd+O D427KtxSyAlnqFBjONt5PjZGOKMMa3FKtu5GYlldHraxVyIfaBLcJyX91qkIFrZmgfoM 8GgexCRdBVJBsNRVnr3QE8uMfZrcSrJT+xuwRZ6mzUNMn0JRnwxB38klv5+bVfhqkW0U ySDFlHmdzqBC1OuzU0K6vgPSMO9LdSyHucf0+3Ynd1loBwCcoxBOmtvcF8S4R/adgG2F 04XA== X-Received: by 10.182.181.69 with SMTP id du5mr68051obc.23.1423418654799; Sun, 08 Feb 2015 10:04:14 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.182.221.169 with SMTP id qf9ls685284obc.55.gmail; Sun, 08 Feb 2015 10:04:14 -0800 (PST) X-Received: by 10.182.46.200 with SMTP id x8mr71141obm.9.1423418654168; Sun, 08 Feb 2015 10:04:14 -0800 (PST) In-Reply-To: <54D7A1A1.6090303-S0/GAf8tV78@public.gmane.org> X-Original-Sender: kana-a9OgVwmGd9+sTnJN9+BGXg@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.org gmane.text.pandoc:11955 Archived-At: ------=_Part_90_1144014711.1423418653808 Content-Type: multipart/alternative; boundary="----=_Part_91_1034156186.1423418653808" ------=_Part_91_1034156186.1423418653808 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sure - sorry for not being clear. I'm using images in chapter headings=20 .=20 To achieve this with Pandoc, I include the image in the markdown source
![chapter heading mark](vignette.png)
And then referencing it from the custom css (specified on pandoc's command= =20 line) div.section.level1 > h1 { font-size: 2em; padding-bottom: 60px; text-align: center; background: url('media/file0.png') no-repeat bottom center; } On Sunday, February 8, 2015 at 12:49:26 PM UTC-5, ousia wrote: > > On 02/08/2015 05:56 PM, nkalvi wrote:=20 > > Thanks for the suggestion.=20 > >=20 > > I do have a workaround that's not elegant: in the markdown file include= =20 > > the images inside a div with display set to none. This way the images= =20 > > get copied so they will be available in the css (not elegant because th= e=20 > > images get renamed when copied).=20 > >=20 > > F.ex. image1.png included this way will be copied as media/file0.png= =20 > > inside the ePub.=20 > >=20 > > That's why I'm looking for a 'proper' solution :)=20 > > Sorry, but I don=E2=80=99t understand what are you trying to achieve.=20 > > It might be curiosity, but it may also help others to help you.=20 > > Could you describe what you are trying to do? (Again, there might be a=20 > simpler way to solve things.)=20 > > > Pablo=20 > --=20 > http://www.ousia.tk=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 e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/2be53ac8-9b60-4050-8093-c51a24ff99a3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_91_1034156186.1423418653808 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Sure - sorry for not being clear.

I'm u= sing images in chapter headings

To achieve= this with Pandoc, I include the image in the markdown source
<div class=3D"hiddengraphic">
![chapter heading mark](vignette.png)
</div>

And then referencing it from the custom css = (specified on pandoc's command line)

div.se= ction.level1 = > h1 {
 font
-size: 2em;
&nb= sp;padding
= -bottom: 60px;

 text
-align: center;
 background
: url(<= /span>'media/file= 0.png') no-repeat bottom center;
}

=

On Sunday, February 8, 2015 at 12:49:26 PM UTC-5, ousia wrot= e:
On 02/08/2015 05:56 PM, nkal= vi wrote:
> Thanks for the suggestion.=20
>=20
> I do have a workaround that's not elegant: in the markdown file in= clude
> the images inside a div with display set to none. This way the ima= ges
> get copied so they will be available in the css (not elegant becau= se the
> images get renamed when copied).
>=20
> F.ex.  image1.png included this way will be copied as media/f= ile0.png
> inside the ePub.
>=20
> That's why I'm looking for a 'proper' solution :)

Sorry, but I don=E2=80=99t understand what are you trying to achieve.

It might be curiosity, but it may also help others to help you.

Could you describe what you are trying to do? (Again, there might be a
simpler way to solve things.)


Pablo
--=20
http://www.ousia.tk

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/2be53ac8-9b60-4050-8093-c51a24ff99a3%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_91_1034156186.1423418653808-- ------=_Part_90_1144014711.1423418653808--