[NTG-context] new language and hyphenation

2010-01-20 Thread Marius
Hello all,

The hyphenation patterns for lithuanian language are missing. So, how
does one add a new language and hyphenation patterns for 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] using `` '' the output is wrong.

2010-01-20 Thread Hans Hagen

On 20-1-2010 8:04, Taco Hoekwater wrote:

Mojca Miklavec wrote:

The worst I find are the Macs with French keyboards,


Let's be honest ... any French keyboard ... :)


Don't forget macbook keyboards with dvorak mapping ;)


and if i remember right mojca has a slovenian dvorak with some missing 
keytops replaced by spares with other symbols


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] ConTeXt swallows text

2010-01-20 Thread Oliver Heins
Hi Luigi,

luigi scarso luigi.sca...@gmail.com writes:

 On Tue, Jan 19, 2010 at 10:05 PM, Oliver Heins o...@sopos.org wrote:

You can find the relevant pages
 of the booklet at http://sopos.org/olli/armut-fail.pdf

 If I understand well, you want
 an automatic solution
 instead of a manual solution like this one

No.  I already did that.  I want that the 

| \subject{Victoria Beckham pregnant again!}
| 
| Barack Obama is the father! Confronted with this fact, her husband
| David Beckham said\,\dots (Actually, this is a very important news the
| world should knew about!)

part of my minimal example gets typeset.  By now, it doesn't.  To me
that looks like a pretty big bug in ConTeXt.

Best regards,
 olli

-- 
Oliver Heins he...@sopos.orghttp://oliverheins.net/
http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8
http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827
1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827
Please avoid sending me Word or PowerPoint attachments:
http://www.gnu.org/philosophy/no-word-attachments.html
___
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] using `` '' the output is wrong.

2010-01-20 Thread Hans Hagen

On 20-1-2010 8:28, Alan BRASLAU wrote:

On Wednesday 20 January 2010 08:04:43 Taco Hoekwater wrote:

The problem is that all the latex and plain tex books promote
the use of `` and '' and people that already use TeX are unlikely
to change their habits (and most will not read the context manual
as thoroughly as they should).



This is my concern. Whereas I do prefer \quotation{} being functionally
logical, after all the spirit of TeX, I also like unicode generalizations
(such as ± for \pm). Nevertheless, hard core TeX users as well as converts
from LaTeX *expect* ``'', --, ---, ..., etc. to work in ConTeXt. I assume that
the present discussion is useful and not simply controversial.


one can always write small script that converts `` '' to \quotation

(actually one of my reasons for never using `` '' is that it looks quite 
ugly in the source as the second pair is not tilted and i hate ugly 
looking sources)



I ignore the mechanisms behind the different implementations (macro, fonts,
catcar, ...) and the problems that arise.

Concerning typesetting source code, I would suggest something as simple as
suspending ALL such tricks within \text{} and \starttyping\stoptyping (perhaps
parametrized). One could also define something like \shellescape{}, analogous
to \quotation{}, to typeset `echo hello world` and even \string{} to typeset
string or 'string', according to the programming language initialized.


indeed this backtick is to be dealt with by a command as it differs per 
operating system



What I also find disturbing is that *some* of these conventions are retained,
but not all.


in principle we can even drop $ and  as we now have primitives for them 
and # can go also at some point (but unfortunately tex is somewhat 
sensitive for #s passed in arguments


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] ConTeXt swallows text

2010-01-20 Thread luigi scarso
On Wed, Jan 20, 2010 at 10:08 AM, Oliver Heins o...@sopos.org wrote:
 Hi Luigi,

 luigi scarso luigi.sca...@gmail.com writes:

 On Tue, Jan 19, 2010 at 10:05 PM, Oliver Heins o...@sopos.org wrote:

You can find the relevant pages
 of the booklet at http://sopos.org/olli/armut-fail.pdf

 If I understand well, you want
 an automatic solution
 instead of a manual solution like this one

 No.  I already did that.  I want that the

 | \subject{Victoria Beckham pregnant again!}
 |
 | Barack Obama is the father! Confronted with this fact, her husband
 | David Beckham said\,\dots (Actually, this is a very important news the
 | world should knew about!)

 part of my minimal example gets typeset.  By now, it doesn't.  To me
 that looks like a pretty big bug in ConTeXt.

 Best regards,
  olli
For what I understand
\placegrafik[btlr]{none}{\externalfigure[foo][width=1.95\textwidth]}
and columnset with n=3 are not compatible.
I mean
1.95\textwidth and n=3 are not compatible

In mkii your \subject disappear, in mkiv no but things changes with
1.92\textwidth
whiel with 1.0\textwidth things go well.
I'm not surprised because columnsets must be carefully managed .

I thought you wanted to place this fig in a span of two columns, but I
was wrong -- sorry.

-- 
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] using `` '' the output is wrong.

2010-01-20 Thread Alan BRASLAU
On Wednesday 20 January 2010 10:10:07 Hans Hagen wrote:
 in principle we can even drop $ and  as we now have primitives for them 

Can you explain? I ignore the primatives for $E=mc^2$.

Whereas Mojca regrets $$ $$, I have long prefered \startformula\stopformula 
(or \begin{equation}\end{equation} if you like, as I sometimes still need to 
use LaTeX). 

I also much prefer
\framed {\relax
no leading space}
to
\framed {%
no leading space}
yet I do think that it would be a very bad idea to drop %

As to ugly source, I do agree that ``'' is not as pretty as “” (or is it ‟”, I 
never know)

Character: “ U+201C
Name: LEFT DOUBLE QUOTATION MARK
Annotations and Cross References
Alias names: double turned comma quotation mark
Notes: this is the preferred character (as opposed to ‟ U+201F DOUBLE HIGH-
REVERSED-9 QUOTATION MARK)
See also:
 U+0022 QUOTATION MARK
❝ U+275D HEAVY DOUBLE TURNED COMMA QUOTATION MARK ORNAMENT
〝 U+301D REVERSED DOUBLE PRIME QUOTATION MARK
General Character Properties
Block: General Punctuation
Unicode category: Punctuation, Initial Quote
Various Useful Representations
UTF-8: 0xE2 0x80 0x9C
UTF-16: 0x201C
C octal escaped UTF-8: \342\200\234
XML decimal entity: #8220;

Character: ‟ U+201F
Name: DOUBLE HIGH-REVERSED-9 QUOTATION MARK
Annotations and Cross References
Alias names: double reversed comma quotation mark
Notes: has same semantic as “ U+201C LEFT DOUBLE QUOTATION MARK, but differs in 
appearance
General Character Properties
Block: General Punctuation
Unicode category: Punctuation, Initial Quote
Various Useful Representations
UTF-8: 0xE2 0x80 0x9F
UTF-16: 0x201F
C octal escaped UTF-8: \342\200\237
XML decimal entity: #8223;

Furthermore, some editors such as MS-Word break the source, substituting
RIGHT SINGLE QUOTATION MARK (Character: ’ U+2019) for
APOSTROPHE (Character: ' U+0027)
for some insane reason cited as the preferred character to be used for 
apostrophe. 

All of this is to stress that, whatever the new functionality added to 
ConTeXt, the traditional TeX shorthands remain *very* useful for lots of users 
and I suggest that they be retained. I'm not sure that I understand the 
problem with ` (GRAVE ACCENT) that cannot be solved with a macro or by a 
setting that disactivates the production of ‘ (LEFT SINGLE QUOTE MARK).

I see from LaTeX that: \`{} is a grave accent
works, as does: \`\ is a grave accent
but not: {\`} is a grave accent
or: \`  is a grave accent

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] ConTeXt swallows text

2010-01-20 Thread Oliver Heins
luigi scarso luigi.sca...@gmail.com writes:

 On Wed, Jan 20, 2010 at 10:08 AM, Oliver Heins o...@sopos.org wrote:

 luigi scarso luigi.sca...@gmail.com writes:

 On Tue, Jan 19, 2010 at 10:05 PM, Oliver Heins o...@sopos.org wrote:

 No.  I already did that.  I want that the

 | \subject{Victoria Beckham pregnant again!}
 |
 | Barack Obama is the father! Confronted with this fact, her husband
 | David Beckham said\,\dots (Actually, this is a very important news the
 | world should knew about!)

 part of my minimal example gets typeset.  By now, it doesn't.  To me
 that looks like a pretty big bug in ConTeXt.

 For what I understand
 \placegrafik[btlr]{none}{\externalfigure[foo][width=1.95\textwidth]}
 and columnset with n=3 are not compatible.
 I mean
 1.95\textwidth and n=3 are not compatible

Same is true for lines=19.  I think this is a bug in ConTeXt, and I
wanted to report it, in the hope it will get fixed.

 In mkii your \subject disappear, in mkiv no but things changes with
 1.92\textwidth
 whiel with 1.0\textwidth things go well.
 I'm not surprised because columnsets must be carefully managed .

Sorry, but I won't consider a »feature working properly only under some
very rare circumstances« a properly working feature, but a broken one. 

 I thought you wanted to place this fig in a span of two columns, but I
 was wrong -- sorry.

No problem.  I should be more precise in my phrases.


Best regards,
 olli


-- 
Oliver Heins he...@sopos.orghttp://oliverheins.net/
http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8
http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827
1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827
Please avoid sending me Word or PowerPoint attachments:
http://www.gnu.org/philosophy/no-word-attachments.html
___
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] ConTeXt swallows text

2010-01-20 Thread luigi scarso
On Wed, Jan 20, 2010 at 11:06 AM, Oliver Heins o...@sopos.org wrote:

 For what I understand
 \placegrafik[btlr]{none}{\externalfigure[foo][width=1.95\textwidth]}
 and columnset with n=3 are not compatible.
 I mean
 1.95\textwidth and n=3 are not compatible

 Same is true for lines=19.  I think this is a bug in ConTeXt, and I
 wanted to report it, in the hope it will get fixed.
no surprise here ,as before

 In mkii your \subject disappear, in mkiv no but things changes with
 1.92\textwidth
 whiel with 1.0\textwidth things go well.
 I'm not surprised because columnsets must be carefully managed .

 Sorry, but I won't consider a »feature working properly only under some
 very rare circumstances« a properly working feature, but a broken one.

I disagree here.
In columnsets I always  exactly specify what  I want to do, to avoid surprise.
For example in your situation I  use width=1.0\textwidth, because
\placegrafik[btlr]{none}{\externalfigure[foo][width=1.95\textwidth]}
is a non-sense for me: I cannot  put a figure large 1.95\textwidth in
a column large \textwidth.
If I need  to do so, then I must reserve a span in a some way.


-- 
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] using `` '' the output is wrong.

2010-01-20 Thread Taco Hoekwater

Hi Alan,

Alan BRASLAU wrote:

Furthermore, some editors such as MS-Word break the source, substituting
RIGHT SINGLE QUOTATION MARK (Character: ’ U+2019) for
APOSTROPHE (Character: ' U+0027)
for some insane reason cited as the preferred character to be used for 
apostrophe. 



From the Unicode specification:

0027 ' APOSTROPHE
   = apostrophe-quote (1.0)
   = APL quote
   * neutral (vertical) glyph with mixed usage
   * 2019 is preferred for apostrophe
   * preferred characters in English for paired
 quotation marks are 2018  2019

So I think Word actually does the right thing (assuming you
can live with its auto-correct features in the first place)

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] ConTeXt swallows text

2010-01-20 Thread Oliver Heins
luigi scarso luigi.sca...@gmail.com writes:

 On Wed, Jan 20, 2010 at 11:06 AM, Oliver Heins o...@sopos.org wrote:

 For what I understand
 \placegrafik[btlr]{none}{\externalfigure[foo][width=1.95\textwidth]}
 and columnset with n=3 are not compatible.
 I mean
 1.95\textwidth and n=3 are not compatible

 Same is true for lines=19.  I think this is a bug in ConTeXt, and I
 wanted to report it, in the hope it will get fixed.
 no surprise here ,as before

 In mkii your \subject disappear, in mkiv no but things changes with
 1.92\textwidth
 whiel with 1.0\textwidth things go well.
 I'm not surprised because columnsets must be carefully managed .

 Sorry, but I won't consider a »feature working properly only under some
 very rare circumstances« a properly working feature, but a broken one.

 I disagree here.
 In columnsets I always  exactly specify what  I want to do, to avoid surprise.
 For example in your situation I  use width=1.0\textwidth, because
 \placegrafik[btlr]{none}{\externalfigure[foo][width=1.95\textwidth]}
 is a non-sense for me: I cannot  put a figure large 1.95\textwidth in
 a column large \textwidth.

Yes, but the 1.95\textwidth was just a remainder of my experiments with
the width to see where the problem occurs and where not.  It occurs with
width=2\textwidth, too, as well as with lines=19.  And the latter two
one make sense.

And no, I don't want to put a figure 2 columns wide in a single column.
I want it to spawn over two columns.

 If I need  to do so, then I must reserve a span in a some way.

According to http://www.pragma-ade.com/general/manuals/columns.pdf (page
16ff.) it is perfectly okay to do the way I did.

That's what the directive btlr is for: flush from bottom to top and left
to right.

It's a documented feature, and it's not working properly (at least from
what I see).  I call this a bug.

Best regards,
 olli

-- 
Oliver Heins he...@sopos.orghttp://oliverheins.net/
http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8
http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827
1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827
Please avoid sending me Word or PowerPoint attachments:
http://www.gnu.org/philosophy/no-word-attachments.html
___
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] ConTeXt swallows text

2010-01-20 Thread luigi scarso
On Wed, Jan 20, 2010 at 12:17 PM, Oliver Heins o...@sopos.org wrote:
 According to http://www.pragma-ade.com/general/manuals/columns.pdf (page
 16ff.) it is perfectly okay to do the way I did.

 That's what the directive btlr is for: flush from bottom to top and left
 to right.

 It's a documented feature, and it's not working properly (at least from
 what I see).  I call this a bug.


Yes can be but
I don't  mix  code from chapter Graphics with code from chapter Areas,
so until now my code has  worked as expected.
(I usually work with Area, so this is why I 've said that
1.95\textwidth is non-sense)
This works for example in mkiv and mkii ,so I suspect some not-so-good
interaction between Area and Chapter,
but I still disagree to call it a bug because typesetting in columns
is always hard in TeX, so maybe it's a feature that
you need but it's not still implemented .
Of course more examples can be usefuls in this sense.

\setupbodyfont[ss,10pt]
\setupinterlinespace[line=2.6ex]

\setuppapersize[A4][A4]
\setuplayout[backspace=2cm,width=middle,
 offset=0mm,
  topspace=0cm,height=middle,
   location=middle,
   ]
   \setupcolors[state=start]
   \setuptolerance[tolerant,verytolerant]

   \definefloat[grafik]
   \setupcaption[grafik][number=no,location=bottom]

   \definecolumnset[ergebnisse][n=3]
   %\definecolumnsetarea
   %[title][left]
   %[x=1,y=1,nx=6,ny=42,page=2,state=start]

   \starttext

   \startcolumnset[ergebnisse]
   \definecolumnsethsize{ergebnisse}{1}{2}\Two
   \dorecurse{10}{\input tufte}

   \placegrafik[btlr]{none}{\externalfigure[foo][lines=19,width=1.95\textwidth]}

   \subject{Victoria Beckham pregnant again!}

   Barack Obama is the father! Confronted with this fact, her husband
   David Beckham said\,\dots (Actually, this is a very important news the
   world should knew about!)

   \dorecurse{8}{\input tufte}

   \stopcolumnset

   \stoptext



-- 
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] ConTeXt swallows text

2010-01-20 Thread Hans Hagen

On 20-1-2010 10:08, Oliver Heins wrote:

Hi Luigi,

luigi scarsoluigi.sca...@gmail.com  writes:


On Tue, Jan 19, 2010 at 10:05 PM, Oliver Heinso...@sopos.org  wrote:



You can find the relevant pages
of the booklet at http://sopos.org/olli/armut-fail.pdf


If I understand well, you want
an automatic solution
instead of a manual solution like this one


No.  I already did that.  I want that the

| \subject{Victoria Beckham pregnant again!}
|
| Barack Obama is the father! Confronted with this fact, her husband
| David Beckham said\,\dots (Actually, this is a very important news the
| world should knew about!)

part of my minimal example gets typeset.  By now, it doesn't.  To me
that looks like a pretty big bug in ConTeXt.


columnsets can indeed loose content depending on how you finish them

this might be improved in future versions depending on (also) luatex dev 
which gives me some more info


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] ConTeXt swallows text

2010-01-20 Thread Oliver Heins
Hi Hans,

Hans Hagen pra...@wxs.nl writes:

 No.  I already did that.  I want that the

 | \subject{Victoria Beckham pregnant again!}
 |
 | Barack Obama is the father! Confronted with this fact, her husband
 | David Beckham said\,\dots (Actually, this is a very important news the
 | world should knew about!)

 part of my minimal example gets typeset.  By now, it doesn't.  To me
 that looks like a pretty big bug in ConTeXt.

 columnsets can indeed loose content depending on how you finish them

How can I finish a columnset so that it doesn't loose content?

 this might be improved in future versions depending on (also) luatex
 dev which gives me some more info

:-)

Best regards,
 olli

-- 
Oliver Heins he...@sopos.orghttp://oliverheins.net/
http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8
http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827
1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827
Please avoid sending me Word or PowerPoint attachments:
http://www.gnu.org/philosophy/no-word-attachments.html
___
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] Questions regarding simplefonts

2010-01-20 Thread Wolfgang Schuster

Am 20.01.10 08:58, schrieb Marius:

Hello all,

I add my questions regarding simplefonts to this thread too.
How to enable em dash and en dash? It looks like I need to set tlig to
yes, but with heading pasted below, the --- is not interpreted as em
dash.



\usemodule[simplefonts]
\setmainfont[Times New Roman][script=latin, texligatures=yes]

\setmainfont[Times New Roman][mode=node]

It's a problem with the font as you can see in this example:

\definefontfeature[default][default][mode=node] % mode=base works

\definefont[times][name:timesnewroman*default]


\starttext

\times text---text

\stoptext


\setsansfont[Arial Unicode MS]
\setmonofont[Courier New]

\setupbodyfont[10pt]

Can you use the module options to change the font size.

\usemodule[simplefonts][size=10pt]

or

\setupsimplefonts[size=10pt]

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] ConTeXt swallows text

2010-01-20 Thread Hans Hagen

On 20-1-2010 13:53, Oliver Heins wrote:

Hi Hans,

Hans Hagenpra...@wxs.nl  writes:


No.  I already did that.  I want that the

| \subject{Victoria Beckham pregnant again!}
|
| Barack Obama is the father! Confronted with this fact, her husband
| David Beckham said\,\dots (Actually, this is a very important news the
| world should knew about!)

part of my minimal example gets typeset.  By now, it doesn't.  To me
that looks like a pretty big bug in ConTeXt.


columnsets can indeed loose content depending on how you finish them


How can I finish a columnset so that it doesn't loose content?


\page after the stopcolumnset

also, as luigi remarked, chapter might somehow interfere if it is set up 
to start with a new page



this might be improved in future versions depending on (also) luatex
dev which gives me some more info


:-)


well, keep in mind that tex itself has no concept of columns at all and 
that all heuristics (and unpredictable cases) have to be dealt with in 
macros (and developing that is quite timeconsuming)


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] ConTeXt swallows text

2010-01-20 Thread luigi scarso
On Wed, Jan 20, 2010 at 2:07 PM, Hans Hagen pra...@wxs.nl wrote:

 How can I finish a columnset so that it doesn't loose content?

 \page after the stopcolumnset
^^^ this is fondamental ^^^

My experience says
0) keep start/stopcolumnset as small as possible to flush on a regular basis
and
1) use material from chapter Graphics
xor
2) use material from chapter Area
xor
3) Are you sure that I don't Indesign instead ?



-- 
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] ConTeXt swallows text

2010-01-20 Thread Oliver Heins
Hans Hagen pra...@wxs.nl writes:

 On 20-1-2010 13:53, Oliver Heins wrote:

 How can I finish a columnset so that it doesn't loose content?

 \page after the stopcolumnset

Thanks, I didn't know this.

 also, as luigi remarked, chapter might somehow interfere if it is set
 up to start with a new page

 this might be improved in future versions depending on (also) luatex
 dev which gives me some more info

 :-)

 well, keep in mind that tex itself has no concept of columns at all
 and that all heuristics (and unpredictable cases) have to be dealt
 with in macros (and developing that is quite timeconsuming)

I know.  Thanks for doing this job so well and sharing the code, Hans!

Hopefully, things are getting better with luatex.

Best regards,
 olli
___
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] ConTeXt swallows text

2010-01-20 Thread Oliver Heins
luigi scarso luigi.sca...@gmail.com writes:

 3) Are you sure that I don't Indesign instead ?

Guess I'm too much a TeXnician (or a TeXophilian) for that, and besides,
Indesign doesn't run under Linux anyway (I have a kind of windowphobia
;-).

Best regards,
 olli
___
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] Multiple text flows

2010-01-20 Thread Salil Sayed
Hi,

My book needs to have two separate texts for two different audiences. I get the 
inspiration from 
http://books.google.co.in/books?id=qdltz8N9qSEClpg=PP1dq=the%20body%20multiplepg=PP1#v=onepageq=f=false.

Here the author is separating each page on two parts. The top text is 
descriptive while lower text is literature research relating to the upper text.

I want to have one text flowing on right page and another on left. However, 
they are interconnected i.e. parallel. So there needs to be an anchoring 
mechanism so that on each right-left page couple they are talking about the 
same thing.

I am new to ConText but not shy of programming. I can explore any clues you 
give.

Thanks,

Salil


  ___
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] Questions regarding simplefonts

2010-01-20 Thread Marius
On Wed, Jan 20, 2010 at 2:59 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:

  Am 20.01.10 08:58, schrieb Marius:

 Hello all,

 I add my questions regarding simplefonts to this thread too.
 How to enable em dash and en dash? It looks like I need to set tlig to
 yes, but with heading pasted below, the --- is not interpreted as em
 dash.


 
 \usemodule[simplefonts]
 \setmainfont[Times New Roman][script=latin, texligatures=yes]

  \setmainfont[Times New Roman][mode=node]

 It's a problem with the font as you can see in this example:

  \definefontfeature[default][default][mode=node] % mode=base works

 \definefont[times][name:timesnewroman*default]


  \starttext

 \times text---text

 \stoptext


I realy do not understand what these \definexxx commands mean, but  then I
set \setmainfont[Times New Roman][mode=base], I get em dash as expected,
thank you.

  \setsansfont[Arial Unicode MS]
 \setmonofont[Courier New]

 \setupbodyfont[10pt]

  Can you use the module options to change the font size.

 \usemodule[simplefonts][size=10pt]

 or

 \setupsimplefonts[size=10pt]


Why? It works as expected with \setupbodyfont[10pt] too.
___
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] Questions regarding simplefonts

2010-01-20 Thread Wolfgang Schuster

Am 20.01.10 14:52, schrieb Marius:
I realy do not understand what these \definexxx commands mean, but 
 then I set \setmainfont[Times New Roman][mode=base], I get em dash as 
expected, thank you.

http://context.aanhet.net/svn/contextman/context-reference/en/co-typography.pdf


Can you use the module options to change the font size.


Why? It works as expected with \setupbodyfont[10pt] too.

Because it's the simplefont method but \setupbodyfont should work too.

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] Multiple text flows

2010-01-20 Thread Henning Hraban Ramm
2010/1/20 Salil Sayed salil...@yahoo.com:
 My book needs to have two separate texts for two different audiences. I get
 the inspiration from
 http://books.google.co.in/books?id=qdltz8N9qSEClpg=PP1dq=the%20body%20multiplepg=PP1#v=onepageq=f=false.

Try if this fits your needs:
http://wiki.contextgarden.net/Columns#Streams

Greetlings, Hraban
___
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] using `` '' the output is wrong.

2010-01-20 Thread Mojca Miklavec
On Wed, Jan 20, 2010 at 10:58, Alan BRASLAU wrote:

 I'm not sure that I understand the
 problem with ` (GRAVE ACCENT) that cannot be solved with a macro or by a
 setting that disactivates the production of ‘ (LEFT SINGLE QUOTE MARK).

Try to process the following with XeTeX (I would be grateful if anyone
knew how to solve that particular problem; also note that some
hyphenation patterns don't work when ' is replaced by proper quotation
mark):

\font\a=[lmroman10-regular]
\font\b=[lmroman10-regular]:mapping=tex-text
\starttext
\a ``abc'' {\buildtextaccent\textgrave a}\par
\b ``abc'' {\buildtextaccent\textgrave a}
\stoptext

You can try to start playing with modifications of
texmf/fonts/misc/xetex/fontmapping/base/tex-text.map.

 I see from LaTeX that: \`{} is a grave accent
 works, as does: \`\ is a grave accent
 but not: {\`} is a grave accent
 or: \`  is a grave accent

This is true for (pdf)latex. Have you tried the same with XeLaTeX
using any Unicode font (not the default cmr)? I wanted to try it out,
but I don't know how to do it.

Side note: This is unrelated to the problem that I have mentioned.
What you are quoting is a matter of input handling. The problem we
want to solve has to do with font handling.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] new language and hyphenation

2010-01-20 Thread Mojca Miklavec
On Wed, Jan 20, 2010 at 09:07, Marius wrote:

 The hyphenation patterns for lithuanian language are missing. So, how
 does one add a new language and hyphenation patterns for ConTeXt?

In scripts/context/lua/mtx-patterns.lua Hans needs to add

{ la,  hyph-la.tex,latin },
[after this line]
{ lt,  hyph-lt.tex,lithuanian },
{ lv,  hyph-lv.tex,latvian },

and regenerate the patterns (and double-checking that nothing broke in
the meantime). [You can also take hyph-lt.tex and copy it to
tex/context/patterns/lang-lt.pat as a temporary solution.]

Apart from that you need to submit translation for your language (see
lang-ger.tex and lang-bal.tex), or at least that would be very nice.
Some settings there are necessary if you want to enable the extra
patterns. There are some more things to be done, but you may start by
translating the strings and filling other holes in lang-bal.tex.

The main question is: do you need them only for MKIV/XeTeX or do you
also want them for MKII? In the latter case you'll have quite some
problems with encoding (that is: missing support for it in fonts).

In MKIV  XeTeX it should be no problem.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] new language and hyphenation

2010-01-20 Thread Hans Hagen

On 20-1-2010 17:10, Mojca Miklavec wrote:

On Wed, Jan 20, 2010 at 09:07, Marius wrote:


The hyphenation patterns for lithuanian language are missing. So, how
does one add a new language and hyphenation patterns for ConTeXt?


In scripts/context/lua/mtx-patterns.lua Hans needs to add

 { la,  hyph-la.tex,latin },
[after this line]
 { lt,  hyph-lt.tex,lithuanian },
 { lv,  hyph-lv.tex,latvian },

and regenerate the patterns (and double-checking that nothing broke in
the meantime). [You can also take hyph-lt.tex and copy it to
tex/context/patterns/lang-lt.pat as a temporary solution.]


ok, generated, will be next beta, untested and unchecked of course


Apart from that you need to submit translation for your language (see
lang-ger.tex and lang-bal.tex), or at least that would be very nice.
Some settings there are necessary if you want to enable the extra
patterns. There are some more things to be done, but you may start by
translating the strings and filling other holes in lang-bal.tex.


patterns indeed won't work until we have an entry in lang0-.tex for 
lithuanian


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] new language and hyphenation

2010-01-20 Thread Mojca Miklavec
On Wed, Jan 20, 2010 at 17:23, Hans Hagen pra...@wxs.nl wrote:
 On 20-1-2010 17:10, Mojca Miklavec wrote:

 On Wed, Jan 20, 2010 at 09:07, Marius wrote:

 The hyphenation patterns for lithuanian language are missing. So, how
 does one add a new language and hyphenation patterns for ConTeXt?

 In scripts/context/lua/mtx-patterns.lua Hans needs to add

     { la,  hyph-la.tex,            latin },
 [after this line]
     { lt,  hyph-lt.tex,            lithuanian },
     { lv,  hyph-lv.tex,            latvian },

 and regenerate the patterns (and double-checking that nothing broke in
 the meantime). [You can also take hyph-lt.tex and copy it to
 tex/context/patterns/lang-lt.pat as a temporary solution.]

 ok, generated, will be next beta, untested and unchecked of course

Thanks a lot.

 Apart from that you need to submit translation for your language (see
 lang-ger.tex and lang-bal.tex), or at least that would be very nice.
 Some settings there are necessary if you want to enable the extra
 patterns. There are some more things to be done, but you may start by
 translating the strings and filling other holes in lang-bal.tex.

 patterns indeed won't work until we have an entry in lang0-.tex for
 lithuanian

But this needs to be done by Marius (or someone else). Before anyone
asks: l7x that needs to be used by Lithuanian in MKII is not supported
in ConTeXt yet, so maybe the sensible setting in lang-bal.tex would
be:

\installlanguage
  [\s!lt]
  [...
   \s!mapping=, % the correct setting is l7x for both
   \s!encoding=]

if that means that the patterns will be loaded in xetex/luatex and not
in pdftex at all. Alternatively we could add support. Latin Modern and
TeX Gyre both support it (added in 2007 to LM and fixed in 2009 for
TG; I thought that l7x was missing in most fonts).

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \setuplabeltext[chapter=Chapter ] (or mkiv document structure/TOC)

2010-01-20 Thread Alan BRASLAU
In a large project, a book with parts, chapters, appendices, etc. I have set 
the table of contents to display the label Chapter yielding:

Part I
Chapter 1
Chapter 2
Chapter 3
Part II
Chapter 4
...

Through the following (mkiv):

%
% section headings
%
\definestructureresetset [default] [0,0] [1] % do not reset parts and chapters
\setuphead [part] [sectionresetset=default,
   placehead=yes,
   conversion=Romannumerals]
\setuphead [chapter,section,subsection] [placehead=yes,sectionsegments=2:100]
%
% table of contents
%
\setuplabeltext [chapter=Chapter ] % with trailing space; blank by default
\setuplist [chapter] [label=yes,width=5em]
\setuplist [part,chapter,section,subsection,subsubsection]
   [interaction=all,alternative=c] % number – title – dots – 
pagenumber

\starttext
\startfrontmatter
\stopfrontmatter

\startbodymatter
\stopbodymatter

\startappendices
\stopappendices

\startbackmatter
\stopbackmatter

\stoptext



In the above use, the appendices A,B,... get listed as

  Chapter A
  Chapter B

and the Bibliography, Name Index, Subject Index, List of Figures, List of 
Tables all get listed as

  Chapter Bibliography
  Chapter Name Index
  ...


Adding
  \setuplabeltext [chapter=Appendix ] % with trailing space; blank by default
after \startappendices doesn't work, nor does
  \setuplabeltext [chapter=] % reset to blank
after \startbackmatter.

(of course, these labels should be predefined according to the language, and 
some switch,
  \setuplist [chapter] [label=no]
after \startbackmatter, maybe by default, should take care of it.)

Any suggestions?

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
___


[NTG-context] \startitemize[4,inmargin]

2010-01-20 Thread Vedran Miletić
Hi,

I'm working on three-column document and I would like to put symbols a
bit closer to text (but still leave them in margin). Is there an
option that does it? I tried with margin=, width= and distance=, but
it put them outside the margin and turned symbols into black dots, and
that's not quite what I wanted.

Regards,

-- 
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] new language and hyphenation

2010-01-20 Thread Marius
On Wed, Jan 20, 2010 at 6:10 PM, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:


 Apart from that you need to submit translation for your language (see
 lang-ger.tex and lang-bal.tex), or at least that would be very nice.
 Some settings there are necessary if you want to enable the extra
 patterns. There are some more things to be done, but you may start by
 translating the strings and filling other holes in lang-bal.tex.


To do it I need to understand what all these parameters mean.

\installlanguage [..1.] [..,.=2.,..]
1 IDENTIFIER
2 spacing = packed broad
lefthyphenmin = NUMBER
righthyphenmin = NUMBER
state = start stop
leftsentence = COMMAND
rightsentence = COMMAND
leftsubsentence = COMMAND
rightsubsentence = COMMAND
leftquote = COMMAND
rightquote = COMMAND
leftquotation = COMMAND
rightquotation = COMMAND
leftspeech = COMMAND
middlespeech = COMMAND
rightspeech = COMMAND
limittext = TEXT
date = TEXT
compoundhyphen = COMMAND
leftcompoundhyphen = COMMAND
rightcompoundhyphen = COMMAND
default = IDENTIFIER

What is the difference between quote and quotation? I always use double
quote, like this: „example“

Next, I need to know there all strings, which I translate, will be used.
Maybe, there is an example document with all english strings used.

For example:
Figure 1: Caption of the figure
1 pav. Caption of the figure

Table 1: Caption of the table
1 lentelė. Caption of the table

In a table of contents and in section names there must be period after
number:

1. Name
1.1. Name2
1.1.2. Name3

exept:

Chapter 1
1 skyrius


 The main question is: do you need them only for MKIV/XeTeX or do you
 also want them for MKII? In the latter case you'll have quite some
 problems with encoding (that is: missing support for it in fonts).

 In MKIV  XeTeX it should be no problem.


I use utf8 and MKIV.


 Mojca


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConText and definecolor: undefined control sequence

2010-01-20 Thread Aditya Mahajan

On Tue, 12 Jan 2010, Ben wrote:


Dear List,
using the pgf build from 20100103 and texlive2009 from the Debian unstable
I've just tried to do the following:

   \enableregime[utf]
   \usemodule[tikz]

   \starttext

   \startTEXpage
   \pgfu...@definecolor{magenta}{rgb}{1,0,1}

   \starttikzpicture
 \draw (0,0) -- (1,1);
   \stoptikzpicture
   \stopTEXpage

   \stoptext

I always get

   ! Undefined control sequence.
   l.21 \pgfutil
@definecolor{magenta}{rgb}{1,0,1}
   ?
   ! Emergency stop.
   l.21 \pgfutil
@definecolor{magenta}{rgb}{1,0,1}
   End of file on the terminal!


You need to add \unprotect and \protect

\unprotect
\pgfu...@definecolor{...}
\protect

They are similar to \makeatletter and \makeatother in LaTeX.

The correct way is to ConTeXt's color mechanism to define colors. For 
example,


\usemodule[tikz]

\definecolor[mycolor][r=1,g=0,b=1]

\starttext
\starttikzpicture
  \node[text=mycolor] {Test} ;
\stoptikzpicture
\stoptext

This works with MkII but gives an error with MkIV.

! Undefined control sequence.
\pgfu...@registercolor ...ef \...@temp {\PDFcolor
  {#1}}\edef \...@marshal 
{\...

\pgfu...@colorlet ...x \pgfu...@registercolor {#2}
  \fi \edef \...@marshal 
{\n...

\t...@next ...fu...@colorlet {.}{\t...@textcolor }
  \fi \pgfsetcolor 
{.}\setbo...

l.7   \node[text=mycolor] {
   Test}

That is because MkII and MkIV have a different color model, 
and tikz does not support the MkIV model yet.


I am attaching a fix for that. I do not know what is the best way to 
incorporate it into tikz (perhaps a pgfutils-mkiv.tex file). For the 
moment, you can just input it after loading tikz.


Aditya\startluacode
  pgfutil = pgfutil or { } 
  local texsprint, format = tex.sprint, string.format
  local prtcatcodes = tex.prtcatcodes

  function pgfutil.unsupported_color(name)
texsprint(prtcatcodes,format(\\PackageError{pgf}{color %s has unsupported model}{}, name))
texsprint(prtcatcodes,format(\\pgfu...@definecolor{%s}{gray}{0}, name))
  end

  function pgfutil.registercolor(name, attributes)
print(name, attributes)
local cv = colors.value(attributes) 
if cv then
  local model = cv[1]
  if model == 1 then
print(model=1)
texsprint(prtcatcodes,format(\\pgfu...@definecolor{%s}{gray}{%1.3f}, name, cv[2]))
  elseif model == 3 then
print(model=2)
texsprint(prtcatcodes,format(\\pgfu...@definecolor{%s}{rgb}{%1.3f,%1.3f,%1.3f}, name, cv[3], cv[4], cv[5]))
  else
print(no model)
pgfutil.unsupported_color(name)
  end
else
print(no color)
  pgfutil.unsupported_color(name)
end
  end
\stopluacode

\unprotect
\def\pgfu...@registercolor#1%
  {\ctxlua{pgfutil.registercolor(#1,\thecolorattribute   {#1})}}
\protect

___
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] new language and hyphenation

2010-01-20 Thread Mojca Miklavec
On Wed, Jan 20, 2010 at 22:24, Marius mariau...@gmail.com wrote:
 On Wed, Jan 20, 2010 at 6:10 PM, Mojca Miklavec
 mojca.miklavec.li...@gmail.com wrote:

 Apart from that you need to submit translation for your language (see
 lang-ger.tex and lang-bal.tex), or at least that would be very nice.
 Some settings there are necessary if you want to enable the extra
 patterns. There are some more things to be done, but you may start by
 translating the strings and filling other holes in lang-bal.tex.

 To do it I need to understand what all these parameters mean.
 \installlanguage [..1.] [..,.=2.,..]
 1 IDENTIFIER
 2 spacing = packed broad
 lefthyphenmin = NUMBER
should be 2
 righthyphenmin = NUMBER
should be 2 - the minimum number of characters that are allowed to the
left and right of hyphen character.

 state = start stop

start - enable language

 leftsentence = COMMAND
 rightsentence = COMMAND
 leftsubsentence = COMMAND
 rightsubsentence = COMMAND

 leftquote = COMMAND
 rightquote = COMMAND

Quote is for single quotation mark (when nesting):
A said: \quotation{B said: \quote{some sentence}}

 leftquotation = COMMAND
 rightquotation = COMMAND
 leftspeech = COMMAND
 middlespeech = COMMAND
 rightspeech = COMMAND
 limittext = TEXT
 date = TEXT

Take a look at other examples in lang-ger/ita/sla/tex. You need to
write date format.

 compoundhyphen = COMMAND
 leftcompoundhyphen = COMMAND
 rightcompoundhyphen = COMMAND
 default = IDENTIFIER
 What is the difference between quote and quotation? I always use double
 quote, like this: „example“

Usually there must exist another set of quotation marks for nesting
quotations. Rarely used, but ...

 Next, I need to know there all strings, which I translate, will be used.
 Maybe, there is an example document with all english strings used.

There is no, but maybe we could make one :)

 For example:
 Figure 1: Caption of the figure
 1 pav. Caption of the figure
 Table 1: Caption of the table
 1 lentelė. Caption of the table

Nice. I guess that you gave a nice homework to Hans :)
I didn't check, but I have not seen any setting to change the order of
number  label yet.

 In a table of contents and in section names there must be period after
 number:

This can be fixed in mkiv; a bit harder in mkii.

 1. Name
 1.1. Name2
 1.1.2. Name3
 exept:
 Chapter 1
 1 skyrius

 The main question is: do you need them only for MKIV/XeTeX or do you
 also want them for MKII?

 I use utf8 and MKIV.

That's fine then.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] new language and hyphenation

2010-01-20 Thread Wolfgang Schuster

Am 20.01.10 23:53, schrieb Mojca Miklavec:

For example:
Figure 1: Caption of the figure
1 pav. Caption of the figure
Table 1: Caption of the table
1 lentelė. Caption of the table


Nice. I guess that you gave a nice homework to Hans :)
I didn't check, but I have not seen any setting to change the order of
number  label yet.

not what you want but this works

\setuplabeltext[...][...={left of number}{right of number}]

In a table of contents and in section names there must be period after
number:


This can be fixed in mkiv; a bit harder in mkii.

\setupheads[sectionstopper=.]

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

2010-01-20 Thread Piotr Lesnicki
Hi,
I'm new to ConTeXt and I'm greatly appreciating the rejuvenation it
brings me in typesetting after several years using LaTeX.

I'm confronted to a few little problems though, the main one being
that I'd need to have references both in the footnotes and at the end
of a document. Under LaTeX I found that the inlibib package is doing
exactly that, inserting some ibid and op.cit. when required for
repeting references. After reading the bibmod-doc, I thought I would
temporarly solve the problem by simply using
\setuppublications[refcommand=data] which I thought would put the
reference in the same format as in the bibliography, but it doesn't
compile.

Does any one have a solution?


Piotr
___
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] Strange Behaviour / Strange Memory effect when creating pdf charts with the chart module in context

2010-01-20 Thread moritz braun
Dear All

I am experiencing a strange problem with the chart module using
context on ubuntu.
this module allows for the creating of nice flow charts!
however
when creating the  flow chart from the source code with
texexec --pdf  chart.tex
the resultiong pdf file sometimes shows information that is not in the tex file
but was in a previous version of it, i.e. some kind of a wierd memoery
effect is present
I am wondering, where does context keep its cache.
In order to debug this problem I installed context  on another ubuntu box and
when freshly installed , i.e. for the first call of texexec the result
was fine. however
any subsequent call will again create unpredictable effects.
I have written some  documentation using context and the chart module
and today is may last day in the project and I need to hand this over!

regards

Moritz


-- 
Prof M Braun Tel.:27-12-4298006/8027
Physics Department  Fax.: 27-12-4293643
University of South Africa (UNISA)  
moritz.br...@gmail.com
P.O. Box 392
0003
UNISA
 South Africa
___
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] simpleslides - no macros found errors

2010-01-20 Thread Himanshu B. Dave
I am a new user of simpleslides.
Linux 2.6.21 kernel, Slackware 12.0, teTeX
installed latest version of t-simpleslides via t-simpleslides.zip in
/usr/share/texmf tree
Executed:   mktexlsr
confirmed:  appearance of t-simpleslides.tex in /usr/share/texmf/ls-R
confirmed:  path via kpsewhich t-simpleslides.tex
copied:  speaker_introduction-2min.tex  to my HOME directory, and
tried to compile it. Got the following errors:

system  : no macros found in module style=Boxed
system  : macros of module font=Bookman already loaded

... ... ...
! Undefined control sequence.
l.29 \SlideTitle
 {Speaker's Name}
?

Incidentally, context system itself is running OK.

Am I missing something? Or, doing something silly?
Help requested. Thanks.
___
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] simpleslides - no macros found errors

2010-01-20 Thread Taco Hoekwater

Himanshu B. Dave wrote:

I am a new user of simpleslides.
Linux 2.6.21 kernel, Slackware 12.0, teTeX
installed latest version of t-simpleslides via t-simpleslides.zip in
/usr/share/texmf tree
Executed:   mktexlsr
confirmed:  appearance of t-simpleslides.tex in /usr/share/texmf/ls-R
confirmed:  path via kpsewhich t-simpleslides.tex
copied:  speaker_introduction-2min.tex  to my HOME directory, and
tried to compile it. Got the following errors:

system  : no macros found in module style=Boxed
system  : macros of module font=Bookman already loaded

... ... ...
! Undefined control sequence.
l.29 \SlideTitle
 {Speaker's Name}
?

Incidentally, context system itself is running OK.

Am I missing something? Or, doing something silly?


For 'context' (which is context mark iv, as apposed to texexec which
is context mark ii) you have to run luatools --generate instead of
mktexlsr.

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] Strange Behaviour / Strange Memory effect when creating pdf charts with the chart module in context

2010-01-20 Thread Taco Hoekwater

moritz braun wrote:

Dear All

I am experiencing a strange problem with the chart module using
context on ubuntu.
this module allows for the creating of nice flow charts!
however
when creating the  flow chart from the source code with
texexec --pdf  chart.tex
the resultiong pdf file sometimes shows information that is not in the tex file
but was in a previous version of it, i.e. some kind of a wierd memoery
effect is present
I am wondering, where does context keep its cache.
In order to debug this problem I installed context  on another ubuntu box and
when freshly installed , i.e. for the first call of texexec the result
was fine. however
any subsequent call will again create unpredictable effects.
I have written some  documentation using context and the chart module
and today is may last day in the project and I need to hand this over!


Yes, this sometimes happens. Context stores is transitional data
in \jobname.tuo for 'texexec' (\jobname.tuc for 'context') and
if you use the chart module, I know for a fact that at least the .tuo
tends to lag behind a bit.

The solution is to run 'texexec' (or 'context', but I suspect the
problem is with 'texexec' ) once more without doing any edits.

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] Strange Behaviour / Strange Memory effect when creating pdf charts with the chart module in context

2010-01-20 Thread moritz braun
Hi there

this is not really my experience

Even when deleting all the many files that context creates, There is a
strange memory effect!!!

On Thu, Jan 21, 2010 at 9:13 AM, Taco Hoekwater t...@elvenkind.com wrote:
 moritz braun wrote:

 Dear All

 I am experiencing a strange problem with the chart module using
 context on ubuntu.
 this module allows for the creating of nice flow charts!
 however
 when creating the  flow chart from the source code with
 texexec --pdf  chart.tex
 the resultiong pdf file sometimes shows information that is not in the tex
 file
 but was in a previous version of it, i.e. some kind of a wierd memoery
 effect is present
 I am wondering, where does context keep its cache.
 In order to debug this problem I installed context  on another ubuntu box
 and
 when freshly installed , i.e. for the first call of texexec the result
 was fine. however
 any subsequent call will again create unpredictable effects.
 I have written some  documentation using context and the chart module
 and today is may last day in the project and I need to hand this over!

 Yes, this sometimes happens. Context stores is transitional data
 in \jobname.tuo for 'texexec' (\jobname.tuc for 'context') and
 if you use the chart module, I know for a fact that at least the .tuo
 tends to lag behind a bit.

 The solution is to run 'texexec' (or 'context', but I suspect the
 problem is with 'texexec' ) once more without doing any edits.

 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
 ___




-- 
Prof M Braun Tel.:27-12-4298006/8027
Physics Department  Fax.: 27-12-4293643
University of South Africa (UNISA)  
moritz.br...@gmail.com
P.O. Box 392
0003
UNISA
 South Africa
___
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
___