Giter Site home page Giter Site logo

Improve readability of tables about las HOT 3 CLOSED

esilvia avatar esilvia commented on August 11, 2024
Improve readability of tables

from las.

Comments (3)

esilvia avatar esilvia commented on August 11, 2024

Figured it out. Applying a global setting was a matter of adding \protected\def\sphinxstylethead{\textbf} to the preamble in conf.py.

Sphinx wraps the contents of the header row in \spinxstylethead, which by default replaces the font with a Sans Serif font (\textsf). Now it replaces it with a bold font.

Note that this won't apply to any tables that don't use the header row (separated by ========= instead of ----------), nor will it apply to tables over 30 rows long (like table 3). Large tables will need to be manually bolded.

from las.

esilvia avatar esilvia commented on August 11, 2024

Upgrading ubuntu versions updated Sphinx and broke the previous fix as expected.
Had to change from...
\protected\def\sphinxstylethead{\textbf}
to...
\protected\def\sphinxstyletheadfamily{\bfseries}
I'm posting here because it took me a couple hours to figure this out.

from las.

hobu avatar hobu commented on August 11, 2024

Thanks for finding this.

from las.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.