NicklasVraa / Obsidian-academic-export

Turn your obsidian notes into academic papers.
284 stars 18 forks source link

Text in Tables too large #16

Open Sebert81 opened 1 week ago

Sebert81 commented 1 week ago

Hi, thank you for your snippet. I like it a lot. I am not too familiar with CSS, but there is one thing I cannot figure out.

Text in Tables, First of all, I modified your code a bit so the tables have more borders. Still playing around with colours. (See code at the bottom of the post)

a) Why is the text in the cells so much larger than the headers/rest of the text? b) Why are the linebreaks so weird in the pdf:

I am using the ITS theme, but this also happens with the default theme.

grafik


    table, pre {
        page-break-inside: avoid !important;
    }
    table {
        font-family: "Latin Modern Roman 10" !important;
        font-size: 10pt !important;
        text-align: center !important;
        margin: 10px auto 5px !important;
        border-top: 1px solid #292929 !important;
        border-bottom: 1px solid #292929 !important;
        border-left: 1px solid #292929 !important;
        border-right: 1px solid #292929 !important;
    }
    th { /* Table headers. */
      color: black !important;
        border: none !important;
        font-weight: bold !important;
        border-bottom: 1px solid #292929 !important;
        padding: 2px 5px !important;
        margin: 10px auto 5px !important;
    }
      td {
        border: none !important;
        border: 1px solid darkgray !important;*/ 
        border-bottom: 1px solid darkgray!important;
        padding: 2px 5px !important;
     }
NicklasVraa commented 1 week ago

Hey, I'm glad you like it. Since I'm not using the export snippet myself anymore, I haven't been updating it as new releases of obsidian have rolled out. Feel free to add your own fixes and submit a pull request :)