Re: [NTG-context] mtx-context - extraordinarily quiet mode

2013-09-29 Thread Hans Hagen

On 9/29/2013 2:43 AM, Aditya Mahajan wrote:

On Sat, 28 Sep 2013, Thangalin wrote:


Hi,

I ran the following:

context --noconsole --batchmode --nonstopmode filename.tex

This wrote information to the console:

   This is LuaTeX, Version beta-0.76.0-2013040516 (rev 4627)
\write18 enabled.
   Underfull \hbox (badness 2401) in paragraph at lines 464--464
   ... lots more output ...
   system  | total runtime: 1.962

How do you prevent ConTeXt from writing anything whatsoever to the
console?


context --batchmode filename  /dev/null

:-)


\dontcomplain also helps

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

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


Re: [NTG-context] mtx-context - extraordinarily quiet mode

2013-09-29 Thread Hans Hagen

On 9/29/2013 6:15 AM, Thangalin wrote:

Thank you, Aditya.

I should have mentioned that I was thinking about it in terms of
optimization. Sometimes when a program's debug/logging mode is
disabled, the program executes faster. (In the old days just writing
to standard out was enough to make a program grind to a crawl.)

I could not find a wiki page on optimizing the compiler -- are there
any other tricks to making compiles faster?


batchmode can make run tex a bit faster

logging itself is already quite efficient in context

(the speed of consoles / terminals is a factor but normally one can set 
up that bit to be efficient as well - refresh delays and such)


Hans

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

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


Re: [NTG-context] PDF Transparency and ConTeXt

2013-09-29 Thread Hans Hagen

On 9/29/2013 6:59 AM, Thangalin wrote:

Hi,

I have written up a question on TeX.SE:
http://tex.stackexchange.com/questions/135543/pdf-colour-space-and-context

Aditya mentioned that the problem with transparencies is that it is
likely a known bug with Adobe Acrobat Reader: I remember similar
questions being asked in the past, and the conclusion was that it was
a known bug in Adobe Reader.

Has anyone else come across this issue and found a way to resolve it in ConTeXt?

I ran into what I think is a similar issue with LaTeX and was able to
resolve it using the following command in the preamble:

   \pdfpageattr{/Group  /S /Transparency /I true /CS /DeviceRGB}

I have not yet tried to reproduce the problem in either LuaLaTeX or LaTeX.


\setupcolors[pagecolormodel=auto]

might help

in acrobat, when transparency is used, a different route is followed (at 
least in the past) when rendering


also, rendering colorspaces might be adapted to the output medium so 
it's a combination of colorspace, monitor/paper, calibration, 
knockout/overprint, transparency groups, assumptions etc


in the end, a print on a proper device is the reference

Hans


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

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


Re: [NTG-context] PDF Transparency and ConTeXt

2013-09-29 Thread Martin Schröder
2013/9/29 Thangalin thanga...@gmail.com:
 I ran into what I think is a similar issue with LaTeX and was able to
 resolve it using the following command in the preamble:

   \pdfpageattr{/Group  /S /Transparency /I true /CS /DeviceRGB}

This should be done automagically in pdfTeX (at least it once was).

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Feedback wanted on a ConTeXt tutorial

2013-09-29 Thread Mari Voipio
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).


Thank you,

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
___


Re: [NTG-context] Feedback wanted on a ConTeXt tutorial

2013-09-29 Thread Marco Patzer
On 2013–09–29 Mari Voipio wrote:

 Inspired by some informal discussions at the recent ConTeXt meeting I
 started to write a *really* basic ConTeXt tutorial.

I'm happy to see someone willing to invest time and effort to
improve the documentation! I did neither attend the meeting, nor
take part in this discussion and I don't want to sound discouraging
in any way. But I'm not sure if it makes sense to start another
manual. ConTeXt already has plenty of manuals, including the very
short “Top 10 macro” guide:

  http://www.tex.ac.uk/tex-archive/info/context-top-ten/cmds.pdf

Then there is a medium sized manual aimed at beginners, “ConTeXt, an
excursion” (which is rather outdated, I agree)

http://www.pragma-ade.com/general/manuals/mp-cb-en.pdf

“ConTeXt, an excursion” would probably come closest to what you have
started. And then there is the main reference manual

http://pmrb.free.fr/contextref.pdf

I think the best approach is to focus on one single manual and write
it in a beginner-friendly fashion. Everything else leads to
duplicated effort and confusion. Furthermore, information scattered
in many small places is harder to keep up-to-date.

If a short beginner tutorial is required, I would suggest to create
short chapter “A jump start for the impatient” or something along
those lines and add installation instructions to the manual,
detailing the TeXlive and ConTeXt standalone installation process.
As I said, I didn't take part in the mentioned discussion, so I
might be missing out relevant information.

 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.

Some thoughts:

  1.1.1
  Unfortunately there’s no really easy way to install ConTEXt on Windows.

I never installed ConTeXt on Windows, but if this is true this
should definitely be fixed. According to

  http://wiki.contextgarden.net/ConTeXt_Standalone#Command_line_method

it should be sufficient to run

1) download the installer: 
http://minimals.contextgarden.net/setup/context-setup-mswin.zip
2) install: first-setup.bat
3) add ConTeXt to path: 
http://wiki.contextgarden.net/Windows_Installation:_ConTeXt_Suite_with_SciTe#Step_3:_Add_ConTeXt_to_Windows_search_path
   (Maybe adding the exact command or a screenshot for step 3 would
   be helpful.)

If this fails, we should work on that.

  5 Formatting text

Since you explicitly mention “The basic idea is to separate layout
from content” in sections 2.1 and 3.1 I think it's not very
educational to tell beginners to use font switches in the code:

  This is a {\ss test}. % sans serif
  This is a {\tt test}. % typewriter

Rather teach logical markup from the very beginning.

  \definehighlight
[important]
[style=bold]

  \important{This} is logical markup.

  6.3 Floats

This is arguable, but I personally would drop the (not deprecated
and still supported) MkII syntax for floats

  \placefigure
[here,force] % really try to put the float just here
{This is a cow} % Caption
{\externalfigure[cow][width=2cm]}

and replace it with the more intuitive MkIV syntax:

  \startplacefigure [title=A cow, reference=fig:acow]
\externalfigure [cow]
  \stopplacefigure

And refrain from using the [here, force] setting, otherwise
beginners will never grasp the concept of floats.

  6.4 Combinations

Also arguable, but you might consider using the newer

  \startcombination [nx=3, ny=1]
  …

syntax. It's more contextish and easier to understand, in my
opinion. Furthermore, it's not covered in any of the manuals, as far
as I know.

I hope I phrased my comments in a constructive and helpful manner.

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Repeat second-level registers within index

2013-09-29 Thread Thangalin
Thank you!

Warm regards.

On Sun, Sep 29, 2013 at 1:05 AM, Hans Hagen pra...@wxs.nl wrote:
 On 9/28/2013 12:27 AM, Thangalin wrote:

 Thank you, Hans.

 The error still seems to be present.

 Out of curiosity, what does max 4 mean? Does it limit the index
 nesting levels?


 indeed

 For my project, I require 5 nesting levels -- is that possible?


 sure, i'll jump the max to 5 (but then also have to optimize a bit as it can
 become inefficient for simple indices)

 -
   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] PDF Transparency and ConTeXt

2013-09-29 Thread Thangalin
Thank you, Hans.

The result looks amazing.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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-29 Thread Thangalin
Hi,

Some feedback:

- The introduction paragraph can be shortened. For example, tell the
reader to try the subsequent examples using ConTeXt Live web page
(as opposed to 'almost all of the examples in the series can be run
online'). On any example that does not work, indicate such at the
time.
- abt 40 euros is missing ou.
- combo should be combination.
- In Windows, In Mac, etc. can be Windows, Mac, etc.
- Use the active voice (it shortens text).
- Avoid using abbreviations and jargon.

As Marco noted, why not apply such wonderful effort to the wiki?


On Sun, Sep 29, 2013 at 8:22 AM, Mari Voipio mari.voi...@iki.fi wrote:
 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).


 Thank you,

 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-09-29 Thread Mari Voipio
On Sun, Sep 29, 2013 at 8:05 PM, Marco Patzer li...@homerow.info wrote:
 Then there is a medium sized manual aimed at beginners, “ConTeXt, an
 excursion” (which is rather outdated, I agree)

I was actually aiming at one step lower and in doing things in the
order a word processor user would approach ConTeXt. My copy of
excursion is fairly thumbed at this stage, but I still sometimes need
to use find to actually get at the things I need. So I wrote this new
one my way.


 As I said, I didn't take part in the mentioned discussion, so I
 might be missing out relevant information.

It wasn't anything major, just some off-hand sentences. I've just
written something similar for MetaPost, so this approach felt natural
and kept me amused during the travel home (including 4 hrs spent
sitting at the airport).


 I never installed ConTeXt on Windows, but if this is true this
 should definitely be fixed. According to

   http://wiki.contextgarden.net/ConTeXt_Standalone#Command_line_method

 it should be sufficient to run

 1) download the installer: 
 http://minimals.contextgarden.net/setup/context-setup-mswin.zip
 2) install: first-setup.bat
 3) add ConTeXt to path: 
 http://wiki.contextgarden.net/Windows_Installation:_ConTeXt_Suite_with_SciTe#Step_3:_Add_ConTeXt_to_Windows_search_path
(Maybe adding the exact command or a screenshot for step 3 would
be helpful.)

The problem is here: Windows users in general aren't used to command
line and even fewer have ever touched a path (or even know such a
thing exists). The only almost one-click approach is TeXLive - and
unfortunately I can't currently test that on my Windows as it might
mess up with my vital ConTeXt installation. Thus there is no real
Windows way of installing ConTeXt and this may hold some potential
users back.


   5 Formatting text

 Since you explicitly mention “The basic idea is to separate layout
 from content” in sections 2.1 and 3.1 I think it's not very
 educational to tell beginners to use font switches in the code:

   This is a {\ss test}. % sans serif
   This is a {\tt test}. % typewriter

 Rather teach logical markup from the very beginning.

True. Not that I follow this advice myself, but probably should (some
of my earlier ConTeXt files are - umm - not beautiful because I have
some Word baggage).



   \definehighlight
 [important]
 [style=bold]

   \important{This} is logical markup.

I'd say this approach is too complicated for somebody who just wants
to do documents on ConTeXt (more typing, too, and we people are lazy).
However, I was thinking about trashing both \bf and \it and just
talking about \em for marking emphasis. I think the big manual
includes information on how to adjust \em to one's preferences (I'm
sure I saw it *somewhere* while digging stuff up for this).


 This is arguable, but I personally would drop the (not deprecated
 and still supported) MkII syntax for floats

Interestingly, this was the only syntax I know of and the only one I
can find in the manuals and on the wiki.



   \placefigure
 [here,force] % really try to put the float just here
 {This is a cow} % Caption
 {\externalfigure[cow][width=2cm]}

 and replace it with the more intuitive MkIV syntax:

   \startplacefigure [title=A cow, reference=fig:acow]
 \externalfigure [cow]
   \stopplacefigure

Nice. I'll try to get around to wikifying this asap.


 And refrain from using the [here, force] setting, otherwise
 beginners will never grasp the concept of floats.

True. And otherwise I'm not happy about what I said about floats - I
just barely understand them myself and gaining that knowledge was hard
work - so I'll rewrite that section and will come up with something
else to put there. (Although floats with here,force still float,
just less so. Been there, done that; now I know it is a feature, not a
bug. Useful for a thesis, not so in my work.)


   6.4 Combinations

 Also arguable, but you might consider using the newer

   \startcombination [nx=3, ny=1]
   …

 syntax. It's more contextish and easier to understand, in my
 opinion. Furthermore, it's not covered in any of the manuals, as far
 as I know.

Nor the wiki, I'd never seen it before, although I've understood that
more and more ConTeXt commands move towards the start ... stop syntax.
Again, I'll try to get around to wikify this soonish (first I want to
try it out, though).


I've found before that I learn best by teaching others, for I will not
teach anything I don't properly understand my way. Now I've already
learned three new things, not bad. :-)


Thanks for the comments!


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 : 

Re: [NTG-context] Feedback wanted on a ConTeXt tutorial

2013-09-29 Thread Mari Voipio
Hi!

On Sun, Sep 29, 2013 at 8:50 PM, Thangalin thanga...@gmail.com wrote:
 - The introduction paragraph can be shortened. For example, tell the
 reader to try the subsequent examples using ConTeXt Live web page
 (as opposed to 'almost all of the examples in the series can be run
 online'). On any example that does not work, indicate such at the
 time.

Darn, I forgot to change this one - I found that the sample graphics
are found by ConTeXt Live, so *all* examples this far work online. I
aim at keeping things that way. I'm not that happy with the intro
anyway, your sentence is a lot more beautiful than mine. :-)


 - Avoid using abbreviations and jargon.

I thought I had, but obviously not enough. Will have to do a jargon
check all over - I write one chapter at a time so minor discrepancies
can be expected at this stage.


 As Marco noted, why not apply such wonderful effort to the wiki?

Because my idea is to make a document that allows one to start from
the beginning and doing the examples in the order given. I used the
wiki a lot to check on stuff, but it is not quite the same thing - and
wiki's second document is already a real jump start to ConTeXt, I
want to introduce things slower.

I will try to improve the wiki when I stumble on problems. E.g. within
last three days I've looked up half a dozen commands that are not on
the command reference index (the longer one) even though they have a
page of their own, e.g. \externalfigure (not on
http://wiki.contextgarden.net/Category:Commands but has a page at
http://wiki.contextgarden.net/Command/externalfigure). If the index is
generated manually (as it seems), I can edit it and add missing
commands on the go when I find them.

I must admit that I find it a bit scary to edit the wiki; I'm always
worried about messing up with somebody else's work - with this
tutorial project I can only mess up with my own text and mostly I can
live with that. Editing the wiki I think that everybody else must know
better than I do, for my command of ConTeXt is fairly basic, so I
can't see my solutions being better than those already existing. Thus
I rarely log in to edit, except with failing links and other small
issues.


How should I phrase this? The wiki is like an encyclopedia, I look up
stuff (more often than not with find) that I need for each case. My
aim is to make something like a novel or a book used for learning the
basics of a foreign language, introducing new things gradually.



Thank you for your time and comments!


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
___


[NTG-context] fake feature “extend” behaving weirdly

2013-09-29 Thread Philipp Gesang
Hi Hans,

this got posted on the DANTE list today.

  \definefontfeature [quite_wide] [extend=1.5]
  \definefont [mainfont] [file:Iwona-Regular.otf]
  \definefont [widefont] [file:Iwona-Regular.otf*quite_wide]

  \starttext
\mainfont
{\widefont foo} %% comment this line and “bar” is fine
bar
{\widefont baz}
  \stoptext

The example defines two fonts with the same base font. If the
scaled variant is used before the regular one then the latter
will appear scaled as well and the spacing (bboxes?) gets messed
up.

I suspect a relation to this old issue:

  http://tracker.luatex.org/view.php?id=829

but if I substitute “slant” for “extend” the behavior is
different.

Best,
Philipp



pgpJ3e_w76nLw.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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