TreatFirstLine: loss of spaces
The code below changes the first line. However, there are no spaces between words and therefore, the justification is also off. You can even leave the first parameter empty and you get the same results. Am I missing something? \starttext \TreatFirstLine {\sc} {} {} {} The combined color and font effect is also possible, although one must be careful in using macros that accumulate grouping, but the commands used here are pretty save in that respect. \stoptext Thanks, Bart
Am 15.01.2009 um 18:06 schrieb Bart C. Wise:
The code below changes the first line. However, there are no spaces between words and therefore, the justification is also off. You can even leave the first parameter empty and you get the same results. Am I missing something? \starttext \TreatFirstLine {\sc} {} {} {} The combined color and font effect is also possible, although one must be careful in using macros that accumulate grouping, but the commands used here are pretty save in that respect. \stoptext
http://archive.contextgarden.net/message/20060102.122124.6585f872.en.html Wolfgang
On Thursday 15 January 2009 10:44:07 am Wolfgang Schuster wrote:
Am 15.01.2009 um 18:06 schrieb Bart C. Wise:
The code below changes the first line. However, there are no spaces between words and therefore, the justification is also off. You can even leave the first parameter empty and you get the same results. Am I missing something? \starttext \TreatFirstLine {\sc} {} {} {} The combined color and font effect is also possible, although one must be careful in using macros that accumulate grouping, but the commands used here are pretty save in that respect. \stoptext
http://archive.contextgarden.net/message/20060102.122124.6585f872.en.html
That works, but it doesn't have the options that TreatFirstLine has. Is TreatFirstLine broken? Bart
Bart C. Wise wrote:
The code below changes the first line. However, there are no spaces between words and therefore, the justification is also off. You can even leave the first parameter empty and you get the same results.
Am I missing something?
\starttext
\TreatFirstLine {\sc} {} {} {}
\TreatFirstLine {\sc} {} {} { } ^ space attached is the output of a mkiv variant (i couldn't resist trying to do it otherwise; watch how this one nicely hyphenates) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Thursday 15 January 2009 11:26:57 am Hans Hagen wrote:
Bart C. Wise wrote:
The code below changes the first line. However, there are no spaces between words and therefore, the justification is also off. You can even leave the first parameter empty and you get the same results.
Am I missing something?
\starttext
\TreatFirstLine {\sc} {} {} {}
\TreatFirstLine {\sc} {} {} { } ^ space
attached is the output of a mkiv variant (i couldn't resist trying to do it otherwise; watch how this one nicely hyphenates)
Hans, Your output looks great. However, with the code below, I still get no spaces on the first line. Compile (w/ beta): texexec --lua <file> ConTeXt ver: 2009.01.14 11:29 MKIV fmt: 2009.1.14 Luatex: Version snapshot-0.31.3-2008123108 I also tried with the "current" version as well. \starttext \TreatFirstLine{\sc}{}{}{} The combined color and font effect is also possible, although one must be careful in using macros that accumulate grouping, but the commands used here are pretty save in that respect. \stoptext Hints? Thanks, Bart
Am 15.01.2009 um 19:57 schrieb Bart C. Wise:
\starttext \TreatFirstLine{\sc}{}{}{}
\TreatFirstLine{\sc}{}{}{ }
The combined color and font effect is also possible, although one must be careful in using macros that accumulate grouping, but the commands used here are pretty save in that respect.
Wolfgang
Bart C. Wise wrote:
\TreatFirstLine {\sc} {} {} { }
^ space
Your output looks great. However, with the code below, I still get no spaces on the first line.
because (as i mentioned in the mail) you need to add a space as fourth argument \TreatFirstLine {\sc} {} {} { } or \TreatFirstLine {\sc} {} {} {\space} (i get the impression that your mail client behaves strange and mangles the mails; at least here i get funny formatted mails; do you use html mail?) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Thursday 15 January 2009 12:18:20 pm Hans Hagen wrote:
Bart C. Wise wrote:
\TreatFirstLine {\sc} {} {} { }
^ space
Your output looks great. However, with the code below, I still get no spaces on the first line.
because (as i mentioned in the mail) you need to add a space as fourth argument
\TreatFirstLine {\sc} {} {} { }
or
\TreatFirstLine {\sc} {} {} {\space}
(i get the impression that your mail client behaves strange and mangles the mails; at least here i get funny formatted mails; do you use html mail?)
I don't use html mail (kmail), so it used a proporational font. So your "^ space" was pointing to the space between the first and second paragraphs! My bad. It works! Thanks, Bart
participants (3)
-
Bart C. Wise
-
Hans Hagen
-
Wolfgang Schuster