[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Convert some Latex expressions in Emacs.
From: |
Michael Heerdegen |
Subject: |
Re: Convert some Latex expressions in Emacs. |
Date: |
Tue, 17 May 2022 02:02:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Hongyi Zhao <hongyi.zhao@gmail.com> writes:
> 1. Remove the following stuff: `\begin{array}{l}', `\end{array}'.
> 2. For each word, remove '{' and '}', spaces, and add * between two
> characters of it, i.e., `P^{5} Q^{2} R' should be changed to
> `P^5*Q^2*R'.
> [...]
If you have some time you might have a look at peg.el (from Gnu Elpa).
PEGs (Parsing Expression Grammars) are a bit more expressive than
regular expressions. Takes a bit of time to get used to the concept but
if you have to solve such tasks more often it may pay off.
Michael.
- Convert some Latex expressions in Emacs., Hongyi Zhao, 2022/05/15
- Re: Convert some Latex expressions in Emacs., Emanuel Berg, 2022/05/16
- Re: Convert some Latex expressions in Emacs.,
Michael Heerdegen <=
- Re: Convert some Latex expressions in Emacs., Hongyi Zhao, 2022/05/16
- Re: Convert some Latex expressions in Emacs., Emanuel Berg, 2022/05/16
- Re: Convert some Latex expressions in Emacs., Michael Heerdegen, 2022/05/16
- Re: Convert some Latex expressions in Emacs., Michael Heerdegen, 2022/05/16
- Re: Convert some Latex expressions in Emacs., Hongyi Zhao, 2022/05/16
- Re: Convert some Latex expressions in Emacs., Emanuel Berg, 2022/05/17
- Re: Convert some Latex expressions in Emacs., Hongyi Zhao, 2022/05/17
- Re: Convert some Latex expressions in Emacs., Michael Heerdegen, 2022/05/17
- Re: Convert some Latex expressions in Emacs., Hongyi Zhao, 2022/05/17