Replacing all custom macros and standardizing papers written in TeX Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Plain TeX macros with obeylines and no delimiters.Plain TeX vs. LaTeX MacrosReplacing all dots in a documentShowing definition of macros with custom characters?Recursively defined macros in TeXTeX macro idioms, or: understanding advanced macrosCustom document classes with embedable external macros?True `macros' in (La)TeXreplacing macros parameters by its definitionTeX Live - Names of all standard macros (the one proposed by TeX Live Utility)

Do I really need to have a message in a novel to appeal to readers?

Compare a given version number in the form major.minor.build.patch and see if one is less than the other

Why are there no cargo aircraft with "flying wing" design?

Can you use the Shield Master feat to shove someone before you make an attack by using a Readied action?

How to Make a Beautiful Stacked 3D Plot

Trademark violation for app?

Chinese Seal on silk painting - what does it mean?

If a VARCHAR(MAX) column is included in an index, is the entire value always stored in the index page(s)?

Amount of permutations on an NxNxN Rubik's Cube

What does the "x" in "x86" represent?

Delete nth line from bottom

Around usage results

What are the out-of-universe reasons for the references to Toby Maguire-era Spider-Man in ITSV

How to tell that you are a giant?

Should I use a zero-interest credit card for a large one-time purchase?

Why do we bend a book to keep it straight?

Why didn't Eitri join the fight?

Why are the trig functions versine, haversine, exsecant, etc, rarely used in modern mathematics?

What is the longest distance a player character can jump in one leap?

How do I find out the mythology and history of my Fortress?

Closed form of recurrent arithmetic series summation

Is "Reachable Object" really an NP-complete problem?

Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?

Is there a kind of relay only consumes power when switching?



Replacing all custom macros and standardizing papers written in TeX



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Plain TeX macros with obeylines and no delimiters.Plain TeX vs. LaTeX MacrosReplacing all dots in a documentShowing definition of macros with custom characters?Recursively defined macros in TeXTeX macro idioms, or: understanding advanced macrosCustom document classes with embedable external macros?True `macros' in (La)TeXreplacing macros parameters by its definitionTeX Live - Names of all standard macros (the one proposed by TeX Live Utility)










0















I would like to be able to replace every single user-defined macro in papers written in TeX by its definition. That is, if TeXing is considered to be a function f and my standardizing script is function g I want fg(x)=f(x)for any TeX code x that can be TeXXed without errors.



From similar questions others have asked before it is clear that this will require some really hard work because TeX is extremely customizable. Well, I still want to do it.



I do want to know what I'm about to get into though.



  1. Do I essentially need to almost create half of a TeX engine (i.e. the input processor and the expansion processor)?


  2. Assuming that the work is actually finished. Will I have to keep updating my code for the rest of my life in order for it to remain compatible with latest packages even though Knuth's TeX engine itself permanently remains stable?


  3. If the goal in 1 and 2 are indeed infeasible for one person to reach during leisure time, is it feasible for me to achieve something less ambitious, namely making sure that at least 50% of the actually existing papers on arXiv gets successfully standardized? The papers are almost always written in LaTeX often using one of the AMS packages. However they tend to include low-level code such as def and sometimes even let which causes de-macro to be ineffective in standardizing them.


I'm reading Knuth's The TeXbook right now.









share


























    0















    I would like to be able to replace every single user-defined macro in papers written in TeX by its definition. That is, if TeXing is considered to be a function f and my standardizing script is function g I want fg(x)=f(x)for any TeX code x that can be TeXXed without errors.



    From similar questions others have asked before it is clear that this will require some really hard work because TeX is extremely customizable. Well, I still want to do it.



    I do want to know what I'm about to get into though.



    1. Do I essentially need to almost create half of a TeX engine (i.e. the input processor and the expansion processor)?


    2. Assuming that the work is actually finished. Will I have to keep updating my code for the rest of my life in order for it to remain compatible with latest packages even though Knuth's TeX engine itself permanently remains stable?


    3. If the goal in 1 and 2 are indeed infeasible for one person to reach during leisure time, is it feasible for me to achieve something less ambitious, namely making sure that at least 50% of the actually existing papers on arXiv gets successfully standardized? The papers are almost always written in LaTeX often using one of the AMS packages. However they tend to include low-level code such as def and sometimes even let which causes de-macro to be ineffective in standardizing them.


    I'm reading Knuth's The TeXbook right now.









    share
























      0












      0








      0








      I would like to be able to replace every single user-defined macro in papers written in TeX by its definition. That is, if TeXing is considered to be a function f and my standardizing script is function g I want fg(x)=f(x)for any TeX code x that can be TeXXed without errors.



      From similar questions others have asked before it is clear that this will require some really hard work because TeX is extremely customizable. Well, I still want to do it.



      I do want to know what I'm about to get into though.



      1. Do I essentially need to almost create half of a TeX engine (i.e. the input processor and the expansion processor)?


      2. Assuming that the work is actually finished. Will I have to keep updating my code for the rest of my life in order for it to remain compatible with latest packages even though Knuth's TeX engine itself permanently remains stable?


      3. If the goal in 1 and 2 are indeed infeasible for one person to reach during leisure time, is it feasible for me to achieve something less ambitious, namely making sure that at least 50% of the actually existing papers on arXiv gets successfully standardized? The papers are almost always written in LaTeX often using one of the AMS packages. However they tend to include low-level code such as def and sometimes even let which causes de-macro to be ineffective in standardizing them.


      I'm reading Knuth's The TeXbook right now.









      share














      I would like to be able to replace every single user-defined macro in papers written in TeX by its definition. That is, if TeXing is considered to be a function f and my standardizing script is function g I want fg(x)=f(x)for any TeX code x that can be TeXXed without errors.



      From similar questions others have asked before it is clear that this will require some really hard work because TeX is extremely customizable. Well, I still want to do it.



      I do want to know what I'm about to get into though.



      1. Do I essentially need to almost create half of a TeX engine (i.e. the input processor and the expansion processor)?


      2. Assuming that the work is actually finished. Will I have to keep updating my code for the rest of my life in order for it to remain compatible with latest packages even though Knuth's TeX engine itself permanently remains stable?


      3. If the goal in 1 and 2 are indeed infeasible for one person to reach during leisure time, is it feasible for me to achieve something less ambitious, namely making sure that at least 50% of the actually existing papers on arXiv gets successfully standardized? The papers are almost always written in LaTeX often using one of the AMS packages. However they tend to include low-level code such as def and sometimes even let which causes de-macro to be ineffective in standardizing them.


      I'm reading Knuth's The TeXbook right now.







      macros





      share












      share










      share



      share










      asked 5 mins ago









      Ying ZhouYing Zhou

      787




      787




















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "85"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f485401%2freplacing-all-custom-macros-and-standardizing-papers-written-in-tex%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f485401%2freplacing-all-custom-macros-and-standardizing-papers-written-in-tex%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Do these spellcasting foci from Xanathar's Guide to Everything have to be held in a hand?How do foci and somatic+material components interact when it comes to occupying a hand?Can you cast spells with a Somatic component if you're holding a two-handed weapon?Crafting an Improvised Spellcasting Focus?Can a multiclass Cleric/Warlock hold a Holy Shield and an Arcane Staff and still cast spells?Where should I report printing errors in Xanathar's Guide to Everything?Where can I purchase a legal Xanathar's Guide to Everything PDF?Can I use a hand holding a focus from one class to cover somatic components for a spell from another class?Do you need a “gameplay-wise” free hand to handle material components?Portent, as it relates to the Gambling downtime rules from Xanathar's Guide to EverythingWhat is the correct interpretation of the Gambling Results table in Xanathar's Guide to Everything?

          Can I stretch or expand an entire standalone document to fit the page? The Next CEO of Stack Overflow

          Why do some congregations only make noise at certain occasions of Haman?Purim and Shushan PurimParashat TzavSource to make noise when Haman's name is mentioned?Does anyone say not to make noise for Haman?Why is Megillat Esther the only one to receive a bracha after reading it?Why did Haman change his mind and decide to immediately hang Mordechai?Chazal empty barrels make the most noiseWhy is Megillat Esther the only Megillah that is still read from parchment?Why is v'acharei added in some siddurim?is there some significance in their relationship between Haman and Daniel?Why is only Purim to be celebrated “forever”?Why didn't Haman just kill Mordechai?