#noc/#equ inline equations? #420
-
Hi there! Can anyone give me some tips on how to put the #noc/#equ equations (example bellow) in the same line? Unfortunately, the equations end up in different paragraphs. So far, the only solution I found was using HTML tables. However, it's not a great solution since I want/need to use it very often in a document (and the contents vertical alignment is not always pleasing, even with some CSS style tweaks)... By the way, since #noc tells Calcpad to do no calculations, I think we shouldn't get errors while using multiple = signs. What do you think?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
Hi, @Proektsoftbg! Wow. Your solution is way simpler than mine! I'll test it out soon with some of my documents and see how it goes. And, yeah... I knew I could use MathJax but I wanted to keep Calcpad's look in the whole document. BTW, this weekend I finally managed to clone the git repository and compile the source code in a Linux machine. It's wasn't that bad once I installed dotnet SDK and the wkhtmltopdf (and all dependencies). I modified (improved?) a lot of files for the CLI and I think it's pretty smooth and functional here (it may need more tests). I had to fix/rewrite/review some stuff here and there. Let me know if you want me to send you a DIFF file for some testing purposes... Something that I really think it should be modified: the name of the CLI program. In Linux, I get a program named Cli (and Linux is case sensitive). And IMHO, the program should be called calcpad-cli (or maybe just calcpad, since the Linux version didn't have a GUI yet). It would made more sense than a program simply called Cli. Oh! And I think file locations in Linux should be reviewed too (I didn't have time to do it just yet). It's kinda messy right now (I didn't "install" Calcpad, though). |
Beta Was this translation helpful? Give feedback.
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: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: