[NTG-context] Text for proofing fonts

2020-05-19 Thread Pavneet Arora
Hope all are keeping well.

An interesting article about text for proofing fonts, although, 
regrettably, it is focused on English language only:

https://www.typography.com/blog/text-for-proofing-fonts

Might be worth a further look to see if they can be included in the 
distribution to expand our library of such texts.  The texts are on 
github, but no mention of license:

https://github.com/hoeflerco/proofs

I am adding at least the links to staged wiki changes I am working on.

Warm regards.

-- 
Pavneet Arora   m: +1 647-406-6843
Waroc Informatike: pavneet_ar...@waroc.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Tent style cards

2019-12-22 Thread Pavneet Arora
Many thanks Wolfgang and Pablo.

And, Hans, I have already included this example for the Cookbook (with 
the three differing solution), as you will see from the path name of the 
attached PDF :).

Wolfgang, I just used your first solution, and it worked great.  I don't 
know whether the mailing-list daemon will let through a PDF, but I am 
enclosing the current (almost final) version of the table place card 
(with my daughter's name).

The figure to the left is an Apollonius Gasket of tangential circles 
made with MetaPost signifying all the family connections that each 
partner brings in creating a new union.  The code is from Denis Roegel, 
who quickly responded when I was unable to piece together a working 
example from his 2005 TUGboat article:

https://www.tug.org/TUGboat/tb26-1/tb82roegel.pdf

I've resorted to layers with explicit positioning for now, as well as 
having to compile the MetaPost explicitly and then hand edit out all 
references to cmmr in the resulting PS, but at least I have a working 
template.

If there are other suggestions to better optimize, I'm all ears.  In 
particular I would like to place each name vertically centred in right 
one-third of the card, as well as using \startuseMPgraphic for direct 
compilation from ConTeXt.

Many thanks for all the help.

>>> SNIPPET <<<

\startbuffer[tblcard]
\strut
\definelayer[tblplacecard]
\setlayer[tblplacecard][x=-1em,y=1em]{%
\externalfigure[figures/apollonius/apollonius.103][width=2.0in]}
\switchtobodyfont[nameface]
\setlayer[tblplacecard][x=10em,y=3.0em]%
{\tfg\it\color[orangered]{Vidya}}
\flushlayer[tblplacecard]
\stopbuffer

\starttext
\setupcolors[state=start]

%%% 1. Show the frame and layout information.
\showframe
%\showsetups
%\showlayout

\getbuffer[tblcard]
\page
\getbuffer[tblcard]
\stoptext

On 22Dec19, Wolfgang Schuster wrote:
>
> \setuparranging[1*2-Conference]

-- 
Pavneet Arora   m: +1 647-406-6843
Waroc Informatike: pavneet_ar...@waroc.com


tblplacecards.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Tent style cards

2019-12-21 Thread Pavneet Arora
Hello.

I am trying to do up some tent style table place holder cards for my 
daughter's wedding, and have been wracking my brain for a solution for a 
couple of days now.

Having tried many alternatives, this is the closest I have come up with.  
But mirroring doesn't work.  If I use \setuparranging[2*4] mirroring 
works, but I only need tent style (1*2 head-to-head) so that I can trim 
to size.

Any template that could be suggested would be most helpful as the 
wedding is on Mon (yikes!).

advTHANKSance.

>>>MWE<<<

\definepapersize[tblcard][width=4in,height=3in]

\setuppapersize[tblcard][letter,portrait]
\setuparranging[2TOP]

\setuplayout[
height=3in,
width=4in,
topspace=0in,
header=0in,
bottomspace=0in,
footer=0in,
backspace=0.0in,
%%
location=middle,
marking=on,
]

\startbuffer[tblcard]
\strut
\tfd A Name
\stopbuffer

\starttext
\showframe
\adaptpapersize[tblcard,mirrored][letter,portrait]\getbuffer[tblcard]
\page
\getbuffer[tblcard]
\stoptext

-- 
Pavneet Arora   m: +1 647-406-6843
Waroc Informatike: pavneet_ar...@waroc.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Inline stacking of text

2017-03-11 Thread Pavneet Arora
Really simple problem that has had me bashing my head for a while, so I 
thought that I would reach out and ask for help:

I need to create large type title/sub-title combinations in-line.  I 
need the sub-titles to be stacked so that they share the same baseline 
as the title.  Unfortunately, I cannot seem to get the baseline 
alignment to work.

Also, I seem to have to add the '\setupwhitespace[-1.0em] to squish the 
lines together.  Is there a better way?

Appreciate any guidance.

advTHANKSance.

MWE--8<

\setuppapersize[letter,portrait]

\definefontfamily[mainface][rm][Latin Modern]
\definefontfamily[mainface][ss][Latin Sans]
\definefontfamily[mainface][mm][Latin Modern Math]
\setupbodyfont[mainface,80pt]

\setupinterlinespace[line=2.2ex]
\setupwhitespace[none]

\starttext
\definedfont[Sans at 50pt]{TITLE---}%
\framed[frame=off,location=middle,align=flushleft]{%
\definedfont[Sans at 
25pt]\setupinterlinespace\setupwhitespace[-1.0em]{SUB-TITLE\\ SUB-TITLE}}%
\stoptext

->8


-- 
Pavneet Arora   m: +1 (647) 406-6843
Waroc Informatikt: +1 (416) 937-9276
___
If your question is of interest to others as well, please add an 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] Ka-Pow comic book effect?

2016-07-18 Thread Pavneet Arora
Would anyone have a template on how to create a comic book “Ka-Pow” effect (or 
something similar) as per:

http://thumb101.shutterstock.com/display_pic_with_logo/752857/180152483/stock-vector-ka-pow-comic-speech-bubble-cartoon-180152483.jpg

I would like to use it for one of my slides for my talk at TUG 2016.

advTHANKSance

Pavneet Arora
m: +1 (647) 406-6843
e: pavneet_ar...@waroc.com

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

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

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-07-11 Thread Pavneet Arora
In principle this is workable up to the point that the output PDF needs to be 
handed off to the user.  In my case, it is the (authenticated) parent who is 
requesting their child’s report card in one of two forms each of which is 
created dynamically at any point along the school “term”.  The user is waiting 
for the output PDF from the browser.  In Laravel this is accomplished by using:

return response()->download($full_output_filename)->deleteFileAfterSend(true);

whereupon the end user sees the familiar Open, Save, … dialogue.

But the dispatcher pattern is very useful, and I like it very much.  In another 
area, I use it to monitor a directory for forms input, which are done off-line 
on W10 tablets using a browser and the Mongoose lightweight httpd, and then 
uploaded using sftp (under Cygwin). 

Thanks, again, for the suggestions.

Pavneet Arora
m: +1 (647) 406-6843
e: pavneet_ar...@waroc.com

From: luigi scarso___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Invoking ConTeXt from inside php web appliction

2016-07-09 Thread Pavneet Arora
I believe that public in this case refers to public assets such as CSS, js, 
etc., where one puts custom files rather than publicly accessible, e.g., 
wp-uploads for WordPress.  In the case of most frameworks, URL access is 
limited to specified routes only which point to controller methods.  ConTeXt, 
when installed in this manner,  can only be run as www-data:www-data, i.e., by 
httpd.

I wasn’t able to get it work using any of the other suggestions.  Is there 
another template you can suggest?

Pavneet Arora
m: +1 (647) 406-6843
e: pavneet_ar...@waroc.com

From: Henning Hraban Ramm___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] tug.org/interview: Pavneet Arora

2016-07-09 Thread Pavneet Arora
Thanks for the kind words, Luigi.  Glad you enjoyed the interview.  It is
a bit unsettling to find that you have revealed so much about yourself ;).
 Dave is an excellent interviewer.

Regards.

> Nice interview especially (at least for me) the answer to the question

-- 
Pavneet Arora   m: 647.406.6843
Waroc Informatikw: 416.937.9276




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Invoking ConTeXt from inside php web appliction

2016-07-09 Thread Pavneet Arora
Dear Hraban,

Sorry that this has taken me so long.  The report card application has
been deployed, and although I am still going through and resolving minor
bugs, it is very much in use (350 students leaving on Tu who already have
their foundation work marked and commented within the system; output via
ConTeXt).

Anyway, I have updated the Wiki, but am unsure if I missed anything. So
can everyone have a look and let me know:

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

Regards.

> Henning Hraban Ramm texml at fiee.net
> Fri Jun 17 20:49:11 CEST 2016
>
>  Please document this in the wiki (I had similar problems, should have
done it at that time…)


-- 
Pavneet Arora   m: 647.406.6843
Waroc Informatikw: 416.937.9276




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Pavneet Arora
Ah, we were thinking along the same lines! ;)

I had just initiated a local install inside .../www/public when I 
received your email, which is in fact the DocumentRoot for this website, 
and did:

$ chmod -R www-data:www-data context

So ConTeXt is installed in .../www/public/context.

Now I can source:

  $ . .../www/public/context/tex/setuptex .../www/public/context/tex

and it all works.

Many thanks, Luigi, for all of your suggestions.

On 17Jun16, luigi scarso wrote:
> (off list)
> 
> On Fri, Jun 17, 2016 at 3:39 PM, Pavneet Arora <pavneet_ar...@waroc.com>
> wrote:
> 
> > That is really the crux of the issue, since www-data does *not* have a
> > login shell.  It is used only by apache.
> >
> > Can setuptex be made to point to the home directory explicitly where the
> > website is housed, e.g., '/home/wwwuser' with user 'wwwuser'?
> >
> 
> Is it an option to make a context installation only for apache ?
> I mean a context that is owned by www-data (if this is the apache user),
> into a folder readable by apache.
> 
> -- 
> luigi

-- 
Pavneet Arora   m: +1 (647) 406-6843
Waroc Informatikt: +1 (416) 937-9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Pavneet Arora
That is really the crux of the issue, since www-data does *not* have a 
login shell.  It is used only by apache.

Can setuptex be made to point to the home directory explicitly where the 
website is housed, e.g., '/home/wwwuser' with user 'wwwuser'?

On 17Jun16, luigi scarso wrote:
> Is  texmf-cache writable by www-data ?
> When logged as  www-data, the cache writable should  be the
> /home/www-data/luatex-cache/<..> folder, while the standard one is used as
> readonly folder
> 
> Just make a test: in www-data home
> # . /opt/context/tex/setuptex /opt/context/tex
> then make a simple "Hello world" test.tex and  read the log.
> 

-- 
Pavneet Arora   m: +1 (647) 406-6843
Waroc Informatikt: +1 (416) 937-9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Pavneet Arora
Unfortunately, while the mtxrun command works for a shell user:

  $ mtxrun -script base --variables | grep cache
  resolvers   | lists |   env: $SELFAUTOPARENT/texmf-cache
  resolvers   | lists |   var: $SELFAUTOPARENT/texmf-cache
  resolvers   | lists |   exp: /opt/context/tex/texmf-cache
  resolvers   | lists |   res: /opt/context/tex/texmf-cache

the result is the same for www-data:

  $ sudo -u www-data bash -c ". /opt/context/tex/setuptex /opt/context/tex; 
mtxrun --script base --variables | grep cache"
  resolvers   | caches | fatal error: there is no valid writable cache path 
defined

I have to think that setuptex isn't able to set up the runtime 
environment for www-data, somehow?

On Fri, Jun 17, 2016 at 2:25 PM, Pavneet Arora 
wrote:

> That is what I suspect as well.  How do I find out which cache path is
> being used?
>
> Thanks.
>
>
$ mtxrun --script base --variables |grep cache


-- 
Pavneet Arora   m: +1 (647) 406-6843
Waroc Informatikt: +1 (416) 937-9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Pavneet Arora
That is what I suspect as well.  How do I find out which cache path is 
being used?

Thanks.

On 17Jun16, luigi scarso wrote:
> On Fri, Jun 17, 2016 at 2:16 PM, Pavneet Arora <pavneet_ar...@waroc.com>
> wrote:
...
> > > When I trap the output, I get the following error in the log file:
> >
> >   resolvers   | caches | fatal error: there is no valid writable cache
> > path defined
> >
> > I also attempted this manually at a bash prompt resulting in the same
> > error:
> >
> >   sudo -u www-data bash -c bin/proccontext.sh $FILENAME
> >
> > What would be the correct design pattern to invoke ConTeXt from a web
> > application?  This is all under Ubuntu 14.04, BTW.
> >
> > advTHANKSance
> >
> >
> permissions ?
> 
> -- 
> luigi

-- 
Pavneet Arora   m: +1 (647) 406-6843
Waroc Informatikt: +1 (416) 937-9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Orphans and widows for specific paragraph groups

2016-06-17 Thread Pavneet Arora
I tried to use Aditya's suggestion (which was for Natural Tables) to 
keep paragraphs on the same page:

  \noindent{\blank[samepage]}

but I don't seem to have much success with the MWE I posted earlier.

Try as a might, I cannot seem to keep the paragraph head "{\ss\tfc 
English (Grade 12)}" and the hairline together.  I can, however, keep 
the hairline and the following lorem text together, but I need all three 
elements to float as a group:  the paragraph header, hairline, and 
paragraph body.

Would anyone have any suggestions on how to accomplish this?

Many thanks.

On 09Jun16, Pavneet Arora wrote:
...

>>>> MWE

\definefontfamily[mainface][rm][Latin Modern Roman]
\definefontfamily[mainface][ss][Latin Modern Sans]
\definefontfamily[mainface][tt][Latin Modern Typewriter]
\definefontfamily[mainface][mm][Latin Modern Math]

\setupbodyfont[mainface,9pt]

% Set up default paragraph indenting and spacing.
\setupindenting[yes,
medium,
next]
\setupwhitespace[small]

% Set up paragraph environment for subject header.
\defineparagraphs 
[subjectpar][
n=2,
before={\blank[2*big]}]
\setupparagraphs
[subjectpar]
[1]
[width=.3\textwidth]

\starttext
\blank[8*big, force]
\dorecurse{10}{
\blank[2*big]
\noindentation
\startsubjectpar
{\ss\tfc ENG4U}
\subjectpar
%% Need to keep the following together as a unit.
{\ss\tfc English (Grade 12)}
\stopsubjectpar
\noindentation
\vskip-2em\hairline
\setupindenting[yes,
medium,
next]
\dorecurse{1}{
\input lorem.tex

}
}
\stoptext

<<<< MWE

-- 
Pavneet Arora   m: +1 (647) 406-6843
Waroc Informatikt: +1 (416) 937-9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Pavneet Arora
I am stuggling with getting ConTeXt to run from inside a php script 
under Apache.  First off, let me say that the installation works fine 
from the command line as a logged in user.

Initially, I tried to do it inline:

  cmd = ". /opt/context/tex/setuptex /opt/context/tex/setuptex; cd $spool_dir; 
context $full_input_filename";
  system($cmd);

which returns exit status 2, "Incorrect usage".

Then I created a small bash script with the following lines:

  #!/usr/bin/env bash

  . /opt/context/tex/setuptex /opt/context/tex
  context $1

When I trap the output, I get the following error in the log file:

  resolvers   | caches | fatal error: there is no valid writable cache path 
defined

I also attempted this manually at a bash prompt resulting in the same 
error:

  sudo -u www-data bash -c bin/proccontext.sh $FILENAME

What would be the correct design pattern to invoke ConTeXt from a web 
application?  This is all under Ubuntu 14.04, BTW.

advTHANKSance


-- 
Pavneet Arora   m: +1 (647) 406-6843
Waroc Informatikt: +1 (416) 937-9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Specifying font style variant with \definefontfamily

2016-06-09 Thread Pavneet Arora
I'm still a bit at a loss on how one goes about correctly specifying the 
variants in \definefontfamily using the default form given in the wiki.  
Usually adding "* Light", etc. is sufficient (see commented line using 
Junction font).

(As an aside, is it also possible to combine \sc\bf?  I haven't been 
able to figure that out).

My application is using the (free) Andada font family, and I need to 
point the smallcaps style to the correct font 
(https://www.fontsquirrel.com/fonts/andada).

In the following MWE I tried the following without success:

1.  [sc=* SC Regular]
2.  [sc=Andada SC Regular]
3.  [sc=* SC-Regular]
4.  [sc=Andada SC-Regular]

All give the following (or similar) error to stdout:

...ext/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:121: attempt to 
index local 'file' (a nil value)
stack traceback:
  ...ext/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:121: in function 
'selectfont_savefile'
  ...ext/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:151: in function 
<...ext/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:142>
  ...ext/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:526: in function 
'registerfiles'
  ...ext/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:567: in function 
'action1'
  [string "local function scan1()..."]:55: in function <[string "local function 
scan1()..."]:42>

 1 \definefontfamily[mainface][rm][Latin Modern]
 2 >>  \definefontfamily[mainface][rm][Andada][sc=Andada SC Regular]


I end up finally settling on the form using the explicit file: 
[sc=file:AndadaSC-Regular.otf], which does work.

But I really would like to understand how the first form as given in the 
wiki should be used properly?  What patterns should I be looking for?

An output of 'strings' on the font .otf file yields:

"... with Reserved Font Name 'Andada'Andada SCRegular"
"AndadaSC-Regular"

advTHANKSance.

>>>> MWE

\definefontfamily[mainface][rm][Latin Modern]
\definefontfamily[mainface][rm][Andada][sc=Andada SC Regular]
%\definefontfamily[mainface][rm][Andada][sc=file:AndadaSC-Regular.otf]
%\definefontfamily[mainface][ss][Junction][tf=* Light,bf=* Regular]
\definefontfamily[mainface][ss][Fira Sans]
\definefontfamily[mainface][tt][Inconsolata]
\definefontfamily[mainface][mm][Latin Modern Math]

\setupbodyfont[mainface,9pt]

\starttext
\sc Test of Small Caps.
\stoptext

<<<< MWE

-- 
Pavneet Arora   m: +1 (647) 406-6843
Waroc Informatikt: +1 (416) 937-9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Orphans and widows for specific paragraph groups

2016-06-09 Thread Pavneet Arora
I have a couple of questions about preventing orphans for specific 
document blocks.

These all relate to a web-based report card application I have written 
for a study abroad school client of mine.  The ConTeXt file is being 
generated and processed out of a PHP Laravel framework app.

I have stripped away most of the details as well as the application 
fonts, but the issue that I am facing is related to keeping the course 
header (done as a paragraph environment), \hairline, and the teacher's 
comment for that course together as a unit.

At a minimum, I would like the three elements as a grouped and pushed to 
the following page.  Ideally, and this is more for my own learning, I'd 
like to be able to have finer control---say the header, \hairline, and a 
set number of comment lines would be acceptable at the bottom of a page.

What would be the best practices for this?

advTHANKSance

>>>> MWE

\definefontfamily[mainface][rm][Latin Modern Roman]
\definefontfamily[mainface][ss][Latin Modern Sans]
\definefontfamily[mainface][tt][Latin Modern Typewriter]
\definefontfamily[mainface][mm][Latin Modern Math]

\setupbodyfont[mainface,9pt]

% Set up default paragraph indenting and spacing.
\setupindenting[yes,
medium,
next]
\setupwhitespace[small]

% Set up paragraph environment for subject header.
\defineparagraphs 
[subjectpar][
n=2,
before={\blank[2*big]}]
\setupparagraphs
[subjectpar]
[1]
[width=.3\textwidth]

\starttext
\blank[8*big, force]
\dorecurse{10}{
\blank[2*big]
\noindentation
\startsubjectpar
{\ss\tfc ENG4U}
\subjectpar
%% Need to keep the following together as a unit.
{\ss\tfc English (Grade 12)}
\stopsubjectpar
\noindentation
\vskip-2em\hairline
\setupindenting[yes,
medium,
next]
\dorecurse{1}{
\input lorem.tex

}
}
\stoptext

<<<< MWE

-- 
Pavneet Arora   m: +1 (647) 406-6843
Waroc Informatikt: +1 (416) 937-9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Orphans and widows in Natural Tables

2016-06-09 Thread Pavneet Arora
Related to my previous enquiry, I have the same issue with another part 
of the report card that uses Natural Tables.

I'd like to keep two rows together as a unit, and not have the table 
split between them.  Is that possible, and how?

advTHANKSance


>>>> MWE

\definefontfamily[mainface][rm][Latin Modern Roman]
\definefontfamily[mainface][ss][Latin Modern Sans]
\definefontfamily[mainface][tt][Latin Modern Typewriter]
\definefontfamily[mainface][mm][Latin Modern Math]
%\definefontfamily[mainface][rm][Andada][sc=file:AndadaSC-Regular.otf]
%\definefontfamily[mainface][ss][Fira Sans]
%\definefontfamily[mainface][tt][Inconsolata]
%\definefontfamily[mainface][mm][Latin Modern Math]

\setupbodyfont[mainface,9pt]

\starttext
\setupTABLE[frame=off, split=repeat]
\setupTABLE[r][last][bottomframe=on]
\setupTABLE[c][1][width=3.0in]
\setupTABLE[c][2][width=0.5in, align=flushright]
\setupTABLE[c][3][width=0.5in, align=flushright]
\setupTABLE[c][4][width=2.5in]
\bTABLE
\bTABLEhead
\bTR[topframe=on, bottomframe=on] 
\bTH {\bf Unit Description} \eTH
\bTH {\bf Weight} \eTH
\bTH {\bf Mark} \eTH
\bTH \eTH
\eTR
\eTABLEhead
\bTABLEbody
\dorecurse{10}{
%% Need to keep Unit description row and comment row together.
\bTR[topframe=on] 
\bTD {\sc Unit } \eTD
\bTD 10 \eTD
\bTD 99 \eTD
\bTD \eTD
\eTR
\bTR
\bTD[nc=4] \input lorem.tex \eTD
\eTR
}
\eTABLEbody
\eTABLE
\stoptext

<<<< MWE

-- 
Pavneet Arora   m: +1 (647) 406-6843
Waroc Informatikt: +1 (416) 937-9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \setupwhitespace and Natural Table paragraphs

2015-08-17 Thread Pavneet Arora
I am trying to find the most effective way of changing paragraph spacing 
for paragraphs inside table cells, without resorting to explicit \blank 
directives.

Here is a MWE to show what I mean.  Outside of the table, the paragraph 
spacing seems to honour the \setupwhitespace directive.  Not so inside 
the table.  Curiously, though, the default enumeration inside the table 
*does* seem to honour \setupwhitespace, which you can affect using the 
before, after and inbetween options, as shown in the commented 
\startitemize line.

advTHANKSance

 MWE
% Change spacing
\setupwhitespace[big]
\setupinterlinespace[3.8ex]

\starttext
\input ward

\input ward

\midaligned{%
\setupTABLE[frame=off]%
\setupTABLE[offset=1em]%
\setupTABLE[r][each][topframe=on,bottomframe=on]%
\setupTABLE[c][1][align={flushleft,high},width=1.5in]%
\setupTABLE[c][2][align={flushleft,lohi},width=4.0in]%
\bTABLE
\bTABLEbody
\bTR
\bTD {\bf 2014--2015} \eTD
\bTD
\input ward

\input ward
\blank
\input ward
\eTD
\eTR
\bTR
\bTD {\bf 2013--2014} \eTD
\bTD
\input ward
% 
\startitemize[before={\blank[small]},after={\blank[small]},inbetween={\blank[medium]}]
\startitemize
\item Item one.
\item Item two.
\item Item three.
\stopitemize
\eTD
\eTR
\eTABLEbody
\eTABLE
}
\stoptext


-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Finding the correct name of font to use with \definefontamily

2015-08-08 Thread Pavneet Arora
I am trying to use the font family Novecento Wide, but cannot seem to 
get it to work.  I suspect that it is in the name that I am attempting, 
although I have tried all the names that I can come up with:  Novecento, 
Novecento Wide, Novecentowide Light, etc.

 MWE
\definefontfamily[mainface][rm][TeX Gyre Pagella]
\definefontfamily[mainface][ss][Novecentowide]
\definefontfamily[mainface][mm][TeX Gyre Pagella Math]
\setupbodyfont[mainface,9pt]

\setupwhitespace[medium]

\starttext
\input lorem

\ss\input lorem
\stoptext


Here is the relevant line from the output showing that Novecento is 
*not* loaded;

mkiv lua stats   loaded fonts: 2 files: texgyrepagella-math.otf, 
texgyrepagella-regular.otf

Firstly, is the font name really the problem, or is it something else?  
Secondly, is there a way to pull the name of any font so that 
\definefontamily can retrieve it.

Thanks.

A number of the weights are freely available at:

http://www.fontspring.com/fonts/synthview/novecento-sans

Output from mtxrun --list --all and --info commands follow.

$ mtxrun --script fonts --list --all --pattern=Novecento*

resolvers   | trees | analyzing 'home:texmf'
resolvers   | caching | skipping 'files' for 'home:texmf' from 
'/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/54be04d87dd160089f572b19cb5c97e9'
 
(version mismatch)
novecentowide   novecentowidenormal 
/home/pavneet/.fonts/opentype/Novacento/Novecentowide-Normal.otf
novecentowidebold   novecentowidebold   
/home/pavneet/.fonts/opentype/Novacento/Novecentowide-Bold.otf
novecentowidebook   novecentowidebook   
/home/pavneet/.fonts/opentype/Novacento/Novecentowide-Book.otf
novecentowidedemibold   novecentowidedemibold   
/home/pavneet/.fonts/opentype/Novacento/Novecentowide-DemiBold.otf
novecentowidelight  novecentowidelight  
/home/pavneet/.fonts/opentype/Novacento/Novecentowide-Light.otf
novecentowidemedium novecentowidemedium 
/home/pavneet/.fonts/opentype/Novacento/Novecentowide-Medium.otf
novecentowidenormal novecentowidenormal 
/home/pavneet/.fonts/opentype/Novacento/Novecentowide-Normal.otf
novecentowideregularnovecentowidenormal 
/home/pavneet/.fonts/opentype/Novacento/Novecentowide-Normal.otf

$ mtxrun --script fonts --list --info --pattern=novecentowidelight

resolvers   | trees | analyzing 'home:texmf'
resolvers   | caching | skipping 'files' for 'home:texmf' from 
'/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/54be04d87dd160089f572b19cb5c97e9'
 (version mismatch)
mtx-fonts   |
mtx-fonts   | mapping : novecentowidelight
mtx-fonts   | fontname: novecentowidelight
mtx-fonts   | fullname: novecentowidelight
mtx-fonts   | filename: 
/home/pavneet/.fonts/opentype/Novacento/Novecentowide-Light.otf
mtx-fonts   | family  : novecentowide
mtx-fonts   | weight  : light
mtx-fonts   | style   : normal
mtx-fonts   | width   : normal
mtx-fonts   | variant : normal
mtx-fonts   | subfont : 
mtx-fonts   | fweight : 
mtx-fonts   |
mtx-fonts   | gpos features:
mtx-fonts   |
mtx-fonts   | feature  script   languages
mtx-fonts   |
mtx-fonts   | kern dflt dflt
mtx-fonts   |  latn dflt plk rom
mtx-fonts   |
mtx-fonts   | gsub features:
mtx-fonts   |
mtx-fonts   | feature  script   languages
mtx-fonts   |
mtx-fonts   | aalt dflt dflt
mtx-fonts   |  latn dflt plk rom
mtx-fonts   | case dflt dflt
mtx-fonts   |  latn dflt plk rom
mtx-fonts   | dnom dflt dflt
mtx-fonts   |  latn dflt plk rom
mtx-fonts   | frac dflt dflt
mtx-fonts   |  latn dflt plk rom
mtx-fonts   | locl latn plk rom 
mtx-fonts   | numr dflt dflt
mtx-fonts   |  latn dflt plk rom
mtx-fonts   | pnum dflt dflt
mtx-fonts   |  latn dflt plk rom
mtx-fonts   | salt dflt dflt
mtx-fonts   |  latn dflt plk rom
mtx-fonts   | ss01 dflt dflt
mtx-fonts   |  latn dflt plk rom
mtx-fonts   | ss02 dflt dflt
mtx-fonts   |  latn dflt plk rom
mtx-fonts   | ss03 dflt dflt
mtx-fonts   |  latn dflt plk rom
mtx-fonts   | ss04 dflt dflt
mtx-fonts   |  latn dflt plk rom
mtx-fonts   | ss05 dflt dflt
mtx-fonts   |  latn dflt plk rom
mtx-fonts   | sups dflt dflt
mtx-fonts   |  latn dflt plk rom
mtx-fonts   | tnum dflt dflt
mtx-fonts   |  latn dflt plk rom
mtx-fonts   | zero dflt dflt
mtx-fonts   |  latn dflt plk rom
mtx-fonts   |



-- 

Pavneet Arora   m: 647.406.6843

[NTG-context] Template for handling editorial content in a large book project

2015-08-08 Thread Pavneet Arora
I am working on a large book project.  What I need done in ConTeXt is 
something similar to what Boris presented at TUG 2015:

http://tug.org/tug2015/abstracts/veytsman-access.txt

In other words, the output should address different audiences.  In my 
case, I want the full project to continue to contain editorial comments, 
or notes by the author.  I am thinking of using both margin notes, and 
specially styled paragraphs (narrower, font change, etc.).  Then 
depending on the target audience, reader or editor, the editorial 
comment could be included or not.

Is there a recommended design pattern that I could use for this type of 
work?

advTHANKSance.

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Template for handling editorial content in a large book project

2015-08-08 Thread Pavneet Arora
Perfect.  I think that modes will work nicely.

To further explain my use case:  I have a manuscript, which I would like 
to continue to evolve with editorial comments, suggestions, ideas for 
further development (some generated by the author, others by reviewers).  

At any given time the text of the document is lagging the editorial 
input.  Revisions of the project are under mercurial source code 
control.  The primary view of the document is to be a publication ready 
version, but in its draft form, the author's version should include the 
work-in-progress.  Eventually, the editorial comments may diminish or be 
left for another day, and the work-in-progress will get incorporated 
into the main text.  The publication view is useful if you have 
multiple people reviewing the book, and you don't want to proliferate 
the union of all editorial comments into the review copy.

I wanted to capture this author-editor workflow under ConTeXt.  I think 
modes will be just what I need.

Thanks.

On 08Aug15, Aditya Mahajan wrote:
 On Sat, 8 Aug 2015, Pavneet Arora wrote:
 
 I am working on a large book project.  What I need done in ConTeXt
 is something similar to what Boris presented at TUG 2015:
 
 http://tug.org/tug2015/abstracts/veytsman-access.txt
 
 In other words, the output should address different audiences.  In
 my case, I want the full project to continue to contain editorial
 comments, or notes by the author.  I am thinking of using both
 margin notes, and specially styled paragraphs (narrower, font
 change, etc.).  Then depending on the target audience, reader or
 editor, the editorial comment could be included or not.
 
 Is there a recommended design pattern that I could use for this
 type of work?
 
 I am not sure I completely understand your question, but have a look
 at modes: http://wiki.contextgarden.net/Modes
 
 Aditya

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 \setupinterlinespace work with \switchtobodyfont

2015-04-30 Thread Pavneet Arora
Hello,

I am trying to have inter-line space change according to the current 
size of the body font, which I modify with \switchtobodyfont, but I 
cannot seem to affect the desired change as per the MWE below.  
\setupinterlinespace seems to take its lead from the original 
\setupbodyfont directive in the document, and does not revise it even 
when font size is changed.

Is there a prescribed method to properly use \setupinterlinespace (or 
for that matter \setupwhitespace when switching font sizes?

Many thanks.

 MWE

\setuppagenumbering[location=,state=stop] 

\definefontfamily[mainface][rm][Pagella]
\definefontfamily[mainface][ss][Heros]
\definefontfamily[mainface][mm][Latin Modern Math]
\setupbodyfont[mainface,72pt]
\setupinterlinespace

\starttext
\startalignment[center]
The Title
\blank
{\switchtobodyfont[36pt]\setupinterlinespace%
Subtitle line 1\\
Subtitle line 2}
\blank
{\switchtobodyfont[18pt]\setupinterlinespace%
Sub-subtitle line 1\\
Sub-subtitle line 2}
\stopalignment
\stoptext



-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 \setupinterlinespace work with \switchtobodyfont

2015-04-30 Thread Pavneet Arora
Thanks Pablo!

 Hi Paavnet,

 yes, you need a paragraph to make \setupinterlinespace work.

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2015-04-06 Thread Pavneet Arora
Again, thank you for educating me on these principles.  This really is 
great stuff!  Just the type of insight that I need.  I am sure that many 
of us struggle with production issues and it would be good to develop 
design patterns on how to overcome them.

In response to Luigi's follow up post, let me describe what I have done, 
and ask your opinions (and indulgence) as to its usefulness.

Let me preface all this by pointing you to an old video from ATT 
archives, now to be found on YouTube where Brian Kernighan describes 
some of the distinctions of Unix.  Although the entire video is 
worthwhile even at 27m+ long if you just want to skip to his part, that 
starts at the 4m09s mark.  It is a nostalgic (but still valid) look at 
the elegance of pipes and redirection.

Okay, what I have done is create two 'bash' scripts which rely heavily 
on 'sed' to massage the text data retrieved using 'w3m' to create 
suitable colo-imp-ral.mkiv (RAL Classic colours; 223 colours) and 
colo-imp-pantone.mkiv (Pantone Coated colours; 1341 colours) files on 
demand using the values found on Carlos Cabo's rgb.to website.

The generated file for the RAL colours includes both the RAL number and 
the *English* name of the colour; one can easily modify the script to 
use a different language version of the name if so desired.  So, for 
example:

\definecolor[ral1000]   [h=cdba88]
\definecolor[greenbeige][h=cdba88]

The script for the Pantone colours will only use the published name, 
whether it have a name or number or both.  So Pantone Coated Orange 021 
C will be found in the file as:

\definecolor[pantoneorange-021-c]   [h=fe5000]

and Pantone Coated 801 C

\definecolor[pantone801-c]  [h=009ace]

I won't, for the time being at least, publish the colour files in case 
there is any issue about the proprietary nature of colours, but offer up 
these two shell scripts.  With these scripts one can generate the colour 
files as needed for personal use.  If Hans feels that these scripts are 
appropriate to be published on the list, then I am happy to do so.

I will wait to hear back.

Best wishes.

PS:  I can already see some inconsistency in the sed processing as there 
is no dash prefix before 801...*sigh*.  Will have to work on that ;).

On 06Apr15, Henning Hraban Ramm wrote:
 Spot colors for printing rely on manufacturers that produce those 
inks/paints.
 The existing palettes are defined by (or in cooperation with) manufacturers.
 There exists nothing like open source paint recipes, AFAIK, so it would make 
 no sense to define an open source (i.e. freely licensed) palette/system of 
 spot colors.
 
 Of course it’s possible to define a system of (anyhow) matching colors. But 
 that’s so much a matter of taste and application that I wouldn’t start with 
 such an enterprise.
 There are some good online tools that help you finding matching design 
 colors, at least for (s)RGB, e.g. Adobe Kuler or paletton.com.
 If you need spot colors for printing, you need a (digital or physical) 
 palette from the manufacturers.
 
 
 Greetlings, Hraban

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2015-04-06 Thread Pavneet Arora
I just realized that I didn't include the link to the Unix video.  Here 
it is:

www.youtube.com/watch?v=tc4ROCJYbm0


-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2015-04-04 Thread Pavneet Arora
Of and on, I have struggled to find a colour space that is expressive 
enough for printing, but convenient to access through ConTeXt for 
day-to-day usage.  I find with X11 that the emphasis on screen skews the 
colours to be brighter than what is desired, especially if one is 
dealing with coloured stock---say beige kraft---as I am doing with my 
current bit of typesetting.

In this process I have come across the RAL colour space:

http://www.ral-farben.de/content/application-help/all-ral-colours-names/overview-ral-classic-colours.html

whose values can be conveniently (sort of) accessed at:

http://rgb.to/ral/page/1

For my immediate needs, I have simply created a set of:

\definecolor[colourName][h=HH]

However, I am wondering if it might make sense to have a 
colo-imp-ral.mkiv?  So my questions would be:

1.  Is the RAL colour space a decent one for printing purposes?  What 
would be disadvantages, if not?

2.  Does colo-imp-ral.mkiv exist already?

3.  If not, would others find it useful to have a colo-imp-ral.mkiv?  If 
it doesn't then I would be happy to prepare one and submit it.

Many thanks.

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2015-04-04 Thread Pavneet Arora
Many thanks Hraban!

This is great insight into the printing world.  Of course, Pantone has a 
dominant position on this continent at least, but as you stated, its 
proprietary nature keeps the palette from being distributed easily.

So the question remains:  if the X11 colourspace is found inadequate, is 
there another one that we might look for inspiration to create decent 
spot colours for document processing?  Even if RAL colours are used for 
varnish, does that mitigate the use of their RGB values for other 
paints?  Note, that I am not seeking exact calibration of colours, say 
for branding across different media; just a more expressive palette for 
print applications.

Unfortunately, I don't have access to the Adobe products that you 
mention, and in any case would just want a convenient set of colours 
inside ConTeXt to create documents on the fly.

For this type of work, are there any other open source palettes that 
we might look towards?

Warm regards.

On 04Apr15, Henning Hraban Ramm wrote:
 Am 2015-04-04 um 17:31 schrieb Pavneet Arora pavneet_ar...@waroc.com:
 
  1.  Is the RAL colour space a decent one for printing purposes?  What 
 would be disadvantages, if not?
 
 No, it’s not. RAL colors are defined only for surface colors, like lacquer 
 (varnish? paint).
 
 Printing colors work differently, they’re mostly transparent.
 A parallel to RAL in printing colors would be Pantone (or HKS in Germany, 
 Toyo in Japan).
 But these are copyrighted, so we would be most probably not allowed to ship a 
 library of these.
 (If I need some spot color, I look up the CMYK/RGB mix in Photoshop or 
 InDesign.)
 
  2.  Does colo-imp-ral.mkiv exist already?
 
 That would make no sense IMO.

--

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Selecting fonts using the built-in simplefonts module

2015-03-29 Thread Pavneet Arora
Hello everyone,

After a long time I have some typesetting work in front of me...yippeee!

I am struggling with adapting my templates to the new integrated 
simplefonts module, and hope that someone can help.

The three issues I am having are:

1.  How does one find the proper expanded long name of the desired font.  
For this project, I am using some fonts from The League of Moveable 
Type (https://www.theleagueofmoveabletype.com/).

I have reloaded the fonts, and can list them, in the traditional 
manner.  What I don't know is how to find the proper name for---say 
Junction Light---to use as the third argument in 
'\definefontfamily[mainface][ss][Junction Light]'

The use of 'Junction Light' doesn't work, and neither does 
'Junction-Light', nor 'junctionlight', nor even 'Junction, Light' 
which I retrieve from Font Viewer under Linux.  MWE follows at the 
end of this email.  I reference Wolfgang's response stating that the 
expanded name must be used 
(http://www.ntg.nl/pipermail/ntg-context/2014/077321.html).

$ mtxrun --script fonts --list --all --pattern=junction

resolvers   | trees | analyzing 'home:texmf'
resolvers   | caching | skipping 'files' for 'home:texmf' from 

'/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/54be04d87dd160089f572b19cb5c97e9'
 (version mismatch)
junction  junctionbold  
/home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/junction-master/Junction-bold.otf
junctionbold  junctionbold  
/home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/junction-master/Junction-bold.otf
junctionlight junctionlight 
/home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/junction-master/Junction-light.otf
junctionregular   junctionregular   
/home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/junction-master/Junction-regular.otf
2.  How does one switch fonts in-line for small snippets of text?  I 
used to use '{\simplefont[heydingsicons] q}123.345.67890', but this 
now results in an error.

tex errorerror on line 7 in file virtual://buffer.noname.1: ! 
Undefined control sequence

l.7 {\simplefont [heydingsicons] q}~123.456.7890 
{\simplefont[heydingsicons..
3.  This may be a more generic typescript mapping issue, but I still 
struggle with understanding font mappings.  I don't quite get how 
the default mappings are done.

Look, for example, at Junction above.  'junction' is mapped to 
'junctionbold' rather than 'junctionregular'.  Is this just done by 
taking the first in the list in alphabetic order?

Or how the League Gothic font is processed below.  How is it that 
leaguegothic is mapped to leaguegothiccondenseditalic by default?  
What is the recommended way in this new simplefont scheme to set the 
mappings for a document?

$ mtxrun --script fonts --list --all --pattern=leaguegothic

resolvers   | trees | analyzing 'home:texmf'
resolvers   | caching | skipping 'files' for 'home:texmf' from 

'/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/54be04d87dd160089f572b19cb5c97e9'
 (version mismatch)
leaguegothic   leaguegothiccondenseditalic
/home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/theleagueof-league-gothic-64c3ede/LeagueGothic-CondensedItalic.otf
leaguegothiccondenseditalicleaguegothiccondenseditalic
/home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/theleagueof-league-gothic-64c3ede/LeagueGothic-CondensedItalic.otf
leaguegothiccondensedregular   leaguegothiccondensedregular   
/home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/theleagueof-league-gothic-64c3ede/LeagueGothic-CondensedRegular.otf
leaguegothicitalic leaguegothicitalic 
/home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/theleagueof-league-gothic-64c3ede/LeagueGothic-Italic.otf
leaguegothicregularleaguegothicregular
/home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/theleagueof-league-gothic-64c3ede/LeagueGothic-Regular.otf

Many thanks.

 MWE

\definefontfamily[mainface][rm][Prociono]
\definefontfamily[mainface][ss][Junction Light]
%\definefontfamily[mainface][ss][junctionlight]
%\definefontfamily[mainface][ss][Junction-Light]
%\definefontfamily[mainface][ss][Junction, Light]
\definefontfamily[mainface][mm][TeX Gyre Pagella Math]
\setupbodyfont[mainface,9pt]

\setupwhitespace[medium]

\starttext
\input lorem

\ss\input lorem

%{\simplefont[heydingsicons] q}~123.456.7890
\stoptext




-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Selecting fonts using the built-in simplefonts module

2015-03-29 Thread Pavneet Arora
Dear Wolfgang,

I am using:

  ConTeXt  ver: 2015.03.28 22:37 MKIV beta  fmt: 2015.3.29  int: english/english

After installing fontawesome, and running the MWE that you had enclosed, 
I get the following error:

  fontssymbols  library 'fontawesome' is unknown

And no symbols are output.  'fontawesome' is loaded:

  $ mtxrun --script fonts --list --all --pattern=fontawesome

  resolvers   | trees | analyzing 'home:texmf'
  resolvers   | caching | skipping 'files' for 'home:texmf' from 
  
'/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/54be04d87dd160089f572b19cb5c97e9'
 (version mismatch)
  fontawesome  fontawesome   
/home/pavneet/.fonts/opentype/font-awesome-4.3.0/fonts/FontAwesome.otf
  fontawesomenormalfontawesome   
/home/pavneet/.fonts/opentype/font-awesome-4.3.0/fonts/FontAwesome.otf
  fontawesomeregular   fontawesome   
/home/pavneet/.fonts/opentype/font-awesome-4.3.0/fonts/FontAwesome.otf

Also, the '\mysymbol' directive results in an error:

  tex errorerror on line 24 in file test2.tex: ! Argument of \65 has 
an extra }

  inserted text \par to be read again }
  \symb_place_indeed ...name \??symbol #1\endcsname \relax \endgroup 
  \symb_place_retry ...name \symb_place_indeed {:#1}
\else #1\fi 
  \symb_place_normal_c ...lace_retry \currentsymbol \fi 
  \symb_place_normal_b ...else \symb_place_normal_c \fi ...
  l.24 \symbol[mysymbol]
  

  14 \definesymbol
  15   [mysymbol]
  16   [\SymbolFrame{\directsymbol{fontawesome}{question}}]
  17
  18 \starttext
  19
  20 \startlines
  21 \symbol[fontawesome][question]
  22 \symbol[fontawesome][question-circle]
  23 
\framed[strut=no,width=1em,height=1em,background=color,backgroundcolor=black,corner=round,radius=.5ex,foregroundcolor=white]{\symbol[fontawesome][question]}
  24   \symbol[mysymbol]
  25 \stoplines
  26
  27 \stoptext
  28 

What might be the problem?

Many thanks.


On 29Mar15, Wolfgang Schuster wrote:
  2.  How does one switch fonts in-line for small snippets of text?  I 
 used to use '{\simplefont[heydingsicons] 
q}123.345.67890', but this  now results in an error.
  
 tex errorerror on line 7 in file virtual://buffer.noname.1: ! 
  Undefined control sequence
  
 l.7 {\simplefont [heydingsicons] q}~123.456.7890 
  {\simplefont[heydingsicons..
 
 When you use a symbol font define a command for it with \definesymbol and 
 access it with \symbol.
 
 The example below uses the Font Awesome [1] font for the symbols (the symbols 
 are defined in the attached file).
 
 \usesymbols[fontawesome]
 
 \defineframed
   [SymbolFrame]
   [strut=no,
width=1em,
height=1em,
background=color,
backgroundcolor=black,
corner=round,
radius=.5ex,
foregroundcolor=white]
 
 \definesymbol
   [mysymbol]
   [\SymbolFrame{\directsymbol{fontawesome}{question}}]
 
 \starttext
 
 \startlines
 \symbol[fontawesome][question]
 \symbol[fontawesome][question-circle]
 \framed[strut=no,width=1em,height=1em,background=color,backgroundcolor=black,corner=round,radius=.5ex,foregroundcolor=white]{\symbol[fontawesome][question]}
 \symbol[mysymbol]
 \stoplines
 
 \stoptext

--

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Selecting fonts using the built-in simplefonts module

2015-03-29 Thread Pavneet Arora
Dear Joerg,

Thanks for your response.  I am just going through the full thread, but 
in response to your question, I am using Ubuntu with Unity.  I was using 
the GUI Font Viewer to inspect the font, but otfinfo is more to my 
liking.

Having said that, here is its output with the '-a' option (-a, --family 

Report font’s family name.):

$ otfinfo -a Junction-light.otf
Junction Light

So, it would seem that Junction Light is a valid 'expanded name' in the 
Junction Master series, although, of course, not the true family name.

I am still digesting further the responses by Pablo and Wolfgang.

Warm regards.


On 29Mar15, Jörg Weger wrote:
 Your mistake was that you did not use the correct font family name
 in the third pair of square brackets. It is simply “Junction”.
 
 I have yet to find out if ConTeXt itself can show a font’s true family name.
 
 On Linux I am either  using a command line tool called otfinfo (that
 also shows me what opentype features are there) or I open the font
 with fontforge (if I want to find out more about the details of
 opentype features) or I open it with mate-font-viewer (fork of
 gnome-font-viewer). In the latter the family name is shown in the
 first line on the right.
 
 Name: Junction
 
 What desktop environment are you using?
 
 
 As far as I have understood by default the built in font-selection
 module uses the “family members” named “Regular” and “Bold” of a
 selected font family, e.g. in
 
 \definefontfamily[mainface][ss][Junction]
 
 \ss gives Junction Regular and \ss \bf gives Junction Bold
 
 If you want to use different font weights you have to define them
 yourself in a fourth pair of square brackets.
 
 The League of Movable Type’s Junction font family offers three
 weights: Light, Regular and Bold.
 
 Assuming that you want to use Junction Light as your “regular sans
 serif” font and Junction Regular as your “bold sans serif” you
 define for sans serif:
 
 \definefontfamily[mainface][ss][Junction]
   [regularfont=Junction Light, boldfont=Junction Regular]
 
 Now \ss should give Junction Light and \ss \bf should give Junction Regular.
 
 You can define italics as well, as the following definition for
 Google’s Roboto shows where I am using light and black instead of
 regular and bold. (Junction does not offer italic or slanted, that
 is why I use Roboto as an example of a family with many weights and
 styles. https://developer.android.com/design/style/typography.html
 should have the reworked 2014 version for download.)
 
 \definefontfamily[mainface][ss][Roboto]
   [regularfont=Roboto Light, italicfont=Roboto Light Italic,
boldfont=Roboto Black, bolditalicfont=Roboto Black Italic]
 
 (You could even mix weights and styles from different font families.)
 
 
 Hope that helps.
 
 
 Greetings Jörg

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Selecting fonts using the built-in simplefonts module

2015-03-29 Thread Pavneet Arora
Perfect.  This is an appropriately succinct syntax.

 \definefontfamily [mainface] [ss] [Junction] [tf=* Light,bf=* Regular]

 Message: 3
 Date: Sun, 29 Mar 2015 21:31:30 +0200
 From: Wolfgang Schuster schuster.wolfg...@gmail.com
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] Selecting fonts using the built-in
   simplefonts module
 Message-ID: 12dc7a91-4a01-4a28-b578-4327cbc64...@gmail.com
 Content-Type: text/plain; charset=utf-8
 
 
  Am 29.03.2015 um 20:33 schrieb Jörg Weger joerg73@googlemail.com:
  
  You need the familyname of the font, you use the font manager of your OS
  to get the name.
  
  \definefontfamily [junction] [rm] [Junction]
  \definefontfamily [junction] [mm] [Latin Modern Math]
  
  \definefontfamily [junction-light] [rm] [Junction]
  [tf=style:light,bf=style:regular]
  
  I just had it made working this way:
  
  \definefontfamily[mainface]
  [ss]
  [EgalobhierFarinUrlaubodersonstwasoderwersteht] 
  [tf=Junction Light, bf=Junction Regular]
 
 \definefontfamily [mainface] [ss] [Junction] [tf=* Light,bf=* Regular]
 
  It seems that as soon as you define your own weights (which you can mix 
  from different font families) in the fourth pair of brackets, there can be 
  anything in the third pair of brackets (family name).
  
  \definefontfamily[mainface]
  [sans]
  [Anything]  
  [regularfont=Junction Light, boldfont=Junction Regular]
  
  works as well and is more self-explaining.
 
 This will only work when you set a upright font or you will get problems.
 

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] [***SPAM***] OT: Putting a context to the 2013 ConTeXt Meeting location

2013-09-19 Thread Pavneet Arora
Well, if I am able to finish what I intended to do, my talk at TUG 2013 
will be about 3D cabinet layout; so not quite a table, but somewhat 
close, no? ;).

Seriously, though, I went looking for this information and wasn't able 
to find it.  What is the current state of affairs of tie-in between 
ConTeXt and Aymptote?  Is there any?  Or is it best to create a 
standalone .eps with Asymptote and then include it into the ConTeXt 
document?

Thanks.

On 9/19/2013 7:17 PM, Aditya Mahajan wrote:
 On Thu, 19 Sep 2013, Hans Hagen wrote:

 serve as templates. Of course it has to be reasonable, not 'i want a
 three dimensional table mechanism' and such.

 There are 3D printers now, so what's wrong with wanting a (real) 3D
 table :-)

i'm sitting behind a real 3d (wooden) table .. but indeed, 3d printing 
is on my agenda

long ago i made a panoramic (360 degree) movie of the metafun manual ..  
although it gave an interesting perspective of a document i never found 
time or reason to do it again (but eventually documents will change in 
unexpected ways)

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] [***SPAM***] OT: Putting a context to the 2013 ConTeXt Meeting location

2013-09-19 Thread Pavneet Arora
Actually, I am just hoping to get the skeleton line drawing part working 
(for the inside boxes or carcasses as they are sometimes known in the 
kitchen design business).  My focus is on the workflow and is a 
follow-up to my YAWN talk at TUG last year.  Renderings will be beyond 
my capabilities at this point, although I will give povray a look.

Thanks Luigi and Alan.

On Thu, 19 Sep 2013 21:47:13 +0200
luigi scarso luigi.scarso at gmail.com wrote:

  Do you mean something like   
http://asymptote.sourceforge.net/gallery/cyclohexane.pdf
  ?

For this, I would prefer povray.

Alan

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] [***SPAM***] OT: Putting a context to the 2013 ConTeXt Meeting location

2013-09-18 Thread Pavneet Arora
I am so disappointed that I cannot attend the upcoming ConTeXt meeting 
in Brejlov, but as I type this I am remembering vividly the hospitality 
and affection shown by all at the 2010 meeting, especially Pavel's 
father, to this tee-totalling vegetarian---not something that lands up 
at the Brejlov Inn too often, I imagine!

The reason for my absence this year is that I will be heading to India 
shortly to conduct what is known as antim yatra (final journey) in 
Hindi for my mother; I'll leave the details of what that implies to 
those who wish to search on DuckDuckGo ;).

Anyway that is strictly an aside to this post.  You'll have to forgive 
me if I am feeling sentimental, but Prague does, as it has throughout 
its history, enter one's soul.  To walk through its streets is to be 
smitten by it for life.  Recently I picked up a book that I would like 
to share as it may help provide a context to those travelling through 
Prague on their way to Brejlov.

Prague:  Capital of the Twentieth Century
A Surrealist History
by Derek Sayer

All the best to those who are attending.  I am envious!

Warm regards.

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] columns vs. paragraphs, and a question about fillinrule

2013-09-15 Thread Pavneet Arora
Sorry, I should have been more clear about the intended output.

In the most common case, I simply wanted side by side output:  witnesses 
in the left column, and testator in the right column.  Rarely, is it 
expected to traverse a page.  The paragraph method does this; \paragraph 
goes to the top of the next column.  The columns method does not:  
\column, at least for this combination of input, does not go to the top 
of the next column, but rather pushes the subsequent input to the top of 
the next page, which is not the intention.

So, the paragraph method produces the expected two-column layour 
output while the columns method does not.

However, your tabulate method is perfect fine especially if one needs 
the output to cross page boundaries.

Any idea to make fillinrules behave like a list, i.e., with the indices 
hanging to the left of equal sized rules?

Thanks for your help.

On 14Sep13, Aditya Mahajan wrote:
 On Thu, 12 Sep 2013, Pavneet Arora wrote:
 
 As part of this legal document set that I have been working to put
 together, I needed side-by-side text.  Looking at the wiki, I noticed
 that there are at least 3 methods:  columns, paragraphs, columnsets.
 
 I only attempted two, but they seem to have quite different results.  I
 understood that columns were for simple cases.  However, in my MWE
 below, the \column command breaks the columns in unusual way.
 
 One can also swap out the order of the paragraphs and columns methods;
 the results are similar.  Also, one can adjust the dorecurse command
 with additional lorems to see where the columns land on the page.
 Again results are similar.
 
 Any suggestions?
 
 What is the desired output? Do you want the left column to
 continue on to the next page? Is so, you could use the tabulate
 environment.
 
 \setuppaper[A5, landscape]
 \starttext
 \startalignment[middle]
 {\tfc AN IMPORTANT LEGAL DOCUMENT}
 \stopalignment
 
 \starttabulate[|p(0.5\textwidth)|p(0.1\textwidth)|p(0.4\textwidth)|]
   \NC WITNESSES:
 \fillinrules[n=15,interlinespace=small,width=broad,separator=]{1.}
 \fillinrules[n=15,interlinespace=small,width=broad,separator=]{2.}
 \fillinrules[n=15,interlinespace=small,width=broad,separator=]{3.}
 \fillinrules[n=15,interlinespace=small,width=broad,separator=]{4.}
 \fillinrules[n=15,interlinespace=small,width=broad,separator=]{5.}
   \NC
   \NC
   (TESTATOR)\crlf
   Ms. B.E. Def
   \NC
   \NR
   \NC WITNESSES:
 \fillinrules[n=15,interlinespace=small,width=broad,separator=]{1.}
 \fillinrules[n=15,interlinespace=small,width=broad,separator=]{2.}
 \fillinrules[n=15,interlinespace=small,width=broad,separator=]{3.}
 \fillinrules[n=15,interlinespace=small,width=broad,separator=]{4.}
 \fillinrules[n=15,interlinespace=small,width=broad,separator=]{5.}
   \NC
   \NC
   (TESTATOR)\crlf
   Ms. B.E. Def
   \NC
   \NR
 \stoptabulate
 
 \stoptext

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2013-09-13 Thread Pavneet Arora
I don't believe that I have seen Aditya mention this recently, but 
anyone using ConTeXt for making slide presentations would benefit 
tremendously, I think, from reading his tutorials on how to use simple 
ConTeXt to do so:

https://github.com/adityam/context-slides-example/commits/master

Sorry if I have trampled on what was a strictly simpleslides discussion.

Regards.

BTW, someone on this list had recommended to me quite some time ago 
impressive, a PDF viewer with transitions, which I also find very 
effective in giving presentations from PDF documents:

http://impressive.sourceforge.net/

On 09/13/2013 12:01 PM, Xan wrote:
 Hi,

 If I choose BottomSquares in presentation, I receive an error:

I'm sorry, I know that some of the styles aren't working at the moment 
(at least not the versions on the garden; I think all of them work on my 
system). Aditya and I need to upload a fresh version soon, but we 
haven't been able to find time to discuss important questions. Anyway: I 
fear it will be October until we get around to producing a new version.  
If you want this particular style, I can send you the version I have 
here off list (your test file compiles here), but it may be better to 
wait a bit because of dependencies etc.

Sorry for the inconvenience

Thomas


On 09/13/2013 12:01 PM, Xan wrote:
 Hi,

 If I choose BottomSquares in presentation, I receive an error:

I'm sorry, I know that some of the styles aren't working at the moment 
(at least not the versions on the garden; I think all of them work on my 
system). Aditya and I need to upload a fresh version soon, but we 
haven't been able to find time to discuss important questions. Anyway: I 
fear it will be October until we get around to producing a new version.  
If you want this particular style, I can send you the version I have 
here off list (your test file compiles here), but it may be better to 
wait a bit because of dependencies etc.

Sorry for the inconvenience

Thomas

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Another small \underbar issue

2013-09-12 Thread Pavneet Arora
I just noticed the recent issue brought up regarding \underbar, and 
wanted to mention a curiosity that I have come across.

After RE:  the underbar is contiguous.  However, if we change it to 
Re:  there is a break in the underbar.  This seems independent of font 
selected, althought I have only tried it was gentiumalt, texgyreschola, 
texgyretermes.  I was writing a business letter recently and used what I 
think is proper, Re: , for the subject line.  It was only then that I 
came across this.  Is there an explanation for this?

On a slight tangent, what would be the best way to tighten up the space 
between the \hl or \fillinline alternative, and the name of the 
signatory?

Thanks.


MWE:

\setuppapersize[letter]
\setuplayout[header=0in,footer=0in,topspace=0.75in,height=9.5in,backspace=1.5in,width=5.5in]
\setuppagenumbering[location=]
\usemodule[simplefonts]
\setmainfont[texgyretermes]
\setupbodyfont[roman,12pt]
\setupinterlinespace[line=3.2ex]
\setupwhitespace[big]

\starttext
\ 
\blank[2in]
12 Sep 2013
\blank[big]
Dear Sir/Madam,
\blank[big]
\startalignment[middle]
\underbar{RE: Something important that I am writing about}
\underbar{Re: Something important that I am writing about}
\stopalignment
\blank
\input lorem
\blank[1in]
\hl[10]
B. C. Def\crlf
123.456.7890

\stoptext

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] columns vs. paragraphs, and a question about fillinrule

2013-09-12 Thread Pavneet Arora
As part of this legal document set that I have been working to put 
together, I needed side-by-side text.  Looking at the wiki, I noticed 
that there are at least 3 methods:  columns, paragraphs, columnsets.

I only attempted two, but they seem to have quite different results.  I 
understood that columns were for simple cases.  However, in my MWE 
below, the \column command breaks the columns in unusual way.

One can also swap out the order of the paragraphs and columns methods; 
the results are similar.  Also, one can adjust the dorecurse command 
with additional lorems to see where the columns land on the page.  
Again results are similar.

Any suggestions?

Another question:  I am trying to have the numbers in the \fillinrule 
command to be hanging so that the rules are lined up.  Is this possible, 
and if so how best to do it?

advTHANKSance.

MWE:

\setuppapersize[letter]
\setuplayout[header=0in,footer=0in,topspace=0.75in,height=9.5in,backspace=1.25in,width=6in]
\setuppagenumbering[location=]
\usemodule[simplefonts]
\setmainfont[gentiumalt]
\setupbodyfont[11pt]
\setupinterlinespace[line=3.2ex]
\setupwhitespace[big]

\starttext
\startalignment[middle]
{\tfc AN IMPORTANT LEGAL DOCUMENT}
\stopalignment
\blank[2*big]

\dorecurse{1}{\input lorem\par}

\blank[2*big]

{\tt paragraphs} method:

\defineparagraphs[mypar][n=3,before={\blank},after={\blank}]
\setupparagraphs[mypar][1][width=.5\textwidth]
\setupparagraphs[mypar][2][width=.1\textwidth]
\setupparagraphs[mypar][3][width=.4\textwidth]

\startmypar
WITNESSES:
\fillinrules[n=3,interlinespace=small,width=broad,separator=]{1.}
\fillinrules[n=3,interlinespace=small,width=broad,separator=]{2.}
\mypar
\mypar
(TESTATOR)\crlf
Ms. B.E. Def\crlf
\stopmypar

{\tt columns} method:

\startcolumns[n=2]
WITNESSES:
\fillinrules[n=3,interlinespace=small,width=broad,separator=]{1.}
\fillinrules[n=3,interlinespace=small,width=broad,separator=]{2.}
\column
(TESTATOR)\crlf
Mr. B.E. Def\crlf
\stopcolumns

\stoptext

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Overriding pdfview

2013-06-27 Thread Pavneet Arora
Exactly what I was thinking:

pavneet@darjiling:~$ more .mailcap
application/pdf; evince %s

I like evince because it also doesn't lock the PDF file, and 
auto-refreshes the view when updated.  It also has/can have a space 
efficient toolbar structure, which works great on my little netbook: 
Asus EEE 701 running Bodhi Linux off an SD card---my favourite writing 
environment by far.  So no wrapper needed except for first invocation 
which puts evince in the background.

My own work environment is a bit like an old-school IDE:

- tmux with side-by-side panes for vim editing and document compilation.
- different tmux windows for different documents being worked on.
- evince on one of the adjacent workspace to preview.  
  CTRLALTRIGHT|LEFT to quickly switch back and forth from 
  edit-compile to test workspaces.

 Date: Thu, 27 Jun 2013 13:25:06 -0400 (EDT)
 From: Aditya Mahajan adit...@umich.edu
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] Overriding pdfview
 Message-ID:
   alpine.LNX.2.02.1306271320220.24744@ybpnyubfg.ybpnyqbznva
 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
 
 Or, simple read the mailcap preference  or use a program such as 
 run-mailcap or see which choose the viewer based on mailcap 
 preferences.
 
 I am half joking here; don't go down this route. One can simply leave it 
 to the user to write a wrapper to context that calls the PDF viewer when 
 context is finished.
 
 Aditya

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Using \setupinterlinespace with \setuparranging[XY], and more

2013-06-26 Thread Pavneet Arora
Thanks for the explanation, Wolfgang.

I am, however, getting some strange interline behaviour exhibited using
the \par approach.  In the MWE below the quoted text, which have both
approaches (\par and explicit \setinterlinespace outside the \framed)
listed, you will see with the \par approach that the text is aligned
slightly lower than middle (so not properly vertically centred), and the
spacing below the first line is larger than the subsequent lines.

Regards.

On 25Jun13, Wolfgang Schuster wrote:
 
 Am 21.06.2013 um 22:27 schrieb Pavneet Arora pavneet_ar...@waroc.com:
 
  3.  I cannot get interlinespacing to affect the line spacing even though
  the baselineskip variable is changed as shown in the MWE.
 
 You have to add \par at the end of each paragraph, e.g. 
 \framed{\definedfont[…]\setupinterlinespace …\par}
 
 Wolfgang

MWE:

\definepapersize
[Label]
[width=4in,height=3.33in]

\setuppapersize[Label][letter,portrait]

\setuppaper
[topspace=0.4688in,
backspace=0.1875in,
dx=0.1875in,
dy=0in,
nx=2,
ny=3]

\setuplayout
[topspace=0in,
backspace=0in,
margin=0in,
width=4in,
height=3.33in,
header=0in,
footer=0in]

\setuparranging[XY]

\setupframedtexts
[width=\textwidth,
height=\textheight,
frame=off,
location=lohi,
offset=0pt]

\setupframed
[frame=off,
width=\textwidth,
height=\textheight,
alignment=center]

\setuplayout[location=middle]

\definelayer
[Label]
[width=\paperwidth,
height=\paperheight]

\usemodule[simplefonts]
\setmainfont[schola]
\setupbodyfont[rm,48pt]
\setupinterlinespace[line=2.8ex]

\showframe

\starttext
\framed{Label 1}\page
\framed{\definedfont[Serif at 18pt]\setupinterlinespace A long description 
label that needs to be have its interline spacing adjusted.\par}\page
\setupbodyfont[rm,18pt]
\setupinterlinespace
\framed{Another long description label that seems to have proper interline 
spacing.}\page
\framed{Yet another long description label that seems to have proper interline 
spacing.}\page
Label 2\page
Label 3\page
Label 4\page
Label 5\page
Label 6\page
Label 7\page
Label 8\page
\stoptext

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Using \setupinterlinespace with \setuparranging[XY], and more

2013-06-25 Thread Pavneet Arora
By chance I found a possible, but not very satisfying, solution to the
\setupinterlinspace issue when trying to print labels using
\setuparranging[XY]. That is to explicitly set
\setupbodyfont[rm,18pt]\setupinterlinespace
once again outside the \framed directive for the specific label as in the
following MWE.

I haven't seen any answers on my other two questions from the original
post (included down below), so if anyone has any ideas, I would be most
grateful.

MWE:

\definepapersize
[Label]
[width=4in,height=3.33in]

\setuppapersize[Label][letter,portrait]

\setuppaper
[topspace=0.4688in,
backspace=0.1875in,
dx=0.1875in,
dy=0in,
nx=2,
ny=3]

\setuplayout
[topspace=0in,
backspace=0in,
margin=0in,
width=4in,
height=3.33in,
header=0in,
footer=0in]

\setuparranging[XY]

\setupframedtexts
[width=\textwidth,
height=\textheight,
alignment=center,
frame=off,
location=lohi,
alignment=center,
offset=0pt]

\setuplayout[location=middle]

\definelayer
[Label]
[width=\paperwidth,
height=\paperheight]

\usemodule[simplefonts]
\setmainfont[schola]
\setupbodyfont[rm,48pt]
\setupinterlinespace[line=2.8ex]

\showframe

\starttext
\the\baselineskip\page
\framed[frame=off,width=\textwidth,height=\textheight,aligment=center]{Label 
1}\page
\the\baselineskip\page
\framed[frame=off,width=\textwidth,height=\textheight,aligment=center]{\definedfont[Serif
 at 18pt]\setupinterlinespace \the\baselineskip\crlf A long description label 
that needs to be have its interline spacing adjusted.}\page
Label 2\page
\setupbodyfont[rm,18pt]
\setupinterlinespace
\framed[frame=off,width=\textwidth,height=\textheight,aligment=center]{ 
\the\baselineskip\crlf Another long description label that needs to be have its 
interline spacing adjusted.}\page
Label 3\page
Label 4\page
Label 5\page
Label 6\page
Label 7\page
Label 8\page
\stoptext




On 22Jun13, ntg-context-requ...@ntg.nl wrote:
 Hello,
 
 I am using Willi's MAPS 37 and the Example section from the \setuppaper 
 command:
 
 http://wiki.contextgarden.net/Command/setuppaper
 
 to print a set of labels, 2x6 configuration on U.S. Letter waterproof
 label paper.
 
 For the most part things are working well, but I have a number of questions:
 
 1.  A difference between MAPS 37 and wiki entry for \setuppaper is the
 inclusion of the following line in the later:
 
 \setuplayout[location=middle]
 
 which seems to play a significant role.  Otherwise, I cannot get the
 labels to honour the topspace and backspace specified in the setuppaper
 command.  My question is why is this significant?  What role does it
 play?  This can be tested by simply deleting the line in the MWE below.
 
 2.I would like to have every label centered, i.e.,
 \framed[alignment=center] should be set for all labels.  However,
 including it in the setupframedtexts command doesn't seem to have any
 effect as shown in the MWE down below.  Is there another way for all
 labels to inherit this alignment setting?
 
 3.  I cannot get interlinespacing to affect the line spacing even though
 the baselineskip variable is changed as shown in the MWE.
 
 advTHANKSance.
 
 

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Portrait vs. landscape orientation for Tabloid paper

2013-06-25 Thread Pavneet Arora
I believe that the definitions for portrait and landscape orientation
for Tabloid/Ledger paper are flipped.

In the following MWE using Hans' clue to using \scaling directive, I am
having to specify landscape in order for the page to be set in portrait.
This observation is confirmed when I retrieve the document properties
using evince under Bodhi Linux and under Ubuntu 12.04 (ALTENTER
brings up the document properties).  With this MWE, the properties under
both systems is shown as Tabloid, Portrait (11.00 x 17.00 inches)

Have I got this right?

MWE:

\setuppapersize[tabloid,landscape][tabloid,landscape]
\setuplayout[
backspace=0.5in,
width=10in,
topspace=1.0in,
header=0in, 
footer=0in,
height=16.5in]
\setuppagenumbering[location=,state=stop]

\usemodule[simplefonts]
\setmainfont[schola]
\setupbodyfont[rm,16pt]
\setupinterlinespace[line=2.8ex]

\starttext
%\showlayout[in,pt]

\setupMPinstance
[metafun]
[extensions=yes,
initializations=yes]

\startuseMPgraphic{Example}
u:=1cm;

pickup pencircle scaled 1pt;

draw (5u,0u) {dir 90}..(0u,5u) {dir 180};
draw (0u,5u) .. (-1.5u,10.5u) {dir 90} .. (0u,16u);
draw (0u,16u) {dir 0} .. (5u,21u) {dir 90};
draw (5u,21u) -- (39u,21u);
draw (39u,21u) {dir 270} .. (42u,18u) {dir 0};
draw (42u,18u) .. (43.5u,10.5u) {dir 270} .. (42u,3u);
draw (42u,3u) {dir 180} .. (39u,0u) {dir 270};
draw (39u,0u) -- (35u,0u);
draw (35u,0u) .. (22u,3u) {dir 180} .. (9u,0u);
draw (9u,0u) -- (5u,0u);
label(btex A POOL etex, (22u,10.5u));

\stopuseMPgraphic
\startalignment[middle]
\definedfont[Serif at 16pt]\setupinterlinespace
{\tfb\sc An Example Plumbing Schematic}
\blank[big]
{\tfb \tt [DRAFT---To Be Verified]}
\blank[2*big]
\stopalignment
\scale[width=10in]{\useMPgraphic{Example}}
\stoptext

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Using \setupinterlinespace with \setuparranging[XY], and more

2013-06-21 Thread Pavneet Arora
Hello,

I am using Willi's MAPS 37 and the Example section from the \setuppaper 
command:

http://wiki.contextgarden.net/Command/setuppaper

to print a set of labels, 2x6 configuration on U.S. Letter waterproof
label paper.

For the most part things are working well, but I have a number of questions:

1.  A difference between MAPS 37 and wiki entry for \setuppaper is the
inclusion of the following line in the later:

\setuplayout[location=middle]

which seems to play a significant role.  Otherwise, I cannot get the
labels to honour the topspace and backspace specified in the setuppaper
command.  My question is why is this significant?  What role does it
play?  This can be tested by simply deleting the line in the MWE below.

2.  I would like to have every label centered, i.e.,
\framed[alignment=center] should be set for all labels.  However,
including it in the setupframedtexts command doesn't seem to have any
effect as shown in the MWE down below.  Is there another way for all
labels to inherit this alignment setting?

3.  I cannot get interlinespacing to affect the line spacing even though
the baselineskip variable is changed as shown in the MWE.

advTHANKSance.


EXAMPLE:

\definepapersize
[Label]
[width=4in,height=3.33in]

\setuppapersize[Label][letter,portrait]

\setuppaper
[topspace=0.4688in,
backspace=0.1875in,
dx=0.1875in,
dy=0in,
nx=2,
ny=3]

\setuplayout
[topspace=0in,
backspace=0in,
margin=0in,
width=4in,
height=3.33in,
header=0in,
footer=0in]

\setuparranging[XY]

\setupframedtexts
[width=\textwidth,
height=\textheight,
alignment=center,
frame=off,
location=lohi,
alignment=center,
offset=0pt]

\setuplayout[location=middle]

\definelayer
[Label]
[width=\paperwidth,
height=\paperheight]

\usemodule[simplefonts]
\setmainfont[schola]
\setupbodyfont[rm,48pt]
\setupinterlinespace[line=2.8ex]

\showframe

\starttext
\the\baselineskip\page
\framed[frame=off,width=\textwidth,height=\textheight,aligment=center]{Label 
1}\page
\the\baselineskip\page
\framed[frame=off,width=\textwidth,height=\textheight,aligment=center]{\definedfont[Serif
 at 18pt]\setupinterlinespace \the\baselineskip\crlf A long description label 
that needs to be have its interline spacing adjusted.}\page
Label 2\page
Label 3\page
Label 4\page
Label 5\page
Label 6\page
Label 7\page
Label 8\page
\stoptext



-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] [***SPAM***] Scaling large (annotated) MetaFun drawing

2013-06-18 Thread Pavneet Arora
[Sorry about the previous null message.]

Background:

Typically I use MetaPost to create small figures, which I then can scale
as needed in larger documents.  These figures contain no text so I can
simply use the .eps output of mpost as an inclusion.

Recently, I have embarked on a large illustration replete with lots of
text labels.  It is a distilled architectural drawing intended for
diagnostic and maintenance purposes.  In it plumbing details are
overlaid over a layout.  For simplicity, I standardized on unit size of
1cm so that co-ordinates can easily map from physical dimensions with
the unusual hybrid scale of 1cm=1ft ;)..

Status:

With this set unit size, my drawing has grown very large.  My intent is
to get it printed on one of the (U.S.) based architectural paper sizes,
or if it can be made legible on U.S. Tabloid size paper (17 x 11)..
My first successful approach (and where I stand right now) is to simply
use \startMPpage and \stopMPpage to scale to the page.

Thera are a couple of issues, though, with this approach.  First, I want
to add additional information to the page, other than what would be
handled by MetaPost, e.g., some tables, etc.  Even without this
additional information, having the drawing scale to page size does not
give adequate margin buffering and if there are some labels right at the
edge, I have seen some clipping of the text.

Objective:

I would like to create a scalable drawing with all of its text
labels so that I can scale appropriately to different page sizes, and
also incorporate the illustration with other document elements.

From what I have read at:

http://wiki.contextgarden.net/MetaPost_in_ConTeXt

I think what I need is something akin to \startuseMPgraphic with a
scaling option if I want to include the code inline.  Otherwise, the
drawing is clipped on the page.

Or perhaps I simply try to convert the existing PDF output to PS, and
then include it?

What I am hoping is to get a best practises workflow from the list so
that I can simply adopt it.

advTHANKSance.

Sample:

A MWE is found below:

\setuppapersize[tabloid,landscape][tabloid,landscape]
\starttext

\setupMPinstance
[metafun]
[extensions=yes,
initializations=yes,
textstyle=bold]

\startMPpage
u:=1cm;

pickup pencircle scaled 1pt;

draw (5u,0u) {dir 90}..(0u,5u) {dir 180};
draw (0u,5u) .. (-1.5u,10.5u) {dir 90} .. (0u,16u);
draw (0u,16u) {dir 0} .. (5u,21u) {dir 90};
draw (5u,21u) -- (39u,21u);
draw (39u,21u) {dir 270} .. (42u,18u) {dir 0};
draw (42u,18u) .. (43.5u,10.5u) {dir 270} .. (42u,3u);
draw (42u,3u) {dir 180} .. (39u,0u) {dir 270};
draw (39u,0u) -- (35u,0u);
draw (35u,0u) .. (22u,3u) {dir 180} .. (9u,0u);
draw (9u,0u) -- (5u,0u);
label(btex AN ARCHITECTURAL ELEMENT etex, (22u,10.5u));

\stopMPpage
\stoptext


-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt on the Mac (TexShop). Problem of a newbie

2013-01-10 Thread Pavneet Arora

Thanks Aditya!

This is tremendously helpful for all of us who use ConTeXt to do our slides.

Regards.



--

Message: 2
Date: Thu, 10 Jan 2013 06:22:47 -0500 (EST)
From: Aditya Mahajan adit...@umich.edu
To: mailing list for ConTeXt users ntg-context@ntg.nl
Subject: Re: [NTG-context] ConTeXt on the Mac (TexShop). Problem of a
newbie
Message-ID: alpine.DEB.2.02.1301100615390.5047@nqv-guvaxcnq
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Thu, 10 Jan 2013, Hans Hagen wrote:


you only need modules for special kind of functionality or rendering (like
presentations) although one can make presentations without extra modules
(just set the papersize to S6 or so)


I created an example to show how to create basic slides from scratch.

https://github.com/adityam/context-slides-example/commits/master

The first commit starts with a basic skeleton document, Each additional
commit adds new functionality (pagesetup, layout, fonts, heads, style,
bullets) and shows how to incrementally add features to a style. When I
get the time, I'll add code to show how to create a titlepage etc.

Basically, you don't need any modules for slides as creating your own
style is relatively simple

Aditya




--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

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

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


Re: [NTG-context] ConTeXt on the Mac (TexShop). Problem of a newbie

2013-01-10 Thread Pavneet Arora

Hans,

This is a most lucid explanation.  I have been waiting for this myself.

To quote the great American philosopher, Corporal Radar O'Reilly, from the 
television show of the 1970s, M*A*S*H:


Ah, Bark! [He was instructed to say Ah, Baaah! by Hawkeye Pierce]

I apologise in advance for this most peculiar and culturally specific bit of 
history.


Regards.



--

Message: 5
Date: Thu, 10 Jan 2013 12:58:43 +0100
From: Hans Hagen pra...@wxs.nl
To: mailing list for ConTeXt users ntg-context@ntg.nl
Subject: Re: [NTG-context] ConTeXt on the Mac (TexShop). Problem of a
newbie
Message-ID: 50eeacf3.9040...@wxs.nl
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 1/10/2013 12:19 PM, Martin Schr?der wrote:

2013/1/10 Keith J. Schultz keithjschu...@web.de:

I am kind of confused about the relationship between luatex and ConTeXt.


http://www.tug.org/levels.html

ConTeXt MkIV needs LuaTeX.


That's a somewhat confusing description.

(1) Context is just a format, so it should be mentioned as format.

(2) We call all instances context, i.e. we don't combine engine names
with 'context' so there is no 'pdfcontext', although one could do that.

(3) As there are language dependent user interfaces, we have more
formats (cont-en, cont-nl, ...).

(4) We use a management script to run the engine with the context
format. Reasons for this are: we need to manage multiple runs, we might
need to call intermediate programs (in mkii for instance we need to sort
indices).

(5) This also permits us to present to user with an engine independent
call to context. In mkii we had 'texexec' (on top of a more generic
script manager called texmfstart), in mkiv we have 'context' (and again
a script manager called mtxrun).

Now, to come to luatex: this project is quite related to context as it
all started in the context community. We also use context for testing
and exploring new functionality. For this we use mkiv/mkvi which is a
rewrite of context using the full potential of luatex so that we can go
beyond what traditional tex engines can do. We explicitly have chosen
for a lua + tex combination so that we don't have to hardcode solutions
in the engine (macro packages have too many conflicting demands anyway)
and are more future proof.

Given that mkii is frozen, and given that type1 fonts are sort of
obsolete (context has always been an early adopter of lm and gyre
fonts), and given that utf is the way to go (so no messing with input
and font encodings any more), and given some more reasons, in practice
users will no longer use pdftex and/or xetex but luatex. In that sense
context depends on luatex and also keep the development of that engine
going.

The philosophy of context is that by having most functionality in the
core, users can rather easy create their own styles (the average style
has not that many lines anyway). I'm always sort of puzzled when I see
remarks that context is close to plain, as I cannot see where that
conclusion comes from. The whole reason that context exists is that I
didn't want to hack around in low level style files and deal with funny
commands having @ in their names.

Hans

-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
   | www.pragma-pod.nl
-




--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Problem using League of Moveable Type's Gothic font in simple project

2012-12-11 Thread Pavneet Arora

Hello,

I have a simple sign that I need to put together with a good title font.  Since, 
I have been looking for a project to try out LoMT's Gothic 
(http://www.theleagueofmoveabletype.com/league-gothic) I thought that this would 
be a perfect opportunity.


Unfortunately, I am getting some errors from LuaTeX that I am unable to 
decipher.  The context file compiles successfully with other fonts such as Museo 
via the simplefonts mechanism.  Note that the errors come after the message: 
otf loading  font loaded okay and seems related to the adobe glyph list, 
which I am unfamiliar with.


Any guidance would be greatly appreciated.

-- Pavneet


ConTeXt  ver: 2012.12.10 23:20 MKIV  fmt: 2012.12.11  int: english/english

system   cont-new.mkiv loaded
(/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   files  jobname: electricalpanelwarning, input: 
electricalpanelwarning, result: electricalpanelwarning

fontslatin modern fonts are not preloaded
languageslanguage en is active
(electricalpanelwarning.tex
resolversmodules  loaded: 'simplefonts'
(/opt/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.mkiv
loading  ConTeXt User Module / Simplefonts
+ 
/opt/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua)
fontstypescripts  unknown: library 'loc'
{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontsotf loading  loading: 
/home/pavneet/.fonts/opentype/theleagueof-league-gothic-64c3ede/LeagueGothic-Regular.otf 
(hash: leaguegothic-regular)

fontsotf loading  font loaded okay
fontsotf loading  file size: 24472
fontsencoding  loading (extended) adobe glyph list
! LuaTeX error ...text/tex/texmf-context/tex/context/base/font-otf.lua:1095: 
table index is nil

stack traceback:
	...text/tex/texmf-context/tex/context/base/font-otf.lua:1095: in function 
'enhancer'

...text/tex/texmf-context/tex/context/base/font-otf.lua:260: in 
function 'enhance'
...text/tex/texmf-context/tex/context/base/font-otf.lua:282: in 
function 'apply'
...text/tex/texmf-context/tex/context/base/font-otf.lua:457: in 
function 'load'
	...text/tex/texmf-context/tex/context/base/font-otf.lua:1942: in function 
'otftotfm'
	...text/tex/texmf-context/tex/context/base/font-otf.lua:1969: in function 
...text/tex/texmf-context/tex/context/base/font-otf.lua:1968

(tail call): ?
(tail call): ?
(tail call): ?
...text/tex/texmf-context/tex/context/base/font-def.lua:299: in 
function 'loadfont'
...text/tex/texmf-context/tex/context/base/font-ctx.lua:469: in 
function 'loadfont'
...text/tex/texmf-context/tex/context/base/font-def.lua:413: in 
function 'read'
	...text/tex/texmf-context/tex/context/base/font-ctx.lua:965: in function 
'definefont_two'

\directlua :1: in main chunk.

system   tex  error on line 8 in file electricalpanelwarning.tex: 
LuaTeX error  ...



--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Mk IV version of wasysym?

2012-11-14 Thread Pavneet Arora

Hans,

Normally, I do refer first to Martin Vogel's set, but in this case I 
just needed a symbol from Roland's set.  Do I take it then to mean the 
symb-was is not Mk IV compatible?


Thanks.

On Wed 14 Nov 2012 12:18:25 PM EST, Hans Hagen wrote:

On 11/13/2012 1:49 PM, Pavneet Arora wrote:

I am trying to use some of the symbols from Roland Waldi's symbols
collection in a project.  After not getting the minimal example to work,
I looked for the 'symb-was.*' file, and came across only this;

/opt/context/tex/texmf-context/tex/context/base/symb-was.mkii

I notice that there doesn't seem to be a .mkiv version of this set.
Could this be the problem?

The minimal example was simply:

\usesymbols[was]
\showsymbolset[wasy general]



best look in the symb-imp-mvs

Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-


--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Mk IV version of wasysym?

2012-11-13 Thread Pavneet Arora
I am trying to use some of the symbols from Roland Waldi's symbols collection in 
a project.  After not getting the minimal example to work, I looked for the 
'symb-was.*' file, and came across only this;


/opt/context/tex/texmf-context/tex/context/base/symb-was.mkii

I notice that there doesn't seem to be a .mkiv version of this set.  Could this 
be the problem?


The minimal example was simply:

\usesymbols[was]
\showsymbolset[wasy general]


Thanks.


--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

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

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

2012-07-24 Thread Pavneet Arora

Ah, I got it now!

\quotation is quite different from \{start|stop}quotation.  I was attempting to 
affect the changes using just \quotation{}, which has no (or in my case 
asymmetrical and strange) effects on the margins, at least within simpleslides.


Now, I don't know whether there should be a difference in behaviour, but there 
definitely is.  When I simply integrated your \setupdelimitedtext and 
\{start|stop}narrower into my existing slide presentation, there was no change. 
 As I kept reducing the presentation there still was no change in behaviour 
until the only thing staring up at me was \quotation{}.


Glad I chased this down even though it might have been painful for others to 
read of my bumbling about.  It gives me another core piece for doing my 
presentations.


Cheers.


On 12-07-24 12:22 AM, Wolfgang Schuster wrote:


You’re doing to wrong, below you can see two different ways to have a quotation 
with margins. The first method uses the quotation environment where you can 
control the margin with the leftmargin and “rightmargin keys, the second method 
uses the quotation command which is put in a narrower environment to create the 
margins/offset.

\showframe[text][text]

\startbuffer
Pito Salas, a developer at ATG, decided to attack this problem.
After a few months of studying existing real-world examples,
it became clear that the data, views of that data, and the
formulas that acted on that data were very separate concepts.
Yet in every case, the existing spreadsheet programs required
the user to type all of these items into the same (typically
single) sheet’s cells.%
\stopbuffer

\starttext

\startquotation \getbuffer \stopquotation

\setupdelimitedtext[quotation][leftmargin=3cm]

\startquotation \getbuffer \stopquotation

\quotation{\getbuffer}

\startnarrower[3*middle]
\quotation{\getbuffer}
\stopnarrower

\stoptext

Wolfgang



--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

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

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

2012-07-24 Thread Pavneet Arora
Yes, indeed the information is there.  What makes the wiki sometime impenetrable 
is that doing a search, even a Google search, with keyword based or topic based 
queries rather than command based queries leads to varying results.  You know 
what you want to do; you just don't know which commands will lead you to the result.


Also just to clarify, as is my habit, I did search the wiki, and in this case I 
had even looked repeatedly at the hints.  I just didn't catch the distinction in 
my own coding.


I guess the trick is to know what commands one should hone in on ;).

Regards.

On 12-07-24 07:44 AM, Sietse Brouwer wrote:

On Tue, Jul 24, 2012 at 12:51 PM, Pavneet Arora pavneet_ar...@waroc.com wrote:

Now, I don't know whether there should be a difference in behaviour,
[between \quotation and \startquotation], but there definitely is.


This is deliberate: \quotation is for inline quotations, while
\startquotation is for block quotations. Compare \math and \startmath.

I completely understand that people have gotten into a habit of not
looking up commands on the wiki; there was So Much Blankness on the
command pages, so why bother? By now, though, we have reached the
stage that looking up a basic command, at least, has a good chance of
success. So perhaps people could slowly start looking at the wiki
command reference again? The answer to quotation/startquotation, at
least, was sitting right there. :-)

http://wiki.contextgarden.net/Command/startquotation
http://wiki.contextgarden.net/Command/quotation

Cheers,

Sietse
Sietse Brouwer



--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

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

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

2012-07-23 Thread Pavneet Arora

Dear Wolfgang,

I have tried what I believe to be the two approaches you suggested for 
controlling the margins of a quotation:


1.  Using the switches offered via \setupdelimitedtext in the \setupquotation 
command:


\setupquotation[leftmargin=1.5in]
\quotation{Pito Salas, a developer at ATG, decided to attack this problem. 
After a few months of studying existing real-world examples, it became clear 
that the data, views of that data, and the formulas that acted on that data were 
very separate concepts. Yet in every case, the existing spreadsheet programs 
required the user to type all of these items into the same (typically single) 
sheet's cells.}


The result in this case is that neither margin is affected with any combination 
of leftmargin= and rightmargin=, either alone or in combination.


2.  Creating an environment file env-myquotation.tex, which has as its contents:

\startenvironment myquotation
\setuplayout[leftmargin=1.5in,backspace=1.5in,rightmargin=1.5in]
\stopenvironment

...and then the slide:

\SlideTitle{An exception: Lotus Improv, an exceptional spreadsheet}
\blank
%\setupquotation[leftmargin=1.5in]
{\environment env-myquotation.tex
\quotation{Pito Salas, a developer at ATG, decided to attack this problem. 
After a few months of studying existing real-world examples, it became clear 
that the data, views of that data, and the formulas that acted on that data were 
very separate concepts. Yet in every case, the existing spreadsheet programs 
required the user to type all of these items into the same (typically single) 
sheet's cells.}

}
\par
\startalignment[flushright]
\blank[2*big]
{\em Source:  Wikipedia/Lotus Improv}
\stopalignment

In this case, the margins seem to work for the quotation, but, unfortunately, 
the title is also shifted by the leftmargin (but not the right margin as title 
width appears to remain the same; this title is longer than a single line), and 
the credit which I did not need brought in was also shifted in to the right 
margin of the environment.


So am I limited in my control over margins within a slide do you think?  Or is 
there another approach?


Thanks.


On 12-07-17 11:33 PM, Wolfgang Schuster wrote:



2.  Margins

I have the following slide, where only the right margin is affected.  I
have tried variations on backspace, width and margin but haven't gotten
the left margin to move.





\definelayout[quotation][leftmargin=1.5in,rightmargin=1.5in]

\SlideTitle{An exception: Lotus Improv, an exceptional spreadsheet}
\blank
\setuplayout[quotation]
\quotation{Pito Salas, a developer at ATG, decided to attack this problem. 
After a few months of studying existing real-world examples, it became clear 
that the data, views of that data, and the formulas that acted on that data 
were very separate concepts. Yet in every case, the existing spreadsheet 
programs required the user to type all of these items into the same (typically 
single) sheet's cells.}
\par
\setuplayout[reset]
\startalignment[flushright]
\blank[2*big]
{\em Source:  Wikipedia:Lotus Improv}



I am sure that it is something simple that I am missing here, but any
guidance would be most appreciated.


You can’t use a customized layout to change the margins of a part of the page 
only,
use the quotation environment or put the quotation in a narrower environment.

Wolfgang



--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)



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

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

2012-07-18 Thread Pavneet Arora

Hans and Wolfgang,

Thanks, as always, for the prompt replies.  Does this mean that I need to focus 
on the typescript mechanism rather than simplefonts?  Wolfgang, that was also 
the point I wanted to clarify since from my earlier reading of the manual's 
section on Choosing on your own fonts, the example pointed to using 
typescripts. However, from the Aditya's posting I was encouraged that I could 
use (my) default method of relying on simplefonts.


One last question stemming from the Jean-Luc Dumont's article on effective 
communications:  is there a way to turn off the interaction bar in the slides. 
 I am using the simple 'Shaded' style where the interaction bars are displayed 
as small circles along the bottom.


Regards.

On 12-07-18 03:42 AM, Hans Hagen wrote:

On 18-7-2012 02:41, Pavneet Arora wrote:


also doesn't seem to work at all.  I get what I believe to be Latin
Modern Sans across the board.

I have resorted to using one of the default fonts via the module switch
for now, but would like to customize the font selection to my taste.


Just using (without any additional definitions):

   \setupbodyfont[dejavu,10pt]

works, as there is a type-imp-dejavu typescript.

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-




--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)



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

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

2012-07-17 Thread Pavneet Arora

Hello all,

I am here at TUG 2012 updating the presentation that I am to give in the 
morning.

I have had a couple of lingering questions regarding simpleslides that I
thought I would put out there.  They are not show stoppers, and I have
lived with them in my other presentations.  It is just that with my
brain on TeX (and ConTeXt) for the past few days, I thought that I would
try to resolve them once and for all.

1.  Fonts

I would like to specify separate mainfont and bodyfont using the
simplefonts module (or some other consistent mechanism).

I have read the thread from:

http://www.ntg.nl/pipermail/ntg-context/2011/056495.html

and have tried to split up Wolfgang's suggestion into the two parts.  I
have tried:

\usemodule[simplefonts][size=18pt]
\setmainfont[grandesignneueserif]

\setupbodyfont[dejavuserif]

which gets me the title font, but not the body font.

The other approach:

\definetypeface[mainface][rm][serif][DejaVu Serif][default]
\definetypeface[mainface][ss][sans][DejaVu Sans][default]
\definetypeface[mainface][tt][mono][Inconsolata][default]
\setupbodyfont[mainface]

also doesn't seem to work at all.  I get what I believe to be Latin
Modern Sans across the board.

I have resorted to using one of the default fonts via the module switch
for now, but would like to customize the font selection to my taste.

2.  Margins

I have the following slide, where only the right margin is affected.  I
have tried variations on backspace, width and margin but haven't gotten
the left margin to move.





\definelayout[quotation][leftmargin=1.5in,rightmargin=1.5in]

\SlideTitle{An exception: Lotus Improv, an exceptional spreadsheet}
\blank
\setuplayout[quotation]
\quotation{Pito Salas, a developer at ATG, decided to attack this problem. 
After a few months of studying existing real-world examples, it became clear 
that the data, views of that data, and the formulas that acted on that data were 
very separate concepts. Yet in every case, the existing spreadsheet programs 
required the user to type all of these items into the same (typically single) 
sheet's cells.}

\par
\setuplayout[reset]
\startalignment[flushright]
\blank[2*big]
{\em Source:  Wikipedia:Lotus Improv}



I am sure that it is something simple that I am missing here, but any
guidance would be most appreciated.

Many thanks.

--
-
- Pavneet Arora

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Migrating from prosper to simpleslides in creating presentations

2011-12-07 Thread Pavneet Arora

Dear Thomas,

Nauseating is an apt description ;).  In general, I too avoid them, but with 
this upcoming audience, unadorned may be mistaken (incorrectly) for plain.  I do 
think, however, that `dissolve' is subtle enough to offer a reasonable compromise.


BTW, is there a way of doing incremental slides with the simpleslides module 
like the overlay feature from prosper?  Or is that easily achieved in some other 
way that is native to ConTeXt?


Thanks and regards.


On 11-12-07 03:29 AM, Thomas A. Schmitz wrote:

On 12/06/2011 11:40 PM, Pavneet Arora wrote:

Thanks Wolfgang and Marco for the quick responses. Marco, `impressive'
looks just the thing that will easily allow me to add transitions while
still using simpleslides to get me going until I can do my own DIY slides.

Regards.


Glad you found a solution. Maybe just a word explaining why I find it a waste of
time to do work on such transitions in simpleslides: even if we accept, for the
sake of the argument, that such transitions are more than a mere distraction, it
is almost impossible to get acceptable results across platforms and pdf viewers.
Most viewers under linux will either not show transitions at all or show them in
such an ugly way that your audience may leave in disgust. If something like this
doesn't work, newbies will of course assume that it's the module's fault, while
in reality, it's the implementation of the pdf viewer. Instead of having
inconsistent and potentially unsatisfying results, I prefer to leave these
transitions to outside tools.

And a tiny bit of anecdotal evidence: I had been using a cube transition for a
while in my classroom lectures. I thought it was cool. And then, one day, I was
standing somewhere in the back of the classroom while I was changing slides with
my remote control, and I saw the effect for the first time from the audience's
point of view. The slide pretty much fills up the front wall of the classroom,
and watching the cube turn was absolutely nauseating; I was surprised that none
of the students had ever complained (or thrown up...). It was horrible, and I
have given up all transitions ever since...

Thomas


--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Migrating from prosper to simpleslides in creating presentations

2011-12-07 Thread Pavneet Arora

BTW, I am using evince under Ubuntu and haven't noticed too many
inconsistencies, but then I don't normally use transitions, but do use
incremental slides a lot, which I understand are also only pertinent
with PDFs: from p. 4 of the prosper manual in the section for Overlays,
``All those macros are only really meaningful in pdf mode; in ps mode,
they do nothing or interpret their argument, depending on the option
no/accumulate.''

On 11-12-07 03:29 AM, Thomas A. Schmitz wrote:

On 12/06/2011 11:40 PM, Pavneet Arora wrote:

Thanks Wolfgang and Marco for the quick responses. Marco, `impressive'
looks just the thing that will easily allow me to add transitions while
still using simpleslides to get me going until I can do my own DIY slides.

Regards.


Glad you found a solution. Maybe just a word explaining why I find it a waste of
time to do work on such transitions in simpleslides: even if we accept, for the
sake of the argument, that such transitions are more than a mere distraction, it
is almost impossible to get acceptable results across platforms and pdf viewers.
Most viewers under linux will either not show transitions at all or show them in
such an ugly way that your audience may leave in disgust. If something like this
doesn't work, newbies will of course assume that it's the module's fault, while
in reality, it's the implementation of the pdf viewer. Instead of having
inconsistent and potentially unsatisfying results, I prefer to leave these
transitions to outside tools.

And a tiny bit of anecdotal evidence: I had been using a cube transition for a
while in my classroom lectures. I thought it was cool. And then, one day, I was
standing somewhere in the back of the classroom while I was changing slides with
my remote control, and I saw the effect for the first time from the audience's
point of view. The slide pretty much fills up the front wall of the classroom,
and watching the cube turn was absolutely nauseating; I was surprised that none
of the students had ever complained (or thrown up...). It was horrible, and I
have given up all transitions ever since...

Thomas


--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Migrating from prosper to simpleslides in creating presentations

2011-12-07 Thread Pavneet Arora
Thanks Hans.  Will do.  Steps sounds perfect for this and my other applications.

Regards.

-- 
Sent from my Nokia N900. Please excuse my brevity.

- Original message -
 On 7-12-2011 12:44, Pavneet Arora wrote:
  Dear Thomas,
  
  Nauseating is an apt description ;). In general, I too avoid them, but
  with this upcoming audience, unadorned may be mistaken (incorrectly)
  for plain. I do think, however, that `dissolve' is subtle enough to
  offer a reasonable compromise.
  
  BTW, is there a way of doing incremental slides with the simpleslides
  module like the overlay feature from prosper? Or is that easily
  achieved in some other way that is native to ConTeXt?
 
 context s-pre-61
 
 will give you an example (the magic word is Steps .. non intrusive and 
 efficient stepping)
 
 Hans
 
 
 -
                                                                               
        Hans Hagen | PRAGMA ADE
                               Ridderstraat 27 | 8061 GH Hasselt | The 
Netherlands
           tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                                                               
              | www.pragma-pod.nl
 -

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

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

[NTG-context] Migrating from prosper to simpleslides in creating presentations

2011-12-06 Thread Pavneet Arora

Hello,

I am trying to put aside doing my presentations using prosper, and
migrating to using ConTeXt+simpleslides.

I ask this knowing full well that many would consider these features as
simply adding visual noise to presentations, and normally I too eschew
them, but as I am reading Jean-Luc Doumont's book on effective
communications I am reminded that the primary purpose of presentations is
to affect change in the audience.  I am to give a presentation in a few
days to a group of designers/interior decorators, and for this audience
presentations using these features are both appropriate and often
expected.

I am looking for the equivalent of transition effects in the prosper
class---the simple Wipe transition would suffice; no need for Glitter
;).  The other feature that I would like is the incremental displaying
of a slide, i.e., the \overlays feature.  Is there an easy way to
incorporate these into a ConTeXt based presentation, even if it means
not necessarily using simpleslides?

advTHANKSance.



--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Migrating from prosper to simpleslides in creating presentations

2011-12-06 Thread Pavneet Arora
Thanks Wolfgang and Marco for the quick responses.  Marco, `impressive' looks 
just the thing that will easily allow me to add transitions while still using 
simpleslides to get me going until I can do my own DIY slides.


Regards.

--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Word-wrap/hyphenation with very large font size not working consistently

2011-12-03 Thread Pavneet Arora
I am trying to typeset some signs for a construction site.  I enclose a 
(somewhat contrived) for consideration.


What I am having difficulty with is to get word wrap and interline spacing to 
work consistently.  I am using \framed, but if there is a better way please let 
me know.  The trouble I am having is getting lines to break consistently. 
Sometimes they do, but as in this case the second word `through' continues 
beyond the frame width.  You may also try to substitute the text ``Enter this 
way today'', another contrived example to see the effect.  The symbol font that 
I am using is Symbol-Signs from:


http://www.fontsquirrel.com/fonts/Symbol-Signs

but I shouldn't think that is pertinent to the problem.

Any guidance on what is the issue here?  Or if there is a better way to go about 
doing this type of signage.


I am also interested in learning how to do vertical centering of blocks of text, 
i.e., in a formal letter or in this case of setting text for signs.  I have read 
and tried to understand Wolfgang's response to Jaroslav's earlier enquiry:


http://archive.contextgarden.net/message/20100702.112805.07aa71e2.en.html

but I really don't understand it and how to make it work for my applications. 
Is there a simple template---say for a block of text---that someone might be 
able to offer for the ConTeXt challenged?


advTHANKSance

--
-
- Pavneet Arora



parking.pdf
Description: Adobe PDF document
\setuppapersize[legal,landscape]
\setuplayout[header=0in,footer=0in,topspace=0.75in,bottomspace=0.75in,backspace=1in,width=12in]
\setuppagenumbering[location=]
\usemodule[simplefonts]
\setmainfont[texgyreschola]
\definebodyfont [10pt,11pt,12pt][rm]
	[tfe=Serif at 128pt,
	ite=SerifItalic at 128pt]
\setupbodyfont[12pt]
\setupinterlinespace[line=1.2\bodyfontsize]
\starttext
%\showlayout[pt,in]
%\showbodyfont
\dontleavehmode\framed[width=7in,align={flushright,nothyphenated,verytolerant},frame=on]{%
\tfe Enter through here for parking
}
\dontleavehmode\framed[width=5in,frame=off]{%
{\simplefont[symbol-signs][size=500pt] K}
}
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Word-wrap/hyphenation with very large font size not working consistently

2011-12-03 Thread Pavneet Arora

Thanks Wolfgang,

I see that the main change was align=broad as an option to \framed. Could you 
tell me what that does, or point me to where it is described?  I see broad 
described in terms of width and height but not align under the description for 
framed.


Thanks.

On 11-12-03 10:43 AM, Wolfgang Schuster wrote:


Am 03.12.2011 um 16:31 schrieb Pavneet Arora:


I am trying to typeset some signs for a construction site.  I enclose a 
(somewhat contrived) for consideration.

What I am having difficulty with is to get word wrap and interline spacing to 
work consistently.  I am using \framed, but if there is a better way please let 
me know.  The trouble I am having is getting lines to break consistently. 
Sometimes they do, but as in this case the second word `through' continues 
beyond the frame width.  You may also try to substitute the text ``Enter this 
way today'', another contrived example to see the effect.  The symbol font that 
I am using is Symbol-Signs from:

http://www.fontsquirrel.com/fonts/Symbol-Signs

but I shouldn't think that is pertinent to the problem.

Any guidance on what is the issue here?  Or if there is a better way to go 
about doing this type of signage.

I am also interested in learning how to do vertical centering of blocks of 
text, i.e., in a formal letter or in this case of setting text for signs.  I 
have read and tried to understand Wolfgang's response to Jaroslav's earlier 
enquiry:

http://archive.contextgarden.net/message/20100702.112805.07aa71e2.en.html

but I really don't understand it and how to make it work for my applications. 
Is there a simple template---say for a block of text---that someone might be 
able to offer for the ConTeXt challenged?


\setuppapersize[legal,landscape]

\setuplayout
   [header=0in,
footer=0in,
topspace=0.75in,
bottomspace=0.75in,
backspace=1in,
width=12in]

\setuppagenumbering
   [location=]

\usemodule[simplefonts]

\setmainfont[TeX Gyre Schola]

%\setupinterlinespace[line=1.2\bodyfontsize]
\setupinterlinespace[line=2.2ex]

\starttext
\dontleavehmode
\framed
   [width=7in,align={flushright,nothyphenated,broad},frame=on]
   {\definedfont[Serif at 128pt]\setupinterlinespace Enter through here for 
parking\par}%
\framed
   [width=5in,frame=off]
% {\definedfont[name:symbolsigns at 500pt]K}
   {\definedfont[Sans at 500pt]K}
\stoptext

Wolfgang


--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Word-wrap/hyphenation with very large font size not working consistently

2011-12-03 Thread Pavneet Arora

Thanks for the clarification!  I'll keep that in mind.

On 11-12-03 12:14 PM, Wolfgang Schuster wrote:


Am 03.12.2011 um 17:55 schrieb Pavneet Arora:


Thanks Wolfgang,

I see that the main change was align=broad as an option to \framed. Could you 
tell me what that does, or point me to where it is described?  I see broad 
described in terms of width and height but not align under the description for 
framed.


With the “broad” key you can increase the tolerance for ragged (left, middle 
and right) text as you can see in the example below.

\starttext

\startalignment[flushleft]
\input ward
\stopalignment

\blank

\startalignment[flushleft,broad]
\input ward
\stopalignment

\stoptext

Wolfgang


--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-12-01 Thread Pavneet Arora
Just for the sake of completeness, in case someone else stumbles upon this 
thread, it should be noted that \definefontfeature needs to be set before 
\setupbodyfont, i.e.,


\definefontfeature[default][default][onum=yes]
\definefontfeature[smallcaps][smallcaps][onum=yes]
\setupbodyfont[schola,11pt]

rather than:

\setupbodyfont[schola,11pt]
\definefontfeature[default][default][onum=yes]
\definefontfeature[smallcaps][smallcaps][onum=yes]

I made the mistake of using the latter form in one of my tests and was
left wondering why things weren't working.

Regards.

On 11-11-30 04:19 PM, Wolfgang Schuster wrote:


Am 30.11.2011 um 20:19 schrieb Pavneet Arora:


Okay another anomaly:  I used the example in the FAQs to try to set the feature 
across the entire document, which is really what I want.

http://wiki.contextgarden.net/FAQ#How_can_I_get_the_.E2.80.9Coldstyle_numbers.E2.80.9D_.28text_figures.29_in_a_document.3F

In a manuscript length project, I wouldn't want to get {\os } for each local 
instance.  Now, what I have noticed was that the small caps switch, \sc, seems 
to disable old-style numerals.  Is this a typographic convention, i.e., that in 
a run of small caps one should not revert to old-style numerals?  Is there a 
way of avoiding this assumption for a larger project?  I sometimes have text 
set in small caps that as part of a project ID would have some numbers in it.  
In that case, I would like the old-style numerals to be used.


No, the answer is that smallcaps are activated with the “smcp” feature and this 
is applied to the regular style with the “smallcaps” set. To get now old style 
figures when you use smallcaps letters you need also this setup:

\definefontfeature[smallcaps][smallcaps][onum=yes]

Wolfgang


--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-30 Thread Pavneet Arora

Many thanks Wolfgang!

On 11-11-30 01:30 AM, Wolfgang Schuster wrote:


Am 30.11.2011 um 02:19 schrieb Pavneet Arora:


I enclose a minimal example as well as the output.  It would seem that the \os 
causes the m-dash to come out as three hyphens.  Is this the expected behavior?


Write {\os 123…}, context use a special fontfeature set (with the name 
“just-os”) for old style figure where where kerning, text ligatures etc. are 
disabled.

Wolfgang


--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-30 Thread Pavneet Arora
Okay another anomaly:  I used the example in the FAQs to try to set the feature 
across the entire document, which is really what I want.


http://wiki.contextgarden.net/FAQ#How_can_I_get_the_.E2.80.9Coldstyle_numbers.E2.80.9D_.28text_figures.29_in_a_document.3F

In a manuscript length project, I wouldn't want to get {\os } for each local 
instance.  Now, what I have noticed was that the small caps switch, \sc, seems 
to disable old-style numerals.  Is this a typographic convention, i.e., that in 
a run of small caps one should not revert to old-style numerals?  Is there a way 
of avoiding this assumption for a larger project?  I sometimes have text set in 
small caps that as part of a project ID would have some numbers in it.  In that 
case, I would like the old-style numerals to be used.


I again enclose a small example with output.

advTHANKSance.

On 11-11-30 01:30 AM, Wolfgang Schuster wrote:


Am 30.11.2011 um 02:19 schrieb Pavneet Arora:


I enclose a minimal example as well as the output.  It would seem that the \os 
causes the m-dash to come out as three hyphens.  Is this the expected behavior?


Write {\os 123…}, context use a special fontfeature set (with the name 
“just-os”) for old style figure where where kerning, text ligatures etc. are 
disabled.

Wolfgang


--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)



test.pdf
Description: Adobe PDF document
\definefontfeature[default][default][onum=yes]

\setupbodyfont[schola]

\starttext
1234567890 A Pause---between yes and no.

{\sc 1234567890 A Pause---between yes and no.} 0987654321

\stoptext

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

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

Re: [NTG-context] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-30 Thread Pavneet Arora

Works a charm, Wolfgang.  Thanks again.

On 11-11-30 04:19 PM, Wolfgang Schuster wrote:


Am 30.11.2011 um 20:19 schrieb Pavneet Arora:


Okay another anomaly:  I used the example in the FAQs to try to set the feature 
across the entire document, which is really what I want.

http://wiki.contextgarden.net/FAQ#How_can_I_get_the_.E2.80.9Coldstyle_numbers.E2.80.9D_.28text_figures.29_in_a_document.3F

In a manuscript length project, I wouldn't want to get {\os } for each local 
instance.  Now, what I have noticed was that the small caps switch, \sc, seems 
to disable old-style numerals.  Is this a typographic convention, i.e., that in 
a run of small caps one should not revert to old-style numerals?  Is there a 
way of avoiding this assumption for a larger project?  I sometimes have text 
set in small caps that as part of a project ID would have some numbers in it.  
In that case, I would like the old-style numerals to be used.


No, the answer is that smallcaps are activated with the “smcp” feature and this 
is applied to the regular style with the “smallcaps” set. To get now old style 
figures when you use smallcaps letters you need also this setup:

\definefontfeature[smallcaps][smallcaps][onum=yes]

Wolfgang


--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-29 Thread Pavneet Arora
I enclose a minimal example as well as the output.  It would seem that the \os 
causes the m-dash to come out as three hyphens.  Is this the expected behaviour?


advTHANKSance.

--
-
- Pavneet Arora



test.pdf
Description: Adobe PDF document
\starttext
1234567890 A Pause---between yes and no.

\os
1234567890 A Pause---between yes and no.
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Double height rows using natural tables?

2011-11-24 Thread Pavneet Arora
I have tried various combinations and have so far been unsuccessful in getting a 
row of double height using natural tables.  I am following up and enclosing a 
minimal example, along with the a previous incarnation using TABLE, which does 
give me the intended layout.


Any suggestions on how to do the same using natural tables would be greatly 
appreciated.


advTHANKSance.


--
-
- Pavneet Arora

\setuppapersize[legal]
\setuplayout[header=0in,footer=0in,topspace=0.75in,backspace=1.25in]
\setuppagenumbering[location=]
\setupbodyfont[11pt]
\starttext
%\showlayout[pt,in]
%\showbodyfont
\define\unused{
{\inframed
 [foregroundstyle=type,
  background=color,
  backgroundcolor=gray,
  frame=off]
{\tt [Unused]}}
}
\def\spare{\dosingleempty\doSpare}
\def\doSpare[#1]{%
	\iffirstargument
		{\tt [#1]}
	\else
		{\tt [15A]}
	\fi
	{\tt [Spare]}
}
\startalignment[center]
{\tfb Electrical Room Electrical Panel}
\blank
{\tfa\sc Electrical Panel}
\blank
{\tfa Panel Model: Siemens}
\blank
{\tfb \tt [DRAFT---To Be Verified]}
\blank[2*big]
\stopalignment

\setupTABLE[frame=off]
\setupTABLE[r][each][height=0.35in]
\setupTABLE[c][1,3][align={center,lohi},width=0.75in]
\setupTABLE[c][2,4][align={flushleft,lohi},width=2.25in,loffset=0.1in]
\setupTABLE[r][4,6][topframe=on]
\setupTABLE[r][1][topframe=on,bottomframe=on]
\setupTABLE[r][last][bottomframe=on]

\midaligned{
\bTABLE
\bTABLEbody
	\bTR
		\bTD Circuit \eTD
		\bTD Description \eTD
		\bTD Circuit \eTD
		\bTD Description \eTD
	\eTR
%	\bTR
%		\bTD [nr=2] 5 \eTD \bTD [nr=2] Bedrooms 2+3 Arc Fault Plugs \eTD
%		\bTD [nr=2] 6 \eTD \bTD [nr=2] Roof Heating Cable \eTD
%	\eTR
	\bTR
		\bTD [nr=2] 7 \eTD \bTD [nr=2] Bedroom 4 Arc Fault Plug \eTD
		\bTD [nr=2] 8 \eTD \bTD [nr=2] \unused \eTD
	\eTR
\eTABLEbody
\eTABLE
}
\stoptext


test.pdf
Description: Adobe PDF document
\setuppapersize[letter]
\setuplayout[header=0in,footer=0in,topspace=0.75in,backspace=1.25in]
\setuppagenumbering[location=]
\switchtobodyfont[11pt]
\starttext
\startalignment[center]
\placetable[here][]{none}
\starttable[|cw(0.75in)|lw(1.5in)|cw(0.75in)|lw(1.5in)|]
\HL
\NC {\sc Circuit} \NC {\sc Description} \VL {\sc Circuit} \NC {\sc Description} \NC\SR
\HL
\NC \LOW{7} \NC \LOW{Bedrooms 2+3 Arc Fault Plug} \VL \LOW{8} \NC \LOW{\tt Unused} \NC\FR
\DC \DC \VL \NC \NC\MR
\HL
\NC \LOW{9} \NC \LOW{Bedroom 4 Arc Fault Plug} \VL \LOW{10} \NC \LOW{\tt Spare} \NC\FR
\DC \DC \VL \NC \NC\MR
\HL
\stoptable
\stoptext


test-.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Something similar to MarVoSym package for ConTeXt

2011-11-24 Thread Pavneet Arora
I am in need of some networking and other computer communications symbols.  Is 
there something similar to the MarVoSym package for LaTeX?  Or if there is a 
symbol font recommendation, that would be helpful as well.


Many thanks.

--
-
- Pavneet Arora


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Double height rows using natural tables?

2011-11-24 Thread Pavneet Arora
Thank you, Christian.  However, I find explicitly setting the row height a bit 
awkward.  What happens if I changed the height value in my \setupTABLE 
directive?  Then I would have to change all references to height in the table 
explicitly.  Also, my made up example is *only* of double rows.  However, I have 
the earlier example where this is a mixture of row spans across different 
columns.  It was just by chance that I was in a situation with all adjacent 
cells in a particular row requiring a row span.


Why would that be considered not an application of [nr=?]?  And if it indeed the 
case, shouldn't it be explicit that [nr=2] doesn't apply to an entire row?


Regards.


On 11-11-24 05:47 PM, Christian wrote:

I have tried various combinations and have so far been unsuccessful in
getting a row of double height using natural tables.  I am following up and
enclosing a minimal example, along with the a previous incarnation using
TABLE, which does give me the intended layout.

Any suggestions on how to do the same using natural tables would be greatly
appreciated.


use the height parameter for the table row. also, I don't thik you've 
understood the meaning of 'nr=2'.
I suggest you read the wiki entry on TABLES: http://wiki.contextgarden.net/TABLE


and here's your table back ;P :

\bTABLE
\bTABLEbody
\bTR
\bTD Circuit \eTD
\bTD Description \eTD
\bTD Circuit \eTD
\bTD Description \eTD
\eTR

\bTR[height=0.7in]
\bTD  7 \eTD \bTD  Bedroom 4 Arc Fault Plug \eTD
\bTD  8 \eTD \bTD  \unused \eTD
\eTR
\eTABLEbody
\eTABLE



--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Something similar to MarVoSym package for ConTeXt

2011-11-24 Thread Pavneet Arora

Just to answer my own question.  A list member suggested that I search
for the keyword `symbols'.  I had indeed referred to the wiki before
posting, but entered as a search the singular `symbol' rather than the
plural. What I got back as the lead item:

http://wiki.contextgarden.net/Reference/en/symbol

Thanks again for pointing me in the right direction.

--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Double height rows using natural tables?

2011-11-24 Thread Pavneet Arora

Yes, I get that part.  Perhaps, a larger example will illustrate .

Enclosed is a simple electrical panel.  Many are 40 or 60 circuits large.  Note 
that you have an assortment of cells spanning rows depending on breaker size. 
It is only by chance that in a particular case adjacent breaker might utilize 
the full slot.  Hence the [nr=2] approach.  So in the given panel, if circuits 
15 and 16 were both double-pole, it would be incorrect to label them as 15A/15B 
and 16A/16B.  Then for that particular 'row' I would need double height.


On 11-11-24 06:07 PM, Christian wrote:

If you want all rows double height except the first, just do it the other way 
around.
\setupTABLE[r][each][height=0.7in]
and then for the first row:
\bTR[height=0.35in]
Then it's only 2 digits to change :)

[nr=X] is for a cell spanning X rows. Hint: nr=number rows. So you'll get a 
single cell that reaches down X rows. it's not meant to be used to adjust the 
height of a row.

Check this out, lots of examples: 
http://www.pragma-ade.com/general/manuals/enattab.pdf



Thank you, Christian.  However, I find explicitly setting the row height a bit
awkward.  What happens if I changed the height value in my \setupTABLE
directive?  Then I would have to change all references to height in the table
explicitly.  Also, my made up example is *only* of double rows.  However, I
have the earlier example where this is a mixture of row spans across
different columns.  It was just by chance that I was in a situation with all
adjacent cells in a particular row requiring a row span.

Why would that be considered not an application of [nr=?]?  And if it indeed
the case, shouldn't it be explicit that [nr=2] doesn't apply to an entire row?

Regards.


On 11-11-24 05:47 PM, Christian wrote:

I have tried various combinations and have so far been unsuccessful
in getting a row of double height using natural tables.  I am
following up and enclosing a minimal example, along with the a
previous incarnation using TABLE, which does give me the intended

layout.


Any suggestions on how to do the same using natural tables would be
greatly appreciated.


use the height parameter for the table row. also, I don't thik you've

understood the meaning of 'nr=2'.

I suggest you read the wiki entry on TABLES:
http://wiki.contextgarden.net/TABLE


and here's your table back ;P :

\bTABLE
\bTABLEbody
\bTR
\bTD Circuit \eTD
\bTD Description \eTD
\bTD Circuit \eTD
\bTD Description \eTD
\eTR

\bTR[height=0.7in]
\bTD  7 \eTD \bTD  Bedroom 4 Arc Fault Plug \eTD
\bTD  8 \eTD \bTD  \unused \eTD
\eTR
\eTABLEbody
\eTABLE



--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

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

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




--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)



FE-Pool-Storage-Room-Electrical.pdf
Description: Adobe PDF document
\setuppapersize[letter]
\setuplayout[header=0in,footer=0in,topspace=0.75in,backspace=1.25in]
\setuppagenumbering[location=]
\setupbodyfont[11pt]
%\usemodule[simplefonts]
%\setmainfont[GentiumBasic]
\starttext
%\showlayout[pt,in]
%\showbodyfont
\define\unused{{\tt [Unused]}}
\def\spare{\dosingleempty\doSpare}
\def\doSpare[#1]{%
	\iffirstargument
		{\tt [#1]}
	\else
		{\tt [15A]}
	\fi
	{\tt [Spare]}
}
\startalignment[center]
{\tfb\sc FE Pool Storage Room}
\blank
{\tfa\sc Electrical Panel}
\blank
{\tfa Panel Model: Cutler-Hammer CPL116 Ser. B}
\blank
{\tfb \tt [DRAFT---To Be Verified]}
\blank[2*big]
\stopalignment

\midaligned{
\setupTABLE[frame=off]
\setupTABLE[r][each][height=0.35in]
\setupTABLE[c][1,3][align={center,lohi},width=0.75in]
\setupTABLE[c][2,4][align={flushleft,lohi},width=2.25in,loffset=0.1in]
\setupTABLE[r][1][topframe=on,bottomframe=on]
\setupTABLE[r][last][bottomframe=on]
\setupTABLE[c][3][leftframe=on]
\setupTABLE[r][4][topframe=on]
\setupTABLE[r][6][topframe=on]
\setupTABLE[r][8][topframe=on]
\setupTABLE[r][10][topframe=on]
\setupTABLE[r][12][topframe=on]
\setupTABLE[r][16][topframe=on]
\setupTABLE[1,3,4][14][topframe=on]
\setupTABLE[2][13,15][topframe=on]
\bTABLE
\bTABLEbody
	\bTR
		\bTD Circuit \eTD
		\bTD Description \eTD
		\bTD Circuit \eTD
		\bTD Description \eTD
	\eTR
	\bTR
		\bTD [nr=2] 1 \eTD \bTD [nr=4] Baseboard Heater \eTD
		\bTD 2A \eTD \bTD[background=color,backgroundcolor=gray] \spare \eTD
	\eTR
	\bTR
		\bTD 2B \eTD \bTD[background=color,backgroundcolor

Re: [NTG-context] Double height rows using natural tables?

2011-11-24 Thread Pavneet Arora
From an earlier version using `unnatural' tables, I have enclosed the output 
PDF.  This situation can arise anywhere in the panel/table where you have 
adjacent rows allow of which should be spanning a double row.  In this case 
circuits 15 and 16 occupy a double slot on the panel with a single breaker; 
hence the layout should reflect this.  How would this be best achieved in the 
natural table model?  Shouldn't we just be dealing with spans independently of 
worrying about whether other adjacent columns will also require a row span?


On 11-11-24 06:23 PM, Christian wrote:

Now I don't get it :D What do you want to accomplish? Maybe an annotated 
screenshot would help?

anyway, here's a another tip:
\setupTABLE[r][4][topframe=on]
\setupTABLE[r][6][topframe=on]
\setupTABLE[r][8][topframe=on]
\setupTABLE[r][10][topframe=on]
\setupTABLE[r][12][topframe=on]
\setupTABLE[r][16][topframe=on]
=
\setupTABLE[r][4,6,8,10,16][topframe=on]


Yes, I get that part.  Perhaps, a larger example will illustrate .

Enclosed is a simple electrical panel.  Many are 40 or 60 circuits large.  Note
that you have an assortment of cells spanning rows depending on breaker
size.
It is only by chance that in a particular case adjacent breaker might utilize 
the
full slot.  Hence the [nr=2] approach.  So in the given panel, if circuits
15 and 16 were both double-pole, it would be incorrect to label them as
15A/15B and 16A/16B.  Then for that particular 'row' I would need double
height.

On 11-11-24 06:07 PM, Christian wrote:

If you want all rows double height except the first, just do it the other way

around.

\setupTABLE[r][each][height=0.7in]
and then for the first row:
\bTR[height=0.35in]
Then it's only 2 digits to change :)

[nr=X] is for a cell spanning X rows. Hint: nr=number rows. So you'll get a

single cell that reaches down X rows. it's not meant to be used to adjust the
height of a row.


Check this out, lots of examples:
http://www.pragma-ade.com/general/manuals/enattab.pdf



Thank you, Christian.  However, I find explicitly setting the row
height a bit awkward.  What happens if I changed the height value in
my \setupTABLE directive?  Then I would have to change all references
to height in the table explicitly.  Also, my made up example is
*only* of double rows.  However, I have the earlier example where
this is a mixture of row spans across different columns.  It was just
by chance that I was in a situation with all adjacent cells in a particular row

requiring a row span.


Why would that be considered not an application of [nr=?]?  And if it
indeed the case, shouldn't it be explicit that [nr=2] doesn't apply to an

entire row?


Regards.


On 11-11-24 05:47 PM, Christian wrote:

I have tried various combinations and have so far been unsuccessful
in getting a row of double height using natural tables.  I am
following up and enclosing a minimal example, along with the a
previous incarnation using TABLE, which does give me the intended

layout.


Any suggestions on how to do the same using natural tables would be
greatly appreciated.


use the height parameter for the table row. also, I don't thik
you've

understood the meaning of 'nr=2'.

I suggest you read the wiki entry on TABLES:
http://wiki.contextgarden.net/TABLE


and here's your table back ;P :

\bTABLE
\bTABLEbody
\bTR
\bTD Circuit \eTD
\bTD Description \eTD
\bTD Circuit \eTD
\bTD Description \eTD
\eTR

\bTR[height=0.7in]
\bTD  7 \eTD \bTD  Bedroom 4 Arc Fault Plug \eTD
\bTD  8 \eTD \bTD  \unused \eTD
\eTR
\eTABLEbody
\eTABLE



--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema www.waroc.com

416.937.WAROC

(9276)



__

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

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


__

_




--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)





--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)



FE-Pool-Storage-Room-Electrical.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Natural Tables---Including a bit of cell

2011-11-23 Thread Pavneet Arora

Hans,

This didn't quite achieve what I was looking for.  I was hoping for the 
formatting of circuit 4 in the output file test.pdf, rather than what was 
produced for circuit 8.  I modified the definition of \spare so that by default 
a 15A breaker is assumed unless otherwise specified.


However, a more pressing problem is this:

If I remove the comments from the row previous, i.e., I have two rows for which 
I want nr=2, I get the strange artifact in test+.pdf where the second row gets 
wrapped up a row.  Even with the comments in place, the last row is single 
height.  What I really want are two double height rows similar to circuits 2 and 
4 but for the entire row.


advTHANKSance


Message: 1
Date: Wed, 23 Nov 2011 09:38:51 +0100
From: Hans Hagenpra...@wxs.nl
To: pavneet_ar...@waroc.com,mailing list for ConTeXt users
ntg-context@ntg.nl
Subject: Re: [NTG-context] Natural Tables---Including a bit of cell
style in a \define
Message-ID:4eccb11b.2010...@wxs.nl
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 22-11-2011 13:08, Pavneet Arora wrote:

I am creating documentation labeling the circuits of electrical and
network panels for a project of mine.

Enclosed is a minimal example.

What I would like is to define two macros: \unused and \spare (\unused
referring to a circuit with no breaker installed, while \spare referring
to a circuit with a breaker, but no load). I wish these definitions to
not only include the represented text and font directives, i.e., {\tt
[Unused]}, but also shade the cell in a background color. However, I
cannot seem to figure out how to do that. Including the
`[background=color,backgroundcolor=gray]' in the \define seems to be
expanded back simply as text.

Any suggestions?


\define\unused
{\inframed
  [foregroundstyle=type,
   background=color,
   backgroundcolor=gray,
   frame=off]
 {[Unused]}}



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


--
-
- Pavneet Arora

\setuppapersize[legal]
\setuplayout[header=0in,footer=0in,topspace=0.75in,backspace=1.25in]
\setuppagenumbering[location=]
\setupbodyfont[11pt]
\starttext
%\showlayout[pt,in]
%\showbodyfont
\define\unused{
{\inframed
 [foregroundstyle=type,
  background=color,
  backgroundcolor=gray,
  frame=off]
{\tt [Unused]}}
}
\def\spare{\dosingleempty\doSpare}
\def\doSpare[#1]{%
	\iffirstargument
		{\tt [#1]}
	\else
		{\tt [15A]}
	\fi
	{\tt [Spare]}
}
\startalignment[center]
{\tfb Electrical Room Electrical Panel}
\blank
{\tfa\sc Electrical Panel}
\blank
{\tfa Panel Model: Siemens}
\blank
{\tfb \tt [DRAFT---To Be Verified]}
\blank[2*big]
\stopalignment

\setupTABLE[frame=off]
\setupTABLE[r][each][height=0.35in]
\setupTABLE[c][1,3][align={center,lohi},width=0.75in]
\setupTABLE[c][2,4][align={flushleft,lohi},width=2.25in,loffset=0.1in]
\setupTABLE[r][4,6][topframe=on]
\setupTABLE[r][1][topframe=on,bottomframe=on]
\setupTABLE[r][last][bottomframe=on]

\midaligned{
\bTABLE
\bTABLEbody
	\bTR
		\bTD Circuit \eTD
		\bTD Description \eTD
		\bTD Circuit \eTD
		\bTD Description \eTD
	\eTR
	\bTR
		\bTD 1A \eTD \bTD Roof Heating Control Panel \eTD
		\bTD [nr=2] 2 \eTD \bTD [nr=2] F1 Master Ensuite Steam Unit \eTD
	\eTR
	\bTR
		\bTD 1B \eTD \bTD Recreation Room Plugs \eTD
	\eTR
	\bTR
		\bTD 3A \eTD \bTD Attic Roof Drain Heating Cables  \eTD
		\bTD [nr=2] 4 \eTD \bTD [background=color,backgroundcolor=gray,nr=2]  \spare \eTD
	\eTR
	\bTR
		\bTD 3B \eTD \bTD \spare \eTD
	\eTR
%	\bTR
%		\bTD [nr=2] 5 \eTD \bTD [nr=2] Bedrooms 2+3 Arc Fault Plugs \eTD
%		\bTD [nr=2] 6 \eTD \bTD [nr=2] Roof Heating Cable \eTD
%	\eTR
	\bTR
		\bTD [nr=2] 7 \eTD \bTD [nr=2] Bedroom 4 Arc Fault Plug \eTD
		\bTD [nr=2] 8 \eTD \bTD [nr=2] \unused \eTD
	\eTR
\eTABLEbody
\eTABLE
}
\stoptext


test.pdf
Description: Adobe PDF document


test+.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Natural Tables---Including a bit of cell style in a \define

2011-11-22 Thread Pavneet Arora
I am creating documentation labeling the circuits of electrical and network 
panels for a project of mine.


Enclosed is a minimal example.

What I would like is to define two macros:  \unused and \spare (\unused 
referring to a circuit with no breaker installed, while \spare referring to a 
circuit with a breaker, but no load).  I wish these definitions to not only 
include the represented text and font directives, i.e., {\tt [Unused]}, but also 
shade the cell in a background color.  However, I cannot seem to figure out how 
to do that.  Including the `[background=color,backgroundcolor=gray]' in the 
\define seems to be expanded back simply as text.


Any suggestions?

advTHANKSance.

--
-
- Pavneet Arora



test.pdf
Description: Adobe PDF document
\setuppapersize[letter]
\setuplayout[header=0in,footer=0in,topspace=0.75in,backspace=1.25in]
\setuppagenumbering[location=]
\starttext
% \showlayout
% \showbodyfont
\define\unused{{\tt [Unused]}}
\define\spare{{\tt [Spare]}}
\startalignment[center]
{\tfb\sc Storage Room Electrical Panel}
\blank
{\tfa Panel Model: Cutler-Hammer}
\blank
{\tfb \tt [DRAFT---To Be Verfied]}
\blank[2*big]

\setupTABLE[frame=off]
\setupTABLE[r][each][height=0.35in]
\setupTABLE[c][1,3][align={center,lohi},width=0.75in]
\setupTABLE[c][2,4][align={flushleft,lohi},width=2.25in,offset=2mm]
\setupTABLE[r][1][topframe=on,bottomframe=on]
\setupTABLE[r][last][bottomframe=on]
\setupTABLE[c][3][leftframe=on]
\setupTABLE[r][4][topframe=on]
\setupTABLE[r][6][topframe=on]
\setupTABLE[1,2][6][bottomframe=on]
\bTABLE
\bTABLEbody
	\bTR
		\bTD Circuit \eTD
		\bTD Description \eTD
		\bTD Circuit \eTD
		\bTD Description \eTD
	\eTR
	\bTR
		\bTD [nr=2] 1 \eTD \bTD [nr=4] Electrical Baseboard Heater \eTD
		\bTD 2A \eTD \bTD[background=color,backgroundcolor=gray] \unused \eTD
	\eTR
	\bTR
		\bTD 2B \eTD \bTD \unused \eTD
	\eTR
	\bTR
		\bTD [nr=2] 3 \eTD
		\bTD 4A \eTD \bTD Island Plugs \eTD
	\eTR
	\bTR
		\bTD 4B \eTD \bTD Dishwasher \eTD
	\eTR
	\bTR
		\bTD [nr=2] 5 \eTD \bTD [nr=2] \spare  \eTD
		\bTD 6A \eTD \bTD Freezer \eTD
	\eTR
	\bTR
		\bTD 6B \eTD \bTD Counter Plugs \eTD
	\eTR
\eTABLEbody
\eTABLE
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] What is the prescribed way to add attachments to a list posting?

2011-11-22 Thread Pavneet Arora
In my last posting, I had included the source and .pdf output as attachments, 
but it seems that the source was included in-line and the .pdf was discarded. 
Is there a prescribed way to include attachments?


Thanks.

--
-
- Pavneet Arora


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] What is the prescribed way to add attachments to a list posting?

2011-11-22 Thread Pavneet Arora
Thanks, Mojca. I was looking at the web-interface of the archives. It seems 
that the attachments *were* including in the mailing list message, but were 
converted/stripped in the archives.

Regards.
--
Sent from my Nokia N900. Please excuse my brevity.

- Original message -
 On Tue, Nov 22, 2011 at 14:17, Pavneet Arora wrote:
  In my last posting, I had included the source and .pdf output as
  attachments, but it seems that the source was included in-line and the
  .pdf was discarded. Is there a prescribed way to include attachments?

 Attachments usually survive, but they may not exceed a certain size
 limit. Usually that is problematic - PDF documents may get very large,
 even the most simple ones usually exceed size limit (it depends on
 what engine and what fonts you use).

 I don't know why text attachment was converted into an inline one
 (gmail often displays simple text documents inline, but that doesn't
 mean that they were converted by mailman). Usually that doesn't happen
 unless a moderator did that or something weird happened :).

 Many people upload PDFs to their own servers and post a link if PDFs
 are large. Sometimes you can attach PNG with a screenshot of
 problematic part. You could also make an attachment in bug reporting
 software (http://tracker.luatex.org/) if you are reporting a bug.

 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
___

[NTG-context] Is it possible to have \showlayout also display dimensions in inches?

2011-11-20 Thread Pavneet Arora
Either in a separate column or in lieu of `cm'.  For us those of us on the left 
hand side of the Atlantic, and who struggle with decimal numbers ;)?


advTHANKSance.

--
-
- Pavneet Arora

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

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


[NTG-context] Table cell colo(u)rs

2011-11-17 Thread Pavneet Arora

Hello,

I am trying to do a simple cell background shading in a table using the example 
at the wiki:


http://wiki.contextgarden.net/Table

Unfortunately, I get an Undefined control sequence ... error:

! Undefined control sequence.

system   tex  error on line 4 in file tmp.tex: Undefined control 
sequence ...


 1 \setupcolors[state=start]
 2 \starttable[|l|l|]
 3 \HL
 4   \BL[1]\SR
 5 \NC Command  \NC Meaning \NC\SR
 6 \HL
 7 \NC \tex{NC} \NC next column \NC\FR
 8 \NC \tex{NR} \NC next row\NC\LR
 9 \HL
10 \CL[green]\SR
11 \NC \tex{AR} \NC automatic row\NC\SR
12 \HL
13 \stoptable
14

recently read \BL

l.4 \BL
   [1]\SR
?

Any suggestions?

advTHANKSance

--
-
- Pavneet Arora

Bespoke Spaces.  We build smart spaces.
www.bespokespaces.com  416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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