Have been changing the length of "\medskipamount" using "\newcommand"
Thus I have
Code:
\newcommand{\mdvl}[1]{\setlength\medskipamount{#1}}
Then for three paragraphs I do
Code:
To prove it by contradiction try and assume that the statement is false,
proceed from there and at some point you will arrive to a
contradiction.
\mdvl{2cm}
\medskip
To prove it by contradiction try and assume that the statement is false,
proceed from there and at some point you will arrive to a contradiction.
\mdvl{3cm}
\medskip
To prove it by contradiction try and assume that the statement is false,
proceed from there and at some point you will arrive to a contradiction.
Which produces a "2cm" vertical skip between "Paragraph 1" and "Paragraph 2", and a "3cm" vertical skip between "Paragraph 2" and "Paragraph 3". All this displays as expected.
Changing to
Code:
\newcommand{\mdvll}[1]{\setlength{\medskipamount}{#1}}
gives same results as using "\mdvl".
Then this gives a fail
Code:
\newcommand{\galex-mdvlll}[1]{\setlength{\medskipamount{#1}}}
Code:
! Missing number, treated as zero.
<to be read again>
{
l.313 \medskip
So the last command is certainly wrong.
Thus, one can either use
Code:
\setlength\medskipamount{#1}
or
Code:
\setlength{\medskipamount}{#1}
Have gone through the "latex2e" code, and have seen the use of both ways. Is one preferred over the other? Which do people consider best for readability?
Most times I have seen
Code:
\setlength\medskipamount{#1}