[NTG-context] Gidole font problem

2016-12-02 Thread Mikoláš Štrajt
Hi,


I am triying to use custom font in my Context documents.


However, it doesnt work without any obvious trace.


Output is completely blank page.


When I comment out definefontfamily and setupbodyfont commands, it works but 
output is in Latin Modern font.


See 
https://gist.github.com/severak/e4c072d508a87e80d52d19123543e982#file-gidole-tex
 for full log and source code.


Best regards


-- 
Mikoláš Štrajt / Severák / http://severak.neocities.org/


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Finalizing my book

2015-09-06 Thread Mikoláš Štrajt
>> 1) its impossible to place table of content after the content itself. It
>> simply doesnt display without any trace in log.
>
>Hi Mikoláš,
>
>\placecontent[criterium=previous] is the right command.
>
>> 2) i am triying to use Antykwa Torunska with "\definetypeface [antykwa]
>> [rm] [serif] [antykwa-torunska] [default] [encoding=ec]", but it
>> complaint for misssing typescript. Is there some working way to install
>> it? (Using minimals)
>
>I use MkIV and this works (no typescripts involved):
>
>  \definefontfamily [antykwa] [rm] [Antykwa Torunska]
>
>   \definefontfamily [iwona] [rm] [Iwona]
>
>   \setupbodyfont[iwona,12pt]
>
>   \setuphead[section]  [style=\tfc\antykwa]
>
>   \setuphead[subsection]   [style=\tfb\antykwa, page=yes]


Both suggestions worked like a charm. Thank you.

Mikoláš
___
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] Finalizing my book

2015-09-05 Thread Mikoláš Štrajt
I am finalizing my semi-autogenerated e-book and i ran into three issues:

1) its impossible to place table of content after the content itself. It 
simply doesnt display without any trace in log.
2) i am triying to use Antykwa Torunska with "\definetypeface [antykwa] [rm]
[serif] [antykwa-torunska] [default] [encoding=ec]", but it complaint for 
misssing typescript. Is there some working way to install it? (Using 
minimals)
3) is there some trick to protect stanzas of poems against pagebreak in the 
middle of stanza? Or there are some usefult tips/modules when typeseting 
poetry in Context?

Full code of my book is at http://svita.cz/archiv/debug/pro-kukacku.tex

I decided not to create some faux example documents cause it doesnt seems to
be document-specific issues for me.

Thanks for any help.

Mikoláš Štrajt
___
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] Another issue with my magazine

2013-09-04 Thread Mikoláš Štrajt
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___
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] Another issue with my magazine

2013-09-03 Thread Mikoláš Štrajt
% 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
___

[NTG-context] Hidden sections

2013-08-23 Thread Mikoláš Štrajt
Hello all,

We are writing a magazine with my friends and I am going to typeset it with 
ConTEXt. It works fine but I ran into the problem with heads.

In our magazine articles will be grouped in sections (e.g. poetry, short 
stories, programming). I need to hide section heads in text but to show them
in TOC and page headers. 

So there will be no „Poetry“ head in text but „Poetry“ will be shown in page
header and TOC.

Unfortunately, the trick from http://wiki.contextgarden.net/Titles#Flushing_
section_head_data_without_typesetting_them_in_the_text seems to not work for
me.

Thanks for help.

--

Mikoláš Štrajt
___
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] Czech typographic speciality

2012-09-03 Thread Mikoláš Štrajt


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