Proektsoftbg / Calcpad

Free and open source software for mathematical and engineering calculations.
https://calcpad.eu
MIT License
321 stars 39 forks source link

Reference text on the same line when export to word #240

Closed BasilioPV closed 6 months ago

BasilioPV commented 6 months ago

The following code:

image

Shows correctly at Calcpad:

image

But when export to Word shows:

image

How can I get a word output similar to the Calcpad's render?

Proektsoftbg commented 6 months ago

Hi!

We know that. For now, we cannot convert Html floating text to Word. So, this is the way refs are currently exported. You can leave them this way, it does not look so bad. :)

Another option, that is also not perfect is to add the refs on the same line with span: 'Length -'a = 2m'<span class="ref">[ref]</span> It will show on the same line win Word, but not right aligned. You can quickly align them later with tabs, and you will skip the extra line.

Finally, you can align refs manually in the code with Em-spaces: 'Length -'a = 2m'                                  <span class="ref">[ref]</span>

It is a little more difficult to code, but there will be nothing to do in Word later. It all depends on whether your code is for one time use or will be used multiple times.

We will improve this in the future versions.

BasilioPV commented 6 months ago

Thanks!