Re: [NTG-context] [wiki] fake account spam

2013-04-26 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

On Thu, 25 Apr 2013 20:19:41 +0200, Thomas A. Schmitz 
thomas.schm...@uni-bonn.de wrote:


On 04/25/2013 07:31 PM, Sietse Brouwer wrote:

Hi Taco,



I think it's a good idea to update the security questions --- it's
easy to do, it'll probably work, and we can always move on to stronger
measures that require more work. Below are some replacemetn questions.


Yes, I had already contacted Mojca a couple of weeks ago. I think we
should demand that all questions be answered in Dutch. Every serious
ConTeXter has to know some Dutch,


even though I consider myself a serious Ctx user, Dutch is still Greek to me.


and nothing better than asking What
is the ConTeXt keyword for a two-sided layout and expecting
dubbelzijdig as an answer.


Goggle translator would help in this case 
(http://translate.google.com/#en/nl/doublesided);
but having a more complicated keyword/option may mean a 
unanswered/unanswerable question...

How about to prompt the user to encode a displayed math, e.g. b/a2^3 to be answered 
$\frac{b}{a_2^3}$?

Best regards,

Lukas



If that doesn't help, we make them
pronounce it...

Thomas



--
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] [wiki] fake account spam

2013-04-26 Thread Thomas A. Schmitz

On 04/26/2013 08:31 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:



even though I consider myself a serious Ctx user, Dutch is still Greek
to me.



How about to prompt the user to encode a displayed math, e.g. b/a2^3
to be answered $\frac{b}{a_2^3}$?

Well, in that case, I'd actually prefer Greek - write line 222 of book 
2 of the Odyssey in its original Greek, or something like that... 
Seriously, I guess I'm not alone when I say I never use math.

But I agree something has to be done...

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] Lettrine module not working?!

2013-04-26 Thread Wolfgang Schuster

Am 25.04.2013 um 14:24 schrieb Verhaag, G.C.H.M. verhaagg...@ziggo.nl:

 Hi ConTeXt User's,
 
 I'm currently experiencing problems using the lettrine module! I know from 
 fairly recent (mail-archive!) issues related to this module but can't figure 
 out why my setup isn't working anymore.
 
 I use the following:
 
 \lettrine[Image=no,Slope=-0.5em,Hang=0.2,Findent=0.7em]
 {H}{et is ca. half tien} in de...
 
 This yields the following error message:
 
 to be read again
 \def
 \doifnextoptionalelse #1#2 -\def
 \m_syst_action_yes {#1}\def \m_syst_action_...
 \doLettrineFont ...a \LettrineHeight \definedfont
 [LettrineFont at \the \!!d...
 \dolettrine ...trineEPS {#2}\else \doLettrineFont
 #2\fi \fi }}\setbox \Lettr...
 l.27 {H}{et is ca. half tien}
 
 Maybe something has changed in the arguments of which I'm unaware!

Maybe this page helps you: http://wiki.contextgarden.net/Initials

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 formatting mystery

2013-04-26 Thread luigi scarso
On Thu, Apr 25, 2013 at 5:02 PM, Lance Larsen lance.c.lar...@gmail.com wrote:
 I created the following table, but I am running into a mysterious
 problem. When I include the text 'Geometry Calulations' in row 2, the
 table row expands as if this text takes up lines of text. However the
 text fits well within the cell length, and the text itself remains on
 one line. If I delete 'Geometry Calculations', the height of row 2 is
 the height of one line of text. How do I fix this? I have included
 snapshots of what I am getting with and without 'Geometry
 Calculations' included. Any help or insight is appreciated.

 \setupTABLE[c][1][width=0.16\textwidth]
 \setupTABLE[c][2,3,4][width=0.13\textwidth]
 \setupTABLE[c][5][width=0.20\textwidth, align=middle]
 \setupTABLE[c][6][width=0.25\textwidth, align=middle]
 \bTABLE[width=0.5\textwidth, rulethickness=0.5pt]
 \bTR \bTD[nc=2]   \bf ~\cb Preliminary \cb Final\eTD
 \bTD[align=middle] \bf Revision \eTD \bTD[align=middle] X \eTD \bTD
 \bf Document ID \eTD \bTD \DocID \eTD \eTR
 \bTR \bTD[nc=2]   \bf ~Document Title:  \eTD \bTD[nc=4,align=middle]
  Geometry Calculations  \eTD \eTR
 \bTR \bTD[nc=2]   \bf ~Originating Discipline:  \eTD
 \bTD[nc=4,align=middle]   \OrigDisc
   \eTD \eTR
 \bTR \bTD[nc=2]   \bf ~Effective Date:  \eTD \bTD[nc=3]  \tfx  ~\cb
 Approval Date \sp\sp\cb Other:    \eTD \bTD
 Page~\pagenumber~of~\totalnumberofpages  \eTD \eTR
 \bTR \bTD \bf ~Issued for: \eTD \bTD[nc=5,align=middle]
 \tfx Phase 1 Design \cb\sp Phase 2 Design \cb\sp Phase 3 Design \cb\sp
 Input to DCD \cb\sp N/A \cb \eTD \eTR
 \eTABLE
can you make an example without your own macros like \DocID, \OrigDisc etc. ?



--
luigi
___
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 formatting mystery

2013-04-26 Thread Wolfgang Schuster

Am 25.04.2013 um 17:02 schrieb Lance Larsen lance.c.lar...@gmail.com:

 I created the following table, but I am running into a mysterious
 problem. When I include the text 'Geometry Calulations' in row 2, the
 table row expands as if this text takes up lines of text. However the
 text fits well within the cell length, and the text itself remains on
 one line. If I delete 'Geometry Calculations', the height of row 2 is
 the height of one line of text. How do I fix this? I have included
 snapshots of what I am getting with and without 'Geometry
 Calculations' included. Any help or insight is appreciated.

What happens when you change the height of the rows, e.g. 
“height=1.5\lineheight”.

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] [wiki] fake account spam

2013-04-26 Thread Taco Hoekwater
Hi,


Currently we are using QuestyCaptcha w/ ConfirmEdit. This is definitely 
supposed to be safer
than bitmap images unless the images become so complex that even humans get it 
wrong,
which has happened for me on various sites and is the most annoying thing in, 
like, ever!

I do not mind adding new questions and/or replacing all of them, but it is a 
bad idea to send
the new ones to the mailing list, since somehow a spamnet seems to have found 
the answers
and I doubt that they actually went to the trouble of looking up the answers on 
pragma-ade.com
(but then again, weirder stuff has happened).

For now, I will quickly invent some of my own questions.

Best wishes,
Taco




___
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] Adobe Garamond Problems with letter combination fi

2013-04-26 Thread Keith J. Schultz
Hi Thomas,


Am 25.04.2013 um 08:56 schrieb Thomas A. Schmitz thomas.schm...@uni-bonn.de:

 On 04/25/2013 08:20 AM, Keith J. Schultz wrote:
 First I think it better if ligatures should be off as a default.
 
 Then you should not be using any form of TeX. ligatures have been part of TeX 
 since its invention (TeXbook, p. 4), and they have been part of fine 
 typesetting since Gutenberg. It's a sad consequence of the advent of 
 abominations like Microsoft Word that people consider them superfluous.
I use XeLaTeX and ConText for it control. I have not touched Word in 
decades, if possible
or any other WYSIWYG- system!
That being said, take a look at the books printed in this day and age. 
You will find that
the use ligatures are not that common. 
For me the fi-ligature, is estranging, as well as other while reading. 
Others I find very pleasing.
I do not want to discuss esthetics. I was just expressing my opinion. 
If the engross of ConText
users want ligatures as default that is fine with me. 
On the other side, I believe,  ligatures of off by default in LaTeX, et 
al. or at least are feature
is set when the font is loaded. 

 
 Now, to my actual question.
 Is there a way in ConText to selectively true certain ligatures on/ff.
 for example fl could be on, but fi off.
 
 I know that I can set up the the editor to do it, or use unicode directly, 
 but
 would prefer ConText to do the work.
 
 
 Opentype fonts put ligatures into certain groups, so turning fi off while 
 keeping fl is a bit difficult. I think you could use a font goodies file and 
 put a zero-width empty space between f and i. There's a file demo.lfg in the 
 standalone distribution which might be of help.
Thanx, for the pointer! Will look into it.

regards
Keith.

___
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] [wiki] fake account spam

2013-04-26 Thread luigi scarso
On Fri, Apr 26, 2013 at 9:37 AM, Taco Hoekwater t...@elvenkind.com wrote:

 For now, I will quickly invent some of my own questions.

and the right answers will be given only to the physical people
present at the next context meeting.


--
luigi
___
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 formatting mystery

2013-04-26 Thread luigi scarso
On Thu, Apr 25, 2013 at 5:02 PM, Lance Larsen lance.c.lar...@gmail.com wrote:
 I created the following table, but I am running into a mysterious
 problem. When I include the text 'Geometry Calulations' in row 2, the
 table row expands as if this text takes up lines of text. However the
 text fits well within the cell length, and the text itself remains on
 one line. If I delete 'Geometry Calculations', the height of row 2 is
 the height of one line of text. How do I fix this? I have included
 snapshots of what I am getting with and without 'Geometry
 Calculations' included. Any help or insight is appreciated.

 \setupTABLE[c][1][width=0.16\textwidth]
 \setupTABLE[c][2,3,4][width=0.13\textwidth]
 \setupTABLE[c][5][width=0.20\textwidth, align=middle]
 \setupTABLE[c][6][width=0.25\textwidth, align=middle]
 \bTABLE[width=0.5\textwidth, rulethickness=0.5pt]
 \bTR \bTD[nc=2]   \bf ~\cb Preliminary \cb Final\eTD
 \bTD[align=middle] \bf Revision \eTD \bTD[align=middle] X \eTD \bTD
 \bf Document ID \eTD \bTD \DocID \eTD \eTR
 \bTR \bTD[nc=2]   \bf ~Document Title:  \eTD \bTD[nc=4,align=middle]
  Geometry Calculations  \eTD \eTR
 \bTR \bTD[nc=2]   \bf ~Originating Discipline:  \eTD
 \bTD[nc=4,align=middle]   \OrigDisc
   \eTD \eTR
 \bTR \bTD[nc=2]   \bf ~Effective Date:  \eTD \bTD[nc=3]  \tfx  ~\cb
 Approval Date \sp\sp\cb Other:    \eTD \bTD
 Page~\pagenumber~of~\totalnumberofpages  \eTD \eTR
 \bTR \bTD \bf ~Issued for: \eTD \bTD[nc=5,align=middle]
 \tfx Phase 1 Design \cb\sp Phase 2 Design \cb\sp Phase 3 Design \cb\sp
 Input to DCD \cb\sp N/A \cb \eTD \eTR
 \eTABLE

 -Lance Larsen

\bTR \bTD[nc=2,style=bold,align={flushleft,lohi}] \hbox{~Document
Title} \eTD \bTD[nc=4,align=middle]  Geometry Calculations  \eTD \eTR

seems to fix the things.


--
luigi
___
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] Adobe Garamond Problems with letter combination fi

2013-04-26 Thread Hans Hagen

On 4/26/2013 9:41 AM, Keith J. Schultz wrote:

Hi Thomas,


Am 25.04.2013 um 08:56 schrieb Thomas A. Schmitz thomas.schm...@uni-bonn.de:


On 04/25/2013 08:20 AM, Keith J. Schultz wrote:

First I think it better if ligatures should be off as a default.


Then you should not be using any form of TeX. ligatures have been part of TeX 
since its invention (TeXbook, p. 4), and they have been part of fine 
typesetting since Gutenberg. It's a sad consequence of the advent of 
abominations like Microsoft Word that people consider them superfluous.

I use XeLaTeX and ConText for it control. I have not touched Word in 
decades, if possible
or any other WYSIWYG- system!
That being said, take a look at the books printed in this day and age. 
You will find that
the use ligatures are not that common.
For me the fi-ligature, is estranging, as well as other while reading. 
Others I find very pleasing.
I do not want to discuss esthetics. I was just expressing my opinion. 
If the engross of ConText
users want ligatures as default that is fine with me.
On the other side, I believe,  ligatures of off by default in LaTeX, et 
al. or at least are feature
is set when the font is loaded.


I don't know, but as has been said, the defaults in context sort of fit 
in the expectations. We even have some traditional pseudo ligatures like 
-- and --- implemented, also because users expect them.


Anyhow, if you put

\definefontfeature[default][default][liga=no]

in your local cont-sys.mkiv file you will have them off by default.

There are multiple categories of ligatures.


Hans


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


Re: [NTG-context] Adobe Garamond Problems with letter combination fi

2013-04-26 Thread Khaled Hosny
On Fri, Apr 26, 2013 at 09:41:15AM +0200, Keith J. Schultz wrote:
   On the other side, I believe,  ligatures of off by default in LaTeX, et 
 al. or at least are feature
   is set when the font is loaded. 

So you neither use LaTeX nor ConTeXt?
___
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] \setupalign[flushleft] doesn't like ~

2013-04-26 Thread Hans Hagen

On 4/26/2013 2:26 AM, Marcin Borkowski wrote:

Dnia 2013-04-26, o godz. 01:45:37
Hans Hagen pra...@wxs.nl napisał(a):


On 4/26/2013 1:09 AM, Marcin Borkowski wrote:

With \setupalign[flushleft], nonbreakable spaces get larger than
they should.  I'm afraid it's a bug.

Best,

An MWE:


more info needed .. as this looks similar:
[...]


In both cases I get:

3.912pt+1.956pt-1.304pt
3.912pt

but in the latter one, the space produced by ~ is noticeably wider.


maybe you mean (non)frenchspacing

\usemodule[ipsum]

\showframe

\starttext

\setupalign[flushleft] \setupspacing[fixed]  \ipsum \par
\setupalign[flushleft] \setupspacing[packed] \ipsum \par
\setupalign[flushleft] \setupspacing[broad]  \ipsum \par

\stoptext

(defaults are language dependent)

Hans

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

Re: [NTG-context] [wiki] fake account spam

2013-04-26 Thread Alan BRASLAU
On Fri, 26 Apr 2013 08:55:52 +0200
Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote:

 Well, in that case, I'd actually prefer Greek - write line 222 of book 
 2 of the Odyssey in its original Greek, or something like that... 

That's too easy:

σῆμά τέ οἱ χεύω καὶ ἐπὶ κτέρεα κτερεΐξω

:)
___
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] [wiki] fake account spam

2013-04-26 Thread Alan BRASLAU
On Thu, 25 Apr 2013 23:52:56 +0200
Sietse Brouwer sbbrou...@gmail.com wrote:

 Or we could go old-school copy protection style: What is the fifth
 word on page 120 of the TeXbook? :-P

\TEX

Alan
___
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] [wiki] fake account spam

2013-04-26 Thread Wolfgang Schuster

Am 26.04.2013 um 10:57 schrieb Alan BRASLAU alan.bras...@cea.fr:

 On Thu, 25 Apr 2013 23:52:56 +0200
 Sietse Brouwer sbbrou...@gmail.com wrote:
 
 Or we could go old-school copy protection style: What is the fifth
 word on page 120 of the TeXbook? :-P
 
 \TEX

Maybe \TeX\ but not \TEX\ which is a \CONTEXT\ command and not available with 
plain \TeX.

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] [wiki] fake account spam

2013-04-26 Thread Hans Hagen

On 4/26/2013 10:57 AM, Alan BRASLAU wrote:

On Thu, 25 Apr 2013 23:52:56 +0200
Sietse Brouwer sbbrou...@gmail.com wrote:


Or we could go old-school copy protection style: What is the fifth
word on page 120 of the TeXbook? :-P


\TEX


we could go for sound ... pronounce \TEX\ the right way .. only DEK 
could edit then


Hans

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


Re: [NTG-context] error: terminal: NOfTextColumns-1, ! Improper final value has been replaced by 0

2013-04-26 Thread Hans Hagen

On 4/24/2013 5:30 PM, Lars Huttar wrote:

Hello,

I'm encountering the following error, under ConTeXt  ver: 2012.05.30
11:26 MKIV  fmt: 2013.3.11  int: english/english:

system  tex  error on line 27 in file
data/three-volume-book-book-1.tex: terminal:  NOfTextColumns-1
! Improper final value has been replaced by 0.
to be read again
:
* for i=1 upto NOfTextColumns-1:
 draw (rightboundary TextColumns[i])
shif...


  ...

17 \safeinput ./data/statistics-for-area-area-africa.tex
18 \safeinput ./data/statistics-for-area-area-europe.tex
19
20
21
22 \input ./macros/E16pagenohead.tex
23 \ifodd \pageno \else \noheaderandfooterlines \null \page[yes]\fi
\noheade
randfooterlines
24
25 \startptp{
26 \pagereference[Languages]\pnum{Part II}\ptitle{Language Listings}
27  }\stopptp


This error is very odd because:

a) The only place I can find code mentioning NOfTextColumns-1 is in
mp-core.mpii, where it's commented out!
   % \startuseMPgraphic{whatever}
   % for i=1 upto NOfTextColumns-1 :
   % draw (rightboundary TextColumns[i]) shifted ...

But maybe I just haven't been looking in the right places.

b) The place in my .tex document where the error occurs, line 27, is at
a \stopptp. Yet there is an essentially identical start/stopptp earlier
in the document, where no such error is thrown:

   \startptp{
   \pagereference[Summaries]\pnum{Part I}\ptitle{Statistical Summaries}
   }\stopptp

So I guess there's some content in between the two starts/stop ptp's
that's laying the stage for the error to occur.
I'll be working on a minimal example, but that's time-consuming; and I
thought in the meantime, there may be some clues in the above
information that could help clarify the nature of the problem, to
someone who understands the inner workings of ConTeXt.


It took me a while to figure it out as NOfTextColumns is only used in 
very special cases and long gone from context (it dates from a previous 
background implementation). Normally the obsolete code is never seen but 
in your case consulting the variable might be triggered by the fact that


multi_column_first_page_hack

is set to true (looks like a quick hack i made for Jelle long ago).

I commented it in the mkii source now, hopefully no error message any 
longer.


Hans

ps. sometimes there is some specific test code that then depends on 
other experimental code being present


ps. in mkiv it's all redone anyway and i will redo columnsets one of 
these days too;



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


[NTG-context] Heading in setuplayout from a variable

2013-04-26 Thread Cecil Westerhof
It is a long time since I used ConTeXt. I am starting again.

I have the following code:
\setvariables[meta][type=cecil]

\if\getvariable{meta}{type}=cecil
  \setvariables[meta][
name={Cecil Westerhof},
  ]
  \setvariables[layout][
header=0mm,
  ]
\fi

But that does not work.

For the conditional I also tried:
\ifx\getvariable{meta}{type}\cecil

But that does not work either.

What is the correct way to define the comparison?

-- 
Cecil Westerhof
___
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] Heading in setuplayout from a variable

2013-04-26 Thread Hans Hagen

On 4/26/2013 1:27 PM, Cecil Westerhof wrote:

It is a long time since I used ConTeXt. I am starting again.

I have the following code:
\setvariables[meta][type=cecil]

\if\getvariable{meta}{type}=cecil
   \setvariables[meta][
 name={Cecil Westerhof},
   ]
   \setvariables[layout][
 header=0mm,
   ]
\fi

But that does not work.

For the conditional I also tried:
\ifx\getvariable{meta}{type}\cecil

But that does not work either.

What is the correct way to define the comparison?


\doifelse {\getvariable{meta}{type}} {cecil} {
...
} {
...
}

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


Re: [NTG-context] Adobe Garamond Problems with letter combination fi

2013-04-26 Thread Keith J. Schultz
Hi Khaled,

When I used LaTeX last if I had fi in my text that is how it came out!
Using ConTeXt I noticed that fi becomes a ligature, did not like, but it
was not that important. 

Till I decided to start using ConTeXt I had been using XeLaTeX.

regards
Keith.
 
Am 26.04.2013 um 10:20 schrieb Khaled Hosny khaledho...@eglug.org:

 On Fri, Apr 26, 2013 at 09:41:15AM +0200, Keith J. Schultz wrote:
  On the other side, I believe,  ligatures of off by default in LaTeX, et 
 al. or at least are feature
  is set when the font is loaded. 
 
 So you neither use LaTeX nor ConTeXt?

___
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] Fwd: Heading in setuplayout from a variable

2013-04-26 Thread Cecil Westerhof
Send to Hans instead of to the list. :-(


-- Forwarded message --
From: Cecil Westerhof cldwester...@gmail.com
Date: 2013/4/26
Subject: Re: [NTG-context] Heading in setuplayout from a variable
To: Hans Hagen pra...@wxs.nl


2013/4/26 Hans Hagen pra...@wxs.nl:
 On 4/26/2013 1:27 PM, Cecil Westerhof wrote:

 It is a long time since I used ConTeXt. I am starting again.

 I have the following code:
 \setvariables[meta][type=cecil]

 \if\getvariable{meta}{type}=cecil
\setvariables[meta][
  name={Cecil Westerhof},
]
\setvariables[layout][
  header=0mm,
]
 \fi

 But that does not work.

 For the conditional I also tried:
 \ifx\getvariable{meta}{type}\cecil

 But that does not work either.

 What is the correct way to define the comparison?


 \doifelse {\getvariable{meta}{type}} {cecil} {
 ...
 } {
 ...
 }

Thanks. That works. In my case I use a \doif.

Is there also something like a switch statement? If not I could use a
nested \doifelse.

--
Cecil Westerhof


-- 
Cecil Westerhof
___
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] Heading in setuplayout from a variable

2013-04-26 Thread Cecil Westerhof
2013/4/26 Cecil Westerhof cldwester...@gmail.com:
 I have the following code:
 \setvariables[meta][type=cecil]

This variable is hard coded. Is it possible to set it with a value I
send as a command line parameter?

-- 
Cecil Westerhof
___
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] Cumulating numbered lists

2013-04-26 Thread Alan Bowen
Sorry for the delay in responding—I lost a day in spring busywork.

Anyway, warm thanks to Aditya for the workaround and to Hans for the new
key (it works perfectly—and the name makes sense to me). I am grateful to
you both.

Alan


On Tue, Apr 23, 2013 at 5:23 PM, Hans Hagen pra...@wxs.nl wrote:

 On 4/23/2013 10:31 PM, Aditya Mahajan wrote:

 On Tue, 23 Apr 2013, Alan Bowen wrote:

  OK. Thanks for the explanation, Wolfgang. I will await the day when the
 repeat key can be disabled.


 the day i do an upload


  If you are not interested in re-enabling the repeat key in a nested
 itemize, then the attached example may work (not tested beyond the
 minimal example)


 added .. (but with \v!norepeat ... not sure about the keyword, but it's
 hard to find a better one)

 Hans

 --

 --**--**-
   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 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/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] Heading in setuplayout from a variable

2013-04-26 Thread Hans Hagen

On 4/26/2013 2:35 PM, Cecil Westerhof wrote:

2013/4/26 Cecil Westerhof cldwester...@gmail.com:

I have the following code:
\setvariables[meta][type=cecil]


This variable is hard coded. Is it possible to set it with a value I
send as a command line parameter?


\getdocumentargument{myargument}

of use modes (often more natural)

Hans

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


Re: [NTG-context] Adobe Garamond Problems with letter combination fi

2013-04-26 Thread Hans Hagen

On 4/26/2013 2:12 PM, Keith J. Schultz wrote:

Hi Khaled,

When I used LaTeX last if I had fi in my text that is how it came out!
Using ConTeXt I noticed that fi becomes a ligature, did not like, but it
was not that important.


also keep in mind that ligatures are language dependent (if the font 
language is set at all)


Hans

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


Re: [NTG-context] Heading in setuplayout from a variable

2013-04-26 Thread Cecil Westerhof
2013/4/26 Hans Hagen pra...@wxs.nl:
 On 4/26/2013 2:35 PM, Cecil Westerhof wrote:

 2013/4/26 Cecil Westerhof cldwester...@gmail.com:

 I have the following code:
 \setvariables[meta][type=cecil]


 This variable is hard coded. Is it possible to set it with a value I
 send as a command line parameter?


 \getdocumentargument{myargument}

My first try did not work, but now it does. Properly made a silly
mistake somewhere.


 of use modes (often more natural)

In this case it is not something to use, but it is certainly something
to look into.

-- 
Cecil Westerhof
___
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] How to know I am in frontmatter or bodymatter?

2013-04-26 Thread Tim Li
Sometimes, it is convenient if I know I am in frontmatter or bodymatter.  when 
desinging a book, we make a new chapter open at a right page and design the 
header to show the chapter title and pagenumber. We have to set the pagenumber 
at the page where a chapter title is located. \definetext  [chapterstart]  
[footer]  [{\hfill\bf\pagenumber\hfill}]\setuphead  [chapter]  
[footer=chapterstart] if this book consists of a frontmatter and a backmatter, 
I have to set the text for the titles in frontmatter and chapters in bodymatter 
like this, for roman pagenumber in frontmatter. 
\startsectionblockenvironment[frontpart]  \definetext[titlestart]
[footer][{\hfill\bf\romannumerals\pagenumber\hfill}]  \setuphead[title] 
   [footer=titlestart]\stopsectionblockenvironment 
\startsectionblockenvironment[bodypart]  \definetext[chapterstart]
[footer][{\hfill\bf\pagenumber\hfill}]  \setuphead[chapter] 
[footer=chapterstart]\stopsectionblockenvironment  so, is there a command to 
make me know if I am in frontmatter or bodymatter? if so, I can use only one 
command to achieve that setup \definetext  [chapterstart]  [footer]  
[{\hfill\bf\ifinfrontmatter ... \else ... \fi\hfill}]  regards, Tim 
  ___
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] How to know I am in frontmatter or bodymatter?

2013-04-26 Thread Hans Hagen

On 4/26/2013 4:55 PM, Tim Li wrote:

Sometimes, it is convenient if I know I am in frontmatter or bodymatter.  when 
desinging a book, we make a new chapter open at a right page and design the 
header to show the chapter title and pagenumber. We have to set the pagenumber 
at the page where a chapter title is located. \definetext  [chapterstart]  
[footer]  [{\hfill\bf\pagenumber\hfill}]\setuphead  [chapter]  
[footer=chapterstart] if this book consists of a frontmatter and a backmatter, 
I have to set the text for the titles in frontmatter and chapters in bodymatter 
like this, for roman pagenumber in frontmatter. 
\startsectionblockenvironment[frontpart]  \definetext[titlestart]
[footer][{\hfill\bf\romannumerals\pagenumber\hfill}]  \setuphead[title] 
   [footer=titlestart]\stopsectionblockenvironment 
\startsectionblockenvironment[bodypart]  \definetext[chapterstart]
[footer][{\hfill\bf\pagenumber\hfill}]  \setuphead[chapter] 
[footer=chapterstart]\stopsectionblockenvironment  so, is !
there a 
command to make me know if I am in frontmatter or bodymatter? if so, I can use only one command to achieve that setup \definetext  [chapterstart]  [footer]  [{\hfill\bf\ifinfrontmatter ... \else ... \fi\hfill}]  regards, Tim  		 	   		


\startbodymatter

\doifmodeelse{*bodypart}{YES}{NOP}

\stopbodymatter


if check on \currentsectionblock

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


[NTG-context] Why does startlines not work in a function

2013-04-26 Thread Cecil Westerhof
I have the following code:
\startlines
  \startalignment[center]
\setupindenting[no]
\doifelse {\getvariable{meta}{personalInfo}} {long} {
  longline 1
  longline 2
  longline 3
  longline 4
  longline 5
  longline 6
  longline 7
  longline 8
} {
  shortline 1
  shortline 2
  shortline 3
  shortline 4
}
  \stopalignment
\stoplines

I wanted to put this in a function. So I wrote:
\def\Foo{
  \startlines
\startalignment[center]
  \setupindenting[no]
  \doifelse {\getvariable{meta}{personalInfo}} {long} {
longline 1
longline 2
longline 3
longline 4
longline 5
longline 6
longline 7
longline 8
  } {
shortline 1
shortline 2
shortline 3
shortline 4
  }
\stopalignment
  \stoplines
}

But then the text becomes one line instead of several lines.


So I had to rewrite it to:
\def\FooTwo{
  \startalignment[center]
\setupindenting[no]
\doifelse {\getvariable{meta}{personalInfo}} {long} {
  longline 1

  longline 2

  longline 3

  longline 4

  longline 5

  longline 6

  longline 7

  longline 8
} {
  shortline 1

  shortline 2

  shortline 3

  shortline 4
}
  \stopalignment
}


I called it first Foo2, but that worked havoc on Foo.

-- 
Cecil Westerhof
___
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] Is it possible to set the output file name in the script

2013-04-26 Thread Cecil Westerhof
I am using a command line parameter to change the generated output. Is
it also possible to set the output file name depending on the
parameter?

-- 
Cecil Westerhof
___
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] Supressing a heading from the table of contents

2013-04-26 Thread Lance Larsen
Can anyone tell me how to suppress individual numbered
chapter/section/subsection/etc. from the table of contents? Also how do you
set the last heading level included in the table of contents. I think I came
across this, but am having trouble finding it again.

 

Lance Larsen

___
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] Is it possible to set the output file name in the script

2013-04-26 Thread Hans Hagen

On 4/26/2013 5:34 PM, Cecil Westerhof wrote:

I am using a command line parameter to change the generated output. Is
it also possible to set the output file name depending on the
parameter?


--result=somename


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


Re: [NTG-context] Why does startlines not work in a function

2013-04-26 Thread Hans Hagen

On 4/26/2013 5:19 PM, Cecil Westerhof wrote:

I have the following code:

 ...

But then the text becomes one line instead of several lines.


because catcode changes are involved

\startbuffer [meta:personalInfo:long]
\startlines
longline 1
longline 2
longline 3
longline 4
longline 5
longline 6
longline 7
longline 8
\stoplines
\stopbuffer

\startbuffer [meta:personalInfo:]
\startlines
shortline 1
shortline 2
shortline 3
shortline 4
\stoplines
\stopbuffer

\starttext

\getbuffer[meta:personalInfo:\getvariable{meta}{personalInfo}]

\stoptext

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


Re: [NTG-context] Adobe Garamond Problems with letter combination fi

2013-04-26 Thread Thomas A. Schmitz

On 04/26/2013 09:41 AM, Keith J. Schultz wrote:

I use XeLaTeX and ConText for it control. I have not touched Word in decades, 
if possible
or any other WYSIWYG- system!
That being said, take a look at the books printed in this day and age. 
You will find that
the use ligatures are not that common.
For me the fi-ligature, is estranging, as well as other while reading. 
Others I find very pleasing.
I do not want to discuss esthetics. I was just expressing my opinion. 
If the engross of ConText
users want ligatures as default that is fine with me.
On the other side, I believe,  ligatures of off by default in LaTeX, et 
al. or at least are feature
is set when the font is loaded.



Hi Keith,

if you look at the books of decent publishers, you will see that most of 
them still use ligatures (most American university presses, Oxford and 
Cambridge, German publishers such as Reclam etc.) However, many smaller 
publishers don't give a rat's ass about esthetics, and that's where Word 
comes into play: they have their authors deliver their manuscripts as 
Word files and simply typeset from that, more often than not by 
employing some underpaid and untrained contractors in India. Cuts 
costs and makes authors do all the work that publishers used to do in 
the olden days... Taking this as the norm is not a good idea.


As to LaTeX: you're wrong, LaTeX is part of the TeX family as is ConTeXt 
and has ligatures. If you set up your fonts correctly in XeLaTeX, you 
get them.


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] Is it possible to set the output file name in the script

2013-04-26 Thread Cecil Westerhof
2013/4/26 Hans Hagen pra...@wxs.nl:
 On 4/26/2013 5:34 PM, Cecil Westerhof wrote:

 I am using a command line parameter to change the generated output. Is
 it also possible to set the output file name depending on the
 parameter?


 --result=somename

That is on the command line. Then you need to give two parameters. Not
a very big problem, but I would prefer one parameter. I like DRY. Less
that can go wrong.
-- 
Cecil Westerhof
___
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] Is it possible to set the output file name in the script

2013-04-26 Thread Hans Hagen

On 4/26/2013 6:50 PM, Cecil Westerhof wrote:

2013/4/26 Hans Hagen pra...@wxs.nl:

On 4/26/2013 5:34 PM, Cecil Westerhof wrote:


I am using a command line parameter to change the generated output. Is
it also possible to set the output file name depending on the
parameter?



--result=somename


That is on the command line. Then you need to give two parameters. Not
a very big problem, but I would prefer one parameter. I like DRY. Less
that can go wrong.


not possible but you can access the outputfilename at the tex and lua end

Hans

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


Re: [NTG-context] Is it possible to set the output file name in the script

2013-04-26 Thread Cecil Westerhof
2013/4/26 Hans Hagen pra...@wxs.nl:
 On 4/26/2013 6:50 PM, Cecil Westerhof wrote:

 2013/4/26 Hans Hagen pra...@wxs.nl:

 On 4/26/2013 5:34 PM, Cecil Westerhof wrote:


 I am using a command line parameter to change the generated output. Is
 it also possible to set the output file name depending on the
 parameter?



 --result=somename


 That is on the command line. Then you need to give two parameters. Not
 a very big problem, but I would prefer one parameter. I like DRY. Less
 that can go wrong.


 not possible but you can access the outputfilename at the tex and lua end

What do mean with that?

-- 
Cecil Westerhof
___
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] Is it possible to set the output file name in the script

2013-04-26 Thread Hans Hagen

On 4/26/2013 7:01 PM, Cecil Westerhof wrote:

2013/4/26 Hans Hagen pra...@wxs.nl:

On 4/26/2013 6:50 PM, Cecil Westerhof wrote:


2013/4/26 Hans Hagen pra...@wxs.nl:


On 4/26/2013 5:34 PM, Cecil Westerhof wrote:



I am using a command line parameter to change the generated output. Is
it also possible to set the output file name depending on the
parameter?




--result=somename



That is on the command line. Then you need to give two parameters. Not
a very big problem, but I would prefer one parameter. I like DRY. Less
that can go wrong.



not possible but you can access the outputfilename at the tex and lua end


What do mean with that?


just grep for outputfile in lua and mkiv files

Hans

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


Re: [NTG-context] Adobe Garamond Problems with letter combination fi

2013-04-26 Thread Khaled Hosny
I don’t know what LaTeX you were using, but LaTeX does not and will not
disable ligatures by default (there isn’t even a way in original TeX to
disable ligatures globally, short of editing TFM files).

Regards,
Khaled

On Fri, Apr 26, 2013 at 02:12:07PM +0200, Keith J. Schultz wrote:
 Hi Khaled,
 
 When I used LaTeX last if I had fi in my text that is how it came out!
 Using ConTeXt I noticed that fi becomes a ligature, did not like, but it
 was not that important. 
 
 Till I decided to start using ConTeXt I had been using XeLaTeX.
 
 regards
   Keith.
  
 Am 26.04.2013 um 10:20 schrieb Khaled Hosny khaledho...@eglug.org:
 
  On Fri, Apr 26, 2013 at 09:41:15AM +0200, Keith J. Schultz wrote:
 On the other side, I believe,  ligatures of off by default in LaTeX, et 
  al. or at least are feature
 is set when the font is loaded. 
  
  So you neither use LaTeX nor ConTeXt?
 
 ___
 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
___

[NTG-context] Fwd: Is it possible to set the output file name in the script

2013-04-26 Thread Cecil Westerhof
Again to Hans instead of to the list. I ‘hate’ gmail.


-- Forwarded message --
From: Cecil Westerhof cldwester...@gmail.com
Date: 2013/4/26
Subject: Re: [NTG-context] Is it possible to set the output file name
in the script
To: Hans Hagen pra...@wxs.nl


2013/4/26 Hans Hagen pra...@wxs.nl:
 On 4/26/2013 7:01 PM, Cecil Westerhof wrote:

 2013/4/26 Hans Hagen pra...@wxs.nl:

 On 4/26/2013 6:50 PM, Cecil Westerhof wrote:


 2013/4/26 Hans Hagen pra...@wxs.nl:


 On 4/26/2013 5:34 PM, Cecil Westerhof wrote:



 I am using a command line parameter to change the generated output. Is
 it also possible to set the output file name depending on the
 parameter?




 --result=somename



 That is on the command line. Then you need to give two parameters. Not
 a very big problem, but I would prefer one parameter. I like DRY. Less
 that can go wrong.



 not possible but you can access the outputfilename at the tex and lua end


 What do mean with that?


 just grep for outputfile in lua and mkiv files

I have now (I need to use jobfilename, because I get an error when I
use outputfilename):
\def\outputfilename{\jobfilename -\getvariable{meta}{type}}
\def\outputfilenametwo{\jobfilename -\getvariable{meta}{type}}

When displaying outputfilenametwo I see that it is filled with the
correct value, but the output is still written to the same file.

--
Cecil Westerhof


-- 
Cecil Westerhof
___
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] Is it possible to set the output file name in the script

2013-04-26 Thread Cecil Westerhof
2013/4/26 Cecil Westerhof cldwester...@gmail.com:
 2013/4/26 Hans Hagen pra...@wxs.nl:
 On 4/26/2013 7:01 PM, Cecil Westerhof wrote:

 2013/4/26 Hans Hagen pra...@wxs.nl:

 On 4/26/2013 6:50 PM, Cecil Westerhof wrote:


 2013/4/26 Hans Hagen pra...@wxs.nl:


 On 4/26/2013 5:34 PM, Cecil Westerhof wrote:



 I am using a command line parameter to change the generated output. Is
 it also possible to set the output file name depending on the
 parameter?




 --result=somename



 That is on the command line. Then you need to give two parameters. Not
 a very big problem, but I would prefer one parameter. I like DRY. Less
 that can go wrong.



 not possible but you can access the outputfilename at the tex and lua end


 What do mean with that?


 just grep for outputfile in lua and mkiv files

 I have now (I need to use jobfilename, because I get an error when I
 use outputfilename):
 \def\outputfilename{\jobfilename -\getvariable{meta}{type}}
 \def\outputfilenametwo{\jobfilename -\getvariable{meta}{type}}

 When displaying outputfilenametwo I see that it is filled with the
 correct value, but the output is still written to the same file.

The following script does what I want:
#!/usr/bin/env bash

set -o errexit
set -o nounset

declare -r DEFAULT=cecil
declare -r DIR=${HOME}/Documenten/CV
declare -r FILE=CV-Cecil-Westerhof
declare -r SCRIPTNAME=$(basename ${0})

declare RESULT
declare TYPE

if [[ ${#} -ge 1 ]] ; then
  TYPE=${1}; shift
else
  TYPE=${DEFAULT}
fi
readonly TYPE

if [[ ${#} -ne 0 ]] ; then
echo USAGE: ${SCRIPTNAME} [TYPE]
exit 1
fi

cd ${DIR}
RESULT=${FILE}
if [[ ${TYPE} != ${DEFAULT} ]] ; then
RESULT+=-${TYPE}
fi
readonly RESULT

context --CVType=${TYPE} --result=${RESULT} CV-Cecil-Westerhof

There is only one problem. If I first generate the default one and
after that a specific one, the default one does not exist anymore. I
suppose that when --result is used, first the pdf with the same name
as the tex file is generated and then moved. A little nuisance, but I
can live with it.

-- 
Cecil Westerhof
___
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] Adobe Garamond Problems with letter combination fi

2013-04-26 Thread Keith J. Schultz
Hi Khaled,

to be honest I never noticed them when I was using LaTeX. It might have been
the fonts.

I can live with them being on as a default in ConTeXt and know now how to turn 
them
off.

regards
Keith.

Am 26.04.2013 um 20:27 schrieb Khaled Hosny khaledho...@eglug.org:

 I don’t know what LaTeX you were using, but LaTeX does not and will not
 disable ligatures by default (there isn’t even a way in original TeX to
 disable ligatures globally, short of editing TFM files).
 
 Regards,
 Khaled

___
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] Adobe Garamond Problems with letter combination fi

2013-04-26 Thread Keith J. Schultz

Am 26.04.2013 um 18:43 schrieb Thomas A. Schmitz thomas.schm...@uni-bonn.de:

 
 Hi Keith,
 
 if you look at the books of decent publishers, you will see that most of them 
 still use ligatures (most American university presses, Oxford and Cambridge, 
 German publishers such as Reclam etc.) However, many smaller publishers don't 
 give a rat's ass about esthetics, and that's where Word comes into play: they 
 have their authors deliver their manuscripts as Word files and simply typeset 
 from that, more often than not by employing some underpaid and untrained 
 contractors in India. Cuts costs and makes authors do all the work that 
 publishers used to do in the olden days... Taking this as the norm is not a 
 good idea.
 
 As to LaTeX: you're wrong, LaTeX is part of the TeX family as is ConTeXt and 
 has ligatures. If you set up your fonts correctly in XeLaTeX, you get them.
 
Hi Thomas,

I never said that they do not have ligatures. I never said XeLaTeX does not 
have 
the ability to use them I have read the fontspec manual!

What I do not understand is why you rant to me about Words inabilities! I never 
mentioned
before you did!! 

It is a shame that when one states an opinion that others dislike or do not 
agree with one 
is pushed into a corner which had absolutely nothing to do with one post.

For me this discussion has gone far enough.

regards
Keith



___
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] Adobe Garamond Problems with letter combination fi

2013-04-26 Thread Idris Samawi Hamid ادريس سماوي حامد

Greetings, Keith, Thomas, and all,

On Fri, 26 Apr 2013 10:43:59 -0600, Thomas A. Schmitz  
thomas.schm...@uni-bonn.de wrote:


if you look at the books of decent publishers, you will see that most of  
them still use ligatures (most American university presses, Oxford and  
Cambridge, German publishers such as Reclam etc.) However, many smaller  
publishers don't give a rat's ass about esthetics, and that's where Word  
comes into play: they have their authors deliver their manuscripts as  
Word files and simply typeset from that, more often than not by  
employing some underpaid and untrained contractors in India. Cuts  
costs and makes authors do all the work that publishers used to do in  
the olden days... Taking this as the norm is not a good idea.


The situation Thomas is describing is analogous to what happened 40 years  
ago: When metal-based typesetting started to die out, what came after was  
atrocious but ubiquitous. And that's _exactly_ why Knuth invented TeX!


As a general rule: High-quality typesetting with good fonts and the  
ligatures off is like pouring fine wine into a plastic cup.


Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] Is it possible to set the output file name in the script

2013-04-26 Thread Cecil Westerhof
2013/4/26 Cecil Westerhof cldwester...@gmail.com:
 The following script does what I want:
 #!/usr/bin/env bash

 set -o errexit
 set -o nounset

 declare -r DEFAULT=cecil
 declare -r DIR=${HOME}/Documenten/CV
 declare -r FILE=CV-Cecil-Westerhof
 declare -r SCRIPTNAME=$(basename ${0})

 declare RESULT
 declare TYPE

 if [[ ${#} -ge 1 ]] ; then
   TYPE=${1}; shift
 else
   TYPE=${DEFAULT}
 fi
 readonly TYPE

 if [[ ${#} -ne 0 ]] ; then
 echo USAGE: ${SCRIPTNAME} [TYPE]
 exit 1
 fi

 cd ${DIR}
 RESULT=${FILE}
 if [[ ${TYPE} != ${DEFAULT} ]] ; then
 RESULT+=-${TYPE}
 fi
 readonly RESULT

 context --CVType=${TYPE} --result=${RESULT} CV-Cecil-Westerhof

 There is only one problem. If I first generate the default one and
 after that a specific one, the default one does not exist anymore. I
 suppose that when --result is used, first the pdf with the same name
 as the tex file is generated and then moved. A little nuisance, but I
 can live with it.

That can be solved by renaming the tex-file to CV.tex. The script is now:
#!/usr/bin/env bash

set -o errexit
set -o nounset

declare -r DEFAULT=cecil
declare -r DIR=${HOME}/Documenten/CV
declare -r FILE=CV
declare -r SCRIPTNAME=$(basename ${0})

declare RESULT=CV-Cecil-Westerhof
declare TYPE

if [[ ${#} -ge 1 ]] ; then
  TYPE=${1}; shift
else
  TYPE=${DEFAULT}
fi
readonly TYPE

if [[ ${#} -ne 0 ]] ; then
echo USAGE: ${SCRIPTNAME} [TYPE]
exit 1
fi

cd ${DIR}
if [[ ${TYPE} != ${DEFAULT} ]] ; then
RESULT+=-${TYPE}
fi
readonly RESULT

context --CVType=${TYPE} --result=${RESULT} ${FILE}

-- 
Cecil Westerhof
___
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] Adobe Garamond Problems with letter combination fi

2013-04-26 Thread Thomas A. Schmitz

On 04/26/2013 10:05 PM, Keith J. Schultz wrote:

I never said that they do not have ligatures. I never said XeLaTeX does not have
the ability to use them I have read the fontspec manual!


You wrote:


On the other side, I believe,  ligatures of off by default in LaTeX


which is wrong. That's not an opinion, it's a fact.



What I do not understand is why you rant to me about Words inabilities! I never 
mentioned
before you did!!


Then read my message again. It is not a rant. It points out that Word 
is the reason why some people consider ligatures unusual.




It is a shame that when one states an opinion that others dislike or do not 
agree with one
is pushed into a corner which had absolutely nothing to do with one post.


You were the one who has been using ConTeXt for a couple of days and 
declares



First I think it better if ligatures should be off as a default.


As a rule, it is considered good style to gain some knowledge before you 
give such general advice.



For me this discussion has gone far enough.


Quite so. The words I was wrong seem to be a bit difficult for some 
people.


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] Is it possible to set the output file name in the script

2013-04-26 Thread Peter Münster
On Fri, Apr 26 2013, Cecil Westerhof wrote:

 The following script does what I want:

Or shorter:

--8---cut here---start-8---
#!/usr/bin/env bash
context --result=cv-${1:-cecil} CV-Cecil-Westerhof
--8---cut here---end---8---

In CV-Cecil-Westerhof.tex you can check the result file:

--8---cut here---start-8---
\starttext
output file: \systemparameter{file} or \cldcontext{document.arguments.result}
\stoptext
--8---cut here---end---8---


 There is only one problem. If I first generate the default one and
 after that a specific one, the default one does not exist anymore.

A known bug: http://www.ntg.nl/pipermail/ntg-context/2008/035125.html

You could add it to the tracker: http://tracker.luatex.org/

-- 
   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] Why does startlines not work in a function

2013-04-26 Thread Cecil Westerhof
2013/4/26 Hans Hagen pra...@wxs.nl:
 On 4/26/2013 5:19 PM, Cecil Westerhof wrote:

 I have the following code:

 ...

 But then the text becomes one line instead of several lines.


 because catcode changes are involved

 \startbuffer [meta:personalInfo:long]
 \startlines

 longline 1
 longline 2
 longline 3
 longline 4
 longline 5
 longline 6
 longline 7
 longline 8
 \stoplines
 \stopbuffer

 \startbuffer [meta:personalInfo:]
 \startlines

 shortline 1
 shortline 2
 shortline 3
 shortline 4
 \stoplines
 \stopbuffer

 \starttext

 \getbuffer[meta:personalInfo:\getvariable{meta}{personalInfo}]

 \stoptext

Works. Thanks.

-- 
Cecil Westerhof
___
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] Is it possible to set the output file name in the script

2013-04-26 Thread Cecil Westerhof
2013/4/26 Peter Münster pmli...@free.fr:
 On Fri, Apr 26 2013, Cecil Westerhof wrote:

 The following script does what I want:

 Or shorter:

 --8---cut here---start-8---
 #!/usr/bin/env bash
 context --result=cv-${1:-cecil} CV-Cecil-Westerhof
 --8---cut here---end---8---

Nope, when the parameter is cecil, I want to add nothing. Also I am a
little paranoid, so I want the script to not execute when there are to
many parameters.


 There is only one problem. If I first generate the default one and
 after that a specific one, the default one does not exist anymore.

 A known bug: http://www.ntg.nl/pipermail/ntg-context/2008/035125.html

 You could add it to the tracker: http://tracker.luatex.org/

I already went around it. But it would not hurt to report it.

-- 
Cecil Westerhof
___
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] Defined and not defined and better be done global

2013-04-26 Thread Cecil Westerhof
When running ConTeXt I see a lot of this kind of messages:
fontsbodyfont 15pt is defined (can better be done global)
fontsbodyfont 1.25em is defined (can better be done global)
fontsbodyfont 1.25em is not defined
fontsbodyfont 1.25em is defined (can better be done global)
fontsbodyfont 15pt is defined (can better be done global)
fontsbodyfont 1.25em is defined (can better be done global)
fontsbodyfont 1.25em is not defined
fontsbodyfont 1.25em is defined (can better be done global)
fontsbodyfont 15pt is defined (can better be done global)
fontsbodyfont 1.25em is defined (can better be done global)
fontsbodyfont 1.25em is not defined

What am I doing wrong?

-- 
Cecil Westerhof
___
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] Adobe Garamond Problems with letter combination fi

2013-04-26 Thread Mojca Miklavec
On Fri, Apr 26, 2013 at 9:57 PM, Keith J. Schultz wrote:

 to be honest I never noticed them when I was using LaTeX. It might have been
 the fonts.

Someone had to show me the first ligature years ago and when he did
that, I had to check every single book and document I had at hand to
check if ligatures were really commonly used. I simply couldn't
believe my eyes and the fact that it took me some 15 years of literacy
and a couple of years of using TeX without ever noticing any ligature
anywhere.

I consider this (the fact that one doesn't notice it) part of a good
design. It's similar with kerning: one doesn't notice it until/unless
it's bad. It's similar in the kitchen also. One doesn't notice that
there is salt in food unless there's too little or too much of it
present.

Mojca

PS: if you really hate the ligatures, you can try to help improve this
interesting package to handle ligatures (it probably has the most
potential in engines other than XeTeX/LuaTeX because it's a bit more
complicated to turn off the ligatures there):
http://www.ctan.org/tex-archive/macros/latex/contrib/serbian-lig
The package defines commands for all the words from a dictionary which
contain letters fi, for example
\def\profit{prof\kern 0.03em it\xspace}
\def\Gadafi{Gadaf\kern 0.03em i\xspace}
% \stopsarcasm
___
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] Adobe Garamond Problems with letter combination fi

2013-04-26 Thread Hans Hagen

On 4/26/2013 11:48 PM, Mojca Miklavec wrote:

On Fri, Apr 26, 2013 at 9:57 PM, Keith J. Schultz wrote:


to be honest I never noticed them when I was using LaTeX. It might have been
the fonts.


Someone had to show me the first ligature years ago and when he did
that, I had to check every single book and document I had at hand to
check if ligatures were really commonly used. I simply couldn't
believe my eyes and the fact that it took me some 15 years of literacy
and a couple of years of using TeX without ever noticing any ligature
anywhere.


ha, and then you started recognizing tex docs by abundant use of frames 
around tables and, emdashes, funny logos with lowered and raised 
characters, and ...


btw, i have something similar with metapost: once you notice how precise 
mp is, you also notice how imprecise most other vector graphics are



I consider this (the fact that one doesn't notice it) part of a good
design. It's similar with kerning: one doesn't notice it until/unless
it's bad. It's similar in the kitchen also. One doesn't notice that


but i assume, as you were involved in lucida ot, that you know that this 
font has no kerns ..


(i remember seeing a monotype type one times that was advertized as 
being very good because it had 4000+ kerning pairs .. on one of those 
expensive sun-workstation typesetting systems that in the meantime 
disappeared)


(already for years i wonder that when printing from firefox etc it looks 
like the kerns are put on the wrong side of the glyphs)



there is salt in food unless there's too little or too much of it
present.


the opposite is true for hz and protrusion ... it takes a while to 
believe that tex can do a bad job when these are applied extremely and 
when applied less extreme one doesn't notice so i find myself never 
using it


there's some similarity is discussions about typography and high end 
audio (esp dacs and amps) ... one can go to real extremes but at some 
point wishful thinking enters the equation


honestly ... we cannot guarantee that texies will recognize 100% of the 
texts typeset by tex, given that one uses a non-lm font and non-standard 
layout setup


or: when you see a tex typeset in lm and with some standard latex style 
that has been around for decades, it can trigger an 'ah it looks good' 
felling simply because one *knows* it has been done by tex


nowadays when i read some novel with excessive expansion, inter 
character spacing and whatever, i always doubt it has been done by a 
badly configured in-design or equally bad configured tex



Mojca

PS: if you really hate the ligatures, you can try to help improve this
interesting package to handle ligatures (it probably has the most
potential in engines other than XeTeX/LuaTeX because it's a bit more
complicated to turn off the ligatures there):
 http://www.ctan.org/tex-archive/macros/latex/contrib/serbian-lig
The package defines commands for all the words from a dictionary which
contain letters fi, for example
 \def\profit{prof\kern 0.03em it\xspace}
 \def\Gadafi{Gadaf\kern 0.03em i\xspace}
% \stopsarcasm


whow .. it probably dates from the time before we had scripting 
languages that could parse text, although in that time tex's hash 
table/string space was too small to accomodate dictionaries


pdftex has \noligs -)


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


Re: [NTG-context] Defined and not defined and better be done global

2013-04-26 Thread Hans Hagen

On 4/26/2013 10:43 PM, Cecil Westerhof wrote:

When running ConTeXt I see a lot of this kind of messages:
fontsbodyfont 15pt is defined (can better be done global)
fontsbodyfont 1.25em is defined (can better be done global)
fontsbodyfont 1.25em is not defined
fontsbodyfont 1.25em is defined (can better be done global)
fontsbodyfont 15pt is defined (can better be done global)
fontsbodyfont 1.25em is defined (can better be done global)
fontsbodyfont 1.25em is not defined
fontsbodyfont 1.25em is defined (can better be done global)
fontsbodyfont 15pt is defined (can better be done global)
fontsbodyfont 1.25em is defined (can better be done global)
fontsbodyfont 1.25em is not defined

What am I doing wrong?


switching a bodyfont with an undefined bodyfontenvironment inside a 
group, which is very inefficient


(and a 1.5em bodyfont switch can probably better be replaced by a direct 
font definition)


Hans

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


Re: [NTG-context] Adobe Garamond Problems with letter combination fi

2013-04-26 Thread Hans Hagen

On 4/26/2013 10:17 PM, Thomas A. Schmitz wrote:


...It points out that Word
is the reason why some people consider ligatures unusual.


thinking of it: one reason why a general purpose word processor used by 
people with no idea about things like ligatures, is that ligatures are 
language dependent, something that is taken care of in opentype, which 
makes me wonder how many users actually use those properties ... it 
would make a nice thread to get some insight into these matters 
(usefulness, demand for more control - like selectively turning them 
off, which is not undoable)


Hans

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


Re: [NTG-context] Adobe Garamond Problems with letter combination fi

2013-04-26 Thread Khaled Hosny
On Sat, Apr 27, 2013 at 12:16:42AM +0200, Hans Hagen wrote:
 On 4/26/2013 11:48 PM, Mojca Miklavec wrote:
 
 I consider this (the fact that one doesn't notice it) part of a good
 design. It's similar with kerning: one doesn't notice it until/unless
 it's bad. It's similar in the kitchen also. One doesn't notice that
 
 but i assume, as you were involved in lucida ot, that you know that
 this font has no kerns ..

Which shows what an excellent job Bigelow  Holmes did in designing and
spacing the glyphs, and it is also one of the few typefaces that does
not even need f-ligatures :)

 nowadays when i read some novel with excessive expansion, inter
 character spacing and whatever, i always doubt it has been done by a
 badly configured in-design or equally bad configured tex

I have seen a couple of those books with excessive use of expansion,
you notice it at glance and it becomes very irritating, so I now avoid
expansion altogether (the books were in Arabic, so most probably it was
InDesign).

Regards,
Khaled
___
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
___