0

In the table below, how can I have non-zero \aboverulesep & \belowrulesep for proper vertical spacing, without ruining the vertical lines and the cell coloring?

With the default vertical spacing the table is ruined (see Table 1); with zero \aboverulesep & \belowrulesep the vertical lines and the cell coloring "work", but the vertical spacing is too narrow (see Table 2).

In other words: how can I modify Table 2 to have the same vertical spacing as Table 1?

Thanks and regards, Jorge.

UPDATE: MWE changed to a more realistic case (which includes contiguous rows not adjacent to horizontal rules)

Example (improved):

\documentclass{article}
\usepackage{newtxtext}
\usepackage{newtxmath}

% Roman subscripts
\catcode`_=\active
\newcommand{_}{\ifmmode\expandafter\sbrm\else\string_\fi}
\newcommand{\sbrm}[1]{\sb{\mathrm{#1}}}

% Tables
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{makecell}
\usepackage{xcolor,colortbl}
\definecolor{cellHighlightColor}{rgb}{0.933333333333333   0.956862745098039   0.984313725490196}
\newcolumntype{a}{>{\columncolor{cellHighlightColor}\centering\arraybackslash\leavevmode}p{\ColWidthNormal}}
\newcolumntype{b}{>{\centering\arraybackslash\leavevmode}p{\ColWidthNormal}}
\newcolumntype{d}{>{\centering\arraybackslash\leavevmode}p{\ColWidthWide}}
\newcolumntype{j}{@{\hspace{\ColIndentNormal}}l|}
\renewcommand{\arraystretch}{1.2}
\newlength{\ColWidthNormal}         \setlength{\ColWidthNormal}{1.40cm}
\newlength{\ColWidthWide}           \setlength{\ColWidthWide}{1.85cm}
\newlength{\ColIndentNormal}        \setlength{\ColIndentNormal}{6pt}
\newlength{\RuleWidthNormal}        \setlength{\RuleWidthNormal}{1.0pt}
\newlength{\RuleWidthThick}         \setlength{\RuleWidthThick}{1.5pt}

\begin{document}


% Table 1: good vertical spacing, ``cut'' cell coloring and vertical lines
\begin{table}[!ht]
\centering
\caption{Vertical spacing OK but cell colors and vertical lines appear ``cut''!}
\begin{small}
\begin{tabular}{
    @{\hspace{\ColIndentNormal}}p{1.20cm}
    >{\raggedleft\arraybackslash}p{0.90cm}@{\hspace{9pt}}|
    a|b|b|b|d|b
}
\midrule[\RuleWidthThick]
\multicolumn{2}{j}{}& & [17]& [12]& [5]& [13]& [14]\\
\multicolumn{2}{j}{}& & Moon& Shibata& Ali& {\small El-Chammas}& Ali \\
\multicolumn{2}{j}{}& \multirowcell{-3}{\textbf{This}\\\textbf{work}}& VLSI'17& ISSCC'17& VLSI'16& ISSCC'15& ISSCC'14\\
\midrule[\RuleWidthNormal]
\multicolumn{2}{j}{Resolution [b]}& \textbf{12}& 10& --& 14& 14& 14\\
\multicolumn{2}{j}{Technology [m]}& \textbf{28n}& 28n& 28n& 28n& 180n& 65n\\
\rowcolor{cellHighlightColor}\multicolumn{2}{j}{Supplies [V]}& \textbf{0.9}& 1.0& 1.8/$\pm$1.0& 2.5/1.8/0.9& 3.3/1.8& 3.3/2.5/1.2\\
\multicolumn{2}{j}{Input range [V$_{pp,d}$]}& \textbf{1.6}& --& 2.0& --& 2.5& 2.0\\
\rowcolor{cellHighlightColor}\multicolumn{2}{j}{Sampling rate [Hz]}& \textbf{600M}& 500M& 9G& 2.5G& 500M& 1G\\
\multicolumn{2}{j}{ERBW [Hz]}& \textbf{400M}& --& 1.125G& 1.5G& 700M& 1G\\
\midrule[\RuleWidthNormal]
\rowcolor{cellHighlightColor}ENOB& LF in.& \textbf{9.51}& 9.1& --& 10.3& 10.5& 11.2\\
\rowcolor{cellHighlightColor}{[b]}& Nyquist& \textbf{9.45}& 9.1& 10.7& 10& 10.3& 11\\
\midrule
SNDR& LF in.& \textbf{59.0}& 56.7& --& 64& 64.8& 69\\
{[dB]}& Nyquist& \textbf{58.7}& 56.6& 66& 61.7& 64& 68\\
\midrule
SFDR& LF in.& \textbf{71.9}& 73& 79& 80& 93& 86\\
{[dBc]}& Nyquist& \textbf{72.4}& 69.2& 79& 73& 82& 82\\
\midrule[\RuleWidthNormal]
\rowcolor{cellHighlightColor}\multicolumn{2}{j}{Power [W]}& \textbf{14.5m}& 6m& 2330m& 1150m& 550m& 1200m\\
\multicolumn{2}{j}{FoM$_{W}$ [J/c.-step]}& \textbf{34.4f}& 22f& 715f& 463f& 849f& 585f\\
\multicolumn{2}{j}{FoM$_{S}$ [dB]}& \textbf{161.9}& 162.8& 152.3& 152.1& 150.6& 154.2\\
\rowcolor{cellHighlightColor}\multicolumn{2}{j}{Area [mm$^{2}$]}& \textbf{0.621}& 0.015& 5.1& 14.4& 2.5& 18\\
\midrule[\RuleWidthThick]
\end{tabular}
\end{small}
\end{table}


% Table 2: cell coloring and vertical lines OK, bad vertical spacing (too narrow)
\aboverulesep=0ex
\belowrulesep=0ex
\begin{table}[!ht]
\centering
\caption{Cell colors and vertical lines OK but vertical spacing is too narrow!}
\begin{small}
\begin{tabular}{
    @{\hspace{\ColIndentNormal}}p{1.20cm}
    >{\raggedleft\arraybackslash}p{0.90cm}@{\hspace{9pt}}|
    a|b|b|b|d|b
}
\midrule[\RuleWidthThick]
\multicolumn{2}{j}{}& & [17]& [12]& [5]& [13]& [14]\\
\multicolumn{2}{j}{}& & Moon& Shibata& Ali& {\small El-Chammas}& Ali \\
\multicolumn{2}{j}{}& \multirowcell{-3}{\textbf{This}\\\textbf{work}}& VLSI'17& ISSCC'17& VLSI'16& ISSCC'15& ISSCC'14\\
\midrule[\RuleWidthNormal]
\multicolumn{2}{j}{Resolution [b]}& \textbf{12}& 10& --& 14& 14& 14\\
\multicolumn{2}{j}{Technology [m]}& \textbf{28n}& 28n& 28n& 28n& 180n& 65n\\
\rowcolor{cellHighlightColor}\multicolumn{2}{j}{Supplies [V]}& \textbf{0.9}& 1.0& 1.8/$\pm$1.0& 2.5/1.8/0.9& 3.3/1.8& 3.3/2.5/1.2\\
\multicolumn{2}{j}{Input range [V$_{pp,d}$]}& \textbf{1.6}& --& 2.0& --& 2.5& 2.0\\
\rowcolor{cellHighlightColor}\multicolumn{2}{j}{Sampling rate [Hz]}& \textbf{600M}& 500M& 9G& 2.5G& 500M& 1G\\
\multicolumn{2}{j}{ERBW [Hz]}& \textbf{400M}& --& 1.125G& 1.5G& 700M& 1G\\
\midrule[\RuleWidthNormal]
\rowcolor{cellHighlightColor}ENOB& LF in.& \textbf{9.51}& 9.1& --& 10.3& 10.5& 11.2\\
\rowcolor{cellHighlightColor}{[b]}& Nyquist& \textbf{9.45}& 9.1& 10.7& 10& 10.3& 11\\
\midrule
SNDR& LF in.& \textbf{59.0}& 56.7& --& 64& 64.8& 69\\
{[dB]}& Nyquist& \textbf{58.7}& 56.6& 66& 61.7& 64& 68\\
\midrule
SFDR& LF in.& \textbf{71.9}& 73& 79& 80& 93& 86\\
{[dBc]}& Nyquist& \textbf{72.4}& 69.2& 79& 73& 82& 82\\
\midrule[\RuleWidthNormal]
\rowcolor{cellHighlightColor}\multicolumn{2}{j}{Power [W]}& \textbf{14.5m}& 6m& 2330m& 1150m& 550m& 1200m\\
\multicolumn{2}{j}{FoM$_{W}$ [J/c.-step]}& \textbf{34.4f}& 22f& 715f& 463f& 849f& 585f\\
\multicolumn{2}{j}{FoM$_{S}$ [dB]}& \textbf{161.9}& 162.8& 152.3& 152.1& 150.6& 154.2\\
\rowcolor{cellHighlightColor}\multicolumn{2}{j}{Area [mm$^{2}$]}& \textbf{0.621}& 0.015& 5.1& 14.4& 2.5& 18\\
\midrule[\RuleWidthThick]
\end{tabular}
\end{small}
\end{table}

\end{document} 

Output (desired output would be Table 2 with the vertical spacing as in Table 1): enter image description here

Example (original):

\documentclass{article}
\usepackage{newtxtext}
\usepackage{newtxmath}
\usepackage{siunitx}

% Roman subscripts
\catcode`_=\active
\newcommand{_}{\ifmmode\expandafter\sbrm\else\string_\fi}
\newcommand{\sbrm}[1]{\sb{\mathrm{#1}}}

% Tables
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{makecell}

% Cell coloring
\usepackage{xcolor,colortbl}
\definecolor{cellHighlightColor}{rgb}{0.933333333333333   0.956862745098039   0.984313725490196}
\newcolumntype{a}{>{\columncolor{cellHighlightColor}\centering\arraybackslash\leavevmode}p{\ColWidthNormal}}
\newcolumntype{b}{>{\centering\arraybackslash\leavevmode}p{\ColWidthNormal}}
\newcommand\ColoredCellOneByOne[1]{\multicolumn{1}{c}{\cellcolor{cellHighlightColor}{#1}}}

% Custom dimensions & default values
\renewcommand{\arraystretch}{1.2}
\newlength{\ColWidthNormal}         \setlength{\ColWidthNormal}{1.70cm}
\newlength{\ColIndentNormal}        \setlength{\ColIndentNormal}{6pt}
\newlength{\RuleWidthNormal}        \setlength{\RuleWidthNormal}{1.0pt}
\newlength{\RuleWidthThick}         \setlength{\RuleWidthThick}{1.5pt}


\begin{document}

% Table 1: good vertical spacing, ``cut'' cell coloring and vertical lines 
\begin{table}[!ht]
\centering
\caption{Vertical spacing OK but cell colors and vertical lines appear ``cut''!}
\begin{tabular}{@{\hspace{\ColIndentNormal}}p{2.5cm}|a|b|b|b}
\midrule[\RuleWidthThick]
\multicolumn{1}{c|}{Parameter} & Stage 1 & Stage 2 & Stage 3 & \ColoredCellOneByOne{Total}\\
\midrule[\RuleWidthNormal]
W$_{M_{Pi}}$, W$_{M_{Ni}}$ & \SI{16}{\micro\meter} & \SI{8}{\micro\meter} & \SI{8}{\micro\meter} & -- \\
\midrule
W$_{M_{Pbias}}$, W$_{M_{Nbias}}$ & -- & \SI{1.2}{\micro\meter} & -- & -- \\
\midrule
L$_{M_{Pi}}$, L$_{M_{Ni}}$ & \multicolumn{3}{c|}{\SI{30}{\nano\meter}} & -- \\
\midrule[\RuleWidthNormal]
\rowcolor{cellHighlightColor} I$_{avg}$ @ \SI{600}{\mega\hertz} & \SI{1.5}{\milli\ampere} & \SI{0.6}{\milli\ampere} & \SI{100}{\micro\ampere} & \SI{2.2}{\milli\ampere} \\
\midrule
Gain & \SI{16}{\deci\bel} & \multicolumn{2}{c|}{\SI{26}{\deci\bel}} & \SI{42}{\deci\bel}\\
\midrule[\RuleWidthThick]
\end{tabular}
\end{table}

% Table 2: cell coloring and vertical lines OK, bad vertical spacing (too narrow)
\aboverulesep=0ex
\belowrulesep=0ex
\begin{table}[!ht]
\centering
\caption{Cell colors and vertical lines OK but vertical spacing is too narrow!}
\begin{tabular}{@{\hspace{\ColIndentNormal}}p{2.5cm}|a|b|b|b}
\midrule[\RuleWidthThick]
\multicolumn{1}{c|}{Parameter} & Stage 1 & Stage 2 & Stage 3 & \ColoredCellOneByOne{Total}\\
\midrule[\RuleWidthNormal]
W$_{M_{Pi}}$, W$_{M_{Ni}}$ & \SI{16}{\micro\meter} & \SI{8}{\micro\meter} & \SI{8}{\micro\meter} & -- \\
\midrule
W$_{M_{Pbias}}$, W$_{M_{Nbias}}$ & -- & \SI{1.2}{\micro\meter} & -- & -- \\
\midrule
L$_{M_{Pi}}$, L$_{M_{Ni}}$ & \multicolumn{3}{c|}{\SI{30}{\nano\meter}} & -- \\
\midrule[\RuleWidthNormal]
\rowcolor{cellHighlightColor} I$_{avg}$ @ \SI{600}{\mega\hertz} & \SI{1.5}{\milli\ampere} & \SI{0.6}{\milli\ampere} & \SI{100}{\micro\ampere} & \SI{2.2}{\milli\ampere} \\
\midrule
Gain & \SI{16}{\deci\bel} & \multicolumn{2}{c|}{\SI{26}{\deci\bel}} & \SI{42}{\deci\bel}\\
\midrule[\RuleWidthThick]
\end{tabular}
\end{table}

\end{document}

Output (desired output would be Table 2 with the vertical spacing as in Table 1):

enter image description here

1 Answer 1

3

try the following:

  • to preamble add

    \usepackage{cellspace}
    \setlength\cellspacetoplimit{7pt}
    \setlength\cellspacebottomlimit{7pt}
    
    \newcommand\mcl[1]{\multicolumn{2}{l|}{#1}} % for shorter table code
    
  • change tabular declaration to:

    \begin{table}[!htb]
    \aboverulesep=0ex
    \belowrulesep=0ex
    \centering
    \caption{Cell colors and vertical lines OK but vertical spacing is too narrow!}
    \small          % <--- changed
    \begin{tabular}{S{p{0.8cm}} S{p{1.5cm}}|
        >{\bfseries}a|b |b|b |d|b
                }
    

and you will obtain:

enter image description here

edit (2): with your "more realistic" table, the solution principle is the same as before (in the first version of answer). now i a little bit clean up your table (by defining new command \mcl).

enter image description here

\documentclass{article}
\usepackage{newtxtext}
\usepackage{newtxmath}

% Roman subscripts
\catcode`_=\active
\newcommand{_}{\ifmmode\expandafter\sbrm\else\string_\fi}
\newcommand{\sbrm}[1]{\sb{\mathrm{#1}}}

% Tables
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{makecell}
\usepackage[table]{xcolor}% <--- changed
\definecolor{cellHighlightColor}{rgb}{0.933333333333333   0.956862745098039   0.984313725490196}
\newcolumntype{a}{>{\columncolor{cellHighlightColor}\centering\arraybackslash\leavevmode}p{\ColWidthNormal}}
\newcolumntype{b}{>{\centering\arraybackslash\leavevmode}p{\ColWidthNormal}}
\newcolumntype{d}{>{\centering\arraybackslash\leavevmode}p{\ColWidthWide}}
% \newcolumntype{j}{@{\hspace{\ColIndentNormal}}l|} % <--- not used
\newlength{\ColWidthNormal}         \setlength{\ColWidthNormal}{1.40cm}
\newlength{\ColWidthWide}           \setlength{\ColWidthWide}{1.85cm}
\newlength{\ColIndentNormal}        \setlength{\ColIndentNormal}{6pt}
\newlength{\RuleWidthNormal}        \setlength{\RuleWidthNormal}{1.0pt}
\newlength{\RuleWidthThick}         \setlength{\RuleWidthThick}{1.5pt}

% new
\usepackage{cellspace}
\setlength\cellspacetoplimit{5pt}
\setlength\cellspacebottomlimit{5pt}
\newcommand\mcl[1]{\multicolumn{2}{Sl|}{#1}}

\begin{document}
    \begin{table}[!htb]
\aboverulesep=0ex
\belowrulesep=0ex
\centering
\caption{Cell colors and vertical lines OK but vertical spacing is too narrow!}
\small          % <--- changed
\begin{tabular}{S{p{0.8cm}} S{p{1.5cm}}|
    >{\bfseries}a|b |b|b |d|b
                }
\toprule[\RuleWidthThick]
\mcl{}  &       & [17]      & [12]      & [5]       & [13]         & [14]       \\
\mcl{}  &       & Moon      & Shibata   & Ali       & El-Chammas   & Ali        \\
\mcl{}  & \multirow{-3}{=}{This\\ work}
                & VLSI'17   & ISSCC'17  & VLSI'16   & ISSCC'15  & ISSCC'14      \\
\midrule[\RuleWidthNormal]
\mcl{Resolution [b]}
        & 12    & 10        & --        & 14        & 14        & 14            \\
\mcl{Technology [m]}
                    & 28n   & 28n   & 28n       & 28n       & 180n      & 65n   \\
\rowcolor{cellHighlightColor}
\mcl{Supplies [V]}  & 0.9   & 1.0   & 1.8$\pm$1.0
                                                & 2.5/1.8/0.9
                                                            & 3.3/1.8   & 3.3/2.5/1.2   \\
\mcl{Input range [V$_{pp,d}$]}
                    & 1.6   & --    & 2.0       & --        & 2.5       & 2.0   \\
\rowcolor{cellHighlightColor}
\mcl{Sampling rate [Hz]}
                    & 600   & 500M  & 9G        & 2.5G      & 500M      & 1G    \\
\mcl{ERBW [Hz]}
                    & 400M  & --    & 1.125G    & 1.5G      & 700M      & 1G    \\
\midrule[\RuleWidthNormal]
\rowcolor{cellHighlightColor}
ENOB    & LF in.    & 9.51  & 9.1       & --        & 10.3  & 10.5      & 11.2  \\
{[b]}   & Nyquist   & 9.45  & 9.1       & 10.7      & 10    & 10.3      & 11    \\
\midrule
SNDR    & LF in.    & 59.0  & 56.7      & --        & 64    & 64.8      & 69    \\
{[dB]}  & Nyquist   & 58.7  & 56.6      & 66        & 61.7  & 64        & 68    \\
\midrule
SFDR    & LF in.    & 71.9  & 73        & 79        & 80    & 93        & 86    \\
{[dBc]} & Nyquist   & 72.4  & 69.2      & 79        & 73    & 82        & 82    \\
\midrule[\RuleWidthNormal]
\rowcolor{cellHighlightColor}
\mcl{Power [W]}     & 14.5m & 6m        & 2330m     & 1150m & 550m      & 1200m \\
\mcl{FoM$_{W}$ [J/c.-step]}
                    & 34.4f & 22f       & 715f      & 463f  & 849f      & 585f  \\
\mcl{FoM$_{S}$ [dB]}
                    & 161.9 & 162.8     & 152.3     & 152.1 & 150.6     & 154.2 \\
\rowcolor{cellHighlightColor}
\mcl{Area [mm$^{2}$]}
                    & 0.621 & 0.015     & 5.1       & 14.4  & 2.5       & 18        \\
\bottomrule[\RuleWidthThick]
\end{tabular}
    \end{table}
\end{document}

however, i would simplify your table design as follows (by use of tabularx and default thickness of the rules from the booktabs package:

\documentclass{article}
\usepackage{newtxtext}
\usepackage{newtxmath}
% Tables
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{makecell}
\usepackage[table]{xcolor}% <--- changed
\definecolor{cellHighlightColor}{rgb}{0.933333333333333   0.956862745098039   0.984313725490196}

% new
\usepackage{tabularx}
\newcolumntype{C}{>{\centering\arraybackslash}X}
\usepackage{cellspace}
\setlength\cellspacetoplimit{7pt}
\setlength\cellspacebottomlimit{7pt}
\newcommand\mcl[1]{\multicolumn{2}{l|}{#1}}

\begin{document}
    \begin{table}[!ht]
\aboverulesep=0ex
\belowrulesep=0ex
\centering
\caption{Cell colors and vertical lines OK but vertical spacing is too narrow!}
\small          % <--- changed
\setlength\tabcolsep{3pt}
\begin{tabularx}{\linewidth}{S{C} S{C}|
    >{\columncolor{cellHighlightColor}\bfseries}C|C |C|C |
     c|C
                }
\toprule
\mcl{}  &       & [17]      & [12]      & [5]       & [13]      & [14]          \\
\mcl{}  &       & Moon      & Shibata   & Ali       & El-Chammas    & Ali       \\
\mcl{}  & \multirow{-3}{=}{\centering   This\\ work}
                & VLSI'17   & ISSCC'17  & VLSI'16   & ISSCC'15  & ISSCC'14      \\
\midrule[\heavyrulewidth]
\mcl{Resolution [b]}
        & 12    & 10        & --        & 14        & 14        & 14            \\
\mcl{Technology [m]}
                    & 28n   & 28n   & 28n       & 28n       & 180n      & 65n   \\
\rowcolor{cellHighlightColor}
\mcl{Supplies [V]}  & 0.9   & 1.0   & 1.8$\pm$1.0
                                                & 2.5/1.8/0.9
                                                            & 3.3/1.8   & 3.3/2.5/1.2   \\
\mcl{Input range [V$_{pp,d}$]}
                    & 1.6   & --    & 2.0       & --        & 2.5       & 2.0   \\
\rowcolor{cellHighlightColor}
\mcl{Sampling rate [Hz]}
                    & 600   & 500M  & 9G        & 2.5G      & 500M      & 1G    \\
\mcl{ERBW [Hz]}
                    & 400M  & --    & 1.125G    & 1.5G      & 700M      & 1G    \\
\midrule[\heavyrulewidth]
\rowcolor{cellHighlightColor}
ENOB    & LF in.    & 9.51  & 9.1       & --        & 10.3  & 10.5      & 11.2  \\
{[b]}   & Nyquist   & 9.45  & 9.1       & 10.7      & 10    & 10.3      & 11    \\
\midrule
SNDR    & LF in.    & 59.0  & 56.7      & --        & 64    & 64.8      & 69    \\
{[dB]}  & Nyquist   & 58.7  & 56.6      & 66        & 61.7  & 64        & 68    \\
\midrule
SFDR    & LF in.    & 71.9  & 73        & 79        & 80    & 93        & 86    \\
{[dBc]} & Nyquist   & 72.4  & 69.2      & 79        & 73    & 82        & 82    \\
\midrule[\heavyrulewidth]
\rowcolor{cellHighlightColor}
\mcl{Power [W]}     & 14.5m & 6m        & 2330m     & 1150m & 550m      & 1200m \\
\mcl{FoM$_{W}$ [J/c.-step]}
                    & 34.4f & 22f       & 715f      & 463f  & 849f      & 585f  \\
\mcl{FoM$_{S}$ [dB]}
                    & 161.9 & 162.8     & 152.3     & 152.1 & 150.6     & 154.2 \\
\rowcolor{cellHighlightColor}
\mcl{Area [mm$^{2}$]}
                    & 0.621 & 0.015     & 5.1       & 14.4  & 2.5       & 18        \\
\bottomrule
\end{tabularx}
    \end{table}
\end{document}

which gives similar result as the first mwe:

enter image description here

6
  • Thanks for the reply, Zarko!. I implemented the changes but the coloring and vertical lines still look "cut"... could you please post the full solution? Either something is missing or my Tex environment is broken :\
    – dontpanic
    Aug 6, 2018 at 0:09
  • Awesome, this solves the problem! Thanks so much again, Zarko! Small question: what does the capital "C" mean? In the documentation for cellspace they mention the default column name "S" can be changed through the option [column=], but I don't see this being used... is it something else?
    – dontpanic
    Aug 6, 2018 at 1:02
  • 1
    when you use the siunitx package (as you do), than you had to change S to C. see siunitx documentation.
    – Zarko
    Aug 6, 2018 at 1:04
  • Hum... when applying the solution to more complex tables I've realized that the use of cellspace changes the spacing between ALL rows, not just the ones adjacent to a rule, which unfortunately impacts greatly the look of the tables! I will post a more realistic example asap so you can see what I mean...
    – dontpanic
    Aug 6, 2018 at 2:16
  • 1
    see edited answer (after some mess/problems at uploading it) i finally managed to provide two solutions for your "more realistic".
    – Zarko
    Aug 6, 2018 at 9:33

You must log in to answer this question.

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