# [texhax] \def vs. LaTeX (was: Obsolete \centerline ... amsbook)

Uwe Lück uwe.lueck at web.de
Mon Sep 24 14:54:20 CEST 2012

Am Sonntag, den 23.09.2012, 13:36 -0400 schrieb Michael Barr:
>
>                             As for the use of \def, well if there were
> a procedure that had all the funcionality of \def and just gave a warning
> instead of stopping on error when you had redefined something, I would

I still wonder whether you need \def for delimited parameters.
If so, you may like redefine.tex,

http://ctan.org/pkg/redefine

(light-weight) or the rather heavy ltxnew:

http://ctan.org/pkg/ltxnew

redefine.tex actually redefines \newcommand, indirectly,
turns \@notdefinable into a warning. If this is a
problem for some of the readers, I would suggest storing
redefine.tex optionally.

The documentation of redefine.tex is not very explicit.
Just on reading its code I believe that it provides
"warning only" commands \newdef, \newgdef, and \newlet.

Am Sonntag, den 23.09.2012, 13:36 -0400 schrieb Michael Barr:
>
> I certainly agree that redefining \newcommand is shoddy and I would never
> do that.

Cheers,

Uwe.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.7804554104804993, "perplexity": 24449.883610692945}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-05/segments/1516084887253.36/warc/CC-MAIN-20180118111417-20180118131417-00398.warc.gz"}