Re: [NTG-context] Deactivating Grid-Setting for a single paragraph

2013-04-30 Thread Wolfgang Schuster

Am 27.04.2013 um 13:38 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Hi there, speaking code:
 
 \setuplayout[grid=yes]
 \showgrid
 \starttext
 {This is a line without a big-sized font.\\
 And this one has it: {\tfa THÜS}.}
 \blank
 
 Perfectly I good disable gridsetting for a complete paragraph. I can do so by 
 “placeongrid”. But then another problem arises; if the paragraph is (without 
 placeongrid) half at the end of a page, and half at the beginning of the next 
 page, than WITH placeongrid the page-break of the paragraph is impossible, so 
 the complete paragraph is set on the next page – resulting in many blank 
 lines on the first page, at the buttom, of course. I tried to disable 
 gridsetting for one paragraph only by “setuplayout” (“off”, and after the 
 paragraph “on” again), but that does not work, too, see here:\blank
 
 {\setuplayout[grid=no]
 This is a line without a big-sized font.\\
 And this one has it: {\tfa THÜS}.
 \setuplayout[grid=yes]}
 \blank
 
 So no effect again. My last try was to change “setupinterlinespace” before 
 the paragraph, and change it back to default after the paragraph, but that 
 does not work, too:\blank
 
 {\setupinterlinespace[line=4ex]
 This is a line without a big-sized font.\\
 And this one has it: {\tfa THÜS}.
 \setupinterlinespace[line=2.8ex] }
 \blank
 
 But that does not work, too. How to make this work, disabling grid-set for a 
 paragraph? Perfectly like “placeongrid”, but with the possibility to break it 
 into to pages:\blank
 
 \placeongrid[top]{
 This is a line without a big-sized font.\\
 And this one has it: {\tfa THÜS}.}
 \blank
 
 The problem comes here from setting arabic words into the german text, for 
 arabic I have to use a bigger font, and so the problem simulated here arises.

When you use the grid you have to restrict yourself and use fixed values for 
the interlinespace. The correction of the whitespace after the increased 
linespace can be calculated and compensated by half lines in the \blank command.

\setuplayout[grid=yes]

\setupinterlinespace[line=14pt]

\showgrid

\starttext

\dorecurse{3}{\input knuth\par}

\blank[line]
%\blank[2*line]

\start \setupinterlinespace[line=21pt]

\input knuth\par

\stop

\ifodd\cldcontext{math.round(\number\pagetotal/\number\dimexpr21pt\relax)}
  \blank[line,halfline]
\else
  \blank[line]
\fi

\dorecurse{2}{\input knuth\par}

\stoptext

Wolfgang
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Deactivating Grid-Setting for a single paragraph

2013-04-30 Thread H. Özoguz

Am 30.04.2013 12:00, schrieb ntg-context-requ...@ntg.nl:

When you use the grid you have to restrict yourself and use fixed values for 
the interlinespace. The correction of the whitespace after the increased 
linespace can be calculated and compensated by half lines in the \blank command.
Thansk Wolfgang. So there is not way to have an functionality like 
placeongrid with the possibility of page-breaking (or deactivating 
gridsetting for a paragraph, like it is by default done for titles) ? 
Could be a good feature for future, would help a lot when using the grid.


Huseyin
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Deactivating Grid-Setting for a single paragraph

2013-04-28 Thread H. Özoguz

Perfectly I good disable gridsetting for a complete paragraph.


Typo - I could. Has anyone ideas how to get placeongrid with the 
ability of pagebraking?


Huseyin
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Deactivating Grid-Setting for a single paragraph

2013-04-27 Thread H. Özoguz

Hi there, speaking code:

\setuplayout[grid=yes]
\showgrid
\starttext
{This is a line without a big-sized font.\\
And this one has it: {\tfa THÜS}.}
\blank

Perfectly I good disable gridsetting for a complete paragraph. I can do 
so by “placeongrid”. But then another problem arises; if the paragraph 
is (without placeongrid) half at the end of a page, and half at the 
beginning of the next page, than WITH placeongrid the page-break of the 
paragraph is impossible, so the complete paragraph is set on the next 
page – resulting in many blank lines on the first page, at the buttom, 
of course. I tried to disable gridsetting for one paragraph only by 
“setuplayout” (“off”, and after the paragraph “on” again), but that does 
not work, too, see here:\blank


{\setuplayout[grid=no]
This is a line without a big-sized font.\\
And this one has it: {\tfa THÜS}.
\setuplayout[grid=yes]}
\blank

So no effect again. My last try was to change “setupinterlinespace” 
before the paragraph, and change it back to default after the paragraph, 
but that does not work, too:\blank


{\setupinterlinespace[line=4ex]
This is a line without a big-sized font.\\
And this one has it: {\tfa THÜS}.
\setupinterlinespace[line=2.8ex] }
\blank

But that does not work, too. How to make this work, disabling grid-set 
for a paragraph? Perfectly like “placeongrid”, but with the possibility 
to break it into to pages:\blank


\placeongrid[top]{
This is a line without a big-sized font.\\
And this one has it: {\tfa THÜS}.}
\blank

The problem comes here from setting arabic words into the german text, 
for arabic I have to use a bigger font, and so the problem simulated 
here arises.


Thanks!
Huseyin
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___