From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18049 Path: news.gmane.org!.POSTED!not-for-mail From: Mohan Sriram Nayaka Newsgroups: gmane.text.pandoc Subject: Re: Setting CSS classes for paragraphs generated from LaTeX Date: Mon, 21 Aug 2017 10:59:02 +0530 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113ad434c3282b05573cc119" X-Trace: blaine.gmane.org 1503293346 5377 195.159.176.226 (21 Aug 2017 05:29:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 Aug 2017 05:29:06 +0000 (UTC) To: James Austin , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDJ5PMX3UUGRBIG75HGAKGQEHFWPCGA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Aug 21 07:29:00 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-it0-f63.google.com ([209.85.214.63]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djfGk-00016O-Qs for gtp-pandoc-discuss@m.gmane.org; Mon, 21 Aug 2017 07:28:59 +0200 Original-Received: by mail-it0-f63.google.com with SMTP id o19sf8635192ito.1 for ; Sun, 20 Aug 2017 22:29:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1503293345; cv=pass; d=google.com; s=arc-20160816; b=rP2omvwxQwYFC9LG70+aBIv97ovnKyL0sfEWYzHFlT8EoO6t3ogH3zdu2A1z1COqrE drDIs7gljZUiGoZQQSxVBttD8SiWpZkBeN1Ol7LCocpgBy7JSw+BpQyQfdh4zDxDBTLx yDtsZsR/CMV2SiePRA7PCbnjt1dkLQW2HfeQroBPfc7JRWqV9I8kqhV1Mk8nKeLVXL+l oQVMCu7+NQzwy19kzG57QhbtRydcf9zDaT6AoEgaKN0qWy79m7mmK5vTzGYhWaj/FiHs 6CO/DR5Fz6jftqu3tbPyAgkyd98aM3RAx1M3qp3ic/1kQJB+YQuCjScBZjq0UD02PS2J 2IrA== 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:references:in-reply-to:mime-version:arc-authentication-results :arc-message-signature:sender:dkim-signature:dkim-signature :arc-authentication-results; bh=zQh1GuJ6ENsllgxf36PdH5nAC0IYpOKuMskMo8lOhR4=; b=t/u/AU25js+L8XM8owN7bQ/Ax1hcR4X7fvRBVoPsao4j5OS9JGscgtWw6vaMjuh7oV rTcKsPBweLn8/PjPaKjJG5XlM3yREcdV9mL6Cg9KXInadoS6ICKpxwkbSfQb95J3uLQe oL6CpGK1rm6DbkzwAJaqGNlGc3xlPKsOJ6ESW2Oeh9PiKGsBKPSET01x5uLCahpt38Zu OgSVuUFLCOzPeFHP+dmshnwcpmdizk+NTHs0UiPLRGjQ/ljGH3drKf6LLV+6I1OB6Ub3 cxajNpD84AU/0SreOO4JS8VUBFaUGuyKsxPF8cJYyMoRk1/T/cOmfKXmvcUlSKyVwfmq OJlQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dogFBpTy; spf=pass (google.com: domain of mohansn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4003:c06::234 as permitted sender) smtp.mailfrom=mohansn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=NONE 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:in-reply-to:references: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=zQh1GuJ6ENsllgxf36PdH5nAC0IYpOKuMskMo8lOhR4=; b=Fpecc7YZVkHIjVynFPV1TaksoNf7uWk7mNyDpwKRvU0QQieuXHVwaKDDnlvZ1d5I2o ECg0oupfMQrTqleHv7I6EBLHvRcmfaRW53ELbSxJe/a+q7BrDbPKf/vbEH/ez43VE4W+ OydosuCo8f44UNxxUVDpWkFKCLNEeJCWFkIq0PGaKHj0hc8fq3vRJeXda4R+fEKInOx9 Yh0ASyaLNJvXOgFoNanspRDq4ykn86t7UH3sA8n00764CPLt3XPqZpPlB/5REw/JkLhB tHEqsBVbbKdJmfyq7EwI0RXkDz7X1ncWBnMaXwbhIdFpHa6eqhcLy204EBuWy7KWRmgI HHDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references: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=zQh1GuJ6ENsllgxf36PdH5nAC0IYpOKuMskMo8lOhR4=; b=VCPu0/xYN0XpmWW+3FSK4kWjAW3pwgbByc+terd4mgOT2kGUpg0R6t+0FVCMmnxJVG 7+R1NmiaR3f2m9L/UY+/5xGDXy+OxtudD8hl6USo1e7ek4p+WzPLLBq2InA4w7D2ZfNO DdmS7e+HB6phL0J+p2ZFDpOQnf/AygI55ihWqV06jJTNEoYpuJIIeMo//SK82PmT3C88 VUspdwWAjPHGPnXRg2kEcdR+v1DqPgFkWRMX9xkH3ZHAu8G8fa9VA9SdMvU1luofzhLw ApZRokp0Py+8I8rmQ2ELwhocZX/333n/0XcJt+s/XehH8vuYZRHusUqfIUk2IY8JchC6 OV+A== 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:in-reply-to:references: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=zQh1GuJ6ENsllgxf36PdH5nAC0IYpOKuMskMo8lOhR4=; b=Rv+9ZGGqHB4t2HeZFcm1SBzsK1VSLpES335iTJD6/eJZmhIBmALnDUTK5fQ+Aas3K4 FRkiSRhnuSqJFl6/alvYtTIoKXHFK3GOx7/gWBI1azfF67xvrW9OZ5FXeEa11q70R0/F 5spK+5uDgFwpfe87NzDsbJo3axbRs2b+FCA/CbziJgAh/2VFKiWRLwI4tEJi2QMwvKFC e2cSSBbi0QEjblzGTlz9vfpCnglxcZoCJzruF4RdRvu6g792g6D3jWIfrUEteQdyar8p KkJH/gOPDnKXxqho3j+C+iaHOa0f6FM7Umfe9VYofKfla3u12STwDCwmU9ZLh+2MlVND fbuw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AHYfb5hFLHl86P4FDkBSG32Zv23zvh+Osa4i1zaTdr4C9nuD7sF+yO+R MndAxuhYGW8OmQ== X-Received: by 10.36.116.12 with SMTP id o12mr271960itc.12.1503293345357; Sun, 20 Aug 2017 22:29:05 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.141.4 with SMTP id p4ls8187257iod.30.gmail; Sun, 20 Aug 2017 22:29:04 -0700 (PDT) X-Received: by 10.129.222.2 with SMTP id k2mr5853148ywj.61.1503293344492; Sun, 20 Aug 2017 22:29:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503293344; cv=none; d=google.com; s=arc-20160816; b=Aks7CwZ7Mm1npoeoWVr4dpEWmaVnyRfH74J+Jpe4KAFDlWNc2C5DyqP3qEmZuxbEBC JnEOJSwCSx2TdPxynrKRs+jBlra0yHrWFmSinxCeZuelZBx6WNjsuNprgsvwEqCpgdIf RqdZNc5obNzaHR64PAoZMI6mzrNsivsRdJv5iNK4vFIhI0NeSVZw42rCMWtGNxxjSUxa OBOrifsFZ4CHwajH34SGPcLhwAUrHr0LPaszJdcYafOW+PRHGzM57Tq+W9zUW+ItwzAN h64gGrzSFaUizfbvjr6yJN2mMHNauTQ0kRYyevMACjySBg/cEXV/1soMqdWwZxKp6ZIN C1ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=roQVtFRlnh9smtZh2qiPg36mOei47KSLaJV0YjlY8eU=; b=KpQ7j3kEyiGWyKeatQZfzxf2J5NTYUK7X+wetxplcmAw81bWlAyGLk51gyeY0SXEPe +hqwv45sFQVgBZFCh7zjILpOCUc+ZjO5xb5n5KLZpDk2Hj4X+Eh5lHvFSj3DmaCR+4y9 edPRItzyLA3Zf64qKi/HOig/zJ+MVjsxmDx3tShsMAiF4Aj2bj6xfFTz4Svph9E+RGZV KhsOyA+qAsh4C9YIaoBD7TGpqU6I94Nw2LHiEgk8F2VcCYd1MGGI+VlUWP0/IPKtKphc 5FmR+m+uBq3opfPz5cM7tTjR4lL6SiHhrS0xrNeUkWIbv9B8S+R/Fs7bEZf1Dul0+e9B BgkA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dogFBpTy; spf=pass (google.com: domain of mohansn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4003:c06::234 as permitted sender) smtp.mailfrom=mohansn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Original-Received: from mail-oi0-x234.google.com (mail-oi0-x234.google.com. [2607:f8b0:4003:c06::234]) by gmr-mx.google.com with ESMTPS id y126si340830itc.1.2017.08.20.22.29.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Aug 2017 22:29:04 -0700 (PDT) Received-SPF: pass (google.com: domain of mohansn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4003:c06::234 as permitted sender) client-ip=2607:f8b0:4003:c06::234; Original-Received: by mail-oi0-x234.google.com with SMTP id j144so16417429oib.1 for ; Sun, 20 Aug 2017 22:29:04 -0700 (PDT) X-Received: by 10.202.87.77 with SMTP id l74mr1292569oib.292.1503293343998; Sun, 20 Aug 2017 22:29:03 -0700 (PDT) Original-Received: by 10.202.175.136 with HTTP; Sun, 20 Aug 2017 22:29:02 -0700 (PDT) Original-Received: by 10.202.175.136 with HTTP; Sun, 20 Aug 2017 22:29:02 -0700 (PDT) In-Reply-To: X-Original-Sender: mohansn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dogFBpTy; spf=pass (google.com: domain of mohansn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4003:c06::234 as permitted sender) smtp.mailfrom=mohansn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=NONE 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.org gmane.text.pandoc:18049 Archived-At: --001a113ad434c3282b05573cc119 Content-Type: text/plain; charset="UTF-8" Thanks, James. I only want to do this for specific paragraphs. Hence, I need to mark those paragraphs with their own class in LaTeX. I tried converting to HTML first (using pandoc), then editing the HTML to add classes as necessary, and then converting to epub. The classes got removed when converting to epub :( Thoughts? Thanks, Mohan S Nayaka On Aug 21, 2017 2:21 AM, "James Austin" wrote: > Hi Mohan > do this?On 20/08/2017 20:05, Mohan Sriram Nayaka wrote: > > > I am generating an ebook (epub) from Latex source (plain PDFLatex, nothing > fancy). > How do I mark certain paragraphs to be of a specific CSS class? > I want to put some paragraphs in boxes to highlight them and that is why I > want to do this? > > I think you need to do the following: > p > {border: > I have only done this with Markdown to HTML though, not sure if you'll get > the same effect with your E-Book. > > HTH > James > > I am sorry if this is a newbie question. > > Thanks, > Mohan S N > > > -- > 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 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/ms > gid/pandoc-discuss/ae7e74ca-53da-420c-a2b2-1319cc880230%40googlegroups.com > > . > For more options, visit https://groups.google.com/d/optout. > > > -- 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 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/CAMzxfDn8BKXhrvPzgW%2BjDxfiMMAMioJw7Xd0wQywdESFO%3DUHKQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. --001a113ad434c3282b05573cc119 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, James.
I only want to do this fo= r specific paragraphs.=C2=A0 Hence, I need to mark those paragraphs with th= eir own class in LaTeX.

= I tried converting to HTML first (using pandoc), then editing the HTML to a= dd classes as necessary, and then converting to epub. The classes got remov= ed when converting to epub :(

Thoughts?

Thanks,<= /div>
Mohan S Nayaka


On Aug 21, 2017= 2:21 AM, "James Austin" <james.londonsw15-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
=20 =20 =20

Hi Mohan

do this?On 20/08/2017 20:05, Mohan Sriram Nayaka wrote:

I am generating an ebook (epub) from Latex source (plain PDFLatex, nothing fancy).
How do I mark certain paragraphs to be of a specific CSS class?
I want to put some paragraphs in boxes to highlight them and that is why I want to do this?

I think you need to do the following:
p
{border:<your colour;}

I have only done this with Markdown to HTML though, not sure if you'll get the same effect with your E-Book.

HTH
James
I am sorry if this is a newbie question.

Thanks,
Mohan S N


--
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@googlegroups.c= om.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm.
To view this discussion on the web visit
= https://groups.google.com/d/msgid/pandoc-discuss/ae7e74ca-53da-42= 0c-a2b2-1319cc880230%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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://gro= ups.google.com/d/msgid/pandoc-discuss/CAMzxfDn8BKXhrvPzgW%2BjDxfiMMAMioJw7X= d0wQywdESFO%3DUHKQ%40mail.gmail.com.
For more options, visit http= s://groups.google.com/d/optout.
--001a113ad434c3282b05573cc119--