Anthrazit

750 Reputation

11 Badges

5 years, 292 days

MaplePrimes Activity


These are questions asked by Anthrazit

Any idea how I can get the number of elements in an exprseq after a SearchAll command?

numelems apparently is not the right function.


 

with(StringTools)

a := "tre - tre - tre"

"tre - tre - tre"

(1)

b := SearchAll("-", a)

5, 11

(2)

whattype(b)

exprseq

(3)

numelems(b)

Error, invalid input: numelems expects 1 argument, but received 2

 

``


 

Download numelems.mw

Here's another possible bug related to special characters (like ø, æ, å).

SubString considers each of the characters to be consisting of 2 different other ones.

Related to https://www.mapleprimes.com/questions/231765-Special-Characters-In-Maple-Workbook-Code.

with(StringTools)

a := "Øyeblikk"

"Øyeblikk"

(1)

SubString(a, 2 .. ())

"�yeblikk"

(2)

SubString(a, 1 .. ())

"Øyeblikk"

(3)

SubString(a, 3 .. ())

"yeblikk"

(4)

``

Download SubString.mw

Special characters like æ,ø,å are causing some troubles when used in Maple Code attachments in workbooks.

I've managed to get around the problem by using HTML equivalents in the first run, but then this will cause problems when exporting the same strings to Excel.

Funnily this problem just arises in Workbooks, not when using the same code in a code edit region.

Special.zip

What kind of options do I have regarding printing a document to pdf?

Even though the document I have looks nice on the screen, it doesn't fit to a A4 pdf page.

Are there any scaling options, or fit to page anywhere which I did miss?

Any idea of how to import necessary libraries for use in Maple Player?

First 11 12 13 14 15 16 17 Last Page 13 of 24