skip to Main Content

I’m willing to increase the size of my fonts in scilab 6.1.0, but either with the menu or the command preferences(), the Preferences window doesn’t appear.

No message, nowhere, explain what have happened. I see no menu entry to find logs files outputs, in case Scilab stumbled on an exception.
And I don’t know, on Debian 11 where I am using it, where its log folder is, if it has some.

I am a beginner with scilab. It’s the first time I’m using it…

What’s the trick to make that preferences windows appearing?

2

Answers


  1. Without the preferences interface, as a workaround, you can change the preferences settings directly in the SCIHOME/XConfiguration.xml file, where SCIHOME is the path returned in the console when you type SCIHOME and validate.

    Then edit the XConfiguration.xml with you preferred code editor (Notepad++ is definitely my favorite on Windows).

    In XConfiguration.xml, find the <fonts ..>..</fonts> section. It looks like this:

      <fonts title="_(Fonts)">
        <body>
          <fonts font-face="plain" font-name="Monospaced" font-size="13" item="Console" latex="15" system="true">
            <item desktop="false" font-face="plain" font-name="Monospaced" font-size="12" name="Console" xconf-uid="console-font"/>
            <item desktop="false" font-face="plain" font-name="Monospaced" font-size="12" name="Scinotes" xconf-uid="scinotes-font"/>
            <!-- ... lines in comments-->
          </fonts>
        </body>
      </fonts>
    

    In the interface, corresponding entries look like this:
    enter image description here

    For instance, to set the Console’s font in a custom way, the item with name="Console" must have the attribute desktop="false" (to not be driven by the Desktop font), and then the font-size="THE NUMBER YOU WANT"

    Then save the file. Finally, close and restart Scilab to take the change (done in this way) into account.

    Login or Signup to reply.
  2. You will find a solution to run Scilab successfully at the end of this message but please read the whole answer.

    I installed a brand new Debian 11 virtual machine to see the actual error message:

    [Fatal Error] :1:50: White spaces are required between publicId and systemId.
    ERROR:  'Could not compile stylesheet'
    FATAL ERROR:  'The xsl:import element children must precede all other element children of an xsl:stylesheet element, including any xsl:include element children.'
               :The xsl:import element children must precede all other element children of an xsl:stylesheet element, including any xsl:include element children.
    Could not load file: /usr/share/scilab//modules/preferences/src/xslt/XConfiguration.xsl
    ...
        at org.scilab.modules.preferences.XCommonManager.generateViewDOM(Unknown Source)
        at org.scilab.modules.preferences.XCommonManager.refreshDisplay(Unknown Source)
        at org.scilab.modules.preferences.XConfigManager.displayAndWait(Unknown Source)
        at org.scilab.modules.preferences.
    

    I checked that the XConfiguration.xsl file is the same in upstream, this is actually the case. I think you should do two things:

    1. Report the problem to Debian.
    2. Download the Scilab team tar.gz distribution of Scilab at the releases page then extract the archive in your home directory (the main folder will be named scilab-6.1.1).
      You will have to install a complimentary package (needed for Debian 11) to run Scilab:
    sudo apt-get install libtinfo5
    

    Then launch scilab like this (on the command line):

    scilab-6.1.1/bin/scilab &
    

    You will see that Scilab runs smoothly and that the Preferences pane works.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search