[NTG-context] Suggestions on fonts and foundries

2010-02-28 Thread Tom
Some time back I recall seeing a message in which someone discussed using
fonts available from foundries and recommended certain ones. Unfortunately,
I can't seem to find that message. I will probably need one serif font for
the text of the book, a plain sans serif font to use for entries in a table,
a fancier sans serif font for chapter titles and, possibly a different
not-too-plain sans serif font for page headers. Also, I can't figure out how
to tell ConTeXt which font to use for page headers.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey





___
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] Presentation from document

2010-02-28 Thread Matija Šuklje
Dne nedelja 28. februarja 2010 ob 12:34:22 je Hans Hagen napisal(a):
> there is no module for that but it's quite easy to do: just set up lists
> (chapter and section) and typeste a list of chapters/sections

I've yet to do my first presentation in ConTeXt, so I have no idea how to do 
what you just said. But I'll take a look at it :]


Cheers,
Matija
-- 
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suk...@gabbler.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Macro with variable number of arguments

2010-02-28 Thread Hans Hagen

On 28-2-2010 12:44, Otared Kavian wrote:


On 28 févr. 2010, at 10:17, Wolfgang Schuster wrote:


\def\myMacro
  {\dotriplegroupempty\domyMacro}

\def\domyMacro#1#2#3%
  {\doifelsenothing{#3}
 {Name: #1\crlf Email: #2\crlf}
 {Name: #1\crlf Address: #2 \crlf Email: #3\crlf}%
   \thinrule\blank[small]}

Wolfgang


Many thanks Wolfgang! Your solution solves my question.

Now for a complete understanding of the solution (and before putting your 
solution on the wiki), here is another question.
After reading your solution, I searched in the source files and saw that in the 
file
syst-gen.mkii
the command \dosinglegroupempty, until \doquintuplegroupempty are defined.
For instance
\def\dotriplegroupempty#1%
   {\def\dodogetargument##1%
  {\def\dodogetargument1%
 {\def\dodogetargument%
{\dontpermitspacesbetweengroups
 #1{##1}{1}}%
  \dogetgroupargument\thirdargumenttrue\thirdargumentfalse}%
   \dogetgroupargument\secondargumenttrue\secondargumentfalse}%
\dogetgroupargument\firstargumenttrue\firstargumentfalse}

Can one use other constructions like these, for example can one define
\dosepttuplegroupempty
in order to have macros with 7 arguments, of which 5 are always present, while 
the sixth and seventh may be absent in some occasions?


sure, you can just test .. \ifsecondargument ... \iffirstargument

but in such cases using key/values might make mode sense


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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
___


Re: [NTG-context] Macro with variable number of arguments

2010-02-28 Thread Otared Kavian

On 28 févr. 2010, at 10:17, Wolfgang Schuster wrote:

> \def\myMacro
>  {\dotriplegroupempty\domyMacro}
> 
> \def\domyMacro#1#2#3%
>  {\doifelsenothing{#3}
> {Name: #1\crlf Email: #2\crlf}
> {Name: #1\crlf Address: #2 \crlf Email: #3\crlf}%
>   \thinrule\blank[small]}
> 
> Wolfgang

Many thanks Wolfgang! Your solution solves my question.

Now for a complete understanding of the solution (and before putting your 
solution on the wiki), here is another question.
After reading your solution, I searched in the source files and saw that in the 
file
syst-gen.mkii
the command \dosinglegroupempty, until \doquintuplegroupempty are defined.
For instance
\def\dotriplegroupempty#1%
  {\def\dodogetargument##1%
 {\def\dodogetargument1%
{\def\dodogetargument%
   {\dontpermitspacesbetweengroups
#1{##1}{1}}%
 \dogetgroupargument\thirdargumenttrue\thirdargumentfalse}%
  \dogetgroupargument\secondargumenttrue\secondargumentfalse}%
   \dogetgroupargument\firstargumenttrue\firstargumentfalse}

Can one use other constructions like these, for example can one define
\dosepttuplegroupempty 
in order to have macros with 7 arguments, of which 5 are always present, while 
the sixth and seventh may be absent in some occasions?

Thanks again: OK
___
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] [MkII] Difference in output in minimals versus TeX Live 2009

2010-02-28 Thread Vedran Miletić
2010/2/26 Mojca Miklavec :
> I suspect (though I don't really know) that the difference comes from
> different versions of TeX Gyre. There's a quick experiment you can do:
>
>    rsync -av \
>        /usr/local/texlive/2009/texmf-dist/fonts/tfm/public/tex-gyre/ \
>        /path/to/minimals/tex/texmf/fonts/tfm/public/tex-gyre/
>
> (unless you want to make a backup, but you can quickly revent to the
> old state anyway by updating the minimals.)
>
> The weird thing is that it may be that the minimals contain an older
> version, but I can fix that soon (I need to double-check why the font
> didn't get updated automatically since many other fonts do).
>
> Mojca

Yeah, that fixes it. Can you double-check?

--
Vedran Miletić
___
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] Presentation from document

2010-02-28 Thread Hans Hagen

On 27-2-2010 23:10, Matija Šuklje wrote:

Hullo,

I was wondering the other day: since most people make "slides"/presentations
basically by copy-pasting the chapter and subchapter titles into bulleted
lists, would it be possible to make slides in ConTeXt by just loading a module
in the original document and then when the PDF would be generated it would
just take those titles and order them into a neat slide show?

I know this is not how presentations should be made, but just sometimes such
lazy person's slides would be a life saver.


there is no module for that but it's quite easy to do: just set up lists 
(chapter and section) and typeste a list of chapters/sections


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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
___


Re: [NTG-context] MK-II to MK-IV

2010-02-28 Thread Hans Hagen

On 28-2-2010 3:47, gummybears wrote:

Hi,
A couple of years ago, I decided to switch from LaTex to ConText. Now
I have compiled a lot of documents (Physics syllabi's) which compiles fine
in MK-II.

I thought I would try to make a switch to MK-IV, mainly because I
want to include 3D PRC figures in my documents.

I made some test cases to test MK-IV in order to get a handle on the
differences between MK-II and MK-IV

Some of my observations are
*) Numbered formulas, numbered by section, don't seem to work
*) I am getting a lot of warnings of identifiers, apparently used more than
once, which they are not
LuaTeX warning (ext4): destination with the same identifier
(name{km1_chapter1_sec1}) has been already used, duplicate ignored

Question
Are these observations correct, someone else can confirm them ?
Question
If so, is there a fix, patch, or change in ConText commands/options I am not
aware of ?


i auppose that you use the latest version

when running into such a problem, just make a small example that shows 
the problem and post is


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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
___


Re: [NTG-context] active chars in xml -- suggestions needed

2010-02-28 Thread Hans Hagen

On 28-2-2010 9:21, Philipp Gesang wrote:

On 2010-02-28<08:52:14>, Thomas A. Schmitz wrote:


On Feb 28, 2010, at 8:32 AM, Philipp Gesang wrote:


Dear listmates,


I need some suggestions on how to setup non breaking spaces in XML.  I
tried an empty element  to be processed as follows:

\startxmlsetups xml:nbsp
~
\stopxmlsetups

which was ignored by context.  (I'll need something similar with
\discretionary as well, I guess.)



Have you tried

\xmlsetentity{nbsp}{~}
\xmlsetentity{dishyph}{\-}
? Both seem to work for me


or

\nobreakspace

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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
___


Re: [NTG-context] active chars in xml -- suggestions needed

2010-02-28 Thread Thomas A. Schmitz

On Feb 28, 2010, at 9:21 AM, Philipp Gesang wrote:

> Good morning Thomas,
> 
> thanks very much, this way it works great.  But is there any
> documentation on this apart from lxml-ini.mkiv and the list archive?
> 
> Philipp

I don't think that there is any docu on this particular question. I assume 
you've read  http://www.pragma-ade.com/general/manuals/xml-mkiv.pdf ? This will 
at least give you the basics (and then some more). I had always tended to map 
single characters to xml entities and more complex commands to xml elements, 
but I can't really tell you why. Maybe one of the real experts in this area can 
help us here? 

Best

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] Macro with variable number of arguments

2010-02-28 Thread Wolfgang Schuster

Am 28.02.10 09:54, schrieb Otared Kavian:

Hi all,

I would like to write a macro which may have sometimes two, sometimes three 
arguments. The first and the last one are always present, but not necessarily 
the middle one. The unsatisfactory solution I have now is something like the 
example below:

\define[2]\myMacroTwo{Name: #1\crlf Email: #2\crlf\thinrule\blank[small]}
\define[3]\myMacroThree{Name: #1\crlf Address: #2 \crlf Email: 
#3\crlf\thinrule\blank[small]}

\starttext
\mymacrotwo{hans}{h...@hagen.context.nl}
\myMacroThree{Wolfgang}{Paradise of TeX, 2010}{wolfg...@schuster.context.de}
\stoptext

I think that (or rather I am certain…) in ConTeXt it is possible to define a 
unique macro called \myMacro which automatically tests the number of arguments: 
if there are  only two of them the commands in \myMacroTwo are executed, while 
if three arguments are present, the commands in \myMacroThree are executed.

Can anyone give a hint on this matter?
   

\def\myMacro
  {\dotriplegroupempty\domyMacro}

\def\domyMacro#1#2#3%
  {\doifelsenothing{#3}
 {Name: #1\crlf Email: #2\crlf}
 {Name: #1\crlf Address: #2 \crlf Email: #3\crlf}%
   \thinrule\blank[small]}

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] table alignment

2010-02-28 Thread Wolfgang Schuster

Am 27.02.10 20:40, schrieb Wolfgang Werners-Lucchini:
If there is really no solution, I will make something with an empty 
first column.

No page breaks possible:

\defineframedtext[tablebox][frame=off,width=\hsize,offset=0pt,before=,after=]

\starttext

vorher

\startnarrower

text

\starttablebox
\starttable[s0|l|]
\NC table entry \NC\AR
\stoptable
\stoptablebox

\stopnarrower

text

\startnarrower

text

\startlinecorrection \dontleavehmode
\startTABLE[frame=off,offset=0pt,loffset=0.25ex,roffset=0.25ex]
\NC table entry \NC\NR
\stopTABLE
\stoplinecorrection

\stopnarrower

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
___


[NTG-context] Macro with variable number of arguments

2010-02-28 Thread Otared Kavian

Hi all,

I would like to write a macro which may have sometimes two, sometimes three 
arguments. The first and the last one are always present, but not necessarily 
the middle one. The unsatisfactory solution I have now is something like the 
example below:

\define[2]\myMacroTwo{Name: #1\crlf Email: #2\crlf\thinrule\blank[small]}
\define[3]\myMacroThree{Name: #1\crlf Address: #2 \crlf Email: 
#3\crlf\thinrule\blank[small]}

\starttext
\mymacrotwo{hans}{h...@hagen.context.nl}
\myMacroThree{Wolfgang}{Paradise of TeX, 2010}{wolfg...@schuster.context.de}
\stoptext

I think that (or rather I am certain…) in ConTeXt it is possible to define a 
unique macro called \myMacro which automatically tests the number of arguments: 
if there are  only two of them the commands in \myMacroTwo are executed, while 
if three arguments are present, the commands in \myMacroThree are executed.

Can anyone give a hint on this matter? 
___
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] active chars in xml -- suggestions needed

2010-02-28 Thread Philipp Gesang
On 2010-02-28 <08:52:14>, Thomas A. Schmitz wrote:
> 
> On Feb 28, 2010, at 8:32 AM, Philipp Gesang wrote:
> 
> > Dear listmates,
> > 
> > 
> > I need some suggestions on how to setup non breaking spaces in XML.  I
> > tried an empty element  to be processed as follows:
> > 
> > \startxmlsetups xml:nbsp
> > ~
> > \stopxmlsetups
> > 
> > which was ignored by context.  (I'll need something similar with
> > \discretionary as well, I guess.)
> > 
> 
> Have you tried
> 
> \xmlsetentity{nbsp}{~}
> \xmlsetentity{dishyph}{\-}
> ? Both seem to work for me

Good morning Thomas,

thanks very much, this way it works great.  But is there any
documentation on this apart from lxml-ini.mkiv and the list archive?

Philipp

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

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpFvZfiLVmox.pgp
Description: PGP signature
___
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
___