From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
Subject: Re: displayed formula confuses parshape around figure
Date: Thu, 21 Sep 2006 09:32:26 +0200 [thread overview]
Message-ID: <20060921093226.a0921709.schuster.wolfgang@googlemail.com> (raw)
In-Reply-To: <E1GQ2Fd-0000Ex-00@skye.ra.phy.cam.ac.uk>
On Wed, 20 Sep 2006 14:36:33 +0100
Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk> wrote:
> > It works for me if put a \par or a empty line after the first
> > \input.
>
> That's true, but doing so ends the paragraph. Shouldn't the displayed
> math be part of the paragraph? The \input tufte's were just to make
> the minimal example. It came from a paragraph with text and math that
> begins with a figure:
>
> \placefigure[right,none]{}{\externalfigure[dummy]}
>
> Then lots of text about the figure, leading up to
> \startformula
> this equation
> \stopformula
> then more text discussing the equation...
>
> -Sanjoy
>
Ok, I playes yesterday I bit with your example and can you give now
a solution for your problem.
\starttext
% This works
\hangindent4cm
\hangafter-3
\input tufte
$$
A = a^\alpha b^\beta,
$$
\input tufte
\blank[line]
% The group around the formula produces the error. I tried this also
% with plain TeX and I worked without problems. A ConTeXt bug.
\hangindent4cm
\hangafter-3
\input tufte
\bgroup
$$
A = a^\alpha b^\beta,
$$
\egroup
\input tufte
% Test if my path works also with intending
%\setupindenting[yes,medium]
%\setupformulas[indentnext=yes]
% Patch for startformula/s, look a hangindent and hangafter.
\unprotect
\def\dostopformula
{\doplaceformulanumber
\getvalue{\e!stop\formulaparameter\c!alternative\v!formula}%
\resetlastlinewidth
\nonoindentation
\dochecknextindentation{\??fm\currentformula}%
\egroup
\hangafter\minusone % added
\hangindent\zeropoint % added
\setfalse\handleformulanumber
\dorechecknextindentation} % here ?
\def\startformulas#1\stopformulas % new / to be internationalized
{\bgroup
\forgetdisplayskips
\startdisplaymath
\setlocalhsize
\long\def\startformula##1\stopformula{\advance\scratchcounter
\plusone}% \scratchcounter\zerocount #1% preroll
\divide \hsize \scratchcounter
\hbox to \localhsize \bgroup
\hss
\def\normalstartformula{\vskip-\strutdepth$$}% i hate this
\def\normalstartformula{\vskip-\strutdepth$$}% i hate this
\def\normalstopformula {$$}%
\def\startformula{$\vcenter\bgroup\normalstartformula}%
\def\stopformula {\normalstopformula\egroup$\hss}%
#1%
\egroup
\stopdisplaymath
\egroup
\hangafter\minusone % added
\hangindent\zeropoint} % added
\protect
% No longer a problem, my patch works.
\hangindent4cm
\hangafter-3
\input tufte
\startformula
A = a^\alpha b^\beta,
\stopformula
\input tufte
\blank[line]
\hangindent4cm
\hangafter-3
\input tufte
\startformulas
\startformula
A = a^\alpha b^\beta,
\stopformula
\stopformulas
\input tufte
\stoptext
Wolfgang
next prev parent reply other threads:[~2006-09-21 7:32 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-20 5:15 Sanjoy Mahajan
2006-09-20 11:05 ` Wolfgang Schuster
2006-09-20 13:36 ` Sanjoy Mahajan
2006-09-21 7:32 ` Wolfgang Schuster [this message]
2006-09-21 19:57 ` Sanjoy Mahajan
2006-09-22 21:29 ` Working example for correspondence Jorge Manuel de Almeida Magalhães
2006-09-23 8:41 ` r.ermers
2006-09-23 9:53 ` Jorge Manuel de Almeida Magalhães
2006-09-23 13:09 ` Wolfgang Schuster
2006-09-24 11:43 ` appendices in letters batela
2006-09-24 14:13 ` blackrule batela
2006-09-24 14:56 ` blackrule Peter Rolf
2006-09-24 19:12 ` blackrule Hans Hagen
2006-09-24 20:07 ` blackrule Peter Rolf
2006-09-24 20:41 ` blackrule batela
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=20060921093226.a0921709.schuster.wolfgang@googlemail.com \
--to=schuster.wolfgang@googlemail.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).