In LyX 2.0 at least, the setting in Document --> Settings is a global switch, so it applies for the whole document, while the button on the toolbar is local, applying only for the current paragraph. Hence, they serve different purposes, if you wish to set the same style for the entire document, use the former.
The fix
As Aditya already pointed out, this is a bug in the pandoc ConTeXt
template
and should be fixed upstream. For the mean time the best you can do
is to edit the template and change the title setup to:
[…]
\startalignment[center]
\blank[2*big]
{\tfd\setupinterlinespace $title$\par}
[…]
This custom template can then be used using the --template
switch.
pandoc --to=context --template=mytemplate.context input.md
A better solution would be to store the document metadata once and
use ConTeXt macros. This would semantically be a better markup
conversion from Markdown to ConTeXt. Furthermore, it simplifies the
resulting code when the data is used, for example on the title page
and the PDF meta data in \setupinteraction
.
If you neither want to create a custom template nor wait for an
upstream fix, here's an ugly hack:
\let\oldTFD\tfd
\def\tfd
{\oldTFD\setupinterlinespace\groupedcommand{}{\par}}
This redefines the \tfd
font switch to automatically adjust the
interline space and finish the paragraph (see
\groupedcommand
).
However, this changes the behaviour of the low-level \tfd
command
and thus might break something else.
Reason
The reason the interline space is wrong is because the font is switched using
a rather low-level font command which does not adjust the interline spacing.
Another reason is that the line is not a paragraph and the line spacing
adjustment operates on a paragraph. Compare:
\starttext
foo\par {\tfd Bar} \par
foo\par {\tfd Bar\par} \par
foo\par {\tfd\setupinterlinespace Bar} \par
foo\par {\tfd\setupinterlinespace Bar\par} \par %% correct spacing
foo\par {\switchtobodyfont[24pt]Bar} \par
foo\par {\switchtobodyfont[24pt]Bar\par} \par %% correct spacing
\stoptext
As you can see \tfd
requires setting the interline
space as
well as a \par
. The higher level font switch command
\switchtobodyfont
takes care of the interline spacing. But both of them require a
\par
.
Best Answer
The problem here is that the paragraph spacing is set around the
\title
macro, which does sets nothing. The title is only set with a call to\maketitle
, which still has the originalOneHalf
spacing. You would have to update\maketitle
to surround itself by the appropriate spacing.Add the following to your Document > Settings... > LaTeX Preamble: