[NTG-context] Error using xtable

2013-07-17 Thread Dmitriy Tokarev
Hello all,

I experimented with xtables and found the following effect:

This code is ok:
\starttext

\startxtable

\startxrow
\startxcell \input ward \stopxcell
\stopxrow

\stopxtable

\stoptext

But this compiled with an error:

\starttext

\startxtable

%\startxtablebody

\startxrow
\startxcell \input ward \stopxcell
\stopxrow

\stopxtable

\stoptext

Log file:
system   tex  error on line 0 in file : Emergency stop ...
empty file
* cont-yes.mkiv
*** (job aborted, no legal \end found)
!  == Fatal error occurred, no output PDF file produced!

Is this a bug or a feature?
--
Dmitriy
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2013-07-17 Thread Hans Hagen

On 7/16/2013 11:12 AM, Steffen Kram wrote:

Hi all,


ligature seems to fail also with beta from 2013.06.10.

But with the latest beta, pages start numbering from 2:

\starttext
\input knuth
\stoptext

Am I the only one hit by this?


I can confirm this, too. Anyone already tracked that down and has a working fix?


i uploaded a beta a few days ago ... so is it still an issue?

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

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


Re: [NTG-context] new beta

2013-07-17 Thread Steffen Kram

Am 17.07.2013 um 12:23 schrieb Hans Hagen pra...@wxs.nl:

 On 7/16/2013 11:12 AM, Steffen Kram wrote:
 Hi all,
 
 ligature seems to fail also with beta from 2013.06.10.
 
 But with the latest beta, pages start numbering from 2:
 
   \starttext
   \input knuth
   \stoptext
 
 Am I the only one hit by this?
 
 I can confirm this, too. Anyone already tracked that down and has a working 
 fix?
 
 i uploaded a beta a few days ago ... so is it still an issue?

It's still the case with the version I downloaded yesterday. An extra-page is 
added after my title-page.

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

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

2013-07-17 Thread Wolfgang Schuster

Am 17.07.2013 um 12:23 schrieb Hans Hagen pra...@wxs.nl:

 On 7/16/2013 11:12 AM, Steffen Kram wrote:
 Hi all,
 
 ligature seems to fail also with beta from 2013.06.10.
 
 But with the latest beta, pages start numbering from 2:
 
\starttext
\input knuth
\stoptext
 
 Am I the only one hit by this?
 
 I can confirm this, too. Anyone already tracked that down and has a working 
 fix?
 
 i uploaded a beta a few days ago ... so is it still an issue?

The beta in your server (2013.07.14 14:53) starts at page 1 but the context 
suite
uses a older beta (2013.07.12 19:10) which starts at page 2.

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

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


[NTG-context] INstalling the context version of TeX distro.

2013-07-17 Thread john Culleton

Normally I just use TeXlive as my TeX distro for Context as well as
everything else. However I thought I would play with the Context
version for educational purposes. It is perhaps more up to date than
TeXlive 2013.

I downloaded the zip file and unzipped it. Now what? 

Also I copied the zip file to my Windows partition (currently XP but
I can up it to Win 7 if desirable for Context. I have both XP and Win
7 install disks.)

Again I need install directions. If there is an up-to-date guide to
this process just give me its name. 

Thanks in advance. 

-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: Create Book Covers with Scribus
available at http://www.booklocker.com/books/4055.html
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] INstalling the context version of TeX distro.

2013-07-17 Thread Wolfgang Schuster

Am 17.07.2013 um 17:45 schrieb john Culleton j...@wexfordpress.com:

 
 Normally I just use TeXlive as my TeX distro for Context as well as
 everything else. However I thought I would play with the Context
 version for educational purposes. It is perhaps more up to date than
 TeXlive 2013.
 
 I downloaded the zip file and unzipped it. Now what? 
 
 Also I copied the zip file to my Windows partition (currently XP but
 I can up it to Win 7 if desirable for Context. I have both XP and Win
 7 install disks.)

Which zip file and where did you get it from?

 Again I need install directions. If there is an up-to-date guide to
 this process just give me its name. 

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

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

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


Re: [NTG-context] INstalling the context version of TeX distro.

2013-07-17 Thread Marco Patzer
On 2013–07–17 john Culleton wrote:

 I downloaded the zip file and unzipped it. Now what? 

Unzip it and run

  first-setup.bat

If you don't mind about a few MiB of space, run

  first-setup.bat --modules=all --fonts=all

 Again I need install directions. If there is an up-to-date guide to
 this process just give me its name. 

http://wiki.contextgarden.net/ConTeXt_Standalone

Marco


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

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

Re: [NTG-context] INstalling the context version of TeX distro.

2013-07-17 Thread Sietse Brouwer
Hello John,

Ah, I see everybody else has already linked you to
http://wiki.contextgarden.net/ConTeXt_Standalone#Windows

I do apologize for the state of that page. Hans van der Meer sent me
(well, he sent it to Hans Hagen and Hans H sent it to me) a
much-improved draft of installation instructions, which I still
haven't gotten around to putting on the wiki. I have to run out the
door now, but I'll get round to it soon. Mentioning it here in order
to remind myself. :-)

Cheers,

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] bug with beta 2013.07.12 19:10

2013-07-17 Thread Pablo Rodríguez
Dear list,

here is a sample with latest beta for ConTeXt Suite:

\setupinteraction[state=start,color=,
style=,contrastcolor=,focus=standard]
\setuppagenumbering[alternative=doublesided]
\starttext
\startbodymatter
body text\footnote{footnote}
\stopbodymatter
\stoptext

I can’t compile it, since I get an error (log below).

I’m afraid it might be a bug. Just in case it helps,

Best,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] bug with beta 2013.07.12 19:10

2013-07-17 Thread Wolfgang Schuster

Am 17.07.2013 um 18:09 schrieb Pablo Rodríguez oi...@web.de:

 Dear list,
 
 here is a sample with latest beta for ConTeXt Suite:
 
\setupinteraction[state=start,color=,
style=,contrastcolor=,focus=standard]
\setuppagenumbering[alternative=doublesided]
\starttext
\startbodymatter
body text\footnote{footnote}
\stopbodymatter
\stoptext
 
 I can’t compile it, since I get an error (log below).
 
 I’m afraid it might be a bug. Just in case it helps,


Works for me with the newer beta (not yet in the context suite):

mtx-context | current version: 2013.07.14 14:53

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

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


Re: [NTG-context] bug with beta 2013.07.12 19:10

2013-07-17 Thread Steffen Kram
Am 17.07.2013 um 18:18 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com:

 
 Am 17.07.2013 um 18:09 schrieb Pablo Rodríguez oi...@web.de:
 
 Dear list,
 
 here is a sample with latest beta for ConTeXt Suite:
 
   \setupinteraction[state=start,color=,
   style=,contrastcolor=,focus=standard]
   \setuppagenumbering[alternative=doublesided]
   \starttext
   \startbodymatter
   body text\footnote{footnote}
   \stopbodymatter
   \stoptext
 
 I can’t compile it, since I get an error (log below).
 
 I’m afraid it might be a bug. Just in case it helps,
 
 
 Works for me with the newer beta (not yet in the context suite):
 
 mtx-context | current version: 2013.07.14 14:53

Is it possible to get the newer beta up to the context suite soon. Or is there 
a way to use the first_setup script with your server?

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

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


Re: [NTG-context] bug with beta 2013.07.12 19:10

2013-07-17 Thread Marco Patzer
On 2013–07–17 Steffen Kram wrote:

 Or is there a way to use the first_setup script with your server?

Get the latest code from Hans

  http://pragma-ade.com/context/beta/cont-tmf.zip

and replace the directory tex/texmf-context with its contents. Then
regenerate the formats

  context --generate
  context --make

Marco


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

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

[NTG-context] weird interaction in linenotes command (again)

2013-07-17 Thread Pablo Rodríguez
Dear list,

sorry for posting this again, but I don’t know how to solve this issue
and I really need your help.

I have the following sample:

\setuppapersize[A6]
\newcounter\LineNote

\setupnote[linenote][paragraph=yes]
\setupnotation[linenote][alternative=serried]

\define[2]\Variant
  {\increment\LineNote
   \startlinenote[LineNote:\LineNote]{#2}#1%
   \stoplinenote[LineNote:\LineNote]}

\starttext

\startlinenumbering
\dorecurse{10}{\Variant{\showhyphens{legislation}not
original}{variant} \Variant{\showhyphens{legibility}origin}
{variants} }
\stoplinenumbering
\stoptext

The problem here is that \Variant gets always #1 not hyphenated,
although \showhyphens works fine in that argument.

The cause of this is the \increment command within \Variant. I don’t
know why this happens, but the increment is required by \Variant to make
sense at all.

I guess this might be a bug. Is there no possible workaround for this?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Problems with bibtex in current beta

2013-07-17 Thread Steffen Kram
Hi all,

I've got still problems with the latest beta. I used first_setup.sh to setup my 
basic environment, and then I replaced the slightly older beta, as Marco 
suggested, with the current version from 
http://pragma-ade.com/context/beta/cont-tmf.zip.

Now, if I try to build my doc, no bibtex is generated. I use the following 
bibtex setup:

\setupheadtext [de][pubs=Literaturverzeichnis]
\setuppublications[numbering=no, alternative=apa-de, refcommand=authoryears, 
autohang=no, criterium=cite, sorttype=bbl]
\setuppublicationlist[style={}, after={\blank}, criterium=text]

\setupbibtex[database={papers,books,articles,reports,urls}, sort=author]

To make sure, none of my libraries contains an error, I also replaced them with 
sample.bib file from the wiki.

\setupbibtex[database={sample}, sort=author]

During the tests I always removed all generated bibtex artifacts. But I still 
end up with a main.blg file saying:

This is BibTeX, Version 0.99d (TeX Live 2013)
Capacity: max_strings=15, hash_size=15, hash_prime=127507
The top-level auxiliary file: main.aux
I couldn't open style file cont-au.bst
---line 2 of file main.aux
 : \bibstyle{cont-au
 :  }
I'm skipping whatever remains of this command
I found no style file---while reading file main.aux
You've used 0 entries,
0 wiz_defined-function locations,
85 strings with 495 characters,
and the built_in function-call counts, 0 in all, are:
…

The main.aux contains

\citation{*}
\bibstyle{cont-au}
\bibdata{sample}

and the main.bbl stays empty. I just don't get it, this did work and I even 
tried to compile a known working version. Do I have to initialize bibtex 
somehow?

Thanks for any suggestions!

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Problems with bibtex in current beta

2013-07-17 Thread Steffen Kram
Just as a follow up. I copied the cont-au.bst file into my root-dir and now I 
got my citations back. Since I did not have to do this before, my setup seems 
somehow wrong. Any ideas?

Cheers, Steffen


Am 17.07.2013 um 20:21 schrieb Steffen Kram s...@kram.io:

 Hi all,
 
 I've got still problems with the latest beta. I used first_setup.sh to setup 
 my basic environment, and then I replaced the slightly older beta, as Marco 
 suggested, with the current version from 
 http://pragma-ade.com/context/beta/cont-tmf.zip.
 
 Now, if I try to build my doc, no bibtex is generated. I use the following 
 bibtex setup:
 
 \setupheadtext [de][pubs=Literaturverzeichnis]
 \setuppublications[numbering=no, alternative=apa-de, refcommand=authoryears, 
 autohang=no, criterium=cite, sorttype=bbl]
 \setuppublicationlist[style={}, after={\blank}, criterium=text]
 
 \setupbibtex[database={papers,books,articles,reports,urls}, sort=author]
 
 To make sure, none of my libraries contains an error, I also replaced them 
 with sample.bib file from the wiki.
 
 \setupbibtex[database={sample}, sort=author]
 
 During the tests I always removed all generated bibtex artifacts. But I still 
 end up with a main.blg file saying:
 
 This is BibTeX, Version 0.99d (TeX Live 2013)
 Capacity: max_strings=15, hash_size=15, hash_prime=127507
 The top-level auxiliary file: main.aux
 I couldn't open style file cont-au.bst
 ---line 2 of file main.aux
 : \bibstyle{cont-au
 :  }
 I'm skipping whatever remains of this command
 I found no style file---while reading file main.aux
 You've used 0 entries,
0 wiz_defined-function locations,
85 strings with 495 characters,
 and the built_in function-call counts, 0 in all, are:
 …
 
 The main.aux contains
 
 \citation{*}
 \bibstyle{cont-au}
 \bibdata{sample}
 
 and the main.bbl stays empty. I just don't get it, this did work and I even 
 tried to compile a known working version. Do I have to initialize bibtex 
 somehow?
 
 Thanks for any suggestions!
 
 Steffen
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 

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

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


Re: [NTG-context] weird interaction in linenotes command (again)

2013-07-17 Thread Wolfgang Schuster

Am 17.07.2013 um 19:46 schrieb Pablo Rodríguez oi...@web.de:

 Dear list,
 
 sorry for posting this again, but I don’t know how to solve this issue
 and I really need your help.
 
 I have the following sample:
 
\setuppapersize[A6]
\newcounter\LineNote
 
\setupnote[linenote][paragraph=yes]
\setupnotation[linenote][alternative=serried]
 
\define[2]\Variant
  {\increment\LineNote
   \startlinenote[LineNote:\LineNote]{#2}#1%
   \stoplinenote[LineNote:\LineNote]}
 
\starttext
 
\startlinenumbering
\dorecurse{10}{\Variant{\showhyphens{legislation}not
original}{variant} \Variant{\showhyphens{legibility}origin}
{variants} }
\stoplinenumbering
\stoptext
 
 The problem here is that \Variant gets always #1 not hyphenated,
 although \showhyphens works fine in that argument.
 
 The cause of this is the \increment command within \Variant. I don’t
 know why this happens, but the increment is required by \Variant to make
 sense at all.
 
 I guess this might be a bug. Is there no possible workaround for this?


I have no solution but a better example because it’s a bug in the reference 
mechanism
(also used by line notes) as shown below.

\setuppapersize[A6]

\starttext

\dorecurse{10}{not original }

\dorecurse{10}{not \pagereference[test:#1]original }

\stoptext


The problem is the following code in the reference macros (str-ref.mkvi),
when the box code is commented the hyphenation works.

\unexpanded\def\strc_references_set_named_reference_indeed#kind#labels#userdata#text%
 labels userdata text - todo: userdata
  {...
   % will become an option:
   \ifnum\lastdestinationattribute\zerocount
 \dontleavehmode\hbox attr 
\destinationattribute\lastdestinationattribute\bgroup
   \strc_references_flush_destination_nodes
 \egroup
   \fi}

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

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


Re: [NTG-context] Some questions about the letter module

2013-07-17 Thread Wolfgang Schuster

Am 15.07.2013 um 18:34 schrieb Michael Ash m...@econs.umass.edu:

 Dear all,
 
 (This is a repeat post. I apologize if that's rude, but I would appreciate 
 some assistance with the letter module or a pointer to documentation. Thanks.)
 
 
 I am using the letter module that came with context.   A sample of a basic 
 letter is below; I have put in dummy for the logo and the signature, but 
 these are working fine when I include the files. 
 
 I have several questions:
 to center the footer.  
You can use the align key but you have to use a valid value, e.g. middle.

\setupletterlayer[foot][align=middle]
 to lower the  footer (closer to the bottom of the page)
You can control the distance between the margins and the footer block with the 
x and y keys for \setupletterlayer.

\setupletterlayer[foot][y=10pt]
 to delete the word Date above the date.
There is no key for \setupletterstyle etc. to disable/enable the label but you 
can clear the label text.

\setuplettertext[en][date=]
 to put the date above the recipient address (and how in general do I adjust 
 the vertical space here).
Move the layer up with the \setupletterlayer command.

\setupletterlayer[reference][y=4cm]
 to left-justify the date.
When you want only the date in the reference line without the label use 
alternative “e” (you don’t even have to clear the label because it isn’t used).

\setupletterlayer[reference][alternative=e]

\setupletter[reference=\currentdate]
 to control the foldmarks (for US-letter-size paper, omit, etc.)
You can disable the marks with \setupletteroptions[marking=no], the position 
can be changed with \setupletterlayer[topmark][y=7cm] and 
\setupletterlayer[topmark][y=14cm].

 I have consulted http://wiki.contextgarden.net/Letter but there are many 
 things I don't understand.   What is the meaning  of alternative=example;

With the alternative key you select one of the predefined or used defined 
styles for the reference, footer etc. blocks.

 what is the option preset=  in \setuplayer[foot] ?

When you want to change the origin for a layer from the top left margin to the 
bottom left you have to change the value of the location and corner keys. As 
there are  few often used combination for the four corners Hans predefined the 
with the \definelayerpreset command. These predefined setups can be loaded with 
the preset key which saves some typing. Below is a short example where I set 
first the arguments myself and later use the predefined setups.

\definelayer[test][width=\textwidth,height=\textheight]

\starttext

\setlayer[test][corner={left,top},location={right,bottom}]{LT 1}

\setlayer[test][corner={right,top},location={left,bottom}]{RT 1}

\setlayer[test][corner={left,bottom},location={right,top}]{LB 1}

\setlayer[test][corner={right,bottom},location={left,top}]{RB 1}

\flushlayer[test]

\setlayer[test][preset=lefttop]{LT 2}

\setlayer[test][preset=righttop]{RT 2}

\setlayer[test][preset=leftbottom]{LB 2}

\setlayer[test][preset=rightbottom]{RB 2}

\flushlayer[test]

\stoptext


 Also is there a better way to manage color?  I \definecolor, \startcolor, 
 \stopcolor, but maybe there is a better way to indicate that certain sections 
 of the letter should be in a color.  Thanks.

All block elements provide color and style keys which can be used to set the 
font and color for them, e.g. \setupletterlayer[foot][color=blue,style=sans].

Wolfgang

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

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

[NTG-context] A very simple macro that does not work...

2013-07-17 Thread Andres Conrado
Hello, list. Also posted this to:
http://tex.stackexchange.com/questions/124494/simple-macro-does-not-work-with-context-why

ConTeXt version: 2013.06.10 22:51

MWE:

%%%
\define[1]\anios{{\tfx \inmagin{#1}}}

\starttext
{\tfx \inmargin{2008-2012}}This is what has been done so far in
this years. % this works...
\anios{2008-2012}This is what has been done so far in this years.
% this doesn't work...
\stoptext


Error message:system   tex  error on line 5 in file
[...]/MWE.tex: Undefined control sequence ...

Any ideas? Maybe is something stupid, but it doesn't work. I have
other `\define` commands in the same file and they work very well.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] About last question... please forget it...

2013-07-17 Thread Andres Conrado
I'm so ashamed. I found the typo thanks to marco in tex.sx
Thanks.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Some questions about the letter module

2013-07-17 Thread Michael Ash
Dear Wolfgang,

Thank you very much.  This is very helpful.

One note is that to center the footer required

\setupletterframe[foot][align=middle]

(NOT \setupletterlayer.  Per http://wiki.contextgarden.net/Letter#Setup)


A couple more questions.
(1) is there a more efficient way to indent only the content of the letter:

\setupindenting[yes,small]
\setuplettersection[opening][indenting=no]
\setuplettersection[subject][indenting=no]
\setuplettersection[closing][indenting=no]
\setuplettersection[signature][indenting=no]


(2) The following did not properly left-justify the date (the date was
towards the left but was not perfectly aligned with the other
left-justified text):
\setupletterlayer[reference][alternative=e]

Thank you again.

Best,
Michael



On Wed, Jul 17, 2013 at 4:08 PM, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:


 Am 15.07.2013 um 18:34 schrieb Michael Ash m...@econs.umass.edu:

 Dear all,

 (This is a repeat post. I apologize if that's rude, but I would appreciate
 some assistance with the letter module or a pointer to documentation.
 Thanks.)


 I am using the letter module that came with context.   A sample of a basic
 letter is below; I have put in dummy for the logo and the signature, but
 these are working fine when I include the files.

 I have several questions:

1. to center the footer.

 You can use the align key but you have to use a valid value, e.g. middle.

 \setupletterlayer[foot][align=middle]


1. to lower the  footer (closer to the bottom of the page)

 You can control the distance between the margins and the footer block with
 the x and y keys for \setupletterlayer.

 \setupletterlayer[foot][y=10pt]


1. to delete the word Date above the date.

 There is no key for \setupletterstyle etc. to disable/enable the label but
 you can clear the label text.

 \setuplettertext[en][date=]


1. to put the date *above *the recipient address (and how in general
do I adjust the vertical space here).

 Move the layer up with the \setupletterlayer command.

 \setupletterlayer[reference][y=4cm]


1. to left-justify the date.

 When you want only the date in the reference line without the label use
 alternative “e” (you don’t even have to clear the label because it isn’t
 used).

 \setupletterlayer[reference][alternative=e]

 \setupletter[reference=\currentdate]


1. to control the foldmarks (for US-letter-size paper, omit, etc.)

 You can disable the marks with \setupletteroptions[marking=no], the
 position can be changed with \setupletterlayer[topmark][y=7cm]
 and \setupletterlayer[topmark][y=14cm].

 I have consulted http://wiki.contextgarden.net/Letter but there are many
 things I don't understand.   What is the meaning  of alternative=example;


 With the alternative key you select one of the predefined or used defined
 styles for the reference, footer etc. blocks.

 what is the option preset=  in \setuplayer[foot] ?


 When you want to change the origin for a layer from the top left margin to
 the bottom left you have to change the value of the location and corner
 keys. As there are  few often used combination for the four corners Hans
 predefined the with the \definelayerpreset command. These predefined setups
 can be loaded with the preset key which saves some typing. Below is a short
 example where I set first the arguments myself and later use the predefined
 setups.

 \definelayer[test][width=\textwidth,height=\textheight]

 \starttext

 \setlayer[test][corner={left,top},location={right,bottom}]{LT 1}

 \setlayer[test][corner={right,top},location={left,bottom}]{RT 1}

 \setlayer[test][corner={left,bottom},location={right,top}]{LB 1}

 \setlayer[test][corner={right,bottom},location={left,top}]{RB 1}

 \flushlayer[test]

 \setlayer[test][preset=lefttop]{LT 2}

 \setlayer[test][preset=righttop]{RT 2}

 \setlayer[test][preset=leftbottom]{LB 2}

 \setlayer[test][preset=rightbottom]{RB 2}

 \flushlayer[test]

 \stoptext


 Also is there a better way to manage color?  I \definecolor, \startcolor,
 \stopcolor, but maybe there is a better way to indicate that certain
 sections of the letter should be in a color.  Thanks.


 All block elements provide color and style keys which can be used to set
 the font and color for them, e.g.
 \setupletterlayer[foot][color=blue,style=sans].

 Wolfgang




-- 
Michael Ash, Chair, Department of Economics
Professor of Economics and Public Policy
University of Massachusetts Amherst
Amherst, MA 01003
Email m...@econs.umass.edu
Tel +1-413-545-2590 Twitter https://twitter.com/michaelaoash
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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