ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* stelinterliniein
       [not found] <mailman.0.1275213602.32333.ntg-context@ntg.nl>
@ 2010-05-30 11:45 ` Vyatcheslav Yatskovsky
  2010-05-30 12:40   ` stelinterliniein Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Vyatcheslav Yatskovsky @ 2010-05-30 11:45 UTC (permalink / raw)
  To: ntg-context

Hello,

What \stelinterliniein means in the following (taken from Skdk style).

\def\StartTitlePage%
   {\startstandardmakeup[doublesided=no]
    \setupbackgrounds[header][text][background=]
    \switchtobodyfont[ss,18pt]
    \setupalign[right]
    \setupindenting[0pt]
    \stelinterliniein
    \vfil
    \let\\=\blank}


I suppose that it is \setupinterlinespace, but it does not work without 
arguments, as seen in my minimal example:


---------------

\setuphead
   [Part]
   [number=no,
    style={\ss\bfd},
    page=right]

\def\StartTitlePage%
   {\startstandardmakeup[doublesided=no]
    \setupbackgrounds[header][text][background=]
    \switchtobodyfont[ss,18pt]
    \setupalign[right]
    \setupindenting[0pt]
    \setupinterlinespace
    \vfil
    \let\\=\blank}

\def\StopTitlePage%
   {\vfill
    {\tfx Version \currentdate[year,-,mm,-,dd] }

    \stopstandardmakeup
    }

\def\TitlePage#1{\StartTitlePage\Part{#1}\StopTitlePage}



\starttext
\TitlePage{Hello}
\stoptext

------------------------

Regards,
Vyatcheslav
___________________________________________________________________________________
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] 11+ messages in thread

* Re: stelinterliniein
  2010-05-30 11:45 ` stelinterliniein Vyatcheslav Yatskovsky
@ 2010-05-30 12:40   ` Wolfgang Schuster
  2010-05-30 12:56     ` stelinterliniein Vyatcheslav Yatskovsky
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2010-05-30 12:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Vyatcheslav Yatskovsky

Am 30.05.10 13:45, schrieb Vyatcheslav Yatskovsky:
> Hello,
>
> What \stelinterliniein means in the following (taken from Skdk style).
>
> \def\StartTitlePage%
> {\startstandardmakeup[doublesided=no]
> \setupbackgrounds[header][text][background=]
> \switchtobodyfont[ss,18pt]
> \setupalign[right]
> \setupindenting[0pt]
> \stelinterliniein
> \vfil
> \let\\=\blank}
>
>
> I suppose that it is \setupinterlinespace, but it does not work without
> arguments, as seen in my minimal example:
>
>
> ---------------
>
> \setuphead
> [Part]
> [number=no,
> style={\ss\bfd},
> page=right]
>
> \def\StartTitlePage%
> {\startstandardmakeup[doublesided=no]
> \setupbackgrounds[header][text][background=]
> \switchtobodyfont[ss,18pt]
> \setupalign[right]
> \setupindenting[0pt]
> \setupinterlinespace
> \vfil
> \let\\=\blank}

\def\StartTitlePage
 
{\startstandardmakeup[doublesided=no,align=right,style={\switchtobodyfont[ss,18pt]}]
    \setupbackgrounds[header][text][background=]
    \setupindenting[none]
    \setupinterlinespace
    \let\\=\blank}

> \def\StopTitlePage%
> {\vfill
> {\tfx Version \currentdate[year,-,mm,-,dd] }
>
> \stopstandardmakeup
> }

add \par:

\def\StopTitlePage
   {\par\vfill
    {\tfx Version \currentdate[year,-,mm,-,dd]}
    \stopstandardmakeup}

> \def\TitlePage#1{\StartTitlePage\Part{#1}\StopTitlePage}

also possible:

\definehead[TitlePage][part]

\setuphead
   [TitlePage]
   [before=\StartTtitlePage,
    after=\StopTitlePage]

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] 11+ messages in thread

* Re: stelinterliniein
  2010-05-30 12:40   ` stelinterliniein Wolfgang Schuster
@ 2010-05-30 12:56     ` Vyatcheslav Yatskovsky
  2010-05-30 13:19       ` stelinterliniein Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Vyatcheslav Yatskovsky @ 2010-05-30 12:56 UTC (permalink / raw)
  To: Wolfgang Schuster, ntg-context

Thank you, Wolfgang, but I gen an error with this:

\setuphead
   [Part]
   [number=no,
    style={\ss\bfd}]
    %page=right]

\def\StartTitlePage
{\startstandardmakeup[doublesided=no,align=right,style={\switchtobodyfont[ss,18pt]}]
    \setupbackgrounds[header][text][background=]
    \setupindenting[none]
    \setupinterlinespace
    \let\\=\blank}

\def\StopTitlePage
   {\par\vfill
    {\tfx Version \currentdate[year,-,mm,-,dd]}
    \stopstandardmakeup}

\definehead[TitlePage][Part]

\setuphead
   [TitlePage]
   [before=\StartTitlePage,
    after=\StopTitlePage]

\starttext
\TitlePage{Hello}
\stoptext

------------------

! Missing number, treated as zero.
<to be read again>
                    s
<argument> s
             amepage--1
\addaskedblankskip ...nce \blankskip #1\dimexpr #2
                                                   \relax
l.6 }

\dovspacingyes ...ument #1\else \s!default \fi ")}
                                                   \fi
\dopreventbreakafterstructureheadauto ...adlevel ]
                                                   \fi
...
l.27 \TitlePage{Hello}

?

-- 
Best Regards,
Vyatcheslav Yatskovsky
___________________________________________________________________________________
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] 11+ messages in thread

* Re: stelinterliniein
  2010-05-30 12:56     ` stelinterliniein Vyatcheslav Yatskovsky
@ 2010-05-30 13:19       ` Wolfgang Schuster
       [not found]         ` <4C026906.4060407@gmail.com>
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2010-05-30 13:19 UTC (permalink / raw)
  To: Vyatcheslav Yatskovsky; +Cc: ntg-context

Am 30.05.10 14:56, schrieb Vyatcheslav Yatskovsky:
> \setuphead
>   [Part]
>   [number=no,
>    style={\ss\bfd}]
>    %page=right]
>
> \definehead[TitlePage][Part]

Use 'part' not 'Part'.

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] 11+ messages in thread

* Re: stelinterliniein
       [not found]         ` <4C026906.4060407@gmail.com>
@ 2010-05-30 13:44           ` Wolfgang Schuster
  2010-05-30 16:45             ` stelinterliniein Vyatcheslav Yatskovsky
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2010-05-30 13:44 UTC (permalink / raw)
  To: Vyatcheslav Yatskovsky; +Cc: mailing list for ConTeXt users

Am 30.05.10 15:32, schrieb Vyatcheslav Yatskovsky:
> Use part in both occasions?
> It works, but gives blank page:
>
> \setuphead
>   [part]
>   [number=no,
>    style={\ss\bfd}]
>    %page=right]
>
> \def\StartTitlePage
> {\startstandardmakeup[doublesided=no,align=right,style={\switchtobodyfont[ss,18pt]}] 
>
>    \setupbackgrounds[header][text][background=]
>    \setupindenting[none]
>    \setupinterlinespace
>    \let\\=\blank}
>
> \def\StopTitlePage
>   {\par\vfill
>    {\tfx Version \currentdate[year,-,mm,-,dd]}
>    \stopstandardmakeup}
>
> \definehead[TitlePage][part]
>
> \setuphead
>   [TitlePage]
>   [before=\StartTitlePage,
>    after=\StopTitlePage]
>
> \starttext
> \TitlePage{Hello}
> \stoptext

ConTeXt has for headers the key 'placehead' which controls
whether a header (placehead=yes) is shown or hidden (placehead=no)
but there is a third value (placehead=empty) which use the page key
for the header but hides the header itself. The default setup for
\part has the empty value for placehead and to show the content
you have to set

\setuphead[part][placehead=yes]

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] 11+ messages in thread

* Re: stelinterliniein
  2010-05-30 13:44           ` stelinterliniein Wolfgang Schuster
@ 2010-05-30 16:45             ` Vyatcheslav Yatskovsky
  2010-05-30 17:33               ` stelinterliniein Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Vyatcheslav Yatskovsky @ 2010-05-30 16:45 UTC (permalink / raw)
  To: Wolfgang Schuster, ntg-context

Thank you, Wolfgang, with this correction it works fine!

A few questions, if you don't mind:

1) what \setupinterlinespace
         \let\\=\blank
means? I thought this setup can accept only values in brackets; I don't 
understand this construct.

2) Why I cannot use Part (with capital P)?

3) I took the example from the wiki. Is the example still valid (even 
for  MkII)?

-- 
Best Regards,
Vyatcheslav Yatskovsky


> ConTeXt has for headers the key 'placehead' which controls
> whether a header (placehead=yes) is shown or hidden (placehead=no)
> but there is a third value (placehead=empty) which use the page key
> for the header but hides the header itself. The default setup for
> \part has the empty value for placehead and to show the content
> you have to set
>
> \setuphead[part][placehead=yes]
>
> 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] 11+ messages in thread

* Re: stelinterliniein
  2010-05-30 16:45             ` stelinterliniein Vyatcheslav Yatskovsky
@ 2010-05-30 17:33               ` Wolfgang Schuster
  2010-05-30 18:38                 ` stelinterliniein Henning Hraban Ramm
  2010-05-31 13:42                 ` stelinterliniein Vyatcheslav Yatskovsky
  0 siblings, 2 replies; 11+ messages in thread
From: Wolfgang Schuster @ 2010-05-30 17:33 UTC (permalink / raw)
  To: Vyatcheslav Yatskovsky; +Cc: ntg-context

Am 30.05.10 18:45, schrieb Vyatcheslav Yatskovsky:
> Thank you, Wolfgang, with this correction it works fine!
>
> A few questions, if you don't mind:
>
> 1) what \setupinterlinespace

\setupinterlinespace comes in two version, with the complex version
you can change the values for the lineheight, e.g.

\setupinterlinespace[line=14pt]

while the simple version is used to adapt the linespacing to the current
font size (this works because ConTeXt use a relative distance), e.g.

\starttext
{\definedfont[Regular sa 1.5]\input ward\par}
{\definedfont[Regular sa 1.5]\setupinterlinespace\input ward\par}
\stoptext

>         \let\\=\blank

this saves the meaning for \blank in the \\ command, you could
have done it in this example also with \def\\{\blank}
> means? I thought this setup can accept only values in brackets; I 
> don't understand this construct.
>
> 2) Why I cannot use Part (with capital P)?

When you take a second look at the example you can find this line:

\definehead    [Part]        [chapter]
> 3) I took the example from the wiki. Is the example still valid (even 
> for  MkII)?

Except from a few minor changes regarding font handling in MkIV it 
should run without problems.

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] 11+ messages in thread

* Re: stelinterliniein
  2010-05-30 17:33               ` stelinterliniein Wolfgang Schuster
@ 2010-05-30 18:38                 ` Henning Hraban Ramm
  2010-05-31 13:42                 ` stelinterliniein Vyatcheslav Yatskovsky
  1 sibling, 0 replies; 11+ messages in thread
From: Henning Hraban Ramm @ 2010-05-30 18:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wolfgang, Vyatcheslav,

thank you for debugging my ancient Skdk style!
If you fix it in the wiki, please also remove all those broken links...

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
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] 11+ messages in thread

* Re: stelinterliniein
  2010-05-30 17:33               ` stelinterliniein Wolfgang Schuster
  2010-05-30 18:38                 ` stelinterliniein Henning Hraban Ramm
@ 2010-05-31 13:42                 ` Vyatcheslav Yatskovsky
  2010-05-31 13:53                   ` Algorithmic (was: stelinterliniein) Wolfgang Schuster
  1 sibling, 1 reply; 11+ messages in thread
From: Vyatcheslav Yatskovsky @ 2010-05-31 13:42 UTC (permalink / raw)
  To: Wolfgang Schuster, ntg-context

Hi, Wolfgang

I would be nice to see what your Algorithms package can do ;)

I mean example PDF.

Regards,
Vyatcheslav
___________________________________________________________________________________
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] 11+ messages in thread

* Algorithmic (was: stelinterliniein)
  2010-05-31 13:42                 ` stelinterliniein Vyatcheslav Yatskovsky
@ 2010-05-31 13:53                   ` Wolfgang Schuster
  0 siblings, 0 replies; 11+ messages in thread
From: Wolfgang Schuster @ 2010-05-31 13:53 UTC (permalink / raw)
  To: Vyatcheslav Yatskovsky; +Cc: ntg-context

[-- Attachment #1: Type: text/plain, Size: 256 bytes --]

Am 31.05.10 15:42, schrieb Vyatcheslav Yatskovsky:
> Hi, Wolfgang
>
> I would be nice to see what your Algorithms package can do ;)
>
> I mean example PDF.

Attached is my test file where I used examples from the algorithmic 
package for LaTeX.

Wolfgang


[-- Attachment #2: algorithmic-test.tex --]
[-- Type: application/x-tex, Size: 2277 bytes --]

[-- Attachment #3: t-algorithmic.tex --]
[-- Type: application/x-tex, Size: 4178 bytes --]

[-- Attachment #4: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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] 11+ messages in thread

* Re: Algorithmic (was: stelinterliniein)
       [not found] <mailman.1320.1275318037.4277.ntg-context@ntg.nl>
@ 2010-05-31 15:10 ` Vyatcheslav Yatskovsky
  0 siblings, 0 replies; 11+ messages in thread
From: Vyatcheslav Yatskovsky @ 2010-05-31 15:10 UTC (permalink / raw)
  To: ntg-context

> Attached is my test file where I used examples from the algorithmic
> package for LaTeX.
>
> Wolfgang

Thanks, could be handy. I wish this test file was added to extras along 
with the module.

-- 
Best Regards,
Vyatcheslav Yatskovsky
___________________________________________________________________________________
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] 11+ messages in thread

end of thread, other threads:[~2010-05-31 15:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.0.1275213602.32333.ntg-context@ntg.nl>
2010-05-30 11:45 ` stelinterliniein Vyatcheslav Yatskovsky
2010-05-30 12:40   ` stelinterliniein Wolfgang Schuster
2010-05-30 12:56     ` stelinterliniein Vyatcheslav Yatskovsky
2010-05-30 13:19       ` stelinterliniein Wolfgang Schuster
     [not found]         ` <4C026906.4060407@gmail.com>
2010-05-30 13:44           ` stelinterliniein Wolfgang Schuster
2010-05-30 16:45             ` stelinterliniein Vyatcheslav Yatskovsky
2010-05-30 17:33               ` stelinterliniein Wolfgang Schuster
2010-05-30 18:38                 ` stelinterliniein Henning Hraban Ramm
2010-05-31 13:42                 ` stelinterliniein Vyatcheslav Yatskovsky
2010-05-31 13:53                   ` Algorithmic (was: stelinterliniein) Wolfgang Schuster
     [not found] <mailman.1320.1275318037.4277.ntg-context@ntg.nl>
2010-05-31 15:10 ` Vyatcheslav Yatskovsky

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