ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Converting from LaTeX for PDF accessibility tagging?
Date: Sun, 28 Jun 2020 12:26:26 -0400 (EDT)	[thread overview]
Message-ID: <nycvar.YAK.7.78.908.2006281226200.21241@nqv-guvaxcnq> (raw)
In-Reply-To: <CAPGiC75HO=HCRCu+LwgBCoL7bE0CdeH1G+7JurLVa+vYj69EVA@mail.gmail.com>

On Sun, 28 Jun 2020, Alasdair McAndrew wrote:

> I tried ConTeXt a few years ago, then gave up on it because of its
> wordiness and verbosity.  The 2006 article on creating AMSTeX output in
> ConTeXt at https://www.ntg.nl/maps/34/06.pdf shows exactly what I mean: the
> LaTeX commands are small and neat; the ConTeXt commands are not.

As explained in the last paragraph, there are pre-built shortcuts for the main alignments and you can define your own to match amsmath style, if you wish.

If you are worried about typing, look into tab completion for your editor of choice. For example, in vim, I can do `for<Tab>` which expands to `\startformula ... \stopformula` and `fora<Tab>` expands to `\startformula \startalign ... \stopalign \stopformula`.

> However, I need now to use ConTeXt for accessibility tagging, so I'm
> prepared to give it another try.  And this means converting some LaTeX
> documents into ConTeXt.  Is there a better way than using pandoc?  I ran a
> LaTeX document through pandoc, but the result is certainly not fully
> "ConTeXt compliant", and generates errors instead of compiling.

AFAIK, pandoc is not aware of context math. When I convert latex to context, I find it simpler to do it some hand written regex which translate commands according to my writing style.

> I can get easily lost on the ConTeXt site: the documentation is there in
> plenty, but seems hard to search.  The main problem for me is mathematics
> and alignment: not just for equations, but for matrices and arrays.  What
> I'd love - if it exists - is a document showing how to rewrite LaTeX into
> ConTeXt.  Something like the above document, which is now 14 years old.

The user-interface is still the same.

> Anyway, as I say, my main issues are converting LaTeX into ConTeXt. and
> dealing with mathematics.  Any pointers would be gratefully received!

Can you post an example of LaTeX math that you are having difficulty in converting? It is hard to answer this in the abstract.

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2020-06-28 16:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-28 11:43 Alasdair McAndrew
2020-06-28 16:26 ` Aditya Mahajan [this message]
2020-06-29  0:32   ` Alasdair McAndrew
2020-06-29  1:29     ` Aditya Mahajan

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=nycvar.YAK.7.78.908.2006281226200.21241@nqv-guvaxcnq \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /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).