[NTG-context] Wiki discussion: Fwd: Ctx wiki

2011-04-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I passed first trials contributing wiki - 
http://wiki.contextgarden.net/Special:Contributions/LuP.

Several questions:

- http://wiki.contextgarden.net/%5Cdoif...

   The item about \doif... was intended to appear in the reference/en, but it 
doesn't. How to provide it?

- http://wiki.contextgarden.net/%5Cstartitemize

   The item \staritemize creates (automatic?) table of contents, but bellow 
the first table (why?). Is it possible 1) to avoid the TOC creation or 2) to determine 
another TOC location?

- Why there is %5C in the links above? Any way how to avoid this?

Pls, feel free to modify my initial experienceless wiki code - I'll recognize 
your modifications, so I may avoid bad ways in the future.

Best regards,

Lukas

___
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] Wiki discussion: Fwd: Re: Ctx wiki

2011-04-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hi Lukáš,


Several questions:

- http://wiki.contextgarden.net/%5Cdoif...

 The item about \doif... was intended to appear in the reference/en, but it 
doesn't. How to provide it?


just insert

[[Category:Reference/en|doif]]

at the bottom of the page.

The page should not be http://wiki.contextgarden.net/%5Cdoif; but at 
http://wiki.contextgarden.net/Reference/en/doif;. And it might be helpful to follow the scheme of 
the other commands (see the source for http://wiki.contextgarden.net/Reference/en/color for example) and fill 
out the form that is inside {{  }}.



- http://wiki.contextgarden.net/%5Cstartitemize

 The item \staritemize creates (automatic?) table of contents, but bellow the 
first table (why?). Is it possible 1) to avoid the TOC creation or 2) to determine 
another TOC location?


If I remember correctly then you can say __NOTOC__ somewhere on the page that 
prevents creating a toc. And you should follow the example on the other 
references pages.


- Why there is %5C in the links above? Any way how to avoid this?


I'd guess that \ is an invalid character in an URL, but I don't know. We have 
decided to omit the \ in the command names, because all commands start with a 
backslash.

HTH,

Patrick

___
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-04-01 Thread Steffen Wolfrum

Am 01.04.2011 um 00:09 schrieb 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.5pt] % - ... and then this
 
 \starttext
 
 Test \ss{text}
 
 \stoptext
 
 
 
 Unfortunately the sizes for bodyfont and footnotes are specified by 
 publisher (10.5pt 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.5pt] [rm] [default] 
 \stoptypescript
 
 \definebodyfontenvironment[10.5pt]




Ok, but something still is missing  The bodyfont doesn't get bigger here:



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


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


\definebodyfontenvironment[10.5pt]

\usetypescript[times]
\setupbodyfont[times,10.5pt]

\setupfootnotes[bodyfont={rm,8.5pt}]

\definestartstop[quote]
[before={\setupnarrower[left=10pt,right=0pt]\startnarrower[left,right]\switchtobodyfont[8.5pt]\setupinterlinespace[line=10.5pt]},after={\stopnarrower}]


\starttext

Test {\ss text} test\footnote{text {\ss text} test} test.

\startquote
test {\ss text} \input ward \par
\stopquote

\stoptext



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

2011-04-01 Thread Wolfgang Schuster

Am 01.04.2011 um 00:09 schrieb 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).

It does also work when you switch to the “times” typeface *before* \starttext 
and change the size *after* \starttext:

\definetypeface [times] [rm] [serif] [times] [default]
\definetypeface [times] [ss] [sans]  [helvetica] [default] [rscale=2]

\setupbodyfont[times]
%\setupbodyfont[times,10.5pt] % fails

\starttext

%text {\ss text}

\setupbodyfont[10.5pt]

text {\ss text}

\switchtobodyfont[8.5pt]

text {\ss text}

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


Re: [NTG-context] Minimal example for Cyrillic

2011-04-01 Thread Mojca Miklavec
On Fri, Apr 1, 2011 at 00:14, Thomas A. Schmitz
thomas.schm...@uni-bonn.de wrote:
 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?

That was a rhetorical question, right? :)

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

2011-04-01 Thread Mojca Miklavec
On Fri, Apr 1, 2011 at 07:47, Aleksandr Sinicyn wrote:
 I use minimal context distribution for linux obtained by
 first-setup.sh script from
 http://wiki.contextgarden.net/ConTeXt_Minimals;. Where can this
 cm-super or lh font can be downloaded from and where it should be
 placed?

You can place them to tex/texmf-local/ or tex/texmf-fonts/ in TDS
structure (it has to start with fonts and then you can either follow
TDS or put all the files inside fonts/data/fontname). But I'm not
even sure which fonts are used for cm-like Cyrillic.

You can download them from CTAN (http://ctan.org/tex-archive/fonts) or
(more reliably) from TeX Live
(http://ctan.org/tex-archive/systems/texlive/tlnet/archive) or MikTeX
since they are guaranteed to be in proper TDS structure.

You only need to know how to unpack them. On Mac I had xzdec somewhere
in macports (and it also comes with TeX Live), while on linux I took
source and compiled it myself.

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

2011-04-01 Thread Steffen Wolfrum

Am 01.04.2011 um 11:36 schrieb Wolfgang Schuster:

 It does also work when you switch to the “times” typeface *before* \starttext 
 and change the size *after* \starttext:
 ...

 \setupbodyfont[times]
 ...
 \starttext
 ...
 \setupbodyfont[10.5pt]




An interesting distinction!

Only, where is the corresponding point in context's 
project(-product/component)- structure?
Probably not in included environment files.

Maybe in the project file? Like this:

\startproject MyProject

% Here ?

\product MyProduct

% Or here ?

\stopproject



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] Gradient in table header

2011-04-01 Thread Felix Ingram
On 7 March 2011 20:11, Henning Hraban Ramm hra...@fiee.net wrote:
 Am 2011-03-07 um 10:24 schrieb Felix Ingram:

 Okay. I've heard of this Metapost thing. After further investigation
 it doesn't look as scary as I first thought. I can't seem to find
 anything saying that gradient fills are supported directly but I've
 found a few examples of drawing multiple shapes with changing colours
 which will recreate the effect, so I'll start with those.

Just a quick follow up in case Google points anyone this way: it looks
as though the linear_shade function will produce nice looking
gradients. Some examples can be found in:

http://www.pragma-ade.com/general/manuals/metafun-p.pdf

I will post again once(/if) I solve this for tables.

Felix
___
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] Bibliography -- complete inline citations in footnotes

2011-04-01 Thread Steffen Wolfrum
Hi Andreas,

does this module not work with current beta?
Or did I miss something?


argument \expandoneargafter 
  \lowercase {\defaultciterepeat }
\secondoftwoarguments #1#2-#2
  
argument ...er \lowercase {\defaultciterepeat }}
  .
\firstoftwoarguments #1#2-#1
 
\@@ddfootnotetitle ...te [alternative=data][key]}}
  \expandoneargafter \doifno...
\dododescriptioncomponent ...onparameter \c!title 
  }}}\endgroup \fi \fi \fi \...
...
l.35 ...=1.5, suffix={Some manual inserted text.}]
  
? 
Process aborted



Steffen


Am 21.01.2010 um 12:22 schrieb Andreas Schneider:

 I did assemble such a solution (with much help from Hans and Wolfgang). It's 
 not enough to put it into a complete module yet (although I will probably do 
 that sometime soon) and it currently only works with a recent beta of MkIV. 
 (It can also be changed easily to work with MkII, but it won't correctly 
 recognize repeating citations over page breaks ... long story ;-))
 
 Just put the attached file into the same dir (or near) your document where 
 you want to use it and include it with \module[mycite].
 
 To use it simply replace \cite[key] with something like \mycite[key]
 [page=123, chapter=1.5, suffix={Some manual inserted text.}]
 These three parameters are each optional.
 Since I wrote this for a German document, you may also want to modify the 
 strings in the head of t-mycite.tex. (Ebenda = Ibidem, S. = Page, 
 vgl. = compare/reference, Kap. = chapter)
 
 Best Regards,
 Andreas.t-mycite.tex___

___
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-04-01 Thread Wolfgang Schuster

Am 01.04.2011 um 12:15 schrieb Steffen Wolfrum:

 
 Am 01.04.2011 um 11:36 schrieb Wolfgang Schuster:
 
 It does also work when you switch to the “times” typeface *before* 
 \starttext and change the size *after* \starttext:
 ...
 
 \setupbodyfont[times]
 ...
 \starttext
 ...
 \setupbodyfont[10.5pt]
 
 
 An interesting distinction!
 
 Only, where is the corresponding point in context's 
 project(-product/component)- structure?
 Probably not in included environment files.
 
 Maybe in the project file? Like this:
 
 \startproject MyProject
 
 % Here ?
 
 \product MyProduct
 
 % Or here ?
 
 \stopproject

As you process only the product or component the project file is wrong.

When you process the product \startproduct is your \starttext and when
you process only a single component \startcomponent is your \starttext.

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-04-01 Thread Steffen Wolfrum

Am 01.04.2011 um 19:23 schrieb Wolfgang Schuster:

 
 Am 01.04.2011 um 12:15 schrieb Steffen Wolfrum:
 
 
 Am 01.04.2011 um 11:36 schrieb Wolfgang Schuster:
 
 It does also work when you switch to the “times” typeface *before* 
 \starttext and change the size *after* \starttext:
 ...
 
 \setupbodyfont[times]
 ...
 \starttext
 ...
 \setupbodyfont[10.5pt]
 
 
 An interesting distinction!
 
 Only, where is the corresponding point in context's 
 project(-product/component)- structure?
 Probably not in included environment files.
 
 Maybe in the project file? Like this:
 
 \startproject MyProject
 
 % Here ?
 
 \product MyProduct
 
 % Or here ?
 
 \stopproject
 
 As you process only the product or component the project file is wrong.
 
 When you process the product \startproduct is your \starttext and when
 you process only a single component \startcomponent is your \starttext.

My aim was to find one solution that fits in both cases (once running only a 
component, then running the entire product).
That's why I assumed the project file could serve for both.

If this is not true: do I have to write your distinction into the product AND 
in each componend file?!

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

2011-04-01 Thread Wolfgang Schuster

Am 01.04.2011 um 19:28 schrieb Steffen Wolfrum:

 My aim was to find one solution that fits in both cases (once running only a 
 component, then running the entire product).

You can set the font before \starttext where the typeface and the size
are set with two separate \setupbodyfont commands:

\definetypeface [times] [rm] [serif] [times] [default]
\definetypeface [times] [ss] [sans]  [helvetica] [default] [rscale=2]

\setupbodyfont[times]
\setupbodyfont[10.1pt]

\starttext
text {\ss text}
\stoptext

or you use Thomas solution which works even when you set the font
after \starttext (which is the case with products/components):

\definetypeface [times] [rm] [serif] [times] [default]
\definetypeface [times] [ss] [sans]  [helvetica] [default] [rscale=2]

\setupbodyfont[times]
\setupbodyfont[10.1pt]

\starttext
text {\ss text}
\stoptext

 That's why I assumed the project file could serve for both.

No because the project is loaded too late.

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] problem with printing pdf files (MKIV on Mac)

2011-04-01 Thread Florian Wobbe
 Maybe related:
 
 Printing on a network printer (from a Mac through Skim) prints the first page 
 correctly, at the top of the second page it prints:
 
 ERROR: invalidfont
 OFFENDING COMMAND:definefont
 
 STACK:
 
 /Font
 -dictionary~
 /YYMGGN+LinBiolinumO
 
 
 Printing from Acrobat Professional works correctly.

FYI: the issue is official now and related to printing OpenType PostScript 
fonts (i.e. Linux Biolinum). Mac users, you may want to consider not upgrading 
to 10.6.7 right now.

See also:
http://reviews.cnet.com/8301-13727_7-20048314-263.html
http://discussions.apple.com/thread.jspa?threadID=2792142
http://discussions.apple.com/thread.jspa?threadID=2791830

Best,
Florian

___
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] Small capitals broken in latest beta?

2011-04-01 Thread C.
Hello,
could it be that in the latest beta (ConTeXt  ver: 2011.03.30 11:21 MKIV)
the font feature 'small capitals' is broken?

Can someone who has Minion Pro test this, please?
I'm using 

\usemodule[simplefonts]
\definefontfeature[smcp][default][smcp=yes]
\def\sc{\addff{smcp}}
\definefontfeature[allc][default][smcp=yes,c2sc=yes]
\def\allc{\addff{allc}}
\setmainfont[Minion Pro][expansion=quality, protrusion=quality]

\starttext
{\sc Test}
{\allc Test}
\stoptext

No small capitals :(

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