de-macro und alternativen, ein sehr empfehlenwerter online Konverter

Uwe Brauer <[email protected]>
Newsgroups gmane.comp.tex.german
Message-ID <[email protected]>
Hallo

Ein Problem was mich schon lange nervt, sind LaTeX Dokumente  mit jeder
Menge definition wie

\newcommand{\gzerozeronorm}[1]{\underline{S}_{g_{00}+1;#1}}
vor allem bei der Zusammenarbeit

Und zwar aus folgendem Grund

    1. Es ist oft im Text schwer zu erkennen was nun \gzerozeronorm}[N]
       sein soll.

    2. Ich benutze GNU Emacs und dort  prettify-symbols-mode der zum
       Beispiel \int als integral ∫ darstellt, aber als \int speichert (es
       gab  und gibt x-symbols-mode für Xemacs schon seit den 90, aber
       Xemacs ist unglücklicherweise ein ziemlich totes Projekt). Wie dem
       auch sei Definitionen wie die obige sind natürlich Gift für
       prettify-symbols es sei den man wäre bereit den mode für diese
       Definitionen zu erweiteren

    3. Gerade Definitionen wie 
\newcommand{\eqa}[1]{
\begin{equation}
\begin{aligned}
  #1
\end{aligned}
\end{equation}
}
 sind problematisch, weil dann die Filling Funktionen des Editors nicht
 mehr richtig funktionen.


Ich habe dann 

https://tex.stackexchange.com/questions/67709/is-there-a-script-that-reads-a-tex-file-and-replaces-every-instance-of-a-newcom 

Gefunden, wo diese Problematik diskutiert wird.

    1. De-macro das in TeXlive enthalten ist, hat für mich nicht funktioniert.

    2. Ein Perl Skript, das man auf dieser Seite finden kann schon, aber
       nur für Macros ohne Argumente

    3. Die Seite https://jsfiddle.net/zoho/ed84y/
       hingegen hat mich verblüfft, sie hat alle Macros die ich bisher
       ausprobiert habe ziemlich gut ersetzt, was nicht heißt das es
       fehlerfrei wäre.

Vielleicht findet das ja jemand nützlich.


Gruß

Uwe Brauer 

-- 
I strongly condemn Hamas heinous atrocities on Israel, especially the despicable pogroms.
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the NATO membership of Ukraine.
I support the EU membership of Ukraine. 
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/

-- 
FAQ: http://texfragen.de/
Durchsuchbares Archiv: https://www.listserv.dfn.de/sympa/arc/tex-d-l 
Unsubscribe/Verwaltung: https://www.listserv.dfn.de/sympa/info/tex-d-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.