From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23586 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Will Simpson Newsgroups: gmane.text.pandoc Subject: Re: Centering images during conversion to ePub Date: Mon, 14 Oct 2019 08:39:09 -0700 (PDT) Message-ID: <8a819b2f-11e0-49e0-89d3-4acf8bed381e@googlegroups.com> References: <35886056-bcfe-46d2-bf13-1abe9624bf90@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5055_1138132683.1571067549361" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="75292"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDJIZMG6QEHBBHVNSLWQKGQEJPDXQBI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Oct 14 17:39:13 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi1-f189.google.com ([209.85.167.189]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iK2RE-000JSD-DK for gtp-pandoc-discuss@m.gmane.org; Mon, 14 Oct 2019 17:39:12 +0200 Original-Received: by mail-oi1-f189.google.com with SMTP id u141sf9983915oia.13 for ; Mon, 14 Oct 2019 08:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=riU0ISUCtrxXJj0lCzBOqfsiRv56qUNZz9CSZ4fnMcE=; b=MH5CuLrZRx60UV24wE/zpG6/7+gQ69iRogxPKroAj/T9IL2TQKaSc4qzovcotZJhAQ 6dkwQHHGHFLMOXmTeMz8d6vZoXRR8ZOHoVTKKeDyittTTQiCNpAX4/ZJM2rK9dlrRYJ0 7xWhL0LFrL+aQRDsytoX/NkL7Aw6UxldCDtr7vdqwq+GA+RmI85AaQn90CgMfZxK0rqY eS24tD1cZxGJ/7wn2wcgQAcSOGBFtwPS3nGPpWSN0gMol4ZtRFgKb5m2wPveN7Ee/pmE JWw/3FAy8Dt9iShHmC1J/KFzXz+vadHFgHL8YpwxVcplA6l9W9kiUkIBNvoc9nNTAGmw uSbw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=riU0ISUCtrxXJj0lCzBOqfsiRv56qUNZz9CSZ4fnMcE=; b=s4wwvawZpEFxg4lZlao+rFm7yR9O7zQThRgwVMV3bzfwJgniYNgwtQxxwfHHP3NS88 QROtShskh9oWQMTBoNkUDY6gW9ETgfE/A9vVyqMZxuYeJq0UPhVQcEMDZY/Ijl8UP1Mw 6KoY+8fwme/k+zPsk5kCW1oVGcQ6AFcwLXqmFnP/bMgCYtIYdMA6iLxi/oHqvRYJLXE5 7u2U8/3WRubXfqwf0AXTJsjkZiIcohw08VumwMqqPr0L/T3mQYCLgmSE3u0VX3qb45lr bAQMeG5J9eCnTdKXQyTMFpOIoJWi0vBKyURfw+wtergZ3/avwohAx0MHKY1RDdi5Q79Q FvlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=riU0ISUCtrxXJj0lCzBOqfsiRv56qUNZz9CSZ4fnMcE=; b=dMAZDCIk8Si3e4ptJ1e00NRDAqEfFPrPSuDNUJWmZBrKsyTMPw9pWx1gKlPxIiRbeM /YrvSuqkEnX5ueSJIwhQGCOBeEbMoT8PLjstfQic234jjjn9gZ0P9elwvl1xmjWqqqfN sOA7RS94dcY+/KMa8GYnAdFPCg7zdtslb1vQNkmxgHU5kjzO9uGQahxP3BUdZcSGXfSj k/UvySkSThDuaR1t+9YYnl3CsEhxTmHH9KmZk7Rkv2VGVKe0gfqGsIskO0y//QogBlp5 l0OUhzdeDf0zG2KPkGp1iAvlGOU76AU/D25gA8N15YOkFWruz+g5yhMlUSI7o1FMOjAq rJiQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAX2xPPDlt6/+MS5t2d6zmHONyWX14Zwt+6i0sNnbSuZaNPTzSWt ShlAf3I42ez9Fh+8cuKC3y0= X-Google-Smtp-Source: APXvYqwQZxnrmOy+BuMZQj0Gw0ZuGGHkn01TbG1q4sE8AsPto2NuEjRM8hhPl7Ab5wYLNStAk9HwaQ== X-Received: by 2002:a05:6830:1154:: with SMTP id x20mr23767035otq.219.1571067551194; Mon, 14 Oct 2019 08:39:11 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:1441:: with SMTP id w1ls2734564otp.7.gmail; Mon, 14 Oct 2019 08:39:10 -0700 (PDT) X-Received: by 2002:a9d:7e81:: with SMTP id m1mr24354026otp.60.1571067549976; Mon, 14 Oct 2019 08:39:09 -0700 (PDT) In-Reply-To: X-Original-Sender: linux.photo.geek-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.org gmane.text.pandoc:23586 Archived-At: ------=_Part_5055_1138132683.1571067549361 Content-Type: multipart/alternative; boundary="----=_Part_5056_12623411.1571067549361" ------=_Part_5056_12623411.1571067549361 Content-Type: text/plain; charset="UTF-8" Thanks so much. Thanks for the pointer to --epub-css. Imagine there are tons of things that can be tweaked with this. I'm a newbie and just getting started. I'm impressed with pandoc's formatting capabilities. On Monday, October 14, 2019 at 8:23:17 AM UTC-7, John MacFarlane wrote: > > > Centering would be done in epub using CSS. > You can attach classes or directly set the style using a pandoc > markdown extension which allows you to set attributes. For > example, > > ![](media/whatever.jpg){style="display:block;margin-left:auto;margin-right:auto"} > > > should center the image. > > Nicer, though, to use > > ![](media/whatever.jpg){.centered} > > and add a rule for .centered to your epub CSS. > (See --epub-css in the manual.) > > Will Simpson > writes: > > > I'd like to center images on a page when I convert from markdown to > ePub. I > > can get the images to appear left justified with the markdown code > > ![](media/176_smoot_0869.jpg) > > but I can't figure out what the code would be to center the image on the > > page. > > > > Mostly I'd like to be able to center - left to right, but maybe it > might > > also be helpful to know if I can center - top to bottom on the page > also. > > > > Can you help explain this? Is MarkDown too basic for this kind of > formating? > > > > -- > > 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/35886056-bcfe-46d2-bf13-1abe9624bf90%40googlegroups.com. > > -- 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/8a819b2f-11e0-49e0-89d3-4acf8bed381e%40googlegroups.com. ------=_Part_5056_12623411.1571067549361 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks so much. Thanks for the pointer to --epub-css. Imag= ine there are tons of things that can be tweaked with this. I'm a newbi= e and just getting started. I'm impressed with pandoc's formatting = capabilities.=C2=A0

On Monday, October 14, 2019 at 8:23:17 AM UTC-7,= John MacFarlane wrote:

Centering would be done in epub using CSS.
You can attach classes or directly set the style using a pandoc
markdown extension which allows you to set attributes. For
example,

![](media/whatever.jpg){style=3D"display:block;margin-left:auto;margin-right:auto"}

should center the image.

Nicer, though, to use

![](media/whatever.jpg){.centered}

and add a rule for .centered to your epub CSS.
(See --epub-css in the manual.)

Will Simpson <linux.p...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> I'd like to center images on a page when I convert from markdo= wn to ePub. I=20
> can get the images to appear left justified with the markdown code= =20
> ![](media/176_smoot_0869.jpg)
> but I can't figure out what the code would be to center the im= age on the=20
> page.=20
>
> Mostly I'd like to be able to center - =C2=A0left to right, bu= t maybe it might=20
> also be helpful to know if I can center - =C2=A0top to bottom on t= he page also.
>
> Can you help explain this? Is MarkDown too basic for this kind of = formating?
>
> --=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-...@googlegroups.com.
> To view this discussion on the web visit https://groups.= google.com/d/msgid/pandoc-discuss/35886056-bcfe-46d2-bf13-1abe962= 4bf90%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://groups.google.com/d/= msgid/pandoc-discuss/8a819b2f-11e0-49e0-89d3-4acf8bed381e%40googlegroups.co= m.
------=_Part_5056_12623411.1571067549361-- ------=_Part_5055_1138132683.1571067549361--