metanorma / tex2mn

Write Metanorma documents in LaTeX
https://www.metanorma.com
MIT License
2 stars 0 forks source link

Support for \emph macro #99

Closed manuelfuenmayor closed 4 years ago

manuelfuenmayor commented 4 years ago

From https://github.com/metanorma/mn-samples-tex-iso/issues/5

\emph{...} command should result in italic text in asciidoc output.

LaTeX example:

\emph{emphasis}

Current adoc output:

Emphasis

Expected adoc output:

__Emphasis__
paolobrasolin commented 4 years ago

I implemented support for \emph in https://github.com/metanorma/tex2mn/commit/004b970bc5cdef0ab3cb48865e98107659978361

However it's not possible to reproduce its usual nesting behaviour since AsciiDoc doesn't have a way to represent that (that's why I skipped that initially in favour of \textit and itshape).

Inner levels will simply be ignored but most use cases should be covered. This is made clear in the manual.

cc @manuel489

manuelfuenmayor commented 4 years ago

Got it! The fix is confirmed. Thanks @paolobrasolin! Closing.