, March 29, 2020 10:50 PM
To: Discussion list for LON-CAPA users
Subject: Re: [LON-CAPA-users] Math Display Problem
The \ in $PwrIntegral need to be escaped.
Try:
$PwrIntegral = "p(x) = \\frac{1}{T} \\int_0^T v(x) i(x) dx”;
\\ escapes the left slash and puts a single left slash in.
\ is us
The \ in $PwrIntegral need to be escaped.
Try:
$PwrIntegral = "p(x) = \\frac{1}{T} \\int_0^T v(x) i(x) dx”;
\\ escapes the left slash and puts a single left slash in.
\ is used to include special characters in a perl string: \n - newline, \r -
carriage return.
It thought \f and \i were special
Gene,
The issue is in the inclusion of the math as a variable in the math tag.
If I just plug it in regularly, it works:
I just placed this in the textblock and the top worked, the bottom didn’t.
Integral: $p(x) = \frac{1}{T} \int_0^T v(x) i(x)
dx$
Tag: $ $PwrIntegral $
I also placed the
Hi,
I am having trouble getting equations to render properly. I have done this
before, and have even tried directly copying code I have used before, but
cannot get it to display properly.
This is one of the equation definitions:
$PwrIntegral = "p(x) = \frac{1}{T} \int_0^T v(x) i(x) dx";
This