Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Warborn123 opened this issue Aug 5, 2020 · 4 comments
Open

Comments

@Warborn123
Copy link

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

@Warborn123
Copy link
Author

Warborn123 commented Aug 5, 2020

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
Copy link
Author

Warborn123 commented Aug 5, 2020

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
Copy link
Owner

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.

@JDMCreator JDMCreator changed the title Floating titles Issue with narrow columns when 'shrink table' option is activated Aug 5, 2020
@Warborn123
Copy link
Author

Warborn123 commented Aug 6, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants