0

How can i create list of abbreviation to looks like that

enter image description here

    \documentclass{article}
    \usepackage{tabularx}
    \usepackage{amsmath}
    \usepackage[table]{xcolor}
    \usepackage{tabularx, multirow, makecell, rotating} %
    \usepackage{enumitem}

        \begin{document}
        \begin{center}
    \bfseries
\settowidth\rotheadsize{List of Abbreviation/accronym}
\begin{tabularx}{\linewidth}{|c|>{\centering\arraybackslash}X|}
    %\hline
%\multicolumn{3}{|>{\centering\arraybackslash}%
                 %p{\dimexpr\linewidth-2\tabcolsep-2\arrayrulewidth\relax}|}{\cellcolor{gray!30}
    %Les sujets (traduits)}    \\
    \hline
\cellcolor{gray!30} Abbreviation & \cellcolor{gray!30} Explanation     \\
    \hline
\multirow[b]{2}{*}{USA}   
            & \cellcolor{blue !30}  United state of america
 \rule[-1em]{0pt}{2.5em} \\
    \cline{2-2}
   & 
   \rule[-1em]{0pt}{2.5em} \\
    \cline{2-2}
    &    \rule[-1em]{0pt}{2.5em} \\
    \hline
        \multirow[b]{2}{*}{NY}   
            &  \cellcolor{blue !30} New york 
 \rule[-1em]{0pt}{2.5em} \\
    \cline{2-2}
   & 
   \rule[-1em]{0pt}{2.5em} \\
    \cline{2-2}
    &     \rule[-1em]{0pt}{2.5em} \\
    \hline
\end{tabularx}
    \end{center}
        \end{document}
13
  • 1
    4 gold badges, over 1000 rep and still no mwe? -1 from me
    – cmhughes
    Apr 27, 2018 at 14:35
  • 1
    What you are calling "abbreviations" are better known as "acronyms". Look up acro and/or acronym packages. Apr 27, 2018 at 14:39
  • 2
    @StevenB.Segletes Technical an acronym is an abbreviation that can be pronounced as a word, although it's increasingly being used as a synonym for abbreviation. Apr 27, 2018 at 14:46
  • 2
    @NicolaTalbot I work for the government, and I assure you that any string of upper cased letters can be "pronounced as a word," vowels notwithstanding. Thus, I stand by my comment. ;^) Apr 27, 2018 at 14:52
  • 2
    @NicolaTalbot Examples, H-HMMWV pronounced Humvee, CSTA pronounced "siesta", AHPCRC pronounced ahipcrick, NMAH pronounced "enema". Apr 27, 2018 at 15:08

1 Answer 1

3

I just commented 6 lines of input

    \documentclass{article}
    \usepackage{tabularx}
    \usepackage{amsmath}
    \usepackage[table]{xcolor}
    \usepackage{tabularx, multirow, makecell, rotating} %
    \usepackage{enumitem}

        \begin{document}
        \begin{center}
    \bfseries
\settowidth\rotheadsize{List of Abbreviation/accronym}
\begin{tabularx}{\linewidth}{|c|>{\centering\arraybackslash}X|}
    \hline
\cellcolor{gray!30} Abbreviation & \cellcolor{gray!30} Explanation     \\
    \hline
\multirow[b]{2}{*}{USA}   
            & \cellcolor{blue!30}  United state of america
 \rule[-1em]{0pt}{2.5em} \\
    \cline{2-2}
%   & 
%   \rule[-1em]{0pt}{2.5em} \\
%    \cline{2-2}
    &    \rule[-1em]{0pt}{2.5em} \\
    \hline
        \multirow[b]{2}{*}{NY}   
            &  \cellcolor{blue!30} New york 
 \rule[-1em]{0pt}{2.5em} \\
    \cline{2-2}
%   & 
%   \rule[-1em]{0pt}{2.5em} \\
%    \cline{2-2}
    &     \rule[-1em]{0pt}{2.5em} \\
    \hline
\end{tabularx}
    \end{center}
    \end{document}

enter image description here

5
  • could you make this table spilt in tow pages
    – Educ
    Apr 27, 2018 at 15:44
  • 1
    @Educ I answered using the structure you proposed in your question, and the question had nothing to do with page breaking. I suggest looking at longtable and seeing if it can be adapted to your needs. Apr 27, 2018 at 16:38
  • 1
    @Educ It makes better sense to ask a new question, rather than to redefine the scope of the original question after answers have been provided. Perhaps providing a link back to this question, with the new question asking how to adapt the solution to break across page boundaries. Apr 27, 2018 at 16:51
  • okay I'll do it
    – Educ
    Apr 27, 2018 at 16:55
  • 1
    @Educ Great. I will roll back your question to a prior edit, so as to avoid confusion on this one. Apr 27, 2018 at 17:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .