ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Deactivating Grid-Setting for a single paragraph
@ 2013-04-27 11:38 "H. Özoguz"
  2013-04-30  6:49 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: "H. Özoguz" @ 2013-04-27 11:38 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Deactivating Grid-Setting for a single paragraph
  2013-04-27 11:38 Deactivating Grid-Setting for a single paragraph "H. Özoguz"
@ 2013-04-30  6:49 ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2013-04-30  6:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 27.04.2013 um 13:38 schrieb H. Özoguz <h.oezoguz@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Deactivating Grid-Setting for a single paragraph
       [not found] <mailman.3.1367316001.15575.ntg-context@ntg.nl>
@ 2013-04-30 10:17 ` "H. Özoguz"
  0 siblings, 0 replies; 4+ messages in thread
From: "H. Özoguz" @ 2013-04-30 10:17 UTC (permalink / raw)
  To: ntg-context

Am 30.04.2013 12:00, schrieb ntg-context-request@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Deactivating Grid-Setting for a single paragraph
@ 2013-04-29  5:24 "H. Özoguz"
  0 siblings, 0 replies; 4+ messages in thread
From: "H. Özoguz" @ 2013-04-29  5:24 UTC (permalink / raw)
  To: ntg-context

> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-04-30 10:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-27 11:38 Deactivating Grid-Setting for a single paragraph "H. Özoguz"
2013-04-30  6:49 ` Wolfgang Schuster
2013-04-29  5:24 "H. Özoguz"
     [not found] <mailman.3.1367316001.15575.ntg-context@ntg.nl>
2013-04-30 10:17 ` "H. Özoguz"

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).