Skip to content

#noc/#equ inline equations? #420

Answered by Proektsoftbg
javila asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

You can collect multiple lines as a single line in the output by starting the first line with a <p> tag, putting all intermediate lines in
<span>...</span> and ending the last line with </p>. Please try the following code:

#nosub
'<p>Simple example:
'<span>'a = 1', 'b = 2', 'c = 3'</span>
#noc
'<span>'d*c ≡ a*b'</span>
#equ
'<span>&there4;'d = a*b/c'</p>

Then you must get:

Although code is not calculated, it is still parsed and checked for validity. Parsing is needed not only for calculations, but also for rendering the output. Since = is the assignment operator and not equality, a = b = c is not valid expression in Calcpad.
What I do in such cases is to put the = in comments:

#noc
…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by javila
Comment options

You must be logged in to vote
1 reply
@Proektsoftbg
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants