Sequence of Prompts for LLM to convert wikipedia or PDF content to Latex for Physics Derivation Graph
Initial conversion to Latex
Wikipedia uses MediaWiki syntax. Convert the following MediaWiki content to a single Latex document. Equations should be separated from the text rather than inline. Use ASCII rather than Unicode characters. Where single variables are currently inline those can remain inline. Equation blocks should include a label field so the block can be referenced within the document. The label that is added should be descriptive of the equation and contain no spaces, only underscores. Equations labels should be unique within the Latex file.
more steps
A derivation in mathematical Physics consists of a sequence of steps. Each step relates mathematical equations. Sometimes a previous expression is referenced implicitly. Edit the text to manually insert references where appropriate. Reference the relevant equation labels so that Latex can compile the document. Modify the Latex file below by adding explanatory text about each step of the derivation. Document the mathematical transformations that relate each equation in the file to other equations in the file. Use the Latex equation labels to reference equations.
(optional) Split grouped expressions
A derivation in mathematical Physics consists of a sequence of steps. Each step relates mathematical equations. In the Latex file below, for equations that have multiple instances of the equals sign, separate those into multiple equations such that each equation only has one use of the equals sign. Write out the modified content as a single Latex file.
(optional) more explanations
A derivation in mathematical Physics consists of a sequence of steps. Each step relates mathematical equations. In the Latex file below, where there are two equations with no explanatory text between them, modify the Latex file by adding explanatory text to document the mathematical transformations that relate each equation in the file to other equations in the file. Use the Latex equation labels to reference equations.
list of variables
The following latex file contains equations and variables. Provide a list, formatted as Latex, of every unique variable and a description of that variable. For each entry in the list include a reference to the labeled equations where each variable is used. Write out just the Latex list as your answer.
convert from Latex to HTML table
Create an HTML table with one row per step. Columns are - input expression(s), - output expression(s) - transform being applied that relates the inputs and outputs The first time an expression is used in the table show both the latex and the equation label. When later steps use that same expression show just the equation label.