Re: [NTG-context] narrowered columns on background image?

2014-02-13 Thread Wolfgang Schuster

Am 12.02.2014 um 16:50 schrieb Rudolf Bahr qu...@quasi.de:

 
 Hi All,
 
 in the following two code examples I tried to place text in columns on a 
 background image.
 The first example, partly achieved by plain TeX commands is ok, even 
 narrowering works.
 Have a look at the attached .pdf file.
 
 The second example isn't ok. Neither narrowering nor putting the text into 
 columns work.
 Though the code of the first example is completely good enough for me, I'd 
 like to learn where my 
 mistakes in the 2. example are. Any ideas?

You have to use boxedcolumns environment because the normal columns environment 
doesn’t work in a frame.

\setupexternalfigures[location={local,global,default}]

\starttext

\defineoverlay[muh][{\externalfigure[cow][width=\overlaywidth, 
height=\overlayheight]}]

\startframed[width=max,height=0.4\textheight,background=muh,align=right,foregroundcolor=darkred]%
  \startboxedcolumns[n=3]
  It was a dark and stormy night. The rain came down in tons. The old captain
  said: \quotation{Antonio, come and tell us a story!} And Antonio began as 
follows:
  \quotation{It was a dark and stormy night. The rain ...}
  \stopboxedcolumns
\stopframed

\stoptext

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

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


Re: [NTG-context] Appendix Page Numbering

2014-02-13 Thread Troy Henderson
Andreas,

Thank you for the reply.  I'm afraid that I don't know how to manually
manipulate the PDF Catalog.  I was able to successfully build the code on
this page

http://www.ntg.nl/pipermail/ntg-context/2008/036947.html

but I had to add

\placebookmarks[chapter,section][chapter][force=yes]

and although I have Evince's Index visible, all of the PageLabels are 1
and when I click on the entry it doesn't change to the correct page.  I do
get an error from Evince that says failed to look up aut:3 or another
number.

I'm not sure what my options are.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 Mikael P. Sundqvist
On Wed, Feb 12, 2014 at 10:01 AM, Keith J. Schultz schul...@uni-trier.dewrote:

 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




 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.dewrote:


 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 /
 

[NTG-context] textwidth in (simple)columns

2014-02-13 Thread Hans van der Meer
With \startcolumn[n=2] the \textwidth appears as the columnwidth, but with 
\startsimplecolumns[n=2] it stays the full breadth of the page. 
Is there a remedy? Changing to \startcolumns is no option because it does not 
work inside \startframedtext, and \startboxedcolumns is no option because I 
found cases where (apparently with a clear cause) sometimes material 
disappeared (I posted here a remark on this sometime ago)

Hans van der Meer

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 Khaled Hosny
On Thu, Feb 13, 2014 at 02:40:18PM +0100, Mikael P. Sundqvist wrote:

 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)

That is the Plain TeX syntax for double bar FWIW.

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] OT: Reflections on usability ConTeXt for typesetting of mathematics

2014-02-13 Thread Mikael P. Sundqvist
On Thu, Feb 13, 2014 at 3:34 PM, Khaled Hosny khaledho...@eglug.org wrote:

 On Thu, Feb 13, 2014 at 02:40:18PM +0100, Mikael P. Sundqvist wrote:
 
  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)

 That is the Plain TeX syntax for double bar FWIW.

 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

 ___


Indeed, and I think that in all I have written (I don't know plain TeX so
well) above one can insert plain TeX instead of LaTeX.

I can add that I think that the horizontal space between the integral sign
and the function is too large. Compare with plain TeX/LaTeX. Maybe that
comes from having smaller size of the limits?

I hope that you dont get me wrong. I would like to use ConTeXt more than I
do today. But at the moment it just don't give the expected output when it
comes to math. Are there any other mathematicians on this list that can
raise their voices and tell what they think?

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

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

Re: [NTG-context] 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] Appendix Page Numbering

2014-02-13 Thread Hans Hagen

On 2/13/2014 1:39 PM, Troy Henderson wrote:

Andreas,

Thank you for the reply.  I'm afraid that I don't know how to manually
manipulate the PDF Catalog.  I was able to successfully build the code
on this page

http://www.ntg.nl/pipermail/ntg-context/2008/036947.html

but I had to add

\placebookmarks[chapter,section][chapter][force=yes]

and although I have Evince's Index visible, all of the PageLabels are
1 and when I click on the entry it doesn't change to the correct
page.  I do get an error from Evince that says failed to look up aut:3
or another number.

I'm not sure what my options are.


mkiv:

\nopdfcompression

\setupinteraction
  [state=start]

\defineconversionset[frontpart:pagenumber][][romannumerals]
\defineconversionset[bodypart:pagenumber] [][numbers]
\defineconversionset[appendix:pagenumber] [][Characters]

\setupuserpagenumber[numberconverionset=pagenumber,way=byblock]

\setupheadertexts[Page \userpagenumber\ of \lastuserpagenumber]

\starttext

\startfrontmatter

\startchapter[title=Fontpart]

\dorecurse{20}{\input knuth \footnote{test}\par}

\stopchapter

\stopfrontmatter

\startbodymatter

\startchapter[title=Bodypart]

\dorecurse{20}{\input tufte\par}

\stopchapter

\stopbodymatter

\startappendices

\startchapter[title=Appendix]

\dorecurse{20}{\input zapf\par}

\stopchapter

\stopappendices

\stoptext

gigves in the pdf:

/PageLabels  /Nums [ 0  /S /r  6  /S /D  11  /S /A  ] 

-
  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] Appendix Page Numbering

2014-02-13 Thread Troy Henderson
Hans,

Attached is a screenshot of what your output looks like in Evince.  I am
trying to get the Page Number listed as A for the Appendix.

Troy
attachment: screenshot.png___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Appendix Page Numbering

2014-02-13 Thread Hans Hagen

On 2/13/2014 4:28 PM, Troy Henderson wrote:

Hans,

Attached is a screenshot of what your output looks like in Evince.  I am
trying to get the Page Number listed as A for the Appendix.


It shows ok in Okular and Sumatrapdf (both on windows) so it's probably 
a bug in Evince then.


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] Appendix Page Numbering

2014-02-13 Thread Aditya Mahajan

On Thu, 13 Feb 2014, Troy Henderson wrote:


Hans,

Attached is a screenshot of what your output looks like in Evince.  I am
trying to get the Page Number listed as A for the Appendix.


If I add

\placebookmarks[chapter,section][chapter][force=yes]

to Hans's example and compile it (using the old ConTeXt ver 2013.12.24), I 
see the bookmarks in Evince (ver 3.10.3 on Linux). See the attached 
figure.



Aditya
attachment: bookmarks.png___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Appendix Page Numbering

2014-02-13 Thread Troy Henderson
I do have an older version of Evince on this machine (v. 2.32.0).  I have a
new version installed on another machine.  I will check it there.  Thank
you very much.  My only question now would be how to remove the 1 and A
PRECEDING the chapter names (as indicated in the attached editing of
Aditya's screenshot).

Troy
attachment: screenshot.png___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Divider in grid environment

2014-02-13 Thread Jan Tosovsky
On 2014-02-08 Jan Tosovsky wrote:
 On 2014-02-08 Jan Tosovsky wrote:

 Additionally, I'd like to keep that divider with the previous content
 (paragraph).
 
 In this case AFAIK \testpage[n] cannot be used directly in the divider
 definition as it breaks the page at position of this command.
 
 I'd like to express rather: If there is no space for three lines, 
 break the page, but grab few previous lines (at least 2) together 
 with me (according to orphan/widow settings).
 
 The current behaviour can be demonstrated using this example:
 
 \startsetups[grid][mypenalties]
 \setdefaultpenalties
 \setpenalties\widowpenalties{2}{1}
 \setpenalties\clubpenalties {2}{1}
 \stopsetups
 
 \setuplayout[grid=yes, setups=mypenalties]
 \showgrid
 \showlayoutcomponents
 
 \starttext
 \blank[force, 30*line]
 \input{tufte}
 \blank[4mm]\middlealigned{\hl[4]}\blank[6mm]
 \stoptext
 

I found that \page[no] does exactly what I wanted. If needed, it breaks the
page not at the positon of a divider, but sooner, so that divider is
preceded at least with 2 lines of text.

\page[no]\blank[4mm]\middlealigned{\hl[4]}\blank[6mm]

Jan

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

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


Re: [NTG-context] Appendix Page Numbering

2014-02-13 Thread Troy Henderson
My desired PDF PageLabels are in the attached PNG.  I have also attached a
ConTeXt source file that attempts attempts this, but clearly I am missing a
bit.  I would appreciate any help in accomplishing this effect.

Troy
attachment: screenshot.png

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

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

Re: [NTG-context] narrowered columns on background image?

2014-02-13 Thread Rudolf Bahr
On Thu, Feb 13, 2014 at 10:52:44AM +0100, Wolfgang Schuster wrote:
 
 You have to use boxedcolumns environment because the normal columns 
 environment doesn’t work in a frame.
 
 \setupexternalfigures[location={local,global,default}]
 
 \starttext
 
 \defineoverlay[muh][{\externalfigure[cow][width=\overlaywidth, 
 height=\overlayheight]}]
 
 \startframed[width=max,height=0.4\textheight,background=muh,align=right,foregroundcolor=darkred]%
   \startboxedcolumns[n=3]
   It was a dark and stormy night. The rain came down in tons. The old captain
   said: \quotation{Antonio, come and tell us a story!} And Antonio began as 
 follows:
   \quotation{It was a dark and stormy night. The rain ...}
   \stopboxedcolumns
 \stopframed
 
 \stoptext

Yes, that's it, what I didn't know: boxedcolumns. Your example works very well, 
even with inserted
narrower environment:

\startframed[...]
  \startnarrower
\startboxedcolumns[n=3]
...
...
\stopboxedcolumns
  \stopnarrower
\stopframed

Many thanks, Wolfgang, for your patient explanation! You helped me so many 
times!

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

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