[NTG-context] ucgreek=normal as default

2010-05-21 Thread Mikael Persson
Dear list and Hans,

I recently realized that by default capital greek letters are italic.
I believe that the default should be "normal", i.e. upright.

%%% Test file
%\setupmathematics[ucgreek=normal] % comment out to get nice upright
greek captial letters :)
\starttext
$\Theta$
\stoptext
%%% End test file

What do others think?

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
___


Re: [NTG-context] Aligning text to bottom of page

2010-04-11 Thread Mikael Persson
On Mon, Apr 12, 2010 at 4:12 AM, Tom  wrote:
> Is there a command that will align the text that follows to the bottom of
> the page? Copyright pages are often oriented this way. Another example of
> this is the end of chapter page in "The TeXbook" by Knuth.
>

Hi Tom,

I usually do something like

\page[yes]
\mbox{}
\vfill
This is aligned at bottom.
\page[yes]

/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] \bigl \bigr \big problems

2010-04-08 Thread Mikael Persson
On Thu, Apr 8, 2010 at 10:37 AM, Mikael Persson  wrote:
> On Thu, Apr 8, 2010 at 10:31 AM, Hans Hagen  wrote:
>> On 8-4-2010 7:40, Mikael Persson wrote:
>>
>>> Ok Hans, with the beta from yesterday the absolute values change size,
>>> but there are some problems still:
>>>
>>> 1) The absolute value bars are not just "straight lines" when using
>>> \big and friends, but som kind of line that is thicker in the middle.
>>> (zoom i on attached pdf)
>>
>> this is because lm has no such characters so they are made from the smaller
>> ones (extensible characters)
>>
>> in traditional lm this can go unniticed (depends a bit in the exact
>> definition but in mkii you will see two stacked | just not touching but in
>> mkiv we use overlap - which is custom in opentype anyway); so what you
>> observe is an artefact of the viewer - it might be that future versions of
>> luatex deal better with this as it relates somewhat with how things are
>> dealt with in the backend but you will observe similar effects in pdftex
>>
>> in an earlier version i used rules but then found out that the | has round
>> tops (ok, i could use pdf literals to draw lines but not today)
>>
>>> 2) The horizontal spacing in the \big version seems to be bigger than
>>> for the \bigl/\bigr version (and similar for \Big vs \Bigl/\Bigr). I'd
>>> expect the same spacing (the l and r are just there for the writer to
>>> easily see what is left and what is right).
>>
>> repaired .. (i also added \plainbigmathmode
>>
>>> 3) I'd expect that \| gives double bars, like the || one get from
>>> \Vert and not |. This is not so (see the attached file). Moreover, it
>>> is not possible to do \bigl\Vert right now to get a bigger ||.
>>
>> i've added double bars so this works:
>>
>> $\biggl\Vert x^n\biggr\Vert$
>> $\biggl{||} x^n\biggr{||}$
>> $\biggl|\biggl| x^n\biggr|\biggr|$
>>
>> there will be a new beta later today or tomorrow
>>
>> Hans

Thanks for you answer and explanation. Is there a reason why you do
not add \| to get double bars? This is the way it is done in LaTeX
(OK, not really an argument). I'm just curious.

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] \bigl \bigr \big problems

2010-04-07 Thread Mikael Persson
On Tue, Apr 6, 2010 at 5:41 PM, Mikael Persson  wrote:
> On Tue, Apr 6, 2010 at 4:43 PM, Hans Hagen  wrote:
>> On 6-4-2010 10:30, Mikael Persson wrote:
>>>
>>> Dear list,
>>>
>>> I have problems with \big, \bigl, \Bigl, ...
>>>
>>> %% Example
>>> \def\foo#1{\type{#1}: #1}
>>>
>>> \starttext
>>> \foo{$|x|^n$} % as expected.
>>>
>>> \foo{$\bigl|x^n\bigr|$} % expect bigger bars
>>>
>>> \foo{$\big|x^n\big|$} % expect bigger bars
>>>
>>> \foo{$\Bigl|x^n\Bigr|$} % too small again (but bigger than \big)
>>>
>>> \foo{$\biggl|x^n\biggr|$} % too small again (but bigger than \big)
>>>
>>> \foo{$\Biggl|x^n\Biggr|$} % too small again (but bigger than \big)
>>>
>>> \foo{$\|x^n\|$} % expect two bars
>>>
>>> \foo{$\bigl\|x^n\bigr\|$} % expect two bars and bigger ones
>>> \stoptext
>>> %%% Stop example
>>>
>>> It gives the attached pdf file with latest minimals and mkiv.
>>
>> will be fixed in next beta ... i needed to make a few more virtal shapes (in
>> the size chain)
>
> Great Hans, thanks! Looking forward to the new beta...
>
> Mikael
>

Ok Hans, with the beta from yesterday the absolute values change size,
but there are some problems still:

1) The absolute value bars are not just "straight lines" when using
\big and friends, but som kind of line that is thicker in the middle.
(zoom i on attached pdf)
2) The horizontal spacing in the \big version seems to be bigger than
for the \bigl/\bigr version (and similar for \Big vs \Bigl/\Bigr). I'd
expect the same spacing (the l and r are just there for the writer to
easily see what is left and what is right).
3) I'd expect that \| gives double bars, like the || one get from
\Vert and not |. This is not so (see the attached file). Moreover, it
is not possible to do \bigl\Vert right now to get a bigger ||.

Mikael

PS Compilde with
ConTeXt  ver: 2010.04.07 17:58 MKIV  fmt: 2010.4.8  int: english/english
This is LuaTeX, Version beta-0.60.0-2010040422


bartest.tex
Description: TeX document


bartest.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] lmmi12 missing in minimals

2010-04-07 Thread Mikael Persson
On Wed, Apr 7, 2010 at 2:27 PM, Mikael Persson  wrote:
> On Wed, Apr 7, 2010 at 2:19 PM, Taco Hoekwater  wrote:
>>
>> Hi,
>>
>> Mikael Persson wrote:
>>>
>>> Is there an easy way to downgrade the luatex?
>>
>> Unless you are in an extreme hurry, it is much simpler to
>> wait for the next context beta.
>>
>> Best wishes,
>> Taco
>
> Always depends on what one mean about hurry... I have a job
> application that should be done by this week. Tried now to install the
> "current" verion instead of "beta", but then I hit some other bug.
>
> Is there a switch to first-setup that installes the beta from, say, day X?
>
> Mikael
>

Sorry for spaming the list and answering myself, but maybe someone
else can get help out of this:

sh ./first-setup.sh --context=experimental

gives

ConTeXt  ver: 2010.04.05 22:47 MKIV  fmt: 2010.4.7  int: english/english
and
This is LuaTeX, Version beta-0.60.0-2010040422

in which version this works as expected, so problem solved "for now".

Thanks to all who answered.

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] lmmi12 missing in minimals

2010-04-07 Thread Mikael Persson
On Wed, Apr 7, 2010 at 2:19 PM, Taco Hoekwater  wrote:
>
> Hi,
>
> Mikael Persson wrote:
>>
>> Is there an easy way to downgrade the luatex?
>
> Unless you are in an extreme hurry, it is much simpler to
> wait for the next context beta.
>
> Best wishes,
> Taco

Always depends on what one mean about hurry... I have a job
application that should be done by this week. Tried now to install the
"current" verion instead of "beta", but then I hit some other bug.

Is there a switch to first-setup that installes the beta from, say, day X?

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] lmmi12 missing in minimals

2010-04-07 Thread Mikael Persson
On Wed, Apr 7, 2010 at 2:10 PM, Li Yanrui (李延瑞)  wrote:
> 2010/4/7 Mikael Persson :
>> Dear list,
>>
>> with a freshly updated minimals, lm math italic seems to have disappeared:
>>
>> \starttext
>> $a=b$.
>> \stoptext
>>
>> gives the attached result. The log is also attached, there is a warning:
>>
>> LuaTeX warning (file lmmi12): Font lmmi12 at 600 not found
>>
>
> Maybe your luatex version is 0.60. You can try to downgrade it to 0.52.

You are right, it is This is LuaTeX, Version beta-0.60.0-2010040422.

I tried now with a new installation of the minimals (downloading
first-setup.sh and running it), and I get the same error.

Is there an easy way to downgrade the luatex?

Can I provide more information that can help to fix this?

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
___


Re: [NTG-context] lmmi12 missing in minimals

2010-04-07 Thread Mikael Persson
Compiling a larger doc I get

LuaTeX warning (file lmsy10): Font lmsy10 at 441 not found
LuaTeX warning (file msbm10): Font msbm10 at 441 not found
LuaTeX warning (file lmmi10): Font lmmi10 at 315 not found
LuaTeX warning (file lmex10): Font lmex10 at 630 not found
LuaTeX warning (file lmsy10): Font lmsy10 at 630 not found
LuaTeX warning (file lmmi10): Font lmmi10 at 630 not found
LuaTeX warning (file lmmi10): Font lmmi10 at 441 not found
LuaTeX warning (file msbm10): Font msbm10 at 630 not found

so there seems to be more fonts that are not working.

Mikael


On Wed, Apr 7, 2010 at 1:58 PM, Mikael Persson  wrote:
> Dear list,
>
> with a freshly updated minimals, lm math italic seems to have disappeared:
>
> \starttext
> $a=b$.
> \stoptext
>
> gives the attached result. The log is also attached, there is a warning:
>
> LuaTeX warning (file lmmi12): Font lmmi12 at 600 not found
>
> 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
___


[NTG-context] lmmi12 missing in minimals

2010-04-07 Thread Mikael Persson
Dear list,

with a freshly updated minimals, lm math italic seems to have disappeared:

\starttext
$a=b$.
\stoptext

gives the attached result. The log is also attached, there is a warning:

LuaTeX warning (file lmmi12): Font lmmi12 at 600 not found

Best regards, Mikael


lmi.pdf
Description: Adobe PDF document
(/home/mickep/test/lmi.tex

ConTeXt  ver: 2010.03.30 18:56 MKIV  fmt: 2010.4.7  int: english/english

system  : cont-new loaded
(/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv))
system  : cont-fil loaded
(/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(/home/mickep/ConTeXt/tex/texmf-context/tex/context/user/cont-sys.rme (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/type-def.mkiv) (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/type-lua.tex) (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/type-siz.tex (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv)) (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/type-otf.tex (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv)))
system  : lmi.top loaded
%
%	begin of optionfile
%
%	% runtime options files (command line driven)
%	\unprotect
%	% special commands, mostly for the ctx development team
%	% feedback and basic job control
%	% handy for special styles
%	\startluacode
%	document = document or { }
%	document.arguments={
%	}
%	document.files={
%	 "lmi.tex",
%	}
%	\stopluacode
%	% process info
%	\setupsystem[inputfile=lmi.tex]
%	\setupsystem[\c!n=1,\c!m=1]
%	% modes
%	% options (not that important)
%	\startsetups *runtime:options
%	\setupoutput[pdftex]
%	\stopsetups
%	% styles and modules
%	\startsetups *runtime:modules
%	\stopsetups
%	% done
%	\protect \endinput
%
%	end of optionfile
%
(lmi.top)
fonts   : preloading latin modern fonts
bodyfont: 12pt rm is loaded
language: language en is active
systems : begin file lmi.tex at line 1
{/home/mickep/ConTeXt/tex/texmf/fonts/map/pdftex/plain/pdftex.map}
!pages  : flushing realpage 1, userpage 1, subpage 1
systems : end file lmi.tex at line 3
system  : cont-err loaded
(/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-err.tex
systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
) )
LuaTeX warning (file lmmi12): Font lmmi12 at 600 not found

mkiv lua stats : used config path  - /home/mickep/ConTeXt/tex/texmf/web2c/texmf.cnf
mkiv lua stats : used cache path   - /tmp
mkiv lua stats : input load time   - 0.031 seconds
mkiv lua stats : stored bytecode data  - 93 modules, 53 tables, 146 chunks
mkiv lua stats : node list callback tasks  - 6 unique task lists, 6 instances (re)created, 275 calls
mkiv lua stats : cleaned up reserved nodes - 32 nodes, 9 lists of 1409
mkiv lua stats : node memory usage - 19 glue_spec
mkiv lua stats : used backend  - pdf (backend for directly generating pdf output)
mkiv lua stats : loaded patterns   - en:us:pat:exc:2
mkiv lua stats : startup time  - 0.471 seconds including runtime option file processing
mkiv lua stats : callbacks - direct: 425, indirect: 3681, total: 4106
mkiv lua stats : lxml preparation time - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats : result saved in file  - lmi.pdf
mkiv lua stats : loaded fonts  - 32 files: lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats : fonts load time   - 0.267 seconds 
mkiv lua stats : luatex banner - this is luatex, version beta-0.60.0-2010040422
mkiv lua stats : control sequences - 30175 of 165536
mkiv lua stats : current memory usage  - 28 MB (ctx: 29 MB)
mkiv lua stats : runtime   - 1.084 seconds, 0 processed pages, 1 shipped pages, 0.923 pages/second

___
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] \bigl \bigr \big problems

2010-04-06 Thread Mikael Persson
On Tue, Apr 6, 2010 at 4:43 PM, Hans Hagen  wrote:
> On 6-4-2010 10:30, Mikael Persson wrote:
>>
>> Dear list,
>>
>> I have problems with \big, \bigl, \Bigl, ...
>>
>> %% Example
>> \def\foo#1{\type{#1}: #1}
>>
>> \starttext
>> \foo{$|x|^n$} % as expected.
>>
>> \foo{$\bigl|x^n\bigr|$} % expect bigger bars
>>
>> \foo{$\big|x^n\big|$} % expect bigger bars
>>
>> \foo{$\Bigl|x^n\Bigr|$} % too small again (but bigger than \big)
>>
>> \foo{$\biggl|x^n\biggr|$} % too small again (but bigger than \big)
>>
>> \foo{$\Biggl|x^n\Biggr|$} % too small again (but bigger than \big)
>>
>> \foo{$\|x^n\|$} % expect two bars
>>
>> \foo{$\bigl\|x^n\bigr\|$} % expect two bars and bigger ones
>> \stoptext
>> %%% Stop example
>>
>> It gives the attached pdf file with latest minimals and mkiv.
>
> will be fixed in next beta ... i needed to make a few more virtal shapes (in
> the size chain)

Great Hans, thanks! Looking forward to the new beta...

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] \bigl \bigr \big problems

2010-04-06 Thread Mikael Persson
Dear list,

I have problems with \big, \bigl, \Bigl, ...

%% Example
\def\foo#1{\type{#1}: #1}

\starttext
\foo{$|x|^n$} % as expected.

\foo{$\bigl|x^n\bigr|$} % expect bigger bars

\foo{$\big|x^n\big|$} % expect bigger bars

\foo{$\Bigl|x^n\Bigr|$} % too small again (but bigger than \big)

\foo{$\biggl|x^n\biggr|$} % too small again (but bigger than \big)

\foo{$\Biggl|x^n\Biggr|$} % too small again (but bigger than \big)

\foo{$\|x^n\|$} % expect two bars

\foo{$\bigl\|x^n\bigr\|$} % expect two bars and bigger ones
\stoptext
%%% Stop example

It gives the attached pdf file with latest minimals and mkiv.

Mikael


bartest.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] Problem in sorting bibtex entries

2010-03-22 Thread Mikael Persson
On Thu, Mar 18, 2010 at 12:28 PM, Mikael Persson  wrote:
> Dear Taco and list,
>
> I have a problem (with the latest minimals) sorting bibtex entries:
>
> Consider the following example:
>
> % bibbug.tex
> \usemodule[bib]
>
> \setuppublications[
>        sorttype=bbl,
> ]
>
> \setupbibtex[
>        database=mp,
> ]
>
> \starttext
> See~\cite{resi3,resi4} and also~\cite{resi2,resi1}.
>
> \placepublications[criterium=all]
> \stoptext
> % end of bibbug.tex
>
> I get an eror:
> ! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:83:
> attempt to compare two nil values
> stack traceback:
>        ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:83: in
> function <...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:80>
>        [C]: in function 'sort'
>        ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:93: in 
> function 'flush'
>        :1: in main chunk.
> \typesetpubslist ...hacks.flush("\@@pbsorttype ")}
>                                                  \doendoflist
> \dodoplacepublications ...sttrue \typesetpubslist
>                                                  \inpublistfalse \endgroup ...
> l.14 \placepublications[criterium=all]
>
> If I uncomment the sorttype=bbl line, it compiles.
>
> Attached is the tex file, the log file, and my bib file.
>
> Best regards, Mikael
>

Nobody has an idea about this sorting problem? Hans?

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
___


Re: [NTG-context] Problem with \c{a}

2010-03-21 Thread Mikael Persson
On Sun, Mar 21, 2010 at 10:46 PM, Arthur Reutenauer
 wrote:
>> The problem now is that \aogonek seems not to be defined in LaTeX. I
>> guess I can define it manually. It would be nice to use the same bib
>> file for both LaTeX and ConTeXt docs...
>
>  In LaTeX it's \k{a} (maybe that works in ConTeXt also, I didn't try).
>
>        Arthur

Thank you again, Arthur. I realize now that these do not give the same
character. However, It seems that the one you suggest is the correct
one. (the name is Dąbrowski).

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
___


Re: [NTG-context] Problem with \c{a}

2010-03-21 Thread Mikael Persson
On Sun, Mar 21, 2010 at 10:09 PM, Arthur Reutenauer
 wrote:
>> I cannot get \c{a} to work in mkiv. Small test file:
>
>  Are you sure you really need \c{a}, not \aogonek?  I'm not aware of any
> language that would use cedillas on vowels, whereas ogonek is used in several
> languages to indicate nazalisation (starting with Polish, of course).
>
>> \starttext
>> \c{c} % works both in mkii and mkiv
>> \c{a} % works only in mkii (in mkiv I get nothing)
>> \stoptext
>
>  In Mark II the character is built by stacking boxes, which you usually don't
> want in Mark IV if there is a glyph available in the font (but I doubt you 
> will
> find many fonts with such a glyph, see below).
>
>> Is there a fix for this? I would not like to use the unicode char
>> directly in the file
>
>  There is no single Unicode character for a with cedilla anyway, you would
> have to use combining characters.
>
>        Arthur

Thank you Arthur, that is exactly what I want. I am not familiar with
this character, just copied a bibtex entry from MathSciNet.

The problem now is that \aogonek seems not to be defined in LaTeX. I
guess I can define it manually. It would be nice to use the same bib
file for both LaTeX and ConTeXt docs...

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] Problem with \c{a}

2010-03-21 Thread Mikael Persson
Dear list,

I cannot get \c{a} to work in mkiv. Small test file:

\starttext
\c{c} % works both in mkii and mkiv
\c{a} % works only in mkii (in mkiv I get nothing)
\stoptext

Is there a fix for this? I would not like to use the unicode char
directly in the file (because I have this inside a bib-entry and I'd
like to keep the bib file without such constructions.)

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
___


Re: [NTG-context] grid + section in text -> unwanted vertical space

2010-03-19 Thread Mikael Persson
On Fri, Mar 19, 2010 at 3:10 PM, Wolfgang Schuster
 wrote:
> Am 19.03.10 08:21, schrieb Mikael Persson:
>>
>> Dear list,
>>
>> With the following example:
>>
>> \setuplayout[grid=yes]
>> \setuphead[section][alternative=text]
>>
>
> \setuphead[section][alternative=text,strut=no]
>
> Wolfgang

Thank you very much Wolfgang, that works perfectly!

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] \mapsto is missing

2010-03-19 Thread Mikael Persson
On Fri, Mar 19, 2010 at 10:18 AM, Mehdi Omidali  wrote:
> On 3/19/2010 12:36 PM, Mikael Persson wrote:
>
> Dear list,
>
> the \mapsto arrow seems to be missing.
>
> \starttext
> $A\mapsto B=f(A)$
> \stoptext
>
> gives the attached pdf document. I'd expect something like what is in
> the pic attached. Can this be added?
>
> Best regards, Mikael
>
> Have you seen matharrows.pdf by Aditya? The context part of this command is
> \xmapsto.
> Mehdi

I had not, thanks a lot!

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] \mapsto is missing

2010-03-19 Thread Mikael Persson
Dear list,

the \mapsto arrow seems to be missing.

\starttext
$A\mapsto B=f(A)$
\stoptext

gives the attached pdf document. I'd expect something like what is in
the pic attached. Can this be added?

Best regards, Mikael
<>

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


[NTG-context] Unexpected format of reference

2010-03-19 Thread Mikael Persson
Dear list,

the following example gives me unexpected format of the last reference
to the section

\definereferenceformat[eqref][left={(},right={)}]
\starttext
\section[sec:test]{Test}
We are now in \in{Section}{}[sec:test].
\placeformula[eq:general]
\startformula
A=B
\stopformula
In~\eqref[eq:general]\dots We are now in \in{Section}{}[sec:test].
\stoptext

The last reference to the section gets the format (1) instead of just
1. I believe this was not so previously. PDF attached.

I use an updated MKIV minimals.

Best regards, Mikael


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


[NTG-context] grid + section in text -> unwanted vertical space

2010-03-19 Thread Mikael Persson
Dear list,

With the following example:

\setuplayout[grid=yes]
\setuphead[section][alternative=text]

\starttext
\section{Test}\input knuth
\stoptext

I get the attached result. I would expect no "empty line" between the
section line and the rest of the paragraph. Any advices?

Best regards, Mikael

PS Using an updated MKIV


gridsec.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] math error

2010-03-18 Thread Mikael Persson
On Thu, Mar 18, 2010 at 1:45 PM, Wolfgang Werners-Lucchini
 wrote:
> Hallo,
>
> the following example compiles ok
>
> \starttext
> \startformula
> \frac{206}{7}=[29;2,2,1]
> \stopformula
> \stoptext
>
> while this compiles not
>
> \starttext
> \startformula
> [29;2,2,1]=\frac{206}{7}
> \stopformula
> \stoptext
>
> Bug or user error?
>
> Wolfgang

Try

\starttext
\startformula\relax
[29;2,2,1]=\frac{206}{7}
\stopformula
\stoptext

I think the [ is taken as starting an optional argument for \startformula.

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
___


Re: [NTG-context] Problem in sorting bibtex entries

2010-03-18 Thread Mikael Persson
On Thu, Mar 18, 2010 at 1:48 PM, Taco Hoekwater  wrote:
>
> Hi,
>
> Mikael Persson wrote:
>> Dear Taco and list,
>
> Better make that 'Dear Hans and list' :)
>

sorry, I thought you were the bibtex guy :)

>> I have a problem (with the latest minimals) sorting bibtex entries:
>>
>> Consider the following example:
>>
>> % bibbug.tex
>> \usemodule[bib]
>>
>> \setuppublications[
>>       sorttype=bbl,
>> ]
>>
>> \setupbibtex[
>>       database=mp,
>> ]
>>
>> \starttext
>> See~\cite{resi3,resi4} and also~\cite{resi2,resi1}.
>>
>> \placepublications[criterium=all]
>> \stoptext
>> % end of bibbug.tex
>>
>> I get an eror:
>> ! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:83:
>> attempt to compare two nil values
>
> For some reason that I do not understand, the publication
> items in the bbl are not properly registered for sorting.
> That's all I can figure out.
>
> Best wishes,
> Taco

OK, I'll wait for others ideas... Thanks!

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
___


Re: [NTG-context] Mathdesign fonts usage

2010-03-18 Thread Mikael Persson
On Thu, Mar 18, 2010 at 12:27 PM, Wolfgang Schuster
 wrote:
> Am 18.03.10 11:10, schrieb Taco Hoekwater:
>>
>> Mikael Persson wrote:
>>
>>>
>>> I think the prime is too close to the f and
>>>
>>
>> This problem could be related to a luatex bug :
>>
>>   http://tracker.luatex.org/view.php?id=345
>>
>
> This is LuaTeX, Version beta-0.53.0-2010031812 (rev 3520)
>
> Unrelated to the bug, the bad kerning remains.
>
> Wolfgang

I have now compiled a larger article and so let me update my example a bit:

% mdprim.tex
\definetypeface[charter][mm][math] [charter][default][text=rm]
\definetypeface[charter][rm][serif][charter][default]

\setupbodyfont[charter,10pt]

\starttext
$f'(x)=\sin(x)$, $\partial x$, $\alpha x_2^2$.
Define $A\colon \mathbb{R}\to\mathbb{R}$ as\dots.
\stoptext
% end of mdprim.tex

The output is attached. In my opinion the spacing between \partial and
x is too small, and the spacing in the x_2^2 does not look right
either, but I don't really know what is the problem. Maybe, on a
second look the 2s are too big?

I'd also expected that the \colon gives a colon (with some space), but
maybe that is a ams(la)tex macro I have do define on my own? (As it is
now it does not complain about the \colon, but it also gives no
colon).

Best regards, Mikael

PS: The kerning for mathdesign in LaTeX is OK. But that is probably,
as someone wrote, due to vf files(?)


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


[NTG-context] Problem in sorting bibtex entries

2010-03-18 Thread Mikael Persson
Dear Taco and list,

I have a problem (with the latest minimals) sorting bibtex entries:

Consider the following example:

% bibbug.tex
\usemodule[bib]

\setuppublications[
sorttype=bbl,
]

\setupbibtex[
database=mp,
]

\starttext
See~\cite{resi3,resi4} and also~\cite{resi2,resi1}.

\placepublications[criterium=all]
\stoptext
% end of bibbug.tex

I get an eror:
! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:83:
attempt to compare two nil values
stack traceback:
...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:83: in
function <...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:80>
[C]: in function 'sort'
...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:93: in function 
'flush'
:1: in main chunk.
\typesetpubslist ...hacks.flush("\@@pbsorttype ")}
  \doendoflist
\dodoplacepublications ...sttrue \typesetpubslist
  \inpublistfalse \endgroup ...
l.14 \placepublications[criterium=all]

If I uncomment the sorttype=bbl line, it compiles.

Attached is the tex file, the log file, and my bib file.

Best regards, Mikael


bibbug.tex
Description: TeX document
(/home/mickep/Dropbox/documents/fonttest/bibbug.tex

ConTeXt  ver: 2010.03.12 19:49 MKIV  fmt: 2010.3.18  int: english/english

system  : cont-new loaded
(/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv))
system  : cont-fil loaded
(/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(/home/mickep/ConTeXt/tex/texmf-context/tex/context/user/cont-sys.rme (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/type-def.mkiv) (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/type-lua.tex) (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/type-siz.tex (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv)) (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/type-otf.tex (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv)))
system  : bibbug.top loaded
%
%	begin of optionfile
%
%	% runtime options files (command line driven)
%	\unprotect
%	% special commands, mostly for the ctx development team
%	% feedback and basic job control
%	% handy for special styles
%	\startluacode
%	document = document or { }
%	document.arguments={
%	}
%	document.files={
%	 "bibbug.tex",
%	}
%	\stopluacode
%	% process info
%	\setupsystem[inputfile=bibbug.tex]
%	\setupsystem[\c!n=1,\c!m=1]
%	% modes
%	% options (not that important)
%	\startsetups *runtime:options
%	\setupoutput[pdftex]
%	\stopsetups
%	% styles and modules
%	\startsetups *runtime:modules
%	\stopsetups
%	% done
%	\protect \endinput
%
%	end of optionfile
%
(bibbug.top)
fonts   : preloading latin modern fonts
bodyfont: 12pt rm is loaded
language: language en is active
(/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/m-obsolete.tex
systems : skipping obsolete module
)
system  : module bib loaded
publications: wrote a new auxiliary file cont-en.aux
systems : begin file bibbug.tex at line 11
! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:83: attempt to compare two nil values
stack traceback:
	...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:83: in function <...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:80>
	[C]: in function 'sort'
	...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:93: in function 'flush'
	:1: in main chunk.
\typesetpubslist ...hacks.flush("\@@pbsorttype ")}
  \doendoflist 
\dodoplacepublications ...sttrue \typesetpubslist 
  \inpublistfalse \endgroup ...
l.14 \placepublications[criterium=all]
  
? 
fonts   : resetting map file list
{/home/mickep/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/original-empty.map}
fonts   : using map file: original-base
{/home/mickep/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/original-base.map}
fonts   : using map file: original-ams-base
{/home/mickep/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/original-ams-base.map}
fonts   : using map file: original-ams-euler
{/home/mickep/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/original-ams-euler.map}
fonts   : using map file: original-public-lm
{/home/mickep/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/original-public-lm.map}
fonts   : using map file: lm-math
{/home/mickep/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}
fonts   : using map file: lm-rm
{/home/mickep/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
!pag

Re: [NTG-context] Mathdesign fonts usage

2010-03-18 Thread Mikael Persson
On Thu, Mar 18, 2010 at 11:14 AM, Aditya Mahajan  wrote:
> On Thu, 18 Mar 2010, Mikael Persson wrote:
>
>> Wow, Wolfgang, this is very nice! (I was fighting his some weeks ago,
>> and what I probably did wrong was that I did not regenerate the file
>> name database. Now the math is indeed italic and not upright.)
>>
>> It is, however, not completely perfect. With the following example, I
>> get the attached result. I think the prime is too close to the f and
>
> I don't know. Do they come out correctly with latex? If so, it may be a bug
> in luatex's italic correction.
>
>> also, sin should be "upright" and not italic. Any ideas?
>
> Try (Untested)
>
> \definetypeface[charter][mm][math] [charter]     [default] [text=rm]
>
> Aditya

Thanks Aditya! The sin problem goes away with this!

Then, there is only the prime problem left (as far as I can see. I
should try this setup on a larger paper to see if something else looks
strange)

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
___


Re: [NTG-context] Mathdesign fonts usage

2010-03-18 Thread Mikael Persson
On Thu, Mar 18, 2010 at 10:40 AM, Wolfgang Schuster
 wrote:
> Am 18.03.10 08:12, schrieb Mehdi Omidali:
>>
>> Hi,
>> I have tested all samples in the arxive to use mathdesign fonts for math
>> but no success has been reached.
>
> Files: http://drp.ly/CC5aF
>
> Unzip the archive in one of your local TeX folders.
>
> Sample: http://drp.ly/CC86L
> Result: http://drp.ly/CC92k
>
> Replace the font defintions in math-vfu.lua with this and regenerate the
> format.
>
> mathematics.make_font ( "charter-math", {
>  -- { name = "file:bchr8a", features = "virtualmath", main = true },
>    { name = "file:bchri8a", features = "virtualmath", main = true },
>  -- { name = "md-chr7m.tfm", vector = "tex-mr" },
>    { name = "md-chri7m.tfm", vector = "tex-mi", skewchar=0x7F },
>    { name = "md-chri7m.tfm", vector = "tex-it", skewchar=0x7F },
>    { name = "md-chr7y.tfm", vector = "tex-sy", skewchar=0x30, parameters =
> true },
>    { name = "md-chr7v.tfm", vector = "tex-ex", extension = true },
>  -- { name = "md-chbma.tfm", vector = "tex-ma" },
>  -- { name = "md-chbmb.tfm", vector = "tex-mb" },
>    { name = "msam10.tfm", vector = "tex-ma" },
>    { name = "msbm10.tfm", vector = "tex-mb" },
> } )
>
> mathematics.make_font ( "garamond-math", {
>  -- { name = "file:ugmr8a", features = "virtualmath", main = true },
>    { name = "file:ugmri8a", features = "virtualmath", main = true },
>  -- { name = "md-gmr7m.tfm", vector = "tex-mr" },
>    { name = "md-gmri7m.tfm", vector = "tex-mi", skewchar=0x7F },
>    { name = "md-gmri7m.tfm", vector = "tex-it", skewchar=0x7F },
>    { name = "md-gmr7y.tfm", vector = "tex-sy", skewchar=0x30, parameters =
> true },
>    { name = "md-gmr7v.tfm", vector = "tex-ex", extension = true },
>  -- { name = "md-gmmma.tfm", vector = "tex-ma" },
>  -- { name = "md-gmmmb.tfm", vector = "tex-mb" },
>    { name = "msam10.tfm", vector = "tex-ma" },
>    { name = "msbm10.tfm", vector = "tex-mb" },
> } )
>
> mathematics.make_font ( "utopia-math", {
>  -- { name = "file:putr8a", features = "virtualmath", main = true },
>    { name = "file:putri8a", features = "virtualmath", main = true },
>  -- { name = "md-utr7m.tfm", vector = "tex-mr" },
>    { name = "md-utri7m.tfm", vector = "tex-mi", skewchar=0x7F },
>    { name = "md-utri7m.tfm", vector = "tex-it", skewchar=0x7F },
>    { name = "md-utr7y.tfm", vector = "tex-sy", skewchar=0x30, parameters =
> true },
>    { name = "md-utr7v.tfm", vector = "tex-ex", extension = true },
>  -- { name = "md-utbma.tfm", vector = "tex-ma" },
>  -- { name = "md-utbmb.tfm", vector = "tex-mb" },
>    { name = "msam10.tfm", vector = "tex-ma" },
>    { name = "msbm10.tfm", vector = "tex-mb" },
> } )
>
> Wolfgang

Wow, Wolfgang, this is very nice! (I was fighting his some weeks ago,
and what I probably did wrong was that I did not regenerate the file
name database. Now the math is indeed italic and not upright.)

It is, however, not completely perfect. With the following example, I
get the attached result. I think the prime is too close to the f and
also, sin should be "upright" and not italic. Any ideas?

% mdprim.tex
\definetypeface[charter][mm][math] [charter] [default]
\definetypeface[charter][rm][serif][charter] [default]

\setupbodyfont[charter,10pt]

\starttext
$f'(x)=\sin(x)$.
\stoptext
% end of mdprim.tex

Best regards, Mikael

PS I hope it is OK to attach a 10kB pdf file


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

2010-02-20 Thread Mikael Persson
On Wed, Feb 17, 2010 at 10:10 PM, Mikael Persson  wrote:
> On Tue, Feb 16, 2010 at 1:42 PM, Mikael Persson  wrote:
>> On Tue, Feb 16, 2010 at 1:31 PM, Hans Hagen  wrote:
>>> On 16-2-2010 11:38, Mikael Persson wrote:
>>>>
>>>> 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.
>>>
>>> it depends ... if the font is in tex default encoding then it's only a
>>> matter of adding a small table
>>
>> I'm not 100% sure how it works wth font encodings, but the fourier doc
>> (http://mirror.ctan.org/fonts/fourier-GUT/doc/latex/fourier/fourier-doc-en.pdf)
>> says that the fonts are _fully_ T1 encoded.
>>
>> Mikael
>>
>> PS: Hans, do you have any comments about the mathdesign patch
>> suggested by Mojca above?
>
> I have now manually downloaded the mathdesign fonts (and the charter
> fonts, not available on the server it seems)
>
> The fonts gets used, but I get upright math letters instead of italic
> ones. My test file is given by
>
> \definetypeface[charter][rm][serif][charter]     [default]
> \definetypeface[charter][mm][math] [charter]     [default]
>
> \setupbodyfont[charter,10pt]
>
> \starttext
> We define, for real $x$, the absolute value of $x$ as
> \startformula
> |x|=
> \startcases
> \NC \hphantom{-}x \MC x\geq 0,\NR
> \NC -x \MC x<0.\NR
> \stopcases
> \stopformula
> Also let $\alpha$, $\beta$ and $\Gamma$ be\dots
> \stoptext
>
> The output can be found at
>
> http://home.imf.au.dk/mickep/mdesign.pdf
>
> Typesetting a similar document with LaTeX I get italic math (note also
> that the \Gamma is upright, I guess that this is an option that is
> turned on by default by LaTeX)
>
> http://home.imf.au.dk/mickep/lmdesign.pdf
>
> I guess this has something to do with the following lines in math-vfu.lua
>
> mathematics.make_font ( "charter-math", {
>    { name = "file:bchr8a", features = "virtualmath", main = true },
>  -- { name = "md-chr7m.tfm", vector = "tex-mr" },
>    { name = "md-chri7m.tfm", vector = "tex-mi", skewchar=0x7F },
>    { name = "md-chri7m.tfm", vector = "tex-it", skewchar=0x7F },
>    { name = "md-chr7y.tfm", vector = "tex-sy", skewchar=0x30,
> parameters = true },
>    { name = "md-chr7v.tfm", vector = "tex-ex", extension = true },
>    { name = "msam10.tfm", vector = "tex-ma" },
>    { name = "msbm10.tfm", vector = "tex-mb" },
> } )
>
> However, I am not able guess what to change (I tried different things
> available in mdbch.map).
>
> Any help is appreciated.
>
> Mikael
>

Hans, Mojca, Aditya, Wolfgang and others

1) Can anyone confirm this problem in the previous mail or point out
what might be wrong?
2) The problem Troy had with lucida, is it the same?
3) What is needed to get fourier fonts working? Is it enough adding to
math-vfu.lua an entry like
mathematics.make_font ( "fourier-math", { ...
})
with the right names for fourier? I tried this, but no math fonts is
showing up in the pdf file. In what other file should I add changes.
I'm willing to do some trial and error to get it to work...

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
___


Re: [NTG-context] Lucida Fonts with MKIV

2010-02-19 Thread Mikael Persson
On Fri, Feb 19, 2010 at 4:46 PM, Hans Hagen  wrote:
> On 19-2-2010 14:50, Troy Henderson wrote:
>>
>> I am a LaTeX user for about 15 years, but I am very new ConTeXt.  I am
>> having trouble using the complete set of Lucida fonts purchased from
>> TUG.
>>
>> http://www.tug.org/store/lucida/
>>
>> I have followed the first set of instructions at
>>
>> http://wiki.contextgarden.net/Lucida
>>
>> and the fonts work great for MKII (texexec).  When building the same
>> document (that works for MKIV) with MKIV (context), the text fonts are
>> fine but the math fonts are set in Roman instead instead of math.   Is
>> there an easy way to adapt the configuration file(s) for MKII to MKIV?
>>  If this is possible but just requires a tedious process, I'm willing
>> to do this, but I have no clue of the steps needed.
>>
>> I would appreciate any advice.
>
> This sort of works apart from math. The problem with lucida is that it was
> originally shipped by yandy and when tug took over the metric files were not
> keps as is (or even shipped) but changed to different names (hlcra.tfm etc)
> and these don't ship with texlive so i cannot test (i have the original
> lucida maths fonts).
>
> This leave all those who bought lucida in the past without proper support.
> As the metrics etc were made for latex, latex users probably don't notice
> this, but tex users who rolled out their own font code (or other packages)
> are crippled by this.
>
> Maybe the minimals should ship those lucida math tfm files (i don't know if
> there are vf files too). I'm not going to buy new lucida math fonts.
>
> for mkiv lucida math is turned into a virtual unicode font (math-vfu) but as
> said i cannot test it without the proper metrics; actually, these math fonts
> is the only place where mkiv still uses tfm files
>
> \starttypescript [serif] [lucida] [name]
>        \usetypescript[serif][fallback]
>        \definefontsynonym[Serif]          [name:LucidaBright]
>        \definefontsynonym[SerifBold]      [name:LucidaBright-Demi]
>        \definefontsynonym[SerifItalic]    [name:LucidaBright-Italic]
>        \definefontsynonym[SerifBoldItalic][name:LucidaBright-DemiItalic]
> \stoptypescript
>
> \starttypescript [sans] [lucida] [name]
>        \usetypescript[sans][fallback]
>        \definefontsynonym[Sans]                        [name:LucidaSans]
>        \definefontsynonym[SansItalic]          [name:LucidaSans-Oblique]
>        \definefontsynonym[SansBold]            [name:LucidaSans-Demi]
>        \definefontsynonym[SansBoldItalic]      [name:LucidaSans-DemiOblique]
> \stoptypescript
>
> \starttypescript [mono] [lucida] [name]
>        \usetypescript[mono][fallback]
>        \definefontsynonym[Mono]
>  [name:LucidaSans-Typewriter]
>        \definefontsynonym[MonoItalic]
>  [name:LucidaSans-TypewriterOblique]
>        \definefontsynonym[MonoBold]
>  [name:LucidaSans-TypewriterBold]
>        \definefontsynonym[MonoBoldItalic]
>  [name:LucidaSans-TypewriterBoldOblique]
> \stoptypescript
>
>
> \definetypeface[MyLucida][rm][serif][lucida][default][features=default]
> \definetypeface[MyLucida][ss][sans] [lucida][default][features=default]
> \definetypeface[MyLucida][tt][mono] [lucida][default][features=default]
> \definetypeface[MyLucida][mm][math] [lucida][default]
>
> \setupbodyfont[MyLucida]
>
> \starttext
>
> test $x$
>
> \stoptext
>

This is a bit funny, because the problem that Troy has with upright
math seems to be exactly the same problem I have with mathdesign,
described in the post
http://archive.contextgarden.net/message/20100217.211052.21a3f6f3.en.html

Could it be that something in math-vfu.lua (or elsewhere) is not
correct? (I have played with that file, but not succeeded in getting
it to work, and the lucida fonts are also handled 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  : 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-17 Thread Mikael Persson
On Tue, Feb 16, 2010 at 1:42 PM, Mikael Persson  wrote:
> On Tue, Feb 16, 2010 at 1:31 PM, Hans Hagen  wrote:
>> On 16-2-2010 11:38, Mikael Persson wrote:
>>>
>>> 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.
>>
>> it depends ... if the font is in tex default encoding then it's only a
>> matter of adding a small table
>
> I'm not 100% sure how it works wth font encodings, but the fourier doc
> (http://mirror.ctan.org/fonts/fourier-GUT/doc/latex/fourier/fourier-doc-en.pdf)
> says that the fonts are _fully_ T1 encoded.
>
> Mikael
>
> PS: Hans, do you have any comments about the mathdesign patch
> suggested by Mojca above?

I have now manually downloaded the mathdesign fonts (and the charter
fonts, not available on the server it seems)

The fonts gets used, but I get upright math letters instead of italic
ones. My test file is given by

\definetypeface[charter][rm][serif][charter] [default]
\definetypeface[charter][mm][math] [charter] [default]

\setupbodyfont[charter,10pt]

\starttext
We define, for real $x$, the absolute value of $x$ as
\startformula
|x|=
\startcases
\NC \hphantom{-}x \MC x\geq 0,\NR
\NC -x \MC x<0.\NR
\stopcases
\stopformula
Also let $\alpha$, $\beta$ and $\Gamma$ be\dots
\stoptext

The output can be found at

http://home.imf.au.dk/mickep/mdesign.pdf

Typesetting a similar document with LaTeX I get italic math (note also
that the \Gamma is upright, I guess that this is an option that is
turned on by default by LaTeX)

http://home.imf.au.dk/mickep/lmdesign.pdf

I guess this has something to do with the following lines in math-vfu.lua

mathematics.make_font ( "charter-math", {
{ name = "file:bchr8a", features = "virtualmath", main = true },
 -- { name = "md-chr7m.tfm", vector = "tex-mr" },
{ name = "md-chri7m.tfm", vector = "tex-mi", skewchar=0x7F },
{ name = "md-chri7m.tfm", vector = "tex-it", skewchar=0x7F },
{ name = "md-chr7y.tfm", vector = "tex-sy", skewchar=0x30,
parameters = true },
{ name = "md-chr7v.tfm", vector = "tex-ex", extension = true },
{ name = "msam10.tfm", vector = "tex-ma" },
{ name = "msbm10.tfm", vector = "tex-mb" },
} )

However, I am not able guess what to change (I tried different things
available in mdbch.map).

Any help is appreciated.

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


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
___


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


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


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


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


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
___


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


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


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


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


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


[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] {{ 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
___


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


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


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


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


[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


[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


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


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


[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] 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


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


  1   2   >