Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-18 Thread Keith J. Schultz
Hi Hraban,

Good to know. I will investigate at another time and give feed back.
I am in the middle of moving, so I do not have much time.

We ought to think of making a export specific to epub in the long run!
 
regards
Keith.
 Am 18.02.2015 um 09:14 schrieb Henning Hraban Ramm te...@fiee.net:
 
 
 Am 2015-02-18 um 04:37 schrieb Aditya Mahajan adit...@umich.edu:
 
 On Tue, 17 Feb 2015, Hans Hagen wrote:
 
 Context outputs three varants: regular xml, xhtml, and stupified xhtml with 
 div/class tagging. The last one is supposed to work on all devices as it 
 doesn't demands anything beyond css.
 
 The XML generated by ConTeXt is very well structured. So, an option is to 
 simply provide XLST stylesheets that transform ConTeXT-XML to 
 XHTML/HTML5/whatever.
 
 Such XLST transformation will be better than have ConTeXt chase a moving 
 target.
 
 See e.g. http://wiki.contextgarden.net/Epub_Sample
 
 I’ll try to update the pages about ConTeXt’s current export soon, since I 
 have a new book in the pipeline.
 
 Greetlings, Hraban
 ---
 http://www.fiee.net
 http://wiki.contextgarden.net
 https://www.cacert.org (I'm an assurer)
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] Epub format Was: Re: Context to epub: itemize

2015-02-16 Thread Keith J. Schultz
Hi Axel, All,

You have mentioned that most current ebook readers can not display MathML.

Well, the problem lies in the epub guidelines for the readers.

The problem is even worse. many readers do not even implement the full HTML5
standard. though that is the standard used in the latest epub stadnard.
The fact is to be considered epub readers the do not have to, it is a problem
of the epub reader definition.

The problem is what should ConTeXt output?
Should it output code that implements according to the full epub standard 
OR JUST 
what is handled by most epub readers!

IMHO : ConTeXt should not output XHMTL for epub, but HMTL5.
Yes, yes, I know XHMTL is part of HMTL5.

Another question for me is if ConTeXt should also output code for
the iBooks epub format, (Basicaly epub, but some extras).
There are thing you can do in/with ConTeXt that would work with iBooks
that do not in „ordinary“ epub books.

Then, there is the Kindle format one might want to consider!

Another, question which needs investigation is if the ConTeXt output for epub,
also, implementing the fallbacks for missing features which is required?

Just some added thoughts.

Basically, you can only expect ConTeXts epub output to be a starting point that
then has to be tweak.

regards
Keith.

 Am 17.02.2015 um 07:11 schrieb Axel Kielhorn t...@axelkielhorn.de:
 
 [...]
 Yes I know.
 Let me rephrase the question:
 
 Should the symbols used in epub be identical to those used in the pdf or 
 should the css determine the look of the symbols?
 Especially when one considers that most current ebook readers can't display 
 MathML.
 
 Even if I substitute the Symbols:
 
 \definesymbol[uni1][•]
 \definesymbol[uni2][–]
 \definesymbol[uni3][*]
 \definesymbol[uni4][·]
 
 \setupitemgroup [itemize] [1] [symbol=uni1]
 \setupitemgroup [itemize] [2] [symbol=uni2]
 \setupitemgroup [itemize] [3] [symbol=uni3]
 \setupitemgroup [itemize] [4] [symbol=uni4]
 
 I get a result that neither ADE nor Calibre interprets as a list.
 (Wrapping it in ul /ul doesn't help.) 
 

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

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] need defaults for \definehighlight

2015-02-08 Thread Keith J. Schultz
Hi Hans, Irdis, All,

It might sound like splitting hairs, but I find we should be careful how we 
call this beast!

Basically, a highlight allows one so setup a font style and color to be applied
to it contents.

The problem is that is this REALLY a Highlight! 

A style and color is applied so, what we have is a use color and style!

would it not be better to call it
definecharstyle
or
definetextstyle

For compatibility we could use keep the definehighlight as a synonym.

As to setting up defaults, the question is their a generic usage of such ways of
for so called highlights. These are, basically, by those that:
1) like this much fluff
2) idiosyncratic terminology

1) is supposed to avoided! And basically makes ConTeXt look like Word!

The use of another way of defining a command for the standard font styles
is proof enough for 2. Also, not everybody would want the predefined styles and 
colors
so they will have to be changed in the setuphighlight anyway!

The use of such a command is convient, but we should think about the 
nomenclature!
The nomenclature should reflect what it does. We can have synonyms to satisfy 
the
semantic usage of it!

regards
Keith


 Am 07.02.2015 um 13:53 schrieb Hans Hagen pra...@wxs.nl:
 
[snip, snip]

 Anyway, the problem with predefined highlights is that we won't overload 
 existing commands by default, so redefining is not an option in the core.
 
 An option is to provide a set like:
 
 \unprotect
 
 \definehighlight[\v!italic][\c!command=\v!no,\c!style=\v!italic]
 \definehighlight[\v!bold  ][\c!command=\v!no,\c!style=\v!bold]
 \definehighlight[\v!bolditalic][\c!command=\v!no,\c!style=\v!bolditalic]
 \definehighlight[\v!mono]  [\c!command=\v!no,\c!style=\v!mono]
 \definehighlight[\v!monobold]  [\c!command=\v!no,\c!style=\v!monobold]
 
 \definehighlight[important][\c!command=\v!no,\c!style=\v!bold]
 \definehighlight[unimportant]  [\c!command=\v!no,\c!color=darkgray]
 \definehighlight[warning] 
 [\c!command=\v!no,\c!style=\v!bold,\c!color=darkblue]
 \definehighlight[error] [\c!command=\v!no,\c!style=\v!bold,\c!color=darkred]
 
 \protect
 
 \starttext
 
\highlight[italic] {italic}
\highlight[bolditalic] {bolditalic}
\highlight[bold]   {bold}
\highlight[mono]   {mono}
\highlight[monobold]   {monobold}
\highlight[important]  {important}
\highlight[unimportant]{unimportant}
\highlight[warning]{warning}
\highlight[error]  {error}
 
 \stoptext
 
 Keep in mind that coding in terms of 'emph' is rather useless with respect to 
 highlights. Highlights relate to structure (while \it doesn't) so you need 
 tags like 'important' and so.

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

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 with Grey background for pages belonging to last section of every chapter

2015-02-02 Thread Keith J. Schultz
Hi Wolgang,

I noticed that \startnamedsection does not add it to the TOC
how would one go about having these „namedsections“ added to the TOC.

regards
Keith.

 Am 02.02.2015 um 12:51 schrieb Wolfgang Schuster 
 schuster.wolfg...@gmail.com:
 
 You have to add „location=paragraph” to the textbackground setup.
 
 \definetextbackground
  [ChapterFrame]
  [frame=off,
   background=color,
   backgroundcolor=green,
   backgroundoffset=1ex,
   location=paragraph] % default: location=text
 
 \definehead [Framed][chapter]
 \definehead [Frameless] [chapter]
 
 \setuphead
  [Frameless]
  [before={\blank[2*line]}]
 
 \setuphead
  [Framed]
  [page=no,
   before=,
   beforesection={\page\blank[2*line]\starttextbackground[ChapterFrame]},
   aftersection=\stoptextbackground]
 
 \starttext
 
 \startnamedsection[Frameless][title=Chapter without frame]
 
 \input knuth
 
 \stopnamedsection
 
 \startnamedsection[Framed][title=Chapter with frame]
 
 \input knuth
 
 \stopnamedsection
 
 \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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] A note on Arabic names in bibliographies and indices

2015-02-01 Thread Keith J. Schultz
Hi Idris, All,

We have here the classical database problem of finding a format that fits all.
But, as any body working with databases knows this will not work with a rigid
format.

Here we have 3 fields for the authors can can be misused.
The von is the most problematic. It seems due to its cultural diversity.

The use of the \setuppublicationlist[colsep=] helps in some ways that it gives
the writers of text the flexibility of  manually controlling the space after 
von field,
but as Idris has pointed out this would involve a lot of work depending on the 
authors
one has in ones database. This is especially, problematic for academics that 
reuse their
bibliographies!

Irdis second solution is a simple work around for where only a few changes are 
necessary.

I am not an expert with this „von“ business, but in Idris case here „al-„ a 
simple change in the output
of the vonsep could help globally without causing to many problems.
That is make the output of the vonsep dependent on the last character of the 
von-field
here „-„ 

The other possibility would be to use a discretionary switch for the output of 
the vonsep
one definition could be vonsep=
yes : output blank or global vonsep (default if vonsep 
field not in publication entry)
no : do not output vonsep
string : output character sequence
command : use command to output vonsep

Of  course we could just have a default handler for the von field and allow it 
to be changed
by writers! 

hope this helps the people smashing their brains on this subject/code!

regards
Keith. 

 Am 01.02.2015 um 16:06 schrieb Idris Samawi Hamid ادريس سماوي حامد 
 isha...@colostate.edu:
 
 Dear Syndicate,
 
 The current bibliography handler uses the following for authors:
 
 \type{\author[junior]{firstnames}[inits]{von}{surname}}
 
 Now in Arabic we have something similar to the 'von' field: the definite 
 article 'al-', 'ibn', etc. Just as with 'von' we want to ignore them in the 
 alphabetical sorting. [On the other hand, ConTeXt cannot currently sort its 
 own bbl files alphabetically]. See the linked picture for a real-life example 
 (the top-right of the page contains both Dutch and Arabic examples):
 
 https://www.dropbox.com/s/rnimlactrlqz6ak/arabic-dutch-bib.jpg?dl=0
 
 Now the {von} field works for these Arabic prefixes, but there is an issue: 
 There can be no space between 'al-' and what follows (e.g. 'al-Haq'). But the 
 {von} field by default adds a space (von Corbin). So what to do? One solution 
 is to use \setuppublicationlist[vonsep=] (see also attached):
 
[snip, snip]
 \setuppublicationlist[vonsep=] kills the space after the prefix, but that 
 means that for every 'von', 'van', 'abu', and the like we have to add the 
 space manually in the {von} field (as in the above example).
 
 If we don't want to use \setuppublicationlist[vonsep=] then we have to define 
 a command for 'al-' that gobbles the space:
 
 % \define \GobbleSpace{\ignorespaces}
 % \define \Al{al-\GobbleSpace}
 
 If one is using lots of Arabic names and few, e.g., Dutch names, then using 
 the [vonsep=] approach seems better. But in the upcoming bib module we may 
 want a better solution so that bbl files can be more consistent and portable. 
 Any thoughts are appreciated, and
[snip, snip]

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

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] Can I use mkii and mkiv side by side?

2015-01-27 Thread Keith J. Schultz
Hi Gerben,

Sorry, one typo!
The file is tools-mkiv.pdf.

It is not in the MacTeX distribution! 
You get it with Standalone, I normally use that!

But you can get it at:
http://www.pragma-ade.nl/general/manuals/tools-mkiv.pdf 
http://www.pragma-ade.nl/general/manuals/tools-mkiv.pdf

regards
Keith.


 Am 26.01.2015 um 22:49 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 On 26 Jan 2015, at 19:51, Keith Schultz keithjschu...@icloud.com 
 mailto:keithjschu...@icloud.com wrote:
 
 Hi Gerben,
 
 I would not say old-fasshoined , but old school.
 
 Wolgang said to use context, but that is just a script that calls mtxrun!
 
 So you can use:
 
 mtxrun —script context
 
 for other options look for:
 
 tool-mkiv.pdf
 
 Is that part of MacTeX? Or do I need to download a separate ConTeXt somewhere 
 and install it somewhere in the texlive directory structure?
 
[snip, snip]

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

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

Re: [NTG-context] Context modules not on CATN and not in TeX Live (slightly OT)

2015-01-26 Thread Keith J. Schultz
Hi Mojca,

Thank you for clarifying a few things. 

I have not seen any information how to contribute modules to ConTeXt or how they
are passed  up the stream!

A few caveats though!
1) Who „authorizes“ ConTeXt modules for CTAN ?
2) Do not CTAN and TeXLive have pretty much the same guidelines?
3) Who gets to decide what is really „Useful“ ?

I did not mean to say do not use TDS!  Besides, one can always install the
„missing“ modules in the TeXLive tree, if they really want them!

regards
Keith.

 Am 26.01.2015 um 14:03 schrieb Mojca Miklavec 
 mojca.miklavec.li...@gmail.com:
 
 On Mon, Jan 26, 2015 at 1:40 PM, Keith Schultz wrote:
 Hi Alex,
 
 The simple answer to your question would be to use this page:
 
 http://www.ctan.org/upload/ http://www.ctan.org/upload/
 
 No, in case of ConTeXt that's not correct. The idea would be to handle
 everything automatically once the modules are uploaded to
 modules.contextgarden.net http://modules.contextgarden.net/. Some 
 discrepancies are intentional, some
 are bugs (read as: nobody noticed that a module was missing and/or
 bothered requesting it).
 
 I was offline for a while and will explain this later in detail. I
 just wanted to make sure that nobody starts uploading cmscbf and alike
 to CTAN.
 
 BUT, the MISSING modules or packages are so-called third party!
 It should be the responsibility of the AUTHORS, to upload the to CTAN!
 
 No, that's not the case with ConTeXt modules. They are synced automatically.
 
 Also, e.g cmscbf and cmttbf are no longer needed in mkiv! They are for use
 with
 mkii!
 
 Furthermore, you should concertrate on using ONLY MKIV! Especially,
 since your audience seem to be introductory.  MKII is frozen and IMHO
 outdated!
 
 It's not so much outdated, but it's certainly frozen and certainly not
 worth spending too much effort in it. (With an exception of occasional
 support for XeTeX which is still an up-to-date engine.)
 
 I would suggest that you point them to the Standalone stable release,
 if you actually need the missing third party modules.
 
 No, wait, let's try to clear things up first.
 
 If modules should be on CTAN and aren't, I'll add them to CTAN. If
 modules are on CTAN, but not in TeX Live, we should figure out why
 they are excluded from TeX Live and either make sure that they are
 either added to TeX Live (if there are no problems with licencing,
 packaging etc.) or removed from CTAN (in case they are not really
 useful). We could keep some modules on CTAN if they are useful, but
 don't qualify for TL inclusion for some obscure reason.
 
 Don't use TeX Live could be the proper advice for someone who wants
 to use the latest version of ConTeXt, but one shouldn't confuse the
 user just because a module is missing in TL by accident.
 
 Mojca
 
[snip, snip]___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Can I use mkii and mkiv side by side?

2015-01-21 Thread Keith J. Schultz
Hi Gerben,

Mkii and Mkiv are to different animals and live side by side.

You do not need to change your TeX setup at all!

All you need to do is change the call to start the processing.

Mkiv can be called with the context …
or 
mtxrun -script context …


What I do not know is in what kind of „environment you are working in.
MacOS or Terminal, or Xquartz( aka X11), because you could even install
ConTeXt Standalone! and us it all of them side by side!

If you use the Standalone you need to setup the Paths properly though.
There is a shell script that helps with this if you are working directly in the 
„Unix“-
environment.

If you use TeXShop, it is easy enough, just switch the Engine in the editor.
and typeset!! For TexWorks it should be similiar.

I do not believe there are step by step instructions for going from mkii to 
mkiv.

To my knowledge most mkii code should run under mkiv!

Yet, you can do many things easier in mkiv than in mkii!

But, I think you know one step: make a copy of your project and work on that!! 
;))

Hope this helps
Keith


 Am 21.01.2015 um 00:36 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 I have a finished mkii project and I’d like to be able to export it to a 
 format that can be a start for other distributions (such as epub or the 
 like). For this, I get the impression I need mkiv.
 
 Now, before I go on trying to move my project to mkiv I have a question. Can 
 I run mkii and mkiv side by side? That is, if I configure my TeX setup for 
 mkiv (I am using MacTeX 2014), can I still fall back to the old setup when I 
 fail?
 
 Second, is there some step-by-step instruction to move a project from mkii to 
 mkiv?
 
 G
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] Can I use mkii and mkiv side by side?

2015-01-21 Thread Keith J. Schultz
Hi Otared,

actually, just setting the PATH variable will work, but you have to set it
with the proper command!

The Standard TexShop engines use the tcsh shell and not bash !!

either change the first line to 
#!/bin/tcsh

or set the path bash style
export PATH=/Volumes/OK/context-minimal/tex/texmf-osx-64/bin:$PATH

I put the standard PATH behind the minimals path so that it is searched first!

regards
Keith

 Am 21.01.2015 um 13:48 schrieb Otared Kavian ota...@gmail.com:
 
 Hi Keith,
 
 Thanks for your attention. 
 Indeed I use the latest TeXShop (version 3.49) but regarding the content my 
 mkii.engine file if I remove the line 
 
 source /Volumes/OK/context-minimal/tex/setuptex
 
 then I cannot typeset with my standalone installation of Context: I tried to 
 use a set path such as
 
 set path = ($path /Volumes/OK/context-minimal/tex/texmf-osx-64/bin)
 
 but I get an error message telling me:
 
 /Users/kavian/Library/TeXShop/Engines/mkii.engine: line 3: syntax error near 
 unexpected token `('
 /Users/kavian/Library/TeXShop/Engines/mkii.engine: line 3: `set path = ($path 
 /Volumes/OK/context-minimal/tex/texmf-osx-64/bin)’
 
 So at this point I have to keep the instruction to source the setuptex file 
 in order to typeset either with mkii or mkiv, using the standalone Context. 
 
 Best regards: OK
 

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

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] Catalan especial character (l·l) in ConTeXt

2015-01-08 Thread Keith J. Schultz
Hi Hans, All,

Your solution is naturaly better, but I was trying to use \topaccent to solve
the problem. 

Yet, in my test I noticed that there maybe a bug in the spacing of the Middle 
Dot in the 
default font of ConTeXt, as you can see using my MWE.

Depending on the font used, the result looks likes 19cat’s LaTeX example!

Of course using \topaccent causes a character spacing to the preceding 
character!
Here again the result is the worst for the default font of ConTeXt!

Here my test MWE!?

\mainlanguage[ca]

%\definefontfeature[default][default][char-ligatures=yes,mode=node]
%\definefontfeature[default][default][compat-ligatures=yes,mode=node]

\definefontfamily [mainface] [serif] [Avenir]
%\definefontfamily [mainface] [serif] [TeX Gyre Schola]
\setupbodyfont[mainface]

%\setupbodyfont[cambria]
%\setupbodyfont[pagella]

\def\LdotL{\topaccent{0pt}{0.5}{0}{·}{L}L}
\def\ldotl{\topaccent{0pt}{1.2}{0}{·}{l}l}

\def\Ldot{\topaccent{0pt}{0.5}{0}{·}{L}}
\def\ldot{\topaccent{0pt}{1.2}{0}{·}{l}}

\starttext
% With flow point
\section{PEL·LÍCULES}
Vull veure pel·lícules al col·legi
affike
% With utf-8 character
\section{PEĿLÍCULES}
Vull veure peŀlícules al coŀlegi

\section{PE\LdotL ÍCULES}
Vull veure pe\ldotl ícules al co\ldotl egi

\section{PE\Ldot LÍCULES}
Vull veure pe\ldot lícules al co\ldot legi  
\stoptext

 Am 08.01.2015 um 15:07 schrieb Hans Hagen pra...@wxs.nl:
 
 
 This is kind of tricky as in unicode they are not composed characters (char 
 vs compat) so they are not dealt with in the collapser.
 
 I've added this to the beta:
 
 \definefontfeature[default][default][char-ligatures=yes,mode=node]
 \definefontfeature[default][default][compat-ligatures=yes,mode=node]
 
 % \setupbodyfont[cambria]
 % \setupbodyfont[pagella]
 
 \starttext
 
 \startTEXpage[offset=10pt]
PEL·LÍCULES pel·lícules col·legi \par
PEĿLÍCULES  peŀlícules  coŀlegi  \par
 \stopTEXpage
 
 \stoptext
 
 I'm not sure about the names of these pseudo features (pl01 and pl02 might 
 make more sense or maybe xlig (extra) and plig (pseudo) ... so maybe the 
 names will change.
 
 (Not all fonts support this properly so it always needs checking.)
 
 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 
 http://www.pragma-ade.com/
 | www.pragma-pod.nl 
 http://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
 ___

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

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

Re: [NTG-context] ConTeXt gobble my mind

2014-11-06 Thread Keith J. Schultz
Hi Pierre,

I think you are approaching your problem from the wrong direction!

The way I understand your problem is that you have certain criteria in your 
slides
when encountered decides whether it should be output or not.

If this is the case then what you have is a classical parsing problem.

That is you start parsing the content of the slide, until you find the criteria
that excludes it or come to the end of the slide.
If you find the criteria then you just continue reading to the end of the slide 
and not output it,
otherwise send the gathered content to be output.

That would be the most elegant way and can be used for dynamic content.

Now, If you already know if the level is know a head of time the slides can be 
given a level and you can use
a custom mode that only outputs the slides to this level.

Another way is to build a database or table which is processed from which to 
choose your slides!

Or define a start/stop command that has a user level parameter and use mode to 
decide output or not!
this approach should not interfere with other macros you are using.

Hope this helps

regards
Keith.


 Am 06.11.2014 um 10:35 schrieb Pierre-François Bonnefoi bonne...@unilim.fr 
 mailto:bonne...@unilim.fr:
 
 Hello,
 
 I've made a lot of improvement to my slides format for my teaching material 
 and I've run into a serious issue with gobbleinput that I can express with 
 with simple lines :
 
 \starttext
 \gobbleuntil\stoptyping
 \starttyping
   { printf(%d, data); }
 \stoptyping
 This is ignored ! 
 \stoptext
 
 How can I use correctly gobbleinput to make it works ?
 
 Thank you for your help,
 kind regards,
 Pierre-François Bonnefoi. 
 -- 
 Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr 
 mailto:bonne...@unilim.fr http://libpfb.so/ http://libpfb.so/
 Universite de Limoges, Laboratoire XLIM |   Tel : 06 28 18 03 38
 123 av Albert Thomas|  Mrs. Peel, we're needed...
 87060 Limoges CEDEX - FRANCE| The Avengers.
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl / 
 http://www.ntg.nl/mailman/listinfo/ntg-context 
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl http://www.pragma-ade.nl/ / 
 http://tex.aanhet.net http://tex.aanhet.net/
 archive  : http://foundry.supelec.fr/projects/contextrev/ 
 http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net 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] pgfplots broken?

2014-11-05 Thread Keith J. Schultz
Hi Mikeal, Hans, All,

This is indeed strange as I can confirm that the code works with TeXLive 2014.

I checked my latest Standalone updates this morning.
I am running it on a MacBook Pro with clean installed Yosemite and latest
Xcode. I use TeXShop to use TeX, et al. 

The files are indeed there:

/Users/quayjay/context/tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgfluamath.parser.lua
/Users/quayjay/context/tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgfluamath.functions.lua

and

/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/libraries/luamath/pgfluamath.parser.lua
/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/libraries/luamath/pgfluamath.functions.lua

interesting parts of log file from standalone run:

mtx-context | warning: synctex is enabled
mtx-context | run 1: luatex 
--fmt=/Users/quayjay/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en
 --jobname=Ohne-Titel1 
--lua=/Users/quayjay/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui
 --no-parse-first-line --synctex=1 --c:autogenerate --c:currentrun=1 
--c:fulljobname=./Ohne-Titel1.tex --c:input=./Ohne-Titel1.tex 
--c:kindofrun=1 --c:maxnofruns=8 --c:synctex=1 cont-yes.mkiv
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) 
 \write18 enabled.
open source  1  1  
/Users/quayjay/context/tex/texmf-context/tex/context/base/cont-yes.mkiv
job  passes  version mismatch: 1.25  1.27

ConTeXt  ver: 2014.11.04 19:10 MKIV beta  fmt: 2014.11.5  int: english/english

[snip, snip]

open source  5  70  
/Users/quayjay/context/tex/texmf-modules/tex/generic/pgfplots/pgfplotscore.code.tex
open source  6  71  
/Users/quayjay/context/tex/texmf-modules/tex/generic/pgfplots/sys/pgfplotssysgeneric.code.tex
Package pgfplots notification 'compat/show suggested version=true': document 
has been generated with the most recent feature set 
(\pgfplotsset{compat=\mostrecent }).

close source 6  71  
/Users/quayjay/context/tex/texmf-modules/tex/generic/pgfplots/sys/pgfplotssysgeneric.code.tex
close source 5  71  
/Users/quayjay/context/tex/texmf-modules/tex/generic/pgfplots/pgfplotscore.code.tex

[snip, snip]

open source  6  75  
/Users/quayjay/context/tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgflibraryluamath.code.tex

lua errorerror on line 75 in file 
/Users/quayjay/context/tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgflibraryluamath.code.tex:

.../context/tex/texmf-context/tex/context/base/util-lib.lua:246: module 
'pgfluamath.functions' not found:
no field package.preload['pgfluamath.functions']
no file '/usr/local/share/lua/5.2/pgfluamath/functions.lua'
no file '/usr/local/share/lua/5.2/pgfluamath/functions/init.lua'
no file '/usr/local/lib/lua/5.2/pgfluamath/functions.lua'
no file '/usr/local/lib/lua/5.2/pgfluamath/functions/init.lua'
no file './pgfluamath/functions.lua'
no file '/usr/local/lib/lua/5.2/pgfluamath/functions.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './pgfluamath/functions.so'
no file '/usr/local/lib/lua/5.2/pgfluamath.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './pgfluamath.so'
stack traceback:
[C]: in function 'savedrequire'
.../context/tex/texmf-context/tex/context/base/util-lib.lua:246: in 
function 'require'
[\directlua]:1: in main chunk


1) I can not be sure that the pgfplot notification has anything to do with our 
problem. But, I doubt it.

2)  no field package.preload['pgfluamath.functions']
 Now, this msg does give me concern, they should have been preloaded or am 
I missing something!

3) I look at the different versions of pgfluamath,functions.lua
   and noticed then has been new logic introduced. So, the problem
   might be a programmers error from PGF-code somewhere. 

Personally, I do not think this is a problem with ConTeXt not finding files, but
a problem in the PGF-Code itself. That is some tables are not being set up 
right.


Hope this helps.

Keith J. Schultz
  
 
 Am 04.11.2014 um 16:32 schrieb Hans Hagen pra...@wxs.nl:
 
 On 11/4/2014 12:42 PM, Mikael P. Sundqvist wrote:
 Hi, pgfplots seems broken with the latest standalone.With the example
 
 \usemodule[pgfplots]
 \starttext
 Foo
 \stoptext
 
 Is there a pgfluamath.* file on the system?
 
 Hans
 
 
 Best regards, Mikael
 
 lua errorerror on line 75 in file
 /opt/ConTeXt/tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgflibraryluamath.code.tex:
 
 .../ConTeXt/tex/texmf-context/tex/context/base/util-lib.lua:246:
 module 'pgfluamath.functions' not found:
 no field package.preload['pgfluamath.functions']
 no file '/usr/local/share/lua/5.2/pgfluamath/functions.lua'
 no file '/usr/local/share/lua/5.2/pgfluamath/functions/init.lua'
 no file '/usr/local/lib/lua/5.2/pgfluamath/functions.lua

Re: [NTG-context] pgfplots broken?

2014-11-04 Thread Keith J. Schultz
Can confirm not working in latest Beta.

BUT, works in TeXLive version!!

so, something has changed on our side!

regards
Keith.

 Am 04.11.2014 um 12:42 schrieb Mikael P. Sundqvist mic...@gmail.com:
 
 Hi, pgfplots seems broken with the latest standalone.With the example
 
 \usemodule[pgfplots]
 \starttext
 Foo
 \stoptext
 
 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] Structure of titles in MkIV

2014-10-16 Thread Keith J. Schultz
Hi Alan,

In a way I agree one can live without the added syntax and semantic
error reporting, But, as you say you have been using it for ten years.
All are not that lucky. Then there are those beginners that simply have
no idea what is going on. Because they do not know ConTeXt, TeX, or LaTeX, etc.
This problem is more severe due to the fact that IMHO the documentation for
ConTeXt does not state many things!

Error checking should not be given up for performance sake!
That is not good practice. If one can not wait a minute longer
for a 500 page document, somebody has to learn to chill down.

Been around Computers since the mid 80s, so I know what it is like
to wait 5 minutes for a three page document, waiting for a TeX system
render and create all those files to print it on a dot-matrix printer.
Not, to mention the printing itself in graphics mode for the best quality.

regards
Keith.


Am 15.10.2014 um 16:10 schrieb Alan BRASLAU alan.bras...@cea.fr:

 On Wed, 15 Oct 2014 14:25:11 +0200
 Keith Schultz keithjschu...@icloud.com wrote:
 
 BUT, Michal I believe has a point. Or should I say has come across a
 FLAW, according to my view of things. ConTeXt should warn...
 
 I was warned (a few years ago) on the mailing list NOT to place any
 text outside of structure elements. For example,
 
[snip, snip]
 I cannot remember the example of what had gone haywire, but I leaned my
 lesson (and started systematically using \start\stop for everything,
 well, not for paragraphs as I find that a bit too heavy...).
 
 As to WARNINGS: ConTeXt generally silently ignores incorrect coding,
 unknown options, etc. One might call for all sorts of bells and
 whistles but these come at a performance cost so I have also learned
 to do without them. Of course, this sometimes makes debugging one's
 errors a bit more difficult, but after 10 years or so of practice one
 will no longer make many errors! (one of my favorites still is
 \startext) ;-)
 

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

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] frac and tfrac with sqrt

2014-10-09 Thread Keith J. Schultz

Am 07.10.2014 um 09:20 schrieb Hans Hagen pra...@wxs.nl:

 On 10/7/2014 7:33 AM, Mikael P. Sundqvist wrote:
 On Mon, Oct 6, 2014 at 11:32 PM, Wolfgang Schuster
 schuster.wolfg...@gmail.com wrote:
 \setupmathradical[alternative=default]
 
 Very good!
 
 Hans, will the default be default in next beta? :)
 
 no, but there will be different settings ... the problem with fractions and 
 radicals and their mixing is that we have to (somehow) deal with 
 unpredictable math styles (and esp in radicals there are fuzzy concepts like 
 'the surrounding style is used' while inside a different one is used (all a 
 side effect of parsing first and generating next)
the way I look at it one should the use a look forward parsing and 
clean up or look backward. 
or look backward. It depends how much of the parse tree you keep before 
generating an entity!


 anyway, the next release will have a split setup for display and inline and 
 (hopefully) work as intended (the major bottleneck is not the radical but 
 \text and it's kind o ftricky to get both of them okay at the same time)
 
 and of course we also want the plugins (mp) and coloring and so working
 

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

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] Class diagram in Ctx?

2014-08-13 Thread Keith J. Schultz
Hi Lukáš,

Both Metapost and TikZ have modules for doing what you want.
There is metauml and pgf-umlcd.

regards
Keith.

Am 13.08.2014 um 09:49 schrieb Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz:

 Hello,
 
 I'd like to create a class diagram (or hierarchy chart) with ConText, 
 something like:
 
 [class A]
  |  \
  V   V
 [class B]  [class C]
 
 Could anyone hint me how to start? Or which module to use? TikZ?
 
 - An initial hint would be appreciated, I'll study next...
 
 Thanks in advance,
 
 Lukas
 
 
 -- 
 Ing. Lukáš Procházka | mailto:l...@pontex.cz
 Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
 Bezová 1658
 147 14 Praha 4
 
 Tel: +420 241 096 751
 Fax: +420 244 461 038
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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 make floats extend into the outer margin

2014-07-24 Thread Keith J. Schultz
Hello,

I assume others might have need for this, so it might be a good idea to put 
this into the
core with a name of something like \widefigure or \ placewidefigure!

Just, a thought!

regards
Keith. 

Am 24.07.2014 um 10:36 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com:

 
 Am 23.07.2014 um 17:48 schrieb Joshua Krämer joshua.krae...@gmail.com:
 
 Dear list,
 
 I have some big-width floats, and want them to span the regular text
 width plus the outer margin.  I can position them manually with \kern.
 Is there a way to make them automatically extend into the outer
 margin?  I have tried different options for location=... without
 success.
 
{snip, snip}
 
 You can use the command key for \setupfloat to apply a macro to the finished 
 content of the float.
 
 The purpose of this macro is to save the content and compare the width to the 
 width of the text are,
 when the figure is wider then the available space use the \leftaligned or 
 \rightaligned commands
 to let the content protrude to the outer margins.
 
 
 \setuppagenumbering[alternative=doublesided]
 
 \setuplayout[backspace=4cm,width=12cm]
 
 \definemeasure[Widefigure][\textwidth+\rightmargindistance+\rightmarginwidth]
 
 \setupfloat[figure][command=\FigureCommand]
 
 \define\FigureCommand
  {\dowithnextbox
 {\signalrightpage
  \ifdim\nextboxwd\textwidth

 \doifrightpageelse{\leftaligned{\flushnextbox}}{\rightaligned{\flushnextbox}}%
  \else
\midaligned{\flushnextbox}%
  \fi}
 \hbox}
 
 \showframe
 
 \starttext
 
 \startplacefigure
 \framed[width=.8\textwidth,framecolor=red]{Left margin}
 \stopplacefigure
 
 \page
 
 \startplacefigure
 \framed[width=\measure{Widefigure},framecolor=red]{Left margin}
 \stopplacefigure
 
 \input knuth
 
 \page
 
 \startplacefigure
 \framed[width=\measure{Widefigure},framecolor=red]{Right margin}
 \stopplacefigure
 
 \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
___

Re: [NTG-context] typewriter style with Constantia

2014-04-03 Thread Keith J. Schultz
Hi Hans,

I do not know the complexity of the under the hood working of 
font loading, but how about a a command to force the loading of
fonts that are not loaded, yet:

\forceloadingoffonts

or

\updatefontsnow

or the like!

would be a nice feature for such cases!

regards
Keith.

Am 28.03.2014 um 11:49 schrieb Hans Hagen pra...@wxs.nl:

 On 3/28/2014 7:53 AM, Aditya Mahajan wrote:
 On Thu, 27 Mar 2014, Wolfgang Schuster wrote:
 
 
 Am 27.03.2014 um 16:21 schrieb Peter Münster pmli...@free.fr:
 
 Hi,
 
 With the following setup and ConTeXt version 2014.02.14 I got typewriter
 style:
 
 --8---cut here---start-8---
 \definefontfamily[constantia][sans][Constantia]
 \setupbodyfont[constantia]
 \starttext
 normal and \type{mono}
 \stoptext
 --8---cut here---end---8---
 
 But not with version 2014.03.25.
 
 What should I do to get typewriter style please?
 
 You have to specify a font for monospaced text and it’s better to set
 also a font for math.
 
 It would be nicer if the unset styles (in particular math) would fall
 back to the defaults.
 
 the problem is that font loading is delayed so it's not known at the right 
 moment .. maybe i figure out something some day
 
 Hans

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

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] proposal about link borders

2014-03-22 Thread Keith J. Schultz
Hi All,

If we are going this then it would be nice to define the color of the link 
border.

I will leave the details or a syntax up to the implementors.

regards
Keith.



Am 21.03.2014 um 18:30 schrieb Pablo Rodriguez oi...@gmx.es:

 Hi Hans,
 
 many thanks for fixing the issue with links (and other two issues about
 PDF information).
 
 I have two proposals about hyperlinks, after having looked at an
 uncompressed file with hyperlinks. AFAIK, they haven’t been implemented
 (I have checked the wiki, the “ConTeXt Commands” documents, the
 reference manual, and the source [I apologize, if I have overlooked
 something]).
 
 My first proposal would be an option to have link borders enabled. I
 guess that something like \setupinteraction[linkborders=on] would be a
 good choice. With this option, one can have an interactive version and a
 printable version of a document in the same file. This is extremely
 useful in many scenarios.
 
 My second proposal would be an option to have colored link borders.
 \setupinteraction[linkbordercorlor=on] could be the option to enable
 color in link borders.
 
 I think both proposals could be useful for (at least for some)
 interactive documents.
 
 Many thanks for your help,
 
 
 Pablo
 -- 
 http://www.ousia.tk
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] OT: Reflections on usability ConTeXt for typesetting of mathematics

2014-02-13 Thread Keith J. Schultz
Hi Mikael,

as in my first answer use:

f''_xx or f''_{xx} if you need both xs'

I have tried it at it looks very similar to your LaTeX example.

Start another thread about the single prime as bug. Since this one is marked as 
OT
and others more more knowledgeable might not be reading this.

regards
Keith.



Am 13.02.2014 um 14:40 schrieb Mikael P. Sundqvist mic...@gmail.com:

 On Wed, Feb 12, 2014 at 10:01 AM, Keith J. Schultz schul...@uni-trier.de 
 wrote:
 Hi Mikael,
 
 Basically, I see your problem with ConTeXts handling of math as a matter of 
 taste!
 That is you want LaTeX syntax. 
 
 It is easy enough to get the results you want.
 
 The only place where I see a bug is that a single prime is set larger than 
 multple
 primes. 
 
 regards
   Keith
 
 Hi Keith,
 
 I do not agree with you. It is not so important to have the same syntax as in 
 LaTeX (exception: it would be nice to get double bars from \| since it does 
 not make sense to have \| yield a single bar since | does), but to be able to 
 write very common formulas (look at the example with double derivative with 
 respect to x in my examples above, and tell me how to do that correctly in 
 ConTeXt!) in an acceptable way.
 
 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] OT: Reflections on usability ConTeXt for typesetting of mathematics

2014-02-12 Thread Keith J. Schultz
Hi Mikael,

Basically, I see your problem with ConTeXts handling of math as a matter of 
taste!
That is you want LaTeX syntax. 

It is easy enough to get the results you want.

The only place where I see a bug is that a single prime is set larger than 
multple
primes. 

regards
Keith


Am 11.02.2014 um 14:18 schrieb Mikael P. Sundqvist mic...@gmail.com:

 On Tue, Feb 11, 2014 at 11:33 AM, Keith J. Schultz schul...@uni-trier.de 
 wrote:
 
 Am 11.02.2014 um 09:57 schrieb Mikael P. Sundqvist mic...@gmail.com:
 
 On Mon, Feb 10, 2014 at 6:57 PM, Hans Hagen pra...@wxs.nl wrote:
 On 2/10/2014 9:24 AM, Mikael P. Sundqvist wrote:
 Hi,
 
 I used ConTeXt (mkii) to write my PhD thesis in Mathematics in 2008. It
 worked just fine.
 
 At the moment I write some exams and hand-outs using ConTeXt, but
 research using LaTeX (since the journals do not really accept ConTeXt
 and my collaborators dont know ConTeXt).
 
 It certainly works OK to write math in ConTeXt, but I have a feeling
 that there are some things that are somewhat broken or not finetuned to
 output what mathematicians expect. Look at the attached pdf files [1]
 l.pdf (from LaTeX) and c.pdf (from latest standalone ConTeXt), with
 source l.tex and c.tex for some examples.
 
 In mkiv we follow some alternative approaches compared to mkii (and probably 
 other tex macro packages) and some aspects indeed might need tuning (or more 
 configuration options) .. I try hard to get away from hackery solutions (for 
 several reasons).
 
 I agree it is good to avoid hackery as long as possible, and I for sure is 
 ready to relearn how to write some things. With the examples I gave in the 
 previous email in mind:
 
 * How am I supposed to write first derivative (f') and second derivative 
 (f'') in such a way that they have the same type of prime (the prime in the 
 first derivative is the one I prefer)?
 
   No sure if to call this a bug! It seems that a single prime is always 
 larger than multiple ones!
   You can always change its size!
 
 I think the user should not have to change its size. All primes should have 
 the same size, independent if they are one or several.
  
 
 * How am I supposed to write f_xx'' to get the output as in the LaTeX 
 example (i.e. so that the primes are over the xx)?
   
 have to switch things around: f''_xx or f''_{xx}  depending on the actual 
 result you want.
 
 I know about the grouping. Please have a look at my example files in my 
 earlier post in this thread.
  
  
 * Could the default placement of limits in integrals be changed 
 (integral=nolimits)? This is how it is done in almost all math books).
   
 Not sure what you want here! example? can be LateX
 
 As above, I gave examples...
 
 Best regards, Mikael
  
 
 * What about the size and finetuning of placement of indices in integrals 
 and sums (and probably products, unions, ...)?
 * I remember I suggested that \| should be double bars in a previous thread 
 on this list. Is there any drawback in giving double bars for \|? Of course 
 I can relearn and use \lVert and \rVert, but I have a feeling that if we 
 want people moving from LaTeX to ConTeXt, then this is the kind of things 
 that should just work as expected...
 
 Best regards, Mikael
 
 regards
   Keith
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] OT: Reflections on usability ConTeXt for typesetting of mathematics

2014-02-11 Thread Keith J. Schultz

Am 11.02.2014 um 09:57 schrieb Mikael P. Sundqvist mic...@gmail.com:

 On Mon, Feb 10, 2014 at 6:57 PM, Hans Hagen pra...@wxs.nl wrote:
 On 2/10/2014 9:24 AM, Mikael P. Sundqvist wrote:
 Hi,
 
 I used ConTeXt (mkii) to write my PhD thesis in Mathematics in 2008. It
 worked just fine.
 
 At the moment I write some exams and hand-outs using ConTeXt, but
 research using LaTeX (since the journals do not really accept ConTeXt
 and my collaborators dont know ConTeXt).
 
 It certainly works OK to write math in ConTeXt, but I have a feeling
 that there are some things that are somewhat broken or not finetuned to
 output what mathematicians expect. Look at the attached pdf files [1]
 l.pdf (from LaTeX) and c.pdf (from latest standalone ConTeXt), with
 source l.tex and c.tex for some examples.
 
 In mkiv we follow some alternative approaches compared to mkii (and probably 
 other tex macro packages) and some aspects indeed might need tuning (or more 
 configuration options) .. I try hard to get away from hackery solutions (for 
 several reasons).
 
 I agree it is good to avoid hackery as long as possible, and I for sure is 
 ready to relearn how to write some things. With the examples I gave in the 
 previous email in mind:
 
 * How am I supposed to write first derivative (f') and second derivative 
 (f'') in such a way that they have the same type of prime (the prime in the 
 first derivative is the one I prefer)?
No sure if to call this a bug! It seems that a single prime is always 
larger than multiple ones!
You can always change its size!

 * How am I supposed to write f_xx'' to get the output as in the LaTeX example 
 (i.e. so that the primes are over the xx)?
have to switch things around: f''_xx or f''_{xx}  depending on the 
actual result you want.
 
 * Could the default placement of limits in integrals be changed 
 (integral=nolimits)? This is how it is done in almost all math books).
Not sure what you want here! example? can be LateX
 * What about the size and finetuning of placement of indices in integrals and 
 sums (and probably products, unions, ...)?
 * I remember I suggested that \| should be double bars in a previous thread 
 on this list. Is there any drawback in giving double bars for \|? Of course I 
 can relearn and use \lVert and \rVert, but I have a feeling that if we want 
 people moving from LaTeX to ConTeXt, then this is the kind of things that 
 should just work as expected...
 
 Best regards, Mikael

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

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

Re: [NTG-context] OT: Reflections on usability ConTeXt for typesetting of mathematics

2014-02-10 Thread Keith J. Schultz
Hi Jaroslav,

Math support in ConTeXt is quite good.

For beginners there are pages in the Wiki.
http://wiki.contextgarden.net/Math

I have to admit some pages are dated, but still give valid examples.

The Wiki is a good starting point and have links to external example
pages.

regards
Keith.


Am 09.02.2014 um 20:09 schrieb Jaroslav Hajtmar hajt...@gyza.cz:

 Hello ConTeXist.
 I am very sorry for this OFF TOPIC contribution.
 
 For writing of this text led me several hours of searching on internet. I was 
 looking for ways to typing of non-elementary math in ConTeXt
 
 Already a long time I use ConTeXt typesetting lot of different things and I 
 am very satisfied. In the many things, of which I typed, was maths 
 represented only marginally and minimally. Now I need to type some 
 mathematics (at secondary school level) and I found that I came across 
 borders of my knowledge of ConTeXt, or on possibilities of ConTeXt for 
 typesetting of mathematics.
 I do not in any way call into question the ability of ConTeXt typesetting 
 mathematics, although I think that who wants to type mathematics then use 
 LaTeX.
 I want find experience of users of ConTeXt for real using of ConTeXt for 
 typesetting of mathematics. I wonder how users use possible math modules 
 (exist anything?) to be usable results.
 
 I have a few questions:
 
 0. Do you think that this is only a problem for beginners of ConText or it is 
 a general problem of ConTeXt?
 1. How many of ConTeXt users use this tool for typesetting of non-elementary 
 mathematics?
 2. Are you satisfied with the results, which produces ConTeXt (thinking in 
 the field of mathematics rate)?
 3. What things do you need to have in ConTeXt study that one could bet 
 mathematics at a reasonable level?
 4. Is ConTeXt able to substitute LaTeX to typesetting of math (e.g. in the 
 future)?
 5. Can you think of any more questions that should be here?
 
 
 I hope that my question will help other beginners who would like to typing of 
 mathematics use ConText - this unique and useful tool.
 
 Thanks for all the answers.
 
 Jaroslav Hajtmar
 
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] A default editor for ConTeXt standalone?

2014-02-05 Thread Keith J. Schultz
Hi,

As nice as it would be to have ConTeXt Standalone offer an editor, I personally
believe that it should not be done.

1) Those that have TeXlive already TeXWorks
 At least it is setup for TeXLive and can be set up to use
 ConTeXt Standalone and other distros at the same time.

2) ConTeXt supports many OSes 
a) adding editor support opens a big can of worms inorder to be
 non-eavsive and not clobber special settings that a user might have 
 in place.

 b) TeXWorks is nice, yet not for everyone. 
  Furthermore on the Mac one has TeXShop, it was the basis for TeXWorks!
  I would suggest TeXShop to Mac Users. 

  c) No offense to power users, emacs Ug!
  Emacs comes with a learning curve!
  Should add something in that beginners and the uninclined might
  consider a recommondation, where they would be better off using a 
  different IDE.

To reinterate, editors and IDEs are a matter of taste.
Depending on the platform one is on there are different choices which are easy
enough to install and use.
It would be to difficult for ConTeXt to avoid ruining someones set up that they 
have.

regards
Keith.

Am 05.02.2014 um 07:41 schrieb Marcin Borkowski mb...@wmi.amu.edu.pl:

 Hi all,
 
 just a thought.  Some time ago wise people decided to include TeXworks
 into TeXlive, so that newbies installing TeXlive can get a
 batteries-included package (not having to choose/install an editor).
 Would it be (a) reasonable and (b) not too much time-consuming to do a
 similar move with ConTeXt standalone?  I'm not saying it would have to
 be TeXworks (or my beloved Emacs, for that matter;)).  I am aware that
 this is an additional work to maintain etc., and I'm probably not
 capable of doing it myself, but...
 
 What do you think?
 
 -- 
 Marcin Borkowski
 http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
 Adam Mickiewicz University
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] two questions on ConTeXt terminology

2014-02-04 Thread Keith J. Schultz
Hi Pablo,

Like I mentioned it depends of the paradigm one uses or to be more 
expressive: the meta level of discussion.

To All: please excuse the use of buzz words in the following.

The start/stop mechanism has a different semio-syntactic usage depending on the
context (not ConTeXt) it is used in.

It can be used for :
1) do command 

2) usage of format or element

3) set a variable as in start/stopbuffer

 This different semantic usage is somewhat unfortunate, but has the advantage 
of keeping
the instruction set(syntax) of ConTeXt simple!

The best nomenclature would be entity, but that is not easy to understand for 
the average joe and jane.

On the other side the start/stop mechanism can be seen, in terms of OO, a 
method that is applied to a object
that is passed to. This method is dynamic in that it calls other methods 
depending of the type of object passed.
So we are in the middle of the dynamic OO-programming.
If you wish it is a method that is overloaded.

Note to Hans, Wolfgang, et al: I realize that it is not implemented as above, 
but it does reflect the basic concept,
  to my knowledge and its 
usage in ConTeXt. 

Start/stop is a mechanism that is applied to an element, object, entity. 
Depending on the Enity used with it the semantics
of the mechanism is different.

So it boils down to the fact what kind of audience you are addressing and what 
level of knowledge  you expect them to have!

If you care to discuss this topic more in depth we can go off list.

regards
Keith
 

Am 03.02.2014 um 20:35 schrieb Pablo Rodriguez oi...@gmx.es:

 Hi Keith,
 
 many thanks for your explanation.
 
 I cannot see the “structural” difference ;-) between the start/stop and
 the begin/end pairs.
 
 But I think structure is fine. Structural element seems too complex to me.
 
 Many thanks for your help again,
 
 Pablo
 
 
 On 02/03/2014 10:07 AM, Keith J. Schultz wrote:
 Hi Pablo,
 
 The start/stop mechanism in ConTeXt is not easy to relate to LaTeX.
 
 As the name indicates it means start/stop doing 'something' !
 
 This something can be either equivalent to Command or Enviroment
 in LaTeX.
 
 e.g: 
 \startbuffer
 ...
 \stopbuffer
 
 starts storing things in a buffer(aka. Variable). This would be simailar
 to command as you can access the buffer with \getbuffer and \putbuffer.
 Of course one could argue that it is actually like an LaTeX environment that 
 has
 a side effect of setting a variable for later use. 
 
 On the other side you have \starttable \stoptable which one would put in the 
 realm of
 LaTeX-environments.
 
 One can practically, use the start/stop mechanism almost anything you define.
 
 
 Depending on the paradigm that you use structure (and/or) element would be 
 appropriate!
 That is is a program source the definition of a function/procedure/method is 
 a
 structure/element of the program. Structure element is not necessarily 
 reserved for
 data structures!!
 
 Just my two cents worth.
 
 Hope this helps
 
 regards
  Keith. 
 
 
 -- 
 http://www.ousia.tk
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] two questions on ConTeXt terminology

2014-02-03 Thread Keith J. Schultz
Hi Pablo,

The start/stop mechanism in ConTeXt is not easy to relate to LaTeX.

As the name indicates it means start/stop doing 'something' !

This something can be either equivalent to Command or Enviroment
in LaTeX.

e.g: 
\startbuffer
...
\stopbuffer

starts storing things in a buffer(aka. Variable). This would be simailar
to command as you can access the buffer with \getbuffer and \putbuffer.
Of course one could argue that it is actually like an LaTeX environment that has
a side effect of setting a variable for later use. 

On the other side you have \starttable \stoptable which one would put in the 
realm of
LaTeX-environments.

One can practically, use the start/stop mechanism almost anything you define.


Depending on the paradigm that you use structure (and/or) element would be 
appropriate!
That is is a program source the definition of a function/procedure/method is a
structure/element of the program. Structure element is not necessarily reserved 
for
data structures!!

Just my two cents worth.

Hope this helps

regards
Keith. 




Am 02.02.2014 um 23:19 schrieb Pablo Rodriguez oi...@gmx.es:

 On 02/02/2014 10:30 PM, Hans Hagen wrote:
 On 2/2/2014 9:44 PM, Pablo Rodriguez wrote:
 [...]
 The other question is more tricky. Or at least I don’t find an obvious
 answer. Which is the correct expression to name any
 \start...-\stopstructure? Environment would be the LaTeX term, but
 this is reserved in ConTeXt.
 
 (structure) element is fine (also in sync with xml begin/end)
 
 Many thanks for your reply, Hans.
 
 I’m not sure whether structure element is too generic.
 
 But I will think about it.
 

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

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] Testpage with extras

2014-02-01 Thread Keith J. Schultz
Hi Hans,

how about the \ifleftonpage, or something like that?

Just trying to have the name of the command more literate.

Of course if the conditional part is to be expanded to something
more elaborate then pagechecker would be fine!

regards
Keith.

Am 31.01.2014 um 11:18 schrieb Hans Hagen pra...@wxs.nl:

 On 1/31/2014 10:46 AM, Keith J. Schultz wrote:
 
 Personally, I find the names used sub-optimal!
 
 we had testpage and that one stays anyway and checkpage is close to that 
 (overloading testpage with a new syntax is messy)
 
 I would think something like conditionalbreak or conditionalpagebreak
 would be better and verbose.
 
 the new check command could evolve in more than break .. in fact it just 
 checks and then does some action (not per se a break)
 
 Other names could be ifpagelength, ifpagelengthstill, leftonpage, or
 something similar.
 
 one can say
 
 \definepagechecker[leftonpage]
 
 and then use it like
 
 \chechpage[leftonpage]
 
 I assume you have implemented checkpage as an added layer on top
 of testpage!
 
 no, the reverse
 
 At least the test is if X lines left on page or still fit on page!
 
 I also have a question. Are the commands setuppagechecker sothat
 
 \definepagechecker[whatever]
 
 \setuppagechecker[whatever]
  [lines=35,
   voffset=10pt,
   before={\vfill\wordright{(see next page)}\par},
   after=\noindentation]
 
 and also
 
 \checkpage [lines=35,
   voffset=10pt,
   before={\vfill\wordright{(see next page)}\par},
   after=\noindentation]
 
 in that case you use those values, while
 
 \checkpage
  [whatever]
  [lines=12]
 
 would overload given whatever values
 
  Question: what is the voffset used for? Line height? If so then a better
 name for this
 would be nice, too!
 
 it's 'offset' ... and it's like the second argument of testpage (i can't 
 think of another key so i've chosen one that already is part of context, 
 which has advantages)

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

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] Testpage with extras

2014-01-31 Thread Keith J. Schultz
Hi Hans,

Personally, I find the names used sub-optimal!

I would think something like conditionalbreak or conditionalpagebreak
would be better and verbose.

Other names could be ifpagelength, ifpagelengthstill, leftonpage, or something
similar. 

I assume you have implemented checkpage as an added layer on top
of testpage! 

At least the test is if X lines left on page or still fit on page!

I also have a question. Are the commands setuppagechecker sothat 

\definepagechecker[whatever]

\setuppagechecker[whatever]
 [lines=35,
  voffset=10pt,
  before={\vfill\wordright{(see next page)}\par},
  after=\noindentation]

and also

\checkpage [lines=35,
  voffset=10pt,
  before={\vfill\wordright{(see next page)}\par},
  after=\noindentation]

Question: what is the voffset used for? Line height? If so then a better name 
for this
would be nice, too!

regards
Keith.

Am 30.01.2014 um 22:23 schrieb Hans Hagen pra...@wxs.nl:
[snip, snip]
 new in beta  please wikify ...
 
 \definepagechecker
  [whatever]
  [lines=35,
   voffset=10pt,
   before={\vfill\wordright{(see next page)}\par},
   after=\noindentation]
 
 \setupindenting[yes,9pt,first]
 
 \starttext
\noindentation
\input knuth\par
\input knuth\par
\noindentation
\input knuth\par
\checkpage[whatever]
\input knuth\par
\input knuth\par
 \stoptext
 
 ... i assume that others (read: Wolfgang) will check if the old testpage is 
 compatible -)
 
 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
 ___

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

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 the default text colour for entire document

2014-01-27 Thread Keith J. Schultz
Hi Everybody,

If I remember right colors can be defined in ConTeXt, right?

So why not just redefine black!

If this is stupid, the defaults get initialize before a redefined occurs!

forget it!

Just a stupid simplistic idea!

regards
Keith.
 
Am 27.01.2014 um 12:10 schrieb Hans Hagen pra...@wxs.nl:

 On 1/27/2014 12:24 AM, Wolfgang Schuster wrote:
 
 Am 22.01.2014 um 02:15 schrieb Thangalin thanga...@gmail.com:
 
 Hi,
 
 In ConTeXt to change the default text colour for the entire document,
 there are at least two settings that need to be configured:
 
  \setupcolors[textcolor=red]
  \setupinmargin[line=13,color=red,style=slanted,]
 
 The border colour for tables remains black:
 
 \setupcolors[textcolor=red]
 \setupinmargin[color=red]
 
 \starttext
 {\bTABLE
 \bTR \bTD One \eTD \bTD Two \eTD \eTR
 \eTABLE}
 \stoptext
 
 How can you override *all* instances of black? (Ideally there would be
 a single setting that is inherited by all.) That is, it is difficult
 to know all the various aspects of a ConTeXt document that use the
 default black colour -- margins, body text, table borders, and
 possibly more that I don't know about.
 
 Notes (local notes excluded because they use a different placement system)
 and margin texts ignore the global text color because both mechanism reset
 colors and many other settings to avoid unwanted output from local changes
 in the main text etc.
 
 Even though there is a comment about this problem for margin notes in
 the source it wasn’t fixed yet but I think it makes sense to to so.
 
 \appendtoks
\inheritmaintextcolor
 \to \everybeforenoteinsert
 
 \appendtoks
\inheritmaintextcolor
 \to \everymargindatacontent
 
 could work, but it needs testing as we cannot predict side effects
 
 The problem with the black frames for natural tables are a result of the 
 explicit
 framecolor setup for it (I guess to avoid problems when you use metapost
 backgrounds which use the framecolor value). A possible way to fix this is to
 add a framecolor setup to \setupcolors which argument is now used as default
 color for the frame of natural tables, this way can use this color also in 
 other
 commands (core functions as well as third party modules) to set a default 
 value.
 
 needs some thinking
 
 \setupTABLE
  [framecolor=\maintextcolor]
 
 some settings date from mkii times but again we need to think of side effects
 
 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
 ___

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

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] unknown library 'loc'

2014-01-13 Thread Keith J. Schultz
Hi Hans,

Suppressing the message of a loc that is not needed would be the cleanest
method. 

IMHO, it should not be even causing a warning. 

regards
Keith.

Am 12.01.2014 um 23:50 schrieb Hans Hagen pra...@wxs.nl:

 On 1/12/2014 11:23 AM, Keith J. Schultz wrote:
 Hi Hans,
 
 Am 07.01.2014 um 00:24 schrieb Hans Hagen pra...@wxs.nl:
 
 On 1/3/2014 2:33 PM, H. van der Meer wrote:
 Has someone an idee what causes the unknown library message as in the
 log below? Is it harmful?
 
 fontstypescripts  unknown library 'loc'
 
 you can add a file type-loc.mkiv someplace in your local tree with
 
 % dummy file
 
 \endinput
 
 this file can be used for local overrides (just some mkii compatible 
 feature).
  If this is the case, should not the the dummy-file be in the 
 distribution!
  That way if somebody has local overrides they can modify it if needed,
  and the rest of have one lees message we need to worry, about?
 
 It depends ... there are some more loc files, like cont-loc.mkiv and we don't 
 ship these either. Normally users would put such files in texmf-local 
 nowadays but in the past that tree has changes positions in texlive (loading 
 order) so we make no assumptions i.e. it can even be in the main base path 
 which in turn means that we need to make sure it doesn't get overwritten. 
 Easier is probably to suppress the message (ugly but doable).
 
 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
 ___

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

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] unknown library 'loc'

2014-01-12 Thread Keith J. Schultz
Hi Hans,

Am 07.01.2014 um 00:24 schrieb Hans Hagen pra...@wxs.nl:

 On 1/3/2014 2:33 PM, H. van der Meer wrote:
 Has someone an idee what causes the unknown library message as in the
 log below? Is it harmful?
 
 fontstypescripts  unknown library 'loc'
 
 you can add a file type-loc.mkiv someplace in your local tree with
 
 % dummy file
 
 \endinput
 
 this file can be used for local overrides (just some mkii compatible feature).
If this is the case, should not the the dummy-file be in the 
distribution!
That way if somebody has local overrides they can modify it if needed,
and the rest of have one lees message we need to worry, about?

regards
Keith.

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

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


Re: [NTG-context] Rebuilding the font cache: segmentation fault 11

2013-12-25 Thread Keith J. Schultz
Hi All,

Actually, it is false permissions!! I change it so that all have read 
permission and all went well!

regards
Keith

Am 22.12.2013 um 11:52 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com:

 
 Am 21.12.2013 um 23:02 schrieb Willi Egger cont...@boede.nl:
 
 Hello all,
 
 did anyone else experience this:
 
 fonts   | names | globbing path '/Users/willi/Library/Fonts/**.ttf'
 fonts   | names | globbing path '/Library/Fonts/**.ttf'Segmentation 
 fault: 11
 
 I struggle with this issue since I stepped over to a new Mac book Air. Is 
 there something tricky in the Library/Fonts directory? May be a subfolder 
 could cause this?
 
 The Skia font in Library/Font causes the LuaTeX error, when you remove it 
 from the folder ConTeXt builds the cache without errors.
 
 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] [***SPAM***] OT: Generating Command reference from source code

2013-12-04 Thread Keith J. Schultz
Hi Hans,


Am 04.12.2013 um 00:44 schrieb Hans Hagen pra...@wxs.nl:
[snip, snip]
 
 
 the problem with tex (and therefore context) is that we are dealing with 
 quite some interaction between unpredictable user input, macro (expansions), 
 tex-internals, resources like fonts, patterns and whatever, etc. and this is 
 why you often need to play with mechanisms: small test files and see how it 
 looks (tex is a visual tool)
 
 it's often not as simple as you feed it this end get back that
I would disagree with you on a philosophical level, but no need to go 
into that!
 
 for documentation several methods are used:
 
 - examples in the test suite
 - some explanation in the source
 - explanations on the wiki
 - dedicated manuals
 - articles by users (+examples)
 
 although i sometimes run into impressive auto-documented documentation for 
 languages or os commands, in practice i find myself looking for examples 
 and/or experimenting and/or going into sources
 
We could need some more dedicated manuals especially in the area of side 
effects of parameters and thier
interactions inside of context.

Most examples focus on just one or two parameters which is good as a starting 
point, yet many posts here
show the lack of examples for the interplay of parameters locally and globally. 

I do have a request: would it be possible to finish the section on overlays and 
stacks in the manual or at least
start on it. I need that information because I need to use stacks inside of 
frames and these are then stacked inside of
others. The examples I have found are for margins, pages and inside of tables, 
but are not helpful for the task for me
at hand. 

regards
Keith.



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

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

Re: [NTG-context] EPUB woes

2013-11-20 Thread Keith J. Schultz
Hi Mica,

Am 19.11.2013 um 22:39 schrieb Mica Semrick paperdig...@gmail.com:

 Keith,
 
 Maybe you should explore an XML format that can be transformed directly to 
 epub. You'd also be able to write a style sheet with ConTeXt that would out 
 put a PDF as well. I think TEI-Lite is a good starting point.
While XML is one approach and using XML-Styles and DocBook I could even 
do without ConTeXt completely. Yet, from a general
user standpoint this way of marking up ebooks is tedious. XML has 
become the standard for storing all kinds of data. A a storage
format it is great and allows for conversion to other formats for ages 
to come. YET, one has to know what XML is how to use it
how to make tools to process it. That is something that I would not 
like to enforce on the average author. 
 
 Since you can make your own commands in ConTeXt, it will never be able to 
 intelligently map all commands on to simple HTML.
How true. That is the problem with any system that is and can handle 
more complex structures than a simpler system.
That is why any module geared to creating ebooks has to only allow what 
is needed and can be done in any EREADER, 
(notice I wrote reader not / Book or EPub!)

My Idea is to use the Lua capabilities of ConTeXt to get the job done.
I will try to exemplify.

suggest MWE:
\usemodule[ebook]

\setupcss[…]{…}% see comment #1

\setupmapping[…]{…} % used for when author has his/her own ideas #2

%normal ConTeXt sets see comment #3

% possibly set a mode or set externally

\starttext
\startebook
\chapter… %see comment #4
\startparagraph{leftmargin=20%, …] % see 
comment #5
% text
\stopparagraph
\starttable…
\stoptable
…
\stopebook
\stoptext

OK, this pretty much looks like standard ConTeXt
Comments:
1) Here is where the author can define the CSS he wants
It will integrated into the CSS used for the ebook

2) The author can setup how the ebook commands are mapped to
 ConTeXt commands

3) Here are setups for the  NORMAL ConTeXt commands for producing PDFs

4)  if mode is PDF command is mapped to normal ConTeXt injected into 
stream
 if mode ebook, gather information for spine, etc, start a new file 
for the chapter
 start writing to this file as HTML 

5)  if in mode PDF map to ConTeXt command, whereby the leftmargin is 
used as the
 basis for the calculation .2\textwidth or if you wish

This approach is ebook centric. Allows for rapid prototyping and proofing of 
the ebook using a PDF
This approach alleviates the need to attempt to dumb down ConTeXt markup. 
Through the use mappings te author has the possibility of producing a higher 
quality PDF if wanted.
The system could be designed to produce a file with the ConTeXt commands that 
can be edited for even
higher quality PDFs of printed versions. 

There could be even XML or whatever mode in the ebook module.

Another advantage would be is that we are a module that will produce HTML out 
of a ConTeXt styled syntax
that can be directly converted to a PDF directly, without worrying about lose 
of formatting or using tools over
which features are supported or not. This is a straight forward approach.

True, enough, ConTeXt is not designed to be a  HTML editor. 

It is a matter of design policy! The philosophy of going from TeX/ConTeXt 
centric to HTML is IMHO far inferior than
going from HTML/ebook centric to ConTeXt. One can always make things more 
intricate/complicated and taking something
complicated and morphing onto a less sophisticated system.

What one has to keep in mind is that ConTeXt renders to PDF and that is what 
is not needed when producing a ebook.
The rendering is done by the ereader. ConTeXt does have any information about 
screen size or  orientation. ConTeXt is built upon 
a page morphology. ebooks are not! So any decent approach has to keep this in 
mind.

regards
Keith.

 
 
 On Mon, Nov 18, 2013 at 10:12 AM, Keith J. Schultz schul...@uni-trier.de 
 wrote:
 
 Am 18.11.2013 um 16:33 schrieb Hans Hagen pra...@wxs.nl:
 
 On 11/18/2013 4:11 PM, Keith J. Schultz wrote:
 Hi Hans,
 
 
 Am 18.11.2013 um 13:21 schrieb Hans Hagen pra...@wxs.nl:
 
 On 11/18/2013 10:00 AM, Keith J. Schultz wrote:
 
   2) Now, what a EPub-READER must implement to handle is very
little. There are HARDLY ANY provisions that a certified 
 EPuB-READER has
  to implement any particular engine or features therein to 
 display/render
the information contain in the EPub-file/wrapper.
 
 right, and I'm not going to waste time

Re: [NTG-context] EPUB woes

2013-11-20 Thread Keith J. Schultz
Hi,

You do not understand my point. I one uses XML why use ConTeXt.
Yet, I one wants to use ConTeXt and do ebooks and they have experience why 
force them
to XML. 

As I stated the idea use ConTeXt to do the markup with commands that will 
ensure proper input of
HTML5  for making ebooks that will render well on MOST ereaders and at the same 
time be typeset
by ConTeXt to good quality PDF! 

ereaders need the html code to adhere to special guidelines in order to create 
a high quality display for the ebook.
That is why special commands are needed to restirct the features available! 

regards
Keith.

Am 20.11.2013 um 14:59 schrieb Aditya Mahajan adit...@umich.edu:

[snip, snip]
 
 To me, the biggest advantage of a TeX based system is the ease of 
 extensibility. If you want to restrict to a specific subset, then might as 
 well use XML:
 
 document
 book
 chapter
 paragraph leftmargin=20%
 text
 /paragraph
 /book
 /document
 
 or using one of the existing XML schemas rather than inventing your own 
 (perhaps even HTML5).
 
 As far as ConTeXt is concerned, you can process the above XML quite easily. 
 Come to think of it, it may be a useful to provide a module that
 maps HTML5 to PDF.
 
 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
 ___

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

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

2013-11-18 Thread Keith J. Schultz

Am 16.11.2013 um 17:51 schrieb Bill Meahan subscribed_li...@meahan.net:

 On 11/16/2013 11:00 AM, Keith J. Schultz wrote:
 Hi Bill,
 
 Using a PDF as a basis for creating an Epub ebook is actually a lost cause.
 EPUB is a container format that just wraps around your PDF. I do not know of 
 any
 ereader that can actually adjust the formatting/layout of a pdf in any 
 significantly
 useful way. You are stuck with the formatting in the PDF.
 
 For a EPUB-ebook to adjust properly you need to use HTML5 and CSS. Producing 
 PDF an sticking it into a
 EPUB or MOBI wrapper just does not make sense.
 
 regards
  Keith.
 
 You are totally misreading what I wrote!
Sorry.  But, from your original statement:
I have followed the steps on the wiki to the letter, using the export-example 
file provided with the standalone distribution. A PDF generated from the file 
is exactly what I would expect from an example. The generated epub, however, is 
useless - all the text is jammed together into one continuous block with no 
formatting whatsoever.

I assumed that the PDF was be put in the EPub- wrapper! According to the 
EPub standard this can be done!
I have to admit that I have not been following the progress done in ConTeXt 
for creating EPubs/eBooks.

Others have answered, and explain what you need to do to get a possibly 
working EPub.
See my comments in my replies to their posts.

regards
Keith. 


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

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

Re: [NTG-context] EPUB woes

2013-11-18 Thread Keith J. Schultz
Hi All,

I find that the ConTeXt approach to creating the EPub is flawed is a 
fundemental way!

NOT TECHNICALLY.

The EPub Standard is a big mess and if you really look at not a true standard 
in a
true sense.

Let me explain. 
1) The file structure is well documented and properly defines
 the way a EPub file MUST contain and how file therein must
 be structure and listed. (notice that I use the word MUST)

2) Now, what a EPub-READER must implement to handle is very
 little. There are HARDLY ANY provisions that a certified 
EPuB-READER has
 to implement any particular engine or features therein to 
display/render
 the information contain in the EPub-file/wrapper.

In other words it is simply a wrapper file format. and truly nothing more.
There is NO REQUIREMENT in the standard that perfectly valid xhtml or
HTML5 will be  properly displayed in a certified EPub Reader!

The standard has become more strict in recent years, yet still lacking.


Am 16.11.2013 um 18:37 schrieb Aditya Mahajan adit...@umich.edu:

[snip, snip]

 When you run `mtxrun --script epub --make test`, it just takes the files 
 specificied in the files field, and zips them in as a epub file.
 
 Now, in principle, any epub reader should support the any XHTML file; in 
 practice, they only support the default XHTML tags. The XML+CSS file that 
 ConTeXt generates are not handled correctly by most (all?) EPUB readers.
Here is where my critic of ConTeXt approach grabs. What good is if one 
produces a perfectly correct EPub, yet hardly any EPub reader can
handle. 
I remember correctly, an EPub Reader need not implement the handling of 
xhtml inorder to be certified or, if you wish, adhere to the standard.
The basic reason why xhtml is handled is because most html renders 
handle xhtml. 
Yet, the standard only requires that very basic html features be 
implemented and the author is required to offer fallbacks incase features are 
not
 supported.

 So there are three options:
 
 1. Wait until the EPUB readers catch up. It took almost 10-15 years for the 
 browsers to catch up with the HTML standards, and I don't have much hope for 
 EPUB readers here. Last I checked, none of them supported even MATHML-2.
Like I mentioned above a EPub reader is not REQUIRED to support it!
 
 2. Write a script (either using xmlproc, or using you favorite XML parser in 
 your favorite language) that converts the XML generated by ConTeXt into a 
 standard XHTML file. This is the easiest and the least time consuming 
 alternative.
AGAIN, as mentioned above there is no guarantee that it will be 
displayed properly.
Support/export of HTML5 would seem to me to be a better option, but 
then the HTML5 standard is not
complete and not fully supported by most newer ereaders, also.
 
 3. Modify the way in which ConTeXt generates the XML files. Ideally, I should 
 be able to write something like
Would be nice if there where commands in ConTeXt or a module for 
defining what should go into the CSS and a 
mode epub where the ConTeXt commands are converted to suitible HTML5 
structures that are suitiable for
most ereaders. 
Features: 
   1) margins in percentages
   2) font sizes based on em
   3) a new file for every chapter optional for sections 
user defined
Just a few. Lots more can be found in any decent documentation on 
writing ebooks.


regards
Keith.

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

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


Re: [NTG-context] EPUB woes

2013-11-18 Thread Keith J. Schultz
Hi Hans,


Am 18.11.2013 um 13:21 schrieb Hans Hagen pra...@wxs.nl:

 On 11/18/2013 10:00 AM, Keith J. Schultz wrote:
 
  2) Now, what a EPub-READER must implement to handle is very
   little. There are HARDLY ANY provisions that a certified 
 EPuB-READER has
  to implement any particular engine or features therein to 
 display/render
   the information contain in the EPub-file/wrapper.
 
 right, and I'm not going to waste time on it till i have a decent ebook 
 reader that behaves well
The point you are missing is that the ereaders are behaving well. They 
are following the epub 
 standard, and that to the letter of the standard. The problem is that 
the standard does not 
enforce any particular implementation. If you look at the slow progress 
of the standard that 
actually requires a full implementation of the HTML5 standard. That  
wait will very long.

Furthermore, ereaders are made by companies more interested in profits 
than spending a few Euros
more to put decent HTML engines into their readers. Why they do not do 
that is beyond me!
 
 3. Modify the way in which ConTeXt generates the XML files. Ideally, I 
 should be able to write something like
  Would be nice if there where commands in ConTeXt or a module for 
 defining what should go into the CSS and a
  mode epub where the ConTeXt commands are converted to suitible HTML5 
 structures that are suitiable for
  most ereaders.
  Features:
1) margins in percentages
2) font sizes based on em
 3) a new file for every chapter optional for sections 
 user defined
  Just a few. Lots more can be found in any decent documentation on 
 writing ebooks.
 
 context outputs xml and as a bonus provides a css too ... one can always 
 convert that xml to his/her ebooks liking .. maybe at some point the mtx-epub 
 script will do that

I always to like to look at programming as modular and would think that 
a epub/ebook module would be nice that maps
there are commands for layingout ebooks. these commands can then be 
mapped back to standard context commands.
For some interested in producing a epub then can use the conventions 
for producing ebooks and ConTeXt can provide the
math conversions to regular page dimensions used in PDFs for proofing 
or creating a printed version. It would also make the
creation of EPubs from ConTeXt a simple parsing exercise.   

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

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


Re: [NTG-context] EPUB woes

2013-11-18 Thread Keith J. Schultz

Am 18.11.2013 um 16:33 schrieb Hans Hagen pra...@wxs.nl:

 On 11/18/2013 4:11 PM, Keith J. Schultz wrote:
 Hi Hans,
 
 
 Am 18.11.2013 um 13:21 schrieb Hans Hagen pra...@wxs.nl:
 
 On 11/18/2013 10:00 AM, Keith J. Schultz wrote:
 
2) Now, what a EPub-READER must implement to handle is very
 little. There are HARDLY ANY provisions that a certified 
 EPuB-READER has
  to implement any particular engine or features therein to 
 display/render
 the information contain in the EPub-file/wrapper.
 
 right, and I'm not going to waste time on it till i have a decent ebook 
 reader that behaves well
  The point you are missing is that the ereaders are behaving well. They 
 are following the epub
  standard, and that to the letter of the standard. The problem is 
 that the standard does not
  enforce any particular implementation. If you look at the slow progress 
 of the standard that
  actually requires a full implementation of the HTML5 standard. That  
 wait will very long.
 
 sure, and every time i see an epub novel i realize that for something like 
 that one really can stick to rather dumb html ... the point is that one 
 cannot expect context to output simple everywhere accepted html from complex 
 rendered input ...
I agree fully. But, Since there are those that wish to produce epubs 
aka ebooks, they should not be doing complex
layout. One can always go from simple to complicated in needed, if 
there were commands dedicated to epub/ebooks/html.
As I had pointed out in my last post below.
 
  Furthermore, ereaders are made by companies more interested in profits 
 than spending a few Euros
  more to put decent HTML engines into their readers. Why they do not do 
 that is beyond me!
 
 3. Modify the way in which ConTeXt generates the XML files. Ideally, I 
 should be able to write something like
Would be nice if there where commands in ConTeXt or a module for 
 defining what should go into the CSS and a
mode epub where the ConTeXt commands are converted to suitible HTML5 
 structures that are suitiable for
most ereaders.
Features:
1) margins in percentages
2) font sizes based on em
   3) a new file for every chapter optional for sections 
 user defined
Just a few. Lots more can be found in any decent documentation on 
 writing ebooks.
 
 context outputs xml and as a bonus provides a css too ... one can always 
 convert that xml to his/her ebooks liking .. maybe at some point the 
 mtx-epub script will do that
 
  I always to like to look at programming as modular and would think that 
 a epub/ebook module would be nice that maps
  there are commands for layingout ebooks. these commands can then be 
 mapped back to standard context commands.
 
 in that case code in xml and either processit by context or transform it into 
 something ebooks can render
 
  For some interested in producing a epub then can use the conventions 
 for producing ebooks and ConTeXt can provide the
  math conversions to regular page dimensions used in PDFs for proofing 
 or creating a printed version. It would also make the
  creation of EPubs from ConTeXt a simple parsing exercise.
 
 so far i had no projects where epub was needes so it has a low priority and i 
 still read paper books (or when i would have ebooks i wouldn't need to render 
 them) ... pdfs views quite well on e.g. nexus 7 devices and i assume the 
 upcoming sony high res ebook will also do pdf well
Well I did start the discussion. Just offer my 2 Euro cents worth. 
Especially, since it comes up every now and then.
Furthermore, I there was a simple way to create epubs/books with 
ConTeXt more would use this feature. 

I have used up enough of or time.

regards
Keith.


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

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

Re: [NTG-context] announcement and call

2013-11-16 Thread Keith J. Schultz

Am 15.11.2013 um 13:06 schrieb Hans Hagen pra...@wxs.nl:

 On 11/15/2013 11:31 AM, Keith J. Schultz wrote:
 Hi Thomas,
 
[snip, snip
]
 The problem with the two page setup is synchronizing the comments, notes, 
 discussion of the critical edition's author. For a half way pleasing layout 
 these should interplaced between the contrasted editions across the two 
 pages. Yes, not an easy task.
 
 a lot depends on proper coding ... typesetting parallel texts is not per se 
 the same as multiple streams ... it all depends on what one wants to achieve
Like I had said in my post, a critical editions is a special case of 
parallel texts. How the different versions are brought together is a different 
matter.
That one can have the texts in different files and bringing them 
together.

Also, one way of looking at a two page layout is to assmune a 
multicolumn layout of a page that is 2 pages wide and 1  page high. After the 
columns
have been layout, rearrange the columns onto the proper page size. That 
is the approriate boxes! I do not how difficult this would be.
 
 
 also, if  1 page is used then we should not limit to 2 pages (or columns) in 
 parallel
Like I said above there are approaches which facilitate a modular 
layout. True enough, this is not necessarily a TeX way of approaching the 
problem,
yet should help to make the process as automated as possible. True 
enough that such an approach is not efficient, yet get the job done.

I believe a modular approach should be chosen. It allows for the best 
possible flexibility and using the parallel text for the low-level typeset gives
the author the best way of laying out the critical edition, instead of 
just putting simply texts next to each. That would not be academically 
sensible, because
creating a critical edition is far far more!
 
 I agree that it is hard to automate the synchronization of text passages. 
 The only viable approach would be at the paragraph level. A line level 
 approach can only be achieved by
 interaction of the author of the critical edition with synchronization marks 
 of some sort inside the editions.
 
 indeed. one cannot have the best of all worlds (perfect justification, 
 perfect note handling, perfect synchronization) because the solition space 
 gets too small
 
 (one thing Thomas and I discussed shortly is more advanced pdf's with more 
 embedded info and so ... something for later)
 
 we also need to look into ebook like things ...
This is something quite different an IMHO can be done relatively easily 
and lots of coding by creating commands for proper ebook production
 (mainly HTML 5 for epub and mobi output) and mapping those commands 
back to the ConTeXt commands for the production of pdfs if needed.
 
 Early, in my education in Computer Linguistics, decades ago, we had project 
 where we wrote a program for entry of critical editions. The editions/texts 
 and comments were
 entered in parallel on the tty-terminal screen and stored in a database. At 
 that time we where no interested in fancy output and used a simple stacked 
 output.
 
 As you probably know yourself, it is the entry and synchronization of the 
 editions that  is the problem an not as much the layout itself, though that 
 is hard enough by itself.
 I do not see any way to do this in a normal linear single pass process. The 
 question is in how far ConTeXt can support this task.
  ...
 
 time, motivation, etc ...
 
 I have just a brain stormed possible starting point. It as you can see it 
 has quite some felixiblity as to how the texts
 is entered and ConTeXt does some rearranging during typesetting.
 
 One type of critical edition we have not discussed is when the author whats 
 to work on a word basis. But, that is even a bigger can
 of worms for collating the data/texts.
 
 Most of what I have describe it probably obvious to you, yet
 
 well, keep collecting demands and examples ... best that we know what is 
 needed (and by how many people, for how many years to come, as it makes no 
 sense to develop code that is used once and then discarded because one moves 
 to newer technologies) ...
 
 we also need to keep in mind that this kind of things are author driven as 
 publishers are not paying for this kind of things nor willing to invest / 
 support development of tools (if they are interested in anything else than 
 25-50% profits at all).
Critical editions are very special and not that wide spread. Why do you 
think that there are not any very useful tools out in the wild. 
They are almost always coming from the Humanities and such authors are 
generally that computer savvy or versed in TeX let alone xml.
That is why I strongly suggest using a modular approach, with a 
simplistic interface as possible. 
Most that are looking for tools in ConTeXt will say well if I have to 
learn that much first forget

Re: [NTG-context] EPUB woes

2013-11-16 Thread Keith J. Schultz
Hi Bill,

Using a PDF as a basis for creating an Epub ebook is actually a lost cause.
EPUB is a container format that just wraps around your PDF. I do not know of 
any 
ereader that can actually adjust the formatting/layout of a pdf in any 
significantly
useful way. You are stuck with the formatting in the PDF. 

For a EPUB-ebook to adjust properly you need to use HTML5 and CSS. Producing 
PDF an sticking it into a 
EPUB or MOBI wrapper just does not make sense. 

regards
Keith.


Am 16.11.2013 um 16:16 schrieb Bill Meahan subscribed_li...@meahan.net:

 I have been trying for a very long time to generate an epub document via 
 context without success.
 
 I have followed the steps on the wiki to the letter, using the export-example 
 file provided with the standalone distribution. A PDF generated from the file 
 is exactly what I would expect from an example. The generated epub, however, 
 is useless - all the text is jammed together into one continuous block with 
 no formatting whatsoever.
 
 Adobe Digital Editions 2.0 crashes trying to open it. Sumatra and Sigil get 
 it open but the results are as described above. Obviously I am missing a step 
 or doing something wrong but I cannot see what.
 
 Context Standalone from a couple of days ago. Windows 7-64 (Home Premium) but 
 I got the same results several months ago on a Linux system so I do not think 
 it is OS-related.
 
 Sign me, Frustrated!
 
 -- 
 Bill Meahan, Westland, Michigan
 
   “Writing is like getting married. One should never
   commit oneself until one is amazed at one's luck.”
 
   —Iris Murdoch
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] announcement and call

2013-11-15 Thread Keith J. Schultz
Hi Thomas,


Am 14.11.2013 um 21:55 schrieb Thomas A. Schmitz thomas.schm...@uni-bonn.de:

 On 11/14/2013 09:40 PM, Philipp Gesang wrote:
 What I’d consider the most pressing issue, pertaining both to
 Context and to TeX as a whole, would be text streams a.k.a.
 parallel typesetting. It was discussed on the list a couple times
 already and at one point someone collected examples [1]. Also, I
 sketched the current state of parallel texts elsewhere [2].
 
 For certain values of pressing :-) Two pessimistic remarks about that: (1) 
 I experimented with a mechanism that Hans build for mkii a while ago, and I 
 found it difficult to decide how to define what was expected of parallel 
 typesetting. In the end, I wasn't convinced that an entirely automated 
 version was possible at all. (2) I'm afraid that's not part of the present 
 project and is related neither to critical editions nor to bibliographies.

I have to strongly disagree with you here. A critical edition is only a 
specialized case of parallel texts! You two or more editions that are 
contrasted/compared to each other.
Naturally, it must be bibliographically annotated and there are the comments of 
the author of the critical edition.

The  editions have to be typeset in parallel. There are many ways how an author 
can lay this out. In the far past it was common just to stack the contrasted 
versions on top of
each other! Very very ugly. Lots of examples in libraries. More recent ways are 
to use column. Yet, the more editions involved the harder it is to place on one 
page. For such cases
it would be best to spread them across two facing pages. 

The problem with the two page setup is synchronizing the comments, notes, 
discussion of the critical edition's author. For a half way pleasing layout 
these should interplaced between the contrasted editions across the two pages. 
Yes, not an easy task.

I agree that it is hard to automate the synchronization of text passages. The 
only viable approach would be at the paragraph level. A line level approach can 
only be achieved by
interaction of the author of the critical edition with synchronization marks of 
some sort inside the editions.

Early, in my education in Computer Linguistics, decades ago, we had project 
where we wrote a program for entry of critical editions. The editions/texts and 
comments were
entered in parallel on the tty-terminal screen and stored in a database. At 
that time we where no interested in fancy output and used a simple stacked 
output.

As you probably know yourself, it is the entry and synchronization of the 
editions that  is the problem an not as much the layout itself, though that is 
hard enough by itself.
I do not see any way to do this in a normal linear single pass process. The 
question is in how far ConTeXt can support this task. 
1) provide possibilities of laying out the texts synchronized in columns, 
stacks and two page layouts. Footnotes, under, columns, pages or across
either. Another, nice feature would be the availability of marginals in 
a synchronized way.
This should be a generalized module or set of commands as it 
can be used in many other fields be critical editions.
In other words a parallel texts layout package:
\defineparalleltextlayout[name][…]
\setupparalleltextlayout[name][…]{…}
\defineparalleltextpart[name][..]
\setupparalleltextpart[name][…]{…}
\startparalleltext[name][…]
\stopparalleltext
  . . .
 

2) providing commands that define which parts belong together
I would suggest that this be done mostly on the Lua side as you 
can then develop a database of sorts and worry about
the layout/typesetting of the critical edition later.
A package for marking up the editions directly.
\defineeditionslayout[name][…]
\setupeditionslayout[name][…]{…}
\defineedition[name][..]
\setupedition[name][…]{…}
\starteditionsl[name][…]
\stopeditions
\starteditiontext{name}{text}
\stopeditiontext
\startauthorremarks
\stopauthorsremarks
 . . .

desired MWE:
% definitions and setups
\starttext
   % some text
\starteditions[style1]
\starteditiontext{edition1}
   % some text
 

Re: [NTG-context] TEXpage problem in lare betas (slightly OT)

2013-11-15 Thread Keith J. Schultz
Hi,

I have had similar problems with such side effects in my projects.

My question is where can read up on  side effects. On the wiki and
in the manuals side effects are not listed. 

It would be nice to read up on the side effects so that one can try to avoid 
them
or find a work around instead of trying to guess what is going on!

regards
Keith.

Am 14.11.2013 um 23:27 schrieb Hans Hagen pra...@wxs.nl:

 On 11/14/2013 10:13 PM, Thomas A. Schmitz wrote:
 
[snip, snip]
 that's because now you have a hbox
 
 anyway, i uploaded a beta with a fix but still, keep in mind that you need to 
 avoid empty lines:
 
 \startTEXpage[offset=0.5ex,align={lohi,middle}]
\bTABLE[frame=off,loffset=1ex,roffset=1ex,align={middle,lohi}]
   \bTR
 \bTD  A \eTD
 \bTD B \eTD
 \bTD C \eTD
   \eTR
\eTABLE
\blank[line]
\bTABLE[frame=off,loffset=1ex,roffset=1ex,align={middle,lohi}]
   \bTR
 \bTD D \eTD
 \bTD E \eTD
 \bTD F \eTD
   \eTR
\eTABLE
 \stopTEXpage
 
 as a \noindent is injected at the beginning and that has the side effect of 
 an empty line then forcing width of hsize

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

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] MacOsX Mavericks and Luatex

2013-10-24 Thread Keith J. Schultz
Hi Pierre,

I have Mavericks installed and no problems.

But, I did a clean install, migrated User Folder from a TM-Backup, and 
my ConTeXt Suite (latest beta) work fine.

Since I did a clean install I had to install MacTeX.
  -- Tried an older LuaLaTeX and got an error
  -- Ran TeXLive Utility and update TeXLive
Everything works fine.

I did notice that LuaTeX binaries were updated. 

Since you have not said where you got your version from try
repairing permission on your disk. You should do this especially
you did not do this before the update.

or just update or reinstall!

Sorry for going slightly OT.

regards
Keith.

Am 24.10.2013 um 07:41 schrieb Pierre Bovet pierr...@me.com:

 Hi all!
 
 It seems that Luatex (0.76 2013/04/05) don't works with Mavericks?
 
 Thank's in advanced for your help and testimonies
 
 Best wishes
 

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

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] MacOsX Mavericks and Luatex

2013-10-24 Thread Keith J. Schultz
Hi All, Wolfgang,

The PROBLEM is that Skia.ttf has the wrong permissions!
Everyone is set to none. meaning this file can not be read!

Solution copy to somewhere else, remove from /Library/Fonts and reinstall.

This suggest to me that when scanning the fonts and building the support files
there is a sanity check missing! Whether this sanity is truly needed is a 
matter of taste,
as I assume this is most likely a very rare case, where a system font has for 
some reason
bad permissions. Interestingly enough on my clean OSX only emergency drive 
Skia.ttf has
the proper permissions. 

Since I did a clean and migrated the my user with Migration Assistant  I assume 
it mangled
the permissions.

regards
Keith.

Am 24.10.2013 um 10:00 schrieb Wolfgang Schuster wolfgang.schus...@gmail.com:

 
 Am 24.10.2013 um 09:45 schrieb Pierre Bovet pierr...@me.com:
 
 OK, that was not a good example…
 But the the message above is coming with any other otf fonts:
 
 fontsnames  globbing path '/Library/Fonts/**.ttf'
 
 mtx-context | fatal error: no return code, message: luatex: execution 
 interrupted
 
 Can you remove the Skia.ttf (copy it to another directory) font from 
 /Library/Fonts,
 this helped on my system to get rid of the error message.
 
 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] Need help defining command.

2013-10-22 Thread Keith J. Schultz
HI All,

I remember seeing some seeing what I want to do but I can not find it.

I would like to define a command that takes an optional key-valued list and
1 or 2 manditory ones.

Something like

\unexanded\def\MyCommand[#1]#2%
{%
\NassiGroupFrame[#1]{#2}%
}%

or

\unexanded\def\MyCommand[#1]#2%
{%
% extract keyvalue
\NassiGroupFrame[\width=\extractedvalueone]{hbox to \extractvaletwo{#2}}%
}%

where \NassiGroupFrame is a Frame.

To give you an idea why I need this see the MWE below.
This is a relatively simple example, there will be more complicated frames and
they will be nested. 

Maybe I am chasing windmills and there is a better way and I should use cld or 
lua for
outputing the Frames so that I can have spacing between the command and avoid 
having
to use % after the first opening {.
Or does someone know how it can be done. Is there a way to use ConTeXt to write 
the command

Pointers, help welcome.

MWE:
%
%% NassiSimpleFrameBox
%%
%% Draw a box around a frame using exact height
%% and width. to use it use overlay  NassiSimpleFrameBox
%%
\startuniqueMPgraphic{NassiSimpleFrameBox}

 pickup pencircle scaled \overlaylinewidth ;
 draw (0,0) -- (0, OverlayHeight) -- (OverlayWidth, OverlayHeight)
   --  (OverlayWidth, 0) -- cycle withcolor OverlayLineColor;
\stopuniqueMPgraphic

%% Define Overlay for NassiSimpleFrameBox
%%
\defineoverlay[NassiSimpleFrameBox][\uniqueMPgraphic{NassiSimpleFrameBox}]

%%
%


%
%% NassiGroupFrameBox
%%
%% Draw a box around a frame which contains several
%% structures. Since the frame size containing the structures
%% has a \rulethickness frame around then we have to adjust
%% so that we can draw on top of its bounding box
%%
\startuniqueMPgraphic{NassiGroupFrameBox}

 numeric DoubleLineWidth, TrueWidth, TrueHeight;
  
 DoubleLineWidth := 2 * OverlayLineWidth;
 TrueHeight := OverlayHeight - DoubleLineWidth;
 TrueWidth  := OverlayWidth - DoubleLineWidth;
 
 pickup pencircle scaled OverlayLineWidth;
 draw (0,0) -- (0, TrueHeight) -- (TrueWidth, TrueHeight)
   --  (TrueWidth, 0) -- cycle withcolor OverlayLineColor;
\stopuniqueMPgraphic

\defineoverlay[NassiGroupFrameBox][\uniqueMPgraphic{NassiGroupFrameBox}]

%%
%

%
%% NassiSimpleFrame
%%
%% Frame for putting a frame around it.
%% Location is set so that they can be stack
%% on top of each other.
\defineframed[NassiSimpleFrame]
\setupframed[NassiSimpleFrame]
[width=5cm, frame=off, background=NassiSimpleFrameBox, rulethickness=1pt, 
framecolor=blue, offset=0pt, frameoffset=0pt, location=lohi]
%%
%


%
%% NassiGroupFrame
%%
%% Frame for putting a frame around a block of 
%% structures. Since it surrounds  a group we use
%% fit for Height and Width.
%% So that the The frame gets draw on top that the
%% the background has to be setup accordingly.
\defineframed[NassiGroupFrame]

\setupframed[NassiGroupFrame]
[width=fit, height=fit, frame=off, rulethickness=3pt, framecolor=green, 
offset=0pt, background={foreground, NassiGroupFrameBox}, frameoffset=0pt, 
align=middle, strut=no]

%%
%


%% Frame a Statement
%% The text inside the frame is adjust to
%% leave room for the frame

\unexpanded\def\Statement#1%
{%
\NassiSimpleFrame[width=5cm,framecolor=red]{\vbox{\hsize 
\dimexpr\framedparameter{width} * 9/10\relax \strut #1}}%
}%

\unexpanded\def\MyGroup#1%
{%
\NassiGroupFrame{\hbox to 10cm%
{#1}}
}%

\unexpanded\def\MyBlock#1%
{%
\vtop{{\hsize 5cm#1}}%
}%

\starttext

\NassiGroupFrame{%
\vbox{\hsize 5cm%

\Statement{This is a test This is a test This is a test This is a test This is 
a test This is a test}

\Statement{This $is^a$ test }

\Statement{This $is^a$ test This is a test This is a test This is a test This 
is a test This is a test}

}}

\MyGroup{% How do I avoid comment here
\MyBlock{

\Statement{This is a test This is a test This is a test This is a test This is 
a test This is a test}

\Statement{This $is^a$ test }
}% How do I avoid comment here

\MyBlock{\Statement{This is a test This is a test This is a test This is a test 
This is a test This is a test} }
}

\stoptext

regards
Keith.

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

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


Re: [NTG-context] Need help defining command.

2013-10-22 Thread Keith J. Schultz
Hi Wolfgang,

to be honest one of my design considerations was to this work using MetaPost.
But, my knowledge of MetaPost is minimal and it would be involved calculating 
the positions
of the Frames/boxes and I need to know the sizes of the formatted text, etc

Another approach would be to use layer, but I can not find much documentation 
about how/if
they can be used inside of a frame.

regards
Keith


Am 22.10.2013 um 11:31 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com:

[snip, snip]
 There are ways to ignore the spaces at the begin (\ignorespaces) and end 
 (\removeunwantedspaces)
 of a group but you should rethink first your interface for your commands (why 
 no start/stop commands).
 
 It can be also useful to draw the whole diagram with Metapost and use the TeX 
 commands only
 to pass the content to Metapost.

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

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] Need help defining command.

2013-10-22 Thread Keith J. Schultz
Hi Wolfgang,

Am 22.10.2013 um 11:31 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com:

 
 Am 22.10.2013 um 10:34 schrieb Keith J. Schultz schul...@uni-trier.de:
 
 HI All,
 
 I remember seeing some seeing what I want to do but I can not find it.
 
 I would like to define a command that takes an optional key-valued list and
 1 or 2 manditory ones.
 
 Something like
 
 \unexanded\def\MyCommand[#1]#2%
 {%
 \NassiGroupFrame[#1]{#2}%
 }%
 
 \unexanded\def\MyCommand
  {\dosingleempty\doMyCommand}
 
 \def\doMyCommand[#1]#2%
  {\NassiGroupFrame[#1]{#2}}
 
 or
 
 \unexanded\def\MyCommand[#1]#2%
 {%
 % extract keyvalue
 \NassiGroupFrame[\width=\extractedvalueone]{hbox to \extractvaletwo{#2}}%
 }%
 
 \unexanded\def\MyCommand
  {\dosingleempty\doMyCommand}
 
 \def\doMyCommand[#1]#2%
  {\begingroup
   \getdummyparameters[valueone=6cm,valuetwo=5cm,#1]
   \NassiGroupFrame[width=\dummyparameter{valueone}]{\hbox to 
 \dummyparameter{valuetwo}{#2}}%
   \endgroup}
 
 \MyCommand[valuetwo=4cm]{...}
 
 where \NassiGroupFrame is a Frame.
 
 To give you an idea why I need this see the MWE below.
 This is a relatively simple example, there will be more complicated frames 
 and
 they will be nested. 
 
 Maybe I am chasing windmills and there is a better way and I should use cld 
 or lua for
 outputing the Frames so that I can have spacing between the command and 
 avoid having
 to use % after the first opening {.
 Or does someone know how it can be done. Is there a way to use ConTeXt to 
 write the command
 
 There are ways to ignore the spaces at the begin (\ignorespaces) and end 
 (\removeunwantedspaces)
 of a group but you should rethink first your interface for your commands (why 
 no start/stop commands).
I thought about that, but I do not know I could use start/-commands in this 
context!

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

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


Re: [NTG-context] Is this possible for the Frames

2013-10-21 Thread Keith J. Schultz
Hi Wolfgang, all,

Thanx for the example/help.

I have a few questions sothat I understand properly what is going on and
how to maybe do some more fancy things.

1) \dimexpr allows the calculation of a dimention

2)  \dimexpr is closed by \relax or if I need more complicated calculation 
something like:
frameoffset=\dimexpr{\framedparameter{rulethickness}*3/10}  + 
\framedparameter{\frameoffset}}\relax

3)  How would access a value of a DIFFERENT frame?
   
4) I could use my own command whose result is a dimension:
  \def\MyCommand#1{#1\textwidth}
and use it as:
frameoffset=\dimexpr\Mycommand{.05}\relax

regards
Keith


Am 18.10.2013 um 14:56 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com:

 
 
 \defineframed
  [MyFrame]
  [rulethickness=3pt,
   frameoffset=\dimexpr\framedparameter{rulethickness}*3/10\relax]
 
 \starttext
 
 \MyFrame{What goes into the frame}
 
 \blank
 
 \MyFrame[rulethickness=1pt]{What goes into the frame}
 
 \blank
 
 \MyFrame[rulethickness=10pt]{What goes into the frame}
 
 \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
___


Re: [NTG-context] Is this possible for the Frames

2013-10-21 Thread Keith J. Schultz
Hi All,


Am 21.10.2013 um 08:41 schrieb Keith J. Schultz schul...@uni-trier.de:

 Hi Wolfgang, all,
 
 Thanx for the example/help.
 
 I have a few questions sothat I understand properly what is going on and
 how to maybe do some more fancy things.
 
 1) \dimexpr allows the calculation of a dimention
 
 2)  \dimexpr is closed by \relax or if I need more complicated calculation 
 something like:
   frameoffset=\dimexpr{\framedparameter{rulethickness}*3/10}  + 
 \framedparameter{\frameoffset}}\relax
Found the answer use \dimexpr(…). the \relax is so that TeX behaves!

 3)  How would access a value of a DIFFERENT frame?
 
 4) I could use my own command whose result is a dimension:
  \def\MyCommand#1{#1\textwidth}
   and use it as:
   frameoffset=\dimexpr\Mycommand{.05}\relax
 
 regards
   Keith
 

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

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


[NTG-context] Updated Wiki Mac Installation page

2013-10-14 Thread Keith J. Schultz
Hi Everbody,

I have revised the Mac Installation Page on the wiki.
Critic invited.

I am somewhat uncertain how much I should use the finder or the Terminal.

Discussion invited.

regards
Keith.

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

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


Re: [NTG-context] Possibly bug in ConTexT with TikZ

2013-10-13 Thread Keith J. Schultz
Using version 2013.10.10 it works for me as stated in my last post.

regards
Keith

Am 11.10.2013 um 09:55 schrieb Xan dxpubl...@telefonica.net:

 With version 2013-09-07 (sh ./first-setup.sh --context=2013-09-07 
 --modules=all --engine=luatex) it works
 With version 2013.10.09 it does not
 
 So there is a bug.
 
 Can anyone fix it?
 
 Thanks,
 Xan

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

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] Possibly bug in ConTexT with TikZ

2013-10-11 Thread Keith J. Schultz
Hi,

I just tested the below MWE!

It worked with the latest beta MKIV (--modules=all), an three day old beta, and 
with the TeXLive 2013 (MacTeX)

No errors. Running via TeXShop on a Mac OS 10.85

I can only assume that something is wrong with your set-up! maybe a path 
problem and the wrong TiKZ is being loaded.

reagrds
Keith.

Am 10.10.2013 um 13:09 schrieb Xan dxpubl...@telefonica.net:

 Minimal example:
 
 % Regime
 \enableregime[utf]
 
 % Choose a language, and associated hyphenation rules.
 \mainlanguage[ca]
 
 \usemodule [tikz]
 \usetikzlibrary [decorations]
 \usetikzlibrary[decorations.markings]
 
 
 
 \starttext
 
 
 
 \starttext
  \starttikzpicture
[decoration={
   markings,
   mark=
   between positions 0 and 1 step 0.5
   with {
\draw (0,-2pt) -- (0,2pt);
   }
 }
 ]
\coordinate (F) at (0,0);
\draw[very thick,color=green, loosely dashed,postaction={decorate}] (0,1) 
 -- (F);
  \stoptikzpicture
 \stoptext
 
 \stoptext
 
 
 does not work.
 
 Without \coordinate it works. What fails?
 
 Thanks in advance,
 Xan.
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] Feedback wanted on a ConTeXt tutorial

2013-10-02 Thread Keith J. Schultz
Hi Mari, All,

I have redone/modified the Mac Installation page for Installing MacTeX, ConTeXt 
Standalone and
TeXShop.

Not quite finished, yet and needs polishing.

Critic invited. 

regards
Keth


Am 01.10.2013 um 08:30 schrieb Mari Voipio mari.voi...@iki.fi:

 On Mon, Sep 30, 2013 at 10:35 AM, Keith J. Schultz keithjschu...@web.de 
 wrote:
3) I could write up a tutorial for installing and TeXlive and Standalone
   if you care for one.
 
 Maybe that should go on page
 http://wiki.contextgarden.net/Mac_Installation . While I'm used to the
 command line, I still picked TextMate because it was an easy way out.
 I've got MacTeX (=TeXlive) on my computer for occasional dabble with
 LaTeX and I rather like the editor (and it's free), but I didn't know
 that it can be configured to use ConTeXt Suite (=standalone) instead
 of having to make do with whatever version is in the package.
 
 So if you have time to edit that wiki page, I'm sure that would be 
 appreciated!
 
 
 Mari
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] Feedback wanted on a ConTeXt tutorial

2013-10-02 Thread Keith J. Schultz
Thanx for the pointer.


Am 02.10.2013 um 13:28 schrieb Aditya Mahajan adit...@umich.edu:

 On Wed, 2 Oct 2013, Keith J. Schultz wrote:
 
 Hi Mari, All,
 
 I have redone/modified the Mac Installation page for Installing MacTeX, 
 ConTeXt Standalone and
 TeXShop.
 
 Not quite finished, yet and needs polishing.
 
 Critic invited.
 
 Minor correction. If you running the setup file using sh first-setup.sh 
 then the previous step chmod +x first-setup.sh is not needed.
 
 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
 ___

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

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] Feedback wanted on a ConTeXt tutorial

2013-09-30 Thread Keith J. Schultz
Hi Mari,

As some already mentioned In OS is not correct either use 
OS or On!

In section 1.1.1 the last sentence is:
TeXLive comes with a quite nice editor, TeXShop, that works well with 
ConTEXt 

   1) Missing period
   2) TeXShop is Mac only. You probably meant to to say TeXWorks!
  TeXWorks is based on TeXShop. I do not know if it runs on Windows.

In section 1.1.2 in the last sentence you write:
 […] and (abt 40 euros; a non-commercial licence is cheaper) […]

1) I do not get this? Where do you buy it? Never new you could buy it!
2) On can install the ConTeXt Standalone and download TeXShop,
   very little effort is needed to direct TeXShop to the standalone
   version. Switching between TeXLive and Standalone is then easy.
3) I could write up a tutorial for installing and TeXlive and Standalone 
   if you care for one. 

Furthermore, Mac OS is a Unix system, though most do not realize this.
Also, It might be best to point to the wiki for installing ConTeXt.

In section 2.2 you talk about command, yet you forget to mention that commands
can have a setup-command. I believe it is important to mention this as
it is a integral part of ConTeXt and very important when using it as you example
commands show. 

In general I would say your general way of going about things are O.K.
Yet, I have one problem.  I personally believe you should go into more
detail about the relationship between typesetting, layout and ConTeXt.
It depends if you are writing a getting started manual or want to write
a comprehensive tutorial. 

I myself started on a tutorial as I find the contextref not comprehensive
enough and it really does not go into the caveats and use of all the options
of the commands therein. My idea was to divide the section into basics and
explanation of the options and advanced usage. 

Hope this helps.

Keep up the good work.

reagrds
Keith. 

Am 29.09.2013 um 17:22 schrieb Mari Voipio mari.voi...@iki.fi:

 Hello!
 
 Inspired by some informal discussions at the recent ConTeXt meeting I
 started to write a *really* basic ConTeXt tutorial. However, before I
 get further than the first six chapters, I'd like to get feedback on
 it, especially on the content, but also on the layout. The file is (at
 least temporarily) available at
 http://www.lucet.fi/pdfs/ctxbasics.pdf.
 
 I know already that there are a few things missing in the existing
 chapters, but I'd like to know if the document is any good and if the
 style is suitable for such a document. I've planned and written it out
 of my own experiences with ConTeXt, so maybe this document could
 become a My Way doc when it is finished (something public domain
 anyway).

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

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] [***SPAM***] OT: Putting a context to the 2013 ConTeXt Meeting location

2013-09-20 Thread Keith J. Schultz
The only problem with povray is that it is quite aged and to my knowledge
no longer in development at least the Mac side!

regards

Am 19.09.2013 um 22:18 schrieb Alan BRASLAU alan.bras...@cea.fr:

 On Thu, 19 Sep 2013 21:47:13 +0200
 luigi scarso luigi.sca...@gmail.com wrote:
 
 Do you mean something like  
 http://asymptote.sourceforge.net/gallery/cyclohexane.pdf
 ?
 
 For this, I would prefer povray.
 
 Alan
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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] Trouble with editors on Mac

2013-08-16 Thread Keith J. Schultz
Hi Mari,

I use TeXShop. TeXWorks is based on TeXShop.
For ConTeXt Standalone I use:

set path= (/Users/quayjay/context/tex/texmf-osx-64/bin  $path /usr/local/bin)
mtxrun --script context --autogenerate --synctex=1 $1

This ensures that the environment is setup right.

Hope this helps

regards
Keith.

Am 14.08.2013 um 21:34 schrieb Mari Voipio mari.voi...@iki.fi:

 Hi!
 
 I updated my ConTeXt installation today and now it refuses to work
 with TextMate and TeXworks. When I use the typesetting command on
 either editor, I get the error message
 
 mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'
 
 
 The weird thing is that my ConTeXt standalone installation works on
 command line (with context myfile.tex).
 I've used TextMate for a year and did not change anything there. Both
 editors also have my ConTeXt directory
 /Applications/ConTeXt/tex/texmf-osx-64/bin/context as PATH variable (I
 got a different error message on TeXworks before I edited the path
 variable to include ConTeXt). So in theory everything should be
 fine...
 
 
 I first installed the newest ConTeXt and when it gave the above error
 message, I switched to latest stable version (installation with
 --context=current), but that didn't make any difference. My previous
 installation was at least 3 months old, possibly quite a bit older.
 
 
 This problem is not critical as I can use TextMate/TeXworks as editor
 and compile on command line in Terminal,  but it is a bit of a
 nuisance not to be able to use the typesetting command in the editor.
 So any help is highly appreciated.
 
 
 Thanks,
 
 Mari
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] Math accents set too close to capital

2013-08-01 Thread Keith J. Schultz
Hi,

Have you tries U+1024 or LETTER CAPITAL H WITH CIRCUMFLEX?

True not all Fonts might not have it and it is TEXT not Math.

Just a thought.

regards
Keith.

Am 31.07.2013 um 00:04 schrieb Michael Murphy murphy...@gmail.com:

 Hello all,
 
 I'm trying to typeset 'H' with a circumflex (or hat) in math mode, but the 
 result is rather ugly when not using latin-modern. I've tried to redefine the 
 \hat macro to move the accent up a bit using \topaccent: is this the best 
 approach? Having to nest '$' does not seem right at all. (Also, for some 
 reason although I find \mathhat in enco-ini.mkiv, when I try to use it I get 
 undefined control sequence.)
 
 Thanks,
 Michael
 
 \starttypescript [mathfont]
   \definetypeface [mathfont] [mm] [math]  [palatino]  [default] [rscale=1.0]
 \stoptypescript
 \usetypescript[mathfont]
 \setupbodyfont[mathfont]
 
 \starttext
 
 $\hat{H}$
 
 \def\hat#1{\topaccent{3pt}{0}{90}{\textcircumflex}{$#1$}}
 
 $\hat{H}$
 
 \stoptext
 
 --
 
 Michael Murphy
 murphy...@gmail.com

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

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

2013-06-28 Thread Keith J. Schultz
Hi All,

I have been following this thread with some amusement.

There is no real optimal answer to this question short of developing
a dedicated pdfviewer for ConTeXt. But, is this the best use of our resources.
Furthermore, how about a dedicated editor? ;-)) (just joking, but I am
sure somebody would come with the idea eventually, once we start down this
path)

As a Mac user, and one that shys away from using X. I use TeXShop.
TeXShop has a multiplatform counterpart TeXWorks, distributed with
TeXLive. It has a integrated pdf viewer with SyncTeX functionality.
Its pdf viewer is based on Poppler. How good it is I can not say. But,
it should not be two hard to extract it and turn it into a standalone.

I think it could work as an adequate viewer. If someone then needs
to use something better they can write the scripts they need themselves.

Maybe, the TeXWorks guys could help. 

regards
Keith

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

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


Re: [NTG-context] Overriding pdfview

2013-06-28 Thread Keith J. Schultz
Hi All,

I would agree that the users default should be respected.

I will have to contradict my last post them. 

My suggestion them is to use a system variable such as
ConTeXtViewer. This variable would contain the program to be called.
If it is not set or empty context simply finishes up what ever it is doing
and exits. 

It would not be two hard for a user to set this variable. Everybody gets what 
they 
want. It is not intrusive. It survives updates. Only needs to be done once.

Now, if anybody wants to us the current method and furture versions he can
or set up he wants.

regards
Keith.


Am 28.06.2013 um 01:53 schrieb Gareth Jones gareth.k.jo...@gmail.com:

 I'll repeat what I said, though: the PDF reader that is (a) most
 likely to be installed, and (b) is most logical / least surprising to
 the user, is: the user's own default PDF viewer.
 
 For what it’s worth, as an end user, I agree.

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

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

2013-06-28 Thread Keith J. Schultz
Hi Hans,

I meant a OS system variable. But that actually does not matter.
The default action would be changed to not call a browser!

I agree that nobody should be forced to use autopdf.
Yet, as I understand the discussion there seems to be a need 
to add some generality to the method. 

Possibly, a cleaner way to resolve this discussion is to define calls for
user as in user defined. In other words, in addition to -autopdf there will be 
a parameter -autocalls which is a list of commands for the calls opencalls, 
closecalls,
allcalls.

No for more need for anyone to really change a file it would be in their call 
to context.

regards
Keith.

Am 28.06.2013 um 12:34 schrieb Hans Hagen pra...@wxs.nl:

 On 6/28/2013 10:56 AM, Keith J. Schultz wrote:
 Hi All,
 
 I would agree that the users default should be respected.
 
 I will have to contradict my last post them.
 
 My suggestion them is to use a system variable such as
 ConTeXtViewer. This variable would contain the program to be called.
 If it is not set or empty context simply finishes up what ever it is doing
 and exits.
 
 in that case it would be a directive in texmfcnf.lua (probably in the 
 texmflocal instance) but when unset there still will be the default
 
 no one is forced to use --autopdf and if someone doesn't want to pop up a 
 browser one can simply nto use --autopdf
 
 keep in mind that when a user uses --autopdf he/she probably knows what is 
 needed can can as well pass some extra info
[snip, snip]
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Auto selecting optical sizes for a font

2013-06-24 Thread Keith J. Schultz
HI Georg, All,

as such ConTexT should support the use of the size table in its font handling,
but as Hans has mentioned design sizes a very special and few actually know 
what that information means and put it to a useful purpose.

Question would be in far this font feature should be rudimentarily supported.

regards
Keith.

Am 24.06.2013 um 00:28 schrieb Georg Duffner g.duff...@gmail.com:

 Am 22.06.2013 16:57, schrieb Hans Hagen:
 
 We have no feature 'size' (or I must have forgotten about it). As
 there is no consistency in designsizes and there is always some
 esthetic choice involved no automatic mechanism is (and will be)
 build in.
 
 Hi,
 
 There is a 'size' table in opentype fonts which contains informations about 
 the design size, the design range and a style-ID and -name. Fonts that come 
 with different optical sizes do in fact use that table exactly for the 
 purpose desired by Andrés. Latin Modern does so, Adobe fonts do so and EB 
 Garamond happens to use that table too. XeLaTeX and LuaLaTeX interpret it 
 correctly (by means of fontspec, IIRC). So perhaps it’s worth reconsidering 
 this.
 
 Best regards,
 Georg
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] Failure building standalone

2013-06-21 Thread Keith J. Schultz
Hi All, Mojca,

please excuse my ignorance of the inner workings of windows, but
would it not be possible to have the permissions corrected by the first-setup.sh
script after the rsync?

regards
Keith.

Am 21.06.2013 um 07:56 schrieb Mojca Miklavec mojca.miklavec.li...@gmail.com:

 On Thu, Jun 20, 2013 at 6:39 PM,  hwit...@gmail.com wrote:
 
 Thanks  Mojca.   Re-running the command today got me a little further.  
 Thank you.
 
 The problem encounted now is:
 
 
 sh ./first-setup.sh --modules=all --engine=luatex --context=current
 receiving incremental file list
 
 sent 64 bytes  received 322 bytes  85.78 bytes/sec
 total size is 10993585  speedup is 28480.79
 env: mtxrun: Permission denied
 
 
 
 I explicity set the permissions to allow me execute access, but script fails 
 toward the end.
 But, it looks lke the sh script itself is chaning the perameters.  Or else 
 my setup is intentionally tricking me.
 
 Unless you comment out the part of first-setup.sh which syncs
 ./bin/mtxrun.exe, the file is going to be overwritten each time and
 the file on server wasn't executable (because it usually doesn't make
 any difference for windows users anyway).
 
 I fixed the executable bits on server. Please try again.
 
 (But please note that when we user rsync as provided by rsync in past,
 binaries were broken even if the executable bit was set on the server.
 We had to use set cygwin nontsec or something like this to overcome
 the problem, or run chmod after each sync. I hope that you won't be
 bitten by this, but we were.)
 
 Mojca

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

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


Re: [NTG-context] Failure building standalone

2013-06-21 Thread Keith J. Schultz
Hi Mojca,

I agree with you fully. It was just a thought.

The problem is most likely a bug in the port.

I had figured that first-setup.sh should be run anyway
using chmod should do the trick. In other words for cygwin
first-setup.sh cleans up what has gone wrong during transfer.

regards
Keith.
 
Am 21.06.2013 um 11:16 schrieb Mojca Miklavec mojca.miklavec.li...@gmail.com:

 On Fri, Jun 21, 2013 at 9:54 AM, Keith J. Schultz wrote:
 Hi All, Mojca,
 
 please excuse my ignorance of the inner workings of windows, but
 would it not be possible to have the permissions corrected by the 
 first-setup.sh
 script after the rsync?
 
 (I'm not sure to which part you were replying.)
 
 Sure it could, but it's way better if the original file on the server
 already has the right permissions, else rsync will keep reverting the
 change, over and over again. (We are talking about using cygwin
 directly now.)
 
 
 The problems that we had on native windows (using cygwin's rsync only)
 was that even with proper permissions on the server, cygwin did
 something very bad/weird with permissions on the client's side, so the
 resulting binaries were completely useless. Of course, running chmod
 helped, but that's a weird cure because it has to be repeated after
 each sync. Each sync fixes (= destroys) permissions again. Using the
 weird nontsec setting solved the problem, even though I still believe
 that that could be considered a bug in rsync or its port to Windows.

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

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] Help understanding framed!

2013-05-20 Thread Keith J. Schultz
Hi Everybody,

I am trying to develop a module for writing Nassi-Schneidermann-Diagrams.

I thought I would use framed and metafun. But, I have run into, for me at least,
strange behaviour. I have given MWE and attach the result and a second file 
which is required.

What I do not understand is why the first line after \MyBoxit is indented 
(see source and result below).

The second is why when I nest \MyBoxit do I get extra vertical space?

Yes, I have found a work around, as I was preparing this mail. Notice, the use 
of location!
What I would want is to leave location=top in the setup. 

Thanx for any help.

regards
Keith.

MWE:
\useMPlibrary [txt]

\input {Nassi.tex}

\defineframed[MyBoxit][framed]
\setupframed[MyBoxit]
[%background=Statement,%
 frame=none,%
 width=10cm,%
 align=right,%
 location=top,%
 framecolor=yellow,%
 rulethickness=2pt,%
 %backgroundcolor=white,%
 strut=no,%
 heigth=fit,%
 offset=0pt,
 frameoffset=0pt,
 depth=0pt,
 top=,
 backgroundoffset=0pt%
]
  
\defineoverlay[MyBoxit][MyBoxit]

\starttext

Here is the First Problem\par
\MyBoxit[width=10cm]
{
\Statement{First Statement}
\Statement{Second Statement}
}

\crlf
With a \% after the opening brace no problem! \par
\MyBoxit[width=10cm]
{%
\Statement{First Statement}
\Statement{Second Statement}
}
\crlf

Second problem:\par
How do I avoid added space!\par

\MyBoxit[width=10cm]
{%
\IfStatement{$\frac{(x  y)}{z} \gt gh$ OR $x \neq z$ AND \| \\ $z ≥ 2$ AND $z  
2$}
\MyBoxit[width=10cm]{%
\MyBoxit[width=5cm]{%
\Statement{First Left}
\Statement{Second Left}
}%
\MyBoxit[width=5cm]{%
\Statement{On the right want to be moved up} 
}
}
\Statement{Third}
}
\crlf
Should look like this\par
\MyBoxit[width=10cm]
{%
\IfStatement{$\frac{(x  y)}{z} \gt gh$ OR $x \neq z$ AND \| \\ $z ≥ 2$ AND $z  
2$}
\MyBoxit[width=10cm, location=]{%
\MyBoxit[width=5cm, location=top]{%
\Statement{First Left}
\Statement{Second Left}
}%
\MyBoxit[width=5cm, location=top]{%
\Statement{On the right want to be moved up} 
}
}
\Statement{Third}
}

\stoptext



NassiTest.pdf
Description: Adobe PDF document


Nassi.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Help understanding framed!

2013-05-20 Thread Keith J. Schultz
Hi Wolfgang,

Thanx for the pointer I have downloaded.

As I do not no how framed is actually implemented, I am not sure it will help 
much.

One of the reason I used LaTeX, then XeLaTeX, then LuaLaTeX, and now ConTeXt is
because I do not grock TeX. 

I realized by misusing the framed environment and metafun I could achieve 
what I need
without a lot of calculations. I already have a similar module for LuaLaTeX 
using TikZ, but
I can get more milage levagering framed.  

Right, now I working out the visual representation and will develop and 
interface so that 
that the user does not need to worry about finer parts of the context syntax.

regards
Keith.


Am 20.05.2013 um 22:01 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com:

 
 Am 20.05.2013 um 21:28 schrieb Keith J. Schultz keithjschu...@web.de:
 
 Hi Everybody,
 
 I am trying to develop a module for writing Nassi-Schneidermann-Diagrams.
 
 I thought I would use framed and metafun. But, I have run into, for me at 
 least,
 strange behaviour. I have given MWE and attach the result and a second file 
 which is required.
 
 What I do not understand is why the first line after \MyBoxit is indented 
 (see source and result below).
 
 The second is why when I nest \MyBoxit do I get extra vertical space?
 
 Yes, I have found a work around, as I was preparing this mail. Notice, the 
 use of location!
 What I would want is to leave location=top in the setup. 
 
 I suggest to read chapter 8 in Einführung in TeX [1], a german book about 
 plain TeX
 because basic knowledge about boxes can help a lot in your case.
 
 [1] http://www.ruhr-uni-bochum.de/www-rz/schwanbs/TeX/
 

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

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] MPLibrabray txt broken!?

2013-05-15 Thread Keith J. Schultz
Hi Hans,Am 14.05.2013 um 19:57 schrieb Hans Hagen pra...@wxs.nl:On 5/14/2013 2:23 PM, Keith J. Schultz wrote:Hi All, Hans,I want to use build_parshape and shapetext with the latest standaloneConTeXt ver: 2013.05.12 22:16 MKIV beta fmt: 2013.5.13 int:english/englishwith the Example below I get a small box with the top part of a T in it.Interresting enough the example works with the TexLive 2012 version!	[snip, snip]So something is astray! I do know that we are using a newer Metapost, butI assume the problem is the library or how the temporary files are generatedor used.some kind of initialization issue .. i uploaded a fix (crossed fingers)	Well, the fix work in a way , yet it has introduced a new problem,	or revealed an unnoticed one.		The text is now display in the shape, yet there is no drawing preformed!	The draw of the path is no preformed.	It is even worst. Metapost seems to be doing no drawing at all, even in over	overlays! The all are related to a similar error :metapost initializing number mode 'scaled'metapost output file 'mpout.log', mode 'w', ftype 'log'metapost output file 'test2-mpgraph.mpd', mode 'w', ftype 0metapost output file 'test2-mpgraph.mpd', mode 'w', ftype 0metapost error: (/Users/quayjay/context/tex/texmf-context/metapost/context/base/mp-text.mpiv) PageFraction false! Equation cannot be performed (numeric=boolean).to be read again :* ...0pt; VSize:=597.51323pt; PageFraction:=01: (1-1)/(0-1)else:1fi; defau...! Extra tokens will be flushed.to be read again :* ...0pt; VSize:=597.51323pt; PageFraction:=01: (1-1)/(0-1)else:1fi; defau...	I have attached the complete log file and the source.	The error occurs, also, when the graphic is framed and put into a picture	environment.		I had deleted the standalone version and reinstalled with:	sh ./first-setup.sh --modules=all --engine=luatex	I have running a MacBook Pro 17" with OSX 10.8.3	I will also attach the result(test2.pdf) and the result from TexLive 2012(expected.pdf).regards	Keith.

test2.tex
Description: Binary data


test2.log
Description: Binary data


test2.pdf
Description: Adobe PDF document


expected.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] MPLibrabray txt broken!?

2013-05-15 Thread Keith J. Schultz
Hi Hans,

I had updated around 2100 last night. 
Did not catch your upload after 2300.

Sorry.

Am 15.05.2013 um 13:04 schrieb Hans Hagen pra...@wxs.nl:

 On 5/15/2013 12:15 PM, Keith J. Schultz wrote:
 
 O.K. just rebuilt formats!
 
 i had that already fixed last night so you probably missed an upload
 
 Hans
 

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

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] MPLibrabray txt broken!?

2013-05-14 Thread Keith J. Schultz
Hi All, Hans,

I want to use  build_parshape and shapetext with the latest standalone
ConTeXt  ver: 2013.05.12 22:16 MKIV beta  fmt: 2013.5.13  int: english/english

with the Example below I get a small box with the top part of a T in it.

Interresting enough the example works with the TexLive 2012 version!

Running with latest standalone the following files are created: 
-rw-r--r--  1 staff  14410 14 Mai 13:59 test2.log
-rw-r--r--  1 staff   5132 14 Mai 13:59 test2.pdf
-rw-r--r--  1 staff634 14 Mai 13:59 test2.synctex.gz
-rw-r--r--@ 1 staff899 14 Mai 13:37 test2.tex
-rw-r--r--  1 staff   8413 14 Mai 13:59 test2.tuc

Using MkIV from TeXLive 2012 the following files are created:
-rw-r--r--  1 staff561 14 Mai 14:09 test2-mpgraph.mpd
-rw-r--r--  1 staff  19404 14 Mai 14:09 test2.log
-rw-r--r--  1 staff   9638 14 Mai 14:09 test2.pdf
-rw-r--r--  1 staff   3237 14 Mai 14:09 test2.synctex.gz
-rw-r--r--@ 1 staff899 14 Mai 13:37 test2.tex
-rw-r--r--  1 staff   6079 14 Mai 14:09 test2.tuc

And all is well!

Goofy as I am I tried the standalone again, this works only
partially because the text is not aligned properly.
How can it be the file test2-mograph.mpd was used from the TexLive 2012
version!

So something is astray! I do know that we are using a newer Metapost, but
I assume the problem is the library or how the temporary files are generated
or used.

Any help would be nice.

regards
Keith.

\useMPlibrary[txt]

\startuseMPgraphic{shape}
  % Shape of the paragraph
  path p ; p := ((0,1)..(-1,0)..(1,0)--cycle) scaled 5cm ;

  build_parshape
  ( p, % shape path
   .5*\baselinedistance,  % offset
   .5*\baselinedistance,  % x offset
   .5*\baselinedistance,  % y offset
   \baselinedistance, % distance between lines
   \strutheight,  % height of a line
   \strutdepth,   % depth of a line
   \strutheight   % height of the first line
  ) ;

  % For visualization purposes only
  draw p ;
\stopuseMPgraphic

% For visualization purposes only
\defineoverlay[shape][\useMPgraphic{shape}]

\setupshapetexts%
  [bodyfont=10pt]

\starttext
\startshapetext[shape]
  \input knuth \endgraf
\stopshapetext


% The \type{background} is set only to visualize the parshape
\startTEXpage[background=shape,offset=2mm]
{\getshapetext}
\stopTEXpage
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Automatic replacement?

2013-05-03 Thread Keith J. Schultz
HI Everybody,

If I remember correctly Lua is not rl-compatible. There the below code can not 
work!

regards
Keith.

Am 03.05.2013 um 17:20 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Thanks luigi, but it does not work for my characters, see here:
 
 \definefont[tradoa][name:trado*arabic at 20pt] % or 
 file:amiri-regular.ttf*... file:alq.ttf
 \directlua{ local function replace_txt (buffer)
 buffer=string.gsub(buffer,اللهِ,اللَّـه) return buffer end
 callback.register(process_input_buffer,replace_txt)
 }
 \starttext
 my text {\setupalign[r2l] \tradoa اللَّـه}
 \stoptext
 
 trado ist just the font traditional arabic, nearly every system have it, 
 so you should be able to compile this. It does not replace the character.
 
 Huseyin
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] Offset MP text with font change

2013-04-28 Thread Keith J. Schultz
Hi All,

can someone explain to me why loading a file/typescript is producing spaces

If the code that does load the file/s produced spaces for debugging purposes 
that is
fine, but should not they actually going somewhere else? Then with a decent 
message!?

Personally, I find it a bug if loading fonts or other files produces extraneous 
 characters!

regards
Keith.

Am 28.04.2013 um 20:04 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com:

 
 Am 28.04.2013 um 19:56 schrieb Marco Patzer home...@lavabit.com:
 
 Hi,
 
 why is the second line right-aligned in the following example?
 
 
 The first you use the iwona font in your document context has to load the 
 typescript
 for it from a external files which produces a lot of spaces in the text. When 
 you load
 the font at the begin of the document with
 
  \usetypescriptfile[iwona]
  \usetypescript[iwona]
 
 this doesn’t happen 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Offset MP text with font change

2013-04-28 Thread Keith J. Schultz
Hi Marco, All,

agreed you can avoid the spaces by putting the usetypescript in the preamble,
but should not the loading of a typescript not bleed any spaces!

regards
Keith.

Am 28.04.2013 um 22:03 schrieb Marco Patzer home...@lavabit.com:

 On 2013–04–28 Keith J. Schultz wrote:
 
 can someone explain to me why loading a file/typescript is
 producing spaces
 
 The typescripts themselves are full of spaces and new lines. And you
 really want those spaces for readability. TeX usually squashes
 multiple spaces into one, but spaces still matter in many
 circumstances, e.g. within an \hbox.
 
 If the code that does load the file/s produced spaces for
 debugging purposes that is fine, but should not they actually
 going somewhere else?
 
 There's no code that produces spaces. The spaces are in the
 typescript file.
 
 Personally, I find it a bug if loading fonts or other files
 produces extraneous  characters!
 
 This is usually not a problem, since typescripts are loaded in the
 setup area. Even when loaded within the text area the spaces don't
 cause problems. Loading an entire file within a box, like I did in
 the example, is an unusual edge-case and there's a simple
 workaround, see Wolfgangs answer.
 
 Except if there's an easy fix for that, I'm personally fine knowing
 where the spaces are coming from and how to prevent them, which I do
 now.
 
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


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

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


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

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

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

regards
Keith.

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

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

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

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

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

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

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

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

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

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


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

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

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

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

regards
Keith.

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

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

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

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


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

2013-04-26 Thread Keith J. Schultz

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

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

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

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

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

For me this discussion has gone far enough.

regards
Keith



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

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


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

2013-04-25 Thread Keith J. Schultz
Hi Wolfgang, All,

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

Now, to my actual question.
Is there a way in ConText to selectively true certain ligatures on/ff.
for example fl could be on, but fi off. 

I know that I can set up the the editor to do it, or use unicode directly, but
would prefer ConText to do the work.

regards
Keith.

Am 24.04.2013 um 10:51 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com:

 
 Am 24.04.2013 um 10:39 schrieb H. Özoguz h.oezo...@mmnetz.de:
 
 Hi,
 
 \usemodule[simplefonts]
 \setmainfont[AGaramondPro]
 \starttext
 Amficool
 \stoptext
 
 gives an i without dot, see attachment. And the letters i and f are 
 curiously bonded.
 
 The second attachment shows the same word written in MS-Word, again with 
 Adobe Garamond Pro, without this curiosity. Where this comes from and how to 
 fix?
 
 This is a ligature [1], you can disable ligatures when you add
 
  \definefontfeature[default][default][liga=no]
 
 before \setmainfont.
 
 [1] http://en.wikipedia.org/wiki/Typographic_ligature
 
 Wolfgang

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

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

Re: [NTG-context] ConText on webspace

2013-04-22 Thread Keith J. Schultz
Hi Janis,

ConText can run on a server, and therefore on a web-server.

Your problem would be getting 1und1 allowing for you to install the binaries.
I would suggest you mail 1und1 and ask them if you can do that.
You might need to switch your contract inorder to do that.

Hope this helps
Keith.

Am 19.04.2013 um 21:17 schrieb Jan Heinen jahei...@gmx.de:

 Is it possible to instal and runl ConText on webspace?
Which requirements and limitations are needed?
 
  define webspace
 
 
 I have webspace hosted at the german provider (1und1) where my homepage is 
 running.
 It contains php, perl, python, mysqld.
 
 I have access via
 - ssh
 - ftp
 
 It's NOT a managed server - there are lot's of other customers on the same 
 server.
 
 Is this enough for your answer or which else information do you need?
 
 Regards
 Janis
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] Test

2013-04-12 Thread Keith J. Schultz
Hi All,

Sorry for the noise. For some reason I am have been recieving
mail from this list.

regards
Keith.

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

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


Re: [NTG-context] upto current

2013-03-25 Thread Keith J. Schultz
Hi Bill,

Am 22.03.2013 um 15:19 schrieb Bill Meahan subscribed_li...@meahan.net:

 On 03/22/2013 03:31 AM, Keith J. Schultz wrote:
 Hi All,
 
 Maybe, we could setup a collaborative work group to do the documentation.
 
 That is a group of us are responsible for certain groups of commands. This 
 way
 the manuals can become more complete. That way some of the more advance
 stuff that is hardly documented finally gets documented.
 
 What we would need is a specification for:
   [snip]
 In 45+ years of programming[1] it has never ceased to amaze me how the wheel 
 has to be reinvented for every new system whether language, macro package or 
 whatever. Why do it again? Why not adopt some documentation system that is 
 already widely-used and for which infrastructure and knowledge of use is 
 already in place?

I agree with your statement fully. Specification is a loaded word, too!
What I was trying to say that we need convention how things are to be 
laid out!
Setting up, maybe, a module to facilitate a common look. Otherwise the 
manuals
will be a mess of styles and clarity. 
 
 I have no investment in any particular system. I'm happily generating other 
 types of non-computer-related documents using reStructuredText since I can 
 easily convert that various publication formats as required without separate 
 source files for each format. It seems to me docutils has everything that 
 would be needed to document ConTeXt and is very widely used given the 
 popularity of Python (which makes me cringe). If doxygen or something else 
 would work better, so be it. The point is, **use something that exists 
 instead of expending time and effort reinventing the wheel yet again!**
I was thinking of using ConTeXt!
 
 [1] I was, am and will be a programmer and not a software developer or 
 software engineer. The term adequately depicts what I did/do while the 
 others are simply too pretentious. Find the old article Real Programmers 
 Don't Use Pascal in an archive somewhere -- I've been a real programmer 
 and I suspect Hans is, too. :)
 
 Sorry for the rants but it is so frustrating to have to install so many 
 different language support and documentation systems simply because I use 
 FOSS tools exclusively.
No Problem.

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

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


Re: [NTG-context] command reference (was: upto current)

2013-03-25 Thread Keith J. Schultz
Hi Peter, All,

Sorry for the late reply.

As such looks good!

I have no preferences, as to the formats, that is something
the community or those involved should decide.

regards
Keith.
  
Am 22.03.2013 um 09:26 schrieb Peter Münster pmli...@free.fr:

 Hi Keith,
 
 What about one lua table per command?
 See also:
 - http://meeting.contextgarden.net/2010/talks/2010-09-14-peter-referencelua/
 - http://thread.gmane.org/gmane.comp.tex.context.devel/1507
 - https://foundry.supelec.fr/scm/viewvc.php/context-commands/?root=contextman
 

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

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] command reference (was: upto current)

2013-03-25 Thread Keith J. Schultz
Hi All,

I agree that for the command reference should be fairly output format free,
but we have to keep in mind we will need a unified look for:
1) Wiki
2) PDFs

Also, we should not forget that we need examples with explanations.

regards
Keith.

Am 22.03.2013 um 17:07 schrieb Sietse Brouwer sbbrou...@gmail.com:

 Peter wrote:
 What about one lua table per command?
 See also:
 - http://meeting.contextgarden.net/2010/talks/2010-09-14-peter-referencelua/
 
 NB1: I waffled a lot about wiki templates in the previous e-mail, but
 of course it is also an option to use the Lua tables format and store
 those files on the wiki. That gives us the visibility and editability
 of the wiki without binding us to the wiki template format.

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

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

2013-03-22 Thread Keith J. Schultz
Hi All,

Maybe, we could setup a collaborative work group to do the documentation.

That is a group of us are responsible for certain groups of commands. This way
the manuals can become more complete. That way some of the more advance
stuff that is hardly documented finally gets documented.

What we would need is a specification for:
1) how the command and its parameters are portrayed
2) full description of defaults values and their effects and side 
effects
3) general intention of the command its parameters
4) MWEs describing the standard use of all parameters
5) MWEs for non standard use (Advanced technics)
6) standrad way for referencing other commands

If everybody follows the conventions we can then combine all the parts to a 
comprehensive manuals. They will work as a reference and tutorial. 

When something new is introduced the group is informed and can update their
subject(s). 

I would be willing to help. Any other takers?

regards
Keith.


 
Am 21.03.2013 um 15:26 schrieb Marcin Borkowski mb...@wmi.amu.edu.pl:

 Dnia 2013-03-21, o godz. 11:32:01
 Alan BRASLAU alan.bras...@cea.fr napisał(a):
 
 On Thu, 21 Mar 2013 11:19:24 +0100
 Mojca Miklavec mojca.miklavec.li...@gmail.com wrote:
 
 Marcin wasn't talking about organizing the wiki page, but about
 writing up-to-date and complete manuals (in PDF) which is nearly
 impossible with the speed that Hans keeps developing ConTeXt ;).
 
 Unless we find funding somewhere to assign someone sufficiently
 competent to work full-time for Hans just to write and maintain
 documentation.
 
 This is not a bad idea if only we could get it sponsored...
 
 I have an impression that I heard about something similar to GSoC, but
 for writing docs...
 
 Also, it might not need a full-time job, even if you want to keep up
 with Hans' speed.  And even a good free book on, say, a snapshot of
 ConTeXt from some point in time (later than official manuals) would be
 useful.
 

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

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

2013-03-20 Thread Keith J. Schultz
Hi Hans, All,

I find this nomenclature confusing and a little confusing from a design 
standpoint!

1)  Color of the text background should be separate from the rest
  of the cell background

2) the names should reflect to what they apply

That said we should have:
CTBGC == Cell text background color
CTC  == Cell text color

CBGC == Cell background color 
  or
 CC  == Cell color

CBGCR   == Cell background color in the space right of text
CBGCM  == Cell background color in space middle of cell( above below 
text)
CBGCL   == Cell background color in the space right of text

True, these are a lot of options/parameters, yet it offers the most flexibility 
and
a cleaner interface. Furthermore, one can understand the names of the 
parameters.

Another, advantage is that one could and at a later point a feature for 
inverting the
color of the text according cell color and/or text background color.

regards
Keith.

Am 19.03.2013 um 23:46 schrieb Sietse Brouwer sbbrou...@gmail.com:

 i.e. we already had CL CM and CR, so CT is new .. should be wikified.
 
 The wiki [1] describes these \C* commands:
 
 \CRcolor is applied to the background of the text and the remaining
 space on the right;
 \CCcolor is applied to the background of the text only;
 \CMcolor is applied to the background of the text and the remaining
 space on both sides;
 \CLcolor is applied to the background of the text and the remaining
 space on the left.
 
 [1] http://wiki.contextgarden.net/Tabulate
 
 What does CT do differently than CC? It's not quite clear from the example.
 
 Cheers,
 

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

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

2013-03-20 Thread Keith J. Schultz
Hi Hans, All,


The biggest crux in using ConTeXt is its documentation.
True, things have gotten a lot better in the past year!

Yet, there is no ONE definitive place to get comprehensive
and EASY to find documentation. 

1) Garden is really not that easy to navigate
2) Garden is loaded with a mixture of mkii and mkiv
and it is not always clear if the page one is on is for
mkii or mkiv or quite outdated.

3) PRAGMA does have up to date manuals.
4) These manuals are quite unfinished in many parts,
 as are all many of the older manuals.
   
 Very frustrating

5) The newer manuals should be part of the standalone.
 ( I hate going online to look for a manual when it
   should be installed already)

6) Reference manuals are fine for the advanced user, but for
the beginner or intermediate they are not much help.
Especially, if if one does not understand TeX, or Typesetting,
and one really does not need to use all those options.

My suggestion would be to have garden have a manuals download
area where one can get the up to date manuals from Pragma and
where one can discern how old the others are. It should be also, easy to find.

regards
Keith.   
  

Am 19.03.2013 um 19:16 schrieb Hans Hagen pra...@wxs.nl:

 Hi,
 
[snip, snip]
 Then there are the documents:
 
 - Update the xml descriptions (Wolfgang has been working on this, and there 
 is the wiki).
 
 - Finish the 'cld' manual (mostly done).
 
 - Update the 'xml' mkiv manual (doable, maybe users have examples too).
 
 - Finish the updated 'mathml' manual (done but needs checking but then I 
 might overhaul the whole lot again).
 
 - Finish the more technical 'mkiv font' manual (tedious job but okay).
 
 - Pickup the 'stylistics' manual (also nice to do but a bit tedious). 
 
 - Turn 'hybrid' into a more finished document (the second part of the history 
 of mkiv/luatex).
 
 - Add more to the 'about' series (the third part).
 
 Of course this is too ambitious but it's good to remind myself that some work 
 needs to be done. And ... users might have ideas of what needs to be done as 
 well.
 
 Hans

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

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

2013-03-20 Thread Keith J. Schultz
Hi All,

Am 20.03.2013 um 07:05 schrieb Otared Kavian ota...@gmail.com:

 
 On 19 mars 2013, at 19:47, Aditya Mahajan adit...@umich.edu wrote:
 
 […]Although most active users use ConTeXt standalone and are willing to 
 update frequently, TL still plays an important role in introducing new users 
 to ConTeXt. An experienced TeX user who wants to try ConTeXt is more likely 
 to try ConTeXt distributed as part of TL rather than ConTeXt standalone. 
 When there are serious bugs with ConTeXt TL, it gives the impression that 
 ConTeXt is not a mature macro package.
 
 Hi,
 
[snip, snip]

 For my part I have been advocating ConTeXt among my colleagues (especially 
 for course materials and books, since submitting a paper to a journal is 
 essentially impossible if it is a ConTeXt file). Most of them agree that 
 ConTeXt gives a much better result, but when it comes to how to use ConTeXt 
 from TeXLive they are afraid and don't go further. For some of them I have 
 installed a stand alone ConTeXt, but most of them do not update their 
 installation, since they would not use the most recent features or 
 improvements (for most of day to day typesettings, when one does not use 
 complexe features, even a beta version is sufficiently stable for such users).


I find it interesting, that here and in other posts that is mention that 
publishers are reluctant 
to accept ConTeXt files. O.K. Understandable!

But, my experience has been that they will accept PDFs, or prefer PDF over
TeX-source files or Word files.

regards
Keith.

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

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


Re: [NTG-context] upto current

2013-03-20 Thread Keith J. Schultz

Am 20.03.2013 um 09:25 schrieb Marcin Borkowski mb...@wmi.amu.edu.pl:

 Dnia 2013-03-20, o godz. 09:12:21
 Keith J. Schultz keithjschu...@web.de napisał(a):
 
 
[snip, snip]
 My suggestion would be to have garden have a manuals download
 area where one can get the up to date manuals from Pragma and
 where one can discern how old the others are. It should be also, easy
 to find.
 
 regards
  Keith.   
 
 That is quite true, though not that easy.  In essence, I think someone
 would have to be paid for tracking the mailing list and updating
 manuals.  AFAIK, Sietse does a great job updating the wiki, but the
 wiki is not necessarily the easiest thing to go to for newbies (as you
 have noticed).
 
 It is quite obvious for me that Pragma won't fund such an enterprise
 (not that I'm claiming it should - of course not!).  I think the only
 body which might do it is either TUG, either some other UG - but then, I
 guess they are already funding LaTeX3 (which is kind of a competitor -
 albeit friendly - to ConTeXt), either font projects (TeX Gyre!), which
 are quite beneficial to the ConTeXt ecosystem, too.

I do not get you here. 
Garden just needs a little redesigning or more correctly cleaning up.
 I see no need for funding.
I am not into wikis or I would offer to do it. 

regards
Keith.

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

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

Re: [NTG-context] Bug in \column

2013-03-20 Thread Keith J. Schultz
OOOsss!

Do I have to kill myself! ;-)))

Would like to have a reference for this kind of stuff!

regards
Keith.

Am 20.03.2013 um 10:40 schrieb Hans Hagen pra...@wxs.nl:

 
 For Wolfgangs eyes only:
 
 \installcolumnbreakmethod \s!multicolumn \v!yes
  {\penalty\c_page_mix_break_forced\relax}
 
 Maybe that one works ok.
 

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

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] Subjects on this list - general request

2013-03-20 Thread Keith J. Schultz
Hi Robert,

I see no advantage in your suggestion. just search the subject.

As for the [***Spam***] that is inroduce by mail servers. A user should maybe 
remove
it to avoid it. But a nuisance, yes, a problem no.

regards
Keith.

Am 20.03.2013 um 16:12 schrieb Robert Blackstone blackstone.rob...@gmail.com:

 Dear all,
 Considering all complaints about the difficulties to find, in the Garden, or 
 in the NTG mail archive,  answers to specific problems, wouldn't it be a good 
 idea to ask everybody to clearly state the subject of their message, 
 preferably starting with the most important keyword, and in particular to 
 avoid (no subject) or [***SPAM***], and similar things as subjects.
 Also, if you forgive me,  subjects like upto current or Bug in \column 
 are not really helpful when on tries to search in the archive for a solution 
 to a specific problem. In the last-mentioned example, wouldn't \column, Bug 
 in -  or even \column, Bug in \column be better? 
 More specific subject titles in the mails might save some of us hours of 
 unfruitful searching and lots of teeth grinding.
 This is probably not the first request on this topic but, if so, I thought it 
 would do no harm to repeat it.
 
 Thanks in advance.
 
 Best regards,
 
 Robert Blackstone
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] TOC: Chapters with and without page-numbers

2013-03-15 Thread Keith J. Schultz
Hi,

I could find any options to do what you want.

I assume you would have to redefine completecontent command to get
the functionality you need.

I have not checked, but I assume that completecontent accesses a Lua-table
with the TOC information. It should be easy enough to use this table to create
the effect you want.

regards
Keith.

Am 15.03.2013 um 07:46 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Maybe I have not made it clear, what I mean?
 
 My Minexample is:
 
 \setuplist[chapter][pagenumber=no]
 \starttext
 \completecontent
 \chapter{Chapter 1}
 \section{Section 1}
 \chapter{Chapter 2}
 \stoptext
 
 Now Chapter 1 is without pagenumber in the TOC, correct, because it has a 
 section after the chapter-title! But Chapter 2 has no sections, so it need a 
 page number, how to do that?

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

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

2013-03-14 Thread Keith J. Schultz
Hi All,

following this thread and with my beginners knowledge of
ConTeXt, I would say that div or container from RST should
be mapped to a combination in ConTeXt. 
Though I do admit that I have not looked into combinations
yet.

regards
Keith.

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

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


Re: [NTG-context] [***SPAM***] File access for sourc, graphic, and pictures

2013-03-11 Thread Keith J. Schultz
Hi All,


Am 08.03.2013 um 09:02 schrieb Marco Patzer home...@lavabit.com:

 On 2013–03–08 hwit...@gmail.com wrote:
 
 I am just learning ConTeXt, so please bare with me.  In all of the
 documentation that I've read so far, it shows the names of
 imported photographs, graphs, blocks, etc as a simple filename
 without any filename extensions or pathnames.
 
 Avoid hard coded path names in your files, it makes them less
 portable. ConTeXt adds the file name extension automatically,
 there's usually no need to specify it manually.

IMHO, I would disagree. That is, using hardcoded full paths breaks portability.
The trick is using relative paths! In other words using paths ./dir/file or 
../dir/file
is very portable. 

Furthermore, using relative paths helps finding the files, especially for larger
projects or with collaborative work. Thats is for editing.

Please, do not get me wrong, using the theproject environments does have 
its caveats.

regards
Keith.


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

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


Re: [NTG-context] \| should give two || and not one

2013-02-19 Thread Keith J. Schultz
Hi Mikeal,


Am 19.02.2013 um 10:50 schrieb Mikael P. Sundqvist mic...@gmail.com:

 On Tue, Feb 19, 2013 at 10:29 AM, Hans Hagen pra...@wxs.nl wrote:
 
[snip, snip]

 a next step (already partially done) is that we organize the names in
 dictionaries as in open math (a bit of work)
 
 
 Me, I prefer names that reflect the their functions,
 
 
 me too and i wonder if we should have proper names as well i.e. use verbose
 names as default (in char-def.lua) and define the short ones as synonyms (in
 a tex file)
 
 Hans
 
[snip, snip]

 Fine. In principal I've nothing against typing || for double bars
 (even though people moving from TeX/LaTeX probably will be used to |
 for one bar and \| for two bars). Some questions:
 
 * Can one expect to get the right (that is the same as \Vert gives)
 spacing by typing || (two bars) in ConTeXt in the future?
I think we need to find a between input shortcuts and 
feasiblity. One could just use unicode 02016 and \Vert.
In unicodemath you also have \Vvert for three bars.

 * Sometimes one would like to write absoulte value of z times absolute
 value of w, i.e. |z| times |w|. What if one writes |z||w|, will the
 double bar in the middle be equivalent to \Vert? (That is not wanted)
The proper way to lay this out is with a little whitspace between
the to values, so input should be |z| |w| and not as |z||w| !

 * Will it be possible to write \Bigl|| and \Bigr|| to scale both bars
 to other sizes?
 * What if one would like to have three bars with the same spacing
 between the bars as in \Vert?
See above!

regards
Keith.

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

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


Re: [NTG-context] \| should give two || and not one

2013-02-18 Thread Keith J. Schultz
Hi All,

In a way, it is correct that for compatibility reasons and and convert
it is good to keep the old syntax.

Yet, ConTeXt is suppose to be more natural. 

Personally, I find some of the names used in TeX and LaTeX often
hard to find. Whenever, I needed a function or symbol I to often
go look it up. I mean that \vert and \Vert are still cryptic. They can stand
for abs, for all in, etc. ..

Me, I prefer names that reflect the their functions, 

regards
Keith.

Am 18.02.2013 um 10:51 schrieb Mikael P. Sundqvist mic...@gmail.com:

 On Mon, Feb 18, 2013 at 10:42 AM, luigi scarso luigi.sca...@gmail.com wrote:
 On Mon, Feb 18, 2013 at 10:23 AM, Mikael P. Sundqvist mic...@gmail.com 
 wrote:
 Indeed, luigi, but is that what you expect?
 Hm, hard to say for me.
 I find natural to use \vert and \Vert or, if possible, | and || .
 LaTeXt users find natural that  \| is ||, but I don't see, as a ConTeXt
 user,  a particular meaning in \| .
 
 
 I think that since \| is defined as \Vert in the TeXbook and everyone
 writing mathematics in LaTeX are used to \| to mean \Vert there is no
 reason to have different behaviour in ConTeXt.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Failing MPruns

2013-02-14 Thread Keith J. Schultz
Hi Marco,

It is not much, but I do see it.

Maybe around a tenth of a millimeter is missing! just a guess.

Looking closer the top is, also clipped! 

regards
Keith

Am 14.02.2013 um 09:23 schrieb Marco Patzer home...@lavabit.com:

 On 2013–02–14 Keith J. Schultz wrote:
 
 with your example below I noticed that the red circle is not
 quite in the graphic. it seems to be clip on the right!
 
 It's fine on my machine, or maybe I just don't see it.
 
 Marco
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] Alignment problem with labels and textext

2013-02-13 Thread Keith J. Schultz
Hi Lutz,

With
This is LuaTeX, Version beta-0.74.0-2012122517 (rev 4541) 
ConTeXt  ver: 2013.02.05 22:32 MKIV  fmt: 2013.2.9  int: english/english

Things look fine. Actually, without textext the left and right seem to be 
aligned 
on the baseline. Where with textext it is aligned in the middle of the text, 
which
I find to be the correct way. 

regards
Keith



Am 13.02.2013 um 06:54 schrieb Lutz Haseloff lutz.hasel...@gmail.com:

 Hi Hans, hi all,
 
 with the most recent ConTeXt
 (This is LuaTeX, Version beta-0.75.0-2013021110 (rev 4576)
 ConTeXt  ver: 2013.02.05 22:32 MKIV  fmt: 2013.2.11  int: english/english)
 there is an alignment problem with labels using textext.
 Labels without textext work ok.
 
 Small example showing the problem:
 
 -
 \starttext
 \startMPpage
 pickup pencircle scaled 1mm ;
 path p ; p := fullcircle scaled 3cm ;
 draw p withcolor .625yellow ;
 label.rt (textext(right) , point 0 of p) ;
 label.top (textext(top) , point 2 of p) ;
 label.lft (textext(left) , point 4 of p) ;
 label.bot (textext(bottom) , point 6 of p) ;
 \stopMPpage
 \startMPpage
 pickup pencircle scaled 1mm ;
 path p ; p := fullcircle scaled 3cm ;
 draw p withcolor .625yellow ;
 label.rt (right , point 0 of p) ;
 label.top (top , point 2 of p) ;
 label.lft (left , point 4 of p) ;
 label.bot (bottom , point 6 of p) ;
 \stopMPpage
 \stoptext
 -
 
 Greetings
 
 Lutz
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] Alignment problem with labels and textext

2013-02-13 Thread Keith J. Schultz
Hi Lutz,

Just updated, to make sure I have the latest.

I see the problems. 
top  bottom labels are not centered correctly
bottom label not low enough
left and right labels are not aligned at the same height

Sorry, no ansers.

regards
Keith.

Am 13.02.2013 um 11:11 schrieb Lutz Haseloff lutz.hasel...@gmail.com:

 Hi Keith,
 
 following testfile perhaps describes my problem better:
 
 \starttext
 \startMPpage
 drawdot (origin);
 label.rt (textext(right) , origin) ;
 label.top (textext(top) , origin) ;
 label.lft (textext(left) , origin) ;
 label.bot (textext(bottom) , origin) ;
 \stopMPpage
 \stoptext
 
 If i run it by texexec(mkii), all is ok, with context(mkiv) the labels 
 overlap.
 
 I try to add the problematic mkiv pdf.
 
 Greetings Lutz
 
 
 2013/2/13 Keith J. Schultz keithjschu...@web.de
 Hi Lutz,
 
 With
 This is LuaTeX, Version beta-0.74.0-2012122517 (rev 4541) 
 ConTeXt  ver: 2013.02.05 22:32 MKIV  fmt: 2013.2.9  int: english/english
 
 Things look fine. Actually, without textext the left and right seem to be 
 aligned 
 on the baseline. Where with textext it is aligned in the middle of the text, 
 which
 I find to be the correct way. 
 
 regards
   Keith
 

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

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

Re: [NTG-context] Failing MPruns

2013-02-13 Thread Keith J. Schultz
Hi Hans, All,

with your example below I noticed that the red circle is not
quite in the graphic. it seems to be clip on the right!

Just mentioning this.

regards
Keith.

Am 13.02.2013 um 17:54 schrieb Hans Hagen pra...@wxs.nl:

 On 2/13/2013 1:39 PM, Marco Patzer wrote:
 Hi,
 
 The following used to work:
 
 \startMPrun{foo}
   beginfig(1);
 fill fullcircle scaled 1cm;
   endfig;
 \stopMPrun
 
 \starttext
   \externalfigure [mprun:foo.1] [width=4cm]
 \stoptext
 
 now I get:
 
 fixed ... also added . instead of : support as mprun: is a prefix and doesn't 
 mix well with other prefixes (schemes)
 
 \starttext
 
\startTEXpage
 
\startMPrun{foo}
beginfig(2) ;
fill fullcircle scaled 1cm withcolor blue ;
endfig ;
beginfig(1) ;
fill fullcircle scaled 2cm withcolor red ;
endfig ;
\stopMPrun
 
\startMPrun
beginfig(6) ;
fill fullcircle scaled 15mm withcolor green ;
endfig ;
\stopMPrun
 
\startoverlay
{\externalfigure [mprun.foo.1]}
{\externalfigure [mprun.6]}
{\externalfigure [mprun:foo.2]}
\stopoverlay
 
\stopTEXpage
 
 \stoptext
 
 beta later
 
 -
  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
 ___

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

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] Possible inconsistency in the use of paragraphs in ConTeXt

2013-02-01 Thread Keith J. Schultz
Hi Wolfgang,

I do apologize.

ConTeXt, does have the functionality that I was suggesting.
I must say though that it seems just 2-3 weeks young and
searching for the command defineparagraph brings up
Nil on ConTeXt Garden. Thank, you for the example.

Yet, is not quite what I had in mind. But, that does not matter for right now.
Hans already said it is non trivial to get the functionality of what 
I has suggest. Which was to introduce the concept of a paragraph into
ConTeXt that TeX does not have and not have to use startparagraph and
stopparagraph all the time for a standard paragraph.

Yes, Yes, I know how to use setupbodyfont, setupdenting, and the likes
for that!

I was aware that I could develop my own environments for paragraphs

The paragraph environment does pretty much close the gap and it will be very 
beneficial 
to the beginners and converts.

Thanx to whoever did the work and to you, too.

regards
Keith.

Am 01.02.2013 um 04:58 schrieb Wolfgang Schuster wolfgang.schus...@gmail.com:

 
 Am 31.01.2013 um 23:02 schrieb Keith J. Schultz keithjschu...@web.de:
 
 Hi Wolfgang,
 
 You do seem to understand what I am getting at!
 
 I purposely put paragraph in quotes. because the environment that I have 
 suggest was
 one that had setups for bodyfont, color, indenting etc. and one can just 
 like the headers
 have control over them.

[deleted example for brevities sake]

 Furthermore, you have stated on the on the 30th:
 
 ConTeXt provides also a paragraph environment but this add only tags when 
 you export the document
 as XML or create a tagged PDF.
 
 The paragraphs (note the s) environment has a Hans already mentioned 
 nothing to do with paragraphs,
 it just puts the content on columns where each column can con tai multiple 
 paragraphs. The name
 for the environment is misleading because columns is already taken as name.
 
 Thank you anyway. I will look into creating what I need on my own. I already 
 have an idea.
 Just need to figure out the implementation.
 
 You can use \definestartsetup or \definebuffer to create your own 
 environments.

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

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

  1   2   >