Re: [NTG-context] Installing VSCode extension?

2020-07-29 Thread Alasdair McAndrew
Thanks again, I've fiddled with SciTE, but when I attempted to compile a
context file, I was told that "texexec" wasn't in my path, so somehow,
somewhere, I must have picked up an old version of the compile command.
Also, there doesn't seem to be an easy way of getting SciTE to use a
monospaced font.  I've fiddled with the customization files to no avail
whatsoever.  I think I have Atom already, but surely there should be some
easy way of getting other text editors working?

On Thu, Jul 30, 2020 at 1:13 AM Henning Hraban Ramm  wrote:

>
> > Am 29.07.2020 um 14:19 schrieb Alasdair McAndrew :
> >
> > Thank you very much, but in fact that script file "vscode-context.cmd"
> really just contains the same command for installing extensions as I quoted
> above - and so produces the same errors.  Maybe I'll go back to trying
> SciTe - I gave it a bit of a go, but wasn't successful.  Of all the
> information on the context-wiki, and the Pragma webpage - where would I go
> to find the most up-to-date information about configuring an editor to work
> with ConTeXt in Windows?
>
> You could try Atom and install the ConTeXt module from
> github.com/massifrg/language-context.
> Original language-context is outdated, but upstream didn’t react to mails
> from Massi and me.
> This version also isn’t perfect, but I’m using and occasionally updating
> it. (I should re-base it on the current work done for the wiki.) There’s
> also still no run command.
>
> Additionally you should install
> - language-latex (contains plain TeX commands)
> - language-lua
> - atom-ide-terminal (for running ConTeXt in place)
> - file-icons (only icon package that contains TeX icons)
> - pdf-view (not very good, but good enough for simple cases)
>
> Best, Hraban
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>


-- 
https://numbersandshapes.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Installing VSCode extension?

2020-07-29 Thread Alasdair McAndrew
Thank you very much, but in fact that script file "vscode-context.cmd"
really just contains the same command for installing extensions as I quoted
above - and so produces the same errors.  Maybe I'll go back to trying
SciTe - I gave it a bit of a go, but wasn't successful.  Of all the
information on the context-wiki, and the Pragma webpage - where would I go
to find the most up-to-date information about configuring an editor to work
with ConTeXt in Windows?

Thanks again,
Alasdair

On Wed, Jul 29, 2020 at 2:51 AM Hans Hagen  wrote:

> On 7/28/2020 6:51 AM, Alasdair McAndrew wrote:
> > I am installing the Windows version of ConTeXt, which comes with a
> > VSCode extension, in
> >
> > \tex\texmf-context\context\data\vscode\extensions
> >
> >
> > with instructions to run (from within the VSCode terminal):
> >
> > code -- extensions-dir  -- install-extension context
> >
> >
> > The trouble is that the current ConTeXt installation (as of 65 minutes
> > ago), doesn't seem to contain an extension in the format that VSCode
> > understands.  Running that command produces the errors:
> >
> > Installing extensions...
> > Extension 'context' not found.
> > Make sure you use the full extension ID, including the publisher,
> > e.g.: ms-dotnettools.csharp
> > Failed Installing Extensions: context:
> >
> >
> > For what it's worth, I'm running VSCode 1.46.0.
> >
> > How can I install the VSCode ConTeXt extension?
> Here i just run this (seems to work with latest update):
>
> data/context/vscode-context.cmd
>
> (I only occasionally check vscode and will look into it again when there
> is easy suffix dependent runner support. Of course I do generate the
> syntax files.)
>
> Hans
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>


-- 
https://numbersandshapes.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Installing VSCode extension?

2020-07-27 Thread Alasdair McAndrew
I am installing the Windows version of ConTeXt, which comes with a VSCode
extension, in

\tex\texmf-context\context\data\vscode\extensions


with instructions to run (from within the VSCode terminal):

code -- extensions-dir  -- install-extension context


The trouble is that the current ConTeXt installation (as of 65 minutes
ago), doesn't seem to contain an extension in the format that VSCode
understands.  Running that command produces the errors:

Installing extensions...
Extension 'context' not found.
Make sure you use the full extension ID, including the publisher, e.g.:
ms-dotnettools.csharp
Failed Installing Extensions: context:


For what it's worth, I'm running VSCode 1.46.0.

How can I install the VSCode ConTeXt extension?

Thank you,
Alasdair

-- 
https://numbersandshapes.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Converting from LaTeX for PDF accessibility tagging?

2020-06-28 Thread Alasdair McAndrew
Thank you very much - I think the problem was with a LaTeX "align"
environment which pandoc translated into a setting which  ConTeXt didn't
recognize.  These equations were monsters, so I'll try with simpler
equations to give you an idea.  But in fact what you say makes perfect
sense, and I'll go back and read through the mathematics document again,
and more closely this time!

(For matrices and arrays I still prefer the neat LaTeX implementation, but
maybe that's simply my general unfamiliarity with ConTeXt.)  Thanks again!

Alasdair

On Mon, Jun 29, 2020 at 2:27 AM Aditya Mahajan  wrote:

> On Sun, 28 Jun 2020, Alasdair McAndrew wrote:
>
> > I tried ConTeXt a few years ago, then gave up on it because of its
> > wordiness and verbosity.  The 2006 article on creating AMSTeX output in
> > ConTeXt at https://www.ntg.nl/maps/34/06.pdf shows exactly what I mean:
> the
> > LaTeX commands are small and neat; the ConTeXt commands are not.
>
> As explained in the last paragraph, there are pre-built shortcuts for the
> main alignments and you can define your own to match amsmath style, if you
> wish.
>
> If you are worried about typing, look into tab completion for your editor
> of choice. For example, in vim, I can do `for` which expands to
> `\startformula ... \stopformula` and `fora` expands to `\startformula
> \startalign ... \stopalign \stopformula`.
>
> > However, I need now to use ConTeXt for accessibility tagging, so I'm
> > prepared to give it another try.  And this means converting some LaTeX
> > documents into ConTeXt.  Is there a better way than using pandoc?  I ran
> a
> > LaTeX document through pandoc, but the result is certainly not fully
> > "ConTeXt compliant", and generates errors instead of compiling.
>
> AFAIK, pandoc is not aware of context math. When I convert latex to
> context, I find it simpler to do it some hand written regex which translate
> commands according to my writing style.
>
> > I can get easily lost on the ConTeXt site: the documentation is there in
> > plenty, but seems hard to search.  The main problem for me is mathematics
> > and alignment: not just for equations, but for matrices and arrays.  What
> > I'd love - if it exists - is a document showing how to rewrite LaTeX into
> > ConTeXt.  Something like the above document, which is now 14 years old.
>
> The user-interface is still the same.
>
> > Anyway, as I say, my main issues are converting LaTeX into ConTeXt. and
> > dealing with mathematics.  Any pointers would be gratefully received!
>
> Can you post an example of LaTeX math that you are having difficulty in
> converting? It is hard to answer this in the abstract.
>
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>


-- 
https://numbersandshapes.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Converting from LaTeX for PDF accessibility tagging?

2020-06-28 Thread Alasdair McAndrew
Hello,

I tried ConTeXt a few years ago, then gave up on it because of its
wordiness and verbosity.  The 2006 article on creating AMSTeX output in
ConTeXt at https://www.ntg.nl/maps/34/06.pdf shows exactly what I mean: the
LaTeX commands are small and neat; the ConTeXt commands are not.

However, I need now to use ConTeXt for accessibility tagging, so I'm
prepared to give it another try.  And this means converting some LaTeX
documents into ConTeXt.  Is there a better way than using pandoc?  I ran a
LaTeX document through pandoc, but the result is certainly not fully
"ConTeXt compliant", and generates errors instead of compiling.

I can get easily lost on the ConTeXt site: the documentation is there in
plenty, but seems hard to search.  The main problem for me is mathematics
and alignment: not just for equations, but for matrices and arrays.  What
I'd love - if it exists - is a document showing how to rewrite LaTeX into
ConTeXt.  Something like the above document, which is now 14 years old.

I also notice that much of the contextgarden wiki is outdated.  For
example, on the use of ConTeXt in MikTeX, we read "As of end of June 2011
MikTeX is still (or again) non-functional."  I'm aware that all of this is
the work of dedicated and unpaid volunteers, so this is not a complaint!
Just an observation.

Anyway, as I say, my main issues are converting LaTeX into ConTeXt. and
dealing with mathematics.  Any pointers would be gratefully received!

Thanks,
Alasdair
-- 
https://numbersandshapes.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] A trouble with setupbodyfontenvironment

2013-03-01 Thread Alasdair McAndrew
Arrgh: more problems.  I've downloaded and installed context standalone
(version 2013.02.26 00:17).  Now when I run context I get an error (for the
first time ever) when it reaches a chapter heading:

l.1 ...[ch:this]{My first chapter}

? h
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.

I have the following setups:

\def\chap#1#2{\vbox{\darkgreen Chapter
#1\crlf\framed[frame=off,topframe=on]{#2}}}
\def\uchap#1#2{#2}

\setuphead[chapter][command=\chap,style=bfd,after={\blank[1cm]},textcolor=darkgreen,numbercolor=darkgreen]

None of this has ever given me any problems before.  I also experimented by
removing the entire context tree and reinstalling the stable version - only
to get the same error.  Any ideas?

Thanks,
Alasdair


On Fri, Mar 1, 2013 at 11:01 AM, Aditya Mahajan adit...@umich.edu wrote:

 On Fri, 1 Mar 2013, Alasdair McAndrew wrote:

  Actually, maybe my version is a bit old: context --version
 returns 2011.05.18 18:04.  I'll try to update it.  (I'm using Ubuntu
 12.04,
 but when I tried to update using apt-get the system told me that I had the
 latest version).  In the meantime I'll try your alternative.


 It is best to install ConTeXt standalone in a parallel directory.
 http://wiki.contextgarden.net/**ConTeXt_Standalonehttp://wiki.contextgarden.net/ConTeXt_Standalone

 @Mojca: What's with the name of the distribution. The wiki has a mix of
 minimals, standalone, and suite. Can we converge on one name for the
 distribution.

 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 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : 
 http://foundry.supelec.fr/**projects/contextrev/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 trouble with setupbodyfontenvironment

2013-03-01 Thread Alasdair McAndrew
I'll try to sort out a minimal example; unfortunately neither of those
suggestions worked.

In the meantime, here's some more info from the log file:

-
(chapter.tex
! LuaTeX error
.../context/tex/texmf-context/tex/context/base/strc-doc.lua:156: attempt to
index local 'metadata' (a number value)
stack traceback:
.../context/tex/texmf-context/tex/context/base/strc-doc.lua:156: in
function 'load'
.../context/tex/texmf-context/tex/context/base/strc-doc.lua:167: in
function '__index'
.../context/tex/texmf-context/tex/context/base/strc-doc.lua:143: in
function 'save'
.../context/tex/texmf-context/tex/context/base/strc-doc.lua:371: in
function 'somelevel'
[string \directlua ]:1: in main chunk.

system   tex  error on line 1 in file chapter.tex: LuaTeX error
 ...

 1   \chapter[ch:this]{My first chapter}
-

It seems to be a mkiv issue; when I attempted to typeset the file(s) with
texexec (mkii), I had no problem.

Thanks again,
Alasdair



On Fri, Mar 1, 2013 at 8:54 PM, Marco Patzer home...@lavabit.com wrote:

 On 2013–03–01 Alasdair McAndrew wrote:

  Arrgh: more problems.  I've downloaded and installed context standalone
  (version 2013.02.26 00:17).  Now when I run context I get an error (for
 the
  first time ever) when it reaches a chapter heading:
 
  l.1 ...[ch:this]{My first chapter}
 
  ? h
  The lua interpreter ran into a problem, so the
  remainder of this lua chunk will be ignored.
 
  I have the following setups:
 
  \def\chap#1#2{\vbox{\darkgreen Chapter
  #1\crlf\framed[frame=off,topframe=on]{#2}}}
  \def\uchap#1#2{#2}
 
 
 \setuphead[chapter][command=\chap,style=bfd,after={\blank[1cm]},textcolor=darkgreen,numbercolor=darkgreen]
 
  None of this has ever given me any problems before.

 It's easier to tell with a minimal example. But here's a guess. Try

   \unexpanded\def#1#2\chap{…}

 or

   \define[2]\chap{…}


 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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 trouble with setupbodyfontenvironment

2013-03-01 Thread Alasdair McAndrew
I think I might completely uninstall my current TeXlive (2011) and install
the newest one from CTAN, as you recommend.  I also run into problems when
I want to run both ConTeXt and plain TeX or LaTeX: I was using TeX on some
old files yesterday, and because my path was set up to reference the
/opt/context tree before the /usr/share/texmf tree, TeX kept giving errors.
 So I needed to fiddle with my path first.  (One day I'll convert my TeX
files to ConTeXt, but that requires more time than I have right now.)

Thanks, everybody!


On Sat, Mar 2, 2013 at 6:18 AM, Bill Meahan subscribed_li...@meahan.netwrote:

 On 02/28/2013 06:51 PM, Alasdair McAndrew wrote:

 Actually, maybe my version is a bit old: context --version returns
 2011.05.18 18:04.  I'll try to update it.  (I'm using Ubuntu 12.04, but
 when I tried to update using apt-get the system told me that I had the
 latest version).  In the meantime I'll try your alternative.

 Thanks!


 Most of the software in the repository is a few to several revisions
 behind. The texlive package, for example, is from 2009  :(

 Best to install the standalone or install texlive yourself using the
 installer from CTAN. I have both on my 12.04 system though I mostly use the
 standalone version.

 --
 Bill Meahan
 Westland, Michigan USA


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

 maillist : 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://tex.aanhet.net
 archive  : 
 http://foundry.supelec.fr/**projects/contextrev/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] A trouble with setupbodyfontenvironment

2013-02-28 Thread Alasdair McAndrew
So I've come back to using ConTeXt after a year away from it (publishers
preferring LaTeX, y'know), and in revising some student notes I'm getting
errors which seem new.

For a collection of overheads, I've set up

\setupbodyfontenvironment[default][em={\slanted\color[red]}]

However, when I run context on my files, a command such as {\em elephant}
produces:

l.3 The {\em
   elephant} is a large gray animal
? h
The control sequence marked to be read again should
not appear between \csname and \endcsname.

What's going on here, and how do I fix it?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 trouble with setupbodyfontenvironment

2013-02-28 Thread Alasdair McAndrew
Thanks for that, but it doesn't seem to work:

I enter context myfile.tex, and a bit later:

l.26 \definehighlight
 [slantedred][style=slanted,color=red]
? h
The control sequence at the end of the top line
of your error message was never \def'ed.

Do I have to include a special module here?

-Alasdair


On Thu, Feb 28, 2013 at 11:02 PM, Marco Patzer home...@lavabit.com wrote:

 On 2013–02–28 Alasdair McAndrew wrote:

  So I've come back to using ConTeXt after a year away from it

 Welcome back :)

  \setupbodyfontenvironment[default][em={\slanted\color[red]}]

 \setupbodyfontenvironment
   [default]
   [em=slantedred]

 \definehighlight
   [slantedred]
   [style=slanted,
color=red]


 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] A trouble with setupbodyfontenvironment

2013-02-28 Thread Alasdair McAndrew
Actually, maybe my version is a bit old: context --version
returns 2011.05.18 18:04.  I'll try to update it.  (I'm using Ubuntu 12.04,
but when I tried to update using apt-get the system told me that I had the
latest version).  In the meantime I'll try your alternative.

Thanks!


On Fri, Mar 1, 2013 at 12:40 AM, Marco Patzer home...@lavabit.com wrote:

 On 2013–03–01 Alasdair McAndrew wrote:

  Do I have to include a special module here?

 No. I tested some versions between 2011.11.29 23:11 and 2013.02.26
 00:17 and it worked for me. Which version are you using?
 \definehighlight is nothing which was recent added.

 \setupbodyfontenvironment
   [default]
   [em=slantedred]

 \definehighlight
   [slantedred]
   [style=slanted,
color=red]

 \starttext
   foo {\em bar}
 \stoptext

 You cannot update, you can try this instead of \definehighlight:

 \definealternativestyle
   [slantedred]
   [{\slanted\color[red]}]


 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] A bibliography difficulty

2012-05-30 Thread Alasdair McAndrew
Thanks - I sorted it out by using a standard BibTeX .bib file.  I was
trying to do it all in one file, and finding the bib module documentation
quite confusing.  And for what it's worth, I'm using mkii.

-Alasdair

On Wed, May 30, 2012 at 4:09 PM, Andy Thomas andytho...@web.de wrote:

 Hello,

 I am not sure if I understand you correctly, but do you directly edit a
 bbl file? Normally, a .bib file is made by the user and ConTeXt (and LaTeX
 as well) generate the .bbl file for you. Your example works for me using
 the following code


 \setupbibtex[database={library}]
 \setuppublications[alternative=ams]


 \starttext
 Bla\cite{birn06}

 \placepublications[criterium=all]
 \stoptext

 with a .bib file containing

 @article{birn06,
   author = {Dieter Birnbache},
   title = {The Socratic method in teaching medical ethics: Potentials and
 limitations},
   year = {1999},
   journal = {Medicine, Health Care and Philosophy},
   volume = {2},
   issue = {3},
   pages = {219-224}
 }

 More information is on the wiki page:
 http://wiki.contextgarden.net/Bibliography, e.g. why you do not need to
 use a module any more.



 On May 30, 2012, at 6:58 AM, Alasdair McAndrew wrote:

 In my list of references, I can't get the author or title (of journal
 article) to print.  In my .tex file, I have the following lines:

 \usemodule[bib]
 \setuppublications[alternative=ams,refcommand=num,numbering=yes]

 and in my .bbl file the (so far) only reference is:

 \startpublication[k=birn06,
   t=article,
   a=D.~Birnbache,
   y=1999]
   \author{Dieter}{}{Birnbache}
   \title{The Socratic method in teaching medical ethics: Potentials and
 limitations}
   \pubyear{1999}
   \journal{Medicine, Health Care and Philosophy}
   \volume{2}
   \issue{3}
   \pages{219-224}
 \stoppublication

 However, when I typeset the file, the reference list consists of

 [1] , Medicine, Health Care and Philosophy 2, 219 (1999).

 I'm a little confused about all the variables, commands and parameters.
  So - first, what am I doing wrong?  Second, are there somewhere out there
 some example files of bibliography usage (I learn best by seeing what other
 people have done, and adapting that to my own ends)?  Third: can I include
 the references in the body of the .tex file (as you can do with LaTeX and
 the thebibliography environment)?

 Thanks,
 Alasdair

 --
 Blog: http://amca01.wordpress.com
 Web:  http://sites.google.com/site/amca01/
 Facebook: http://www.facebook.com/alasdair.mcandrew
 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] A bibliography difficulty

2012-05-29 Thread Alasdair McAndrew
In my list of references, I can't get the author or title (of journal
article) to print.  In my .tex file, I have the following lines:

\usemodule[bib]
\setuppublications[alternative=ams,refcommand=num,numbering=yes]

and in my .bbl file the (so far) only reference is:

\startpublication[k=birn06,
  t=article,
  a=D.~Birnbache,
  y=1999]
  \author{Dieter}{}{Birnbache}
  \title{The Socratic method in teaching medical ethics: Potentials and
limitations}
  \pubyear{1999}
  \journal{Medicine, Health Care and Philosophy}
  \volume{2}
  \issue{3}
  \pages{219-224}
\stoppublication

However, when I typeset the file, the reference list consists of

[1] , Medicine, Health Care and Philosophy 2, 219 (1999).

I'm a little confused about all the variables, commands and parameters.  So
- first, what am I doing wrong?  Second, are there somewhere out there some
example files of bibliography usage (I learn best by seeing what other
people have done, and adapting that to my own ends)?  Third: can I include
the references in the body of the .tex file (as you can do with LaTeX and
the thebibliography environment)?

Thanks,
Alasdair

-- 
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Style file for iPad?

2012-03-06 Thread Alasdair McAndrew
If this has been asked before, my apologies.

Is there a style file for formatting PDFs from ConTeXt for reading on an
iPad?  So far I've just used

\setuppapersize[A4][A4]
\setuplayout[backspace=20mm,
width=160mm,
topspace=20mm, top=0mm,
header=0mm, footer=10mm,
bottomspace=20mm,bottom=0mm,
textheight=250mm]

which works fine - for printing - but isn't optimized for the iPad.  If
anybody has any suggestions or examples, I'd be very grateful of them!

Thanks,
Alasdair

-- 
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Style file for iPad?

2012-03-06 Thread Alasdair McAndrew
Yes, but what ebook formats handle mathematics and diagrams?

-A.

On Tue, Mar 6, 2012 at 10:36 PM, Philipp A. flying-sh...@web.de wrote:

 2012/3/6 Alasdair McAndrew amc...@gmail.com

 Is there a style file for formatting PDFs from ConTeXt for reading on an
 iPad?


  make an ebook instead. PDF files aren’t for screen reading, but for
 printing.

 semantic markup like it is used in ebook formats is much better suited for
 screens of all sizes.


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

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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \em producing red text?

2012-02-21 Thread Alasdair McAndrew
I discovered this by hunting through font-ini.mkii:

\setupbodyfontenvironment [default] [em={\slanted\color[red]}]

Seems to work well.  You see, I want to use the same ConTeXt files for two
purposes: to create a set of printable notes (without colour) and to make a
set of displayable onscreen notes (with colour).  This means that {\em this
text} appears slanted in the printed notes, and slanted and red onscreen.

Thanks very much!

-Alasdair

On Tue, Feb 21, 2012 at 5:47 PM, Aditya Mahajan adit...@umich.edu wrote:

 On Tue, 21 Feb 2012, Alasdair McAndrew wrote:

  In some overheads I'm creating, I'd like emphasized text {\em like this}
 to
 appear as red.  I hoped that something like this would work:

 \setupbodyfontenvironment[**default][em={slanted, textcolor=red}]

 but it doesn't.  What is the canonical way of obtaining red, emphasized,
 text?


 \definehighlight[emph][style=**slanted, color=red]

 \emph{...}

 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 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : 
 http://foundry.supelec.fr/**projects/contextrev/http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __**__**
 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \em producing red text?

2012-02-20 Thread Alasdair McAndrew
In some overheads I'm creating, I'd like emphasized text {\em like this} to
appear as red.  I hoped that something like this would work:

\setupbodyfontenvironment[default][em={slanted, textcolor=red}]

but it doesn't.  What is the canonical way of obtaining red, emphasized,
text?

Thanks,
Alasdair

-- 
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Turning off special chapter headings

2012-02-16 Thread Alasdair McAndrew
I'm using the following:

\def\chap#1#2{\vbox{Chapter #1\crlf\framed[frame=off,topframe=on]{#2}}}
\setuphead[chapter][command=\chap,style=bfd,after={\blank[1cm]}]

for my chapter headings.  But one chapter: Answers to Exercises I want
unnumbered, without the Chapter text, and also in the table of contents.

Can anybody point me to the simplest way of achieving this?  (I've tried
various combinations of \setuphead, \definehead, but nothing so far has
given me what I want.)

Thanks,
Alasdair

-- 
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Turning off special chapter headings

2012-02-16 Thread Alasdair McAndrew
Thanks for your suggestion, but it didn't seem to work. I just discovered
the answer myself and that was to create a new chapter command:

\def\uchap#1#2{#2}

and then follow as per the wiki:

\definehead[ans][chapter]
\setuphead[ans][command=\uchap,number=no]
\definecombinedlist[content][ans,chapter,section]
\setuplist[ans][headnumber=no]

Then finally

\ans{Answers to Exercises}

cheers,
Alasdair

On Fri, Feb 17, 2012 at 4:05 PM, Otared Kavian ota...@gmail.com wrote:

 Hi,

 Didn't you see my answer? As suggested below, you can
 use \chapter[title={Answer to all the questions},number=no].

 On 16 févr. 2012, at 08:59, Otared Kavian wrote:

 Hi Alasdair,

 Is this what you want?
  begin
 \starttext

 \completecontent

 \chapter{Chapter one}

 \section{First section}

 \section{Second section}

 \chapter{Chapter two}

 \section{First section}

 \section{Second section}

 \chapter[title={Answer to all the questions},number=no]

 \stoptext
 % end

 Best regards: OK



 Best regards: OK

 On 17 févr. 2012, at 01:48, Alasdair McAndrew wrote:

 I'm using the following:

 \def\chap#1#2{\vbox{Chapter #1\crlf\framed[frame=off,topframe=on]{#2}}}
 \setuphead[chapter][command=\chap,style=bfd,after={\blank[1cm]}]

 for my chapter headings.  But one chapter: Answers to Exercises I want
 unnumbered, without the Chapter text, and also in the table of contents.

 Can anybody point me to the simplest way of achieving this?  (I've tried
 various combinations of \setuphead, \definehead, but nothing so far has
 given me what I want.)

 Thanks,
 Alasdair

 --
 Blog: http://amca01.wordpress.com
 Web:  http://sites.google.com/site/amca01/
 Facebook: http://www.facebook.com/alasdair.mcandrew
 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Unnumbered chapter in table of contents?

2012-02-15 Thread Alasdair McAndrew
Hello,

For my student notes, there are ten numbered chapters, and one unnumbered
(Answers to Exercises).  I want all of these to appear in the table of
contents.  So:

1.   First Chapter
2.   Second chapter

10. Tenth Chapter
Answers to Exercises

I've set up the chapters with

\def\chap#1#2{\vbox{Chapter #1\crlf\framed[frame=off,topframe=on]{#2}}}

\setuphead[chapter][
command=\chap,
style=bfd,
after={\blank[1cm]},
]

However, I don't want this heading on the exercises; just the title.

How can I easily achieve all of this?  I've tried with

\title[Answers to Exercises]

and

\writetolist[content]{}{Answers to Exercises}

but these don't seem to work.

Thanks,
Alasdair
-- 
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Increment an item number?

2012-02-14 Thread Alasdair McAndrew
Thanks for the answers.  I did in fact know about \incrementnumber, but I
couldn't find any information about the counter.  Where would I find such
information, aside from asking on this mailgroup?

As for identifying each question and referring to it: that is an excellent
solution, but in fact I have only rarely to leave out an answer, and the
small amount of bookkeeping required is not at all onerous.

Thanks again,
Alasdair

On Wed, Feb 15, 2012 at 3:27 AM, Thomas A. Schmitz 
thomas.schm...@uni-bonn.de wrote:

 On 2/14/12 1:48 PM, Hans Hagen wrote:

 \starttext
 \startitemize[n]
 \item First question
 \phantom{\item }
 \item Third question
 \phantom{\item }
 \item Fifth question
 \item Sixth question
 \stopitemize
 \stoptext


 or something

 \starttext
 \startitemize[n]
 \item First question
 \incrementnumber[itemgroup:**itemize]
 \item Third question
 \incrementnumber[itemgroup:**itemize]
 \item Fifth question
 \item Sixth question
 \stopitemize
 \stoptext


 Just a hint: however you do it, I think this is not the best approach. you
 write:

  I'm typing out solutions to questions in some student notes, and the

 missing item is a question for which a written solution is not necessary.


 If this is a recurrent task, i.e. if you regularly make up student
 problems and then typeset the solutions, this approach is inefficient
 because you're doing the book keeping yourself. If, for example, you decide
 to delete one of the questions without written solution, you will have to
 delete the \incrementnumber as well. It may be better if you let ConTeXt do
 the book keeping: give every question a unique identitfier like so

 \startitem[p:1:2]
  Problem?
 \stopitem

 and then typeset the solutions by referring back to this identifier:

 \sym{\in[p:1:2]}

 That way, the numbers in problems and solutions will always be correct,
 even if you rearrange etc. (I often typeset such exercise stylesheets, and
 after many years, that's my approach today.)

 Thomas

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

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




-- 
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Increment an item number?

2012-02-13 Thread Alasdair McAndrew
What is the ConTeXt version of the LaTeX

\addtocounter{enumi}{1} ?

I want to increment my numbering in an itemize environment, so that the
list is typeset as

1.  First item
2.  Next item
3.  Another item
5.  Yet another
6.  And so on

I'm typing out solutions to questions in some student notes, and the
missing item is a question for which a written solution is not necessary.

Thanks,
Alasdair

-- 
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 frames side by side?

2011-11-06 Thread Alasdair McAndrew
Thanks very  much! - combinations provides quite the right result.

-Alasdair

On Sun, Nov 6, 2011 at 6:03 PM, Thomas A. Schmitz 
thomas.schm...@uni-bonn.de wrote:

 On 11/06/2011 01:45 AM, Alasdair McAndrew wrote:

 I want two frames side by side: the left frame comprising just text (and
 some displayed formulas), and the right hand side frame some high level
 computer algebra code.  The right hand side will have a gray background,
 and will consist mainly of typeset equations separated by horizontal
 lines.

 I can get the two frames looking just right, but no matter how thin I
 make them, they display one under the other, not side by side.

 Any ideas?

  You're looking for combinations http://wiki.contextgarden.net/**
 Combinations http://wiki.contextgarden.net/Combinations The text on the
 wiki is a bit misleading because it seems to imply that they can only hold
 images; combinations can have any content.

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

 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/**
 listinfo/ntg-context http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : 
 http://foundry.supelec.fr/**projects/contextrev/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] Two frames side by side?

2011-11-05 Thread Alasdair McAndrew
I want two frames side by side: the left frame comprising just text (and
some displayed formulas), and the right hand side frame some high level
computer algebra code.  The right hand side will have a gray background,
and will consist mainly of typeset equations separated by horizontal lines.

I can get the two frames looking just right, but no matter how thin I make
them, they display one under the other, not side by side.

Any ideas?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Odd column break - how to avoid?

2011-11-03 Thread Alasdair McAndrew
Hello,

In a two column document I'm preparing, I have a column break in a very odd
place.  The column just stops, and the document material just begins in the
next column, leaving a lot of white space.  I've no idea what's causing
this, and I've tried to avoid it, but nothing I do seems to work.  Is there
any way of forcing a column not to break?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Line spacing with a large font?

2011-10-28 Thread Alasdair McAndrew
The title page of a book of notes contains

{\tfe This is the title of my book}

where I have previously defined

\definebodyfont[10pt,11pt,12pt][rm][tfe=Bold at 32pt]

However, the title is long and is broken into two lines, which are squashed
together vertically.  How can I ensure that \tfe uses more interline space?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Line spacing with a large font?

2011-10-28 Thread Alasdair McAndrew
Thanks, but it doesn't work:

{\tfe This is the title of my book\par}

still gives vertically squashed text.

-Alasdair

On Fri, Oct 28, 2011 at 9:19 PM, Thomas A. Schmitz 
thomas.schm...@uni-bonn.de wrote:

 On 10/28/11 12:18, Alasdair McAndrew wrote:

 How can I ensure that \tfe uses more interline space?


 by adding a \par at the end.

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

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




-- 
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Line spacing with a large font?

2011-10-28 Thread Alasdair McAndrew
Yes, that works fine - thanks very much!

-Alasdair

On Fri, Oct 28, 2011 at 9:41 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 28.10.2011 um 12:18 schrieb Alasdair McAndrew:

  The title page of a book of notes contains
 
  {\tfe This is the title of my book}

 {\tfe\setupinterlinespace …\par}

  where I have previously defined
 
  \definebodyfont[10pt,11pt,12pt][rm][tfe=Bold at 32pt]
 
  However, the title is long and is broken into two lines, which are
 squashed together vertically.  How can I ensure that \tfe uses more
 interline space?

 When you use \tfe only for the title of the book there is a simple method
 for which you don’t need the \definebodyfont setting:

 {\definedfont[Serif at 32pt]\setupinterlinespace …\par}

 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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Question about chapter headings

2011-10-25 Thread Alasdair McAndrew
Thanks very much!  (I'm embarrassed - I should have been able to work that
one out for myself...)

-Alasdair

On Tue, Oct 25, 2011 at 5:55 PM, Peter Münster pmli...@free.fr wrote:

 On Tue, Oct 25 2011, Alasdair McAndrew wrote:

  \def\chap#1#2{Chapter #1\crlf #2}

 \def\chap#1#2{\vbox{Chapter #1\crlf #2}}

 --
   Peter

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

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/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] Some more ToC questions

2011-10-25 Thread Alasdair McAndrew
Thanks to the great expertise of folk on this mailgroup, I have my chapter
headings set so that each one comes out as

Chapter n
Name of Chapter

However, I have a few more questions.  First: if I use completecontent to
display the contents, how can I have the Contents title display without my
Chapter line?  That is, is there a way of turning off my chapter command
temporarily?  (I've found that title doesn't work here: If I use
\title{Contents} \placecontent I still get a Chapter line.)

Second: I'm writing out a book of student notes, and each chapter ends with
a set of exercises.  I'd like these exercises to be typeset as unnumbered
sections (subjects), and appear so in the ToC.  Like:

4.4  Second last section
4.5  Last section
Exercises

What is the best way of doing this (MkII)?  I've tried

\definehead[exercise][section]
\setuphead[exercise][number=no]
\setuplist[exercise][headnumber=no]

but that doesn't work on its own, and when paired with
\definecombinedlist[content][exercise,chapter,section] wipes out the
contents completely.

Any advice (or even pointers to a web page) would be most welcome.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Question about chapter headings

2011-10-24 Thread Alasdair McAndrew
I'm trying to set up a chapter heading which looks like this:

Chapter 4

This is the fourth chapter

That is, there are two lines, one of which says Chapter followed by its
number, and the next which is the chapter title.  What is the easiest way to
do this?  I've tried

\def\chap#1#2{Chapter #1\crlf #2}

\setuphead[chapter][
   command=\chap,
   style=bfc,
   after={\blank[1cm]},
]

But this doesn't work (and nor do many other variations in the chap
command).  I'm a bit stymied here - and I'd welcome some advice.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 mode in emacs: disabling raising of superscripts?

2011-09-05 Thread Alasdair McAndrew
Thanks very much!

-Alasdair

On Mon, Sep 5, 2011 at 11:32 PM, Peter Münster pmli...@free.fr wrote:

 On Mon, Sep 05 2011, Alasdair McAndrew wrote:

  I hope my subject line says it all: if I type, say $x^2$ in an emacs
  buffer, with ConTeXt-mode, the 2 is automatically raised.  This to
  me looks ugly.  I've been searching through the emacs customization
  options but haven't yet found what I need.  And I don't want
  subscripts lowered  either.

 (setq font-latex-fontify-script nil)

 --
   Peter

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

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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Colored text in \type?

2011-09-02 Thread Alasdair McAndrew
I'm using MkII - are there any particular advantages to using MkIV?

-Alasdair

On Fri, Sep 2, 2011 at 10:34 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 02.09.2011 um 09:47 schrieb Peter Münster:

  On Fri, Sep 02 2011, Alasdair McAndrew wrote:
 
 
  \color[blue]{\type{%t^y_8*}}
 
  doesn't seem to work; nor does
 
  {\blue \type{%t^y_8*}}
 
  No problem with mkiv.

 You don’t even need \type in mkiv:

 \asciimode

 \starttext

 \definehighlight[one][color=red,  style=mono]
 \definehighlight[two][color=green,style=mono]

 \mono{%t^y_8*}

 \one{%t^y_8*}

 \two{%t^y_8*}

 \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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Colored text in \type?

2011-09-01 Thread Alasdair McAndrew
Thanks very much - that works perfectly.  I didn't know about \definetype.

Thanks again,
Alasdair

On Fri, Sep 2, 2011 at 3:11 PM, Jaroslav Hajtmar hajt...@gyza.cz wrote:

 Hello Alasdair.

 Try use \definetype :

 \definetype[rtype][color=red,**style=type]
 \definetype[btype][color=blue,**style=type]



 \starttext

 \type{%t^y_8*}

 \rtype{%t^y_8*}

 \btype{%t^y_8*}

 \stoptext

 Jaroslav Hajtmar


 Dne 2.9.2011 6:49, Alasdair McAndrew napsal(a):

 I'm writing up some computer notes for my students, and I have examples of
 variables and other commands which involve characters like % and underscore.
  These are typeset with

 \type{%t^y_8*}

 for example.  What I would like to do is to color these as well.  However

 \color[blue]{\type{%t^y_8*}}

 doesn't seem to work; nor does

 {\blue \type{%t^y_8*}}

 So - how do I obtain colored text within \type?

 Thanks,
 Alasdair

 --
 Blog: http://amca01.wordpress.com
 Web: http://bit.ly/Alasdair
 Facebook: 
 http://www.facebook.com/**alasdair.mcandrewhttp://www.facebook.com/alasdair.mcandrew


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

 maillist :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://tex.aanhet.net
 archive  
 :http://foundry.supelec.fr/**projects/contextrev/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 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : 
 http://foundry.supelec.fr/**projects/contextrev/http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __**__**
 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Text Colour

2011-08-30 Thread Alasdair McAndrew
Have you included

\setupcolors[state=start]

somewhere?

-Alasdair

On Wed, Aug 31, 2011 at 11:57 AM, Kip Warner k...@thevertigo.com wrote:

 Hey folks,

 How do I set the body text foreground colour? I tried the following, but
 it just ignored it:

 \definecolor[colour_text][r=0.754,g=0.516,b=0.324]

 \setupbodyfontenvironment
  [default]
  [em=italic,
   color=colour_text]

 I don't want to have to use \startcolor and \stopcolor every time I wish
 this default to be applied.

 --
 Kip Warner -- Software Engineer
 OpenPGP encrypted/signed mail preferred
 http://www.thevertigo.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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Text Colour

2011-08-30 Thread Alasdair McAndrew
This brings up a question I have - how do I obtain, say, all {\tt  } text in
blue and all {\em } text in red?  I seem to be using MkII, and I don't have
access to the \definehighlight command.

Thanks,
Alasdair

On Wed, Aug 31, 2011 at 2:19 PM, Aditya Mahajan adit...@umich.edu wrote:

 On Tue, 30 Aug 2011, Kip Warner wrote:

  Hey folks,

 How do I set the body text foreground colour? I tried the following, but
 it just ignored it:

 \definecolor[colour_text][r=0.**754,g=0.516,b=0.324]

 \setupbodyfontenvironment
  [default]
  [em=italic,
  color=colour_text]

 I don't want to have to use \startcolor and \stopcolor every time I wish
 this default to be applied.


 \definehighlight[emph][style=**em,color=red]

 \emph{...}

 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 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : 
 http://foundry.supelec.fr/**projects/contextrev/http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __**__**
 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Matlab formatting?

2011-08-26 Thread Alasdair McAndrew
Thank you so much!  The vim module with Matlab formatting is just what I
wanted.

-Alasdair

On Fri, Aug 26, 2011 at 4:02 PM, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:

 On Fri, Aug 26, 2011 at 07:42, Alasdair McAndrew wrote:
  Hello,
 
  I'm writing up some student notes about Matlab, and I'm including
 examples
  of Matlab functions.  I'd like all the functions to be typeset in
 typewriter
  font (which means using a typing environment), but I'd also like some
  colorization.  For example, I want to display a function such as
 
  function out = add(a,b)
  %
  % ADD(A,B) returns the sum of A and B
  %
  out = a+b;
 
  in a frame, and with the three lines beginning with % all colored green.
  (If I can color reserved words like function that's even better.)
 What's
  the easiest way to achieve this?

 You have three options:
 - use t-vim module (http://modules.contextgarden.net/vim)
 - manually apply commands for formatting
 - write a parser in lpeg (and plug it into existing highlighting
 functionality)

 Probably the easiest way is to use the vim module. (Vim does the
 syntax highlighting and TeX typesets the result. The layout is
 configurable.)

 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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Errors installing ConTeXt on Windows

2011-08-20 Thread Alasdair McAndrew
Well, I've now got linux reinstalled, so I no longer need Windows.  (Huge
sigh of relief.)  Sorry about the anguished initial email!

-Alasdair

On Fri, Aug 19, 2011 at 11:17 AM, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:

 On Thu, Aug 18, 2011 at 17:52, Vyatcheslav Yatskovsky wrote:
  Hi,
 
  Looks like the are problems with my installer and I'm not aware of.
 
  Alasdair McAndrew, can we collaborate on this issue (since I don't have
 Win7
  64 bit to do tests?)

 I removed the installer from http://minimals.contextgarden.net/setup/
 because so many people complained about it being non-functional. It is
 even more problematic: they try the installer, it doesn't work, but
 the path remains set, so consequently not even their normal
 distribution works.

 The installer is still accessible in SVN repository:
http://svn.contextgarden.net/minimals/installer

 Once it starts working again, I will put it back online. Now you have
 more motivation to fix it faster :)

 (And yes, some links on wiki are broken now. But now people get broken
 link, else they would get broken installer.)

 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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Squashing up lines?

2011-07-28 Thread Alasdair McAndrew
I'm preparing a grant application, for which the template is given in MS
Word, and for which the instructions are that the final application must be
no more than 4 pages.

I'm trying to re-create the Word doc in ConTeXt, and to keep within the page
limit I'd like the text to be as tight as possible.  This means: minimal
space before and after an itemize environment, and between items.  And also
minimum space between lines.   I'm using the Arial font, so as to most
closely approximate the MS Word original.

How can I do this?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 cases type environment using a right brace?

2011-07-20 Thread Alasdair McAndrew
Thanks so much, Aditya- works perfectly!

-Alasdair

On Thu, Jul 21, 2011 at 1:50 PM, Aditya Mahajan adit...@umich.edu wrote:

 On Thu, 21 Jul 2011, Alasdair McAndrew wrote:

  I'm trying to typeset a small column of numbers with a right brace on the
 right, and nothing on the left.  (Sort of like the opposite to the right
 hand side of a cases environment).  I've tried:


 (untested)


  \definemathmatrix[group][left=**{},right={\,\right\} }]


 \definemathmatrix[group][left=**{\left.}, right={\,\right\}}]


  \startgroup
   10\NR 9\NR 8\NR
 \stopgroup


 \startgroup
  \NC 10 \NR
  \NC 9  \NR
  \NC 8  \NR
 \stopgroup

 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 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : 
 http://foundry.supelec.fr/**projects/contextrev/http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __**__**
 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] mathalignment within a table - help needed!

2011-05-13 Thread Alasdair McAndrew
Hello,

I'm trying to typeset some linear algebra exercises for my students; the
exercises will be within a table, and each second element will be a system
of linear equations.  This sort of thing:

\starttable[|l|M|l|M|]
\NC (a) \NC %

\startmathalignment[n=7,align={right,middle,right,middle,right,middle,right}]
  \NC 3x\NC +\NC 6y\NC -\NC 2z\NC =\NC -13\NR
  \NC -6x\NC -\NC 9y\NC +\NC 5z\NC =\NC 22\NR
  \NC 3x\NC +\NC 3y\NC -\NC 5z\NC =\NC -13\NR
\stopmathalignment
\NC (b) \NC %

\startmathalignment[n=7,align={right,middle,right,middle,right,middle,right}]
\NC x\NC +\NC 3y\NC +\NC 3z\NC =\NC -4\NR
\NC x\NC +\NC 4y\NC +\NC 5z\NC =\NC -5\NR
\NC 2x\NC +\NC 4y\NC +\NC 3z\NC =\NC -5\NR
\stopmathalignment
\NC\AR
\stoptable

But this doesn't work.  There seems to be a problem with the mathalignment
environment within the table.  What do I need enclose these in so that they
will be treated as displayed equations within the table environment?  I'm
using MkII.

Thanks,
Alasdair

-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] mathalignment within a table - help needed!

2011-05-13 Thread Alasdair McAndrew
Thanks, the framed bit is fine, except that the base of the frame is aligned
with the exercise number (a), whereas I'd like the top line of the
equations aligned with the (a)...

I'll keep fiddling.  This is one of those occasions which makes the
conversion from LaTeX to ConTeXt tricky for a beginner!

Thanks again,
Alasdair

On Sat, May 14, 2011 at 11:23 AM, Aditya Mahajan adit...@umich.edu wrote:

 On Sat, 14 May 2011, Alasdair McAndrew wrote:

  Hello,

 I'm trying to typeset some linear algebra exercises for my students; the
 exercises will be within a table, and each second element will be a system
 of linear equations.  This sort of thing:

 \starttable[|l|M|l|M|]
 \NC (a) \NC %


 \startmathalignment[n=7,align={right,middle,right,middle,right,middle,right}]
 \NC 3x\NC +\NC 6y\NC -\NC 2z\NC =\NC -13\NR
 \NC -6x\NC -\NC 9y\NC +\NC 5z\NC =\NC 22\NR
 \NC 3x\NC +\NC 3y\NC -\NC 5z\NC =\NC -13\NR
   \stopmathalignment
 \NC (b) \NC %


 \startmathalignment[n=7,align={right,middle,right,middle,right,middle,right}]
 \NC x\NC +\NC 3y\NC +\NC 3z\NC =\NC -4\NR
 \NC x\NC +\NC 4y\NC +\NC 5z\NC =\NC -5\NR
 \NC 2x\NC +\NC 4y\NC +\NC 3z\NC =\NC -5\NR
 \stopmathalignment
 \NC\AR
 \stoptable

 But this doesn't work.  There seems to be a problem with the mathalignment
 environment within the table.  What do I need enclose these in so that
 they
 will be treated as displayed equations within the table environment?


 (Untested): \framed[align=normal,width=fit]{\startformula
 \startmathalignment ... \stopmathalignment \stopformula}

 math alignment is a display math environment, and must be inside a
 \startformula ... \stopformula.

 Two comments:

 1. You know about \definemathalignment, right?
 2. I think that this effect can be obtained more easily using

 \startitemize[two,columns,a]
  \item ...
  \item ..
 \stopitemize

 but you might need to insert a negative \vskip (or \blank) to get matrix to
 align with the item symbol.

 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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Multiplication table (with lines) in ConTeXt?

2011-05-04 Thread Alasdair McAndrew
 It looks like it should work, but when I try it I get a very squashed
table, with lines between all rows and columns...  FWIW, I'm using MKII:

ConTeXt  ver: 2011.02.25 22:03 MKII  fmt: 2011.3.14  int: english/english

-Alasdair

On Wed, May 4, 2011 at 5:05 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 04.05.2011 um 06:45 schrieb Aditya Mahajan:

  \startsetups table:frame
  \setupTABLE[each][each][frame=off, align=middle]
  \setupTABLE[row][first][bottomframe=on]
  \setupTABLE[column][first][rightframe=on]
  \stopsetups
 
  \startTABLE[setups=table:frame]
  \NC $\times$ \NC 1 \NC 2 \NC ... \NC \NR
  
  \stopTABLE

 and for the lazy people:

 \starttext

 \startsetups table:multiplication
  \setupTABLE[each][each][frame=off,align=middle,width=2em,height=2em]
   \setupTABLE[row][first][bottomframe=on]
  \setupTABLE[column][first][rightframe=on]
 \stopsetups

 \startluacode
 context.bTABLE{setups=table:multiplication}
 for i=0,6 do
context.bTR()
for j=0,6 do
context.bTD()
if i==0 and j==0 then
context(×)
elseif i==0 or j==0 then
context(i+j)
else
context(i*j)
end
context.eTD()
end
context.eTR()
 end
 context.eTABLE()
 \stopluacode

 \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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Multiplication table (with lines) in ConTeXt?

2011-05-04 Thread Alasdair McAndrew
I gave the mod 7 table as an example; what I in fact want to display is the
Cayley table for the dihedral group D_4.

By the way - how do I upgrade to Mk IV?  I just downloaded the installer for
ConTeXt Minimals and let it do its thing.

This is getting very complicated...

-Alasdair

On Wed, May 4, 2011 at 8:43 PM, Paul Menzel 
paulepan...@users.sourceforge.net wrote:

 Am Mittwoch, den 04.05.2011, 09:05 +0200 schrieb Wolfgang Schuster:
  Am 04.05.2011 um 06:45 schrieb Aditya Mahajan:
 
   \startsetups table:frame
   \setupTABLE[each][each][frame=off, align=middle]
   \setupTABLE[row][first][bottomframe=on]
   \setupTABLE[column][first][rightframe=on]
   \stopsetups
  
   \startTABLE[setups=table:frame]
   \NC $\times$ \NC 1 \NC 2 \NC ... \NC \NR
   
   \stopTABLE
 
  and for the lazy people:
 
  \starttext
 
  \startsetups table:multiplication
\setupTABLE[each][each][frame=off,align=middle,width=2em,height=2em]
\setupTABLE[row][first][bottomframe=on]
\setupTABLE[column][first][rightframe=on]
  \stopsetups
 
  \startluacode
  context.bTABLE{setups=table:multiplication}
  for i=0,6 do
context.bTR()
for j=0,6 do
context.bTD()
if i==0 and j==0 then
context(×)
elseif i==0 or j==0 then
context(i+j)
else
context(i*j)

 Alasdair takes modula 7 if I understood correctly. So it can be

 if i*j  7 then
context(i*j)
 else
context((i*j) % 7)
 end

 (Nice symmetry in the resulting table.)

end
context.eTD()
end
context.eTR()
  end
  context.eTABLE()
  \stopluacode
 
  \stoptext

 Thank you Wolfang, I just wanted to reply and recommend using Lua. As
 always you were too fast. ;-)


 Thanks,

 Paul


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

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/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] Still wrestling with multiplication tables

2011-05-04 Thread Alasdair McAndrew
Hello again,

So I decide to try with tables:

  \starttable[|m|m|m|m|m|m|m|m|m|]
\NC \VL I\NC R\NC R^2\NC R^3\NC F\NC FR\NC FR^2\NC FR^3\AR
\HL
\NC I \VL I\NC R\NC R^2\NC R^3\NC F\NC FR\NC FR^2\NC FR^3\NR
\NC R\VL R\NC R^2\NC R^3\NC I\NC FR\NC FR^2\NC FR^3\NC F\NR
\NC R^2\VL R^2\NC R^3\NC I\NC R\NC FR^2\NC FR^3\NC F\NC FR\NR
\NC R^3\VL R^3\NC I\NC R\NC R^2\NC FR^3\NC F\NC FR\NC FR^2\NR
\NC F\VL F\NC FR^3\NC FR^2\NC FR\NC I\NC R^3\NC R^2\NC R\NR
\NC FR\VL FR\NC F\NC FR^3\NC FR^2\NC R\NC I\NC R^3\NC R^2\NR
\NC FR^2\VL FR^2\NC FR\NC F\NC FR^3\NC R^2\NC R\NC I\NC R^3\NR
\NC FR^3\VL FR^3\NC FR^2\NC FR\NC F\NC R^3\NC R^2\NC R\NC I\NR
  \stoptable

This almost works, yet in the pdf output (texexec), there's an extra
column at the right full of [missing column].  What's going on here?

Actually, so far the best I've managed to do was to whip up a plain basic
array, and then insert two lines with TiKZ.  Clumsy, but so far it's the
only thing I've got to work...

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Still wrestling with multiplication tables

2011-05-04 Thread Alasdair McAndrew
On Wed, May 4, 2011 at 11:41 PM, Aditya Mahajan adit...@umich.edu wrote:


 On May 4, 2011, at 9:35 AM, Alasdair McAndrew amc...@gmail.com wrote:

  Hello again,
 
  So I decide to try with tables:
 
\starttable[|m|m|m|m|m|m|m|m|m|]
  \NC \VL I\NC R\NC R^2\NC R^3\NC F\NC FR\NC FR^2\NC FR^3\AR
  \HL
  \NC I \VL I\NC R\NC R^2\NC R^3\NC F\NC FR\NC FR^2\NC FR^3\NR
  \NC R\VL R\NC R^2\NC R^3\NC I\NC FR\NC FR^2\NC FR^3\NC F\NR
  \NC R^2\VL R^2\NC R^3\NC I\NC R\NC FR^2\NC FR^3\NC F\NC FR\NR
  \NC R^3\VL R^3\NC I\NC R\NC R^2\NC FR^3\NC F\NC FR\NC FR^2\NR
  \NC F\VL F\NC FR^3\NC FR^2\NC FR\NC I\NC R^3\NC R^2\NC R\NR
  \NC FR\VL FR\NC F\NC FR^3\NC FR^2\NC R\NC I\NC R^3\NC R^2\NR
  \NC FR^2\VL FR^2\NC FR\NC F\NC FR^3\NC R^2\NC R\NC I\NC R^3\NR
  \NC FR^3\VL FR^3\NC FR^2\NC FR\NC F\NC R^3\NC R^2\NC R\NC I\NR
\stoptable
 
  This almost works, yet in the pdf output (texexec), there's an extra
 column at the right full of [missing column].  What's going on here?

 The syntax for tables is

 \NC ... \NC ...\NC \NR


 You are missing the last \NC

 Aditya


Yay - that works beautifully!  (Even better if I finish each row with
\NC\AR).

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Multiplication table (with lines) in ConTeXt?

2011-05-03 Thread Alasdair McAndrew
I want to typeset a multiplication table, where there will be a horizontal
line after the first row, and a vertical line after the first column.  In
LaTeX, I can use:

\[
\begin{array}{c|ccc}
  \times0123456\\
  \hline
  \\
  10123456\\
  20246135\\
  30362514\\
  40415263\\
  50531642\\
  60654321
\end{array}
\]

What is the canonical way of including lines in a mathematical array in
ConTeXt?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Skipping item numbers in an itemized list?

2011-04-27 Thread Alasdair McAndrew
Hello,

The effect I want is something like:

1. First item
2. Second item
5. Fifth item
6. Sixth item
8. Eight item

and so on.  Every now and then I need to skip a number or two.  In LaTeX I
could do this with \addtocounter{enumi}{2} - but how is this done in
ConTeXt?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Skipping item numbers in an itemized list?

2011-04-27 Thread Alasdair McAndrew
Thanks all, for your answers and discussion to my query.  For the record,
I'm writing up answers to a long list of questions, some of which don't need
a written answer (just asking the reader to observe something).  A quick
check has verified than \noitem does exactly what I want.

Thanks again,
Alasdair

On Thu, Apr 28, 2011 at 3:33 AM, Ulrike Fischer ne...@nililand.de wrote:

 Am Wed, 27 Apr 2011 11:21:31 -0400 (EDT) schrieb Aditya Mahajan:


  and so on.  Every now and then I need to skip a number or two.
  In LaTeX I could do this with \addtocounter{enumi}{2} - but how
  is this done in ConTeXt?

  \starttext
 
  \startitemize
  \sym{1.} First item
  \sym{2.} Second item
  \sym{5.} Fifth item
  \sym{6.} Sixth item
  \sym{8.} Eight item
  \stopitemize
 
  \stoptext

  You can't be serious ;-). Do you really think one should enter all
  numbers manually only because someone wants to skip e.g. the number
  13?
 
  You can't be serious ;) Do you really think that one should manually
  increment a counter. What's next: using {\bfa Some title} for section
  titles?'
 
  More seriously, if there is a logic behind such a counter,

 Well I have long stopped to wonder why people sometimes needs
 holes in a numbered list. It sometimes happens. Perhaps the OP
 want to make a list of name of occupants of houses where some
 numbers haven't yet been assigned.

  then you can use:

  \defineconversion[fancy][1,2,5,6,8]

 This is ok if the complete list is not too long and when you know
 which numbers the holes should have, but I would suspect that
 Alasdair want to be able to increment somewhere the actual counter
 by 1 or 2 without having to check the actual number first.



  There is no interface to increment the counter by arbitrary amount, but
  you can define your own interface to structures.counters.add:
 
  \unprotected
  \def\addtostructurecounter  [#1]#2{\ctxlua{structures.counters.add
  (\@@thestructurecounter{#1},1,#2)}}
 
  and then use
 
 \addtostructurecounter[\currentitemgroupcounter]{2}


 I would say that's what Alasdair wants.


 --
 Ulrike Fischer


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

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/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] Inline verbatim?

2011-04-27 Thread Alasdair McAndrew
Is there a ConTeXt version of the LaTeX \verb command, for inline typsetting
of code fragments?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Inline verbatim?

2011-04-27 Thread Alasdair McAndrew
Thanks very much!

-Alasdair

On Thu, Apr 28, 2011 at 1:53 PM, Aditya Mahajan adit...@umich.edu wrote:

 On Thu, 28 Apr 2011, Alasdair McAndrew wrote:

  Is there a ConTeXt version of the LaTeX \verb command, for inline
 typsetting
 of code fragments?


 \type{...} or \type|...| (or any other character, just like \verb)

 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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Augmented matrix?

2011-04-18 Thread Alasdair McAndrew
How can I typeset an augmented matrix, that is, a matrix where some columns
are separated by a vertical line?  \VL doesn't seem to work within a
formula.

Thanks very much!

cheers,
Alasdair

-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Typesetting url's in ConTeXt?

2011-04-09 Thread Alasdair McAndrew
There's a wiki page all about typesetting url's, but I can't seem to get
them to work.  All I want to do is to display a url in a typewriter font,
for document printing - I don't need a live link. What I want is for the
output to be similar to that provided by LaTeX's url package, so that, for
example: \url{https://This_is_a_url.html} would be appropriately typeset,
including all such ascii characters as underscores.

What's the canonical way to do this?

Thanks,
Alasdair

-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Trouble with columns

2011-03-30 Thread Alasdair McAndrew
I was setting up a test for my students, consisting of one page (A4
landscape), three columns.  Each column consisted of a question, below which
there was an empty frame in which to write the answer.  The layout then was
something like
--
\startcolumns[n=3]
\startitemize[n]
\item First question

\framed[height=10cm width=\textwidth]{}

\column

\item Second question

\framed[height=10cm width=\textwidth]{}

\column

\item Third question

\framed[height=10cm width=\textwidth]{}

\stopitemize
\stopcolumns
--

All well and good - except!  the second \column command pushed the third
column onto a second page.  However without that \column, no matter what
parameters I gave the page layout, the third question text would appear at
the bottom of the second column.  I ended up getting around this by putting
a \vskip3cm in place of the second \column.  This worked, but seems like
an ugly workaround.

What's going on here - and what am I doing wrong?

Thanks,
Alasdair



-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Wrong cross references

2011-03-25 Thread Alasdair McAndrew
I have seen this discussed once somewhere else, but I can't find it.  Here's
the problem: two equations in my document have been given numbers (1) and
(2), but the references to them come up as (2) and (3) respectively.  I have
used:

\definereferenceformat [ineqn] [left=(,right=),text=equation]

to obtain their references.

What is going on here?  And is there an easier way to obtain parentheses
around a reference number, so that we see from equation (6) instead of we
see from equation 6?

Thanks
Alasdair

-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Wrong cross references

2011-03-25 Thread Alasdair McAndrew
Sorted it - turns out I inadvertently used the same label for a formula and
a figure.  I've made all my labels distinct and the problem has gone.  Sorry
for wasting your bandwidth.

-Alasdair

On Sat, Mar 26, 2011 at 9:09 AM, Aditya Mahajan adit...@umich.edu wrote:

 On Sat, 26 Mar 2011, Alasdair McAndrew wrote:

  I have seen this discussed once somewhere else, but I can't find it.
  Here's
 the problem: two equations in my document have been given numbers (1) and
 (2), but the references to them come up as (2) and (3) respectively.  I
 have
 used:

 \definereferenceformat [ineqn] [left=(,right=),text=equation]

 to obtain their references.

 What is going on here?


 A minimal example is needed.


   And is there an easier way to obtain parentheses
 around a reference number, so that we see from equation (6) instead of
 we
 see from equation 6?


 \definereferenceformat is the correct way to do this.

 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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Ideas for restructuring the ConTeXt garden?

2011-03-14 Thread Alasdair McAndrew
Yes, I see that would be a non-trivial problem.  Maybe as a stop-gap some
ConTeXt files could be provided which at least roughly emulate a few
standard LaTeX styles?

-Alasdair

On Mon, Mar 14, 2011 at 3:54 PM, Aditya Mahajan adit...@umich.edu wrote:

 On Mon, 14 Mar 2011, Alasdair McAndrew wrote:

  For example. the LaTeX ieee.sty is available at
 http://delphiwww.cern.ch/delphi$www/private/det/stc/ieee94/mp/ieee.styand
 ACM styles at http://www.acm.org/publications/latex_style/.  How hard
 would
 it be to emulate these in ConTeXt?


 The hard part is figuring out the values (font size, spaces after sections,
 etc) from the LaTeX code. It is difficult to look at
 http://mirror.hmc.edu/ctan/macros/latex/contrib/IEEEtran/IEEEtran.cls and
 figure out what is the title size for a 10pt document, or how much space
 should come between the author block and the start of the two column text,
 etc.

 Reverse engineering these values is no fun. That is why I am saying that an
 *exact and complete* spec is 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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Ideas for restructuring the ConTeXt garden?

2011-03-14 Thread Alasdair McAndrew
FWIW, specifications of standard LaTeX styles can be found
herehttp://www.tug.org/texlive/devsrc/Master/texmf-dist/doc/latex/base/classes.pdf.
It's a closely written 66 page document.

-Alasdair

On Mon, Mar 14, 2011 at 8:17 PM, Martin Schröder mar...@oneiros.de wrote:

 2011/3/14 Aditya Mahajan adit...@umich.edu:
  The hard part is figuring out the values (font size, spaces after
 sections,
  etc) from the LaTeX code. It is difficult to look at
  http://mirror.hmc.edu/ctan/macros/latex/contrib/IEEEtran/IEEEtran.clsand
  figure out what is the title size for a 10pt document, or how much space
  should come between the author block and the start of the two column
 text,
  etc.

 Erm - is that really needed? Today a typical journal's workflow should
 accept articles in LaTeX _markup_, convert that to XML and feed it to an
 XML formatter (which may well use TeX) eventually. I see ConTeXt's role
 there as the XML formatter. Or it could digest LaTeX markup - but then
 it would need more than just the layout.

 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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Ideas for restructuring the ConTeXt garden?

2011-03-13 Thread Alasdair McAndrew
Speaking as a raw ConTeXt beginner, I would find it very helpful to have a
library of different styles: LaTeX, journal, conference and book styles.
Although all the information is probably there, it is very scattered around
though manuals, the wiki, and other documents, and so is in consequence not
always easy to find.

cheers,
Alasdair

On Mon, Mar 14, 2011 at 7:34 AM, Aditya Mahajan adit...@umich.edu wrote:

 On Sat, 12 Mar 2011, Henry House wrote:

  Procházka Lukáš wrote:
 [...]

 5) how to better promote context to new/latex users?


 For LaTeX incomers: it would be good to provide a sample setup (module?)
 which would make Ctx generated .pdf looking very closely to that been
 generated by LaTeX.

 Now, if you see a .pdf document and you are familiar with LaTeX, you
 recognize immediately whether or not it was generated by LaTeX (Word's
 signature is also unmatchable).


 I don't think that we should try to copy that style.


  The perfect feature of ConTeXt is that all these features may be
 systematically altered (often [almost] impossible in LaTeX) but you must
 search enough and study (and maybe ask the forum) to get the result which
 would fulfil your aesthetic requirements.


 I strongly agree that sample set-up code (ideally well-commented so that
 it also serves as a tutorial of sorts) to reproduce the style of LaTeX
 would be helpful.


 A better idea will be to show how to create ConTeXt style files for well
 defined styles e.g., style for some journal, say AMS or IEEE, or even the
 style of LaTeX (if someone can point out its exact specification)


  The appearance of LaTeX documents isn't perfect but it
 produces reasonably high-quality results suitable for complex technical
 documents right out of the box of the box without any tweaking, whereas
 ConTeXt requires (at least it did for me) some trouble to set it up for
 the first time. To some extent this is not because of the merit of the
 LaTeX design itself but the fact that it is familiar and therefore
 highly readable to someone used to reading it. It is also the point of
 departure for a LaTeX user wanting to convert to using ConTeXt; hence, i
 would imagine many such people would prefer to tweak a LaTeX-like
 document appearance to better suit their needs rather than starting with
 something quite different. Certainly, this was the case for me; being
 basically satisfied with my LaTeX documents but wanting more control and
 the option to use the advanced features of ConTeXt. Having sample set-up
 code that emulated LaTeX would have eased the initial transition for me.


 I agree, partially. One of the difficulties in getting a good design with
 ConTeXt is that you should know what a good design is! It you have a
 pre-specified style guideline, then it is easy to reproduce it in ConTeXt.
 If not, you can be stuck up experimenting whether you the space above a
 section be twice as big the space below it or the other way round.

 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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Ideas for restructuring the ConTeXt garden?

2011-03-13 Thread Alasdair McAndrew
For example. the LaTeX ieee.sty is available at
http://delphiwww.cern.ch/delphi$www/private/det/stc/ieee94/mp/ieee.sty and
ACM styles at http://www.acm.org/publications/latex_style/.  How hard would
it be to emulate these in ConTeXt?

-Alasdair

On Mon, Mar 14, 2011 at 2:32 PM, mathew m...@pobox.com wrote:

 On Sun, Mar 13, 2011 at 19:07, Alasdair McAndrew amc...@gmail.com wrote:
  Speaking as a raw ConTeXt beginner, I would find it very helpful to have
 a
  library of different styles: LaTeX, journal, conference and book styles.

 This is what I've been setting out to do, build a set of examples. So
 far I've got a custom font example (posted for comment last week) and
 a personal letter template.

 I looked at the letter package, but that's far too general. I wanted
 something simple and self-contained that I could take and modify, not
 a framework.

 So yes, a set of examples of layouts is exactly what I would be likely
 to use myself.


 mathew

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

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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Making all bold faced text colored?

2011-03-11 Thread Alasdair McAndrew
In some overheads, I'd like all bold-faced font to appear in a given color,
say red.  How do I set this up, so that {\bf some text} will display some
text in red?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Making all bold faced text colored?

2011-03-11 Thread Alasdair McAndrew
Thank you very much - that makes sense!

I'm moving slowly to ConTeXt after many years of LaTeX - so expect lots of
elementary questions from me, at least initially!

Thanks again,
Alasdair

On Fri, Mar 11, 2011 at 10:30 PM, Hans Hagen pra...@wxs.nl wrote:

 On 11-3-2011 12:03, Alasdair McAndrew wrote:

 In some overheads, I'd like all bold-faced font to appear in a given
 color,
 say red.  How do I set this up, so that {\bf some text} will display some
 text in red?


 Fonts and colors are unrelated properties (and always will be in context).
 The way to go is abstraction:

 \definestartstop[important][color=red,style=bold]

 test {\important test} or \important{test} test ...


 -
  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] Itemize not breaking across pages?

2011-03-11 Thread Alasdair McAndrew
Thank you - that works fine; especially the first, in which the problems
read in order across, rather than down in columns.

cheers,
Alasdair

On Sat, Mar 12, 2011 at 6:05 AM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 11.03.2011 um 04:07 schrieb Alasdair McAndrew:

  The trouble arises when I put my tables into narrower, framedtext so as
 to be able to force proper indentation:

 Use tabulate.

 \starttext

 \startitemize[n]
 \dorecurse{20}
  {\item This is a test
\starttabulate[|*{8}{l|}]
\NC (a) \NC Problem 1
   \NC (b) \NC Problem 2
   \NC (c) \NC Problem 3
   \NC (d) \NC Problem 4 \NC\NR
\TB[3mm]
\NC (e) \NC Problem 5
   \NC (f) \NC Problem 6
   \NC (g) \NC Problem 7
   \NC (h) \NC Problem 8 \NC\NR
\stoptabulate}
  \stopitemize

 \page

 \startitemize[n]
 \dorecurse{20}
  {\startitem Some text
 \startitemize[a,columns,four,unpacked][left=(,right=),stopper=]
 \dorecurse{8}{\startitem Problem \recurselevel \stopitem}
 \stopitemize
   \stopitem}
 \stopitemize

 \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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Itemize not breaking across pages?

2011-03-10 Thread Alasdair McAndrew
The trouble arises when I put my tables into narrower, framedtext so as to
be able to force proper indentation:

\starttext

\startitemize[n]
\dorecurse{20}{\item This is a test

\startnarrower[left]
\startframedtext[frame=off,offset=overlay]
\starttables[|l|l|l|l|l|l|l|l|]
  \NC (a) \NC Problem 1
  \NC (b) \NC Problem 2
  \NC (c) \NC Problem 3
  \NC (d) \NC Problem 4 \NC\NR
  \noalign{\blank[3mm]}
  \NC (e) \NC Problem 5
  \NC (f) \NC Problem 6
  \NC (g) \NC Problem 7
  \NC (h) \NC Problem 8 \NC\NR
\stoptables
 \stopframedtext
\stopnarrower}

\stopitemize

\stoptext

On the other hand, the file:

\starttext

\startitemize[n]
\dorecurse{20}{\item This is a test

\starttables[|l|l|l|l|l|l|l|l|]
  \NC (a) \NC Problem 1
  \NC (b) \NC Problem 2
  \NC (c) \NC Problem 3
  \NC (d) \NC Problem 4 \NC\NR
  \noalign{\blank[3mm]}
  \NC (e) \NC Problem 5
  \NC (f) \NC Problem 6
  \NC (g) \NC Problem 7
  \NC (h) \NC Problem 8 \NC\NR
\stoptables}

\stopitemize

\stoptext

breaks across pages properly, but the tables aren't properly aligned at the
left.

cheers,
Alasdair


On Thu, Mar 10, 2011 at 9:01 PM, Hans Hagen pra...@wxs.nl wrote:

 On 10-3-2011 8:10, Alasdair McAndrew wrote:

 I am setting up notes and exercises for my students.  Each set of
 exercises
 is in an itemize environment, and each \item consists of a table of
 problems.  The trouble is, the itemize doesn't break across pages - I have
 to put manual page breaks in.


 small example needed

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




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Itemize not breaking across pages?

2011-03-09 Thread Alasdair McAndrew
I am setting up notes and exercises for my students.  Each set of exercises
is in an itemize environment, and each \item consists of a table of
problems.  The trouble is, the itemize doesn't break across pages - I have
to put manual page breaks in.

How can I encourage automatic page-breaks?

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

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