wf49670 / ppgen

Post-processing generator for DP
6 stars 4 forks source link

Mathematical use of "=" causes warning #89

Open tallforasmurf opened 9 years ago

tallforasmurf commented 9 years ago
Some random paragraph with <b>legitimate</b> bold use, followed
somewhere by...

The controlling force is

.in +2
.nf c
<i>ad</i> = H
.nf-
.in
and when the needle is in equilibrium, the component <i>ae</i> = H sin <i>x</i> is
equal and opposite to <i>ac</i>, hence...

Causes **warning: both <b> and "=" found in text. markup conflict.

In this book this is only an annoyance BUT -- does it mean that if the equation(s) with equal-signs happened to precede the first use of <b> in the text, they would be taken as bold-markers? That would be a problem -- equal-signs disappearing and parts of equations bolded.

wf49670 commented 9 years ago

On 8/20/2015 3:38 PM, Nat Picker wrote:

|Some random paragraph with legitimate bold use, followed somewhere by... The controlling force is .in +2 .nf c ad = H .nf- .in and when the needle is in equilibrium, the component ae = H sin x is equal and opposite to ac, hence... |

Causes |**warning: both and "=" found in text. markup conflict.|

In this book this is only an annoyance BUT -- does it mean that if the equation(s) with equal-signs happened to precede the first use of || in the text, they would be taken as bold-markers? That would be a problem -- equal-signs disappearing and parts of equations bolded.

— Reply to this email directly or view it on GitHub https://github.com/wf49670/ppgen/issues/89.

The warning is because, in the text output and are replaced by = signs. You will, of course, have a TN stating that = represents bold text.

However, if you also have real = signs in your text, you need to make sure that your TN is worded appropriately, to avoid confusing the reader. Thus the warning message.