unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* how to delete unwanted space with a function or macro
@ 2022-01-08  7:59 Uwe Brauer
  2022-01-08 11:04 ` Daniel Fleischer
  0 siblings, 1 reply; 3+ messages in thread
From: Uwe Brauer @ 2022-01-08  7:59 UTC (permalink / raw)
  To: help-gnu-emacs

Hi

I just used plain align on the table below.



\begin{tabular}{|l|l|}
\hline
\(f(t)=\mathcal{L}^{-1}\{F(s)\}\) & \(F(s)=\mathcal{L}\{f(t)\}\) \\                \hline
1.                      & \(\frac{1}{s},\quad    s>0\)             \\                         \hline
2.\(e^{a                t}\)                 & \(\frac{1}{s-a} \qquad                          s>a\)                      \\                               \hline
3.                      \(t^{n},             \quad                 n=\)                       positive                   integer                          & \(\frac{n !}{s^{n+1}}, \quad                s>0\) \\    \hline
4.                      \(t^{p},\quad            p>-1\)            & \(\frac{\Gamma(p+1)}{s^{p+1}} \quad                          s>0\)                            \\          \hline
5.                      \(\sin               (a                t)\)                       & \(\frac{a}{s^{2}+a^{2}}  \quad                                s>0\)       \\           \hline
6.                      \(\cos               (a                t)\)                       & \(\frac{s}{s^{2}+a^{2}}, \quad                                s>0\)       \\           \hline
7.                      \(\sinh              (a                t)\)                       & \(\frac{a}{s^{2}-a^{2}}, \quad                                s>          a\)          \\               \hline
8.                      \(\cosh              (a                t)\)                       & \(\frac{s}{s^{2}-a^{2}}, \quad                                s>          a\)          \\               \hline
9.                      \(e^{a               t}                \sin                       b t\)                      & \(\frac{b}{(s-a)^{2}+b^{2}},   \quad           s>a\)        \\               \hline
10.                     \(e^{a               t}\cos            (b                         t)\)                       & \(\frac{s-a}{(s-a)^{2}+b^{2}}, \quad           s>a\)        \\               \hline
11.                     \(t^{n}              e^{a              t},\quad                       n=\)                       positive                         integer     & \(\frac{n  !}{(s-a)^{n+1}}, \quad     s>a\) \\ \hline
12.                     \(u_{c}(t)\)         & \(e^{-c         s}F(s)\)                   \\                         \hline
13.                     \(u_{c}(t)           f(t-c)\)          & \(e^{-c                  s}F(s)\)                   \\                               \hline
14.                     \(e^{c               t}                f(t)\)                     & \(F(s-c)\)               \\                               \hline
15.                     \(f(c                t)\)              & \(\frac{1}{c}            F\left(\frac{s}{c}\right), \quad                                c>0\)       \\           \hline
16.                     \(\int_{0}^{t}          f(t-\tau)            g(\tau)d                      \tau\)                        & \(F(s)                         G(s)\)      \\           \hline
17.                     \(\delta(t-c)\)           & \(e^{-c         s}\)                       \\                         \hline
18.                     \(f^{(n)}(t)\)       & \(s^{n}         F(s)-s^{n-1}               f(0)-\cdots-f^{(n-1)}(0)\)      \\                               \hline
19.                     \((-t)^{n}           f(t)\)            & \(F^{(n)}(s)\)           \\                         \hline
\end{tabular}


It has a lot of unwanted space as in \(e^{a t}\) how can I delete this
space in a convient way, whitespace-cleanup for example ignores this
space. Any ideas?


Regards

Uwe Brauer 




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to delete unwanted space with a function or macro
  2022-01-08  7:59 how to delete unwanted space with a function or macro Uwe Brauer
@ 2022-01-08 11:04 ` Daniel Fleischer
  2022-01-08 16:07   ` Uwe Brauer
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Fleischer @ 2022-01-08 11:04 UTC (permalink / raw)
  To: help-gnu-emacs

Uwe Brauer <oub@mat.ucm.es> writes:

> It has a lot of unwanted space as in \(e^{a t}\) how can I delete this
> space in a convient way, whitespace-cleanup for example ignores this
> space. Any ideas?

Maybe using regex replace using \( \)\{2,\}  which means 2 or more
consecutive spaces; replace that with 2 spaces. 

-- 

Daniel Fleischer



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to delete unwanted space with a function or macro
  2022-01-08 11:04 ` Daniel Fleischer
@ 2022-01-08 16:07   ` Uwe Brauer
  0 siblings, 0 replies; 3+ messages in thread
From: Uwe Brauer @ 2022-01-08 16:07 UTC (permalink / raw)
  To: help-gnu-emacs

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

>>> "DF" == Daniel Fleischer <danflscr@gmail.com> writes:

> Uwe Brauer <oub@mat.ucm.es> writes:
>> It has a lot of unwanted space as in \(e^{a t}\) how can I delete this
>> space in a convient way, whitespace-cleanup for example ignores this
>> space. Any ideas?

> Maybe using regex replace using \( \)\{2,\}  which means 2 or more
> consecutive spaces; replace that with 2 spaces. 

Thanks!

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-08 16:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-08  7:59 how to delete unwanted space with a function or macro Uwe Brauer
2022-01-08 11:04 ` Daniel Fleischer
2022-01-08 16:07   ` Uwe Brauer

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 read-only IMAP folder(s) and NNTP newsgroup(s).