public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: "John Gabriele" <jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: vertically align equations on equals sign
Date: Mon, 25 May 2020 16:41:32 -0400	[thread overview]
Message-ID: <02bb3a0b-6778-4e5c-93fb-38577b376661@www.fastmail.com> (raw)
In-Reply-To: <m2a72u40sv.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>

Sorry, didn't see this. Thanks, John.

The results of

~~~
\begin{align*}
a &= 1 \\
b &= a + 1 \\
c &= a + b + 1
\end{align*}
~~~

and

~~~
$$
\begin{aligned}
a &= 1 \\
b &= a + 1 \\
c &= a + b + 1
\end{aligned}
$$
~~~

look about the same.

-- John




On Wed, Apr 29, 2020, at 2:14 PM, John MacFarlane wrote:
> 
> Another alternative is
> 
> $$
> \begin{aligned}
> 
> ...
> 
> \end{aligned}
> $$
> 
> 
> Scott Morris <vst-ff4b495a-ucyegO00arAdnm+yROfE0A@public.gmane.org> writes:
> 
> > I believe you want the `align*` environment (<https://latex.wikia.org/wiki/Align_(environment)>), like:
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Hi.
> >
> > \begin{align*}
> >    a    &=   1           \\
> >    b    &=   a + 1       \\
> >    c    &=   a + b + 1
> > \end{align*}
> >
> > Bye.
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > cheers
> > -- Scott
> >
> >
> >> [ Message 3170 ]
> >> Date:    Tue, 28 Apr 2020 13:46:31 -0400
> >> To:      pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> >> From:    John Gabriele <jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org>
> >> Subject: vertically align equations on equals sign
> >> 
> >> Hi,
> >> 
> >> I'd like to display multiple equations vertically aligned on their equals signs. In my foo.txt, I tried:
> >> 
> >> ~~~
> >> Hi.
> >> 
> >> $$
> >> a = 1 \\
> >> b = a + 1 \\
> >> c = a + b + 1
> >> $$
> >> 
> >> Bye.
> >> ~~~
> >> 
> >> processed with:
> >> 
> >>     pandoc -o foo.pdf foo.txt
> >> 
> >> but there's no line breaks there. Then I tried:
> >> 
> >> ~~~
> >> Hi.
> >> 
> >> \begin{eqnarray}
> >> a = 1 \\
> >> b = a + 1 \\
> >> c = a + b + 1
> >> \end{eqnarray}
> >> 
> >> Bye.
> >> ~~~
> >> 
> >> (no `$$` needed)
> >> 
> >> but they come out right-aligned, and also have eqn numbers at the far right (see attached).
> >> 
> >> How can I get them to be aligned on equals signs?
> >> 
> >> Thanks,
> >> -- John
> >> 
> >> -- 
> >> 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/c69c858a-9879-4815-8e46-cb1d357ac8ba%40www.fastmail.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/15998461835841289376.enqueue%40awash.midden.jomche.org.
> > Hi.
> >
> > \begin{align*}
> >    a    &=   1           \\
> >    b    &=   a + 1       \\
> >    c    &=   a + b + 1
> > \end{align*}
> >
> > Bye.
> >
> > -- 
> > 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/15998461835841289376.enqueue%40awash.midden.jomche.org.
> 
> -- 
> 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/m2a72u40sv.fsf%40johnmacfarlane.net.
>


  parent reply	other threads:[~2020-05-25 20:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <jgabriele@fastmail.fm>
     [not found] ` <jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org>
     [not found]   ` <c69c858a-9879-4815-8e46-cb1d357ac8ba-jFIJ+Wc5/Vo7lZ9V/NTDHw@public.gmane.org>
2020-04-28 17:42     ` Scott Morris
     [not found]       ` <15998461835841289376.enqueue-5OyLEvDWWC1gaJ/VHHemUA8qMO8cZAx6@public.gmane.org>
2020-04-28 20:12         ` John Gabriele
2020-04-29 18:14         ` John MacFarlane
     [not found]           ` <m2a72u40sv.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2020-05-25 20:41             ` John Gabriele [this message]
2020-04-28 18:15     ` Dmitriy Krasilnikov
     [not found]       ` <CALZUCcAgNORGFL+rgLDXD+XkSfvYb9DaG3sqvJsHfyzXxLGGGA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-04-28 20:14         ` John Gabriele
     [not found]           ` <505dd813-698e-4298-98d5-c091c9c2f4b8-jFIJ+Wc5/Vo7lZ9V/NTDHw@public.gmane.org>
2020-04-28 20:44             ` jeremy theler
2020-04-28 17:46 John Gabriele

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=02bb3a0b-6778-4e5c-93fb-38577b376661@www.fastmail.com \
    --to=jgabriele-97jfqw80gc6171pxa8y+qa@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).