public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Richard Hu <richardyusen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Unable to center text in Markdown
Date: Tue, 11 Oct 2022 21:14:31 +0100	[thread overview]
Message-ID: <CAPKRM+Uv6Sg_x6sYRvp0R9xhu77=Yn3wk+em5hun5xZ4WoWvOQ@mail.gmail.com> (raw)
In-Reply-To: <2d6fdf96-2731-4970-a9eb-0f0d89e92c37n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 2062 bytes --]

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. <h1> ... </h1>), but just
refuses to acknowledge any alignment options specified.


On Tue, Oct 11, 2022 at 7:27 PM gnpan <g.panayotou-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 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:
>> ```
>> <p align="center"> Sample Text </p>
>> <center> Sample Text </p>
>> ```
>> 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
> <https://groups.google.com/d/msgid/pandoc-discuss/2d6fdf96-2731-4970-a9eb-0f0d89e92c37n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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.

[-- Attachment #2: Type: text/html, Size: 3457 bytes --]

  parent reply	other threads:[~2022-10-11 20:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-11 14:39 Richard Hu
     [not found] ` <5466ba6b-31e3-4288-a86b-32463bdefe32n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-11 14:44   ` Craig Parker
2022-10-11 18:27   ` gnpan
     [not found]     ` <2d6fdf96-2731-4970-a9eb-0f0d89e92c37n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-11 20:14       ` Richard Hu [this message]
     [not found]         ` <CAPKRM+Uv6Sg_x6sYRvp0R9xhu77=Yn3wk+em5hun5xZ4WoWvOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-10-12 10:23           ` BPJ

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPKRM+Uv6Sg_x6sYRvp0R9xhu77=Yn3wk+em5hun5xZ4WoWvOQ@mail.gmail.com' \
    --to=richardyusen-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).