Page MenuHomePhabricator

MathML with SVG or PNG causes "Undefined control sequence \emph"
Open, Needs TriagePublic

Event Timeline

He7d3r created this task.Jul 27 2016, 12:45 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 27 2016, 12:45 PM
He7d3r updated the task description. (Show Details)Jul 27 2016, 1:07 PM

According to https://en.wikipedia.org/wiki/Help:Displaying_a_formula \emph doesn't seem to be valid command anyway. What is it supposed to do?

Trizek-WMF updated the task description. (Show Details)Jul 29 2016, 2:48 PM
Pkra added a subscriber: Pkra.EditedDec 7 2018, 8:19 AM

\emph is a text mode macro in LaTeX (even though it can be used in math mode, it will actually switch back to text mode again).

If the main goal is italic text elements inside math tags, then \textit would be the appropriate choice - this would be equivalent to ''...'' in wikitext (which generates <i> in HTML but the HTML5 semantics of <i> are not very useful in practice, e.g., for accessibility).

If the goal is emphasis (similar to <em> in HTML), then that's a more complex issue. Especially, if the main point is to get \emph's behavior of adapating to the surroundings (italic in normal context, normal in italic content).

Pkra moved this task from Incoming to Doing on the Math board.Dec 7 2018, 11:17 AM