2

am using this: %%% https://tex.stackexchange.com/a/97188/27721

\usepackage{array}
\newcolumntype{Z}{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}X}

and would like to use (that is, integrate into the above) sth like that:

{>{\hsize=1.5\hsize}X>{\hsize=0.5\hsize}X}

(which is taken from David's tabularx manual)

how?

PS:

\begin{tabularx}{\textwidth}{@{}*{1}{p{\mylengthydate}}*{1}{X}*{1}{Z}@{}}

UPDATE

Expanded the question with proper MWE here:

6
  • 1
    Have you tried {>{\hsize=1.5\hsize}Z>{\hsize=0.5\hsize}Z}?
    – Mico
    Commented Jul 14, 2015 at 9:24
  • 1
    Just use the Z column you have defined? Commented Jul 14, 2015 at 9:25
  • Instead of *{1}{p{\mylengthydate}}*{1}{X}*{1}{Z}, it's perfectly OK to write p{\mylengthydate} X Z.
    – Mico
    Commented Jul 14, 2015 at 9:30
  • @Mico Syntactically, how could I add {>{\hsize=1.5\hsize}Z>{\hsize=0.5\hsize}Z} or equivalent to the section before \begin{document}? To integrate it with \newcolumntype or sth else? Commented Jul 14, 2015 at 9:37

1 Answer 1

4

Assuming you want the X column to be three times as wide as the Z column -- as well as the Z column type being defined as in your query above and there being no whitespace to the left of the first column or to the right of the final column -- you could set up the structure of the tabularx environment as follows:

begin{tabularx}{\textwidth}{@{} p{\mylengthydate} 
                                >{\hsize=1.5\hsize}X 
                                >{\hsize=0.5\hsize}Z @{}}
2
  • In more LaTeX sense >{\setlength\hsize{1.5\hsize}}X ...
    – Zarko
    Commented Jul 14, 2015 at 10:10
  • @Zarko - I feel comfortable with the syntax proposed in the user guide of the tabularx package...
    – Mico
    Commented Jul 14, 2015 at 14:14

You must log in to answer this question.

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