ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Nicola <nvitacolonna@gmail.com>
To: ntg-context@ntg.nl
Subject: Vertical space around displayed formulas
Date: Wed, 18 Jan 2017 16:00:56 +0100	[thread overview]
Message-ID: <o5nvv2$idf$1@blaine.gmane.org> (raw)

Hello,
has something been changed in the last few months in the vertical
spacing of displayed formulas, frames or other environments?

I am re-typesetting some presentations using the latest beta and the
content of slides (especially those containing formulas) now tends to
flow to the next page, while before it used to fit in one page.

I paste below an example, if that helps. I am using a system font,
so you may not be able to reproduce my problem without it.

Is there something I should change in my documents?

Nicola

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setuppapersize[S6][S6]

\setuplayout[
   width=middle,
   height=middle,
   topspace=2mm,
   header=0mm,
   headerdistance=0mm,
   location=singlesided,
   backspace=5mm,
   margin=0mm,
   edgedistance=0mm,
   margindistance=0mm
]

\setupalign[nothyphenated,flushleft]

% Ocean Sunset (color.adobe.com)
\definecolor[colorone]    [r=0.251, g=0.349, b=0.322]
\definecolor[colortwo]    [r=0.612, g=0.608, b=0.478]
\definecolor[colorthree]  [r=1.0,   g=0.827, b=0.576]
\definecolor[colorfour]   [r=1.0,   g=0.592, b=0.310]
\definecolor[colorfive]   [r=0.960, g=0.310, b=0.161] %t=0.8 , a=multiply]
\definecolor[nearlywhite] [s=0.996]

% Fonts
\definefontfamily[slidesfont][serif][Avenir] [
   tf=name:Avenir Light,
   it=name:Avenir Light Oblique,
   bf=name:Avenir Heavy,
   bi=name:Avenir Heavy Oblique
]
\definefontfamily[slidesfont][sans][Avenir] [
   tf=name:Avenir Light,
   it=name:Avenir Light Oblique,
   bf=name:Avenir Heavy,
   bi=name:Avenir Heavy Oblique
]
\definefallbackfamily[slidesfont][mono][Xits][range={"0222A,"02229,"02205}] 
% ∪, ∩, ∅
\definefontfamily[slidesfont][mono][Latin Modern Mono Light][features=none]
\definefallbackfamily[slidesfont][math][Xits][range={"025C7,"27D5}] % 
WHITE DIAMOND, left-join, WHITE RIGHT-POINTING TRIANGLE
\definefontfamily[slidesfont][math][TeX Gyre Pagella Math]

\setupbodyfont[slidesfont]

% Foreground/background color
\setupcolors[textcolor=colorone]
\setupbackgrounds[page][background=color, backgroundcolor=nearlywhite]

% Header
\startreusableMPgraphic{header:background}
   fill OverlayBox
     leftenlarged BackSpace
     rightenlarged CutSpace
     topenlarged TopSpace
     withcolor OverlayColor ;
   setbounds currentpicture to OverlayBox
     enlarged max(BackSpace,CutSpace) ;
\stopreusableMPgraphic

\defineoverlay[header:background][\reuseMPgraphic{header:background}]

\define[2]\MySlide{\framed[
   frame=off,
   background=header:background,
   backgroundcolor=colorfive,
   width=\textwidth,
   align=flushleft
]{#2}}

\definehead[slide][subject]
\setuphead[slide][
   style=\ssb,
   command=\MySlide,
   color=nearlywhite,
   insidesection=\doifnot{\structureuservariable{align}}{top}\vfill,
   aftersection=\doifnot{\structureuservariable{align}}{top}\vfill,
   page=yes,
]

% Footer
\setuppagenumbering[location=]
\setupfooter[style=small, color=colortwo]
\setupfootertexts[][\userpagenumber/\lastuserpage]

% Lists
\startuseMPgraphic{itemize:main}
   save p; path p;
   p := fullcircle scaled 1.5ExHeight;
   fill p withcolor \MPcolor{colorfive};
\stopuseMPgraphic

\startuseMPgraphic{itemize:nested}
   save p; path p;
   p := ((0,-0.5)--(0,0.5)--(0.866,0)--cycle) scaled 1.5ExHeight;
   fill p withcolor \MPcolor{colorfive};
\stopuseMPgraphic

\definesymbol[itemize:main][\useMPgraphic{itemize:main}]
\definesymbol[itemize:nested][\useMPgraphic{itemize:nested}]

\setupitemize[1][symbol=itemize:main]
\setupitemize[2][symbol=itemize:nested, width=1.5ex]
\setupitemize[2][nowhite]

\setupitemize[
   headstyle=\ssa,
   headcolor=colorfive,
   afterhead={\blank[none]},
   inbetween={\blank[big]},
   leftmargin=1em,
   rightmargin=1em,
]

% Tables
\setuptables[rulethickness=0.06em]

\setupinteraction[state=start,  % make hyperlinks active, etc.
   style=\tf,
   color=colortwo,
   title={What Do You Mean, “Null”?},
   author={Nicola Vitacolonna},
   keyword={null}]

% \usebtxdataset[main.bib]
% \usebtxdefinitions[apa]
\setupcombinations[distance=3cm,location=top]
\defineframedcontent[tablebackground][frame=off,background=color,backgroundcolor=colorthree]
\setuptables[rulethickness=0.06em,frame=tablebackground]

\setupalign[nothyphenated,flushleft]

\defineparagraphs[twocol][n=2]
\setupparagraphs[twocol][1][width=.7\textwidth]


\starttext
\switchtobodyfont[17.3pt]

\startslide[title={Which Nulls?}][align=top]
   All of the above may be abstracted into three categories:

   \startitemize[packed]
     \item
     Exists, but unknown ({\bf missing value})
     \startformula
       \exists x\,\hbox{Yalta}(\hbox{Winston},x,\hbox{Churchill})
     \stopformula
     \item
     Nonexistent, not applicable ({\bf inapplicable null})
     \startformula
       \neg\exists x\,\hbox{Yalta}(\hbox{Winston},x,\hbox{Churchill}) \land
       \hbox{Yalta}_{-2}(\hbox{Winston},\hbox{Churchill})
     \stopformula
     \item
     Not known to exist ({\bf no-information null})
     \startformula
       \hbox{Yalta}_{-2}(\hbox{Winston},\hbox{Churchill})
     \stopformula
   \stopitemize

   \midaligned{\tfxx
   \starttable[|l|l|l|]
     \NC \THREE Yalta \cite[Atzeni:1993] \NC \AR
     \NC FirstName \NC MiddleName \NC LastName \NC \AR
     \HL
     \NC Franklin \NC Delano \NC Roosevelt \NC \AR
     \NC Winston \NC  UNK \NC Churchill \NC \AR
     \NC Charles \NC  NA  \NC  DeGaulle \NC \AR
     \NC Joseph \NC  NI  \NC  Stalin \NC \AR
   \stoptable}
\stopslide
\stoptext

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2017-01-18 15:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-18 15:00 Nicola [this message]
2017-01-18 15:53 ` Otared Kavian
2017-01-18 16:26   ` Nicola
2017-01-18 16:53     ` Otared Kavian
2017-01-18 17:23       ` Nicola
2017-01-18 18:15         ` Hans Hagen
2017-01-18 19:34           ` Otared Kavian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='o5nvv2$idf$1@blaine.gmane.org' \
    --to=nvitacolonna@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).