JDMCreator / LaTeXTableEditor

readme
MIT License
139 stars 13 forks source link

Issue with narrow columns when 'shrink table' option is activated #27

Open Warborn123 opened 4 years ago

Warborn123 commented 4 years ago

When I created a table, the title of the "ATQA value" floating around like this : Untitled

Warborn123 commented 4 years ago

Here is the code generated:

% \usepackage{array}
% \usepackage{graphicx}
% \usepackage{hhline}

\begin{table}
\centering
\resizebox{\linewidth}{!}{%
\begin{tabular}{|>{\hspace{0pt}}p{0.06\linewidth}|>{\hspace{0pt}}p{0.077\linewidth}|>{\hspace{0pt}}p{0.035\linewidth}|>{\hspace{0pt}}p{0.04\linewidth}|>{\hspace{0pt}}p{0.251\linewidth}|>{\hspace{0pt}}p{0.276\linewidth}|>{\hspace{0pt}}p{0.175\linewidth}|} 
\hline
SAK Mode & UID          & ATQA  & SAK~   & TYPE                                                           & Properties                                          & TAG                               \\ 
\hhline{|=======|}
ON       & ~CD CA 75 70 & 00 02 & 98 [2] & Gemplus MPCOS                                                  & {[}=] non iso14443-4 card found, RATS not supported & {[}+] Valid ISO14443-A Tag Found  \\ 
\hline
OFF      & CD CA 75 70  & 00 02 & 18 [2] & NXP MIFARE Classic 4k \textbar{} Plus 4k SL1 \textbar{} 4k Ev1 & {[}=] non iso14443-4 card found, RATS not supported & {[}+] Valid ISO14443-A Tag Found  \\
\hline
\end{tabular}
}
\end{table}
Warborn123 commented 4 years ago

Here is the JSON:

{
    "options": {
        "latex-whitespace": false,
        "latex-border": true,
        "latex-split": false,
        "latex-landscape": false,
        "latex-float": true,
        "fit-table": "sc-sh",
        "latex-hhline": true,
        "latex-hhline-hash": false,
        "latex-tabu": false,
        "latex-microfix-alignment": false,
        "tex-escape": true,
        "tex-macro": true,
        "html-indent": "tab",
        "html-tbody": false,
        "html-remove-tag": false,
        "csv-separator": ",",
        "bbcode-header": "1",
        "pretext-indent": "two",
        "context-split": false,
        "context-landscape": false,
        "context-float": true,
        "context-indent": "two",
        "wml-indent": "four"
    },
    "autoBooktabs": false,
    "caption": {
        "caption": "",
        "numbered": false,
        "label": ""
    },
    "cells": [
        [
            {
                "dataset": {
                    "borderTop": "normal",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "double"
                },
                "html": "SAK Mode",
                "css": "border-width: 1px 1px 2px; border-style: solid solid double; border-color: rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "normal",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "double"
                },
                "html": "UID",
                "css": "border-width: 1px 1px 2px; border-style: solid solid double; border-color: rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "normal",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "double"
                },
                "html": "ATQA",
                "css": "border-width: 1px 1px 2px; border-style: solid solid double; border-color: rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "normal",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "double"
                },
                "html": "SAK ",
                "css": "border-width: 1px 1px 2px; border-style: solid solid double; border-color: rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "normal",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "double"
                },
                "html": "TYPE",
                "css": "border-width: 1px 1px 2px; border-style: solid solid double; border-color: rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "normal",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "double"
                },
                "html": "Properties",
                "css": "border-width: 1px 1px 2px; border-style: solid solid double; border-color: rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "normal",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "double"
                },
                "html": "TAG",
                "css": "border-width: 1px 1px 2px; border-style: solid solid double; border-color: rgb(0, 0, 0);"
            }
        ],
        [
            {
                "dataset": {
                    "borderTop": "double",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "normal"
                },
                "html": "ON",
                "css": "border-width: 2px 1px 1px; border-style: double solid solid; border-color: rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "double",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "normal"
                },
                "html": " CD CA 75 70",
                "css": "border-width: 2px 1px 1px; border-style: double solid solid; border-color: rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "double",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "normal"
                },
                "html": "00 02",
                "css": "border-width: 2px 1px 1px; border-style: double solid solid; border-color: rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "double",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "normal"
                },
                "html": "98 [2]",
                "css": "border-width: 2px 1px 1px; border-style: double solid solid; border-color: rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "double",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "normal"
                },
                "html": "Gemplus MPCOS",
                "css": "border-width: 2px 1px 1px; border-style: double solid solid; border-color: rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "double",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "normal"
                },
                "html": "[=] non iso14443-4 card found, RATS not supported",
                "css": "border-width: 2px 1px 1px; border-style: double solid solid; border-color: rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "double",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "normal"
                },
                "html": "[+] Valid ISO14443-A Tag Found",
                "css": "border-width: 2px 1px 1px; border-style: double solid solid; border-color: rgb(0, 0, 0);"
            }
        ],
        [
            {
                "dataset": {
                    "borderTop": "normal",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "normal"
                },
                "html": "OFF",
                "css": "border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "normal",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "normal"
                },
                "html": "CD CA 75 70",
                "css": "border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "normal",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "normal"
                },
                "html": "00 02",
                "css": "border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "normal",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "normal"
                },
                "html": "18 [2]",
                "css": "border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "normal",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "normal"
                },
                "html": "NXP MIFARE Classic 4k | Plus 4k SL1 | 4k Ev1",
                "css": "border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "normal",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "normal"
                },
                "html": "[=] non iso14443-4 card found, RATS not supported",
                "css": "border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "normal",
                    "borderLeft": "normal",
                    "borderRight": "normal",
                    "borderBottom": "normal"
                },
                "html": "[+] Valid ISO14443-A Tag Found",
                "css": "border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);"
            }
        ]
    ],
    "version": "2.0.1"
}
JDMCreator commented 4 years ago

This can happen when columns are too narrow. There are no easy way to fix this issue because it is TeX-related. One way could be to use tabulary package. However, this package is not available if the table must spans several pages.

Warborn123 commented 4 years ago

Sure, I will go check on the tabulary package, thank you for your time.