Hi!
I wanted some of my Obsidian tables to resemble Latex tables, so I got this CSS that kinda does the job. Mind you I’m new to Obsidian and this may not work for everyone, I’m no computer wizard.
Specify the CSS class on frontmatter for the note:
---
cssclass: academia
---
Use the following CSS snippet:
/* Latex table */
/* ------------------------------------*/
.academia table {
border-collapse: collapse;
border-spacing: 0;
width: auto;
max-width: 100%;
border-top: 2.27px solid black;
border-bottom: 2.27px solid black;
overflow-x: auto;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
.academia th,
.academia td {
border: 0 none !important;
text-align: left;
padding: 0.5rem;
line-height: 1.1;
}
.academia tr:hover,
.academia td:hover {
background-color: #cccccc;
}
.academia table > tbody > tr:first-child > td,
.academia table > tbody > tr:first-child > th {
border-top: 1.36px solid black !important;
}
.academia table > tbody > tr:last-child > td,
.academia table > tbody > tr:last-child > th {
border-bottom: 1.36px solid black !important;
}
.academia thead th {
background-color: white !important;
font-weight: 700;
}
.academia tr:nth-child(even) { background-color: #dddddd ; }
/* ------------------------------------*/
If you want no odd lines background color, just remove CSS last line!
A caption line is made using this line above the table markdown code:
<caption><b>Table 1.1</b> - A sample table with a descriptive caption.</caption>
The end result is quite similar:

It’s just a cosmetic thing, I’m still lurking about on how to have some dynamic tables inside my notes (ie. embeded airtable views,) and I’m yet to explore how that Dataview plugin might automate things inside Obsidian, but this works fine to keep note tables visuals the Latex way.