[NTG-context] how to change current directory ?

2011-05-23 Thread 정진기
Title: Samsung Enterprise Portal mySingle




Greeting context users, 

Thank you for such a good tool. Here is my question regarding changing of current directory. 

I have quite a number of separate main.tex in different directories. Each main.tex is calling submain.tex
in the same directory. Compilation of each main.tex in its own directory is fine. 
What I am trying to do is compiling all submain.tex into one pdf file with minimum change.
To accomplish my objective, I made a master file and put “\input …\every\submain.tex”.
By now, I assume you know what I am getting at. My objective is not going to get done.
I have to change all \input commands inside each submain.tex to reflect the absolute path.

I guess there should be one way or the other to change current-directory, so that make my job simple.

It would be greatly appreciated if you can shed light on this. 
Thank you in advance.

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

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

Re: [NTG-context] how to change current directory ?

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 10:21 schrieb 정진기:

 Greeting context users,
  
 Thank you for such a good tool.  Here is my question regarding changing of 
 current directory.
  
 I have quite a number of separate main.tex in different directories. Each 
 main.tex is calling submain.tex
 in the same directory.  Compilation of each main.tex in its own directory is 
 fine.
 What I am trying to do is compiling all submain.tex into one pdf file with 
 minimum change.
 To accomplish my objective, I made a master file and put “\input  
 …\every\submain.tex”.
 By now, I assume you know what I am getting at.  My objective is not going to 
 get done.
 I have to change all \input commands inside each submain.tex to reflect the 
 absolute path.
  
 I guess there should be one way or the other to change current-directory, so 
 that make my job simple.

You can load file in subdirectories when you set the directory with
\usepath[name] and \usesubpath[name], you have to replace “\input file”
also with “\component file” (or “\usecomponent[file]”) otherwise
context won’t like in the subdirectories.

Wolfgang

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

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

[NTG-context] \type and linebreak (again)

2011-05-23 Thread Andreas Schneider
Hi,

I  stumbled  across  the  same problem that was discussed earlier this
month:  \type  doesn't break, even if there are opportunities. I tried
to follow the suggestions given in that thread, but with no success:

\setuppapersize[A4][A4]

\starttext
\setuptype[space=stretch]
%\setupalign[stretch]
%\setuptolerance[stretch]
\type{cp $SOMEVAR/some/very/very/very/long/directory/WITHFILE 
$SOMEVAR/other/long/directory}
\startitemize
\item \type{cp 
$SOMEVAR/some/very/very/very/long/directory/WITHFILE 
$SOMEVAR/other/long/directory}
\stopitemize
\stoptext


I  tried  with  and  without the \setupalign/\setuptolerance commands,
without  success;  both lines exceed the margins. (Tested with ConTeXt
ver: 2011.05.18 22:26 MKIV fmt: 2011.5.23)

Is  there anything else I can do/setup to get such long verbatim lines
broken?  I  would  also like an option for character-based line wraps;
i.e.  it  should (optionally; not in this particular case for example)
break  a word even in the middle if necessary, and without hyphenation
mark.  Especially  in  similar  cases  where  I  have a very very long
directory name, I wouldn't care if it gets broken the hard way.

Thanks in advance!

-- 
Best Regards,
Andreas

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

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

2011-05-23 Thread Vedran Miletić
Hi,

compiling example with quadriliterals and \startMPdefinitions{solvers}
\stopMPdefinitions from MetaFun manual, regardless of the code that is
commented out inside MPdefintions environment, gives:

! You can't use `\relax' after \the.

system   tex  error on line 30 in file solvers.tex: You can't use
` ...

20 %  z1=0.5[z11,z13] ; z2=0.5[z21,z23] ;
21 %  z3=0.5[z31,z33] ; z4=0.5[z41,z43] ;
22 %  draw z1--z3 dashed evenly ; draw z2--z4 dashed evenly ;
23 %  z0=whatever[z1,z3]=whatever[z2,z4] ;
24 %  mark_rt_angle (z1,z0,z2);
25 %  if show_labels0:
26 %  draw_problem_labels ;
27 %  fi;
28 %  endgroup ;
29 %  enddef ;
30   \stopMPdefinitions
31
32 \starttext
33 %a
34 \stoptext

recently read \@MPF@::solvers

\dostartMPdefinitions ...er {\the \MPinstancetoks
  #2}
l.30 \stopMPdefinitions

Is this a bug?

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

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] \type and linebreak (again)

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 11:59 schrieb Andreas Schneider:

 Hi,
 
 I  stumbled  across  the  same problem that was discussed earlier this
 month:  \type  doesn't break, even if there are opportunities. I tried
 to follow the suggestions given in that thread, but with no success:
 
 \setuppapersize[A4][A4]
 
 \starttext
\setuptype[space=stretch]
%\setupalign[stretch]
%\setuptolerance[stretch]
\type{cp $SOMEVAR/some/very/very/very/long/directory/WITHFILE 
 $SOMEVAR/other/long/directory}
\startitemize
\item \type{cp 
 $SOMEVAR/some/very/very/very/long/directory/WITHFILE 
 $SOMEVAR/other/long/directory}
\stopitemize
 \stoptext
 
 
 I  tried  with  and  without the \setupalign/\setuptolerance commands,
 without  success;  both lines exceed the margins. (Tested with ConTeXt
 ver: 2011.05.18 22:26 MKIV fmt: 2011.5.23)
 
 Is  there anything else I can do/setup to get such long verbatim lines
 broken?  I  would  also like an option for character-based line wraps;
 i.e.  it  should (optionally; not in this particular case for example)
 break  a word even in the middle if necessary, and without hyphenation
 mark.  Especially  in  similar  cases  where  I  have a very very long
 directory name, I wouldn't care if it gets broken the hard way.

\filename{cp \$SOMEVAR/some/very/very/very/long/directory/WITHFILE 
\$SOMEVAR/other/long/directory}

Wolfgang

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

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


[NTG-context] Simplefonts, latest beta and binoms

2011-05-23 Thread Cedric Mauclair
Hi list,


I have some troubles with the simplefonts module. The following worked
fine before (2011.02.25 22:03, need to add '\usemodule[newmat]'), but
doesn't anymore (2011.05.18 22:26).

Minimal example reproduced here. Whatever font I try, the output of
the parentheses is the same. Setting the math font doesn't help
either.

\usemodule[simplefonts]
\setmainfont[Calluna]% could be Latin Modern Roman
%\setmathfont[Latin Modern Math]% as in t-simplefonts.tex

\starttext
  \startformula
\binom{1}{2}
  \stopformula
\stoptext


Regards.

-- Cédric


simplefonts-error.tex
Description: TeX document


simplefonts-error.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] Simplefonts, latest beta and binoms

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 12:13 schrieb Cedric Mauclair:

 Hi list,
 
 I have some troubles with the simplefonts module. The following worked
 fine before (2011.02.25 22:03, need to add '\usemodule[newmat]'), but
 doesn't anymore (2011.05.18 22:26).


It’s the fault of the OpenType version of the LM Math fonts which
are used when you use the simplefonts module:

\definetypeface[mainface][rm][serif][modern]
\definetypeface[mainface][mm][math] [modern]

\setupbodyfont[mainface]

\starttext
 \startformula
   \binom{1}{2}
 \stopformula
\stoptext

Wolfgang

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

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


Re: [NTG-context] pdf attachments broken in latest minimal?

2011-05-23 Thread Jesse Alama

Hans Hagen wrote:

On 21-5-2011 5:44, Jesse Alama wrote:

It seems that PDF attachments aren't working in the latest minimals:

$ context --version

mtx-context | main context file:
/Users/alama/context/tex/texmf-context/tex/context/base/context.mkiv
mtx-context | current version: 2011.05.18 22:26


\useattachment[busted][hi.txt]
\starttext
attachment here: \attachment[busted]
\stoptext


Prepending

\setupinteraction[state=start]

to the document, and the compiling with, say, xetex, results in a PDF
that has the attachment. But not with mkiv.


fixed in next beta


Thanks.  I notice, by the way, that even with mkii, PDF attachments 
don't seem to function entirely correctly.  This might be due to a 
limitation of my PDF reader (I'm using Adobe Reader 10.0.3 on Mac OS X 
10.6), but with that minimal example, Reader says that


* the name of the attachment is Unknown (shouldn't it be hi.txt?)
* the Description is hi.txt (seems like that should be the name, not 
the description -- I'm not sure how to specify the description of an 
attached file)
* the Modified, Size, and Compressed size metadata all say 
Unknown (shouldn't at least Size have some sensible value?)
* clicking on the little attachment icon in the text does nothing, nor 
does explicitly selecting Open attachment.


These might be bugs or limitations with Reader, but I'm not sure.  Can 
someone else confirm this behavior with attachments in mkii?


Thanks,

Jesse

--
Jesse Alama
http://centria.di.fct.unl.pt/~alama/

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

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

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 12:02 schrieb Vedran Miletić:

 Hi,
 
 compiling example with quadriliterals and \startMPdefinitions{solvers} 
 \stopMPdefinitions from MetaFun manual, regardless of the code that is 
 commented out inside MPdefintions environment, gives:
 
 ! You can't use `\relax' after \the.
 
 system   tex  error on line 30 in file solvers.tex: You can't use ` 
 ...
 
 20 %  z1=0.5[z11,z13] ; z2=0.5[z21,z23] ;
 21 %  z3=0.5[z31,z33] ; z4=0.5[z41,z43] ;
 22 %  draw z1--z3 dashed evenly ; draw z2--z4 dashed evenly ;
 23 %  z0=whatever[z1,z3]=whatever[z2,z4] ;
 24 %  mark_rt_angle (z1,z0,z2);
 25 %  if show_labels0:
 26 %  draw_problem_labels ;
 27 %  fi;
 28 %  endgroup ;
 29 %  enddef ;
 30   \stopMPdefinitions
 31 
 32 \starttext
 33 %a
 34 \stoptext
 
 recently read \@MPF@::solvers 
 
 \dostartMPdefinitions ...er {\the \MPinstancetoks 
   #2}
 l.30 \stopMPdefinitions
 
 Is this a bug?

Please send a complete example!

Wolfgang

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

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

Re: [NTG-context] Appendix label in TOC (Table of Contents) : APPENDIX instead of CHAPTER

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 04:06 schrieb Mathieu DUPONT:

 Hi,
 
 The following code :
 
 \setuplabeltext[chapter=CHAPTER~]
 \setuplabeltext[appendix=APPENDIX~]
 \setuplist [chapter] [label=yes,style={\blank[0cm]}]
 
 \starttext
 
 \completecontent
 
 \chapter{Title of a chapter}
 
 \startappendices
 \chapter{Title of an appendix}
 \stopappendices
 
 \stoptext 
 
 results in :
 
 Contents
 CHAPTER 1 Title of a chapter
 CHAPTER A Title of an appendix
 
 Instead, I would like to get the following result :
 
 Contents
 CHAPTER 1 Title of a chapter
 APPENDIX A Title of an appendix
 
 In other words, this command :
 \setuplist [chapter] [label=yes]
 seems not to take this one :
 \setuplabeltext[appendix=APPENDIX~]
 into account.
 
 Am I forgetting to add another important command in my header ?
 Any help would be greatly appreciated.

Do you use MkII or MkIV?


When i run your example with a recent installation and MkIV
i get the output you expect. You should also also set
the sectionblocks for the frontpart and the bodypart:

\setuplabeltext[chapter=CHAPTER~]
\setuplabeltext[appendix=APPENDIX~]

\setuplist [chapter] [label=yes,width=7em]

\starttext

\startfrontmatter
\completecontent
\stopfrontmatter

\startbodymatter
\chapter{Title of a chapter}
\stopbodymatter

\startappendices
\chapter{Title of an appendix}
\stopappendices

\stoptext

Wolfgang

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

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

Re: [NTG-context] \type and linebreak (again)

2011-05-23 Thread Andreas Schneider
On Monday, May 23, 2011 12:11 Wolfgang Schuster wrote:

 \filename{cp \$SOMEVAR/some/very/very/very/long/directory/WITHFILE 
 \$SOMEVAR/other/long/directory}

 Wolfgang

It's kinda depressing how easy some solutions are, that one could have
found themselves if one just looked beyond the own walls.

Thank you for that fast answer and the perfect solution :-)

-- 
Best Regards,
Andreas

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

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] Roman numbers for chapters in chapter lines but not in section lines

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 04:33 schrieb Mathieu DUPONT:

 
 Hi,
 
 I am trying to obtain the following result :
 
 CHAPITRE I Title of chapter
 1.1   Title of section
 1.1.1 Title of subsection
 
 In other words, I need my chapter numbers to be in roman number, but not in 
 the numbers of the sections and subsections (1.1.1 and not I.1.1).
 
 Here is the base code :
 
 \setuplist [chapter] [label=yes,style={\blank[0cm]}]
 \setupsection[section-2][conversion=Romannumerals]
 \setuplabeltext[chapter=CHAPITRE~]
 
 \starttext
 
 \placecontent
 
 \chapter{Title of chapter}
 \section{Title of section}
 \subsection{Title of subsection}
 
 \stoptext 
 
 which results in :
 
 CHAPITRE I Title of chapter
 I.1   Title of section
 I.1.1 Title of subsection
 
 Any idea ?
 All help is greatly appreciated.

MkIV:

\setuplabeltext[chapter=CHAPITRE~]
\definestructureconversionset[mathieu][numbers,Romannumerals][numbers]
\setuphead[chapter][sectionconversionset=mathieu]
\setuplist[chapter][label=yes,width=7em]

\starttext

\placecontent

\chapter{Title of chapter}
\section{Title of section}
\subsection{Title of subsection}

\stoptext

Wolfgang


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

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

Re: [NTG-context] Simplefonts, latest beta and binoms

2011-05-23 Thread Cedric Mauclair
Thanks, but I am afraid I get the same result with your example.

-- Cédric



On Mon, May 23, 2011 at 12:31, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 23.05.2011 um 12:13 schrieb Cedric Mauclair:

 Hi list,

 I have some troubles with the simplefonts module. The following worked
 fine before (2011.02.25 22:03, need to add '\usemodule[newmat]'), but
 doesn't anymore (2011.05.18 22:26).


 It’s the fault of the OpenType version of the LM Math fonts which
 are used when you use the simplefonts module:

 \definetypeface[mainface][rm][serif][modern]
 \definetypeface[mainface][mm][math] [modern]

 \setupbodyfont[mainface]

 \starttext
  \startformula
   \binom{1}{2}
  \stopformula
 \stoptext

 Wolfgang

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

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

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

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] Hyphenating compound words in MKIV microtypography

2011-05-23 Thread Otso Helenius
Hi,

MKIV seems to have a problem in hyphenating long finnish compound words in MKIV 
(2011.05.18 22:26).
Here is a minimalist example (columns added to exaggerate the problem):

\mainlanguage[fi]
\language[fi]
\starttext
\startcolumns[n=3]
kolmivaihekilowattituntimittari ympäristöliiketoiminta 
epäjärjestelmällisyydellistyttymättömyydellänsäkään 
järjestelmällisentelentelemättömyydellänsäkään 
\stopcolumns
\stoptext

Similarly with en-hyphenation and \input knuth, some of the lines stretch out 
in an ugly fashion.
What am I doing wrong? I don't have these problems in LaTeX.

P.S. The punctuation characters should be partially hung out in a justified 
paragraph (similar to
what microtype package does on LaTeX). Wikipedia says ConTeXt has interfaces 
for handling
microtypography but they don't seem as apparent and as easy as using microtype 
on LaTeX.

The wiki article Protrusion#MkIV presents \definefontfeature but I find it 
counterintuitive that one has to use

\definefontfeature[default][default][protrusion=quality,expansion=quality]
\setupalign[hz,hanging]

to enable the features. It is unclear if these lines switch the features on 
globally for all loaded fonts
(for example ttf/otf ones defined with \starttypescript). IMHO these features 
should be enabled by default
because they produce better typographic quality by default (which should be the 
preference), and could be
switched off anyway if wanted. The less setup lines one has to add before 
\starttext to get high quality
results the better.



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

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] Hyphenating compound words in MKIV microtypography

2011-05-23 Thread Hans Hagen

On 23-5-2011 2:07, Otso Helenius wrote:

Hi,

MKIV seems to have a problem in hyphenating long finnish compound words in MKIV 
(2011.05.18 22:26).
Here is a minimalist example (columns added to exaggerate the problem):

\mainlanguage[fi]
\language[fi]
\starttext
\startcolumns[n=3]
kolmivaihekilowattituntimittari ympäristöliiketoiminta 
epäjärjestelmällisyydellistyttymättömyydellänsäkään 
järjestelmällisentelentelemättömyydellänsäkään
\stopcolumns
\stoptext

Similarly with en-hyphenation and \input knuth, some of the lines stretch out 
in an ugly fashion.
What am I doing wrong? I don't have these problems in LaTeX.


it all depends on the defaults for tolerance and emergencystretch ... 
they determine where tex will break


in such an extreme case (narrow columns and long words) I'd just use

\setupalign[flushleft]



P.S. The punctuation characters should be partially hung out in a justified 
paragraph (similar to
what microtype package does on LaTeX). Wikipedia says ConTeXt has interfaces 
for handling
microtypography but they don't seem as apparent and as easy as using microtype 
on LaTeX.


fwiw: one has rather detailed control over what hangs and how much it 
hangs or protrudes (using character classes); we predefine a few cases 
in font-ext.lua but more can be defined if needed (not that I've noticed 
that much demand)


in the case of hz/protrusion easycan also easily become ugly


The wiki article Protrusion#MkIV presents \definefontfeature but I find it 
counterintuitive that one has to use

\definefontfeature[default][default][protrusion=quality,expansion=quality]
\setupalign[hz,hanging]


sure, (1) it's a font related feature that should be used with care and 
(2) you want to be able to turn it on and off



to enable the features. It is unclear if these lines switch the features on 
globally for all loaded fonts
(for example ttf/otf ones defined with \starttypescript). IMHO these features 
should be enabled by default
because they produce better typographic quality by default (which should be the 
preference), and could be
switched off anyway if wanted. The less setup lines one has to add before 
\starttext to get high quality
results the better.


it produces larger files, take more runtime and in most cases does not 
look better at all; for instance one can argue that protrusion gives 
more width but at the same time it introduces the boundary condition 
that some characters have to hang; or take hz (expansion) ... when 
applied so much that it gets visible, it will also lead to similar 
shapes in successive lines to look different


so, just enabling these features assuming that the output looks better 
is debatable (sometimes adding or removing a word is more effective)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] \type and linebreak (again)

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 12:54 schrieb Andreas Schneider:

 On Monday, May 23, 2011 12:11 Wolfgang Schuster wrote:
 
 \filename{cp \$SOMEVAR/some/very/very/very/long/directory/WITHFILE 
 \$SOMEVAR/other/long/directory}
 
 Wolfgang
 
 It's kinda depressing how easy some solutions are, that one could have
 found themselves if one just looked beyond the own walls.

There is also \hyphenatedfilename which use the current font
unlike \filename which use the monospaced font.

Wolfgang

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

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


Re: [NTG-context] Simplefonts, latest beta and binoms

2011-05-23 Thread Aditya Mahajan

On Mon, 23 May 2011, Wolfgang Schuster wrote:



Am 23.05.2011 um 12:13 schrieb Cedric Mauclair:


Hi list,

I have some troubles with the simplefonts module. The following worked
fine before (2011.02.25 22:03, need to add '\usemodule[newmat]'), but
doesn't anymore (2011.05.18 22:26).



It’s the fault of the OpenType version of the LM Math fonts which
are used when you use the simplefonts module:

\definetypeface[mainface][rm][serif][modern]
\definetypeface[mainface][mm][math] [modern]

\setupbodyfont[mainface]

\starttext
\startformula
  \binom{1}{2}
\stopformula
\stoptext


If I don't use any font setup, then the result is correct. Isn't opentype 
math setup used in both cases?


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

Re: [NTG-context] pdf attachments broken in latest minimal?

2011-05-23 Thread Hans Hagen

On 23-5-2011 12:40, Jesse Alama wrote:


Thanks. I notice, by the way, that even with mkii, PDF attachments don't
seem to function entirely correctly. This might be due to a limitation
of my PDF reader (I'm using Adobe Reader 10.0.3 on Mac OS X 10.6), but
with that minimal example, Reader says that


there has been extensions / changes in the specs so one has to keep 
updating that kind of support, but as mkii is frozen changes like that 
only happen in mkiv



* the name of the attachment is Unknown (shouldn't it be hi.txt?)
* the Description is hi.txt (seems like that should be the name, not
the description -- I'm not sure how to specify the description of an
attached file)
* the Modified, Size, and Compressed size metadata all say
Unknown (shouldn't at least Size have some sensible value?)
* clicking on the little attachment icon in the text does nothing, nor
does explicitly selecting Open attachment.



These might be bugs or limitations with Reader, but I'm not sure. Can
someone else confirm this behavior with attachments in mkii?


just changes/additions to the spec

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Simplefonts, latest beta and binoms

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 15:20 schrieb Aditya Mahajan:

 If I don't use any font setup, then the result is correct. Isn't opentype 
 math setup used in both cases?

Different fonts are used. By default context use the Type1 version
of the Latin Modern fonts while my example force ConTeXt to use
the OpenType version of the fonts where the braces are wrong.

Wolfgang

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

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


Re: [NTG-context] Simplefonts, latest beta and binoms

2011-05-23 Thread Cedric Mauclair
I did the following (just in case):
  export DOFONTDIR=
  mtxrun --script font --reload
  context simplefonts-error.tex

The file simplefonts-error.tex is just what Wolfgang suggested:
  \definetypeface[mainface][rm][serif][modern]
  \definetypeface[mainface][mm][math] [modern]

  \setupbodyfont[mainface]

  \starttext
  \startformula
   \binom{1}{2}
  \stopformula
  \stoptext

After perusing the log file, here are the font files that are loaded:
/DATA/context-minimals/tex/texmf/fonts/opentype/public/lm/lmmath.otf
/DATA/context-minimals/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf.

I really wish to use Calluna with Latin/Computer Modern math because I
find palatino too narrow.


PS: if I should send files in private mails only, just tell me.

-- Cédric



On Mon, May 23, 2011 at 15:20, Aditya Mahajan adit...@umich.edu wrote:
 On Mon, 23 May 2011, Wolfgang Schuster wrote:


 Am 23.05.2011 um 12:13 schrieb Cedric Mauclair:

 Hi list,

 I have some troubles with the simplefonts module. The following worked
 fine before (2011.02.25 22:03, need to add '\usemodule[newmat]'), but
 doesn't anymore (2011.05.18 22:26).


 It’s the fault of the OpenType version of the LM Math fonts which
 are used when you use the simplefonts module:

 \definetypeface[mainface][rm][serif][modern]
 \definetypeface[mainface][mm][math] [modern]

 \setupbodyfont[mainface]

 \starttext
 \startformula
  \binom{1}{2}
 \stopformula
 \stoptext

 If I don't use any font setup, then the result is correct. Isn't opentype
 math setup used in both cases?

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



simplefonts-error.pdf
Description: Adobe PDF document


simplefonts-error.log
Description: Binary data


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

[NTG-context] \startquotation and citations

2011-05-23 Thread Oliver Buerschaper
Dear all,

I'm struggling with quotation blocks and proper placing of citations… In an 
ideal world I'd be striving for something like this:

\startquotation[source=…]
\input tufte
\stopquotation

where … could be either of:

1. a simple string: {Edward Tufte},
2. a citation command: \cite[Tuf:]
3. a footnote: \footnote{See \cite[Tuf:]}

This should be typeset immediately after the closing delimiter and well before 
\stopnarrower.


In the real world (and with a deadline approaching rapidly) I've tried two 
approaches so far:

1. A hack dating back three years which bypasses the delimitedtext mechanism.

---
\long\def\startextendedquotation[#1]#2\stopextendedquotation
{\bgroup\par
 \blank[halfline]
 \startnarrower[4em]
 \symbol[leftquotation]%
 #2\removeunwantedspaces
 \symbol[rightquotation]#1
 \stopnarrower
 \blank[halfline]
 \par\egroup}



\starttext


\input tufte

\startextendedquotation[\footnote{See Tufte…}]
\input tufte
\stopextendedquotation

\input tufte


\stoptext
---

Here the footnote actually appears, however, the beginning of the quotation 
looks weird (and setting up margins etc. is a bit messy).


2. Another hack which employs delimitedtext but abuses its closing delimiter 
option:

---
\setupdelimitedtext
[quotation]
[leftmargin=4em,
 rightmargin=4em,
 spacebefore=halfline,
 spaceafter=halfline]



\starttext


\input tufte

\bgroup
\setupdelimitedtext
[quotation]
[right={\symbol[rightquotation]\footnote{See Tufte…}}]
\startquotation
\input tufte
\stopquotation
\egroup

\input tufte


\stoptext
---

This approach places the opening delimiter nicely in the margin of the 
quotation block but sadly swallows the footnote (ordinary strings seem fine 
though).

How to combine the looks of 2 with the footnotes of 1?

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

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] Simplefonts, latest beta and binoms

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 15:33 schrieb Cedric Mauclair:

 I really wish to use Calluna with Latin/Computer Modern math because I
 find palatino too narrow.

It is too narrow compared with Calluna but it is at least a better match
than Latin Modern but it’s possible the small braces are a bug in ConTeXt
or LuaTeX because it does only appear with OpenType math fonts:

Input:

\usemodule[simplefonts]

\setmainfont[Calluna]

\startbuffer[example]
\input ward\par
\startformula
c^2=a^2+b^2 \quad \binom{1}{2}
\stopformula
\stopbuffer

\starttext

\getbuffer[example]

\setmathfont[palatino]\getbuffer[example]

\setmathfont[euler]\getbuffer[example]

\setmathfont[times]\getbuffer[example]

\setmathfont[cambria]\getbuffer[example]

\stoptext

Output: http://d.pr/hKl1

Wolfgang

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

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


Re: [NTG-context] Simplefonts, latest beta and binoms

2011-05-23 Thread Cedric Mauclair
Thanks for your help. I'll go with palatino for now.

-- Cédric



On Mon, May 23, 2011 at 15:52, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 23.05.2011 um 15:33 schrieb Cedric Mauclair:

 I really wish to use Calluna with Latin/Computer Modern math because I
 find palatino too narrow.

 It is too narrow compared with Calluna but it is at least a better match
 than Latin Modern but it’s possible the small braces are a bug in ConTeXt
 or LuaTeX because it does only appear with OpenType math fonts:

 Input:

 \usemodule[simplefonts]

 \setmainfont[Calluna]

 \startbuffer[example]
 \input ward\par
 \startformula
 c^2=a^2+b^2 \quad \binom{1}{2}
 \stopformula
 \stopbuffer

 \starttext

 \getbuffer[example]

 \setmathfont[palatino]\getbuffer[example]

 \setmathfont[euler]\getbuffer[example]

 \setmathfont[times]\getbuffer[example]

 \setmathfont[cambria]\getbuffer[example]

 \stoptext

 Output: http://d.pr/hKl1

 Wolfgang

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

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

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

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

Re: [NTG-context] Simplefonts, latest beta and binoms

2011-05-23 Thread Aditya Mahajan

On Mon, 23 May 2011, Wolfgang Schuster wrote:



Am 23.05.2011 um 15:33 schrieb Cedric Mauclair:


I really wish to use Calluna with Latin/Computer Modern math because I
find palatino too narrow.


It is too narrow compared with Calluna but it is at least a better match
than Latin Modern but it’s possible the small braces are a bug in ConTeXt
or LuaTeX because it does only appear with OpenType math fonts:


The bug is with luatex:

http://tug.org/pipermail/lualatex-dev/2011-March/thread.html#1118

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

Re: [NTG-context] \startquotation and citations

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 15:39 schrieb Oliver Buerschaper:

 Dear all,
 
 I'm struggling with quotation blocks and proper placing of citations… In an 
 ideal world I'd be striving for something like this:
 
 \startquotation[source=…]
\input tufte
 \stopquotation
 
 where … could be either of:
 
 1. a simple string: {Edward Tufte},
 2. a citation command: \cite[Tuf:]
 3. a footnote: \footnote{See \cite[Tuf:]}
 
 This should be typeset immediately after the closing delimiter and well 
 before \stopnarrower.

\usemodule[annotation]

\definenarrower
  [NarrowQuotation]
  [middle=4em]

\define[2]\QuotationCommand
  {\startNarrowQuotation
   “#2”\annotationparameter{source}%
   \stopNarrowQuotation}

\defineannotation
  [extendedquotation]
  [alternative=command,
   command=\QuotationCommand,
   spacebefore=halfline]

\starttext

\input tufte

\startextendedquotation[source=\footnote{See Tufte …}]
\input tufte
\stopextendedquotation

\input tufte

\stoptext

Wolfgang

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

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


Re: [NTG-context] MPdefinitions

2011-05-23 Thread Vedran Miletić
2011/5/23 Wolfgang Schuster schuster.wolfg...@googlemail.com

 Please send a complete example!


Sure:

\startMPdefinitions{solvers}
\stopMPdefinitions

\starttext
Hello.
\stoptext
or this:

\startMPdefinitions{solvers}
def draw_problem (expr p, q, r, s, show_lables)=
begingroup ; save x, y, a, b, c, d, e, f, g, h ;
z11=z42=p ; z21=z12=q ; z31=z22=r ; z41=z32=s ;
a=x12-x11 ; b=y12-y11 ; c=x22-x21 ; d=y22-y21 ;
e=x32-x31 ; f=y32-y31 ; g=x42-x41 ; h=y42-y41 ;
z11=(x11, y11) ; z12=(x12, y12) ;
z13=(x12-b, y12+a) ; z14=(x11-b, y11+a) ;
z21=(x21, y21) ; z22= (x22, y22);
z23=(x22-s,y22+c) ; z24=(x21-d, y21+c) ;
z31=(x31, y31) ; z32=(x32, y32) ;
z33=(x32-f, y32+e) ; z34=(x31-f, y31+e);
z41=(x41, y41) ; z42=(x42, y42) ;
z43=(x42-h,y42+g) ; z44=(x41-h,y41+g) ;
pickup pencircle scaled .5pt ;
draw z11--z12--z13--z14--cycle ; draw z11--z13 ; draw z12--z14 ;
draw z21--z22--z23--z24--cycle ; draw z21—z23 ; draw z22—z24 ;
draw z31--z32--z33--z34--cycle ; draw z31—z33 ; draw z32—z34 ;
draw z41--z42--z43--z44--cycle ; draw z41—z43 ; draw z42—z44 ;
z1=0.5[z11,z13] ; z2=0.5[z21,z23] ;
z3=0.5[z31,z33] ; z4=0.5[z41,z43] ;
draw z1--z3 dashed evenly ; draw z2--z4 dashed evenly ;
z0=whatever[z1,z3]=whatever[z2,z4] ;
mark_rt_angle (z1,z0,z2);
if show_labels0:
draw_problem_labels ;
fi;
endgroup ;
enddef ;
\stopMPdefinitions

\starttext
Hello.
\stoptext

Result is the same.

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

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

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 17:37 schrieb Vedran Miletić:

 2011/5/23 Wolfgang Schuster schuster.wolfg...@googlemail.com
 Please send a complete example!
 
 Sure:
 
 […]

Add

\defineMPinstance
  [solvers]
  [format=metafun,
   extensions=yes,
   initializations=yes]

before \startMPdefintions or omit the argument (i.e. “{solvers}”)
from the \startMPdefintions command.

Wolfgang

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

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

Re: [NTG-context] Hyphenating compound words in MKIV microtypographyy

2011-05-23 Thread Hans Hagen

On 23-5-2011 5:54, Otso Helenius wrote:

it produces larger files, take more runtime and in most cases does
not look better at all; for instance one can argue that protrusion
gives more width but at the same time it introduces the boundary
condition that some characters have to hang; or take hz (expansion)
... when applied so much that it gets visible, it will also lead to
similar shapes in successive lines to look different

so, just enabling these features assuming that the output looks
better is debatable (sometimes adding or removing a word is more
effective)


I agree, in many cases automatic layout of content can look horrific because 
the algorithms
aren't able to solve each possible case in a near optimal way (while we as 
humans are).
And also, there is no question about it, *every* setting should be possible to 
turn on and off
depending on the situation.

Just as with WYSIWYG tools such as InDesign, manual adjustment of layout is 
needed to achieve
optimal results. But my actual complaint is this: the example I pasted was a 
very trivial
and simple typesetting task. Even the current versions MS Office can 
automatically achieve
acceptable paragraph look with the given input. In such case there should not 
be any need
to manually adjust spacing and expansion of words nor forcing the column into a 
ragged one.

The output of this MKIV source:

\mainlanguage[fi]
\language[fi]
\definefontfeature[default][default][protrusion=quality, expansion=quality]
\setupalign[hz, hanging, spacing]
\starttext
\startcolumns[n=2]
\dorecurse{10}{kolmivaihekilowattituntimittari ympäristöliiketoiminta 
epäjärjestelmällisyydellistyttymättömyydellänsäkään 
järjestelmällisentelentelemättömyydellänsäkään hääyöaie 
kolmivaihekilowattituntimittari ympäristöliiketoiminta 
epäjärjestelmällisyydellistyttymättömyydellänsäkään 
järjestelmällisentelentelemättömyydellänsäkään hääyöaie}
\stopcolumns
\stoptext

can be downloaded here: https://pi-xi.net/share/context_hyphen.pdf

I also wrote a close as possible equivalent of the code above in LaTeX and
compiled it with pdfTeX (TL 2011):

\documentclass[12pt, twocolumn, a4paper, finnish]{article}
\usepackage[utf8]{inputenc}
\usepackage[finnish]{babel}
\usepackage{ae}
\usepackage[auto=true, spacing=true, kerning=true, tracking=true, 
protrusion=true, expansion=true]{microtype}
\usepackage{pgffor}
\setlength{\parindent}{0mm}
\newcommand{\Repeat}[2]{\foreach \n in {1,...,#1}{#2}}
\begin{document}
\foreach \n in {1,...,10}{kolmivaihekilowattituntimittari 
ympäristöliiketoiminta epäjärjestelmällisyydellistyttymättömyydellänsäkään 
järjestelmällisentelentelemättömyydellänsäkään hääyöaie 
kolmivaihekilowattituntimittari ympäristöliiketoiminta 
epäjärjestelmällisyydellistyttymättömyydellänsäkään 
järjestelmällisentelentelemättömyydellänsäkään hääyöaie}
\end{document}

The LaTeX example can be downloaded here: 
https://pi-xi.net/share/latex_hyphen.pdf

As can be seen, the neither versions have any specific adjustments done by 
hand: both
only have the microtypographic features turned on. There is no comparison, the 
pdfTeX
version looks superior: there are no rivers, all lines are justified to equal 
length,
and the expansion and spacing are both acceptable.


(1) The 'spacing' options does not work and even gives an error in mkiv) 
so remove that one. What version of context are you running? I've 
already fotgotten about it but I think it was an experimental pdftesx 
feature with side effects. In pdftex hz and protrusion is also somewhat 
tricky as it can bleed from one font instance to another (due to 
traditional tex's internal font sharing), although context takes some 
precautions.


(2) But, more important: add \setuplayout[width=middle] to give context 
a more similar opportunity to produce something acceptable. You're now 
giving context a disadvantage of narrower columns.


(3) You can remove the \language as you already set \mainlanguage.

(4) In context protrusion and expansion is a font property and applying 
it globally to all fonts (with some flag) will not happen. Actually, in 
some situations you need to turn it on explicitly (imaging hanging 
happening when you're doing a table).


I don't know what latex's default layout setup is but if you want to do 
an experiment, you need to make sure that you use the same widths of 
columns.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] MPdefinitions

2011-05-23 Thread Vedran Miletić
2011/5/23 Wolfgang Schuster schuster.wolfg...@googlemail.com


 Am 23.05.2011 um 17:37 schrieb Vedran Miletić:

 2011/5/23 Wolfgang Schuster schuster.wolfg...@googlemail.com

 Please send a complete example!


 Sure:

 […]


 Add

 \defineMPinstance
   [solvers]
   [format=metafun,
extensions=yes,
initializations=yes]

 before \startMPdefintions or omit the argument (i.e. “{solvers}”)
 from the \startMPdefintions command.


Great, thanks.

Why does the code in attachment then produce undefined? It's an example
from MetaFun book.

Vedran


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

[NTG-context] Table of contents

2011-05-23 Thread Oliver Buerschaper
Dear all,

is it possible to have entries in the table of contents not indented at all 
whenever they stem from unnumbered headings? For example:

---
\starttext


\startfrontmatter
\completecontent

\chapter{Preface}
\stopfrontmatter


\startbodymatter
\part{Test}
\chapter{Tufte}
\chapter{Bryson}

\part{Test}
\chapter{Tufte}
\chapter{Bryson}
\stopbodymatter


\startbackmatter
\chapter{Acknowledgements}
\stopbackmatter


\stoptext
---

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

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] query about referring to pdf attachments

2011-05-23 Thread Jesse Alama

Can one refer to PDF attachments as though they were local files?

I'd like to treat the PDF as a kind of rudimentary filesystem.  
Whatever is attached to the PDF can be found under the root directory 
of the PDF.  One could then place hyperlinks to these files which, when 
followed, cause an attachment to be opened (say, a music player, a web 
browser, etc.).  Ideally, one would be able to do something like this:


\useattachment[my-video][my-video.mpg]
\attachment[my-video]
\useURL[my-video-url][file:///my-video.mpg][][Awesome Video]
\starttext
Follow the link to \from[my-video-url]!
\stoptext

The file:///my-video.mpg URI is a guess; the idea is to somehow refer 
to a file placed in the PDF's filesystem.


Jesse


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

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


Re: [NTG-context] Table of contents

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 19:18 schrieb Oliver Buerschaper:

 Dear all,
 
 is it possible to have entries in the table of contents not indented at all 
 whenever they stem from unnumbered headings? For example:
 
 ---
 \starttext
 
 
 \startfrontmatter
\completecontent
 
\chapter{Preface}
 \stopfrontmatter
 
 
 \startbodymatter
\part{Test}
\chapter{Tufte}
\chapter{Bryson}
 
\part{Test}
\chapter{Tufte}
\chapter{Bryson}
 \stopbodymatter
 
 
 \startbackmatter
\chapter{Acknowledgements}
 \stopbackmatter
 
 
 \stoptext

Define a header for them and set the number width to 0pt.

\definehead[topic][chapter]
\setuphead [topic][number=no]
\setuplist [topic][width=0pt]

\starttext

\startfrontmatter
   \title{Contents}
   \placelist[part,chapter,topic]
   \topic{Preface}
\stopfrontmatter

\startbodymatter
\dorecurse{2}
  {\part{Test}
   \chapter{Tufte}
   \chapter{Bryson}}
\stopbodymatter


\startbackmatter
\topic{Acknowledgements}
\stopbackmatter

\stoptext

Wolfgang

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

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


Re: [NTG-context] Appendix label in TOC (Table of Contents) : APPENDIX instead of CHAPTER

2011-05-23 Thread Mathieu DUPONT


Effectively, now that I've installed MkIV, I get the output I expected.
Thank you very much, Wolfgang !



Mathieu

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

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] Roman numbers for chapters in chapter lines but not in section lines

2011-05-23 Thread Mathieu DUPONT


This code :
\setuplabeltext[chapter=CHAPITRE~]\definestructureconversionset[mathieu][numbers,Romannumerals][numbers]\setuphead[chapter][sectionconversionset=mathieu]\setuplist[chapter][label=yes,width=7em]
\starttext
\placecontent
\chapter{Title of chapter}\section{Title of section}\subsection{Title of 
subsection}
\stoptext
results in :
CHAPITRE I Title of chapterI.I  Title of sectionI.I.I   Title of subsection
Now everything is in Roman !

Mathieu

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

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] Font features for \ss only?

2011-05-23 Thread Oliver Buerschaper
Hi all,

how would I make sure that \ss always uses one set of font features while \rm 
always uses the default feature set? Do I need to specify this in the 
typescript file?

The reason is I'm using Myriad as \ss font and would like to enable the capital 
spacing (cpsp) OpenType feature for that while activating a different feature 
set for all \rm instances (Minion in this case)…

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

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] Roman numbers for chapters in chapter lines but not in section lines

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 20:02 schrieb Mathieu DUPONT:

 This code :
 
 \setuplabeltext[chapter=CHAPITRE~]
 \definestructureconversionset[mathieu][numbers,Romannumerals][numbers]
 \setuphead[chapter][sectionconversionset=mathieu]
 \setuplist[chapter][label=yes,width=7em]
 
 \starttext
 
 \placecontent
 
 \chapter{Title of chapter}
 \section{Title of section}
 \subsection{Title of subsection}
 
 \stoptext
 
 results in :
 
 CHAPITRE I Title of chapter
 I.I   Title of section
 I.I.I Title of subsection
 
 Now everything is in Roman !

Not for me, i tested my example and got the output you described in your mail.

ConTeXt  ver: 2011.05.18 22:26 MKIV  fmt: 2011.5.23  int: english/english

Wolfgang


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

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

Re: [NTG-context] Font features for \ss only?

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 20:07 schrieb Oliver Buerschaper:

 Hi all,
 
 how would I make sure that \ss always uses one set of font features while \rm 
 always uses the default feature set? Do I need to specify this in the 
 typescript file?
 
 The reason is I'm using Myriad as \ss font and would like to enable the 
 capital spacing (cpsp) OpenType feature for that while activating a different 
 feature set for all \rm instances (Minion in this case)…

\usemodule[simplefonts]

\definefontfeature[myriad][default][cpsp=yes]

\setmainfont[Minion Pro]
\setsansfont[Myriad Pro][features=myriad]

\starttext
...
\stoptext

Wolfgang

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

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


[NTG-context] MkIV : MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

2011-05-23 Thread Mathieu DUPONT


I followed all these steps to install MkIV on a Mac and to run it with either 
Smultron or TexShop :
http://wiki.contextgarden.net/ConTeXt_Minimals/Mac_Installation

However it works fine with Smultron (but I am more used to TexShop to run TeX 
files), with TexShop I get :
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
Even after running the following command line :
luatools --generate
it doesn't help at all.

Thanks for any hint,

Mathieu

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

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] change user interface

2011-05-23 Thread Francois-Xavier Lamure Tardieu
Hello,

I want to use french interface user. I looked for in the wiki but I didn't find 
anything
Which are the variables to make it or functions to call ?
Thank you.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] change user interface

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 20:48 schrieb Francois-Xavier Lamure Tardieu:

 Hello,
 
 I want to use french interface user. I looked for in the wiki but I didn't 
 find anything
 Which are the variables to make it or functions to call ?

Add

% interface=fr

to your document as the first line of the file or call context with “context 
--interface=fr filename”.

Wolfgang

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

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


Re: [NTG-context] MkIV : MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

2011-05-23 Thread George N. White III
On Mon, May 23, 2011 at 3:13 PM, Mathieu DUPONT
mathieudup...@hotmail.com wrote:

 I followed all these steps to install MkIV on a Mac and to run it with
 either Smultron or TexShop :
 http://wiki.contextgarden.net/ConTeXt_Minimals/Mac_Installation

 However it works fine with Smultron (but I am more used to TexShop to run
 TeX files), with TexShop I get :
 MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
 Even after running the following command line :
 luatools --generate
 it doesn't help at all.

 Thanks for any hint,

 Mathieu

Not near my Mac system, but I seem to recall there was a change in the name
of the directory for the programs from  texmf-osx-intel to
texmf-osx-64 so you
would need to adjust the PATH setting from that given in the wiki.

-- 
George N. White III aa...@chebucto.ns.ca
Head of St. Margarets Bay, Nova Scotia
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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 : MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

2011-05-23 Thread Matthias Weber
I ran into the exact same problem. Aditya resolved the issue as follows:


The wiki info to create  an executable  file ConTeXt-MKIV.engine containing

#!/bin/bash
export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel/bin:$PATH
export TEXMFCACHE=/Applications/ConTeXtMinimals/tex/texmf-cache
context $1

in ~/Library/TeXShop/Engines
is slightly but catastrophically outdated. The file needs to read

#!/bin/bash
export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-64/bin:$PATH
export TEXMFCACHE=/Applications/ConTeXtMinimals/tex/texmf-cache
context $1

Matthias



On May 23, 2011, at 2:13 PM, Mathieu DUPONT wrote:

 
 I followed all these steps to install MkIV on a Mac and to run it with either 
 Smultron or TexShop :
 
 http://wiki.contextgarden.net/ConTeXt_Minimals/Mac_Installation
 
 However it works fine with Smultron (but I am more used to TexShop to run TeX 
 files), with TexShop I get :
 
 MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
 
 Even after running the following command line :
 
 luatools --generate
 
 it doesn't help at all.
 
 
 Thanks for any hint,
 
 
 Mathieu
 
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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

Re: [NTG-context] MkIV : MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

2011-05-23 Thread Mathieu DUPONT


Awsome !
It entirely solved my problem !
Thank you very much !!



Mathieu



From: matwe...@indiana.edu
Date: Mon, 23 May 2011 15:06:55 -0400
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] MkIV : MTXrun | unknown script 'context.lua' or  
'mtx-context.lua'



I ran into the exact same problem. Aditya resolved the issue as follows:

The wiki info to create  an executable  file ConTeXt-MKIV.engine containing
#!/bin/bashexport 
PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel/bin:$PATHexport 
TEXMFCACHE=/Applications/ConTeXtMinimals/tex/texmf-cachecontext $1
in ~/Library/TeXShop/Enginesis slightly but catastrophically outdated. The file 
needs to read
#!/bin/bashexport 
PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-64/bin:$PATHexport 
TEXMFCACHE=/Applications/ConTeXtMinimals/tex/texmf-cachecontext $1
Matthias


On May 23, 2011, at 2:13 PM, Mathieu DUPONT wrote:I followed all these steps to 
install MkIV on a Mac and to run it with either Smultron or TexShop :
http://wiki.contextgarden.net/ConTeXt_Minimals/Mac_Installation

However it works fine with Smultron (but I am more used to TexShop to run TeX 
files), with TexShop I get :
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
Even after running the following command line :
luatools --generate
it doesn't help at all.

Thanks for any hint,

Mathieu

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

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
___
   ___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Roman numbers for chapters in chapter lines but not in section lines

2011-05-23 Thread Mathieu DUPONT


Ok, me too, now that MkIV is correctly installed with TexShop...
Thank you very much Wolfgang !



Mathieu



From: schuster.wolfg...@googlemail.com
Date: Mon, 23 May 2011 20:07:25 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] Roman numbers for chapters in chapter lines but  
not in section lines




Am 23.05.2011 um 20:02 schrieb Mathieu DUPONT:This code :
\setuplabeltext[chapter=CHAPITRE~]\definestructureconversionset[mathieu][numbers,Romannumerals][numbers]\setuphead[chapter][sectionconversionset=mathieu]\setuplist[chapter][label=yes,width=7em]
\starttext
\placecontent
\chapter{Title of chapter}\section{Title of section}\subsection{Title of 
subsection}
\stoptext
results in :
CHAPITRE I Title of chapterI.I  Title of sectionI.I.I   Title of subsection
Now everything is in Roman !
Not for me, i tested my example and got the output you described in your mail.
ConTeXt  ver: 2011.05.18 22:26 MKIV  fmt: 2011.5.23  int: english/english
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] getmarking and empty chapter number

2011-05-23 Thread Oliver Buerschaper
Hi all,

I'm just trying to wrap my mind around why the following doesn't work as I 
expect:

--
\setupheadertexts
[]

[{\doifsomething{\getmarking[sectionnumber]}{\getmarking[sectionnumber]\enskip}\getmarking[section]}]

[{\doifsomething{\getmarking[chapternumber]}{\getmarking[chapternumber]\enskip}\getmarking[chapter]}]
[]
--

When this encounters an unnumbered \startchapter (say in the front matter) then 
this \doifsomething should detect this void and in particular not insert the 
\enskip. For some reason the space ends up in the PDF nevertheless :-(

Any ideas?

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

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] alternating items in an itemization

2011-05-23 Thread Jesse Alama
I'd like to define an itemization that has two kinds of items, 
representing a dialogue between two people.  (One could imagine 
extending this to more than two.)  I'd like to have something like this:


\startdialogue
\john What did you have for breakfast?
\mary I skipped breakfast today.
\john Oh, why?
\mary Because I wasn't hungry.  I was too distraught at what had 
happened the previous night.

\stopdialogue

The \john and \mary parts would each be their own paragaphs.  The 
paragraphs would be colored with different text backgrounds, and joined 
up with one another  (that is, the blocks of text representing the 
paragraphs for the different speakers would be adjacent to one another).


I've tried doing this using \defineparagraphs, \defineframedtext, and 
\defineenumerations, but I can't quite get the right effect;


\setupcolors[state=start]
\definetextbackground[john-background][backgroundcolor=green]
\definetextbackground[mary-background][backgroundcolor=red]
\definestartstop[dialogue]
\defineparagraphs[john][before={\starttextbackground[john-background]},after={\stoptextbackground}]
\defineparagraphs[mary][before={\starttextbackground[mary-background]},after={\stoptextbackground}]

Putting 

this before the above \start/stopdialogue snippet (suitably enclosed in 
\start/stoptext) gives me an error about a missing }; I suppose I'm 
overlooking something.


An enumeration-based solution would be along these lines:

\defineenumeration
 [chat]
\setupenumerations
 [chat]
 [joinedup,packed]
\define[0]\john{\item John: }
\define[0]\may{\item Mary: }

I can't figure out how to get the textbackgrounds to work here, and 
there's a bullet symbol at the beginning of every dialogue paragraph, 
which I'd rather get rid of (and I don't want the indent between the 
bullet and the beginning of the text).


A framed-text solution starts to come close:

\defineframedtext[john][frame=off,background=color,backgroundcolor=magenta]
\defineframedtext[mary][frame=off,background=color,backgroundcolor=lightred]

But then the boxed paragraphs are separated from each other by some 
vertical whitespace.


Another idea would be to use tables, but I haven't explored that yet.  
Any suggestions for how to render dialogues as above in ConTeXt?


Thanks,

Jesse


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

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] OT: What reference management software do you use?

2011-05-23 Thread Stefan Müller



On 22.05.2011 22:14, Otso Helenius wrote:

using ConTeXt and not LaTeX you maybe also use a nice reference
management software the main stream does not know about. But probably it
is not related to ConTeXt at all since it is BibTeX in the end.


I can warmly recommend Zotero. It works very well and can fetch content
directly from web pages (also recognizes PubMed, ScienceDirect, Google Books
etc. automatically). The best feature is automatic sync of content
to either the Zotero server or your own.


+1 for Zotero

I tried Mendeley some time ago. It's standalone but sill quite similar 
to Zotero. Browser-integration works via a special bookmark. It also 
has an embedded pdf-viewer, which is very neat. Reason for changing to 
Zotereo were some strange bibtex-export issues, where the bibtex file 
got messed up and had to be readjusted manually.



The Firefox plugin is nice, and now there is also an alpha standalone app
in in development. The software is open source and in use in many
universities worldwide.

http://www.zotero.org/about/

Best,
Otso Helenius

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

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 : MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

2011-05-23 Thread Aditya Mahajan

On Mon, 23 May 2011, George N. White III wrote:


On Mon, May 23, 2011 at 3:13 PM, Mathieu DUPONT
mathieudup...@hotmail.com wrote:


I followed all these steps to install MkIV on a Mac and to run it with
either Smultron or TexShop :
http://wiki.contextgarden.net/ConTeXt_Minimals/Mac_Installation

However it works fine with Smultron (but I am more used to TexShop to run
TeX files), with TexShop I get :
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
Even after running the following command line :
luatools --generate
it doesn't help at all.

Thanks for any hint,

Mathieu


Not near my Mac system, but I seem to recall there was a change in the name
of the directory for the programs from  texmf-osx-intel to
texmf-osx-64 so you
would need to adjust the PATH setting from that given in the wiki.


Are all mac OS installations 64 bit? Or is osx-intel used in 32bit Mac and 
osx-64 used in 64bit Mac?


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


Re: [NTG-context] OT: What reference management software do you use?

2011-05-23 Thread Thomas A. Schmitz

On May 23, 2011, at 10:45 PM, Stefan Müller wrote:

 +1 for Zotero
 
 I tried Mendeley some time ago. It's standalone but sill quite similar to 
 Zotero. Browser-integration works via a special bookmark. It also has an 
 embedded pdf-viewer, which is very neat. Reason for changing to Zotereo were 
 some strange bibtex-export issues, where the bibtex file got messed up and 
 had to be readjusted manually.

I find Zotero useless for my work with ConTeXt. You cannot have 
cross-references within your bibliographic items, and it is impossible to have 
proper markup in bibliographical items. For me, both are absolute killer 
arguments; I cannot work with zotero. And the bibtex export sucks; important 
features such as bibtex strings are not supported. So I would actually 
recommend jabref if you need a cross-platform tool or bibdesk if you're using 
OS X exclusively. Regarding a system when you write your context files: I use 
Emacs, and I haven't seen anything more powerful or more convenient than reftex 
(which also works with context, after a few tweaks in your configuration file).

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

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


Re: [NTG-context] OT: What reference management software do you use?

2011-05-23 Thread Stefan Müller
Okay, then I should definitely take a look at JabRef. Anyhow, maybe I'm 
naive here, but I don't see a reason why Zotero should support BibTeX 
Strings. If I type the BibTeX file manually, sure. But Zotero reads the 
(e.g.) Journal names from the corresponding websites, so there should be 
no need to replace those with abbreviations. Is it because I don't 
understand BibTeX strings?


Does JabRef offers synchronisation (e.g. WebDAV) between different machines?

Stefan

On 23.05.2011 23:00, Thomas A. Schmitz wrote:


On May 23, 2011, at 10:45 PM, Stefan Müller wrote:


+1 for Zotero

I tried Mendeley some time ago. It's standalone but sill quite similar to Zotero. 
Browser-integration works via a special bookmark. It also has an embedded 
pdf-viewer, which is very neat. Reason for changing to Zotereo were some strange 
bibtex-export issues, where the bibtex file got messed up and had to be readjusted 
manually.


I find Zotero useless for my work with ConTeXt. You cannot have 
cross-references within your bibliographic items, and it is impossible to have 
proper markup in bibliographical items. For me, both are absolute killer 
arguments; I cannot work with zotero. And the bibtex export sucks; important 
features such as bibtex strings are not supported. So I would actually 
recommend jabref if you need a cross-platform tool or bibdesk if you're using 
OS X exclusively. Regarding a system when you write your context files: I use 
Emacs, and I haven't seen anything more powerful or more convenient than reftex 
(which also works with context, after a few tweaks in your configuration file).

Thomas

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

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


Re: [NTG-context] OT: What reference management software do you use?

2011-05-23 Thread John Haltiwanger
I hope my question does not come off as too aggressive, but why on earth are
we still using BibTeX? Or, more accurately, when can we _stop_ using BibTeX
and move onto something that has native UTF-8 support and can also integrate
with a reasonable configuration environment such as CSL?

What is the next step for bibliographies in Context? Surely we won't be
chained to BibTeX (which has seemingly been largely been in practice for the
sake of BibLaTeX) forever?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] OT: What reference management software do you use?

2011-05-23 Thread Pontus Lurcock
On Mon 23 May 2011, Stefan Müller wrote:

 Okay, then I should definitely take a look at JabRef. Anyhow, maybe I'm  
 naive here, but I don't see a reason why Zotero should support BibTeX  
 Strings. If I type the BibTeX file manually, sure. But Zotero reads the  
 (e.g.) Journal names from the corresponding websites, so there should be  
 no need to replace those with abbreviations. Is it because I don't  
 understand BibTeX strings?

I believe that one advantage is adding a level of indirection for
journal naming: you can have, for example, one definition file which
defines JISN as ‘Journal of Inconveniently Sesquepedalian
Nomenclature’, and another defining it as ‘J. Inc. Ses. Nom.’, and
switch between different definition files according to publisher
requirements, space restrictions, and so on.

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

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] OT: What reference management software do you use?

2011-05-23 Thread Otso Helenius
 What is the next step for bibliographies in Context? Surely we won't be
 chained to BibTeX (which has seemingly been largely been in practice for the
 sake of BibLaTeX) forever?

Perhaps Biber (http://biblatex-biber.sourceforge.net/) could fill the void.
It supports Unicode, is BibTeX compatible and has planned SQL and XML support
in the future.

I'm happy as long as the next de facto scientific standard for references will
be open source and not something as horrible as RefWorks.

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

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] OT: What reference management software do you use?

2011-05-23 Thread Thomas A. Schmitz

On May 23, 2011, at 11:32 PM, John Haltiwanger wrote:

 I hope my question does not come off as too aggressive, but why on earth are 
 we still using BibTeX? Or, more accurately, when can we _stop_ using BibTeX 
 and move onto something that has native UTF-8 support and can also integrate 
 with a reasonable configuration environment such as CSL?
 
 What is the next step for bibliographies in Context? Surely we won't be 
 chained to BibTeX (which has seemingly been largely been in practice for the 
 sake of BibLaTeX) forever?

You do sound a bit impatient, but the answer is: bibtex is a beast, but 
bibliographies is such an endless topic, there are so many permutations and 
possibilities and options that replacing bibtex is easier said than done. 
bibtex gets the job done, most of the time, and I've always heard that there 
will be a next big thing which will replace bibtex, but it never quite 
happened. zotero's approach (a completely untransparent, complex and hence 
fragile sql database) is a lot worse than bibtex. 

As to the question why strings: Pontus's answer named one important aspect. I 
have several .bib files which contain nothing but string definitions: one with 
abbreviated, one with full journal titles; one with English strings (reprint, 
Munich) and one with the German equivalent (Nachdruck, München). 
Including the right file(s) will then provide the desired output.

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

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


Re: [NTG-context] MkIV : MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

2011-05-23 Thread Hans Hagen

On 23-5-2011 10:58, Aditya Mahajan wrote:


Are all mac OS installations 64 bit? Or is osx-intel used in 32bit Mac
and osx-64 used in 64bit Mac?


It depends on the hardware: the cheaper macbooks can do 64 bit but are 
forced into a 32 bit kernel (a punishment for buying the cheap model and 
I happen to have such one) but one can trick around that which in turn 
confuses the mechanisms that determine if we're deaing with a 32/64 bit 
machinery ... Mojca's minimals scripts nightmare.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] [bibliography] publications layout

2011-05-23 Thread finkler
Hi there,

in my publication list from the bibliography, every word, except the
first starts in small case letters. How can I change this?

I am using the beta.

regards,
finkler

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

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] [bibliography] publications layout

2011-05-23 Thread Pontus Lurcock
On Tue 24 May 2011, finkler wrote:

 in my publication list from the bibliography, every word, except the
 first starts in small case letters. How can I change this?

This might help: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=capbibtex

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

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] TOC : Chapter title under its number (separate lines)

2011-05-23 Thread Mathieu DUPONT


Hi,
Is there a simple way to obtain the following result in the table of content :
ContentsCHAPTER 1Title of chapter21.1Title of 
section2
(the chapter title underneath its number and left aligned, just like everything 
else)
The following code used to do the job with MkII but it doesn't anymore with 
MkIV :
\setuplabeltext[chapter=CHAPTER~]\setuplist[chapter][label=yes, 
style={\blank[0cm]}]\starttext
\startfrontmatter\completecontent\stopfrontmatter
\startbodymatter\chapter{Title of chapter}\section{Title of 
section}\stopbodymatter
\stoptext 
Instead, I get something like this (I hope it turns out readable through the 
email) :
ContentsCHAPTER 1  Title of chapter21.1Title of 
section2
where the 2 lines of the chapter, together with their alignment with the frame, 
get tossed to the right...
Thanks in advance !

Mathieu

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

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] getmarking and empty chapter number

2011-05-23 Thread Aditya Mahajan

On Mon, 23 May 2011, Oliver Buerschaper wrote:


Hi all,

I'm just trying to wrap my mind around why the following doesn't work as I 
expect:

--
\setupheadertexts
[]

[{\doifsomething{\getmarking[sectionnumber]}{\getmarking[sectionnumber]\enskip}\getmarking[section]}]

[{\doifsomething{\getmarking[chapternumber]}{\getmarking[chapternumber]\enskip}\getmarking[chapter]}]
[]
--

When this encounters an unnumbered \startchapter (say in the front 
matter) then this \doifsomething should detect this void and in 
particular not insert the \enskip. For some reason the space ends up in 
the PDF nevertheless :-(


Any ideas?



From supp-box.mkiv:


%D \macros
%D   {doiftextelse, doiftext}
%D
%D When \type {\doifelse} cum suis hopelessly fail, for
%D instance because we pass data, we can fall back on the next
%D macro:
%D
%D \starttyping
%D \doiftextelse {data} {then branch} {else branch}
%D \doiftext {data} {then branch}
%D \stoptyping

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


[NTG-context] Non-breakable space in export to XML

2011-05-23 Thread Aditya Mahajan

Hi,

When exporting to xml (with \setupbackend[export=yes]), the non-breakable 
space (~) gets exported to regular space 0x32. Shouldn't it rather be 
exported to 0x00A0?


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


Re: [NTG-context] MkIV : MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

2011-05-23 Thread Mojca Miklavec
On Mon, May 23, 2011 at 22:58, Aditya Mahajan wrote:

 Are all mac OS installations 64 bit? Or is osx-intel used in 32bit Mac and
 osx-64 used in 64bit Mac?

osx-intel is for 32-bit Macs (still from time when Apple only
distinguished between ppc/intel) and osx-ppc for 32-bit PowerPC.

However you cannot buy 32-bit hardware any more and you cannot choose
to install a 32-bit system on 64-bit hardware (unless you install
ancient OS which nobody does and which might not even work due to lack
of drivers). So anyone who has bought a mac after Snow Leopard has
been released (late 2009?) has 64-bit Mac OS X.

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
___