Re: [NTG-context] columns vs. paragraphs, and a question about fillinrule

2013-09-14 Thread Aditya Mahajan

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
___
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 is my module not automatically included?

2013-09-14 Thread Aditya Mahajan

On Fri, 13 Sep 2013, Reza Housseini wrote:


Hello list

I tried to compile the CV from [1] with context. But it does not recognize
the module m.resume.tex in the same directory, I had to use the flag
--usemodule=m-resume.tex. Why is that so and is there a way to let context
detect my module automatically?


Do you have

\usemodule[resume]

in your document?

In general, the m-*.tex namespace is reserved for system modules. For 
third party modules, use t-*.tex.


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

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


Re: [NTG-context] Bug with adaptlayout

2013-09-14 Thread Aditya Mahajan

On Fri, 13 Sep 2013, Hans Hagen wrote:


On 9/13/2013 4:40 AM, Aditya Mahajan wrote:

Hi,

There is a subtle bug with \adaptlayout.

\adaptlayout[1][height=max] does not work, e.g.,

\showframe
\adaptlayout[1][height=max]
\starttext
\dorecurse{10}{\input knuth \par}
\stoptext

but \adaptlayout[2][..] etc work. The reason is the following.
Typically, we use \adaptlayout[...][...] before \starttext at which
point \realpageno=1.

Now, \page_adapts_layout calls \page_adopts_check which checks if
"\??pageadaptions\the\realpageno" is set. If so, it calls the
pageadaptions and resets it to relax.

Since all this happens before \starttext, it does not affect the first
page.

I am not sure what is the best way to fix this.


\unprotect

\def\page_adapts_check

{\csname\??pageadaptations\the\ifcsname\??pageadaptations\the\realpageno\endcsname\realpageno\else\zerocount\fi\endcsname}

\def\page_adapts_reset
 {\ifcsname\??pageadaptations\the\realpageno\endcsname
\global\undefinevalue{\??pageadaptations\the\realpageno}%
  \fi}

\appendtoks \page_adapts_check \to \everystarttext
\appendtoks \page_adapts_reset \to \everyshipout

\protect


Thanks.

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

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


Re: [NTG-context] Module simpleslides error

2013-09-14 Thread Aditya Mahajan

On Fri, 13 Sep 2013, Mari Voipio wrote:


On Fri, Sep 13, 2013 at 1:01 PM, Xan  wrote:

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

l.68 \definevisualcounter


I recently went through all of the Simpleslides designs and found out
that also Boxed and Shaded failed at this same point. Looks like
something with the page counter. (Swoosh fails, too, but on something
else...)

These modules worked for me and about as expected (color options don't
seem to work, but defaults do): BigNumber, Ellipse, Embossed, Framed,
FramedTitle, HorizontalStripes, NarrowStripes, RainbowStripe, Rounded,
SideSquares, Sunrise, ThickStripes.


Sorry about this. Personally, I haven't used simpleslides in over two 
years; during that time a lot of ConTeXt internals related to fonts and 
metapost have changed. In most cases, the fixes should be straight 
forward.


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

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


Re: [NTG-context] Module simpleslides error

2013-09-14 Thread Aditya Mahajan

On Fri, 13 Sep 2013, Xan wrote:


Hi,

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

\usemodule[simpleslides][style=BigNumber]
\setupTitle[title={La Ronda}, author={Xavier Bordoy}, date={18 de juliol de 
2013},]


%% el text
\starttext

\placeTitle

\SlideTitle{Pregunta 1}

dfdsf

\SlideTitle{Pregunta 2}
fdfd

\stoptext

! Undefined control sequence.
68 >>  \definevisualcounter
69   [simpleslides:bottomsquarescounter]
70   [squaremarkers]
71   [counter=userpage,
72distance={(\the\dimexpr\visualcounterparameter{maxwidth})/m + width},
73path=unitsquare,
74maxwidth=\textwidth,
75height=0.3cm,
76width=0.3cm]
77
78 \definepalet[visualcounter:squaremarkers]

l.68 \definevisualcounter


This was supposed to be in the testing branch of simpleslides.

Please install the visualcounter module 
(http://modules.contextgarden.net/visualcounter) and hopefully the style 
will work again.


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

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


Re: [NTG-context] texnansi encoding.

2013-09-14 Thread Wolfgang Schuster

Am 14.09.2013 um 19:16 schrieb john Culleton :

> On Sat, 14 Sep 2013 17:42:42 +0200
> Wolfgang Schuster  wrote:
> 
>> 
>> Am 14.09.2013 um 15:34 schrieb john Culleton :
>> 
>>> Excellent! Now in MKIV how would I encode an opening quote mark
>>> American style? In previous TeX programs it was always ``. The MKIV
>>> substitute \quotation{foo} 
>>> is not practical for my application, where the raw input code
>>> may use the ditto mark " for both opening and closing quotes. I am
>>> looking for something in MKIV equivalent to \char92 in plain TeX. On
>>> the unicode table I find the hex value 008013 but I don't know how
>>> to plug that in to a macro that redefines the first occurrence of "
>>> to be that character, and the second occurrence to be hex 000814
>>> etc. I can write the macro, I just need the expression equivalent
>>> to \char that gives me such characters in MKIV.
>> 
>> Are you sure these are the correct values?
>> 
>> http://www.fileformat.info/info/unicode/char/8013/index.htm
>> 
>> 
>> What’s wrong with \char?
>> 
>> \starttext
>> 
>> \char"201C TEXT\char"201D
>> 
>> \utfchar{"201C}TEXT\utfchar{"201D}
>> 
>> \fontchar{quotedblleft}TEXT\fontchar{quotedblright}
>> 
>> \stoptext
>> 
>> Wolfgang
> 
> Well you answered my question. The chart I read for unicode characters 
> gave the values I quoted. I guess I was reading the wrong chart. What
> chart do you use?

- http://www.unicode.org/charts/
- http://www.unicode.org/charts/PDF/U2000.pdf
- http://www.decodeunicode.org/
- http://www.decodeunicode.org/u+201C
- http://www.typografie.de/product_info.php?products_id=1409&language=en

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] texnansi encoding.

2013-09-14 Thread john Culleton
On Sat, 14 Sep 2013 17:42:42 +0200
Wolfgang Schuster  wrote:

> 
> Am 14.09.2013 um 15:34 schrieb john Culleton :
> 
> > Excellent! Now in MKIV how would I encode an opening quote mark
> > American style? In previous TeX programs it was always ``. The MKIV
> > substitute \quotation{foo} 
> > is not practical for my application, where the raw input code
> > may use the ditto mark " for both opening and closing quotes. I am
> > looking for something in MKIV equivalent to \char92 in plain TeX. On
> > the unicode table I find the hex value 008013 but I don't know how
> > to plug that in to a macro that redefines the first occurrence of "
> > to be that character, and the second occurrence to be hex 000814
> > etc. I can write the macro, I just need the expression equivalent
> > to \char that gives me such characters in MKIV.
> 
> Are you sure these are the correct values?
> 
> http://www.fileformat.info/info/unicode/char/8013/index.htm
> 
> 
> What’s wrong with \char?
> 
> \starttext
> 
> \char"201C TEXT\char"201D
> 
> \utfchar{"201C}TEXT\utfchar{"201D}
> 
> \fontchar{quotedblleft}TEXT\fontchar{quotedblright}
> 
> \stoptext
> 
> Wolfgang

Well you answered my question. The chart I read for unicode characters 
gave the values I quoted. I guess I was reading the wrong chart. What
chart do you use?

-- 
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] texnansi encoding.

2013-09-14 Thread Wolfgang Schuster

Am 14.09.2013 um 15:34 schrieb john Culleton :

> Excellent! Now in MKIV how would I encode an opening quote mark American
> style? In previous TeX programs it was always ``. The MKIV substitute
> \quotation{foo} 
> is not practical for my application, where the raw input code
> may use the ditto mark " for both opening and closing quotes. I am
> looking for something in MKIV equivalent to \char92 in plain TeX. On
> the unicode table I find the hex value 008013 but I don't know how to
> plug that in to a macro that redefines the first occurrence of " to be
> that character, and the second occurrence to be hex 000814 etc. I can
> write the macro, I just need the expression equivalent to \char that
> gives me such characters in MKIV.

Are you sure these are the correct values?

http://www.fileformat.info/info/unicode/char/8013/index.htm


What’s wrong with \char?

\starttext

\char"201C TEXT\char"201D

\utfchar{"201C}TEXT\utfchar{"201D}

\fontchar{quotedblleft}TEXT\fontchar{quotedblright}

\stoptext

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

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

Re: [NTG-context] texnansi encoding.

2013-09-14 Thread john Culleton
On Fri, 13 Sep 2013 02:41:33 +0200
Hans Hagen  wrote:

> On 9/12/2013 10:05 PM, john Culleton wrote:
> >
> > Using mkiv to what degree can one depend on the encoding of a font
> > to be in texnansi form?
> >
> > 1. typescript fonts?
> >
> > 2. otf fonts?
> >
> > 3. type 1 fonts?
> >
> > 4. ttf fonts?
> >
> > 5. No guarantees?
> >
> > And does it make a difference if one uses \simplefonts versus
> > typescripts?
> 
> encoding is irrelevant ... even texnansi encoded fonts (in which case 
> the afm only has that subset) will be remapped to unicode ... there
> is no other encoding than utf
> 
> Hans
> 
Excellent! Now in MKIV how would I encode an opening quote mark American
style? In previous TeX programs it was always ``. The MKIV substitute
\quotation{foo} 
is not practical for my application, where the raw input code
may use the ditto mark " for both opening and closing quotes. I am
looking for something in MKIV equivalent to \char92 in plain TeX. On
the unicode table I find the hex value 008013 but I don't know how to
plug that in to a macro that redefines the first occurrence of " to be
that character, and the second occurrence to be hex 000814 etc. I can
write the macro, I just need the expression equivalent to \char that
gives me such characters in MKIV.



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


[NTG-context] Why is my module not automatically included?

2013-09-14 Thread Reza Housseini
Hello list

I tried to compile the CV from [1] with context. But it does not recognize
the module m.resume.tex in the same directory, I had to use the flag
--usemodule=m-resume.tex. Why is that so and is there a way to let context
detect my module automatically?

Thanks for any hints.

Cheers
Reza


[1] http://wiki.contextgarden.net/Curriculum_Vitae
___
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
___