ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Another issue with my magazine
@ 2013-09-03 21:10 Mikoláš Štrajt
  2013-09-03 22:43 ` vragen over layoutinstellingen Ernst van der Storm
  2013-09-04  9:22 ` Another issue with my magazine Hans Hagen
  0 siblings, 2 replies; 8+ messages in thread
From: Mikoláš Štrajt @ 2013-09-03 21:10 UTC (permalink / raw)
  To: ntg-context

% Hello All!
%
% In the folowing style, I need to do some whitespace tweaks. Unfortunately, I didn't found solutions in manual, so I am asking here.
%
% I need:
%
% - make first paragraph after author name noindented, i tried to put some \nointdent here, but without any effect
% - make vertical space between article head and author name shorter (also in general : modify vertical spaces of heads)
%
% Regards Mikoláš Štrajt
%
% PS: You can use this e-mail as source code of my solution. :-D


%%%
%%% FOLLOWING IS STYLE AS IS USED IN REAL LIFE %%%
%%%

% Čeština
\enableregime[utf]

% Fonty
\definetypeface [iwona] [ss] [sans] [iwona] [default] [encoding=ec]
\definetypeface [antykwa] [rm] [serif] [antykwa-torunska] [default] [encoding=ec]
\usetypescript[modern][ec]
\setupbodyfont[ss,10pt]

% Papír a číslování řádek

\mainlanguage[cz]

\setuppapersize[A4][A4]
\setuppagenumbering[location={footer,middle}]

% Struktura

\definehead[kochapter][chapter]
\setuphead[title][style=\antykwa, number=no]
\setuphead[kochapter][placehead=empty,before=,after=,number=no]
\setuphead[section][page=no,style=\tfb\iwona\grave,number=no]

\def\rubrika #1{\kochapter{#1}}

\def\prispevek #1#2{
\section{#2}
{\noindent \rm \sc #1} \noindent \endgraf \noindent
}

% Hlavička a patička

\setupheadertexts[]
\setupheadertexts[\setups{hlavicka}][][][\setups{hlavicka}]

\startsetups[hlavicka]
  \zanrO{\getmarking[kochapter]}
\stopsetups


% Odstavce
\setupindenting[yes, small]
\setupheads[indentnext=no]

% Záložky a PDF
\placebookmarks[kochapter,section][force=yes]
\setupinteractionscreen[option=bookmark]
\setupinteraction[state=start,
  title={Neslyšný kočkopes},
  author={Psanci}]

% TOC

\setupcombinedlist[content][list={kochapter,section,subsection}]
\setuplist[kochapter][interaction=text,color=green,textcommand=\WORD]
\setuplist[section][interaction=text,color=green]

% Barvy

\setupcolors[state=start]
\definecolor[indigo][r=.0, g=0.0, b=0.5]
\definecolor[green][r=0, g=0.5, b=0]
\definecolor[ruda][r=0.5, g=0, b=0]
\definecolor[grave][r=0.5, g=0.5, b=0.5]

% Makra

\def\citat #1#2{
{\it
#1
\blank[1*halfline]
\rightaligned{--- #2}
}}

\def\trojtecka {
{\bf \ruda \tt...}
}

\def \robotitulka{
\startstandardmakeup
\title{Neslyšný kočkopes - \getvariable[cislo]}
\placecontent
\stopstandardmakeup
\page
}

\def\zanrO #1{
\framed[
  background=color,
  backgroundcolor=grave,
  foreground=color,
  foregroundcolor=white,
  frame=off.
  width=\hsize
  ]{\antykwa \rightaligned{\WORD{#1}~~}}
}

\setupdelimitedtext[blockquote][style=\slx,before={\setupinterlinespace[line=2.4ex]}]

%%%
%%% FOLLOWING IS EXAMPLE TEXT %%%
%%%

%%% `rubrika` is section of magazine
\rubrika{Example}

%%% `pripevek` is article
%%% syntax is \prispevek{author name}{article name}

\prispevek{Steve W. Hawking}{The Universe in a Nutshell}

\dorecurse{10}{\input hawking\par}
___________________________________________________________________________________
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] 8+ messages in thread

* vragen over layoutinstellingen
  2013-09-03 21:10 Another issue with my magazine Mikoláš Štrajt
@ 2013-09-03 22:43 ` Ernst van der Storm
  2013-09-03 22:53   ` luigi scarso
  2013-09-04  8:49   ` Hans Hagen
  2013-09-04  9:22 ` Another issue with my magazine Hans Hagen
  1 sibling, 2 replies; 8+ messages in thread
From: Ernst van der Storm @ 2013-09-03 22:43 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'


[-- Attachment #1.1: Type: text/plain, Size: 1464 bytes --]

Beste NTG-context,

 

Als context-beginner heb ik nu een probleem waarvan het me niet lukt om het op te lossen.

In context mkiv kan ik dit minimale voorbeeld zonder fouten compileren (ik heb binary's die nog geen maand oud zijn). In de bijlage(s) beide bronbestanden, met mijn output.

 

Het lukt niet om het paginanummer onder de beide afbeeldingen weg te krijgen. De afbeelding is bedoeld als voorpagina, nu ook als achterpagina.

Allerlei varianten geprobeerd -- alle marges en afstanden, hoofd en voet op 0cm gezte, zelfs negatieve waardes, het voorbeeld toont de eerste (voor-)pagina met een onderwit/-marge/-voet die leeg is (0cm), toch nog steeds met het paginanummer (op de rand van de A4).

 

Sommige hulpcommando's willen overigens niet compileren: %\tooninstellingen en %\toonlayout.

\toonkader werkt wel, de eerste pagina geeft ook een minimale rand, maar toch met het paginanummmer (en dat wil ik op de voor- en achterpagina juist niet.

 

Bijkomende vraag is waarom ik er steeds een derde -- lege -- pagina bij krijg (in een eerder stadium had ik die niet). (Section- en of hoofdstuknummers interesseren mij niet, maar paginanummers wil ik soms níét zien, op de voor- en achterpagina.

 

Graag advies. 

 

Met groeten,      Ernst van der Storm.

 

PS ConTeXt (b)lijkt eenvoudiger dan LaTeX, maar dit soort moeilijkheden frustreren... Soms lijkt cont-nli.pdf verouderd (2001) is er een nieuwere versie?


[-- Attachment #1.2: Type: text/html, Size: 4573 bytes --]

[-- Attachment #2: pcboekje10.tex --]
[-- Type: TeX file/octet-stream, Size: 1117 bytes --]

%interface=nl
\enableregime[utf]
\definetypeface[lucida][tt][luc][][][encoding = utf8]
\stelpapierformaatin[A4][A4]
\stelkorpsin[palatino,palatino,14pt]
\stelinterliniein[regel=19pt]
\stelwitruimtein[klein]

\starttekst
\stellayoutin[plaats=dubbelzijdig,breedte=midden,hoogte=midden,hoofd=0cm,voet=0cm,status=geen,paginanummer=leeg]
\stelpaginanummerin[status=geen,paginanummer=leeg]
\stellayoutin[hoofd=0cm,voet=0cm,kopwit=0.6cm,paginanummer=leeg] % nummer=nee werkt niet
%\paslayoutaan[1][hoogte=+4cm] % geen zichtb. effect
\gebruikexternfiguur[Voorkant][herfsttijvkwit.jpg][breedte=1.24\tekstbreedte,hoogte=1\teksthoogte]%\tooninstellingen%\toonlayout niet meer
\toonkader
\plaatsfiguur[midden][]{}{\externfiguur[Voorkant]}
\stelpaginanummerin[status=start]
\pagina[ja]
\stellayoutin[breedte=16cm,hoogte=26cm,plaats=midden,voet=0cm,kopwit=0.55cm,hoofd=0cm,hoofdafstand=0cm,boven=0cm,bovenafstand=0cm] % nummer=nee werkt niet
\gebruikexternfiguur[Achterkant][herfsttijvkwit.jpg][breedte=1.23\tekstbreedte,hoogte=1.09\teksthoogte]
\plaatsfiguur[boven][]{}{\externfiguur[Achterkant]}
\stoptekst

[-- Attachment #3: herfsttijVKwit.JPG --]
[-- Type: image/jpeg, Size: 22896 bytes --]

[-- Attachment #4: pcboekje10.pdf --]
[-- Type: application/pdf, Size: 28649 bytes --]

[-- Attachment #5: Type: text/plain, Size: 485 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] 8+ messages in thread

* Re: vragen over layoutinstellingen
  2013-09-03 22:43 ` vragen over layoutinstellingen Ernst van der Storm
@ 2013-09-03 22:53   ` luigi scarso
  2013-09-04  8:49   ` Hans Hagen
  1 sibling, 0 replies; 8+ messages in thread
From: luigi scarso @ 2013-09-03 22:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 240 bytes --]

2013/9/4 Ernst van der Storm <evdstorm@xs4all.nl>

> PS ConTeXt (b)lijkt eenvoudiger dan LaTeX, maar dit soort moeilijkheden
> frustreren...
>
> yes, it's different from latex, but it doesn't mean that it is easier than
latex.



-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 712 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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] 8+ messages in thread

* Re: vragen over layoutinstellingen
  2013-09-03 22:43 ` vragen over layoutinstellingen Ernst van der Storm
  2013-09-03 22:53   ` luigi scarso
@ 2013-09-04  8:49   ` Hans Hagen
  2013-09-07 16:08     ` re " Ernst van der Storm
  1 sibling, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2013-09-04  8:49 UTC (permalink / raw)
  To: ntg-context

On 9/4/2013 12:43 AM, Ernst van der Storm wrote:
> Beste NTG-context,
>
> Als context-beginner heb ik nu een probleem waarvan het me niet lukt om
> het op te lossen.
>
> In context mkiv kan ik dit minimale voorbeeld zonder fouten compileren
> (ik heb binary's die nog geen maand oud zijn). In de bijlage(s) beide
> bronbestanden, met mijn output.
>
> Het lukt niet om het paginanummer onder de beide afbeeldingen weg te
> krijgen. De afbeelding is bedoeld als voorpagina, nu ook als achterpagina.
>
> Allerlei varianten geprobeerd -- alle marges en afstanden, hoofd en voet
> op 0cm gezte, zelfs negatieve waardes, het voorbeeld toont de eerste
> (voor-)pagina met een onderwit/-marge/-voet die leeg is (0cm), toch nog
> steeds met het paginanummer (op de rand van de A4).
>
> Sommige hulpcommando's willen overigens niet compileren:
> %\tooninstellingen en %\toonlayout.
>
> \toonkader werkt wel, de eerste pagina geeft ook een minimale rand, maar
> toch met het paginanummmer (en dat wil ik op de voor- en achterpagina
> juist niet.
>
> Bijkomende vraag is waarom ik er steeds een derde -- lege -- pagina bij
> krijg (in een eerder stadium had ik die niet). (Section- en of
> hoofdstuknummers interesseren mij niet, maar paginanummers wil ik soms
> níét zien, op de voor- en achterpagina.
>
> Graag advies.
>
> Met groeten,      Ernst van der Storm.
>
> PS ConTeXt (b)lijkt eenvoudiger dan LaTeX, maar dit soort moeilijkheden
> frustreren... Soms lijkt cont-nli.pdf verouderd (2001) is er een
> nieuwere versie?

for this kind of things there are the makeup commands


% interface=nl

\starttekst

\stellayoutin
   [breedte=midden,
    hoogte=midden,
    hoofd=0cm,
    voet=0cm,
    kopwit=0.6cm]

\startstandaardopmaak % [dubbelzijdig=nee]
     \externfiguur[mill.png][breedte=\tekstbreedte,hoogte=\teksthoogte]
\stopstandaardopmaak

\stoptekst


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Another issue with my magazine
  2013-09-03 21:10 Another issue with my magazine Mikoláš Štrajt
  2013-09-03 22:43 ` vragen over layoutinstellingen Ernst van der Storm
@ 2013-09-04  9:22 ` Hans Hagen
  1 sibling, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2013-09-04  9:22 UTC (permalink / raw)
  To: ntg-context

On 9/3/2013 11:10 PM, Mikoláš Štrajt wrote:
> % Hello All!
> %
> % In the folowing style, I need to do some whitespace tweaks. Unfortunately, I didn't found solutions in manual, so I am asking here.
> %
> % I need:
> %
> % - make first paragraph after author name noindented, i tried to put some \nointdent here, but without any effect
> % - make vertical space between article head and author name shorter (also in general : modify vertical spaces of heads)
> %
> % Regards Mikoláš Štrajt
> %
> % PS: You can use this e-mail as source code of my solution. :-D

first of all you need to switch to mkiv ... more change on tips and 
solutions then

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 8+ messages in thread

* re RE:  vragen over layoutinstellingen
  2013-09-04  8:49   ` Hans Hagen
@ 2013-09-07 16:08     ` Ernst van der Storm
  0 siblings, 0 replies; 8+ messages in thread
From: Ernst van der Storm @ 2013-09-07 16:08 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

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

Thanks, Hans, 
It is possible to get it working this way, however, only with juggeling with the
height of the image. The pagenumber can still be seen with some values
0.98/0.99\teksthoogte (necessary for positioning/centering the image vertically)
(only?) at page 1.

Gr. Ernst.
> Het lukt niet om het paginanummer onder de afbeeldingen weg te krijgen
> Sommige hulpcommando's willen overigens niet compileren:
> %\tooninstellingen en %\toonlayout.

for this kind of things there are the makeup commands

% interface=nl

\starttekst

\stellayoutin
   [breedte=midden,
    hoogte=midden,
    hoofd=0cm,
    voet=0cm,
    kopwit=0.6cm]

\startstandaardopmaak % [dubbelzijdig=nee]
     \externfiguur[mill.png][breedte=\tekstbreedte,hoogte=\teksthoogte]
\stopstandaardopmaak

\stoptekst


------------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
------------------------------------------------------------------

[-- Attachment #2: pcboekje11.tex --]
[-- Type: TeX file/octet-stream, Size: 737 bytes --]

\enableregime[utf]
\definetypeface[lucida][tt][luc][][][encoding = utf8]
\stelpapierformaatin[A4][A4]
%\stelkorpsin[palatino,palatino,14pt]
%\stelinterliniein[regel=19pt]
\gebruikexternfiguur[Voorkant][mill.png][breedte=1.24\tekstbreedte,hoogte=.98\teksthoogte]
\gebruikexternfiguur[Achterkant][mill.png][breedte=1.24\tekstbreedte,hoogte=\teksthoogte]
\stellayoutin[breedte=midden,hoogte=midden,hoofd=0cm,voet=0cm,kopwit=0.2cm]
%\toonkader
\starttekst
\stopstandaardopmaak
\startstandaardopmaak %[dubbelzijdig=nee]
\plaatsfiguur[midden][]{}{\externfiguur[Voorkant]}
\stopstandaardopmaak
\pagina[ja]
\startstandaardopmaak[pagina=nee]
\plaatsfiguur[midden][]{}{\externfiguur[Achterkant]}
\stopstandaardopmaak
\stoptekst

[-- Attachment #3: Type: text/plain, Size: 485 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] 8+ messages in thread

* Re: Another issue with my magazine
  2013-09-04 19:51 Mikoláš Štrajt
@ 2013-09-05 13:57 ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2013-09-05 13:57 UTC (permalink / raw)
  To: ntg-context

On 9/4/2013 9:51 PM, Mikoláš Štrajt wrote:
> On 2013-09-04 Hans Hagen wrote:
>
>  > first of all you need to switch to mkiv ... more change on tips and
> solutions then
>
> OK. I have switched to mkiv. What now about my head whitespace problems.

well, first provide a mkiv example ... less code than the mkii one

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Another issue with my magazine
@ 2013-09-04 19:51 Mikoláš Štrajt
  2013-09-05 13:57 ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Mikoláš Štrajt @ 2013-09-04 19:51 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 212 bytes --]

On 2013-09-04 Hans Hagen wrote:

> first of all you need to switch to mkiv ... more change on tips and 
solutions then

OK. I have switched to mkiv. What now about my head whitespace problems.

--

Mikolas Strajt

[-- Attachment #1.2: Type: text/html, Size: 275 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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] 8+ messages in thread

end of thread, other threads:[~2013-09-07 16:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-03 21:10 Another issue with my magazine Mikoláš Štrajt
2013-09-03 22:43 ` vragen over layoutinstellingen Ernst van der Storm
2013-09-03 22:53   ` luigi scarso
2013-09-04  8:49   ` Hans Hagen
2013-09-07 16:08     ` re " Ernst van der Storm
2013-09-04  9:22 ` Another issue with my magazine Hans Hagen
2013-09-04 19:51 Mikoláš Štrajt
2013-09-05 13:57 ` Hans Hagen

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