Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Specific Paragraph Spacing in Parts of a Document

18 views
Skip to first unread message

heavytull

unread,
Mar 27, 2012, 12:34:55 PM3/27/12
to
I have two commands in a .sty file as following:

[CODE]
\newcommand{\tabitem}[3][.25em]{%
\begin{tabular}{@{}p{2em}@{\hspace{.2em}}p{\textwidth}@{}}%
\ifthenelse{\equal{#2}{}}{}{\raggedleft\hintstyle{#2}} & {#3}%
\end{tabular}%
\par\addvspace{#1}}

\newcommand{\entrydefinition}[2]{\tabitem{}{\bfseries{#1}\newline#2}}
[/CODE]


In the .tex file when the command is used while the first argument is a
short title the second argument can eat pages. So It will be structured
into paragraphs. But I would like the vertical space value between
paragraphs to be set in the command definition in the .sty file. I tried
something like that:

[CODE]
\newcommand{\entrydefinition}[2]{\bfseries{#1}\newline{\parskip{6pt}
#2}}[/CODE]

or

[CODE]
\newcommand{\entrydefinition}[2]{\bfseries{#1}\newline{\setlength
{\parskip}{6pt}#2}}[/CODE]


but no one works (certainly because of the tabular environment).
0 new messages