• Fantastic plugin except that you cannot use subscripts or superscripts in the table name field. You can in the table description field, but if you use this as the “name” it uses a different font to display the name. Fix this and it’s 5 star review 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi @refarrell,

    thanks for your post, and sorry for the trouble.

    I’m not sure that I understand. Do you mean subscripts and superscripts via the HTML tags <sub> and <sup>?
    These can be used in the table name as well, like in a table name:

    test<sup>2</sup><sub>3</sub>
    

    When the table name is then shown in a post or page, the sub- and superscripts will then be shown. In the “List of tables”, the HTML tags will be shown, essentially for security reasons.

    Or do you mean something else here? Can you maybe explain this more with a link or a screenshot (e.g. uploaded to a service like https://imgur.com/ and then the link posted here)?

    Regards,
    Tobias

    Thread Starter refarrell

    (@refarrell)

    Hi Tobias,

    What you describe is exactly what I am trying to do. Here is an example of a table name with the HTML tags for the superscript:

    “Total content (mg kg<sup>-1</sup>) of selected elements in order of abundance in continental crust rocks and in soils (Adapted from Bowen, 1979)”

    But when I save it and go to preview the table it shows up as:

    “Total content (mg kg-1) of selected elements in order of abundance in continental crust rocks and in soils (Adapted from Bowen, 1979)”

    and when I go back to edit mode the HTML tags are missing.

    I tried putting in the test name from your email (that is I just did a copy and paste operation) but that did not work either (i.e., the Title showed as “Table 14.1. test<sup>2</sup><sub>3</sub>

    I don’t know if it matters, but I am working in Pressbooks and this is the debug and version information:

    · Website: https://openpress.usask.ca/soilscience
    · TablePress: 1.14
    · TablePress (DB): 43
    · TablePress table scheme: 3
    · Plugin installed: 2020/08/14 10:18:56
    · WordPress: 5.8
    · Multisite: yes
    · PHP: 7.3.13-1+ubuntu18.04.1+deb.sury.org+1
    · mysqli Extension: true
    · mySQL (Server): 5.5.5-10.2.21-MariaDB-log
    · mySQL (Client): mysqlnd 5.0.12-dev – 20150407 – $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $
    · ZIP support: yes
    · UTF-8 conversion: yes
    · WP Memory Limit: 96M
    · Server Memory Limit: 256M
    · WP_DEBUG: false
    · WP_POST_REVISIONS: 50

    Something just isn’t working right and I have not been able to figure out what that is. One solution to the problem would be to make it so the table description and table name rendered in the same size (and color) font (preferably <h3>), which the folks at Pressbooks told me could be done by adding custom CSS, but that is a bit outside my comfort zone right now.

    I hope this helps explain the issue I am having, but if you need any additional information just let me know.

    Overall, I have really enjoyed using Tablepress and do think that is an excellent plugin.

    Cheers,
    Rich

    PS. I should say that the name and description fields render the same in the web version because the Pressbooks folks wrote some custom CSS code to make this happen:

    .tablepress-table-name {
    text-align: justify;
    font-size: 12pt !important;
    font-weight: bold;
    }

    .tablepress thead th,
    .tablepress tbody td {
    font-family: ‘Raleway’, san-serif;
    font-size: 12px;
    font-weight: normal;
    color: #000000;
    }

    .tablepress-table-description {
    font-family: Raleway, sans-serif;
    font-size: 1rem;
    color: #003180;
    }

    It just didn’t have an effect on the pdf version.`

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi @refarrell,

    thanks for the explanation!

    Ok, when I now look at table 14.1 (TablePress table ID 50), on https://openpress.usask.ca/soilscience/chapter/soil-mineralogy/#tablepress-50-description , I do see the <sup> working fine around the -1. This text is part of the table description.
    What I’m confused about now is that you say that this wouldn’t work? Can you maybe post a link to a screenshot of what you are seeing there and when editing the table?

    In addition, you mention something about a PDF where this doesn’t have an effect: TablePress is not involved with the PDF generation, so this is something that will need to be fixed/changed in the tool/plugin that you are using to create that PDF.

    As a side note: For that table 50, please uncheck the “Use DataTables” checkbox on its “Edit” screen. As the last row uses #colspan# to merge/connect table cells, these features can not be used with this table, and having that checkbox on leads to a JavaScript error.

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Almost great’ is closed to new replies.