Re: [NTG-context] problem with small cyrillic yo

2008-01-09 Thread Mikael Persson
This is probably my fault. If I remember right I wrote the entries in
that file a time ago when I needed a cyrillic text. Never tested it
out fully, and by the time I wrote it I was in a hurry. It is good if
a native "cyrillic-letter-writing" person goes through it.

Micke P

On Jan 10, 2008 12:39 AM, Arthur Reutenauer
<[EMAIL PROTECTED]> wrote:
> > I have no idea which name is a more accurate one, but if "yo" is more
> > accurate than "io"
>
>   char-def.lua has indeed 'cyrillicyo' as the ConTeXt name, and "yo" is
> also preferred in all the LaTeX encodings (T2* etc.).  "io" seems to be
> a confusion with the Unicode name ("CYRILLIC CAPITAL / SMALL LETTER IO").
>
> Arthur
>
> ___
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] {{ double braces }}

2008-01-21 Thread Mikael Persson
Hi Steffen,

I don't really know regex, but how does your double brace work with
the following

\footnote{{This $\frac{a}{b^{c+d}}$ is a strange footnote}}

note the double }} in the math formula.

/Micke P

On Jan 21, 2008 3:45 PM, Steffen Wolfrum <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I would like to use in my documents double braces for the footnote –
> for easily matching entire footnotes with RegEx  (thus it can't
> confuse with the nested braces) ...
>
> text\footnote{{this is {\it one} tiny note\index{note}!}}
>
> ... and match the entire footnote with search regex for \\footnote\{\
> {.+\}\}
>
>
> Is this save? Or are there unwanted side-effects when using \footnote
> {{ ... }} ?
>
> Steffen
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \indenting[next] and math => no vertical space before the formula

2008-04-24 Thread Mikael Persson
Dear all,

I have a problem with \indenting[next] combined with math formulas.
Look at the example below. The space between the text above the
formula and the formula is way to small. This goes away if I change
next to for example yes.

Btw, this happens on my TeXLive 2007 on ubuntu at home, my ConTeXt
minimal from 2007-04-03 at work and on live.contextgarden.net (with
pdfTeX but not LuaTeX).

Do I misuse the indenting macros?

Thanks, Micke P

% test file
\setupindenting[yes,small]
\indenting[next]

\starttext
Hello World! This is just some dumb text to show the problem.
\startformula
a=b
\stopformula
Goodbye World! The space below the formula is OK.
\stoptext
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \indenting[next] and math => no vertical space before the formula

2008-04-24 Thread Mikael Persson
Thank you Wolfgang, Aditya and Hans for your kind answers.

Today the new ubuntu was released, and I did upgrade. That was not too smart:

With the newer TeXLive in ubuntu 8.04 came an updated ConTeXt which
gave me the problem explained in
http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html
again.

Since I am finishing my PhD thesis and really want to use the
utopia+fourier fonts, I downgraded to an old ConTeXt minimal for now.
I have not managed to get Wolfgang's solution to work (just tried to
copy that definition to my file, and that did not change the vertical
space. I will try to make the change in core-mat.tex now). However,
some questions remain:

1) I also tried the new context minimal with LuaTeX  (to see if it
worked better there) and found out that the fourier fonts are not
included in the minimals anymore. Are there any plans to include them?
Or to make some kind of package with these and other nice free fonts?

2) Will the problem from
http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html
go away in the near future (of new versions)? From the answers to that
question I did not really get if the problem was a big one or not.

Best Regards, Micke P

PS I am impressed by the speed of LuaTeX. It compiled my document in
~20s instead of 1-2 minutes.

On Thu, Apr 24, 2008 at 7:28 PM, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Aditya Mahajan wrote:
>
>  > Hans, if you agree with Wolfgang's fix, I think it should be included in
>  > core-mat.
>
>  i just wait till you send me a core-mat with fixes .. fixing whitespace
>  is always a bit tricky ... test with/without whitespace as well as with
>  grids
>
>  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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \indenting[next] and math => no vertical space before the formula

2008-04-24 Thread Mikael Persson
First, thank you Wolfgang, I tried to change it in the core-mat.tex
and it looks great now!

>  > 1) I also tried the new context minimal with LuaTeX  (to see if it
>  > worked better there) and found out that the fourier fonts are not
>  > included in the minimals anymore. Are there any plans to include them?
>  > Or to make some kind of package with these and other nice free fonts?
>
>  mojca will look into it (out of reach, mail etc now) since it came up
>  last week

sounds great!

>
>  > 2) Will the problem from
>  > http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html
>  > go away in the near future (of new versions)? From the answers to that
>  > question I did not really get if the problem was a big one or not.
>
>  depends on who wants to fix it -)
>

I don't know what to do (and I am not a programmer), but if there is
some monkey-see-monkey-do work, I am happy to help.

>
>  > PS I am impressed by the speed of LuaTeX. It compiled my document in
>  > ~20s instead of 1-2 minutes.
>
>  Due to mplib or in general? Some parts of mkiv can still be sped up,
>  e.g. xml processing, but there's not that much more to gain in font
>  handling (that is ... we're playing with runtime mp fonts and there we
>  can gain a lot when the new img related features show up). Also, some
>  mechanisms will be reimplemented and  as such be sped up.

Hm, I hoped you would tell me why ;)
The document is a math document with a lot of references, 5 different
bibliographies. But no MetaPost graphics, just plain text + formulas.
It is about 100 pages at the moment. Could it maybe be the fact that I
am changing font? With LuaTeX I was using the lm fonts. I have a
feeling it takes a bit longer to load other fonts, but that might just
be a feeling from what is written in the terminal?

Micke P
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \indenting[next] and math => no vertical space before the formula

2008-04-28 Thread Mikael Persson
Hello again,

* snip *
>
>  I could reproduce the result and have also a fix but I don't know what
>  the correct
>  reults should be and other people like Aditya should decide if it makes sense
>  to change the current behaviour.
>
>  \def\startdisplaymath
>   {\ifgridsnapping
>  \beforedisplayspace
>  \snapmathtogrid\vbox
* snip *
>  Wolfgang

This fix seems not to solve the problem entirely. With this fix
applied, If one now put a formula inside an enumeration one gets
"double" space before the formula. This is a test file that shows the
problem:

%%% Test file
\setupindenting[yes,small]
\indenting[next]

\def\testtext{This is just some text so we see better what happens.}

\def\testexpr{%
\par
\testtext
\startformula
f(x)= \sin(x)
\stopformula
\testtext
\par
}

\defineenumeration[example]
[text=Example,
location=serried,
width=fit,
distance=0.5em,
way=bysection,
]

\starttext
\testexpr % OK if fix is applied, otherwise to little space before the formula
\startexample
\testexpr % Too much space before the formula if the fix is applied,
otherwise OK.
\stopexample

\stoptext

%%% Stop testfile

Best regards, Micke P

PS Hans, I save the timing testing for next time I try LuaTeX.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] minimal example for Cyrillic

2008-04-29 Thread Mikael Persson
On Tue, Apr 29, 2008 at 12:22 PM, Gour <[EMAIL PROTECTED]> wrote:
> > "Wolfgang" == <[EMAIL PROTECTED]> writes:
>
>  Wolfgang> You could also write
>
>  Wolfgang> % engine=xetex
>
>  Wolfgang> or
>
>  Wolfgang> texexec --xtx myfile
>
>  Thanks. I know about that and checked that it works with both xetex and
>  luatex, although I'm mostly interested in luatex.
>
>  Wolfgang> As Hraban told you need a font with the symbols.
>
>  Right. Therefore it would be nice to have working example on wiki.

Gour,

Indeed. I was the one creating that page. This was before XeTeX/LuaTeX
became popular. I then installed the cm-super fonts where cyrillic
letters are available and used them more or less as is explained
there.

Please update it with the current example. I think everybody agree
that the solution from this thread is the way to go.

Best regards, Micke P
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] French typesetting?

2008-04-29 Thread Mikael Persson
Hi,

maybe this is what you look for?

http://modules.contextgarden.net/t-french

Best regards, Micke P

On Tue, Apr 29, 2008 at 6:40 PM, Oliv <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  I'm new with ConTeXt. However, during my University years, I frequently
>  used LaTeX.
>
>  As I'm mostly writing in French, I'd like to know how to configure
>  ConTeXt for the French typesetting.
>
>  I've already tried the \mainlanguage [fr] switch but this doesn't seem
>  to be enough. For example, it does not insert automatically a small
>  space before the !?: punctuation symbols.
>
>  So I'm looking for something more complete, like the Babel French or
>  French LE packages worked with LaTeX.
>
>  Thanks in advance for your help!
>
>  Oliv
>  
> ___
>  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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \indenting[next] and math => no vertical space before the formula

2008-04-30 Thread Mikael Persson
On Tue, Apr 29, 2008 at 6:49 AM, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
> On Mon, 28 Apr 2008, Mikael Persson wrote:
>
>  > Hello again,
>  >
>  > * snip *
>  >>
>  >>  I could reproduce the result and have also a fix but I don't know what
>  >>  the correct
>  >>  reults should be and other people like Aditya should decide if it makes 
> sense
>  >>  to change the current behaviour.
>  >>
>  >>  \def\startdisplaymath
>  >>   {\ifgridsnapping
>  >>  \beforedisplayspace
>  >>  \snapmathtogrid\vbox
>  > * snip *
>  >>  Wolfgang
>  >
>  > This fix seems not to solve the problem entirely. With this fix
>  > applied, If one now put a formula inside an enumeration one gets
>  > "double" space before the formula. This is a test file that shows the
>  > problem:
>
>  This is basically because in enumerations indenting is set to never.
>
>  You can see the same affect with
>
>  \setupindenting[no]
>  \testtext
>
>  One possible fix is to add
>
>  indenting=(reset|next|first) %default is never
>
>  to the \setupenumeration command. For example
>
>
>  > \defineenumeration[example]
>  >[text=Example,
>  >location=serried,
>  >width=fit,
>   indenting=reset, %%<<< Add This
>
> >distance=0.5em,
>  >   way=bysection,
>  >]
>
>  Another is to change \startdisplaymath to
>
>
>  \def\startdisplaymath
>{\ifgridsnapping
>   \beforedisplayspace
>   \snapmathtogrid\vbox
>
>   \bgroup
>   \informulatrue
>  %\forgetall % breaks side floats
> \else
>   \bgroup
>   \parskip\formulaparskip % ! !
>   \informulatrue
>  %\forgetall % otherwise backgrounds fail
>   \ifdim\lastskip<\zeropoint\else
> \par
> \ifvmode \ifdim\parskip>\zeropoint\relax
>   \whitespace \vskip-\parskip % kind of forces and cancels again
> \fi \fi
>   \fi
>   \doif\displaygridcorrection{-\v!top}{\kern-\strutht}% new, currently 
> only option/default
>   \beforedisplayspace
>   \par
>   \ifvmode \ifdim\parskip>\zeropoint\relax \else
>
>\ifindentfirstparagraph
>   \verticalstrut
>   \vskip-\struttotal
>   \vskip-\baselineskip
> \fi\fi
>   \fi
> \fi
> $$\setdisplaydimensions
> \setpredisplaysize\lastlinewidth
> \startinnermath}
>
>  But this is getting ugly.
>
>  Aditya
>

Thank you Aditya, but I don't get that to work. Both with

ConTeXt  ver: 2007.04.03 13:01 MKII  fmt: 2008.4.24  int:
english/english (with the fix earlier in this thread)
and
ConTeXt  ver: 2007.09.28 16:52 MKII  fmt: 2008.4.24  int:
english/english (which is the one from new ubuntu, without the fix)

this fails with the following error msg:

%% Start error msg
! Illegal unit of measure (pt inserted).

   \chardef
\@@in:reset ...rue \parindent \zerocount \chardef
  \indentingtoggle \zerocount
\next1 #1,->\docomplexsetupindentingB {#1}
  \doprocesscommaitem
\doprocesscommalist ...item \gobbleoneargument #1,
  ]\relax \global \advance \...
 ...ndenting ]\docomplexsetupindentingB
  \checkeverypar \ifindentfi...

\firstofoneargument #1->#1

...
l.29 \testexpr
   % Too much space before the formula if the fix is applied,
?
%% Stop error msg

The file that gives that error is:

%% Begin file
\setupindenting[yes,small]
\indenting[next]

\def\testtext{This is just some text so we see better what happens.}

\def\testexpr{%
\par
\testtext
\startformula
f(x)= \sin(x)
\stopformula
\testtext
\par
}

\defineenumeration[example]
   [text=Example,
   location=serried,
   width=fit,
   indenting=reset,
   distance=0.5em,
   way=bysection,
   ]

\starttext
\testexpr % OK if fix is applied, otherwise to little space before the
formula
\startexample
\testexpr % Too much space before the formula if the fix is applied,
otherwise OK.
\stopexample

\stoptext
%% End file

Best regards, Micke P
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \indenting[next] and math => no vertical space before the formula

2008-04-30 Thread Mikael Persson
On Wed, Apr 30, 2008 at 9:33 AM, Wolfgang Schuster
<[EMAIL PROTECTED]> wrote:
> > Thank you Aditya, but I don't get that to work. Both with
>  >
>  > ConTeXt  ver: 2007.04.03 13:01 MKII  fmt: 2008.4.24  int:
>  > english/english (with the fix earlier in this thread)
>  > and
>  > ConTeXt  ver: 2007.09.28 16:52 MKII  fmt: 2008.4.24  int:
>  > english/english (which is the one from new ubuntu, without the fix)
>
>  Update your ConTeXt istallation, both systems use old versions.
>
>  Wolfgang

I wish I could. I cant even run the new version from ubuntu, since
there is some problem with the fourier fonts, explained in an earlier
mail in this thread (and also in an earlier post:
http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html
)

And new minimals seem not to include the fourier fonts.

If I set indenting=next (or first) in the enumeration, the file compiles...

Sorry for "complaining" about old versions of ConTeXt. I am finishing
my PhD thesis, and have not found any nice combinations of text and
math fonts in the new minimals. (I am not too fond of the lm fonts).
If you have a tip about such fonts, please tell me :)

Micke P
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \indenting[next] and math => no vertical space before the formula

2008-04-30 Thread Mikael Persson
On Wed, Apr 30, 2008 at 7:02 PM, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
>
> On Wed, 30 Apr 2008, Mikael Persson wrote:
>
>  > On Tue, Apr 29, 2008 at 6:49 AM, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
>  >> On Mon, 28 Apr 2008, Mikael Persson wrote:
>  >>
>  >> > Hello again,
>  >> >
>  >> > * snip *
>  >> >>
>  >> >>  I could reproduce the result and have also a fix but I don't know what
>  >> >>  the correct
>  >> >>  reults should be and other people like Aditya should decide if it 
> makes sense
>  >> >>  to change the current behaviour.
>  >> >>
>  >> >>  \def\startdisplaymath
>  >> >>   {\ifgridsnapping
>  >> >>  \beforedisplayspace
>  >> >>  \snapmathtogrid\vbox
>  >> > * snip *
>  >> >>  Wolfgang
>  >> >
>  >> > This fix seems not to solve the problem entirely. With this fix
>  >> > applied, If one now put a formula inside an enumeration one gets
>  >> > "double" space before the formula. This is a test file that shows the
>  >> > problem:
>  >>
>  >>  This is basically because in enumerations indenting is set to never.
>  >>
>  >>  You can see the same affect with
>  >>
>  >>  \setupindenting[no]
>  >>  \testtext
>  >>
>  >>  One possible fix is to add
>  >>
>  >>  indenting=(reset|next|first) %default is never
>  >>
>  >>  to the \setupenumeration command. For example
>  >>
>  >>
>  >> > \defineenumeration[example]
>  >> >[text=Example,
>  >> >location=serried,
>  >> >width=fit,
>  >>   indenting=reset, %%<<< Add This
>  >>
>  >>>distance=0.5em,
>  >> >   way=bysection,
>  >> >]
>  >>
>  >>  Another is to change \startdisplaymath to
>  >>
>  >>
>  >>  \def\startdisplaymath
>  >>{\ifgridsnapping
>  >>   \beforedisplayspace
>  >>   \snapmathtogrid\vbox
>  >>
>  >>   \bgroup
>  >>   \informulatrue
>  >>  %\forgetall % breaks side floats
>  >> \else
>  >>   \bgroup
>  >>   \parskip\formulaparskip % ! !
>  >>   \informulatrue
>  >>  %\forgetall % otherwise backgrounds fail
>  >>   \ifdim\lastskip<\zeropoint\else
>  >> \par
>  >> \ifvmode \ifdim\parskip>\zeropoint\relax
>  >>   \whitespace \vskip-\parskip % kind of forces and cancels again
>  >> \fi \fi
>  >>   \fi
>  >>   \doif\displaygridcorrection{-\v!top}{\kern-\strutht}% new, 
> currently only option/default
>  >>   \beforedisplayspace
>  >>   \par
>  >>   \ifvmode \ifdim\parskip>\zeropoint\relax \else
>  >>
>  >>\ifindentfirstparagraph
>  >>   \verticalstrut
>  >>   \vskip-\struttotal
>  >>   \vskip-\baselineskip
>  >> \fi\fi
>  >>   \fi
>  >> \fi
>  >> $$\setdisplaydimensions
>  >> \setpredisplaysize\lastlinewidth
>  >> \startinnermath}
>  >>
>  >>  But this is getting ugly.
>  >>
>  >>  Aditya
>  >>
>  >
>  > Thank you Aditya, but I don't get that to work. Both with
>  >
>  > ConTeXt  ver: 2007.04.03 13:01 MKII  fmt: 2008.4.24  int:
>  > english/english (with the fix earlier in this thread)
>  > and
>  > ConTeXt  ver: 2007.09.28 16:52 MKII  fmt: 2008.4.24  int:
>  > english/english (which is the one from new ubuntu, without the fix)
>  >
>  > this fails with the following error msg:
>  >
>  > %% Start error msg
>  > ! Illegal unit of measure (pt inserted).
>  > 
>  >   \chardef
>  > \@@in:reset ...rue \parindent \zerocount \chardef
>  >  \indentingtoggle 
> \zerocount
>  > \next1 #1,->\docomplexsetupindentingB {#1}
>  >  \doprocesscommaitem
>  > \doprocesscommalist ...item \gobbleoneargument #1,
>  >  ]\relax \global \advance 
> \...
>  >  ...ndenting ]\docomplexsetupindentingB
>  >  \checkeverypar 
> \ifindentfi...
>  >
>  > \firstofoneargument #1->#1
>  >
>
>  An old bug (more than two month old :)
>
>  Also add this
>
>  \unprotect
>  \defineindentingmethod [\v!reset] {\indentfirstparagraphtrue
> \parindent\zeropoint%AM was \zerocount
> \chardef\indentingtoggle\zerocount}
>  \protect
>  Aditya

Thank you Aditya (and also thank you Wolfgang!) Your help is really appreciated!

Micke P
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] no star in itemize with luatex

2008-08-27 Thread Mikael Persson
Hello,

running the file

%%%
\starttext
\startitemize[3]
\item Hello world!
\stopitemize
\stoptext
%%%

in luatex, I did expect to get a star and then Hello world! However, I
got something like \perp instead of the star.

It works with pdftex. I also tried with some other fonts with same
failing result.

I run the latest minimal context and also tried this at the
contextgarden with the same result.

Any solutions around?

Best wishes, Mikael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] no star in itemize with luatex

2008-08-27 Thread Mikael Persson
Thank you very much Aditya!

Best regards, Mikael

On Wed, Aug 27, 2008 at 1:28 AM, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
> On Wed, 27 Aug 2008, Mikael Persson wrote:
>
>> Hello,
>>
>> running the file
>>
>> %%%
>> \starttext
>> \startitemize[3]
>> \item Hello world!
>> \stopitemize
>> \stoptext
>> %%%
>>
>> in luatex, I did expect to get a star and then Hello world! However, I
>> got something like \perp instead of the star.
>>
>> It works with pdftex. I also tried with some other fonts with same
>> failing result.
>>
>> I run the latest minimal context and also tried this at the
>> contextgarden with the same result.
>
> This is a bug in math-ini.lua Line 407 should read
>
> [0x22C6] = { "mi", 0x3F }, -- star
>
> "mi" instead of "sy". Make this change are regenerate the formats.
>
>> Any solutions around?
>
> Hans, can you correct this in the core.
>
> Aditya
> ___
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] math font size in captions (and other places)

2008-09-24 Thread Mikael Persson
Dear all,

I want small caption texts in a document. However, neither of the
following two alternatives work:

%
%\setupcaptions[style=small]
\setupcaptions[style=\tfx]

\starttext
\placefigure[here][none]{Some math $x=y$}{Dummy figure}
\stoptext
%

In both cases the text is small, but math font is not changed. I can
solve this by doing a \switchtobodyfont in the caption, but I'd like
to do it only once and for all. I guess I have the same problem in all
environments where there is a style= parameter. (For now, I also would
like to set it in \setupmarginblocks.

I've tested this both on mkii and mkiv and with updated (minimal) ConTeXt.

Best regards, Mikael Persson

PS Any progress in getting the fourier (utopia+fourier) fonts to work
in the new minimals? I miss that combination of fonts. I did not get
the reason of why it is not included anymore.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] math font size in captions (and other places)

2008-09-25 Thread Mikael Persson
Thank you Taco,

I did put \switchtobodyfont in the style argument and it worked like a charm.

Micke P

On Thu, Sep 25, 2008 at 10:01 AM, Taco Hoekwater <[EMAIL PROTECTED]> wrote:
>
>
> Mikael Persson wrote:
>>
>> In both cases the text is small, but math font is not changed. I can
>> solve this by doing a \switchtobodyfont in the caption,
>
> You can put the \switchtobodyfont in the style argument:
>
>   \setupcaptions[style={\switchtobodyfont[small]}]
>
> or you could redefine 'small':
>
>   \def\bodyfontsmall{\switchtobodyfont[small]}
>   \definealternativestyle [small] [\bodyfontsmall] []
>
> (untested)
>
> If redefinition doesn't work, you have to define a new alternative
> style
>
>   \definealternativestyle [MySmall] [\bodyfontsmall] []
>
> but then you would have to go through the style changing
> "style=small" to "style=MySmall" etc.
>
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] index in swedish doc (mkiv)

2008-09-26 Thread Mikael Persson
Hi all,
I want to have an index in a swedish document, but when I add it I get
"unknown" instead of the "letter heads". Minimal file:


\mainlanguage[sv]
\starttext
Test\index{test}
\placeindex
\stoptext


Just uncomment the \mainlanguage[sv] and you will get a "t" instead of
"unknown" as expected.

If there is something that has to be added when it comes to swedish
indices I am willing to do that.

By the way, this problem does only appear in mkiv, in mkii it works as
it should.

Best regards, Mikael Persson
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Formatting TOC

2008-09-26 Thread Mikael Persson
Dear Diego,

Try

\def\chaplistcom#1{Chapter~#1}
\setuplist[chapter][
 numbercommand=\chaplistcom,
]

Best regards, Mikael


On Fri, Sep 26, 2008 at 1:14 PM, Diego Depaoli <[EMAIL PROTECTED]> wrote:
> Hi all,
> what is the magic option in \setuplist to put a word before the
> chapter's number like
> Chapter 1 First chapter
> instead of
> 1 First chapter
> ?
>
> Many thanks
> --
> Diego Depaoli
> ___
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Experience on writing a thesis with MKIV

2008-09-28 Thread Mikael Persson
Wow, that looks very nice!

I hope you do not feel I am stealing your thread now (I do not mean
to). I did also finish my thesis (in mathematics) recently, written
"in ConTeXt". For this I had a lot of help with your doc "Using
\startalign and friends", thank you.

The thesis is available at

http://www.math.chalmers.se/~mickep/mp-thesis-final.pdf

and a short presentation of the third paper

http://www.math.chalmers.se/~mickep/pres.pdf

Some comments:
* At our university the thesis should be printed on the (not really
standard) G5 paper. No problem in defining and using it with ConTeXt.
* The bibliography uses Taco's module. I am happy of being able to
have different bibliographies in one file.
* As a mathematician I was a bit tired of the computer modern fonts (I
really like them, but I see them to often), so I decided to go with
the utopia/fourier fonts. This forced me to work with mkii, since I
did not get these fonts to work with mkiv (This is still a problem, I
am not sure how to go on with it for future documents).
* Typesetting math worked very smoothly. There is one place where I
hade to add some negative vertical space (I could not reproduce this
in a minimal file).
* I'm very happy with the way MetaPost and ConTeXt work together.
* The presentation is inspired by Thomas A. Schmitz' files at
http://www.tug.org/pracjourn/2006-2/schmitz/ (thanks!)
* The presentation uses Wolfram's Mathematica fonts which I find being
very clear.

I will happily continue to use ConTeXt in future projects.

/Micke P

On Sat, Sep 27, 2008 at 6:35 PM, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> I finished my thesis, writing both my thesis and my presentation using
> ConTeXt.
>
> Thesis: http://www.eecs.umich.edu/~adityam/publications/thesis/thesis.pdf
>
> Source:
> http://www.eecs.umich.edu/~adityam/publications/thesis/thesis.tar.gz
>
> Presentation:
> http://www.eecs.umich.edu/~adityam/publications/thesis/thesis-presentation.pdf
>
> Overall it was a pleasant experience, but there were some difficulties. I
> am summarizing my experience here. Hopefully, others will find it useful.
>
> * Layout and Formatting: It was extremely simple to set up the layout and
> formatting according to the thesis specifications. Due to the ease of
> changing formatting, I experimented quite a bit with the formatting before
> settling down to what is in the thesis (The school wanted "nothing
> fancy").
>
> * Organizing large projects: The product-component structure made it easy
> to work on single chapters. However, I could not get correct numbering for
> the components (If I compiled chapter-02, it got numbered 1). In the end,
> I was just compiling the whole thesis at the time, since it was pretty
> fast (~10 sec).
>
> * Fonts: Using different fonts with MKIV was really easy. For the
> presentation, I did have some trouble in getting Euler to work with the
> minimals. Hopefully, this will be corrected soon.
>
> * Math: The math alignments worked very nicely, but I had to do a lot of
> manual tweaking at a lot of places. Also, equations seem to like to have a
> tendency of starting on a new page. I tried changing penalties for
> predisplay and postdisplay (which are set to zero), but it invariably led
> to bad page breaks at other places.
>
>  At some places, the equation overlapped with the previous material. I am
> not sure what was causing this (medium interline spacing, wrong
> calculation of the width of the previous line, or something else). In the
> end, I simply put a few manual \break[small] here and there.
>
>  Being able to write unicode math made simplified reading math markup.
>
> * Metapost: TeX-MP interaction is fast and easy. However, debugging
> metapost errors is difficult because context does not stop compiling on
> encountering a metapost error.
>
> * Bibliography. For a large part, the bib module was very easy. In the
> end, there were a few glitches with the formatting of the bibliography
> (too title space between entries) which I had to manually correct. (Look
> for \help inside the bbl file).
>
>  The bbl file sorted authors with multiple entries incorrectly. If I had
> authors with four publications in a year, say 2000, the came out as 2000d,
> 2000c, 2000b, 2000a. I wanted 2000a, 2000b, 2000c, and 2000d, so in the
> end I just edited the bbl file by hand.
>
>  There was also problem with maybe year. If I had 2000a and 2000b in the
> bib file, but only referred to 2000b in the thesis, the year came out as
> 2000b rather than 2000. For this also, I edited the bbl file by hand.
>
>
> Overall, ConTeXt made writing the thesis fairly easy. I mean the
> typesetting part of it. For those who are wondering, ConTeXt does not help
> with the content of the thesis :-) I would like to thank Hans and Taco for
> providing ConTeXt and everyone on the mailing list for answering my
> various questions.
>
>
> Aditya
> ___
> If your qu

Re: [NTG-context] index in swedish doc (mkiv)

2008-09-28 Thread Mikael Persson
On Sun, Sep 28, 2008 at 8:27 PM, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Mikael Persson wrote:
>> Hi all,
>> I want to have an index in a swedish document, but when I add it I get
>> "unknown" instead of the "letter heads". Minimal file:
>>
>> 
>> \mainlanguage[sv]
>> \starttext
>> Test\index{test}
>> \placeindex
>> \stoptext
>> 
>>
>> Just uncomment the \mainlanguage[sv] and you will get a "t" instead of
>> "unknown" as expected.
>>
>> If there is something that has to be added when it comes to swedish
>> indices I am willing to do that.
>>
>> By the way, this problem does only appear in mkiv, in mkii it works as
>> it should.
>
> take a look at sort-lan.lua ... no swedish there yet
>

Hi, I had a look, and it seems it is exactly the same as the finish
one is done in that file.

Mikael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Experience on writing a thesis with MKIV

2008-09-28 Thread Mikael Persson
On Sun, Sep 28, 2008 at 8:23 PM, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Mikael Persson wrote:
>
>> The thesis is available at
>
> maybe we should collect such links on a wiki page

good idea

>> http://www.math.chalmers.se/~mickep/mp-thesis-final.pdf
>>
>> and a short presentation of the third paper
>>
>> http://www.math.chalmers.se/~mickep/pres.pdf
>
>> Some comments:
>> * At our university the thesis should be printed on the (not really
>> standard) G5 paper. No problem in defining and using it with ConTeXt.
>
> just curious ... is it used more often or just at your universiy; it's
> no problem to add an extra papersize definition

I had no idea about this, so I had a look at wikipedia, which says
"... G5 (169x239 mm) and E5 (155x220 mm) are popular in Sweden for
printing dissertations [1], but the other formats have not turned out
to be particularly useful in practice and they have not caught on
internationally."

This is taken from http://en.wikipedia.org/wiki/Paper_size

Personally, I'm not sure I will ever come across it again, but if it
doesn't slow down anything I see no reason not to have it there.

>> * The bibliography uses Taco's module. I am happy of being able to
>> have different bibliographies in one file.
>> * As a mathematician I was a bit tired of the computer modern fonts (I
>> really like them, but I see them to often), so I decided to go with
>> the utopia/fourier fonts. This forced me to work with mkii, since I
>> did not get these fonts to work with mkiv (This is still a problem, I
>> am not sure how to go on with it for future documents).
>
> looks quite nice, i also like the font size

Thanks. What about getting these fonts to work in mkiv? Must there be
some change in the fonts? Some files in ConTeXt? (they were perfectly
working in older mkii)

>> * Typesetting math worked very smoothly. There is one place where I
>> hade to add some negative vertical space (I could not reproduce this
>> in a minimal file).
>> * I'm very happy with the way MetaPost and ConTeXt work together.
>> * The presentation is inspired by Thomas A. Schmitz' files at
>> http://www.tug.org/pracjourn/2006-2/schmitz/ (thanks!)
>  >
>> * The presentation uses Wolfram's Mathematica fonts which I find being
>> very clear.
>
> looks nice indeed; are there open type variants of those?

>From my university installation of these fonts they are only available
as type1 fonts (latest version of Mathematica). I found no .otf files
in the Mathematica tree at all.

Mikael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Experience on writing a thesis with MKIV

2008-09-29 Thread Mikael Persson
On Sun, Sep 28, 2008 at 8:23 PM, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Mikael Persson wrote:
>
>> The thesis is available at
>
> maybe we should collect such links on a wiki page
>
>> http://www.math.chalmers.se/~mickep/mp-thesis-final.pdf
>>
>> and a short presentation of the third paper
>>
>> http://www.math.chalmers.se/~mickep/pres.pdf
>
>> Some comments:
>> * At our university the thesis should be printed on the (not really
>> standard) G5 paper. No problem in defining and using it with ConTeXt.
>
> just curious ... is it used more often or just at your universiy; it's
> no problem to add an extra papersize definition
>
>> * The bibliography uses Taco's module. I am happy of being able to
>> have different bibliographies in one file.
>> * As a mathematician I was a bit tired of the computer modern fonts (I
>> really like them, but I see them to often), so I decided to go with
>> the utopia/fourier fonts. This forced me to work with mkii, since I
>> did not get these fonts to work with mkiv (This is still a problem, I
>> am not sure how to go on with it for future documents).
>
> looks quite nice, i also like the font size
>
>> * Typesetting math worked very smoothly. There is one place where I
>> hade to add some negative vertical space (I could not reproduce this
>> in a minimal file).
>> * I'm very happy with the way MetaPost and ConTeXt work together.
>> * The presentation is inspired by Thomas A. Schmitz' files at
>> http://www.tug.org/pracjourn/2006-2/schmitz/ (thanks!)
>  >
>> * The presentation uses Wolfram's Mathematica fonts which I find being
>> very clear.
>
> looks nice indeed; are there open type variants of those?
>

By the way, the Mathematica fonts can be downloaded from (type1 and ttf)
http://support.wolfram.com/mathematica/systems/windows/general/latestfonts.en.html
I'm not sure if that is helpful for anyone, since there are no metric
files or whatever (they go with the TeX tree that is shipped with
Mathematica)

Mikael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Utopia and Fourier fonts (was: Experience on writing a thesis with MKIV)

2008-09-29 Thread Mikael Persson
On Sun, Sep 28, 2008 at 9:34 PM, Wolfgang Schuster
<[EMAIL PROTECTED]> wrote:
>
> Am 28.09.2008 um 21:21 schrieb Aditya Mahajan:
>
> Some comments:
> * As a mathematician I was a bit tired of the computer modern
> fonts (I
> really like them, but I see them to often), so I decided to go with
> the utopia/fourier fonts. This forced me to work with mkii, since I
> did not get these fonts to work with mkiv (This is still a
> problem, I
> am not sure how to go on with it for future documents).

 looks quite nice, i also like the font size
>>>
>>> Thanks. What about getting these fonts to work in mkiv? Must there be
>>> some change in the fonts? Some files in ConTeXt? (they were perfectly
>>> working in older mkii)
>>
>> Fourier and Uptopia should work with mkiv. I will check why they are
>> not
>> working at present.
>
> Utopia use "encoding-filename" and MkIV needs the "filename" to load
> the fonts.
>
> Here is a complete typescript for utopia (without fake slanted and
> caps style).
>
> \starttypescript [serif] [utopia]
> \setups[font:fallback:serif]
> \definefontsynonym [Serif]   [Utopia-Regular]
> \definefontsynonym [SerifItalic] [Utopia-Italic]
> \definefontsynonym [SerifBold]   [Utopia-Bold]
> \definefontsynonym [SerifBoldItalic] [Utopia-BoldItalic]
> \stoptypescript
>
> \starttypescript [serif] [utopia]
> \definefontsynonym [Utopia-Regular][file:putr8a]
> [features=default]
> \definefontsynonym [Utopia-Italic] [file:putri8a]
> [features=default]
> \definefontsynonym [Utopia-Bold]   [file:putb8a]
> [features=default]
> \definefontsynonym [Utopia-BoldItalic] [file:putbi8a]
> [features=default]
> \stoptypescript
>
> \starttypescript [utopia]
> \definetypeface [\typescriptone] [rm] [serif] [utopia] [default]
> \stoptypescript
>
> \endinput
>
> Wolfgang

Thank you Wolfgang, but this does not work for me with latest
minimals. (I have downloaded utopia(+fourier) and they show up in
mkii.) I put your lines in a file and add
\setupbodyfont[utopia][ec/8r/...] %tried several and also without this last []
\starttext
test
\stoptext

LuaTeX just compiles and replaces these fonts by lm.

luatools putr8a.pfb gives the resulting location of the pfb file so it
actually finds the font.

Do I misuse it?

Mikael

>
> ___
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Utopia and Fourier fonts

2008-09-29 Thread Mikael Persson
On Mon, Sep 29, 2008 at 11:56 AM, Wolfgang Schuster
<[EMAIL PROTECTED]> wrote:
>
> Am 29.09.2008 um 11:31 schrieb Mikael Persson:
>
>> On Sun, Sep 28, 2008 at 9:34 PM, Wolfgang Schuster
>> <[EMAIL PROTECTED]> wrote:
>>>
>>> Am 28.09.2008 um 21:21 schrieb Aditya Mahajan:
>>>
>>>>>>> Some comments:
>>>>>>> * As a mathematician I was a bit tired of the computer modern
>>>>>>> fonts (I
>>>>>>> really like them, but I see them to often), so I decided to go
>>>>>>> with
>>>>>>> the utopia/fourier fonts. This forced me to work with mkii,
>>>>>>> since I
>>>>>>> did not get these fonts to work with mkiv (This is still a
>>>>>>> problem, I
>>>>>>> am not sure how to go on with it for future documents).
>>>>>>
>>>>>> looks quite nice, i also like the font size
>>>>>
>>>>> Thanks. What about getting these fonts to work in mkiv? Must
>>>>> there be
>>>>> some change in the fonts? Some files in ConTeXt? (they were
>>>>> perfectly
>>>>> working in older mkii)
>>>>
>>>> Fourier and Uptopia should work with mkiv. I will check why they are
>>>> not
>>>> working at present.
>>>
>>> Utopia use "encoding-filename" and MkIV needs the "filename" to load
>>> the fonts.
>>>
>>> Here is a complete typescript for utopia (without fake slanted and
>>> caps style).
>>>
>>> \starttypescript [serif] [utopia]
>>>\setups[font:fallback:serif]
>>>\definefontsynonym [Serif]   [Utopia-Regular]
>>>\definefontsynonym [SerifItalic] [Utopia-Italic]
>>>\definefontsynonym [SerifBold]   [Utopia-Bold]
>>>\definefontsynonym [SerifBoldItalic] [Utopia-BoldItalic]
>>> \stoptypescript
>>>
>>> \starttypescript [serif] [utopia]
>>>\definefontsynonym [Utopia-Regular][file:putr8a]
>>> [features=default]
>>>\definefontsynonym [Utopia-Italic] [file:putri8a]
>>> [features=default]
>>>\definefontsynonym [Utopia-Bold]   [file:putb8a]
>>> [features=default]
>>>\definefontsynonym [Utopia-BoldItalic] [file:putbi8a]
>>> [features=default]
>>> \stoptypescript
>>>
>>> \starttypescript [utopia]
>>>\definetypeface [\typescriptone] [rm] [serif] [utopia] [default]
>>> \stoptypescript
>>>
>>> \endinput
>>>
>>> Wolfgang
>>
>> Thank you Wolfgang, but this does not work for me with latest
>> minimals. (I have downloaded utopia(+fourier) and they show up in
>> mkii.) I put your lines in a file and add
>> \setupbodyfont[utopia][ec/8r/...] %tried several and also without
>> this last []
>> \starttext
>> test
>> \stoptext
>>
>> LuaTeX just compiles and replaces these fonts by lm.
>>
>> luatools putr8a.pfb gives the resulting location of the pfb file so it
>> actually finds the font.
>>
>> Do I misuse it?
>
> Try my test file (I saved the typescript above in type-utopia.tex).
>
> \usetypescriptfile[type-utopia]
>
> \usetypescript[utopia]
> \setupbodyfont[utopia]
>
> \starttext
>
> \tf ABC abc 123 \par
> \it ABC abc 123 \par
> \bf ABC abc 123 \par
> \bi ABC abc 123 \par
>
> \stoptext
>
> Wolfgang

I'm sorry, but I get this error:
%%%
define font | font with name putr8a is not found
define font | unknown font putr8a, loading aborted
! Font \*utopia12ptrmtfrm*:=file:putr8a*features=default, at 12pt not
loadable: metric data not found or bad.

   \relax
\definefontglobal ...dcsname \lastfontname \relax
  \expandafter \let \expanda...
\xxdododefinefont ...tspec {#4}\newfontidentifier
  \let \localrelativefontsiz...
\fontstrategy ...me \fontclass #2#3#4#5\endcsname
  \tryingfontfalse \fi
 ...yle \fontalternative \fontsize
  \fi \iftryingfont \fontstr...
\synchronizefont ...strategy \the \fontstrategies
  \relax \fi \iftryingfont \...
...
l.4 \setupbodyfont[utopia]
%%%

I'm very confused. I guess it means it is looking for some tfm files.
Some questions:

1) Do one still (with mkiv) need tfm files?
1a) if not, do I need to do anything to "install&qu

Re: [NTG-context] Utopia and Fourier fonts

2008-09-29 Thread Mikael Persson
On Mon, Sep 29, 2008 at 11:56 AM, Wolfgang Schuster
<[EMAIL PROTECTED]> wrote:
>
> Am 29.09.2008 um 11:31 schrieb Mikael Persson:
>
>> On Sun, Sep 28, 2008 at 9:34 PM, Wolfgang Schuster
>> <[EMAIL PROTECTED]> wrote:
>>>
>>> Am 28.09.2008 um 21:21 schrieb Aditya Mahajan:
>>>
>>>>>>> Some comments:
>>>>>>> * As a mathematician I was a bit tired of the computer modern
>>>>>>> fonts (I
>>>>>>> really like them, but I see them to often), so I decided to go
>>>>>>> with
>>>>>>> the utopia/fourier fonts. This forced me to work with mkii,
>>>>>>> since I
>>>>>>> did not get these fonts to work with mkiv (This is still a
>>>>>>> problem, I
>>>>>>> am not sure how to go on with it for future documents).
>>>>>>
>>>>>> looks quite nice, i also like the font size
>>>>>
>>>>> Thanks. What about getting these fonts to work in mkiv? Must
>>>>> there be
>>>>> some change in the fonts? Some files in ConTeXt? (they were
>>>>> perfectly
>>>>> working in older mkii)
>>>>
>>>> Fourier and Uptopia should work with mkiv. I will check why they are
>>>> not
>>>> working at present.
>>>
>>> Utopia use "encoding-filename" and MkIV needs the "filename" to load
>>> the fonts.
>>>
>>> Here is a complete typescript for utopia (without fake slanted and
>>> caps style).
>>>
>>> \starttypescript [serif] [utopia]
>>>\setups[font:fallback:serif]
>>>\definefontsynonym [Serif]   [Utopia-Regular]
>>>\definefontsynonym [SerifItalic] [Utopia-Italic]
>>>\definefontsynonym [SerifBold]   [Utopia-Bold]
>>>\definefontsynonym [SerifBoldItalic] [Utopia-BoldItalic]
>>> \stoptypescript
>>>
>>> \starttypescript [serif] [utopia]
>>>\definefontsynonym [Utopia-Regular][file:putr8a]
>>> [features=default]
>>>\definefontsynonym [Utopia-Italic] [file:putri8a]
>>> [features=default]
>>>\definefontsynonym [Utopia-Bold]   [file:putb8a]
>>> [features=default]
>>>\definefontsynonym [Utopia-BoldItalic] [file:putbi8a]
>>> [features=default]
>>> \stoptypescript
>>>
>>> \starttypescript [utopia]
>>>\definetypeface [\typescriptone] [rm] [serif] [utopia] [default]
>>> \stoptypescript
>>>
>>> \endinput
>>>
>>> Wolfgang
>>
>> Thank you Wolfgang, but this does not work for me with latest
>> minimals. (I have downloaded utopia(+fourier) and they show up in
>> mkii.) I put your lines in a file and add
>> \setupbodyfont[utopia][ec/8r/...] %tried several and also without
>> this last []
>> \starttext
>> test
>> \stoptext
>>
>> LuaTeX just compiles and replaces these fonts by lm.
>>
>> luatools putr8a.pfb gives the resulting location of the pfb file so it
>> actually finds the font.
>>
>> Do I misuse it?
>
> Try my test file (I saved the typescript above in type-utopia.tex).
>
> \usetypescriptfile[type-utopia]
>
> \usetypescript[utopia]
> \setupbodyfont[utopia]
>
> \starttext
>
> \tf ABC abc 123 \par
> \it ABC abc 123 \par
> \bf ABC abc 123 \par
> \bi ABC abc 123 \par
>
> \stoptext
>
> Wolfgang

Mojca did send me a list with the necessary files for fourier+utopia.
I put them in

http://www.math.chalmers.se/~mickep/fourierandutopia.zip

if someone wants to test. I also attach a small (I guess noncomplete)
typescript file type-myfourier.tex (the myfourier not to clash with
something previously defined) and a file ftest.tex which indeed gives
the fourier fonts, but with the error as in
http://www.math.chalmers.se/~mickep/ftest.pdf mentioned in a previous
mail.

I guess this is not the correct way to write typescripts for these
fonts in mkiv, but I dont know how to :(

Best regards, Mikael

PS: Thank you Mojca for giving this list of files and also explain
which of the otf/ttf/type1 files that needs typescripts.


type-myfourier.tex
Description: TeX document


ftest.tex
Description: TeX document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Utopia and Fourier fonts

2008-09-29 Thread Mikael Persson
On Mon, Sep 29, 2008 at 10:22 PM, Wolfgang Schuster
<[EMAIL PROTECTED]> wrote:
>
> Am 29.09.2008 um 20:35 schrieb Mikael Persson:
>
>> On Mon, Sep 29, 2008 at 11:56 AM, Wolfgang Schuster
>> <[EMAIL PROTECTED]> wrote:
>>>
>>> Am 29.09.2008 um 11:31 schrieb Mikael Persson:
>>>
>>>> On Sun, Sep 28, 2008 at 9:34 PM, Wolfgang Schuster
>>>> <[EMAIL PROTECTED]> wrote:
>>>>>
>>>>> Am 28.09.2008 um 21:21 schrieb Aditya Mahajan:
>>>>>
>>>>>>>>> Some comments:
>>>>>>>>> * As a mathematician I was a bit tired of the computer modern
>>>>>>>>> fonts (I
>>>>>>>>> really like them, but I see them to often), so I decided to go
>>>>>>>>> with
>>>>>>>>> the utopia/fourier fonts. This forced me to work with mkii,
>>>>>>>>> since I
>>>>>>>>> did not get these fonts to work with mkiv (This is still a
>>>>>>>>> problem, I
>>>>>>>>> am not sure how to go on with it for future documents).
>>>>>>>>
>>>>>>>> looks quite nice, i also like the font size
>>>>>>>
>>>>>>> Thanks. What about getting these fonts to work in mkiv? Must
>>>>>>> there be
>>>>>>> some change in the fonts? Some files in ConTeXt? (they were
>>>>>>> perfectly
>>>>>>> working in older mkii)
>>>>>>
>>>>>> Fourier and Uptopia should work with mkiv. I will check why they
>>>>>> are
>>>>>> not
>>>>>> working at present.
>>>>>
>>>>> Utopia use "encoding-filename" and MkIV needs the "filename" to
>>>>> load
>>>>> the fonts.
>>>>>
>>>>> Here is a complete typescript for utopia (without fake slanted and
>>>>> caps style).
>>>>>
>>>>> \starttypescript [serif] [utopia]
>>>>>   \setups[font:fallback:serif]
>>>>>   \definefontsynonym [Serif]   [Utopia-Regular]
>>>>>   \definefontsynonym [SerifItalic] [Utopia-Italic]
>>>>>   \definefontsynonym [SerifBold]   [Utopia-Bold]
>>>>>   \definefontsynonym [SerifBoldItalic] [Utopia-BoldItalic]
>>>>> \stoptypescript
>>>>>
>>>>> \starttypescript [serif] [utopia]
>>>>>   \definefontsynonym [Utopia-Regular][file:putr8a]
>>>>> [features=default]
>>>>>   \definefontsynonym [Utopia-Italic] [file:putri8a]
>>>>> [features=default]
>>>>>   \definefontsynonym [Utopia-Bold]   [file:putb8a]
>>>>> [features=default]
>>>>>   \definefontsynonym [Utopia-BoldItalic] [file:putbi8a]
>>>>> [features=default]
>>>>> \stoptypescript
>>>>>
>>>>> \starttypescript [utopia]
>>>>>   \definetypeface [\typescriptone] [rm] [serif] [utopia] [default]
>>>>> \stoptypescript
>>>>>
>>>>> \endinput
>>>>>
>>>>> Wolfgang
>>>>
>>>> Thank you Wolfgang, but this does not work for me with latest
>>>> minimals. (I have downloaded utopia(+fourier) and they show up in
>>>> mkii.) I put your lines in a file and add
>>>> \setupbodyfont[utopia][ec/8r/...] %tried several and also without
>>>> this last []
>>>> \starttext
>>>> test
>>>> \stoptext
>>>>
>>>> LuaTeX just compiles and replaces these fonts by lm.
>>>>
>>>> luatools putr8a.pfb gives the resulting location of the pfb file
>>>> so it
>>>> actually finds the font.
>>>>
>>>> Do I misuse it?
>>>
>>> Try my test file (I saved the typescript above in type-utopia.tex).
>>>
>>> \usetypescriptfile[type-utopia]
>>>
>>> \usetypescript[utopia]
>>> \setupbodyfont[utopia]
>>>
>>> \starttext
>>>
>>> \tf ABC abc 123 \par
>>> \it ABC abc 123 \par
>>> \bf ABC abc 123 \par
>>> \bi ABC abc 123 \par
>>>
>>> \stoptext
>>>
>>> Wolfgang
>>
>> Mojca did send me a list with the necessary files for fourier+utopia.
>> I put them in
>>
>> http://www.ma

Re: [NTG-context] Utopia and Fourier fonts

2008-10-01 Thread Mikael Persson
On Tue, Sep 30, 2008 at 8:43 AM, Mikael Persson <[EMAIL PROTECTED]> wrote:
> On Mon, Sep 29, 2008 at 10:22 PM, Wolfgang Schuster
> <[EMAIL PROTECTED]> wrote:
>>
>> Am 29.09.2008 um 20:35 schrieb Mikael Persson:
>>
>>> On Mon, Sep 29, 2008 at 11:56 AM, Wolfgang Schuster
>>> <[EMAIL PROTECTED]> wrote:
>>>>
>>>> Am 29.09.2008 um 11:31 schrieb Mikael Persson:
>>>>
>>>>> On Sun, Sep 28, 2008 at 9:34 PM, Wolfgang Schuster
>>>>> <[EMAIL PROTECTED]> wrote:
>>>>>>
>>>>>> Am 28.09.2008 um 21:21 schrieb Aditya Mahajan:
>>>>>>
>>>>>>>>>> Some comments:
>>>>>>>>>> * As a mathematician I was a bit tired of the computer modern
>>>>>>>>>> fonts (I
>>>>>>>>>> really like them, but I see them to often), so I decided to go
>>>>>>>>>> with
>>>>>>>>>> the utopia/fourier fonts. This forced me to work with mkii,
>>>>>>>>>> since I
>>>>>>>>>> did not get these fonts to work with mkiv (This is still a
>>>>>>>>>> problem, I
>>>>>>>>>> am not sure how to go on with it for future documents).
>>>>>>>>>
>>>>>>>>> looks quite nice, i also like the font size
>>>>>>>>
>>>>>>>> Thanks. What about getting these fonts to work in mkiv? Must
>>>>>>>> there be
>>>>>>>> some change in the fonts? Some files in ConTeXt? (they were
>>>>>>>> perfectly
>>>>>>>> working in older mkii)
>>>>>>>
>>>>>>> Fourier and Uptopia should work with mkiv. I will check why they
>>>>>>> are
>>>>>>> not
>>>>>>> working at present.
>>>>>>
>>>>>> Utopia use "encoding-filename" and MkIV needs the "filename" to
>>>>>> load
>>>>>> the fonts.
>>>>>>
>>>>>> Here is a complete typescript for utopia (without fake slanted and
>>>>>> caps style).
>>>>>>
>>>>>> \starttypescript [serif] [utopia]
>>>>>>   \setups[font:fallback:serif]
>>>>>>   \definefontsynonym [Serif]   [Utopia-Regular]
>>>>>>   \definefontsynonym [SerifItalic] [Utopia-Italic]
>>>>>>   \definefontsynonym [SerifBold]   [Utopia-Bold]
>>>>>>   \definefontsynonym [SerifBoldItalic] [Utopia-BoldItalic]
>>>>>> \stoptypescript
>>>>>>
>>>>>> \starttypescript [serif] [utopia]
>>>>>>   \definefontsynonym [Utopia-Regular][file:putr8a]
>>>>>> [features=default]
>>>>>>   \definefontsynonym [Utopia-Italic] [file:putri8a]
>>>>>> [features=default]
>>>>>>   \definefontsynonym [Utopia-Bold]   [file:putb8a]
>>>>>> [features=default]
>>>>>>   \definefontsynonym [Utopia-BoldItalic] [file:putbi8a]
>>>>>> [features=default]
>>>>>> \stoptypescript
>>>>>>
>>>>>> \starttypescript [utopia]
>>>>>>   \definetypeface [\typescriptone] [rm] [serif] [utopia] [default]
>>>>>> \stoptypescript
>>>>>>
>>>>>> \endinput
>>>>>>
>>>>>> Wolfgang
>>>>>
>>>>> Thank you Wolfgang, but this does not work for me with latest
>>>>> minimals. (I have downloaded utopia(+fourier) and they show up in
>>>>> mkii.) I put your lines in a file and add
>>>>> \setupbodyfont[utopia][ec/8r/...] %tried several and also without
>>>>> this last []
>>>>> \starttext
>>>>> test
>>>>> \stoptext
>>>>>
>>>>> LuaTeX just compiles and replaces these fonts by lm.
>>>>>
>>>>> luatools putr8a.pfb gives the resulting location of the pfb file
>>>>> so it
>>>>> actually finds the font.
>>>>>
>>>>> Do I misuse it?
>>>>
>>>> Try my test file (I saved the typescript above in type-utopia.tex).
>>>>
>>>> \usetypescriptfile[type-utopia]
>>>>
>>>

Re: [NTG-context] Mini-survey: What do you do with ConTeXt?

2005-11-05 Thread Mikael Persson
Hello

*snip*

" What do you do with ConTeXT?"

I am mostly playing around abit. However, since I work with math it is
mostly something that has to do with math. Some examples:

Slides from a conference talk:
http://hurf.mine.nu/micke/tex/pauli-pres.pdf
Notes to my students:
http://hurf.mine.nu/micke/tex/partikular.pdf
A "second-rental" contract
http://hurf.mine.nu/micke/tex/andrahand.pdf
Some playing with the Mathematica fonts
http://hurf.mine.nu/micke/tex/fultex.pdf
Some sudokus:
http://hurf.mine.nu/micke/tex/sudoku.pdf (with fill-ins)
http://hurf.mine.nu/micke/tex/gp28aug.pdf (with solution steps)
Melodikrysset:
http://hurf.mine.nu/micke/tex/melodikrysset.pdf
A crossword for a friend
http://hurf.mine.nu/micke/tex/kors.pdf
Love letter paper
http://hurf.mine.nu/micke/tex/letterpaper.pdf

OK, that was some examples...

Best regards, Micke P
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Contest for ConTeXt?

2005-11-20 Thread Mikael Persson
On 11/20/05, Otared Kavian <[EMAIL PROTECTED]> wrote:
> On 5 nov. 2005, at 9:03, Mikael Persson wrote:
> > Hello
> >
> > *snip*
> >
> > " What do you do with ConTeXT?"
> >
> > I am mostly playing around abit. However, since I work with math it is
> > mostly something that has to do with math. Some examples:
>
>
>
> Hi Mikael,
>
> I had a look at your nice sudoku example mentioned in your message to
> the thread "Mini survey...", that is:
> http://hurf.mine.nu/micke/tex/sudoku.pdf (with fill-ins)
> http://hurf.mine.nu/micke/tex/gp28aug.pdf (with solution steps)
>
> I saw that there is a distraction contest on the PracTeX journal for
> creating sudokus with TeX, and thought your solution using ConTeXt
> would be a very nice contribution. See
> http://tug.org/pracjourn/2005-4/distract/
>
> Best regards: OK

Hello Otared,

thank you for suggesting this! I am glad you liked the sudokus.
However, the one with solution steps are generated from a python
script (and thus don't qualify for the contest), and the other one is
too simple, I think (+ I have been TeX:ing for more than one year).

Best regards, Micke P
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] beginners manual

2005-11-22 Thread Mikael Persson
I could think of translating to swedish. Depends on how much work it
is and about if it must be done before that or that day. I got pretty
much to do at work...

/Micke P

On 11/21/05, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm going to clean up the beginners manual (at least the source code) so
> i think this s a good moment to pick up the 'translation' thread
>
> So the question is:
>
> - what can go out
> - what should go in
> - what should be updated
>
> as well as:
>
> - who will participate (in translation)
> - how to deal with localization (maybe dedicated language related chapters)
>
> Hans
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] utf8 editor problems

2005-11-24 Thread Mikael Persson
I have also seen this (using SciTE and/or gedit, no difference), but
suddenly it disappeard (without upgrading context). This is not of
much help, except that you now know that you are not alone. I have a
reasonable updated ConTeXt on a TeXLive 2004 installation if that
matters...

Best regards, Micke P

On 11/24/05, Wolfgang Zillig <[EMAIL PROTECTED]> wrote:
>
> hello,
>
> I have a problem which is not directly related to context. When I create
> document in utf-8 I sometimes get "ïz£" (I hope this is displayed
> correctly in the mail clients, (a screen snapshot is attached also))
> printed on a single page (in the pdf). These letters are not displayed
> in my standard text editors (scite and notepad++). Only when I open the
> file in amaya (a xhtml editor) I see these the following letters ""
> and I can delete them.
>
> Does anybody know something about this?
>
> Thanks
>
> Wolfgang
>
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
>
>
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Output PDF version

2005-12-08 Thread Mikael Persson
Hi all,

I just came across a situation where I must produce a pdf that has
version 1.3 (or in worst case 1.4). I did not find anything on
contextgarden or in the archives. Is there any ConTeXt command for
this? I tried with

\pdfoptionpdfminorversion=3

in the beginning of the file (as suggested on comp.text.tex), but
still, acroread says it is a pdf version 1.5...

/Micke P
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Output PDF version

2005-12-08 Thread Mikael Persson
On 12/8/05, Taco Hoekwater <[EMAIL PROTECTED]> wrote:
> Mikael Persson wrote:
> > Hi all,
> >
> > I just came across a situation where I must produce a pdf that has
> > version 1.3 (or in worst case 1.4). I did not find anything on
> > contextgarden or in the archives. Is there any ConTeXt command for
> > this? I tried with
> >
> > \pdfoptionpdfminorversion=3
>
> In pdftex 1.30, the primitive is renamed to
>
>\pdfminorversion
>
> For me, \pdfminorversion=3  that works, but then again, so
> does:
>
>\pdfoptionpdfminorversion=3
>
> so perhaps something else is wrong. Are you setting the version
> command before or after \setupoutput ? (it should be after).
>
>
> Taco

Taco, thank you very much!
Of course I had it the line before insead of after. :)
It works now!

Best Regards, Micke P
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] embedding multipage pdf

2006-01-25 Thread Mikael Persson
Hello Andrea,

the page

http://wiki.contextgarden.net/Including_pages_from_PDF_document

has been very helpful for me when inserting pdf pages.

Best regards, Mikael Persson

On 1/25/06, andrea valle <[EMAIL PROTECTED]> wrote:
> Hi to all,
>
> I'm preparing a (standard) musical score.
> I've scored the music with lilypond and I have as output an A3 pdf of
> many pages.
> My idea was to create the cover and the other information pages
> surrounding the music with Context.
> In fact, I happily prepared my A3 context pages and I was trying to
> include the music pdf in the resulting tex file .
> I simply put my pdf in \externalfigure: it works, but only for first
> page.
>
> How do I include all the pdf?
>
> I can solve printing the pages from the context and lilypond output
> files, and then gluing the resulting paper, but I'd like to have an
> integrated source file to be printed.
>
> Thanks a lot
>
> -a-
>
>
> Andrea Valle
> DAMS - Facoltà di Scienze della Formazione
> Università degli Studi di Torino
> http://www.semiotiche.it/andrea
> [EMAIL PROTECTED]
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] embedding multipage pdf

2006-01-25 Thread Mikael Persson
Hi again Andrea,

Could the reason be that you have margins/similar things? With the
following I see no differences of the files pauli.pdf, dirac.pdf and
the resulting file.

\setuppagenumbering[state=stop]
\setuplayout[
width=210mm,
height=297mm,
margin=0cm,
header=0cm,
footer=0cm,
topspace=0cm,
backspace=0cm,
]
\starttext
\insertpages[pauli.pdf][n=18]
\page[odd]
\insertpages[dirac.pdf][n=24]
\stoptext

Best regards, Micke P

On 1/25/06, andrea valle <[EMAIL PROTECTED]> wrote:
> Thanks Mikael,
> sorry, I didn't think about wiki.
>
> So I solved using copypages.
>
> The only thing is that it seems to me that even if I use scale=1000 (or
> if I leave it untouched) the copied pdf seems to be scled the same
> (it's smaller than original).
>
> Why?
>
> -a-
>
> On 25 Jan 2006, at 17:35, Mikael Persson wrote:
>
> > http://wiki.contextgarden.net/Including_pages_from_PDF_document
> Andrea Valle
> DAMS - Facoltà di Scienze della Formazione
> Università degli Studi di Torino
> http://www.semiotiche.it/andrea
> [EMAIL PROTECTED]
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt IRC ?

2006-01-27 Thread Mikael Persson
Hello Renaud,

I usually hang around in #ConTeXt at Freenode, and, say 99.9% of the
time since last summer there has been nobody there. However, recently
people started to show up. We were three some day ago.

My client lillpelle is usually active. But now I am at work...

See you soon!

/Micke P

On 1/27/06, Renaud AUBIN <[EMAIL PROTECTED]> wrote:
>
>  Hi all,
>
>  Is there a context-related irc channel ?
>
>  Renaud
>
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
>
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] New tree in minimal context

2006-03-23 Thread Mikael Persson
Hello all,

I am trying the minimal ConTeXt distribution. Ok, so I downloaded

justtex.zip

and

linuztex.zip

to /tex...

and followed the instructions and all worked out well. However, I have
another tree I want to use aswell, say /usr/local/texmf-wolfram.
However, when I add entries in one of the following:

/tex/texmf/web2c/texmf.cnf
/tex/texmf-local/web2c/texmf.cnf
/tex/texmf-local/web2c/context.cnf

like:

TEXMFWOLFRAM = /usr/local/texmf-wolfram

and then add to TEXMF the TEXMFWOLFRAM

TEXMF = 
{!!$TEXMFCONFIG,!!$TEXMFVAR,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFMAIN,!!$TEXMFLOCAL,!!$TEXMFDIST,$TEXMFWOLFRAM}

the new tree is still not found when doing a mktexlsr. It just shows:
mktexlsr: Updating /tex/texmf/ls-R...
mktexlsr: Updating /tex/texmf-extra/ls-R...
mktexlsr: Updating /tex/texmf-fonts/ls-R...
mktexlsr: Updating /tex/texmf-linux/ls-R...
mktexlsr: Updating /tex/texmf-local/ls-R...
mktexlsr: Done.

So, where should I add a new tree? (is it possible in the minimal
version?) The procedure I did above worked well for TeXLive 2004.

Best regards, Mikael Persson
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Unwanted indenting on first line of bibtex entries

2006-03-23 Thread Mikael Persson
Hello,

I get a small indentation for the entries in the bibliography, but
only on the first line! I am right now running the minimal ConTeXt
distr, but it was the same with newest ConTeXt on a TeXLive 2004...

Example:

\usemodule[bib]
\setuppublications[
alternative=num,
refcommand=num,
numbering=yes,
]

\setupbibtex[
database=fejk,
]

\starttext
Bla bla \cite[ab,akgl,kato].

\placepublications[criterium=artikel]
\stoptext

The files are available at

http://www.math.chalmers.se/~mickep/bibproblem/

Especially the resulting pdf is at

http://www.math.chalmers.se/~mickep/bibproblem/bibprob.pdf

My guess is that there is a \setupbib... something to get the entries
without the indentation on the first line.

Best regards, Micke P
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Cyrillic glyphs display problem with standalone ConTeXt distribution under win32

2006-05-07 Thread Mikael Persson
On 5/7/06, Vladimir Smirnov <[EMAIL PROTECTED]> wrote:
> Hello everyone,
>
> I use standalone ConTeXt distribution for win32, mswincontext.zip
> downloaded a week ago, and never got proper cyrillic characters. I get
> latin "character codes" instead: for instance, \cyrillicDJE produces "DJE"
> in the output pdf, but not "Ж". At the same time \Tsedilla (cp1250) makes
> the proper glyph. I found that live ConTeXt at contextgarden.org behaves
> in the similar way. Neither of recommendations/samples at
> http://wiki.contextgarden.net/Russian worked for me. The standalone
> context distribution does contain all necessary fonts and regimes, so
> there must be some deeper problem. Could anyone, please, tell me what is
> going on?
>
> Here is my test.tex. I tried it in utf, cp1251, cp866, all producing the
> similar result.
>
> (this letter must be in koi-8r cyrillic encoding)
>
> \useregime[cp1251]
> \enableregime[cp1251]
> \usetypescript[modern-base][t2a]
> \setupbodyfont[modern]
>
> \starttext
> Это первый документ \ConTeXt!\par
> \Tcedilla\par
> \cyrillicDJE\par
> АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯ
> \stoptext
>

Hi,

this does not really help you, but: I tried your file and the files at
the Russian wiki page, and they did not work with my minimal
installation for linux either. However, they all worked well with
TeXLive 2004 with a not too old ConTeXt version. Since I partly wrote
that wiki page and only tried it with my own TeXLive 2004 it may not
be helping other people too much.

Sorry for not being able to help more. I wish I could...

Mikael P
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Keeping it single valued

2007-04-19 Thread Mikael Persson
Hi Arnold,

this is no exact answer, but possibly the reason why:

First, have a look at:

\starttext
\startbuffer[figure]
numeric scf, t[];
3.2scf=2.4in;
path fun;
fun:=(0,-1)..(1,.5){right}..(1.9,.2){right}..{curl .1}(3.2,2);
fun:=fun scaled scf;
drawpath fun;
drawpoints fun;
\stopbuffer

\placefigure
[][fig:one]
{Caption.}
{\processMPbuffer[figure]}

\startbuffer[figure]
numeric scf, yscl, t[];
3.2scf=2.4in;
path fun;
yscl=.1;  %keep the function single valued
fun:=(0,-1yscl)..(1,.5yscl){right}..(1.9,.2yscl){right}..{curl .1}
(3.2,2yscl);
fun:=fun scaled scf;
drawpath fun shifted (3cm,0cm);
drawpoints fun shifted (3cm,0cm);
fun:=fun yscaled (1/yscl);
drawpath fun shifted (-3cm,0cm);
drawpoints fun shifted (-3cm,0cm);
\stopbuffer

\placefigure
[][fig:one]
{Caption.}
{\processMPbuffer[figure]}

\stoptext

Let us focus on the first two points.

In the upper figure:
The horizontal distance between point 1 and 2 is less than the
vertical distance. If you want the path from 1 to 2 to be part of a
circle, where the "top" of the circle should be at point 2 (whis is so
because of the {right} option at point 2) this forces the "leftmost"
part of the circle to be in the path and also to be left of point 1.
This gives necessary a "multivalued" function

In the lower right figure:
Now the horizontal distance between point 1 and 2 is greater than the
vertical distance. Hence the "leftmost" part of the circle is not in
the path and the function gets single valued.

This is more or less it. I'm not 100% sure the path from 1 to 2 is
part of a circle, but  the reason is probably the same.

With best regards, Micke P

On 4/19/07, David Arnold <[EMAIL PROTECTED]> wrote:
> All,
>
> This example from the Metapost manual is beyond my expertise. The
> second figure is sweet, just what I would want. Can anyone wax
> philosophic for a bit and explain why the y-scaling keeps the second
> function single valued?
>
> starttext
>
> \startbuffer[figure]
> numeric scf, t[];
> 3.2scf=2.4in;
> path fun;
> fun:=(0,-1)..(1,.5){right}..(1.9,.2){right}..{curl .1}(3.2,2);
> fun:=fun scaled scf;
> draw fun;
> \stopbuffer
>
> \placefigure
> [][fig:one]
> {Caption.}
> {\processMPbuffer[figure]}
>
> \startbuffer[figure]
> numeric scf, yscl, t[];
> 3.2scf=2.4in;
> path fun;
> yscl=.1;  %keep the function single valued
> fun:=(0,-1yscl)..(1,.5yscl){right}..(1.9,.2yscl){right}..{curl .1}
> (3.2,2yscl);
> fun:=fun yscaled (1/yscl);
> fun:=fun scaled scf;
> draw fun;
> \stopbuffer
>
> \placefigure
> [][fig:one]
> {Caption.}
> {\processMPbuffer[figure]}
>
> \stoptext
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bug in itemize

2007-07-13 Thread Mikael Persson
>From the ConTeXt manual (cont-eni.pdf page 234 (237 in the pdf file)):

"When we use the key columns the items are typeset in two columns. The
number of columns can be set by the keys one, two (default), three or
four."

Best regards, Micke P

On 7/13/07, David Arnold <[EMAIL PROTECTED]> wrote:
> John, Wolfgang, et al,
>
> I forget how I discovered the option "three," but it worked in
> January with an older version of Context.
>
> See:  http://msenux.redwoods.edu/IntAlgText/chapter4/section4.pdf
>
> Example 13 on page 384.
>
> It no longer works as is evidenced on: http://msenux.redwoods.edu/
> IntAlgText/fall2007/chapter4/section4.pdf
>
> Example 13 on page 394.
>
>
> On Jul 13, 2007, at 5:09 AM, John R. Culleton wrote:
>
> > On Thursday 12 July 2007 15:46, David Arnold wrote:
> >> All,
> >>
> >> Think I found a bug in itemize.
> >>
> >> \starttext
> >>
> >>\startitemize[a,columns,three]
> >>\item $|x|>-5$
> >>\item $|x|>0$
> >>\item $|x|>4$
> >>\stopitemize
> >>
> >> \stoptext
> >>
> > I don't understand your parameters. The Manual allows for columns but
> > not for "three". Is this a later feature?
> >
> > --
> > John Culleton
> > ATTN Publishers/authors:
> > If you don't read you don't succeed.
> > Free short list of publishing/marketing books.
> > http://wexfordpress.com/tex/shortlist.pdf
> >
> >
> > __
> > _
> > 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  : https://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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Minimal ConTeXt in 64 bits machine

2007-07-19 Thread Mikael Persson
Hi Maurício,

It seems one can find a linux 64 bits version at

http://www.pragma-ade.com/context/install/linux64tex.zip

You can find it on the pragma-ade site, by going to:
* overview
* dir
* context
* install

I hope that is what you looked for

/Micke P

On 7/19/07, Maurí­cio <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is  it  possible to  install  the minimal  context
> distribution  in a 64  bits machine?  I downloaded
> 'justtext'  and 'linuxtex'  zip files,  and  I see
> that  the  environment  setup script  sets  TEXFOS
> variable to  a 64 bits specific  directory when it
> detects a 64 bits machine. However, that directory
> does not  exist in those  zip files. Can I  get it
> somewhere else? I'm using Ubuntu 7.04.
>
> Thanks,
> Maurício
>
> ___
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Combining two pages on one, in landscape mode

2007-07-21 Thread Mikael Persson
Dear list members,

the following command:

texexec --pdfcombine \
--combination=2*1 \
--paperformat=landscape \
--nobanner \
--result=twoinone.pdf \
file1.pdf file2.pdf

used to work to get file1.pdf and file2.pdf in twoinone.pdf with two
pages at one, and in landscape mode. However, since installing ConTeXt
20070403 (the minimal version), this no longer works for me. I get the
output "texexec: No match."

I also get the same error with the ConTeXt coming with texlive on ubuntu feisty.

Any ideas of how to solve this?

Thanks in advance

/Micke P
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Combining two pages on one, in landscape mode

2007-07-21 Thread Mikael Persson
Thank you Thomas, that was it!

/Micke P

On 7/21/07, Thomas A. Schmitz <[EMAIL PROTECTED]> wrote:
> A shot in the dark: depending on your shell, you may need to put the
> 2*1 part in quotes, so try
> --combination='2*1'
>
> HTH
>
> Thomas
>
> On Jul 21, 2007, at 7:14 PM, Mikael Persson wrote:
>
> > Dear list members,
> >
> > the following command:
> >
> > texexec --pdfcombine \
> > --combination=2*1 \
> > --paperformat=landscape \
> > --nobanner \
> > --result=twoinone.pdf \
> > file1.pdf file2.pdf
> >
> > used to work to get file1.pdf and file2.pdf in twoinone.pdf with two
> > pages at one, and in landscape mode. However, since installing ConTeXt
> > 20070403 (the minimal version), this no longer works for me. I get the
> > output "texexec: No match."
> >
> > I also get the same error with the ConTeXt coming with texlive on
> > ubuntu feisty.
> >
> > Any ideas of how to solve this?
> >
> > Thanks in advance
> >
> > /Micke P
> > __
> > _
> > 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  : https://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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Too small { in the fourier font

2007-08-30 Thread Mikael Persson
Hi all,

when using the fourier font I get the wrong size of the opening { in
the \startcases \stopcases environment. The following small example
shows the problem and it fails both at my place and at
http://live.contextgarden.net/


\usetypescript[fourier][ec]
\setupbodyfont[fourier,10pt]

\starttext
\startformula
f(x)=
\startcases
\NC 1 \MC x>0\NR
\NC 0 \MC x<0\NR
\stopcases
\stopformula
\stoptext


I run the minimal ConTeXt, from 8th of august:
ConTeXt  ver: 2007.08.08 14:35 MKII  fmt: 2007.8.26  int: english/english

Moreover, if I comment the first lines out above, the opening { is
"stretched" correctly (in latin modern).

Any ideas?

Best regards, Micke P
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Too small { in the fourier font

2007-08-30 Thread Mikael Persson
Thanks, but if I try that, I dont get the fourier fonts at all, but
the lm ones (both home and at live.contextgarden.net).

Best regards, Micke P

On 8/30/07, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
> On Thu, 30 Aug 2007, Mikael Persson wrote:
>
> > Hi all,
> >
> > when using the fourier font I get the wrong size of the opening { in
> > the \startcases \stopcases environment. The following small example
> > shows the problem and it fails both at my place and at
> > http://live.contextgarden.net/
>
> An easy workaround, use texnasi encoding :-)
>
> \usetypescript[fourier][texnansi]
>
> Maybe a bug somewhere, but math fonts are like a black box to me.
>
> Aditya
> ___
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Too small { in the fourier font

2007-08-30 Thread Mikael Persson
Update:

This seems to be a problem that is introduced after 20070403. I am
running that version at work (minimal installation on linux there
aswell), and there it looks OK with the fourier fonts.

Another problem is given by $\hat f$. In the older one it looks OK,
but in the newer the hat is placed wrongly. New minimal example that
shows both these problems:


\usetypescript[fourier][ec]
\setupbodyfont[fourier,10pt]

\starttext
\startformula
\hat f(x)=
\startcases
\NC 1 \MC x>0\NR
\NC 0 \MC x<0\NR
\stopcases
\stopformula
\stoptext


Any ideas? I don't want to switch back to ver 20070407 if it is not necessary...

/Micke P

On 8/30/07, Mikael Persson <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> when using the fourier font I get the wrong size of the opening { in
> the \startcases \stopcases environment. The following small example
> shows the problem and it fails both at my place and at
> http://live.contextgarden.net/
>
> 
> \usetypescript[fourier][ec]
> \setupbodyfont[fourier,10pt]
>
> \starttext
> \startformula
> f(x)=
> \startcases
> \NC 1 \MC x>0\NR
> \NC 0 \MC x<0\NR
> \stopcases
> \stopformula
> \stoptext
> 
>
> I run the minimal ConTeXt, from 8th of august:
> ConTeXt  ver: 2007.08.08 14:35 MKII  fmt: 2007.8.26  int: english/english
>
> Moreover, if I comment the first lines out above, the opening { is
> "stretched" correctly (in latin modern).
>
> Any ideas?
>
> Best regards, Micke P
>
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Too small { in the fourier font

2007-08-30 Thread Mikael Persson
On 8/30/07, Hans Hagen <[EMAIL PROTECTED]> wrote:
> George N. White III wrote:
> > On 8/30/07, Mikael Persson <[EMAIL PROTECTED]> wrote:
> >
> >> Update:
> >>
> >> This seems to be a problem that is introduced after 20070403. I am
> >> running that version at work (minimal installation on linux there
> >> aswell), and there it looks OK with the fourier fonts.
> >
> > There have been some major changes in font handling.   It turned out that
> > the lm fonts didn't define a design size but apparently it didn't matter 
> > until
> > quite recently, and then more recently a workaround was added.  I wouldn't
> > be surprised to see the problem in other fonts either because they use lm
> > for some glyphs or because they were created using the same toolchain.
>
> indeed, the tex gyre fonts etc also suffer from this but in many cases
> they default to 10
>
> the lm/gyre authors are notified and will sort it out
>
> Hans
>

Thanks for your replies. The lm/gyre authors does not take care of the
fourier fonts, right? What does this mean if one wants to use the
fourier fonts?

/Micke P
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] fret-diagrams in Lilypond + ConTeXt

2007-09-07 Thread Mikael Persson
Hi all,

I have problems getting fret-diagrams working in Lilypond+ConTeXt. The
following works in lilypond

\markup \fret-diagram #"s:0.75;f:1;6-x;5-x;4-o;3-2-1;2-3-3;1-2-2;"

However, the following does not work in ConTeXt:

\usemodule[lilypond]
\starttext
\startlilypond
\markup \fret-diagram #"s:0.75;f:1;6-x;5-x;4-o;3-2-1;2-3-3;1-2-2;"
\stoplilypond
\stoptext

I have
ConTeXt  ver: 2007.08.08 14:35 MKII  fmt: 2007.8.26  int: english/english
Lilypond version 2.10.5 and the
Lilypond ConTeXt module t-lilypond-2007.09.02.zip

The examples on the wiki works well, and the problem seems to be that
\fret-diagram is written as \fret -diagram (note the space) in the
.tmp file, and thus producing the error(?)

Any ideas?

Best regards, Micke P
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] fret-diagrams in Lilypond + ConTeXt

2007-09-12 Thread Mikael Persson
On 9/11/07, Henning Hraban Ramm <[EMAIL PROTECTED]> wrote:
> Am 2007-09-11 um 02:53 schrieb Arthur Reutenauer:
>
> >   Note for Hraban: this problem is apparently special to markups, that
> > somehow the minus signs loses his letterhood when used in a markup.
> > The fault lies obviously with Lilypond, since when I try to compile
> > the
> > following exact line (with the added curly braces):
> >
> >   { \markup \fret-diagram #"s:0.75;f:1;6-x;5-x;4-o;
> > 3-2-1;2-3-3;1-2-2;" }
> >
> > Lilypond seems to suddenly forget that the minus is part of the
> > command
> > and complains about an "unknown escaped string: `\fret'".
> >
> >   I have no idea what to do in t-lilypond to fix it.  Maybe you know?
>
> Sorry, the catcode code is not by me, and I understand it only partly
> - I'm able to write PostScript and a lot of other languages, but TeX
> and Scheme are too obscure for me. Perhaps we can re-implement the
> module in Lua...
>
> If you come up with a fix, I'll gladly put it in the module.
>
> (There's still a lot more to be fixed/extended; since I'll have to
> finish my songbook soon, I'll have to cope with some of that...)
>
> Greetlings from Lake Constance!
> Hraban
> ---

Arthur, tanks for your kind reply! I'll try it when I get home. It was
a bit confusing with the - for me, but I should have tried the catcode
solution! Actually, I want to typeset only fret-diagrams, no notes.
Maybe I should look that up in the Lilypond manual (if it is
possible). The lacking of {}'s was because of the error I got without
them.

Hraban, thanks for bringing a nice module!

/Micke P
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] References not working when arranging pages

2003-06-02 Thread Mikael Persson
Hello!

When I use \setuparranging I can't get the references to work. I use the
latest beta. If i just comment the line with \setuparranging it works
perfectly. Have I missed something?

Here is a small document showing the problem:

%%% Begin testdocument
\setuppapersize[A5][A4]
\setuparranging[2SIDE,rotated]
\setuplayout[location=middle,
 marking=on]


\starttext
Here is an equation
\placeformula[eq:testeq]
\startformula
\sin^2(x)+\cos^2(x)=1.
\stopformula
As we see in formula~(\in[eq:testeq]) this doesn't work.
\stoptext
%%% End testdocument

Best regards, Micke P

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] MetaPost backgrounds

2003-08-14 Thread Mikael Persson
On Sun, 10 Aug 2003 20:50:58 +0200
Jens-Uwe Morawski <[EMAIL PROTECTED]> wrote:

> On Sun, 10 Aug 2003 09:30:48 +0200
> Mikael Persson <[EMAIL PROTECTED]> wrote:
> 
> > I had some problems with backgrounds in a table. I wanted just a
> > horizontal line, but in different heights. The problem is that the >
> > line will always be in the middle of the cell if I don't add more >
> > > graphics.
> > See the example file below.
> 
> the graphics are always centered in the cell. therefore you have to >
> set the bounding box  of the graphic to the cell size
> 
> > % This works, but is not nice.
> > 
> > \startuniqueMPgraphic{splittop}
> > draw (0,0)--(OverlayWidth,OverlayHeight) withcolor white;%should not
> > be necessary
> > draw (0,0.725*OverlayHeight)--(OverlayWidth,0.725*OverlayHeight);
> > \stopuniqueMPgraphic
> 
> the following should give what you want (untested)
> 
> \startuniqueMPgraphic{splittop}
> draw (0,0.725*OverlayHeight)--(OverlayWidth,0.725*OverlayHeight);
> setbounds currentpicture to (unitsquare xyscaled > >
> (OverlayWidth,OverlayHeight)) ;\stopuniqueMPgraphic
> 
> in order to save some typing you could define a macro
> 
> \startMPinclusions
> def FitToOverlay =
>setbounds currentpicture to (unitsquare xyscaled > >
>(OverlayWidth,OverlayHeight)) ;
> enddef;
> \stopMPinclusions
> 
> \startuniqueMPgraphic{splittop}
> draw (0,0.725*OverlayHeight)--(OverlayWidth,0.725*OverlayHeight);
> FitToOverlay ;
> \stopuniqueMPgraphic
> 
> Jens


Jens,

Thanks a lot! I did not know that the graphics are centered in the cell.
Now this mystery (to me) is not a mystery no more :)

Regards, Micke P

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] MetaPost backgrounds

2003-08-14 Thread Mikael Persson
Hi everybody!

I had some problems with backgrounds in a table. I wanted just a
horizontal line, but in different heights. The problem is that the line
will always be in the middle of the cell if I don't add more graphics.
See the example file below.

Regards, Micke P


\setupoutput[pdftex]
\enableregime[utf]
\setupbodyfont[7pt]

% This works, but is not nice.

\startuniqueMPgraphic{splittop}
draw (0,0)--(OverlayWidth,OverlayHeight) withcolor white;%should not be
necessary
draw (0,0.725*OverlayHeight)--(OverlayWidth,0.725*OverlayHeight);
\stopuniqueMPgraphic
\defineoverlay[splittop][\uniqueMPgraphic{splittop}]

\startuniqueMPgraphic{splitmid}
draw (0,0)--(OverlayWidth,OverlayHeight) withcolor white;%should not be
necessary
draw (0,0.5*OverlayHeight)--(OverlayWidth,0.5*OverlayHeight);
\stopuniqueMPgraphic
\defineoverlay[splitmid][\uniqueMPgraphic{splitmid}]

% This does not work, but I think it should

\startuniqueMPgraphic{topsplit}
draw (0,0.725*OverlayHeight)--(OverlayWidth,0.725*OverlayHeight);
\stopuniqueMPgraphic
\defineoverlay[topsplit][\uniqueMPgraphic{topsplit}]

\startuniqueMPgraphic{midsplit}
draw (0,0.5*OverlayHeight)--(OverlayWidth,0.5*OverlayHeight);
\stopuniqueMPgraphic
\defineoverlay[midsplit][\uniqueMPgraphic{midsplit}]

\starttext

% A working table
\setupTABLE[width=2cm,height=2cm]
\bTABLE[align={middle,lohi}]
\bTR\bTD[background=splittop] Some text\par And some more text that will
apear below the other text\eTD\bTD[background=splitmid] Some text
above\par Some text below \eTD\eTR
\eTABLE

% A non-working table
\setupTABLE[width=2cm,height=2cm]
\bTABLE[align={middle,lohi}]
\bTR\bTD[background=topsplit] Some text\par And some more text that will
apear below the other text\eTD\bTD[background=midsplit] Some text
above\par Some text below \eTD\eTR
\eTABLE

\stoptext
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Simple problem using texexec to combine pdfs

2003-11-10 Thread Mikael Persson
> Hello,
>
> i am rather new to ConTeXt but i had to try it after i met Hans in a
> little workshop about his system in Darmstadt this year. Thanks again
> for the insights Hans :-) Now i found out that texexec is also a
> pretty nice tool for combining single pdf files into one. So i tried:
>
> texexec --pdfcombine --combination=1*1 --result=felix.pdf *.pdf
>
> to combine all pdfs in the wd to felix.pdf. That's working fine
> besides the fact that a footnote is added to each page containing the
> file name and the date. That's maybe pretty handy sometimes but not
> for me at the moment. I checked the texexec manpages and the manual
> but i did not find the right command/switch to do it. May be i'm just
> missing some rooky stuff. Could someone help me out here?
> BTW: I'm using the latest TeXlive installation on RedHat.
>
> Best regards
>Martin
>
> P.S.: I know that i could change the temporary texexec.tex by hand
> and rerun that file. But that's a bit to clumsy for such a
> sophisticated system, isn't it?

Hello,

is it the --nobanner you are after?

Regards, Micke P

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] news / bold math

2003-11-27 Thread Mikael Persson
> News:
>
>http://www.pragma-ade.com/general/magazines/mag-0005.pdf
>
> bold math and mixed bold math; only defined for lucida (dunno other bold
> math fonts yet)
>
> I also uploaded new versions.
>
> Hans
>

Hi everyone,

this looks fine. I have used Wolfram's Mathematica fonts for a while, and
they have, among others, bold math. I give a link to two pdfs with some
examples. One can download the fonts from Wolframs site.

http://www.math.chalmers.se/~mickep/testfile.pdf

I have also generated list of characters available at

http://www.math.chalmers.se/~mickep/fontlist.pdf

My question is if there is a way to make the following in a nice way:
Suppose one uses the Wolfram-Times math font as default in a doc. Then one
would like to swich to the Wolfram-Times-Bold math font with \bf. But
maybe one also wants to be able to switch to the Wolfram-Courier math font
with some switch, and perhaps also Woflram-Courier-Bold math font with
another switch.

Moreover, if anyone is interested: There is a package to use these fonts
in LaTeX. I have more or less copied and changed it to work with ConTeXt
and it works more or less. There are some stuff not working yet. If anyone
is interested in this, If I get an OK from the author of the LaTeX package
I can make it available online if anyone is interested.

Regards, Micke P
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] news / bold math

2003-11-27 Thread Mikael Persson
> At 20:47 27/11/2003, you wrote:
>
>>this looks fine. I have used Wolfram's Mathematica fonts for a while, and
>>they have, among others, bold math. I give a link to two pdfs with some
>>examples. One can download the fonts from Wolframs site.
>
> can you give a pointer to those fonts?
>
> Hans
>

Yes, I forgot to add an url for that :)

http://support.wolfram.com/mathematica/systems/windows/general/latestfonts.html

There are links to different versions.

/Micke P
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] special characters and \startuseMPgraphic{FunnyFrame}

2004-05-03 Thread Mikael Persson
> Hello,
>
> the following example does not work if the text in the
> \FrameTitle{Blockflötenspielen} contains special characters like öäßé etc.
>
> Has someone a solution for this problem?
>
> Thanks a lot,
>
> Helmut
>
>

I had a similar problem some time ago. But I used the utf regime. The
solution (I dont know if I read it on the list or where it came from) was
to put curly braces around those characters. In this case it would be

\enableregime[utf]
instead of
\enableregime[windows]

and then

These: Blockfl{ö}tenspielen macht Spa{ß}!

I tried this with your doc and it worked.

Probably someone soon comes up with a nicer solution,

Regards, Micke P
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] The name of the current section?

2004-05-20 Thread Mikael Persson
> Hi.
>
> Many thanks for your kind answer.
>
>> \setuppagenumbering[alternative=doublesided,
>>location={header,marginedge}]
>> \setupheadertexts
>>[section][{\headnumber[section]}][chapter][{\headnumber[chapter]}]
>
> Your code is rather nice (I have learned one nice trick from it), but it
> doesn't what I need. I want all the header stuff to go just separated by
> spaces, not on different sides of the header. Something like this
>
> 117_This_is_an_chapter_name_(chap._5)___
> where "_" stands for a space.
>
> Well, with your trick I could possibly to it with some \hfill, but it's
> a rather tricky solution. Moreover, I may need the name of a current
> chapter and section in the document itself. I guess there must be some
> system solution for such a case in the ConTeXt (I think there is almost
> everything in it.) :-)
>
> Of course, as the last instance I can redefine \chapter and \section in
> a way like this
> \let\OriChapter=\chapter
> \def\chapter#1{\def\currentchaptername{#1}\chapter{#1}}
> but I don't want to do it -- it is dirty and involves more programming
> to cover crossreferences.
>
> Any more hint how to get the name of current chapter/section?
>
> With best regards
> Michal Kvasnicka
>

I found this in one of my old docs. Is that what you want?

\setupheadertexts
[{\headnumber[section]\quad\getmarking[section][current]}]
[]
[]
[{Chapter \headnumber[chapter]:\quad\getmarking[chapter][current]}]


Regards, Micke P
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


RE: [NTG-context] unicode editor?

2004-07-27 Thread Mikael Persson
> Thnx 4 this reference; I'll try it!
>
> Best
> Idris
>

Hello Idris,

I don't know on what platform you are, but gedit may be a possible choice
too. I made a screenshot available at
http://www.math.chalmers.se/~mickep/gedit.png
gedit is available from
http://gedit.sourceforge.net/

Good luck!

Regards, Micke P
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


RE: [NTG-context] unicode editor?

2004-07-27 Thread Mikael Persson
> Hi Henning,
>
>>= Original Message From Henning Hraban Ramm <[EMAIL PROTECTED]> =
>>> Hans and others use SciTE. Does it provide Unicode/bidirectional
>>> support
>>> support?
>>
>>You can set it up to use UTF-8, but I don't think it supports r-t-l or
>>bidi.
>
> That's really too bad:-(( I actually have UniType Global Writer but it's
> really a pain to use for TeX source editing. On the other hand, it can be
> used
> to copy and past to WinEdt (where it will show up as utf-8 ascii). An
> all-in-one solution would be much better though.
>
> Now I'm a KDE lover myself;-) but doesn't GTK support bidi/rtl? So
> shouldn't
> SciTE support bidi right out of the box?
>
> In any case, I would still like to try SciTE if Hans' support files are
> available somewhere. Quick question: how does one activate utf-8?
>
> Best
> Idris

Hello Idris,

I think Hans properties file is available in the ConTeXt distribution at
$TEXMF/context/data/context.properties
and the documentation is available in
http://www.pragma-ade.com/general/manuals/mscite.pdf

For utf: Open SciTE, chose Options->Open User Options File and add the line
code.page=65001
to that file.

I don't know what you like, but I have some other things there too:
use.monospaced=1
split.vertical=0
wrap=1

Good luck!

Regards, Micke P



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Request: translation of texshow-web

2004-11-22 Thread Mikael Persson
> Dear ConTeXt (and texshow-web) users,
>
> I am currently translating texshow-web into various languages. Well
> I'd like to, but all languages besides german (and english) give me
> headaches... So I am looking for some native speakers to help me
> translating. The job is pretty easy, I'd send you a small textfile and
> you send it back to me with some strings translated (currently 35
> strings, but there is also the help page and main page...)
>
> Patrick

Hi there,

I may be able to translate into swedish.

Micke P

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Russia (cyrillic letters)

2005-01-22 Thread Mikael Persson
Hello everybody.

I am looking for a way of writing some home exercises in my Russian
course in ConTeXt. However, so far I have not succeed with it. Should
it work out of the box without installing any new fonts (I am having
the fonts from a full install of TeXLive2003 now)? I have looked a bit
in the source files for context, but with no luck.

I guess there are different ways to achieve this, however, since I
also want some swedish text in the same documents, the best would
probably be if one of the following options worked:

1) Typing everything in utf8, and get the different languages
automatically when compiling.
2) Typing everything with western letters, having some kind of
\startrussia Boris \stoprussia and get Boris typeset with Cyrillic
letters.

Any tips/hints are welcome,

Best regards,

Micke P
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Russia (cyrillic letters)

2005-01-24 Thread Mikael Persson
On Sun, 23 Jan 2005 22:47:57 +0100, h h extern <[EMAIL PROTECTED]> wrote:
> Mikael Persson wrote:
> 
> > I am looking for a way of writing some home exercises in my Russian
> > course in ConTeXt. However, so far I have not succeed with it. Should
> > it work out of the box without installing any new fonts (I am having
> > the fonts from a full install of TeXLive2003 now)? I have looked a bit
> > in the source files for context, but with no luck.
> 
> well, i just took a look in the latest tex tree, and i cannot find a trace of
> the russian fonts that are defined in abundance in context's type-enc.tex; one
> problem with russian is that nobody seems to be responsible to get all the 
> right
> stuff on tex live;
> 
> Based on the definitions, the following should work (and is reported to work):
> 
> \starttext
> 
> \definetypeface [latin]
>[rm] [serif] [latin-modern] [default] [encoding=texnansi]
> 
> \definetypeface [russian]
>[rm] [serif] [computer-modern] [default] [encoding=cyr] % t2a
> 
> \latin   \dostepwiserecurse{`a}{`z}{1}{\char\recurselevel} \endgraf
> \russian \dostepwiserecurse{`a}{`z}{1}{\char\recurselevel} \endgraf
> 
> \stoptext

Hello, and thank you for your answer. However this small test file
does not work here. Not in TeXLive2003 or with a fresh install of
TeXLive2004. If I run it as it is, I get the bluesky cmr12 and cmr10.
If cyr is changed to t2a, then it does not run anymore. It complains
about larm1000 not found. I guess this is the cm-super files. In
type-enc.tex there is a line
  \definefontsynonym [cmr10][larm1000]   [encoding=t2a]
and I have the cm-super fonts installed, however no file called
larm1000.tfm. In cm-super-t2a.map I see:

larm1000 SFRM1000 "T2AEncoding ReEncodeFont"  In order to get it working i suggest those using russian to do the following:
> 
> - determine what encodings are *really* in use

This, I shall ask one russian guy I know.

> - collect the tfm/vf/pfb files that are needed to get that done
> - build me the right map files
> 
> (i probably involves some fonts from cmsuper; so ... what is the reasonable
> subset that we need; if needed we can stick to a few reasonable sized (as we 
> do
> with greek); it's mostly the math that is sensitive to design sizes)
> 
> we can then make a proper subset for (1) tex live and (2) the minimal context
> distribution; even better would be to have those glyohs needed to be added to
> the latin modern fonts [i can look into that later]

That sounds great!

> > I guess there are different ways to achieve this, however, since I
> > also want some swedish text in the same documents, the best would
> > probably be if one of the following options worked:
> 
> the simpliest is to switch font and language at the same time (but i cannot 
> test
> anything if i have no fonts running on my sytstem]
> 
> > 1) Typing everything in utf8, and get the different languages
> > automatically when compiling.
> 
> currently the utf handler does not change fonts, but since language switches 
> are
> to be given anyway, it can be hooked into the language handler if needed
> 
> > 2) Typing everything with western letters, having some kind of
> > \startrussia Boris \stoprussia and get Boris typeset with Cyrillic
> > letters.
> 
> Just language+font switches using the typeface macros.
> 
> Hans
> 

OK, thank you for clarifying this.

Best Regards, Micke P
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Russia (cyrillic letters)

2005-01-25 Thread Mikael Persson
On Tue, 25 Jan 2005 16:10:20 +0100, h h extern <[EMAIL PROTECTED]> wrote:
> Mikael Persson wrote:
> 
> > larm1000 SFRM1000 "T2AEncoding ReEncodeFont"  >
> > and I got sfrm1000.pfb and cm-super-t2a.enc files... So, in order to
> > have the cm-super fonts working, do I have to generate some files or
> > do something more?
> 
> you need tfm (larm1000.tfm) files but i dunno where to find them, maybe in 
> some
> cmsuper zip
> 
> > This, I shall ask one russian guy I know.
> 
> good, we can repackage the tfm's if needed; (i'm surprised how often fonts /
> names / etc change)
> 
> 
> Hans

Thank you Hans!

I did not find the tfm files anywhere on the Internet (strange), so I
generated them myself. Now it works very well. I put a description of
how I did, and some comments on what encoding that worked (windows
1251), and what encodings that did not (KOI8R, KOI8-R, ISO-8859-5),
and a small test file at

http://www.math.chalmers.se/~mickep/russian/

Hope this helps any other users in the future.

And please feel free to tell me if there are better solutions.

Micke P
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Russia (cyrillic letters)

2005-01-26 Thread Mikael Persson
On Wed, 26 Jan 2005 10:24:04 +0100, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Mikael Persson wrote:
> 
> > http://www.math.chalmers.se/~mickep/russian/
> 
> it looks like russian indeed
> 
> are all those fonts in the cmsuper path useful?

Hm, I don't think so. But that is a question for everyone to consider.
However, if you ask me I would be happy to have (snipped from the
README file):

  rm:  Computer Modern Roman
  sl:  Computer Modern Slanted
  ti:  Computer Modern Italic
  cc:  Computer Modern Caps and Small Caps
  ui:  Computer Modern Unslanted Italic
  sc:  Computer Modern Slanted Caps and Small Caps
  ci:  Computer Modern Classical Serif Italic
  bx:  Computer Modern Bold Extended
  bl:  Computer Modern Bold Extended Slanted
  bi:  Computer Modern Bold Extended Italic
  xc:  Computer Modern Bold Extended Caps and Small Caps
  oc:  Computer Modern Bold Extended Slanted Caps and Small Caps
  rb:  Computer Modern Roman Bold
  bm:  Computer Modern Roman Bold Variant
  ss:  Computer Modern Sans Serif
  si:  Computer Modern Sans Serif Slanted
  sx:  Computer Modern Sans Serif Bold Extended
  so:  Computer Modern Sans Serif Bold Extended Slanted
  tt:  Computer Modern Typewriter
  st:  Computer Modern Typewriter Slanted
  it:  Computer Modern Typewriter Italic
  tc:  Computer Modern Typewriter Caps and Small Caps
  vt:  Computer Modern Variable Width Typewriter
  vi:  Computer Modern Variable Width Typewriter Italic

"Each font shape comes in 14 font sizes ranging from 5pt to 35.83pt (or
11 font sizes for typewriter fonts ranging from 8pt to 35.83pt)."

I don't think all sizes are necessary.

and moreover it would be nice to have

  sform5 .. sform10:  Computer Modern Concrete Roman
  sfosl5 .. sfosl10:  Computer Modern Concrete Slanted
  sfoti10:Computer Modern Concrete Italic
  sfocc10:Computer Modern Concrete Caps and Small Caps

(maybe not all sizes here either)
and

  sfbmr{8,9,10,17}:  Computer Modern Bright Roman
  sfbmo{8,9,10,17}:  Computer Modern Bright Oblique
  sfbsr{8,9,10,17}:  Computer Modern Bright Semibold
  sfbso{8,9,10,17}:  Computer Modern Bright Semibold Oblique
  sfbbx10:   Computer Modern Bright Bold Extended
  sfbtl10:   Computer Modern Typewriter Light
  sfbto10:   Computer Modern Typewriter Light Oblique

Hm, well, this is all but ~18 (times 13 or 14 sizes)... so maybe it is
worth to have them all? What do one loose? speed? work? If work, then
I am ready to write what shall be written if you only show me for one
font.

About the encodings: According to my russian friend koi8-r is the most
common now, but utf is coming more and more. This is what one person
said, so if someone else think it is different, they may very well be
right (my friend is mostly TeX:ing on UNIX systems, and from what I
read from search results, the koi8r and koi8-r (which seems to be the
same?) are mostly used on UNIX and www. So maybe the windows 1521
encoding is still used by Windows users?)

However, I can't get it working with koi8-r. It works in LaTeX (tried
with the russian "Not so short introduction to LaTeX" document, and it
seemed to use t2a and koi8-r). Under ConTeXt, the document I try (the
rexample.tex saved in koi8-r instead of windows 1521) compiles, I get
russian letters, but the letters are at wrong places. I am using
\enableregime[koi8-r], and saving the document in koi8-r encoding. Is
there anything else I should do?

I also thought more about the utf. Is there anyway, now, to use utf8
encoding of the file, and somehow (from enco-uc.tex or how it would
work) get the russian letters (that is for example \uchar4{"11} to be
\cyrillicB, as it is written in enco-uc.tex and then from that get the
right letter)?

Micke P
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Russia (cyrillic letters)

2005-01-26 Thread Mikael Persson
On Wed, 26 Jan 2005 22:40:08 +, Adam Lindsay <[EMAIL PROTECTED]> wrote:
> Mikael Persson said this at Wed, 26 Jan 2005 22:38:50 +0100:
> 
> >I also thought more about the utf. Is there anyway, now, to use utf8
> >encoding of the file, and somehow (from enco-uc.tex or how it would
> >work) get the russian letters (that is for example \uchar4{"11} to be
> >\cyrillicB, as it is written in enco-uc.tex and then from that get the
> >right letter)?
> 
> Yeah, there is a way to use UTF-8 input, but it's not ready for Cyrillic
> quite yet--It'll take some work (from you? :D ) to get it going.
> 
> UTF-8 input depends on the unic-* files. The Cyrillic vector, unic-
> 004.tex, hasn't been done yet. All it takes is putting the named glyphs
> (that you saw in enco-uc, for example) in the right order, using unic-
> 001.tex as a model.
> 
> Interested? I can get you started if you are...
> 
> adam

Hello Adam,

Yes, I am intrested in doing this, please get me started :) I read
unic-001.tex, and I more or less understand the pattern, however there
must be more things to change then just adidng a unic-004.tex file
with similar entries for the cyrillic letters?

/Micke P
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Russia (cyrillic letters)

2005-01-27 Thread Mikael Persson
On Thu, 27 Jan 2005 10:11:51 +0100, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Adam Lindsay wrote:
> 
> > Yeah, there is a way to use UTF-8 input, but it's not ready for Cyrillic
> > quite yet--It'll take some work (from you? :D ) to get it going.
> 
> indeed, it would be godo to have that vector, yesterday i (partially) made the
> greek one
> 
> Hans

I am doing it right now for the cyrillic ones. There are some
\definecharacter that has to be added (I list them too)
It will be finished within an hour or two.

Micke
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Russia (cyrillic letters)

2005-01-27 Thread Mikael Persson
On Thu, 27 Jan 2005 10:11:51 +0100, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Adam Lindsay wrote:
> 
> > Yeah, there is a way to use UTF-8 input, but it's not ready for Cyrillic
> > quite yet--It'll take some work (from you? :D ) to get it going.
> 
> indeed, it would be godo to have that vector, yesterday i (partially) made the
> greek one
> 
> Hans
> 

OK, so here they are. Hope I understood correctly how it works... :)
enco-004.tex
and
enco-uc-add.tex
I used the names from gucharmap (char map app for Gnome) where they
were not yet defined. The names is not always so short as one maybe
would like.

/Micke P
%D \module
%D   [   file=unic-004,
%Dversion=2005.01.27,
%D  title=\CONTEXT\ \UNICODE\ Macros,
%D   subtitle=Vector 1,
%D author=Hans Hagen,
%D   date=\currentdate,
%D  copyright={PRAGMA / Hans Hagen \& Ton Otten}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\unprotect

\startunicodevector 4
  \expandafter\strippedcsname
  \ifcase\numexpr(#1+1) % space needed, terminates expr
\cyrillicEgrave   \or % 04-00 \uchar0{200} aswell
\cyrillicYO   \or % 04-01 Capital YO (or IO)
\cyrillicDJE  \or % 04-02
\cyrillicGJE  \or % 04-03 not in enco-uc.tex
\cyrillicIE   \or % 04-04 Ukrainian IE
\cyrillicDZE  \or % 04-05
\cyrillicII   \or % 04-06 Byelorussian-ukrainian I
\cyrillicYI   \or % 04-07
\cyrillicJE   \or % 04-08 same letter as latin J?
\cyrillicLJE  \or % 04-09
\cyrillicNJE  \or % 04-0A
\cyrillicTSHE \or % 04-0B
\cyrillicKJE  \or % 04-0C 
\cyrillicIgrave   \or % 04-0D I with grave
\cyrillicUSHRT\or % 04-0E
\cyrillicDZHE \or % 04-0F
\cyrillicA \or % 04-10
\cyrillicB \or
\cyrillicV \or
\cyrillicG \or
\cyrillicD \or
\cyrillicE \or
\cyrillicZH\or
\cyrillicZ \or
\cyrillicI \or
\cyrillicISHRT \or
\cyrillicK \or
\cyrillicL \or
\cyrillicM \or
\cyrillicN \or
\cyrillicO \or
\cyrillicP \or
\cyrillicR \or
\cyrillicS \or
\cyrillicT \or
\cyrillicU \or
\cyrillicF \or
\cyrillicH \or
\cyrillicC \or
\cyrillicCH\or
\cyrillicSH\or
\cyrillicSHCH  \or
\cyrillicHRDSN \or
\cyrillicERY   \or
\cyrillicSFTSN \or
\cyrillicEREV  \or
\cyrillicYU\or
\cyrillicYA\or
\cyrillica \or % 04-30
\cyrillicb \or
\cyrillicv \or
\cyrillicg \or
\cyrillicd \or
\cyrillice \or
\cyrilliczh\or
\cyrillicz \or
\cyrillici \or
\cyrillicishrt \or
\cyrillick \or
\cyrillicl \or
\cyrillicm \or
\cyrillicn \or
\cyrillico \or
\cyrillicp \or
\cyrillicr \or
\cyrillics \or
\cyrillict \or
\cyrillicu \or
\cyrillicf \or
\cyrillich \or
\cyrillicc \or
\cyrillicch\or
\cyrillicsh\or
\cyrillicshch  \or
\cyrillichrdsn \or
\cyrillicery   \or
\cyrillicsftsn \or
\cyrillicerev  \or
\cyrillicyu\or
\cyrillicya\or % 04-4F
\cyrillicegrave \or % 04-50 not i enco-uc.tex but same as \uchar0{232}
\cyrillicio\or % 04-51 small yo (or io)
\cyrillicdje   \or % 04-52 serbian letter
\cyrillicgje   \or % 04-53 macedonian letter not in enco-uc.tex
\cyrillicie\or % 04-54 ukrainian ie
\cyrillicdze   \or % 04-55 macedonian zelo
\cyrillicii\or % 04-56 byelorussian-ukrainian i.
\cyrillicyi\or % 04-57
\cyrillicje\or % 04-58 not in enco-uc.tex same as latin j?
\cyrilliclje   \or % 04-59
\cyrillicnje   \or % 04-5A
\cyrillictshe  \or % 04-5B
\cyrillickje   \or % 04-5C macedonian, not in enco-uc.tex
\cyrillicigrave \or % 04-5D macedonian, cyr i with grave not in enco-uc.tex
\cyrillicushrt \or % 04-5E
\cyrillicdzhe  \or % 04-5F
\cyrillicOMEGA \or % 04-60 Omega not in enco-uc.tex
\cyrillicomega \or % 04-61 omega not in enco-uc.tex
\cyrillicYAT   \or % 04-62 Yat not in enco-uc.tex
\cyrillicyat   \or % 04-63 Yat not in enco-uc.tex
\cyrillicEiotified \or % 04-64 iotified E not in enco-uc.tex
\cyrilliceiotified \or % 04-65 iotified e not in enco-uc.tex
\cyrillicLITTLEYUS \or % 04-66 Little Yus not in enco-enc.tex
\cyrilliclittleyus \or % 04-67 Little yus not in enco-enc.tex
\cyrillicLITTLEYUSiotified \or  % 04-68 Little Yus iotified not in enco-enc.tex
\cyrilliclittleyusiotified \or  % 04-69 Little yus iotified not in enco-enc.tex
\cyrillicBIGYUS\or % 04-6A Big Yus not in enco-enc.tex
\cyrillicbigyus\or % 04-6B Big yus not in enco-enc.tex
\cyrillicBIGYUSiotified\or % 04-6C Big Yus iotified not in enco-enc.tex
\cyrillicbigyusiotified\or % 04-6D Big yus iotified 

Re: [NTG-context] Russia (cyrillic letters)

2005-01-27 Thread Mikael Persson
On Thu, 27 Jan 2005 13:01:30 +0100, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Mikael Persson wrote:
> 
> > OK, so here they are. Hope I understood correctly how it works... :)
> > enco-004.tex
> > and
> > enco-uc-add.tex
> > I used the names from gucharmap (char map app for Gnome) where they
> > were not yet defined. The names is not always so short as one maybe
> > would like.
> 
> This one probably needs to be updated
> 
> (Adam: what to do with names, we have Greeka GreekA etc maybe it should be
> greeka greekA, but maybe that will clash some day; same for cyrillic)
> 
> Hans
> 

Hm, OK, I can update enco-cyr.tex aswell. Atleast for t2a. I don't
really know the differences between t2a, t2b and so on...

But how to do? Use \ShowFont and see what characters actually are
present, and then add the ones that need to be added? Or maybe there
is some spec file over the encodings :) Moreover I wonder if there is
any differences between t2a and cm-super-t2a...

I guess it would be nice wth hebrew and arabic too, as mentioned.
However, since I dont recognize the characters at all from these
alphabets I am not sure I am the person who should do this.

About the memory-saving \ucharfourhex you wrote about I assume you fix
the file to the right format Hans?

So, is there anything right now I can do for speeding ut getting
cyrillic letters via utf?

/Micke P
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Russia (cyrillic letters)

2005-01-29 Thread Mikael Persson
On Fri, 28 Jan 2005 10:07:35 +0100, Hans Hagen <[EMAIL PROTECTED]> wrote:
> I uploaded a new alpha release with the adapted / extended cyrillic/greek
> encoding vectors (enco-* & unic-*)
> 
> 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
> -
> 
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

Nice, but I can not get it work with utf yet. I try

\enableregime[utf]
%\useencoding[uc] Don't work with it uncommented either.

\definetypeface [russian]
  [rm] [serif] [computer-modern] [default] [encoding=cm-super-t2a] 
% neither with encoding=t2a nor cyr

\setupbodyfont[russian]

\starttext
 Ð  % Some russian characters
\stoptext

However, if I type \char 212 for example, I get a capital \Phi, as it
should be. How shoule a minimal working file look like?

Regards, Micke P
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Russia (cyrillic letters)

2005-01-29 Thread Mikael Persson
On Sat, 29 Jan 2005 14:38:26 +0100, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Mikael Persson wrote:
> 
> > \enableregime[utf]
> 
> > \definetypeface [russian]
> >   [rm] [serif] [computer-modern] [default] [encoding=cm-super-t2a]
> > % neither with encoding=t2a nor cyr
> 
> there is no cm-super-t2a encoding, just t2a should do
> 
> > \setupbodyfont[russian]
> >
> > \starttext
> >  Ð  % Some russian characters
> > \stoptext
> 
> well, it looks like russian in amy mailer -)
> 
> but shouldn't you enter utf8 code ?
> 
> Hans
> 

Hm, I am entering utf8 code. I am not sure how it got converted in the
email, however, when I type my .tex file I am sure that it is in
utf-8. But you mean that this example should work?

I attatch the testfile and the resulting pdf and logs and so on...

Micke P


u-test.tar.gz
Description: application/gzip-compressed
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Russia (cyrillic letters)

2005-01-31 Thread Mikael Persson
On Sun, 30 Jan 2005 22:55:51 +0100, h h extern <[EMAIL PROTECTED]> wrote:
> Mikael Persson wrote:
> 
> > Hm, I am entering utf8 code. I am not sure how it got converted in the
> > email, however, when I type my .tex file I am sure that it is in
> > utf-8. But you mean that this example should work?
> >
> > I attatch the testfile and the resulting pdf and logs and so on...
> 
> tracing shows that the utf part is okay:
> 
> \enableregime[utf]
> 
> % \definetypeface [russian]
> %   [rm] [serif] [computer-modern] [default] [encoding=t2a]
> %
> % \setupbodyfont[russian]
> 
> \starttext
> 
> \startbuffer
> ÃÅÃÂÃÂÃÂ ÃÂ ÃÅÃÂÃÂÃÂ % Some russian characters
> \stopbuffer
> 
> \chardef\utfunicodetracer=0 \blank \getbuffer \blank
> \chardef\utfunicodetracer=2 \blank \getbuffer \blank
> \chardef\utfunicodetracer=7 \blank \getbuffer \blank
> 
> \stoptext
> 
> but i cannot test the font part, can you send me a zip with your t2a tfm files
> and map file and enc file?
> 
> Hans

Just for information (mostly to the ones reading this email list from
archives). It now works using utf input and get. A minimal file:

% start of test file %
\enableregime[utf]
\useencoding[cyr]

\definetypeface [russian]
  [rm] [serif] [computer-modern] [default] [encoding=t2a]

\setupbodyfont[russian]
\starttext
 Ð   % Some russian characters
\stoptext
% stop of test file %

For this to work, you have to generate the tfm-files if you do not
already have them (which can be done with the afm2tfm util).

Thanks Hans and Adam for the fast replies to get this working :)

/Micke P
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Russia (cyrillic letters)

2005-02-13 Thread Mikael Persson
On Sun, 13 Feb 2005 10:34:22 +0100, Rob Ermers <[EMAIL PROTECTED]> wrote:
> Dear Contexers,
> 
> I am still struggling with a Russian text in koi8.
> The sample below, which I partially copied (from Mikael Persson's site)
> does not work.
> 
> Can anyone help me out?
> 
> Kind regards
> 
> Robert Ermers
> 
> ---
> 
> \enableregime[koi8-r]
> \useencoding[cyr]
> 
> \definetypeface [russian]
>[rm] [serif] [computer-modern] [default] [encoding=t2a]
> 
> \definetypeface [swedish]
>[rm] [serif] [latin-modern] [default] [encoding=texnansi]
> 
> \setupbodyfont[russian]
> 
> \starttext
> Some swedish text:
> 
> {\switchtobodyfont[swedish]Jag tycker att Katja studerar d\aring ligt.}
> 
> Some russian text:
> 
> ÂÌÁÇÏÓÌÏ×ÉÔ áÌÌÁÈ ÅÇÏ É ÅÇÏ ÂÌÉÖÎÉÈ ÂÌÁÇÏÒÏÄÎÅÊÛÅÇÏ ÐÒÏÉÓÈÏÖÄÅÎÉÑ É
> ÄÁÒÕÅÔ ÉÍ ÍÉÒ
> 
> %this sample works, but it's not koi8: Ìèå êàæåòñÿ, ÷òî Êàòÿ ïëîõî ó÷èòñÿ.
> \stoptext
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

Hm, there seems to be a problem somewhere, saving a file on my
computer, uploading it to the web-server, downloading it to your place
and opening it. It is probably the web server that tells it is not
koi8-r but iso8859-1 or something. However, the koi8-r is not yet
working. What is working is the Windows-1251 encoding, as in the
example (ok, type your own russian characters and be sure to save the
file in Windows-1251 encoding). I would recommend though, to use utf-8
as described at http://contextgarden.net/Russian . I should probably
remove my page and refer to the one at contextgarden instead.

I had a conversation with Hans about adding support for koi8r aswell,
but I don't know exactly what to do. If somebody tells me, then I'll
do it.

/Micke P

PS I spoke to another russian I know, who is a Windows person. She
told me that they use the Windows-1251 encoding at her department,
contrary to the first russian I asked who said koi8r was the most
common...
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lack of hyphenation

2005-02-28 Thread Mikael Persson
On Mon, 28 Feb 2005 20:54:07 +0100, Mats Broberg <[EMAIL PROTECTED]> wrote:
> Dear listmembers,
> 
> I would say that the risk of getting rivers in text typeset using TeX &
> children is minimum, as long as you choose sensible values for typesize
> and column width. And much, much less than in MS Word, InDesign,
> QuarkXPress etc.
> 
> Btw, here are a few 'Typographical Dreams' of mine, regarding ConTeXt:
> 
> - Penalty if consecutive lines have the same words typeset exactly above
> each other - e.g. in the beginning of a line, in the middle of the line
> etc. Catches your eye.
> 
> - Penalty for a hyphenated word as the last word on a page. And not
> putting it in an \mbox.
> 
> - In Swedish, if the last line in a column is the first line in a new
> paragraph, this last line is called "simple child of a whore". If the
> first line on a new page is the last line of the preceding page's last
> paragraph, this line is called "double child of a whore". Now, in
> InDesign and QuarkXPress you can set the software to move over the
> "simple child of a whore" to the next page, and, for "double child of a
> whore", to move over a few extra lines to the new page. However, this
> leaves you with a page that is one or more lines short. When working in
> these software, you can then slightly, slightly increase the spacing
> between letters on the page (perhaps only a few thousands of an em). If
> you are lucky, one of the preceding paragraph expands just enough for
> its last line move over to a second line, and you're home free. However,
> for book projects hundreds of pages long, this is something you'd want
> to automate. Don't know if it is possible in ConTeXt to automate this,
> but it would be great if it was.
> 
> Best regards,
> Mats Broberg
> 
> 

Hej Mats!

I would like to recommend the interesting document

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

Mvh, Micke P

PS
Fun to see another swede here on the list
DS
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Russian

2005-04-13 Thread Mikael Persson
On 4/13/05, Albrecht Kauffmann <[EMAIL PROTECTED]> wrote:
> 
> 
> On Wed, 13 Apr 2005, Albrecht Kauffmann wrote:
> 
> > Hi all,
> >
> > I've tried to typeset in Russian with utf-8 fonts, like explained at
> > contextgarden.net/Russian. cm-super-fonts are installed, included tfm-,
> > enc- and map-files. Running the example
> >
> > \enableregime[utf]
> > \useencoding[cyr]
> >
> > \definetypeface [russian]
> >   [rm] [serif] [computer-modern] [default] [encoding=t2a]
> >
> > \setupbodyfont[russian]
> > \starttext
> >  ?  % Some Russian characters
> > \stoptext
> >
> > I got error messages (see the attached logfile): the font larm1000 was not
> > found.
> >
> > Have I to edit some lines in type-map.tex? Or what could be wrong?
> 
> If I add to type-map.tex:
> \starttypescript [map] [computer-modern] [t2a]
>\loadmapfile[cm-super-t2a.map]
> \stoptypescript
> 
> I get russian fonts, but these are not the right ones.
> 
> I would be very glad, if anyone could help me to solve the problem.
> 
> Thanks
> Albrecht
> 
> 

Hello Albrecht,

Are you sure that you have saved your file in the utf-8 encoding and
not in koi8r or something? The problem of getting the wrong characters
can come from that. Moreover, the example:

%%
\enableregime[utf]
\useencoding[cyr]

\definetypeface [russian]
  [rm] [serif] [computer-modern] [default] [encoding=t2a]

\setupbodyfont[russian]
\starttext
Мама и Папа % Some Russian characters
\stoptext
%%

from the wiki page works here. (Ok, since I wrote the page it would be
kind of weird if it did not). Have you generated the tmf files?

Have anyone else tried if it works for them?

Regards, Micke P
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Russian

2005-04-14 Thread Mikael Persson
Hello Albrecht,

Hm, I got no idea but to upgrade your context distribution. From the
wiki page it seems I tested it on a context from 27th or 30th of
january this year, and yours seems to be from th 28th. Sorry for being
of no great help...

/Micke P

On 4/14/05, Albrecht Kauffmann <[EMAIL PROTECTED]> wrote:
> Dear Mikael,
> 
> thank you very much for your interest. tfm-files I have generated, and the
> tex-file is really saved in utf-8-encoding (I proved this with yudit).
> After editing the lines
> 
> \starttypescript [map] [computer-modern] [t2a]
>   \loadmapfile[cm-super-t2a.map]
> \stoptypescript
> 
> in type-map.tex, the interpreter finds the font sfrm1000; but the
> characters are wrong. I send you the log- and pdf-file attached.
> 
> Thanks again
> Albrecht
> 
> 
> On Wed, 13 Apr 2005, Mikael Persson wrote:
> 
> > On 4/13/05, Albrecht Kauffmann <[EMAIL PROTECTED]> wrote:
> >
> >
> > On Wed, 13 Apr 2005, Albrecht Kauffmann wrote:
> >
> > > Hi all,
> > >
> > > I've tried to typeset in Russian with utf-8 fonts, like explained at
> > > contextgarden.net/Russian. cm-super-fonts are installed, included tfm-,
> > > enc- and map-files. Running the example
> > >
> > > \enableregime[utf]
> > > \useencoding[cyr]
> > >
> > > \definetypeface [russian]
> > >   [rm] [serif] [computer-modern] [default] [encoding=t2a]
> > >
> > > \setupbodyfont[russian]
> > > \starttext
> > >  ?  % Some Russian characters
> > > \stoptext
> > >
> > > I got error messages (see the attached logfile): the font larm1000 was not
> > > found.
> > >
> > > Have I to edit some lines in type-map.tex? Or what could be wrong?
> >
> > If I add to type-map.tex:
> > \starttypescript [map] [computer-modern] [t2a]
> >\loadmapfile[cm-super-t2a.map]
> > \stoptypescript
> >
> > I get russian fonts, but these are not the right ones.
> >
> > I would be very glad, if anyone could help me to solve the problem.
> >
> > Thanks
> > Albrecht
> >
> >
> 
> Hello Albrecht,
> 
> Are you sure that you have saved your file in the utf-8 encoding and
> not in koi8r or something? The problem of getting the wrong characters
> can come from that. Moreover, the example:
> 
> %%
> \enableregime[utf]
> \useencoding[cyr]
> 
> \definetypeface [russian]
>   [rm] [serif] [computer-modern] [default] [encoding=t2a]
> 
> \setupbodyfont[russian]
> \starttext
>  ?  % Some Russian characters
> \stoptext
> %%
> 
> from the wiki page works here. (Ok, since I wrote the page it would be
> kind of weird if it did not). Have you generated the tmf files?
> 
> Have anyone else tried if it works for them?
> 
> Regards, Micke P
> 
>
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] looking for document ...

2005-04-18 Thread Mikael Persson
On 4/19/05, Paul Tremblay <[EMAIL PROTECTED]> wrote:
> About a week ago I came across a very nice and interesting document in
> ConTeXt, and now for the life of me I can't fine it and want to. I
> believe the author is someone on this mailing list. The example was a
> book on astronomy or physics. The author described himself as a
> serious book maker. The actual book itself was set with very narrow
> pages with scholarly notes. There were two pages from the book. The
> second pages started with a graphic.
> 
> Sound familiar?
> 
> Paul

I guess you mean

http://home.salamander.com/~wmcclain/context-help.html

and the pdf link from that page

http://home.salamander.com/~wmcclain/csky-sample.pdf

/Micke P
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Is there a mathematica typesetting manual for ConTeXt ?

2005-05-12 Thread Mikael Persson
On 5/12/05, redox <[EMAIL PROTECTED]> wrote:
> hi all,
> 
> I am a newbie of ConTeXt, i'm sorry if my question is foolish.
> 
> I have two questions:
> 
> 1.
> Is there a mathematica typesetting manual for ConTeXt ? There seems no
> ConTeXt manual focused on mathematica. Or I just need to find a
> mathematica manual for LaTeX ?

What do you mean by mathematica typesetting? I am sometimes using the
Mathematica math fonts. I also wrote somekind of macro that try to
immitate Mathematica notebooks, a shot is given at

http://www.math.chalmers.se/~mickep/mma.png

The files for the fonts (the fonts are freely available) can I share
without problems, but the macros for the book I can not share (yet at
least).

If this did not help in any way, please ask again.

/Micke P

> 2.
> I'm running TeTeX 2.0.2 on Debian Sarge, and the version of texexec is
> 3.1 which I think is out of date, so i tried to update ConTeXt.
> 
> I downloaded www.pragma-ade.com/context/latest/cont-tmf.zip , and
> unziped it to /usr/local/share/texmf/, then I ran "mktexlsr" and
> "texexec --make --all".
> 
> But when i ran "texexec --version", the version was still 3.1. It seemed
> that the texexec wasn't updated.
> 
> Thanks in advance!!
> 
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] setuphead

2005-06-22 Thread Mikael Persson
On 6/22/05, Wolfgang Zillig <[EMAIL PROTECTED]> wrote:
> Hello all,
> 
> I think the solution is quite simple but I don't know how to do it.
> I want to start a new page with each section, so I tried:
> 
>   \setuphead[section][style=\bfb,tolerance=verytolerant,page=yes]
> 
> but this does not work. What is is page=yes for?
> 
> Thanks
> 
> Wolfgang

Hello Wolfgang,

Your setup works on live.contextgarden.net, so there might be a
problem at your side. What it could be, I have no clue...
%%% file that works
\setuphead[section][style=\bfb,tolerance=verytolerant,page=yes]
\starttext
\section{The World}
Hello world!
\section{The confirm}
OK
\stoptext
%%%
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] is it possible to add lengths?

2005-07-09 Thread Mikael Persson
On 7/9/05, Paul Tremblay <[EMAIL PROTECTED]> wrote:
> Is it possible to add lengths in ConTexT?
> 
> backspace= 55m + 1in
> 
> Thanks
> 
> Paul
> 
> 

Hello Paul,

I think
backspace=\dimexpr(55mm+1in)
should work.

Best regards, Micke P
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Paragraph internal graphic/layout inquiry.

2005-07-19 Thread Mikael Persson
On 7/13/05, Hartmut Henkel <[EMAIL PROTECTED]> wrote:
> On Wed, 13 Jul 2005, Taco Hoekwater wrote:
> 
> > David Wooten wrote:
> > > Mr. Tufte has an interesting example from da Vinci: http://
> > > trichotomic.net/Leonardo.jpg (76k). Is this type of layout currently
> > > possible (or perhaps a better question, wieldy) within ConTeXt?
> >
> > In a standard TeX installation, it is not possible to make this type
> > of paragraph without massive amounts of manual intervention, because
> > TeX's paragraphs cannot (normally) contain holes.
> 
> FWIW, there is a pointer to a similar problem in DEK's "Digital
> Typography", chapter 9: "Problem for a Saturday Morning", published in
> TUGboat 8 (1987) (Harmless title for the amount of macros piling up
> there :-) An article from Alan Hoenig is also mentioned, which can be
> found there:
> 
> http://www.tug.org/TUGboat/Articles/tb08-2/tb18hoenig.pdf
> 

Hi,

Hans, is this something we can expect some nice ConTeXt-ish macros for?

Best regards, Micke P
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Fonts readily available in Context

2009-01-13 Thread Mikael Persson
> There is also support for fourier, euler, and kurier, but no you have to
> invoke them explicitly, useing \definetypeface.

Is there really support for fourier? I've not been able to get it
working since long time ago. I get utopia text working, but not
fourier math. See the previous threads:
http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html
and
http://archive.contextgarden.net/message/20080928.193441.874bb515.en.html

If there is anything I can do, please tell me.

/Mikael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Fourier in ConTeXt (was Fonts readily available in Context)

2009-01-14 Thread Mikael Persson
Hi,

I am starting a new thread about this:

Is there really support for fourier in current ConTeXt? I've not been
able to get it
working since long time ago. I get utopia text working, but not
fourier math. See the previous threads:
http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html
and
http://archive.contextgarden.net/message/20080928.193441.874bb515.en.html

1) Can anyone explain to me why these fonts are not working at the moment?
2) Is there any plan on fixing this issue?
3) If there is anything I (as a simple user) can do, please tell me.

Kindest regards, Mikael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fourier in ConTeXt (was Fonts readily available in Context)

2009-01-14 Thread Mikael Persson
On Wed, Jan 14, 2009 at 1:16 PM, Mojca Miklavec
 wrote:
> On Wed, Jan 14, 2009 at 9:50 AM, Mikael Persson wrote:
>> Hi,
>>
>> I am starting a new thread about this:
>>
>> Is there really support for fourier in current ConTeXt? I've not been
>> able to get it
>> working since long time ago. I get utopia text working, but not
>> fourier math. See the previous threads:
>> http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html
>> and
>> http://archive.contextgarden.net/message/20080928.193441.874bb515.en.html
>>
>> 1) Can anyone explain to me why these fonts are not working at the moment?
>> 2) Is there any plan on fixing this issue?
>> 3) If there is anything I (as a simple user) can do, please tell me.
>>
>> Kindest regards, Mikael
>
> Hello Mikael,
>
> I did all kinds of experiments, so I'm not sure if it will work for
> you, but it did work for me. Can you try to put this on top of your
> document?
>
> \startmathcollection[default]
> \definemathsymbol [rbrace][close]   [sy] ["67] [ex] ["AA]
> \definemathsymbol [lbrace][open][sy] ["66] [ex] ["A9]
> \stopmathcollection
>
> It seems that mathcollection[fou] is not loaded properly, so the
> definitions from math-fou.tex are ignored.
>
> Mojca
>
> PS: fourier is not in minimals. At least not yet.

Hi Mojca,

thank you for your answer. Now it actually works with these braces. I
tried to do the same to get \hat working. Adding

  \definemathsymbol [hat]  [accent] [mr] ["2]

(inside \startmahtcollection[default] \stopmathcollection) from
math-fou.tex, however $\hat{f}$ now gives f without a hat. Do I
missunderstand something?

However, it would be nice to get these math-fou.tex working. I read
from the LaTeX file fourier.sty the line
\DeclareMathAccent{\hat}{\mathalpha}{operators}{2}
but I'm not sure howto translate that into ConTeXt code, the naive

  \definemathsymbol [hat]  [alpha] [op] ["2]

did not work...

Once this is fixed I can collect the needed files and send them to
you(?) to get them included in the minimals if that is what people
want (or make a package of it if that is better)

Best regards, Mikael

PS, I'm currently testing with mkiv, with a first-setup.sh:ed updated
minimal 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fourier in ConTeXt (was Fonts readily available in Context)

2009-01-14 Thread Mikael Persson
On Wed, Jan 14, 2009 at 3:10 PM, Mojca Miklavec
 wrote:
> On Wed, Jan 14, 2009 at 1:57 PM, Mikael Persson  wrote:
>>
>> However, it would be nice to get these math-fou.tex working.
>
> \enablemathcollection[fou]

Adding \enablemathcollection[fou] to my document seem to enable the
\lbrace and \rbrace and greek capital letters and probably more.

>
> ... but it should be automatic. Hans - what's the intended usage of
> \enablemathcollection? I mean - at what place should it be called?
>
> Mojca
>
>
> PS: minimal example:
>
> \usetypescript[fourier][ec]
> \setupbodyfont[fourier,10pt]
> % \enablemathcollection[fou]
> \starttext
> \startformula
> \left\{a^{b^{c^{d^{e^{f^{g^{h}}}\right\}
> \stopformula
> \stoptext

With
\definemathsymbol [hat]  [accent] [tf] ["2]
instead of
\definemathsymbol [hat]  [accent] [mr] ["2]

the \hat command works in mkii (if I change
\definefontsynonym [MathRoman] [Utopia-Regular]
to
\definefontsynonym [MathRoman] [futr8r]
in the type script)

Mojca, does it work both in mkii and mkiv for you?

Best regards, Mikael
/Mikael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fourier in ConTeXt (was Fonts readily available in Context)

2009-01-15 Thread Mikael Persson
On Wed, Jan 14, 2009 at 6:26 PM, Mojca Miklavec
 wrote:
> On Wed, Jan 14, 2009 at 3:54 PM, Mikael Persson wrote:
>>
>> Mojca, does it work both in mkii and mkiv for you?
>
> I only tested in mkii so far (I suspect that mkiv suffers from the
> lack of Utopia in proper format, so one would need to check
> typescripts).
>
> Mojca

Thank you Mojca for your help!

I'm also being a bit curious about the [tf] in

\definemathsymbol [hat]  [accent] [tf] ["2]

In math-fou.tex I see
mi (Math Italics?)
sy (Symbols?)
ex (Extension?)
mr (Math Roman?)

0) Are those names correct?
1) What does the [tf] stand for? Text Font? And what happened with the [mr]?
2) I guess all [mr] (10 or so) in math-fou.tex safely can be changed to [tf]?
3) Does anyone know what has to be done to get this working in mkiv?
(I'll stick with mkii in the mean time)

Best regards, Mikael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fourier in ConTeXt (was Fonts readily available in Context)

2009-01-15 Thread Mikael Persson
On Thu, Jan 15, 2009 at 6:37 PM, Aditya Mahajan  wrote:
> On Thu, 15 Jan 2009, Mojca Miklavec wrote:
>
>> On Thu, Jan 15, 2009 at 2:11 PM, Mikael Persson wrote:
>>>
>>> On Wed, Jan 14, 2009 at 6:26 PM, Mojca Miklavec
>>>  wrote:
>>>>
>>>> On Wed, Jan 14, 2009 at 3:54 PM, Mikael Persson wrote:
>>>>>
>>>>> Mojca, does it work both in mkii and mkiv for you?
>>>>
>>>> I only tested in mkii so far (I suspect that mkiv suffers from the
>>>> lack of Utopia in proper format, so one would need to check
>>>> typescripts).
>>>>
>>>> Mojca
>>>
>>> Thank you Mojca for your help!
>>>
>>> I'm also being a bit curious about the [tf] in
>>>
>>> \definemathsymbol [hat]  [accent] [tf] ["2]
>>>
>>> In math-fou.tex I see
>>> mi (Math Italics?)
>>> sy (Symbols?)
>>> ex (Extension?)
>>> mr (Math Roman?)
>>>
>>> 2) I guess all [mr] (10 or so) in math-fou.tex safely can be changed to
>>> [tf]?
>>
>> I would not just bet on it. I would try it first. If mr works, one
>> should better leave mr, but I have no idea why it fails.
>
> The reason \hat is defined using tf is because the math font does not have
> accents. This is the same thing with Euler, and last I checked (about a
> months ago), Euler accents work perfectly in MKIV. So, in principle it
> should  work with Fourier also.
>
> I do not have time right now to look into it, maybe sometime next week.
>
>>> 3) Does anyone know what has to be done to get this working in mkiv?
>>
>> Hans, what's the strategy with non-unicode fonts, in particular
>> Utopia? It doesn't come in otf format, but could still be used in both
>> mkiv and XeTeX. Is there some type-something.tex foreseen for such
>> fonts?
>
> Another possibility is to redistribute the fonts as otf. From what I
> understand from the license (http://tug.ctan.org/tex-archive/fonts/utopia/)
> it is ok to modify the fonts (ie change the format) as long as you do not
> call the modified font utopia, and remove all references to Adobe. Are there
> tools to convert type 1 to otf?
>
> Aditya

Thanks Mojca and Aditya for your help. I just found out that if I change

\definefontsynonym [MathRoman] [Utopia-Regular]
to
\definefontsynonym [MathRoman] [futr8t]
in the typescript file, and define the math accents as:

\def\grave{\mathaccent"7000}
\def\acute{\mathaccent"7001}
\def\hat{\mathaccent"7002}
\def\tilde{\mathaccent"7003}
\def\ddot{\mathaccent"7004}
\def\mathring{\mathaccent"7006}
\def\check{\mathaccent"7007}
\def\breve{\mathaccent"7008}
\def\bar{\mathaccent"7009}
\def\dot{\mathaccent"700A}

they all work (both in mkii and mkiv). Can someone explain how to
convert these definitions to context versions, for example like
  \definemathsymbol [acute][accent] [tf] ["1]?

Best regards, Mikael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fourier in ConTeXt (was Fonts readily available in Context)

2009-01-16 Thread Mikael Persson
On Fri, Jan 16, 2009 at 8:34 AM, Mikael Persson  wrote:
> On Thu, Jan 15, 2009 at 6:37 PM, Aditya Mahajan  wrote:
>> On Thu, 15 Jan 2009, Mojca Miklavec wrote:
>>
>>> On Thu, Jan 15, 2009 at 2:11 PM, Mikael Persson wrote:
>>>>
>>>> On Wed, Jan 14, 2009 at 6:26 PM, Mojca Miklavec
>>>>  wrote:
>>>>>
>>>>> On Wed, Jan 14, 2009 at 3:54 PM, Mikael Persson wrote:
>>>>>>
>>>>>> Mojca, does it work both in mkii and mkiv for you?
>>>>>
>>>>> I only tested in mkii so far (I suspect that mkiv suffers from the
>>>>> lack of Utopia in proper format, so one would need to check
>>>>> typescripts).
>>>>>
>>>>> Mojca
>>>>
>>>> Thank you Mojca for your help!
>>>>
>>>> I'm also being a bit curious about the [tf] in
>>>>
>>>> \definemathsymbol [hat]  [accent] [tf] ["2]
>>>>
>>>> In math-fou.tex I see
>>>> mi (Math Italics?)
>>>> sy (Symbols?)
>>>> ex (Extension?)
>>>> mr (Math Roman?)
>>>>
>>>> 2) I guess all [mr] (10 or so) in math-fou.tex safely can be changed to
>>>> [tf]?
>>>
>>> I would not just bet on it. I would try it first. If mr works, one
>>> should better leave mr, but I have no idea why it fails.
>>
>> The reason \hat is defined using tf is because the math font does not have
>> accents. This is the same thing with Euler, and last I checked (about a
>> months ago), Euler accents work perfectly in MKIV. So, in principle it
>> should  work with Fourier also.
>>
>> I do not have time right now to look into it, maybe sometime next week.
>>
>>>> 3) Does anyone know what has to be done to get this working in mkiv?
>>>
>>> Hans, what's the strategy with non-unicode fonts, in particular
>>> Utopia? It doesn't come in otf format, but could still be used in both
>>> mkiv and XeTeX. Is there some type-something.tex foreseen for such
>>> fonts?
>>
>> Another possibility is to redistribute the fonts as otf. From what I
>> understand from the license (http://tug.ctan.org/tex-archive/fonts/utopia/)
>> it is ok to modify the fonts (ie change the format) as long as you do not
>> call the modified font utopia, and remove all references to Adobe. Are there
>> tools to convert type 1 to otf?
>>
>> Aditya
>
> Thanks Mojca and Aditya for your help. I just found out that if I change
>
>\definefontsynonym [MathRoman] [Utopia-Regular]
> to
>\definefontsynonym [MathRoman] [futr8t]
> in the typescript file, and define the math accents as:
>
> \def\grave{\mathaccent"7000}
> \def\acute{\mathaccent"7001}
> \def\hat{\mathaccent"7002}
> \def\tilde{\mathaccent"7003}
> \def\ddot{\mathaccent"7004}
> \def\mathring{\mathaccent"7006}
> \def\check{\mathaccent"7007}
> \def\breve{\mathaccent"7008}
> \def\bar{\mathaccent"7009}
> \def\dot{\mathaccent"700A}
>
> they all work (both in mkii and mkiv). Can someone explain how to
> convert these definitions to context versions, for example like
>  \definemathsymbol [acute][accent] [tf] ["1]?
>
> Best regards, Mikael
>

I thought I tested this before, but

\startmathcollection [fou]
  \definemathsymbol [acute][accent] [mr] ["1]
  \definemathsymbol [grave][accent] [mr] ["0]
  \definemathsymbol [ddot] [accent] [mr] ["4]
  \definemathsymbol [tilde][accent] [mr] ["3]
  \definemathsymbol [bar]  [accent] [mr] ["9]
  \definemathsymbol [breve][accent] [mr] ["8]
  \definemathsymbol [check][accent] [mr] ["7]
  \definemathsymbol [hat]  [accent] [mr] ["2]
  \definemathsymbol [dot]  [accent] [mr] ["A]
  \definemathsymbol [mathring] [accent] [mr] ["6]
\stopmathcollection

works as long as one has

\definefontsynonym [MathRoman] [futr8t]

and not

\definefontsynonym [MathRoman] [Utopia-Roman]% putr8a

or

\definefontsynonym [MathRoman] [futr8r]

or ...

It thus seems that type-fou.tex does not need any changes.

Below is a working type script:

% type-fourier.tex
\starttypescript [serif] [utopia]
\setups[font:fallback:serif]
\definefontsynonym [Serif]   [Utopia-Regular]
\definefontsynonym [SerifItalic] [Utopia-Italic]
\definefontsynonym [SerifBold]   [Utopia-Bold]
\definefontsynonym [SerifBoldItalic] [Utopia-BoldItalic]
\stoptypescript

\starttypescript [serif] [utopia]
\definefontsynonym [Utopia-Regular][file:putr8a][features=default]
\

Re: [NTG-context] Two questions - Cross Referencing (Automated label generation + Random items)

2009-03-04 Thread Mikael Persson
On Wed, Mar 4, 2009 at 4:53 PM, Curious Learn  wrote:
>
>> The low level way to do this is:
>>
>> \def\AnsT#1\eAns
>>    {\doglobal\increment\choicecounter
>>     \startitem[\choicecounter]#1\stopitem}
>>
>
>> Wolfgang
>
>
> Beautiful! Thanks again Wolfgang. I tried the low level command and it works
> great. I will try the Context way later.
>
> Hans, thanks very much for bringing to my attention the file m-educat.tex. Can
> you please tell me where I can find it?
>
> Even if I do not use it as it is, I am sure I can learn something and it can
> give me some ideas.
>

Dear Curious Learn (strange name, it can be considered rude not to use
the real one)

You can find m-educat.tex at
tex/texmf-context/tex/context/base/m-educat.tex
if you use the minimals
It is also listed at
http://wiki.contextgarden.net/Modules
if you dont have that installation.

Best regards, Mikael Persson
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Thanks. Two new questions: rotate and scale

2009-03-13 Thread Mikael Persson
On Fri, Mar 13, 2009 at 2:39 PM, Curious Learn  wrote:
> Taco Hoekwater  elvenkind.com> writes:
>
>
>> >> (2) Is there a command to scale the whole picture...not the components?
>>
>> Parse error. In my view, the whole picture *is* the components.
>>
>> Best wishes,
>> Taco
>
> Hi Taco,
>
> Sorry for the typo and for not being clear. I meant the following. I know that
> "scaled" command can be used to scale any particular component. To scale the
> whole picture does one have to scale each and every component individually, or
> is there one command that scales every component.
>
> One way is perhaps to define a variable, say u=1cm and express all 
> measurements
> in terms of "u". Then by changing just "u" one can scale the whole picture 
> (and
> all the components) up or down. Is there another way? For example, in TikZ 
> there
> is a command "scale" which scales the entire picture if put as an option to
> \begin{tikzpicture}. I was wondering if something like that is available in
> Metapost too.
>

Hi,

I use the method of
u=1mm;
in the beginning and then use u as the "unit".
I think "currentpicture" is what you are after otherwise, but not sure.

Mikael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to use MPgraphic with options?

2009-04-08 Thread Mikael Persson
I think this is one way:

\startuseMPgraphic{ARule}
 draw origin -- (\MPvar{mylength},0) ;
\stopuseMPgraphic

\def\ARule#1{%
\setupMPvariables[ARule][mylength=#1]
\useMPgraphic{ARule}
}

\starttext
Foo \ARule{5mm} bar \ARule{10mm}
\stoptext

Best regards, Mikael

On Thu, Apr 9, 2009 at 8:07 AM, Wei-Wei Guo  wrote:
> Dear all,
>
> I need to use many rules with different lengths. Is there any way to
> implement
> function like below:
>
>  \startuniqueMPgraphic{ARule}{length}
>  draw origin -- (\MPvar{length},0) ;
>  \stopuniqueMPgraphic
>
>  \uniqueMPgraphic[length=5mm]{ARule}
>
> The example cannot be run. I only use it to explain what I want.
>
> Any suggestion is appreciated.
>
> Best wishes,
> Wei-Wei
> ___
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \externalfigure[eps file] does not work

2009-10-05 Thread Mikael Persson
On Mon, Oct 5, 2009 at 4:54 PM, luigi scarso  wrote:
>
>
> On Mon, Oct 5, 2009 at 4:52 PM, Xan  wrote:
>>
>> En/na Xan ha escrit:
>>>
>>> Hi,
>>>
>>> If I put \externalfigure[by.eps][width=2cm] I obtain "state=unknown" in
>>> the pdf.
>>> The by.eps is the file in http://creativecommons.org/about/downloads/.
>>>
>>> Is the eps format supported by ConTeXt?
>>> I use MKII.
>>>
>>> Thanks a lot,
>>> Xan.
>>>
>> I have to pass to pdf (with epstopdf) and then invoke
>> \externalfigure[by.pdf]
>
> true.
> --
> luigi

Speaking about this, I read
http://www.texdev.net/2009/09/28/eps-graphics-with-pdflatex/ some days
ago. Maybe this is also something for ConTeXt mkii? What about luatex
and different formats?

Mikael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] fonts disappear sometimes

2009-10-25 Thread Mikael Persson
On Fri, Oct 23, 2009 at 3:58 PM, Mikael Persson  wrote:
> Dear list,
>
> I just installed the latest minimals, together with Wolfgangs typescript 
> files.
>
> 1) If I put the type-script files in
> /home/mickep/ConTeXt/tex/texmf-local/tex/context/third/typescripts/
> then they are not used at all, although
> luatools -find-file type-adobe.tex
> gives
> /home/mickep/ConTeXt/tex/texmf-local/tex/context/third/typescripts/type-adobe.tex
>
> 2) If I put the type-adobe.{tex,mkii,mkiv} files in the same directory
> as the document, then the following happens:
>
> Compiling this minimal document (saved as mytest.tex):
>
> \usetypescriptfile[type-adobe.tex] % load the typescript file
> \usetypescript[minion] % load the typescript
> \setupbodyfont[minion,12pt]
> %\setupbodyfont[minion,14pt]
> \starttext
> Test
> \stoptext
>
> I get an empty document, but no error. If I comment the 12pt line and
> uncomment the 14pt line then it works and I get the Minion fonts!!
>
> I compile with
>
> texexec --lua mytest.tex
>
> Moreover,
>
> mtxrun --script fonts --list | grep Minion
>
> gives
>
> minionprobold                       Minion Pro Bold
> /home/mickep/.fonts/MinionPro-Bold.otf
> minionproboldit                     MinionPro-BoldIt
> /home/mickep/.fonts/MinionPro-BoldIt.otf
> minionprobolditalic                 Minion Pro Bold Italic
> /home/mickep/.fonts/MinionPro-BoldIt.otf
> minionproit                         MinionPro-It
> /home/mickep/.fonts/MinionPro-It.otf
> minionproitalic                     Minion Pro Italic
> /home/mickep/.fonts/MinionPro-It.otf
> minionproregular                    Minion Pro Regular
> /home/mickep/.fonts/MinionPro-Regular.otf
>
> I can add by noting that I have the same problem for all other fonts I
> try to install.
>
> Thanks in advance for your help
>
> Mikael
>

Sorry, but I answer this myself. When I compile with context
mytest.tex everything works. So, I guess I should compile with that
command instead from now on.

Mikael
___
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] fonts disappear sometimes

2009-10-25 Thread Mikael Persson
Dear list,

I just installed the latest minimals, together with Wolfgangs typescript files.

1) If I put the type-script files in
/home/mickep/ConTeXt/tex/texmf-local/tex/context/third/typescripts/
then they are not used at all, although
luatools -find-file type-adobe.tex
gives
/home/mickep/ConTeXt/tex/texmf-local/tex/context/third/typescripts/type-adobe.tex

2) If I put the type-adobe.{tex,mkii,mkiv} files in the same directory
as the document, then the following happens:

Compiling this minimal document (saved as mytest.tex):

\usetypescriptfile[type-adobe.tex] % load the typescript file
\usetypescript[minion] % load the typescript
\setupbodyfont[minion,12pt]
%\setupbodyfont[minion,14pt]
\starttext
Test
\stoptext

I get an empty document, but no error. If I comment the 12pt line and
uncomment the 14pt line then it works and I get the Minion fonts!!

I compile with

texexec --lua mytest.tex

Moreover,

mtxrun --script fonts --list | grep Minion

gives

minionprobold   Minion Pro Bold
/home/mickep/.fonts/MinionPro-Bold.otf
minionproboldit MinionPro-BoldIt
/home/mickep/.fonts/MinionPro-BoldIt.otf
minionprobolditalic Minion Pro Bold Italic
/home/mickep/.fonts/MinionPro-BoldIt.otf
minionproit MinionPro-It
/home/mickep/.fonts/MinionPro-It.otf
minionproitalic Minion Pro Italic
/home/mickep/.fonts/MinionPro-It.otf
minionproregularMinion Pro Regular
/home/mickep/.fonts/MinionPro-Regular.otf

I can add by noting that I have the same problem for all other fonts I
try to install.

Thanks in advance for your help

Mikael
___
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] texshow-web (was: colors without \definecolor)

2010-02-05 Thread Mikael Persson
Dear list and Patrick,

from texshow-web page ( http://texshow.contextgarden.net/ ) I read

"texshow-web is a web application for all user-commands that can be
used in ConTeXt."

However, I see that \colored is not inthere. This is also true for
some other commands appearing at this list occasionally (usually dug
from source by Wolfgang). Is this because

1) the texshow is not updated?
2) these commands are "not meant" for users?
3) any other reason?

I think the texshow-web is a very useful source of information. An
updated version would be really wonderful!

/Mikael

-- Forwarded message --
From: Wolfgang Schuster 
Date: Fri, Feb 5, 2010 at 8:31 AM
Subject: Re: [NTG-context] colors without \definecolor
To: mailing list for ConTeXt users 


Am 04.02.10 21:41, schrieb Philipp Gesang:
>
> Hi all,
>
>
> I understand that in order to use a color with \color[somecolor]{colored
> text} I first have to \definecolor[somecolor][r=.4,g=0,b=1].  Currently
> I'm trying to do automated colorizing with the help of some lua code and
> I'd like to make up rgb vectors on the spot without having to
> \definecolor them first, e.g. something like \color[r=.4,g=0,b=1]
> {colored text}.  Is there a way to achieve this in mkiv?  (Right now I'm
> assigning new rgb values to the same color "name" whenever the function
> is called that concatenates the next \color[]{} statement.  This seems a
> bit verbose and hacky to me.)

\colored[r=...,g=...,b=...]{...}

or

{\colored[r=...,g=...,b=...]...}

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
___
___
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] texshow-web (was: colors without \definecolor)

2010-02-05 Thread Mikael Persson
Thanks for you answer, Hans.

Do they appear automatically in texshow or does someone have to update
by hand? How long does it typically take? Is there something one can
do?

Mikael

On Fri, Feb 5, 2010 at 9:21 AM, Hans Hagen  wrote:
> On 5-2-2010 9:00, Mikael Persson wrote:
>
>> 3) any other reason?
>
> it's a rather recently added command
>
> 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] xpdf segmentation fault

2010-02-08 Thread Mikael Persson
That example works fine here (both with mkii and mkiv, running ConTeXt
 ver: 2009.11.24 10:13 MKIV  fmt: 2010.2.8  int: english/english) and
xpdf 3.02-1.4ubuntu2.

Can you attach the pdf you get? I attach the one I get from mkiv.

Mikael

On Mon, Feb 8, 2010 at 1:10 PM, Peter Münster  wrote:
> Hello,
>
> I don't know, if this is a ConTeXt problem (wrong PDF) or an xpdf problem.
>
> Here the test-file, whose pdf-result xpdf cannot read:
>
> \setupinteraction[state=start]
> \placebookmarks[chapter]
> \starttext
> \chapter{bla}
> \stoptext
>
> Should I report this to the xpdf-authors?
>
> Cheers, Peter
>
> --
> Contact information: http://pmrb.free.fr/contact/
>
>
> ___
> 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
> ___
>


peter.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] What do you miss in ConTeXt?

2010-02-10 Thread Mikael Persson
On Mon, Feb 8, 2010 at 12:25 PM, Wolfgang Schuster
 wrote:
> Hi all,
>
> ConTeXt has many features but sometimes there is something missing, what
> feature or package do you miss which is already available in another TeX
> system or unavailable in any TeX system?
>
> Wolfgang
>

Thanks for asking, Wolfgang.

I would like support for more fonts out of the box (in the minimals).
For example it would be really nice to be able to use
utopia+fourier ( http://tug.ctan.org/tex-archive/fonts/fourier-GUT/ )
charter+mathdesign (
http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=mathdesign )

Mikael
___
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] Mathdesign and Fourier fonts (was What do you miss in ConTeXt?)

2010-02-14 Thread Mikael Persson
On Wed, Feb 10, 2010 at 3:24 PM, Wolfgang Schuster
 wrote:
> Am 10.02.10 09:00, schrieb Mikael Persson:
>
>> I would like support for more fonts out of the box (in the minimals).
>> For example it would be really nice to be able to use
>> utopia+fourier ( http://tug.ctan.org/tex-archive/fonts/fourier-GUT/ )
>> charter+mathdesign (
>> http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=mathdesign )
>
> MkIV has support for the Charter and the Mathdesign fonts.
>
> \definetypafec[charter][rm][serif][charter]     [default]
> %\definetypafec[charter][mm][math] [mathdesignch][default]
> \definetypafec[charter][mm][math] [charter]     [default]
>
> What's missing are the fonts but they are already on the server [1],
> Mojca should be able to tell you how you can install them.
>
> [1] http://minimals.contextgarden.net/current/fonts/extra/
>
> Wolfgang

Thanks for your reply Wolfgang. I use the minimals and have some
further questions:

1) Is there any way to use first-setup.sh to install these fonts?

2) The type1 dir is empty. Is that on purpose? Should one download the
pfb files from ctan?

3) Will there be any support of the Fourier fonts? I have asked this
before, sorry about that, but I'm kind of clueless about the present
situation.

Mikael
___
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] Mathdesign and Fourier fonts (was What do you miss in ConTeXt?)

2010-02-16 Thread Mikael Persson
Thank you Mojca and Aditya for your answers,

I hope the mathdesign part of mtx-update.lua will end up in the
orignal file. I do not know how to use it now.

If I save this file and update with "sh firstsetup.sh --extras=all"
(or --extras=mathdesign) it seems that the mtx-update.lua is
overwritten with the version from the server. I do not know howto
upgrade with mtx-update.lua without firstsetup.sh.

About the fourier fonts. Is there a lot of work to do in math-vfu.lua
to get it to work? I looked into that file, but it was a bit hard to
understand what is needed...

Maybe it is hard work to get the fonts working, but I really think
that if we have several text+math fonts easily available in the
minimals that will make (new) users very happy.

Mikael

On Sun, Feb 14, 2010 at 11:26 PM, Mojca Miklavec
 wrote:
> (Since there are some problems with linebreaks, here's the whole file.)
>
> I didn't test the font itself.
>
> 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
> ___
>
>
___
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] MkIV \placecontent [level=section]

2010-02-17 Thread Mikael Persson
On Wed, Feb 17, 2010 at 2:54 PM, Alan BRASLAU  wrote:
> \placecontent    [level=section]
> or
> \completecontent [level=section]
> doesn't seem to work in MkIV, that is level= is ignored.
>
> \quote{Minimal} example (for Hans or Taco):
> contextref.tex          (yes, I am getting back to working
>                         on the revision under MkIV...)
>
> Alan

What is the level=section supposed to mean?

You do not mean criterium=section, do you?

Best regards, Mikael
___
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
___


  1   2   >