What I have in LyX is this:
I've added to the preamble this line:
\global\setlength{\parskip}{20pt}
I am thus expecting a 20pt space between every line. However, this doesn't happen within the Parbox. My output:
Question: What should I do to achieve the 20pt space between lines 3. and 4. above? I would like this to be accomplished globally (i.e. across all Parboxes in my document).
LaTeX code (exported from LyX):
%% LyX 2.2.3 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{calc}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\global\setlength{\parskip}{20pt}
\makeatother
\usepackage{babel}
\begin{document}
1. Hi
2. Hi
\noindent{\fboxrule 3pt\fboxsep 6pt\fbox{\parbox[t]{1\columnwidth - 2\fboxsep - 2\fboxrule}{%
3. Hi
4. Hi%
}}}
\end{document}
Best Answer
You can add in your user specified commands these:
Edit: Thenext "PS" is wrong: (See David's comments) PS: I didn't really knew if the default optional parameter in parbox was
t
, but I looked for it and now I know it is. These sentence between "bolds" is not trueMy Excuse: I just "googled" and had these results as first:
I saw the link with title
\parbox
and just read from the last two lines the above wrong sentence...So, I learned the lesson... Always double check your sources and don't just trust what you see in google by a "distance"