All, How can I force an indent on my last paragraph? My attempt below does not work. I don't really want to redefine any setups, I just want an indent this one time. %output=pdf \starttext Again, we choose to multiply the fours, then the result by the square root of three. That is, \placeformula[-] \startformula 4(4\sqrt3) =16\sqrt3. \stopformula \indent By induction, we can argue that that the associative and commutative properties will allows us to group and arrange the product of more than three numbers in any order that we please. \stoptext
David Arnold wrote:
All,
How can I force an indent on my last paragraph? My attempt below does not work. I don't really want to redefine any setups, I just want an indent this one time.
\indent inserts indentation the size of \parindent, which is exactly zero points in this case. Cheers, Taco
OK, But this gives the same result. No indent. %output=pdf \setupwhitespace[medium] \setupindenting[medium,yes] \starttext Again, we choose to multiply the fours, then the result by the square root of three. That is, \placeformula[-] \startformula 4(4\sqrt3) =16\sqrt3. \stopformula \indent By induction, we can argue that that the associative and commutative properties will allows us to group and arrange the product of more than three numbers in any order that we please. \stoptext How can I get that paragraph after the placeformula to indent? On Feb 20, 2006, at 2:56 AM, Taco Hoekwater wrote:
David Arnold wrote:
All,
How can I force an indent on my last paragraph? My attempt below does not work. I don't really want to redefine any setups, I just want an indent this one time.
\indent inserts indentation the size of \parindent, which is exactly zero points in this case.
Cheers, Taco _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
David Arnold wrote:
OK,
But this gives the same result. No indent.
[ok]
How can I get that paragraph after the placeformula to indent?
\setupindenting[medium,yes] \setupformulas[indentnext=yes] %\setupfloats[indentnext=yes] % maybe desired as well? I just discovered that only this \setupindenting[medium,always] doesn't work either, and that is a bit counterintuitive. Cheers, Taco
Taco, Peter, I guess I am not making myself clear. I do not want to do this: \setupformulas[indentnext=auto] or this: \setupformulas[indentnext=yes] Because that has the effect that paragraphs following formulae are always indented. I don't want that. I want to be able to type the source like this ... \setupwhitespace[medium] \setupindenting[medium,yes] \starttext Again, we choose to multiply the fours, then the result by the square root of three. That is, \placeformula[-] \startformula 4(4\sqrt3) =16\sqrt3. \stopformula By induction, we can argue that that the associative and commutative properties will allows us to group and arrange the product of more than three numbers in any order that we please. \stoptext ... and not have the next paragraph after the formula. That is the default. That is what I want. However, on occasion, "sometimes" I do want to indent the next paragraph after a formula. My question is, how to override the default behavior "on occasion." That is, every "rare once in a while," how do I indent a paragraph after a formula. On Feb 20, 2006, at 10:13 AM, Taco Hoekwater wrote:
David Arnold wrote:
OK,
But this gives the same result. No indent.
[ok]
How can I get that paragraph after the placeformula to indent?
\setupindenting[medium,yes] \setupformulas[indentnext=yes] %\setupfloats[indentnext=yes] % maybe desired as well?
I just discovered that only this
\setupindenting[medium,always]
doesn't work either, and that is a bit counterintuitive.
Cheers, Taco _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
David Arnold wrote:
Taco, Peter,
I guess I am not making myself clear.
I do not want to do this:
\setupformulas[indentnext=auto]
or this:
\setupformulas[indentnext=yes]
o.k. \leavevmode\indent (or maybe better, but untested: \dontleavehmode\indent) looks strange, but works.
Because that has the effect that paragraphs following formulae are always indented. I don't want that. I want to be able to type the source like this ...
\setupwhitespace[medium]
\setupindenting[medium,yes]
\starttext
Again, we choose to multiply the fours, then the result by the square root of three. That is,
\placeformula[-] \startformula 4(4\sqrt3) =16\sqrt3. \stopformula
By induction, we can argue that that the associative and commutative properties will allows us to group and arrange the product of more than three numbers in any order that we please.
\stoptext
... and not have the next paragraph after the formula. That is the default. That is what I want. However, on occasion, "sometimes" I do want to indent the next paragraph after a formula. My question is, how to override the default behavior "on occasion." That is, every "rare once in a while," how do I indent a paragraph after a formula.
On Feb 20, 2006, at 10:13 AM, Taco Hoekwater wrote:
David Arnold wrote:
OK,
But this gives the same result. No indent. [ok]
How can I get that paragraph after the placeformula to indent? \setupindenting[medium,yes] \setupformulas[indentnext=yes] %\setupfloats[indentnext=yes] % maybe desired as well?
I just discovered that only this
\setupindenting[medium,always]
doesn't work either, and that is a bit counterintuitive.
Cheers, Taco _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
... and not have the next paragraph after the formula. That is the default. That is what I want. However, on occasion, "sometimes" I do want to indent the next paragraph after a formula. My question is, how to override the default behavior "on occasion." That is, every "rare once in a while," how do I indent a paragraph after a formula.
Not sure if this is the best way, but \indentation at the beginning of the paragraph will force the indent. Using your example: \placeformula[-] \startformula 4(4\sqrt3) =16\sqrt3. \stopformula \indentation By induction, we can argue that that the associative and commutative properties will allows us to group and arrange the product of more than three numbers in any order that we please. -joshua
Aha! Easy. Thanks. On Feb 20, 2006, at 11:25 AM, Joshua Ellis wrote:
... and not have the next paragraph after the formula. That is the default. That is what I want. However, on occasion, "sometimes" I do want to indent the next paragraph after a formula. My question is, how to override the default behavior "on occasion." That is, every "rare once in a while," how do I indent a paragraph after a formula.
Not sure if this is the best way, but \indentation at the beginning of the paragraph will force the indent. Using your example:
\placeformula[-] \startformula 4(4\sqrt3) =16\sqrt3. \stopformula
\indentation By induction, we can argue that that the associative and commutative properties will allows us to group and arrange the product of more than three numbers in any order that we please.
-joshua
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[someone else beat me to the punch.] (\indentation instead of \indent) That's not the most obvious choice of command name, but it works, eh?. To protect yourself, you could add more "logical" markup and say something like this in your environment: \let\NewPar\indentation and then mark all paragraphs to be indented with that \NewPar. adam
On Feb 20, 2006, at 10:13 AM, Taco Hoekwater wrote:
David Arnold wrote:
OK,
But this gives the same result. No indent. [ok]
How can I get that paragraph after the placeformula to indent? \setupindenting[medium,yes] \setupformulas[indentnext=yes] %\setupfloats[indentnext=yes] % maybe desired as well?
I just discovered that only this
\setupindenting[medium,always]
doesn't work either, and that is a bit counterintuitive.
Cheers, Taco _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
[I realised this other part of my draft answer would be good for the archive:] David Arnold wrote:
I do not want to do this:
\setupformulas[indentnext=auto]
... Because that has the effect that paragraphs following formulae are always indented. I don't want that. I want to be able to type the source like this ...
(not always, in the "auto" case)
\setupwhitespace[medium]
\setupindenting[medium,yes]
\starttext
Again, we choose to multiply the fours, then the result by the square root of three. That is,
\placeformula[-] \startformula 4(4\sqrt3) =16\sqrt3. \stopformula
By induction, we can argue that that the associative and commutative properties will allows us to group and arrange the product of more than three numbers in any order that we please.
\stoptext
Although it doesn't really apply to you, because of the spaced-out nature of your source files, this will help someone out. If you have indentnext=auto set for formulae (or verbatim or itemize), then you have no indent if there's no blank line between the formula and the text. If there is a blank line, then there's a normal indent. In the example, watch what happens after the two \stopformula s: \setupindenting[medium,yes] \setupformulas[indentnext=auto] \starttext \input ward You will find that \startformula 2+2=5 \stopformula % no blank line for very large values of two. \input dawkins However, traditionalists maintain that \startformula 2+2=4 \stopformula % extra blank line Moving on, we find... \input tufte \stoptext (pardon the extra test text. The bits that I wrote didn't make the example clear enough when typeset.)
... and not have the next paragraph after the formula. That is the default. That is what I want. However, on occasion, "sometimes" I do want to indent the next paragraph after a formula. My question is, how to override the default behavior "on occasion." That is, every "rare once in a while," how do I indent a paragraph after a formula.
On Feb 20, 2006, at 10:13 AM, Taco Hoekwater wrote:
David Arnold wrote:
OK,
But this gives the same result. No indent. [ok]
How can I get that paragraph after the placeformula to indent? \setupindenting[medium,yes] \setupformulas[indentnext=yes] %\setupfloats[indentnext=yes] % maybe desired as well?
I just discovered that only this
\setupindenting[medium,always]
doesn't work either, and that is a bit counterintuitive.
Cheers, Taco _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
David Arnold wrote:
OK,
But this gives the same result. No indent.
%output=pdf
\setupwhitespace[medium]
\setupindenting[medium,yes]
\setupformulas[indentnext=auto] (even without \indent) Peter
\starttext
Again, we choose to multiply the fours, then the result by the square root of three. That is,
\placeformula[-] \startformula 4(4\sqrt3) =16\sqrt3. \stopformula
\indent By induction, we can argue that that the associative and commutative properties will allows us to group and arrange the product of more than three numbers in any order that we please.
\stoptext
How can I get that paragraph after the placeformula to indent?
On Feb 20, 2006, at 2:56 AM, Taco Hoekwater wrote:
David Arnold wrote:
All,
How can I force an indent on my last paragraph? My attempt below does not work. I don't really want to redefine any setups, I just want an indent this one time. \indent inserts indentation the size of \parindent, which is exactly zero points in this case.
Cheers, Taco _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
participants (5)
-
Adam Lindsay
-
David Arnold
-
Joshua Ellis
-
Peter Rolf
-
Taco Hoekwater