Re: [NTG-context] How to sort the reference by the cite sequence

2011-03-31 Thread seasoul
I figured out. I tried many times with different commands. I think if I
cannot get the solution, I will switch to author-year method. Luckily, I
found the solution.

Previously, I am using \placepublications[[criterium=all], because that is a
compromise solution to list the publications in an individual chapter, which
is suggested by many people in the ntg-context. This time, I tried
\placepublications[criterium=cite]. Not surpringsly, an empty list appears
as before. Then I tried \placepublications[criterium=text], hmm, it works.
Only those cited in the text were listed and in a citing sequence.



On Wed, Mar 30, 2011 at 2:02 PM, seasoul bioseas...@gmail.com wrote:


 I want to list the cited reference in the publication list, and numbered by
 the citing sequence. so I use

 \setuppublications[alternative=num,criterium=cite,sorttype=cite]

 But it seems the sequence is the one in the bbl file.

 So i add one line to generate a bbl file by the citing sequence.

 \setupbibtex[database={blabla},sort=cite]

 This time, there is even no bbl file generated.

 How do i get my publication list to what I want: numbered by the citing
 sequence in the text?



___
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] Page break between \title and \itemize

2011-03-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Perfect, thanks!

If anyone is interested, there is a sample attached which demonstrates the problem and 
the solution by autointro.

Lukas



Add: into to \startitemize


\startitemize[intro]
   \item ...
   \item ...
   \item ...
\stopitemize



Or you can use \setupitemize[autointro]

Aditya



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

t-TitItm.mkiv
Description: Binary data


t-TitItm.pdf
Description: Adobe PDF document
___
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] Page break between \title and \itemize

2011-03-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .

BTW, is there a difference between \startitemize[intro] and 
\startitemize[autointro]?

- I tried both and both do the desired effect.

- autointro was your suggestion for \setupitemize whilst intro was option 
for \startitemize...

Kind regards,

Lukas



\startitemize[intro]
   \item ...
   \item ...
   \item ...
\stopitemize



Or you can use \setupitemize[autointro]

Aditya



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] Page break between \title and \itemize

2011-03-31 Thread Wolfgang Schuster

Am 31.03.2011 um 12:11 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

 BTW, is there a difference between \startitemize[intro] and 
 \startitemize[autointro]?

Yes, “autointro” prevents a page break only when the last paragraph
has only one or two lines while “intro” always prevents a page break.

\showgrid

\starttext

% paragraph with 2 lines + autointro

\dorecurse{38}{\crlf}

\dorecurse{30}{text }

\startitemize[autointro]
\item item
\stopitemize

% paragraph with 2 lines + intro

\page

\dorecurse{38}{\crlf}

\dorecurse{30}{text }

\startitemize[intro]
\item item
\stopitemize

% paragraph with 3 lines + autointro

\page

\dorecurse{38}{\crlf}

\dorecurse{40}{text }

\startitemize[autointro]
\item item
\stopitemize

% paragraph with 3 lines + intro

\page

\dorecurse{38}{\crlf}

\dorecurse{40}{text }

\startitemize[intro]
\item item
\stopitemize

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


[NTG-context] Minimal example for Cyrillic

2011-03-31 Thread Aleksandr Sinicyn
Hello!

Cyrillic characters get transliterated after being processed by
texexec.

The following example:

\enableregime[utf]
\useencoding[cyr]
\definetypeface[russian][rm][serif][computer-modern][default][encoding=t2a]
\setupbodyfont[russian,24pt]
\starttext
Немного русского текста для пробы.
\stoptext

produces this result:

Nemnogo russkogo teksta dlya probery.

Solution posted at
http://www.ntg.nl/pipermail/ntg-context/2008/035330.html; no longer
works with context version

ConTeXt  ver: 2010.09.09 23:45 MKII  fmt: 2010.9.10  int:
english/english

but produces the following message:

! Font \*russian12ptrmtfrm*:=larm1000 at 12.0pt not loadable: Metric
(TFM) file not found.
to be read again

Thank you for help.

-- 
http://www.fastmail.fm - Faster than the air-speed velocity of an
  unladen european swallow

___
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] m-obsolete mkii problem

2011-03-31 Thread Mojca Miklavec
Dear Hans,

would it be possible to change the following line in m-obsolete.tex
\writestatus\m!system{skipping obsolete module}
so that it wouldn't generate errors (undefined m!system) when
compiling with mkii? (I suspect that it is connected with bib module,
but I'm not sure).

Thanks a lot,
   Mojca
___
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] type-lua.mkiv

2011-03-31 Thread Wolfgang Schuster
Hi Hans,

can you add \unprotect and \protect at the begin and end of type-lua.mkiv.

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] m-obsolete mkii problem

2011-03-31 Thread Zhichu Chen
I think I've reported that feature a few days ago. It could be \m!systems,
so I have to define \m!system as \m!systems before loading the bib module.

On Thu, Mar 31, 2011 at 6:55 PM, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:

 Dear Hans,

 would it be possible to change the following line in m-obsolete.tex
\writestatus\m!system{skipping obsolete module}
 so that it wouldn't generate errors (undefined m!system) when
 compiling with mkii? (I suspect that it is connected with bib module,
 but I'm not sure).

 Thanks a lot,
   Mojca

 ___
 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

 ___




-- 
Best Regards
Chen
___
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] nested quotes ?

2011-03-31 Thread Steffen Wolfrum
Hi,

I just saw something handy in a LaTeX document: nested quotes!

The source looked liked this...
\enquote{Needless to say \enquote{mind mapping} is just ...}

And the result looked like this ...
“Needless to say ‘mind mapping’ is just ...”


Do we have something like this in ConTeXt too?

Steffen
___
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] columnset failed in the latest beta

2011-03-31 Thread Zhichu Chen
Minimal code:

\definecolumnset[columntest][n=2,balance=yes]
\definecolumnsetspan[wide][n=2]
\starttext
\startcolumnset[columntest]
\startcolumnsetspan[wide]
\dorecurse{3}{\input knuth\par}
\stopcolumnsetspan
\dorecurse{10}{\input knuth\par}
\stopcolumnset
\stoptext

There is no columnsetspan, and a wide frame shows up instead.


-- 
Best Regards
Chen
___
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] nested quotes ?

2011-03-31 Thread Peter Münster
Steffen Wolfrum cont...@st.estfiles.de writes:

 \enquote{Needless to say \enquote{mind mapping} is just ...}

 And the result looked like this ...
 “Needless to say ‘mind mapping’ is just ...”

 Do we have something like this in ConTeXt too?

\quotation{Needless to say \quote{mind mapping} is just ...}

or

http://wiki.contextgarden.net/Quotes

-- 
   Peter
___
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] nested quotes ?

2011-03-31 Thread Marco
On 2011-03-31 pmli...@free.fr (Peter Münster) wrote:

 Steffen Wolfrum cont...@st.estfiles.de writes:
 
  \enquote{Needless to say \enquote{mind mapping} is just ...}
 
  And the result looked like this ...
  “Needless to say ‘mind mapping’ is just ...”
 
  Do we have something like this in ConTeXt too?
 
 \quotation{Needless to say \quote{mind mapping} is just

I think  the idea behind Steffens  post was not to  find a
command that  does the quoting, rather  than finding *one*
command  that  »knows« about  the level of  quotation  and
inserts the corresponding quotation marks.

Marco


___
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] Minimal example for Cyrillic

2011-03-31 Thread Mojca Miklavec
On Thu, Mar 31, 2011 at 12:22, Aleksandr Sinicyn wrote:
 Hello!

 Cyrillic characters get transliterated after being processed by
 texexec.

 The following example:

    \enableregime[utf]
    \useencoding[cyr]
    \definetypeface[russian][rm][serif][computer-modern][default][encoding=t2a]
    \setupbodyfont[russian,24pt]
    \starttext
        Немного русского текста для пробы.
    \stoptext

 produces this result:

    Nemnogo russkogo teksta dlya probery.

 Solution posted at
 http://www.ntg.nl/pipermail/ntg-context/2008/035330.html; no longer
 works with context version

    ConTeXt  ver: 2010.09.09 23:45 MKII  fmt: 2010.9.10  int:
    english/english

 but produces the following message:

    ! Font \*russian12ptrmtfrm*:=larm1000 at 12.0pt not loadable: Metric
    (TFM) file not found.
    to be read again

If nothing else the minimals don't ship with cm-super or lh (or
whatever font is needed to get the basic cyrillic work in CM style).

What TeX distribution do you use?

Mojca
___
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] nested quotes ?

2011-03-31 Thread mathew
On Thu, Mar 31, 2011 at 07:35, Marco net...@lavabit.com wrote:
 I think  the idea behind Steffens  post was not to  find a
 command that  does the quoting, rather  than finding *one*
 command  that  »knows« about  the level of  quotation  and
 inserts the corresponding quotation marks.

...like the quotation macro on the cited web page,
http://wiki.contextgarden.net/Quotes


mathew
___
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] nested quotes ?

2011-03-31 Thread Peter Münster
Marco net...@lavabit.com writes:

 I think  the idea behind Steffens  post was not to  find a
 command that  does the quoting, rather  than finding *one*
 command  that  »knows« about  the level of  quotation  and
 inserts the corresponding quotation marks.

Right. That's why I mentioned also http://wiki.contextgarden.net/Quotes

-- 
   Peter
___
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] nested quotes ?

2011-03-31 Thread Steffen Wolfrum

Am 31.03.2011 um 14:12 schrieb Peter Münster:

 Steffen Wolfrum cont...@st.estfiles.de writes:
 
 Do we have something like this in ConTeXt too?
 
 http://wiki.contextgarden.net/Quotes


Sure we have!!  :o)

Thx,
Steffen
___
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] Minimal example for Cyrillic

2011-03-31 Thread mathew
Here's a full working Cyrillic (and Greek) example, with comments:

%context
%
% Example of Cyrillic in ConTeXt.
%
% For plain text, I'm using Gentium Plus, which has more glyphs but doesn't yet
% have bold and italic variants.
%
% You can obtain Gentium Plus from http://scripts.sil.org/gentium
%
\starttypescript [serif][gentium][name]
  \definefontsynonym [Serif]  [name:gentiumplus]
  \definefontsynonym [SerifBold][name:gentiumbasicbold]
  \definefontsynonym [SerifItalic]  [name:gentiumbasicitalic]
  \definefontsynonym [SerifSlanted] [name:gentiumplus]
  \definefontsynonym [SerifBoldItalic]  [name:gentiumbasicbolditalic]
  \definefontsynonym [SerifBoldSlanted] [name:gentiumbasicbold]
  \definefontsynonym [SerifCaps][name:gentiumplus]
\stoptypescript

% Now define a typescript which groups together the three chosen fonts, and
% sets their relative sizes.
% Two arguments: 'myfonts' is the name, 'default' is the character encoding.
\starttypescript [myfonts][default]
% For each typeface definition:
% - The first parameter is the name for the typeface collection, which
%   may be a font family, or just a set of fonts that work well together.
%   Whatever the case, it's the name we'll use to select this set of
%   fonts later.
% - The next parameter is a basic style; typically we'll have one line
%   for each basic style, but I'm skipping mm (math mode) in this example.
% - Then there are three arguments which are used to locate a typescript
%   defined earlier. Note that [default] matches our earlier definitions
%   because they were all implicitly in the default text encoding.
% - Finally, any options, most commonly adjustments to relative scaling
%   so the fonts work together.
\definetypeface [nicefonts][rm][serif][gentium] [default]
\stoptypescript

% Now tell ConTeXt to actually execute the typescript we defined immediately
% above, and hence any typescripts it depends on.
%
% This executes the \definetypeface calls to define our typeface set.  Again,
% myfonts is the name of the typescript, default is the character encoding.
\usetypescript[myfonts][default]

% Finally, use that typeface set, at 10pt base size.
% Calling setupbodyfont changes headers and footers as well as body text;
% switchtobodyfont just changes body text.
\setupbodyfont[nicefonts,10pt]

% And finally, the actual document
\starttext

Улице найденных совершенно на тд. Можно статьи команды он без. Одну филипа
обычно по вот. Мои статьи человек процессе те, могу фирме всё он, ну над никто
размере русском. Опа до раздавая правильно, нейманом содержимое об над. Те
взяться плохого код, свой осуществлять все не.

Here's some Greek too:

Αν σωστά νόμιζες της, έτσι γραμμής βασανίζουν να πως, κι εκτός μάλλον όσο.
Πετούν παραγωγικής οι σας, έξι τελικά κάνεις σε. Μέρος υπέροχα τελειώσει όρο
δε. Δε νέο πάτο διακοπή, επί αφού κειμένων αποφάσισε πω. Τέτοιο βασανίζουν από
ως. Σας σχεδιαστής χρησιμοποιήσει τι, γέλασαν διάσημα δημιουργείς το που.

\showbodyfont[gentium]

\stoptext


mathew
-- 
http://www.pobox.com/~meta/
___
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] nested quotes ?

2011-03-31 Thread Marco
On 2011-03-31 pmli...@free.fr (Peter Münster) wrote:

 Marco net...@lavabit.com writes:
 
  I think  the idea behind Steffens  post was not to  find a
  command that  does the quoting, rather  than finding *one*
  command  that  »knows« about  the level of  quotation  and
  inserts the corresponding quotation marks.
 
 Right. That's why I mentioned also
 http://wiki.contextgarden.net/Quotes

My fault, I overlooked that  part. But indeed, a very nice
definition. I wasn't aware of that.


Marco


___
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] rscale (only for integers?)

2011-03-31 Thread Steffen Wolfrum
Hi,

in a typescript I need to set sansserif font proportional bigger than serif 
font. 
Using rscale?
As far as I have seen this only works when integers are used for bodyfont:

\starttypescript [times]
\definetypeface [times] [ss] [sans][helvetica] [default] 
[rscale=10.2]
\stoptypescript

\usetypescript[times]
%\setupbodyfont[times,10pt] % - try this ...
\setupbodyfont[times,10.1pt] % - ... and then this

\starttext

Test \ss{text}

\stoptext



Unfortunately the sizes for bodyfont and footnotes are specified by publisher 
(10.1pt and 8.5pt).

Is there a chance to get rscale working even for theses decimal fractions?

Steffen
___
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] chapter and section titles in margin of each page

2011-03-31 Thread C.
Hello,

this is nice:
http://wiki.contextgarden.net/Headers_and_Footers#Marginal_headings_and_cent
ered_headings
However, the text in the margin has not the same interlinespace as the main
text and that looks weird.
See http://i52.tinypic.com/91rc.png
The only solution I came up with is using \framed:

\startsetups[text a] 
\framed[align=flushleft,
height=24\lineheight,
width=\rightmarginwidth,
frame=off
]
{\getmarking[section]}
\stopsetups

The drawback seems to be that with this, I can not use \raised , so I have
to enlarge the frame  (It says A box is expected here when I try to raise
the frame).

Is there a better solution?

P.S: Bonus points: Align baselines of margin text and main text.

___
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] chapter and section titles in margin of each page

2011-03-31 Thread Wolfgang Schuster

Am 31.03.2011 um 19:17 schrieb C.:

 Hello,
 
 this is nice:
 http://wiki.contextgarden.net/Headers_and_Footers#Marginal_headings_and_cent
 ered_headings
 However, the text in the margin has not the same interlinespace as the main
 text and that looks weird.
 See http://i52.tinypic.com/91rc.png
 The only solution I came up with is using \framed:
 
 \startsetups[text a] 
   \framed[align=flushleft,
   height=24\lineheight,
   width=\rightmarginwidth,
   frame=off
   ]
   {\getmarking[section]}
 \stopsetups
 
 The drawback seems to be that with this, I can not use \raised , so I have
 to enlarge the frame  (It says A box is expected here when I try to raise
 the frame).
 
 Is there a better solution?

\setuplayout[grid=yes]

\setuppagenumbering[alternative=doublesided]

\setuptexttexts[margin][][\setups{text a}][\setups{text b}][]

\startsetups[text a]
\framed
  [frame=off,
   offset=0pt,
   width=broad,
   height=\vsize,
   align={high,flushleft},
   top={\blank[12*line]}]
  {\getmarking[chapter]}
\stopsetups

\startsetups[text b]
\framed
  [frame=off,
   offset=0pt,
   width=broad,
   height=\vsize,
   align={high,flushright},
   top={\blank[12*line]}]
  {\getmarking[section]}
\stopsetups

\showframe\showgrid

\starttext

\chapter{Chapter Knuth Testing}

\section{Section Knuth Testing}

\dorecurse{20}{\input knuth\par}

\stoptext

 P.S: Bonus points: Align baselines of margin text and main text.

Does only work when you enable grid typesetting.

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] rscale (only for integers?)

2011-03-31 Thread Thomas A. Schmitz

On Mar 31, 2011, at 5:22 PM, Steffen Wolfrum wrote:

 Hi,
 
 in a typescript I need to set sansserif font proportional bigger than serif 
 font. 
 Using rscale?
 As far as I have seen this only works when integers are used for bodyfont:
 
 \starttypescript [times]
\definetypeface [times] [ss] [sans][helvetica] [default] 
 [rscale=10.2]
 \stoptypescript
 
 \usetypescript[times]
 %\setupbodyfont[times,10pt] % - try this ...
 \setupbodyfont[times,10.1pt] % - ... and then this
 
 \starttext
 
 Test \ss{text}
 
 \stoptext
 
 
 
 Unfortunately the sizes for bodyfont and footnotes are specified by publisher 
 (10.1pt and 8.5pt).
 
 Is there a chance to get rscale working even for theses decimal fractions?
 
 Steffen

You need:

\starttypescript [serif] [default] [size] 
\definebodyfont [10.1pt] [rm] [default] 
\stoptypescript

\definebodyfontenvironment[10.1pt]

But I doubt that there is any visible difference between 10pt and 10.1pt (and 
due to rounding errors, there may be no difference at all).

Thomas


___
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] Minimal example for Cyrillic

2011-03-31 Thread Thomas A. Schmitz
Your example is very nice, and I appreciate that you took the time to comment 
all this. But actually, all you need is:

\setupbodyfont[gentium,12pt]

and then your text. Explanation: gentium is in the minimal distribution, 
there's a typescript for it 
(context/tex/texmf/tex/context/third/gentium/type-gentium.tex), and if the 
bodyfont and the typescript have the same name, context will find it 
automagically. Mojca, did we add something about this to the wiki? 

Thomas

On Mar 31, 2011, at 4:44 PM, mathew wrote:

 Here's a full working Cyrillic (and Greek) example, with comments:
 
 %context
 %
 % Example of Cyrillic in ConTeXt.
 %
 % For plain text, I'm using Gentium Plus, which has more glyphs but doesn't 
 yet
 % have bold and italic variants.
 %
 % You can obtain Gentium Plus from http://scripts.sil.org/gentium
 %
 \starttypescript [serif][gentium][name]
  \definefontsynonym [Serif] [name:gentiumplus]
  \definefontsynonym [SerifBold]   [name:gentiumbasicbold]
  \definefontsynonym [SerifItalic]  [name:gentiumbasicitalic]
  \definefontsynonym [SerifSlanted] [name:gentiumplus]
  \definefontsynonym [SerifBoldItalic]  [name:gentiumbasicbolditalic]
  \definefontsynonym [SerifBoldSlanted] [name:gentiumbasicbold]
  \definefontsynonym [SerifCaps][name:gentiumplus]
 \stoptypescript
 
 % Now define a typescript which groups together the three chosen fonts, and
 % sets their relative sizes.
 % Two arguments: 'myfonts' is the name, 'default' is the character encoding.
 \starttypescript [myfonts][default]
% For each typeface definition:
% - The first parameter is the name for the typeface collection, which
%   may be a font family, or just a set of fonts that work well together.
%   Whatever the case, it's the name we'll use to select this set of
%   fonts later.
% - The next parameter is a basic style; typically we'll have one line
%   for each basic style, but I'm skipping mm (math mode) in this example.
% - Then there are three arguments which are used to locate a typescript
%   defined earlier. Note that [default] matches our earlier definitions
%   because they were all implicitly in the default text encoding.
% - Finally, any options, most commonly adjustments to relative scaling
%   so the fonts work together.
\definetypeface [nicefonts][rm][serif][gentium] [default]
 \stoptypescript
 
 % Now tell ConTeXt to actually execute the typescript we defined immediately
 % above, and hence any typescripts it depends on.
 %
 % This executes the \definetypeface calls to define our typeface set.  Again,
 % myfonts is the name of the typescript, default is the character encoding.
 \usetypescript[myfonts][default]
 
 % Finally, use that typeface set, at 10pt base size.
 % Calling setupbodyfont changes headers and footers as well as body text;
 % switchtobodyfont just changes body text.
 \setupbodyfont[nicefonts,10pt]
 
 % And finally, the actual document
 \starttext
 
 Улице найденных совершенно на тд. Можно статьи команды он без. Одну филипа
 обычно по вот. Мои статьи человек процессе те, могу фирме всё он, ну над никто
 размере русском. Опа до раздавая правильно, нейманом содержимое об над. Те
 взяться плохого код, свой осуществлять все не.
 
 Here's some Greek too:
 
 Αν σωστά νόμιζες της, έτσι γραμμής βασανίζουν να πως, κι εκτός μάλλον όσο.
 Πετούν παραγωγικής οι σας, έξι τελικά κάνεις σε. Μέρος υπέροχα τελειώσει όρο
 δε. Δε νέο πάτο διακοπή, επί αφού κειμένων αποφάσισε πω. Τέτοιο βασανίζουν από
 ως. Σας σχεδιαστής χρησιμοποιήσει τι, γέλασαν διάσημα δημιουργείς το που.
 
 \showbodyfont[gentium]
 
 \stoptext
 
 
 mathew
 -- 
 http://www.pobox.com/~meta/
 ___
 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
 ___

___
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] Minimal example for Cyrillic

2011-03-31 Thread mathew
On Thu, Mar 31, 2011 at 17:14, Thomas A. Schmitz
thomas.schm...@uni-bonn.de wrote:
 Explanation: gentium is in the minimal distribution

Aha. I didn't notice that because LuaTeX found my OS-installed one
first, and so used that.


mathew
-- 
URL:http://www.pobox.com/~meta/
___
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
___