Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently
\verb
is used to render inline code. However, that has some downsides as it does not work in moving arguments or within macros like\multicolumn
, and it doesn't break long inline code lines. This PR changes the implementation to use\texttt
, which fixes those issues.The PR provides three patches which can be integration tested with the following script to create test cases as described below:
for main
pdflatex test_0.tex
results in the following error:! LaTeX Error: Unknown option 'normalem' for package 'ulem'.
With 866bc2f it works as expectedfor main
pdflatex test_1.tex
results in another error:With 1fba480 it works as expected
For 1fba480
pdflatex test_2.tex
shows the behavior of the original implementation of inline code rendering:Finally, this PR's main contribution is the changed implementation of inline code rendering in 4a97c28 the result of which can be seen here: