Hi,
By default, latex creates tables with minimum spaces. However, I want it
to reserve enough space for filling in. How can I do that?
\begin{tabular}{
|c|c|c|c|c|c|c| } \hline
Sun ~ & ~ Mon ~ & ~ Tue ~ & ~ Wed ~ & ~ Thu ~ & ~ Fri ~ & ~ Sat \\
\hline
& & & & & & \\ \hline
\end{tabular}
Q1: I haven't use latex for a while, why '~' stops working as a space?
Q2: I tried to use '@{\extracolsep{3pt}}', but the table title is not
properly centered.
Please help.
Thanks
--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
\usepackage{array}
{ | >{\centering}p{3cm} | ... | >{\centering\arraybackslash}p{4cm} | }
or something similar
--
/daleif (remove RTFSIGNATURE from email address)
LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
http://www.minimalbeispiel.de/mini-en.html
On Mon, 12 Apr 2010 13:36:21 +0000, * Tong * wrote:
> By default, latex creates tables with minimum spaces. However, I want it
> to reserve enough space for filling in. How can I do that?
>
> \begin{tabular}{
> ...column controls and table header def... \\
> \hline
> & & & & & & \\ \hline
> \end{tabular}
>
> Q1: I haven't use latex for a while, why '~' stops working as a space?
Now the problem is that the 2nd line is not tall enough. How can I make
it tall enough for hand-writing letters? If '~' still works as a space,
at least I can try:
{\LARGE ~}
>> Q1: I haven't use latex for a while, why '~' stops working as a space?
It's still a non-breaking space.
> Now the problem is that the 2nd line is not tall enough. How can I make
> it tall enough for hand-writing letters?
\usepackage{array}
...
\setlength{\extrarowheight}{<length>}
\begin{tabular}{...
* Tong * <sun_to...@users.sourceforge.net> writes:
> Hi,
>
> By default, latex creates tables with minimum spaces. However, I want it
> to reserve enough space for filling in. How can I do that?
>
> \begin{tabular}{
> |c|c|c|c|c|c|c| } \hline
> Sun ~ & ~ Mon ~ & ~ Tue ~ & ~ Wed ~ & ~ Thu ~ & ~ Fri ~ & ~ Sat \\
> \hline
> & & & & & & \\ \hline
> \end{tabular}
>
> Q1: I haven't use latex for a while, why '~' stops working as a space?
>
> Q2: I tried to use '@{\extracolsep{3pt}}', but the table title is not
> properly centered.
It might be off-topic, but if you know by advance the words that will
be handwritten, you can simply use \phantom{}, assuming the
handwriters do not write big letters.
- --
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
- --
You find out who your real friends are when you're involved in a
scandal. (Elizabeth Taylor)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iEYEARECAAYFAkvDVygACgkQM0LLzLt8Mhxj+QCeM32w8yvd921Z61VM6rc4j/so
a/UAn16wqM6HlKv2VGv+yGqZFVKaJ/Po
=Yo0t
-----END PGP SIGNATURE-----
For your special purpose, there exist the makecell package, you may find
just what you need using \eline and \Xrows macros pp14 to 15 of the pdf
documentation.
Regards.
>
>
> Hi,
>
> By default, latex creates tables with minimum spaces. However, I want it
> to reserve enough space for filling in. How can I do that?
>
> \begin{tabular}{
> |c|c|c|c|c|c|c| } \hline
> Sun ~& ~ Mon ~& ~ Tue ~& ~ Wed ~& ~ Thu ~& ~ Fri ~& ~ Sat \\
> For your special purpose, there exist the makecell package, you may find
> just what you need using \eline and \Xrows macros pp14 to 15 of the pdf
> documentation.
Thanks for the point.
I was having difficulties trying to set different vertical spacing
settings between column heads and normal cells. Anybody can help?
%% Sets the parameters to get necessary vertical spacing around cells
\setcellgapes{4mm}
\makegapedcells %% switches on vertical spacing settings
%% \theadset Spacing settings for column heads.
%\renewcommand\theadset{\renewcommand\arraytretch{1}%
% \setlength\extrarowheight{0pt}}
%\renewcommand\theadgape{}
\renewcommand\theadgape{\Gape[-3mm]}
\begin{tabular}{|*{4}{c|}}
\hline
\thead{No}&\thead{First Data}&\thead{Second Data}&\thead{Third Data} \\
\hline
\erows{4}{8}
\end{tabular}
>>> Q1: I haven't use latex for a while, why '~' stops working as a space?
>
> It's still a non-breaking space.
That's strange. I can see the actual '~' in the output for the following
code:
\begin{tabular}{
|c|c|c|c|c|c|c| } \hline
Sun ~ & ~ Mon ~ & ~ Tue ~ & ~ Wed ~ & ~ Thu ~ & ~ Fri ~ & ~ Sat \\
\hline
~ & ~ & ~ & & & & \\ \hline
\end{tabular}
What's wrong?
>> Now the problem is that the 2nd line is not tall enough. How can I make
>> it tall enough for hand-writing letters?
>
> \usepackage{array}
>
> ...
>
> \setlength{\extrarowheight}{<length>}
> \begin{tabular}{...
Sorry to be dense -- I haven't use latex for a while -- is it possible to
control only the body of the table cell height, not the table header?
I've refer to the array.pdf file myself but couldn't figure it out myself.
Please help.
Thanks a lot!
> That's strange. I can see the actual '~' in the output for the following
> code:
>
> \begin{tabular}{
> |c|c|c|c|c|c|c| } \hline
> Sun ~ & ~ Mon ~ & ~ Tue ~ & ~ Wed ~ & ~ Thu ~ & ~ Fri ~ & ~ Sat \\
> \hline
> ~ & ~ & ~ & & & & \\ \hline
> \end{tabular}
>
> What's wrong?
Well I can't see it if I copy the code in a minimal document:
\documentclass{article}
\begin{document}
\begin{tabular}{
|c|c|c|c|c|c|c| } \hline
Sun ~ & ~ Mon ~ & ~ Tue ~ & ~ Wed ~ & ~ Thu ~ & ~ Fri ~ & ~ Sat
\\
\hline
~ & ~ & ~ & & & & \\ \hline
\end{tabular}
\end{document}
So something else in your document is responsable. Stop to send code
snippets. Make complete, small documents, so that we know what you
are doing instead of having to guess.
--
Ulrike Fischer
>> That's strange. I can see the actual '~' in the output for the
>> following code. . .
>>
>> What's wrong?
>
> Well I can't see it if I copy the code in a minimal document:
>
> \documentclass{article}
> \begin{document}
> \begin{tabular}{
> |c|c|c|c|c|c|c| } \hline
> Sun ~ & ~ Mon ~ & ~ Tue ~ & ~ Wed ~ & ~ Thu ~ & ~ Fri ~ & ~ Sat
> \\
> \hline
> ~ & ~ & ~ & & & & \\ \hline
> \end{tabular}
> \end{document}
>
> So something else in your document is responsable. Stop to send code
> snippets. Make complete, small documents, so that we know what you are
> doing instead of having to guess.
I can still see the actual '~' in the output with your minimal document.
$ cat test-space.tex
\documentclass{article}
\begin{document}
\begin{tabular}{
|c|c|c|c|c|c|c| } \hline
Sun ~ & ~ Mon ~ & ~ Tue ~ & ~ Wed ~ & ~ Thu ~ & ~ Fri ~ & ~ Sat
\\
\hline
~ & ~ & ~ & & & & \\ \hline
\end{tabular}
\end{document}
The result is here:
http://imagebin.ca/view/HZOqdXG.html
Please help me identify the reason.
This is how I compile and view it.
texi2dvi -q -o test-space.dvi test-space.tex
xdvi test-space.dvi &
These are my latex packges (under Debian testing):
tex-common_2.07
texinfo_4.13a.dfsg.1-5
texlive-base_2009-8
texlive-base-bin_2007.dfsg.2-8
texlive-binaries_2009-5
texlive-common_2009-8
texlive-doc-base_2009-2
texlive-font-utils_2009-7
texlive-fonts-extra_2009-7
texlive-fonts-recommended_2009-8
texlive-generic-recommended_2009-8
texlive-latex-base_2009-8
texlive-latex-extra_2009-7
texlive-latex-recommended_2009-8
texlive-pictures_2009-8
texlive-pstricks_2009-7
Thanks
> I can still see the actual '~' in the output with your minimal document.
>
> $ cat test-space.tex
> \documentclass{article}
> \begin{document}
> \begin{tabular}{
> |c|c|c|c|c|c|c| } \hline
> Sun ~ & ~ Mon ~ & ~ Tue ~ & ~ Wed ~ & ~ Thu ~ & ~ Fri ~ & ~ Sat
> \\
> \hline
> ~ & ~ & ~ & & & & \\ \hline
> \end{tabular}
> \end{document}
>
> The result is here:
> http://imagebin.ca/view/HZOqdXG.html
> Please help me identify the reason.
Your previewer is obviously at fault. Make a pdf or a ps and then
check in a pdf-reader or in ghostscript.
--
Ulrike Fischer
maybe it is texi2dvi
have you tried latex instead?
>> I can still see the actual '~' in the output with your minimal
>> document.
>>
> maybe it is texi2dvi
>
> have you tried latex instead?
Duh! I can't believe it but it is true.
> This is how I compile and view it.
>
> texi2dvi -q -o test-space.dvi test-space.tex
texi means texinfo, for processing "info" format (think man pages or
online help)
into (ugly) printout with TeX. texi is NOT for latex input.
quite so. but if texi2dvi doesn't deal with latex, wouldn't there
have been more fundamental complaints? (i really don't know, but i
have a brain itch that says it's touted as an alternative make-alike).
--
Robin Fairbairns, Cambridge
I never thought that texi2dvi would do latex, but apparently it
is supposed to auto-detect both info and LaTeX format (not
deeply, just by file extension), and if that fails there is an option
argument to specify the language.