metanorma / tex2mn

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

Some commands for paragraph alignment are not working #101

Open manuelfuenmayor opened 4 years ago

manuelfuenmayor commented 4 years ago

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

The commands: \raggedright and \raggedleft, for paragraph alignment, seem not to be working correctly unlike flushleft and flushright environments.

For example:

{\raggedright 
Some text flushed left.
}

{\centering 
Some text centered.
}

{\raggedleft 
Some text flushed right.
}

results in the following adoc output:

[align=center]
Some text flushed left

[align=center]
Some text centered

Some text flushed right

Notice how left and right-aligned text are not encoded correctly.

Expected result should be:

[align=left]
Some text flushed left

[align=center]
Some text centered

[align=right]
Some text flushed right