## 5.2.1 Determining the Correct Rendering Method

Looking up the correct rendering method is quite straight-forward. If the node is a text node, the textDefault attribute on the renderer is used. If it is not a text node, then the node’s name determines the key name in the renderer. In most cases, the node’s name is the same name as the LaTeX macro that created it. If the macro used some type of modifier argument (i.e. *, +, -), a name with that modifier applied to it is also searched for first. For example, if you used the tablular* environment in your LaTeX document, the renderer will look for “tabular*” first, then “tabular”. This allows you to use different rendering methods for modified and unmodified macros. If no rendering method is found, the method in the renderer’s default attribute is used.