From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31525 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Hu Newsgroups: gmane.text.pandoc Subject: Re: Unable to center text in Markdown Date: Tue, 11 Oct 2022 21:14:31 +0100 Message-ID: References: <5466ba6b-31e3-4288-a86b-32463bdefe32n@googlegroups.com> <2d6fdf96-2731-4970-a9eb-0f0d89e92c37n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b6ca0405eac7eef6" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14833"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZPJQ4U7YBRBTE5S6NAMGQEDR2VHAI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Oct 11 22:15:11 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qv1-f58.google.com ([209.85.219.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oiLeh-0003h8-NC for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 11 Oct 2022 22:15:11 +0200 Original-Received: by mail-qv1-f58.google.com with SMTP id i7-20020a0cab47000000b004b4376895bfsf2493719qvb.20 for ; Tue, 11 Oct 2022 13:15:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1665519310; cv=pass; d=google.com; s=arc-20160816; b=WTwaFKqpgxqUEoqShFtbbgPL6VNkbZY2F3EsctleDE1hvQKfDyMCS+XQuiVn0fmBUq s/lOzrXgJINdl1QcyET2VJvbC/rTxo8YpTtUWrcIai0CEOCokDESmofl+VnM+URA8m/k A5gXbgwnZycwruQhdAl2Q/nBQItgDPX45mZGFJrXfemfrxkeW8AQaR45ZbhLhs+68JZI vFvobn6YM2vP869QbkQrK2iXxmkHHr4aDVNv+ilrzg6kKkhZFmpVQfSU1Ea/TGus8Dbe ZyHhZwVBFsrJma20lX79ohykyAyBdU4btJizPiSQpWyHVCCKdJf7Mot2TKsGNFVX9J+k 2KLg== 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=X6rs+eV7zwXDS/2IDYr+ymdYnE/MR6dXgWDPdBGIgPM=; b=Z1o846TZv2mOr8pRYc4UvXaTLYOVhfZchV7DT3eutZKfNhXXwfbrXhXWxMCy8YPktS 1zppmSuupAK/FkLrGavIJfOOZr/XKRTyVa70DLeq7OVSUtyu0Sfqyrxy3+r/buOTlygI lF8wigKybakKVW9kQ/PGp06BpkyzIZilpXZm4GYdcjZE/AjOffuLhtUwDYblSmiVRKeA P6AnyraZHC/znPTuVhR8bEhrFTIDyZRzbTBVJAogdRr+1hjOOeJV/a3pWZIkbqISBbYy dwTWiasnzrj8DUPkbZjjNOu+QdZPar7y8ZWgAc5Jmz8PwQsvjFEnYSFOoEpDMruRC6Mv zarg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jkKXFG2y; spf=pass (google.com: domain of richardyusen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1031 as permitted sender) smtp.mailfrom=richardyusen-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=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:sender :from:to:cc:subject:date:message-id:reply-to; bh=X6rs+eV7zwXDS/2IDYr+ymdYnE/MR6dXgWDPdBGIgPM=; b=tnAG48oyGHWBN8weygIFI6p+ebEbreFJoVX70hu347nRFTpgbEsQSHt5MnLnl2P7+Q re6vIgCFtuvewc+ZMmXtySMvScJJMglB1WxA3B86+VAQ19X+ahTUxRk5ctng+Yzoz6IS pTXUaeRYiiIyGMuYvu5LKwC4ENfpKdi/P0FgrxmZ1Uf+VNdzmv/i6BVIm3Z2h8ukSD5u K3akHklLyusx83cPUdwGWW9LiEKSQVXcbMPuctCYCPblqf8k4BrHlT07Lk/ln0t9mQCV saXJOeOxrmxF0TmXSUm5dBIaNDJ5ssYU3w1a/imbmUVzdX41QL1DTVObDgZZVAWlZ+l+ vNdA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=X6rs+eV7zwXDS/2IDYr+ymdYnE/MR6dXgWDPdBGIgPM=; b=b168TaFdEZ248BHXpu8NF8/e6VwK2vQaGkLL83grceuWZ3MiyxcCSU8wY1LhlgcBOa SY4xX7ZzGoJaa9uShMam0NstqYlV+uLA/mpHgNB46T2PP0r7DTs8QvJ0SvoRDYEUi5io vgzI5C645/o3VtxKIlabOlllTyyIVZBunNi1wIR2Rozyyyo5eX065qLnw4HGEZPalDM8 iU4gz62K85CnTVxSAxo/NDvKcHj6utw6p+VVIOCx3p0fyNWIXzR1isWkJHfRl/kHaWRO Y/9PEQHXhO3Iw8x/jmOsyQENM5jXlmEuzRjt5KJY9UTwuHyJROYe8fWpdPU08DuwzVuD fWnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=X6rs+eV7zwXDS/2IDYr+ymdYnE/MR6dXgWDPdBGIgPM=; b=igp1yC9pczvnr/pvRW9yNVRh/SDOFtld6+cQFcsTXK2JTmCuTjBupdsh15zKAf24L4 cWZ92vkvk2Mt1B2ZtZC68/1MeZPhNBT4sQA5oaQOpoVx1hhy1rLi1t4fzjEeJBjnGRzr TlnfonJwwQTDa0HdUP+Er0re+rP9qY1vb1+KtECQF5YayVZ8X7z41N3zotakHifeqRXg zoK1CVSSclEzb09JTKWZf+6KWm0wJ5CPaTRJkv+MxmkrAtZlzZruCDhIenSTG3cXZACX LAiF8hu0E/O+I6+K90mSz7Ug7aIzflkyDh3278S63QCXAN Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf0NpzJ0sowTEJiPioLQxNwuXk6aIE6t4bGOmAfazlZYFbKfWEXb ycarjk3wJIwii9MCu7H8pf4= X-Google-Smtp-Source: AMsMyM57jZTspBWxdVbE+tlTKuhjGy5Ult6JetsKphTLWVHU07BVE6R9U7rxjW3HylyBtIucph7hXQ== X-Received: by 2002:ac8:5912:0:b0:397:bf6e:b0f1 with SMTP id 18-20020ac85912000000b00397bf6eb0f1mr15615694qty.668.1665519310710; Tue, 11 Oct 2022 13:15:10 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:620a:51c5:b0:6ce:8725:d09 with SMTP id cx5-20020a05620a51c500b006ce87250d09ls7958777qkb.1.-pod-prod-gmail; Tue, 11 Oct 2022 13:15:08 -0700 (PDT) X-Received: by 2002:a05:620a:f15:b0:6cf:2130:88e3 with SMTP id v21-20020a05620a0f1500b006cf213088e3mr17826031qkl.519.1665519308473; Tue, 11 Oct 2022 13:15:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665519308; cv=none; d=google.com; s=arc-20160816; b=KhuEIeFdmaCzFFa7fkb+YOxsi3Gy8xOWGlqcULb57k6nUSsAX7U7abOt9B3Xkc4R9A CPZWDahmnui7I5M9BH2Urdcn8tVKG5EQzZvUeWy8Ig6OvP4cD1tQ3pztnrzrcjqM73Zb 2XJrXuylGrUqeiETv/j8wT2YT6n1gLbbPQoPFYHWoMsVu4R+T0tjjU7Ybn2p/Ll5gxH6 E1lABzJ2sRWmE/6S2AWZ9TETMvrw1FCPSbVmPt9J0EIPcB/fMa0oYrQYh1OV6v0s92sG QfUQ0i65S+w83UxSyjE/9FG7lg5YYMrpejCZ4UxF/eLaLB36ZciFPESNItYlJ//ppjgd 55Uw== 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=yHyB2U0fS0f7C4aePJShtAV0a4rhfCqXO3XRW4GFFTc=; b=NLyWUBh5xwiKWVHU+lecVxof6R2ieJ4fQYDNnQRbtsiOpqGudl9+1jNT8vV2gudH4C tqt9JraKeRsoCO0asliAfCtUHpTti98366abHaVjn1S4qpFcSDx+/pmvlVnbk6mbOheb AnhPeB57N+ADNqNMRP90R4Pvk/veq9CdHsIeqvjGgQHdlR1iOBQ85ozsefrH7l31F4JK 06FJUxqSuw5eDBU0QljxdLUIClKblRrXjld/R50kFsDlyk4Z7DalUyjPQ/u0Hx+xxpbt z74zHeNzKRUz6+QjbN4u0YvlqdiwoWsOM1T1wQcwT8pL2UxSG5O1DrPR0fdI4GmNAcVU u3iQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jkKXFG2y; spf=pass (google.com: domain of richardyusen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1031 as permitted sender) smtp.mailfrom=richardyusen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com. [2607:f8b0:4864:20::1031]) by gmr-mx.google.com with ESMTPS id fd10-20020a05622a4d0a00b0031ecf06e367si484103qtb.1.2022.10.11.13.15.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Oct 2022 13:15:08 -0700 (PDT) Received-SPF: pass (google.com: domain of richardyusen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1031 as permitted sender) client-ip=2607:f8b0:4864:20::1031; Original-Received: by mail-pj1-x1031.google.com with SMTP id 70so13432987pjo.4 for ; Tue, 11 Oct 2022 13:15:08 -0700 (PDT) X-Received: by 2002:a17:902:eb8e:b0:17f:637b:9548 with SMTP id q14-20020a170902eb8e00b0017f637b9548mr25801915plg.158.1665519307899; Tue, 11 Oct 2022 13:15:07 -0700 (PDT) In-Reply-To: <2d6fdf96-2731-4970-a9eb-0f0d89e92c37n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: richardyusen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jkKXFG2y; spf=pass (google.com: domain of richardyusen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1031 as permitted sender) smtp.mailfrom=richardyusen-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:31525 Archived-At: --000000000000b6ca0405eac7eef6 Content-Type: text/plain; charset="UTF-8" Hi gnpan, Thanks! Your solution works, but I cannot put text formatted with Markdown between the \begin{center} ... \end{center} LaTeX tags. It seems like Pandoc understands the HTML (e.g.

...

), but just refuses to acknowledge any alignment options specified. On Tue, Oct 11, 2022 at 7:27 PM gnpan wrote: > Since you are converting to pdf, you could try some LaTeX, e.g.: > \begin{center}{Your text here}\end{center} > > > On Tuesday, 11 October 2022 at 17:39:03 UTC+3 richar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > >> Hello! >> >> I'm trying to center some text in my markdown document. I've tried: >> ``` >>

Sample Text

>>
Sample Text

>> ``` >> And used `pandoc test.md -o test.pdf` to compile my document. However, >> the text shows up as left-aligned and not centered. >> >> How may I resolve this issue? >> >> Thank you. >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/pandoc-discuss/xP71D6PnL2k/unsubscribe. > To unsubscribe from this group and all its topics, 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/2d6fdf96-2731-4970-a9eb-0f0d89e92c37n%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/CAPKRM%2BUv6Sg_x6sYRvp0R9xhu77%3DYn3wk%2Bem5hun5xZ4WoWvOQ%40mail.gmail.com. --000000000000b6ca0405eac7eef6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi gnpan,

Thanks! Your solut= ion works, but I cannot put text formatted with Markdown between the \begin= {center} ... \end{center} LaTeX tags.
It seems like Pandoc unders= tands the HTML (e.g. <h1> ... </h1>), but just refuses to ackno= wledge any alignment options specified.


On Tue, Oct 11,= 2022 at 7:27 PM gnpan <g.panay= otou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Since you are converting to pdf, you could try some LaTeX, e.= g.:
\begin{center}{Your text here}\end{center}


=
On Tuesda= y, 11 October 2022 at 17:39:03 UTC+3 richar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
Hello!

I= 9;m trying to center some text in my markdown document. I've tried:
=
```
<p align=3D"center"> Sample Text &= lt;/p>
<center> Sample Text </p>
```
And used `pandoc test.md -o test.pdf` to compile my document. Howeve= r, the text shows up as left-aligned and not centered.

=
How may I resolve this issue?

Thank you.
<= /div>

--
You received this message because you are subscribed to a topic in the Goog= le Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://g= roups.google.com/d/topic/pandoc-discuss/xP71D6PnL2k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to p= andoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https= ://groups.google.com/d/msgid/pandoc-discuss/2d6fdf96-2731-4970-a9eb-0f0d89e= 92c37n%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://g= roups.google.com/d/msgid/pandoc-discuss/CAPKRM%2BUv6Sg_x6sYRvp0R9xhu77%3DYn= 3wk%2Bem5hun5xZ4WoWvOQ%40mail.gmail.com.
--000000000000b6ca0405eac7eef6--