ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: Curious blank page
Date: Sun, 9 Apr 2006 16:53:12 -0400 (EDT)	[thread overview]
Message-ID: <Pine.WNT.4.63.0604091639320.3508@nqvgln> (raw)
In-Reply-To: <B0D46017-95E4-4066-9438-76D917FBFA65@cox.net>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1319 bytes --]

On Sun, 19 Mar 2006, David Arnold wrote:

> Why is it that the rest of the page after Answers on page 4 of the
> compiled pdf is blank?

I have a similar problem. Attached is the (not so) minimal example 
that I could prepare. (This is part of my way on mathalignment). See 
the page break on page 2, while all the page is empty. Adding
\kern\zeropoint prevents the page break. But I find such an page break 
very confusing.


This is context version.
  TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

                texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 
1997-2005
                texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 
1992-2004
                    tex : pdfeTeXk, 3.141592-1.30.3-2.2 (Web2c 7.5.5)
                context : ver: 2006.04.07 11:24
                cont-en : ver: 2006.04.07 11:24  fmt: 2006.4.7  mes: 
english
                cont-nl : ver: 2006.04.07 11:24  fmt: 2006.4.7  mes: 
dutch

         total run time : 5 seconds


By the way, texmfstart newtexexec --version just gives
TeXExec | version 6.1.2 - 1997-2006 - PRAGMA ADE/POD

No version information of context is given!! What is the correct way 
to get complete version information from newtexexec.

Thanks,
Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008

[-- Attachment #2: Type: APPLICATION/octet-stream, Size: 3218 bytes --]

\usemodule[mag-01]

\setuptyping[style=\ttx\setupinterlinespace]
\setupheadertexts[section]

\setupbodyfontenvironment	[default][em=italic]
\def\AmSTeX{AmS\TeX} 

\gdef\ShowExample{
  \blank[small]
  \setupbackground
  \startbackground \typebuffer \stopbackground
  \getbuffer\blank[small]}


\starttext \setups[titlepage] \setups[title]
\definemathalignment
  [gather]
  [n=1,align=middle]
\startbuffer
\definemathmatrix
  [aligned]
  [n=2,distance=0pt,align={right,left}]

\definemathmatrix
  [gathered]
  [n=1,align=middle]

\startformula
  a = \frac{\left(\startaligned
    \NC xy \NC {}+ xy + xy \NR
    \NC    \NC {}+ xy + xy \NR
  \stopaligned \right)}{z}
  = \frac{\left(\startgathered
    \NC xy  + xy + xy \NR
    \NC   {}+ xy + xy \NR
  \stopgathered \right)}{z}
\stopformula
\stopbuffer
\ShowExample

\subsection[sec:split]{split (again)}
\type{mathmatrix} can also be used to define a split environment, with 
equations number at the center of the display.

\startbuffer
\definemathmatrix
  [dosplit]
  [n=2,distance=0pt,align={right,left}]

%D Need to change domatrixNC to have a {} so that bin operators
%D are treated properly

\def\startsplit#1\stopsplit{
  \def\dodomatrixNC
    {\gdef\domatrixNC{\endmath&{}}}
  \startdosplit#1\stopdosplit}
  
\placeformula \startformula \startsplit
  \NC f(x) \NC = (x+2)^2 + 2(x+2) + 3 \NR
  \NC \NC = x^2 + 4x + 4 + 2x + 4 + 3 \NR
  \NC \NC = x^2 + 6x + 11 \NR
\stopsplit \stopformula
\stopbuffer
\ShowExample

\section{Some Problems}

\subsection{What happened to my square brackets?}
% \kern\zeropoint
\startbuffer
\startformula \startgather
  [p] = 100 \NR
  [v] = 200 \NR
\stopgather \stopformula
\stopbuffer
\ShowExample

This is not what you would expect. An easy way to avoid such unexpected 
behavior is to start each line with \tex{NC}.
\startbuffer
\startformula \startgather
  \NC [p] = 100 \NR
  \NC [v] = 200 \NR
\stopgather \stopformula
\stopbuffer
\ShowExample

\section{Compatibility with \type{amsmath}}
\tex{startalign} provides a compatibility mode with \type{amsmath} syntax, 
which makes it easier to reuse work written in \LATEX.
\startbuffer
\placeformula \startformula \startalign
  f(x) &= x^3 + 2x^2 + 3 \\
  f'(x) &= 3x^2 + 4x \\
\stopalign \stopformula
\stopbuffer
\ShowExample

However, Hans does not like the syntax, especially the {\em loose label} for 
referring equations. This compatibility feature may disappear in the future. So, 
I suggest not to use it. There are subtle differences from the \type{amsmath} 
syntax, and it is much easier (and logical) to follow the \CONTEXT\ syntax.

\section{Missing Features}
As compared to \AmSTeX\ and \type{amsmath} package of \LATEX, the only display 
math environment missing from \CONTEXT\ is \type{multline}. I do not 
completely understand what is the expected behavior of \type{multline} 
environment. If someone understands what it is supposed to do, and needs that 
feature, make a feature request :)

Subformula numbering is a kludge. The subformula number needs to be specified 
manually.  Using mixed formula and subformula number needs some user 
intervention.  However, it is possible to make these transparent by defining 
your own macros.


\stoptext
\setups[lastpage] 

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

  parent reply	other threads:[~2006-04-09 20:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-20  6:16 David Arnold
2006-03-20  9:54 ` Taco Hoekwater
2006-03-20 10:42   ` Hans Hagen
2006-03-20 17:28     ` David Arnold
2006-04-09 20:53 ` Aditya Mahajan [this message]
2006-04-09 21:44   ` Hans Hagen
2006-04-09 21:53   ` Hans Hagen
2006-04-10  1:59     ` Aditya Mahajan
2006-04-10  7:32       ` Hans Hagen
2006-04-12  0:24         ` Aditya Mahajan
2006-04-12  7:53           ` Taco Hoekwater
2006-04-12  8:24           ` Hans Hagen
2006-04-12 15:46             ` Aditya Mahajan

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=Pine.WNT.4.63.0604091639320.3508@nqvgln \
    --to=adityam@umich.edu \
    --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).