[NTG-context] Xtreme tables and borders

2011-11-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

do xtables have (or is it intended to have in the future) support of various 
borders of row or cells?

- Personally, most often I'd would use double line, thick or dashed border 
bellow table head or a row, often also a thick border on the right side of the 
leftmost column:

ASCII art:

+---+---+---+
| A # B | C |
+***#***+***+
|   #   |   |
+---+---+---+
|   #   |   |
+===#===+===+
|   #   |   |
+...#...+...+
|   #   |   |
+---+---+---+

* = thick horizontal line
# = thick vertical line
- = normal line
= = double line
. = dotted line

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] Rearranging existing A5 = A4

2011-11-02 Thread Markus Finke

Hello,

I have a ready document in A5 and want to rearrange selected pages next 
to each other on A4 (homeprinter, proofreading).


In LaTeX I was using »pdfpages«, e.g.:

\usepackage[final]{pdfpages}
\begin{document}
\includepdf[pages={42,1-41},landscape,nup=1x2,scale=1.005]{my.pdf}
\end{document}

Is something like this possible in ConTeXt?

TIA!
___
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] Rearranging existing A5 = A4

2011-11-02 Thread Pontus Lurcock
On Wed 02 Nov 2011, Markus Finke wrote:

 I have a ready document in A5 and want to rearrange selected pages next  
 to each other on A4 (homeprinter, proofreading).

 In LaTeX I was using »pdfpages«, e.g.:

 \usepackage[final]{pdfpages}
 \begin{document}
 \includepdf[pages={42,1-41},landscape,nup=1x2,scale=1.005]{my.pdf}
 \end{document}

 Is something like this possible in ConTeXt?

I don't have the knowledge to translate your specific \includepdf
to the ConTeXt equivalent, but good places to start are probably

http://wiki.contextgarden.net/Imposition
http://wiki.contextgarden.net/Including_pages_from_PDF_document

HTH,

Pont
___
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] Rearranging existing A5 = A4

2011-11-02 Thread Mari Voipio
On Wed, Nov 2, 2011 at 11:37, Markus Finke mar...@gmx.at wrote:
 I have a ready document in A5 and want to rearrange selected pages next to
 each other on A4 (homeprinter, proofreading).

This works for me (and I'd better go and revise that bit of the
Imposition page on the wiki...):

\setuppapersize[A5][A4] %individual page A5 size, print size A4
\setuparranging[2SIDE,rotated] %2 pages side by side, rotated to
landscape to fit portrait A4
\setuplayout
  [backspace=0pt,
topspace=0pt,
   width=middle,
  height=middle,
location=middle,
  header=0pt,
  footer=0pt]
\setuppagenumbering[alternative=doublesided]

\starttext

% \insertpages
\filterpages
  [pr-33-gp.pdf][2,5,16:19][width=0pt]

\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] macro string in metapost

2011-11-02 Thread Hans Hagen

On 1-11-2011 23:21, Meer, H. van der wrote:

The goal is to make the following string in metapost:
   string s; where s must become \MPcolor{Blue}.
and ultimately execute this at the right moment with: scantokens s;

The following makes s = MPcolor{Blue}:
   s := MPcolor  char oct134  char oct173  Blue  char oct134  char 
oct175;

But I seem unable to add a \ in front of it without expanding the string by 
TeX. Thus it does not work to put:
   s := char oct134  MPcolor  char oct134  char oct173  Blue  char 
oct134  char oct175;

Placing a \noexpand in front does not help.


\MPcolor is expanded when the code is passed to mp so delaying is not 
possible and once mp runs it already sees the colors


what you want is something

fill fullcircle scaled 10cm withcolor .5 * namedcolor(gray) ;
fill fullcircle scaled  5cm withcolor namedcolor(red) ;
fill fullcircle scaled  5cm withcolor namedcolor(green) ;
fill fullcircle scaled  5cm withcolor namedcolor(blue) ;

(I have that as experimental code but will move it to the regular code)

Hans


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

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


Re: [NTG-context] Rearranging existing A5 = A4

2011-11-02 Thread Hans Hagen

On 2-11-2011 10:37, Markus Finke wrote:

Hello,

I have a ready document in A5 and want to rearrange selected pages next
to each other on A4 (homeprinter, proofreading).

In LaTeX I was using »pdfpages«, e.g.:

\usepackage[final]{pdfpages}
\begin{document}
\includepdf[pages={42,1-41},landscape,nup=1x2,scale=1.005]{my.pdf}
\end{document}

Is something like this possible in ConTeXt?


there is

 texexec --pdfarrange

-
  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] Rearranging existing A5 = A4

2011-11-02 Thread Markus Finke

\filterpages was my »missing link« –
 thank you all for your reply!
___
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] Xtreme tables and borders

2011-11-02 Thread Hans Hagen

On 2-11-2011 09:20, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

do xtables have (or is it intended to have in the future) support of
various borders of row or cells?

- Personally, most often I'd would use double line, thick or dashed
border bellow table head or a row, often also a thick border on the
right side of the leftmost column:

ASCII art:

+---+---+---+
| A # B | C |
+***#***+***+
| # | |
+---+---+---+
| # | |
+===#===+===+
| # | |
+...#...+...+
| # | |
+---+---+---+

* = thick horizontal line
# = thick vertical line
- = normal line
= = double line
.. = dotted line


What gets supported also depends on what I need myself (or need in 
projects) so there is no definite answer to this. You can always hook 
some mp background in cells.


Hans



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

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


Re: [NTG-context] adjusting accents under slant

2011-11-02 Thread Hans Hagen

On 1-11-2011 15:16, Idris Samawi Hamid ادريس   سماوي حامد wrote:

Dear Hans and gang,

I got this working in mkii -- using other macros --, but mkiv is
frustrating me:

==
%% Hans' bottom accent code
\unprotect
\unexpanded\def\bottomaccent#1#2#3#4#5% down right slantcorrection
accent char
{\dontleavehmode % why this align mess
\vtop
{\forgetall
\baselineskip\zeropoint
\lineskip#1%
\everycr\emptytoks
\tabskip\zeropoint
\lineskiplimit\zeropoint
\setbox0\hbox{#4}%
\halign
{##\crcr\hbox{#5}\crcr
\hidewidth
\hskip#2\wd0
\hskip-#3\slantperpoint % in plain 1ex * dimenless value
\vbox to .2ex{\box0\vss}\hidewidth
\crcr}}}

\unexpanded\def\buildtextbottomdot
{\bottomaccent{0ex}{4}{5}{\kern.1em\textbottomdot}}
\let\d\buildtextbottomdot
\protect

\defineactivecharacter ḥ {\d{h}}

\starttext
ḥ {\it ḥ}
\stoptext
==

I need to adjust the horizontal position of the dot under the slanted
char. I would assume the third parameter would control it but nothing
seems to work.

Of course LM does not look so bad but I'm using a different font so this
is just an illustration.


\slantperpoint

is a rather traditional tex/font parameter and not present in opentype 
fonts so you have to hard code something there


you could try \definefontfeature[default][default][compose=yes] assuming 
that you have the bottom accent available



--

-
  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] margin notes at page breaks

2011-11-02 Thread Hans Hagen

On 31-10-2011 13:57, Stefan Müller wrote:

Hi list!

In my document I have some margin notes that appear right before a page
break and so end up in the bottom margin, see the following example.

\starttext
\dorecurse{4}{\input knuth}
\blank[2*line]

\inmargin{This note ends up in the bottom margin}
%\margintext{This note ends up in the bottom margin}
\input tufte
\stoptext

Is it possible to automatically move the margin note in those cases to
the next page? I had a look at the manual where the issue is addressed.
As I understood it \margintext{...} should be able to handle this, but
it did not change anything in my example. In the garden I found
\setupinmargin[stack=yes] but this didn't help either.

This seems not to hard, but I can't find a way to fix it...


it's not supported in the current code but the next beta will have :

starttext

\dorecurse{4}{\input knuth} \blank[2*line]

\dorecurse{3}{\inmargin[stack=yes]{note}} \input tufte

\page

\dorecurse{4}{\input knuth} \blank[2*line]

\dorecurse{3}{\inmargin[stack=yes,bottomspace=10cm]{note}} \input tufte

\stoptext

with bottomspace one can set the threshold

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] http://modules.contextgarden.net/vim: invalid link for documentation

2011-11-02 Thread Paul Menzel
Dear ConTeXt folks,


the URL [1] in the Module details for the vim module [2] returns an
error.

URL not supported


Thanks,

Paul


[1] http://modules.contextgarden.net/doc/context/third/vim/vim.txt
[2] http://modules.contextgarden.net/vim


signature.asc
Description: This is a digitally signed message part
___
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] http://modules.contextgarden.net/vim: invalid link for documentation

2011-11-02 Thread Aditya Mahajan

On Wed, 2 Nov 2011, Paul Menzel wrote:


Dear ConTeXt folks,


the URL [1] in the Module details for the vim module [2] returns an
error.

   URL not supported


Thanks,

Paul


[1] http://modules.contextgarden.net/doc/context/third/vim/vim.txt
[2] http://modules.contextgarden.net/vim


Thanks for the report. Fixed.

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
___


[NTG-context] new beta

2011-11-02 Thread Hans Hagen

Hi,

I uploaded a beta. A few things requested the last couple of days have 
been added / patched (not all of course). Also, as a prelude to getting 
rid of the supp-fun modules initials have been rewritten. It was a 
hybrid of low level code and a wrapper but now is only available in 
\placeinitial (the old mechanism will become a module at some point).


\starttext

\placeinitial \input ward \par \input ward \par

\placeinitial \input tufte

\setupinitial
  [variant]
  [location=text,
   n=2,
   color=darkred,
   distance=-1em,
   hoffset=1em,
   voffset=-3ex,
   before=\blank]

\placeinitial[variant] \input ward \par \input ward

\placeinitial[variant] \input tufte

\stoptext

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] [t-vim] [PATCH] vim-README.md: Correct some typos

2011-11-02 Thread Paul Menzel
Date: Wed, 2 Nov 2011 20:06:35 +0100
Subject: [PATCH] vim-README.md: Correct some typos
---
You can use `git am pathtosavedmboxfile` to apply the patch.

diff --git a/vim-README.md b/vim-README.md
index 557cf8f..5853aa2 100644
--- a/vim-README.md
+++ b/vim-README.md
@@ -4,9 +4,9 @@ The vim module
 This module highlights code snippets using vim as a syntax
 highlighter. Such a task may appear pointless at first glance. After all,
 ConTeXt provides excellent syntax highlighting features for TeX, Metapost, XML,
-and a few other langauges. And in MkIV, you can specify the grammer to parse a
+and a few other languages. And in MkIV, you can specify the grammar to parse a
 language, and get syntax highlighting for a new language. But writing such
-grammers is difficult. More importantly, why reinvent the wheel? Most
+grammars is difficult. More importantly, why reinvent the wheel? Most
 editors, and many other syntax highlighting programs, already syntax highlight
 many programming languages. Why not just leverage these external programs to
 generate syntax highlighting? This module does exactly that.
@@ -188,7 +188,7 @@ The default color scheme is `pscolor`.
 Line numbering
 ---
 
-To eanble line numbering for a particular snippet, use:
+To enable line numbering for a particular snippet, use:
 
 \startvimtyping[numbering=yes]
   ...
-- 
1.7.7.1


signature.asc
Description: This is a digitally signed message part
___
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] [t-vim] [PATCH] vim-README.md: Correct some typos

2011-11-02 Thread Paul Menzel
Am Mittwoch, den 02.11.2011, 20:29 +0100 schrieb Paul Menzel:
 Date: Wed, 2 Nov 2011 20:06:35 +0100
 Subject: [PATCH] vim-README.md: Correct some typos

[…]

Please find the patch also attached.


Thanks,

Paul
From c59fea981e66c0f271a2dc85f589c043e9b96bc5 Mon Sep 17 00:00:00 2001
From: Paul Menzel paulepan...@users.sourceforge.net
Date: Wed, 2 Nov 2011 20:06:35 +0100
Subject: [PATCH] vim-README.md: Correct some typos


diff --git a/vim-README.md b/vim-README.md
index 557cf8f..5853aa2 100644
--- a/vim-README.md
+++ b/vim-README.md
@@ -4,9 +4,9 @@ The vim module
 This module highlights code snippets using vim as a syntax
 highlighter. Such a task may appear pointless at first glance. After all,
 ConTeXt provides excellent syntax highlighting features for TeX, Metapost, XML,
-and a few other langauges. And in MkIV, you can specify the grammer to parse a
+and a few other languages. And in MkIV, you can specify the grammar to parse a
 language, and get syntax highlighting for a new language. But writing such
-grammers is difficult. More importantly, why reinvent the wheel? Most
+grammars is difficult. More importantly, why reinvent the wheel? Most
 editors, and many other syntax highlighting programs, already syntax highlight
 many programming languages. Why not just leverage these external programs to
 generate syntax highlighting? This module does exactly that.
@@ -188,7 +188,7 @@ The default color scheme is `pscolor`.
 Line numbering
 ---
 
-To eanble line numbering for a particular snippet, use:
+To enable line numbering for a particular snippet, use:
 
 \startvimtyping[numbering=yes]
   ...
-- 
1.7.7.1



signature.asc
Description: This is a digitally signed message part
___
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] [t-vim] [PATCH] vim-README.md: Correct some typos

2011-11-02 Thread Aditya Mahajan

On Wed, 2 Nov 2011, Paul Menzel wrote:


Am Mittwoch, den 02.11.2011, 20:29 +0100 schrieb Paul Menzel:

Date: Wed, 2 Nov 2011 20:06:35 +0100
Subject: [PATCH] vim-README.md: Correct some typos


[…]

Please find the patch also attached.


Thanks. Applied.

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
___

[NTG-context] [t-vim] [PATCH] vim.txt: Correct some typos

2011-11-02 Thread Paul Menzel
Am Mittwoch, den 02.11.2011, 15:39 -0400 schrieb Aditya Mahajan:
 On Wed, 2 Nov 2011, Paul Menzel wrote:
 
  Am Mittwoch, den 02.11.2011, 20:29 +0100 schrieb Paul Menzel:
  Date: Wed, 2 Nov 2011 20:06:35 +0100
  Subject: [PATCH] vim-README.md: Correct some typos
 
  […]
 
  Please find the patch also attached.
 
 Thanks. Applied.

Thanks! I have not understood the repository layout yet. For example
will the branches be merged to the master branch eventually or are those
separate modules?

Please find a patch for `vim.txt` attached.


Thanks,

Paul
From d8e6d56e25610773a1f27b5275e79c4726ee2634 Mon Sep 17 00:00:00 2001
From: Paul Menzel paulepan...@users.sourceforge.net
Date: Wed, 2 Nov 2011 22:43:54 +0100
Subject: [PATCH] vim.txt: Correct some typos

This patch includes commit fd67c931 [1].

[1] https://github.com/adityam/filter/commit/fd67c931b44af27f0d1f7b1b5e845a577079e103
---
 doc/context/third/vim/vim.txt |8 
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/context/third/vim/vim.txt b/doc/context/third/vim/vim.txt
index a7fc912..a5a677f 100644
--- a/doc/context/third/vim/vim.txt
+++ b/doc/context/third/vim/vim.txt
@@ -4,9 +4,9 @@ The vim module
 This module highlights code snippets using vim as a syntax
 highlighter. Such a task may appear pointless at first glance. After all,
 ConTeXt provides excellent syntax highlighting features for TeX, Metapost, XML,
-and a few other langauges. And in MkIV, you can specify the grammer to parse a
+and a few other languages. And in MkIV, you can specify the grammar to parse a
 language, and get syntax highlighting for a new language. But writing such
-grammers is difficult. More importantly, why reinvent the wheel? Most
+grammars is difficult. More importantly, why reinvent the wheel? Most
 editors, and many other syntax highlighting programs, already syntax highlight
 many programming languages. Why not just leverage these external programs to
 generate syntax highlighting? This module does exactly that.
@@ -200,7 +200,7 @@ The default color scheme is `pscolor`.
 Line numbering
 ---
 
-To eanble line numbering for a particular snippet, use:
+To enable line numbering for a particular snippet, use:
 
 \startvimtyping[numbering=yes]
   ...
@@ -314,7 +314,7 @@ indent the TeX code. For example:
 
 Although, the source code is easy to read, the output will not be. This is
 because, unlike regular TeX,  `\startvimtyping` ... `\stopvimtyping`
-environment does not ignore whote space. So, the output is the same as 
+environment does not ignore white space. So, the output is the same as 
 
 \startitemize
 \item A hello world example in C
-- 
1.7.7.1



signature.asc
Description: This is a digitally signed message part
___
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] width (height?) or 90° rotated tabulate

2011-11-02 Thread Philipp Gesang
Good evening all,

the following example demonstrates my problem:

··8·

\showframe

\newdimen\tabcolsize
\tabcolsize=.25\vsize
\def\knuth{\input knuth\relax}

\startbuffer[sometable]
  \starttabulate[|p(\tabcolsize)|p(\tabcolsize)|p(\tabcolsize)|p(\tabcolsize)|]
\dorecurse{5}{\dorecurse{4}{\NC\knuth}\NC\NR}
  \stoptabulate
\stopbuffer

\starttext

\placetable[here,split,90]{none}{\getbuffer[sometable]}

\stoptext

··8·

As you can see, I need some advice on how to restrain the
tabulate float from flowing over into the right margin. What
dimension do I need to set and to what value?

Thanks for your time
Philipp




pgppbx7Jz4SwJ.pgp
Description: PGP 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] adjusting accents under slant

2011-11-02 Thread Idris Samawi Hamid ادريس سماوي حامد

On Wed, 02 Nov 2011 06:13:25 -0600, Hans Hagen pra...@wxs.nl wrote:


Of course LM does not look so bad but I'm using a different font so this
is just an illustration.


\slantperpoint

is a rather traditional tex/font parameter and not present in opentype  
fonts so you have to hard code something there


Sure ... but I can't figure out a way to change the italic behavior  
without changing the tf behavior.


Do you have a trick somewhere where you can define a conditional such that

if slanted font (\it or \sl etc) do x
else
do y

Then we could add that to the macro?

Is there any other way?

you could try \definefontfeature[default][default][compose=yes] assuming  
that you have the bottom accent available


I already have compose=yes in the typscripts, e.g.

=
\definefontfallback
[latindot]
[file:LMRoman12-Regular*default]
[0x0323]
[force=yes]

\definefontfeature
  [minionpro-tf]
  [mode=node,script=latn,language=dflt,trep=yes,protrusion=quality,
  expansion=quality,compose=yes,combine=yes,tlig=yes,
   kern=yes,liga=yes,onum=yes,cpsp=yes]

\definefontfeature
  [minionpro-it]
  
[mode=node,script=latn,language=dflt,trep=yes,compose=yes,combine=yes,tlig=yes,
   kern=yes,liga=yes,onum=yes,cpsp=yes,protrusion=quality,expansion=quality,
   swsh=yes]
=

but the results are bad using

=
\defineactivecharacter ḥ  {ḥ} % Ux0323 is explicit within the {}
\defineactivecharacter Ḥ  {Ḥ} % Ux0323 is explicit within the {}
\defineactivecharacter ṣ  {ṣ} % Ux0323 is explicit within the {}
\defineactivecharacter Ṣ  {Ṣ} % Ux0323 is explicit within the {}

\starttext
Ḥ {\it Ḥ}

ḥ {\it ḥ}

Ṣ  {\it Ṣ}

ṣ  {\it ṣ}
\stoptext
=

See pdf. Even in LM, the results are very uneven ...

If it takes a hard-coded solution for each char that's fine, I should be  
able to extrapolate from a template for just one in regular and italic.


I've experimented with different ideas, but I'm really out of my league on  
this one ... please help!


:-)

Best wishes
Idris


--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

accent.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] Fatal error

2011-11-02 Thread Kip Warner
Hey list,

I can't recall if either I explicitly changed something in my ConTeXt
typesetting or if this happened with the most recent version of ConTeXt
I pulled from Adam's PPA. I am using version 2011.11.02 20:10.

Here is a minimal example:
\definestartstop
[CodeExample]
[before={
\crlf
\setupbackground[frame=on,
 before=\blank,
 after=\blank,
 corner=round,
 topoffset=0.5cm,
 leftoffset=0.5cm,
 rightoffset=0.5cm,
 bottomoffset=0.5cm]
\startbackground
\startlines
},
 after={
\stoplines
\stopbackground
\crlf
   },
 commands={\setupalign[right]},
 style=type]

\starttext
Hello World
\startCodeExample
\starttyping
Hello World Again
\stoptyping
\stopCodeExample
\stoptext

Here is the output:
$ context foo.tex 

resolvers   | resolving | loading configuration file
'selfautodir:/share/texmf/web2c/contextcnf.lua'
resolvers   | resolving | loading configuration file
'/usr/share/texmf/web2c/contextcnf.lua'
mtx-context | run 1: luatex
--fmt=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en
 
--lua=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui
 --backend=pdf ./foo.tex \stoptext
This is LuaTeX, Version beta-0.71.0-2011101421 (rev 4358) 
 \write18 enabled.

resolversresolving  loading configuration file
'/usr/share/texmf/web2c/contextcnf.lua'
(foo.tex

ConTeXt  ver: 2011.11.02 20:10 MKIV  fmt: 2011.11.2  int:
english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   foo.top loaded
(foo.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv)
(/usr/share/texmf/tex/context/base/type-otf.mkiv)
filesreadfile  asked name: 'loc', not found
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not
found using lookup 'file'
fontsvirtual math  loading font LMMath7-Regular subfont 9
with name stmary10.afm at 458752 is skipped, not found
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not
found using lookup 'file'
fontsvirtual math  loading font LMMath9-Regular subfont 9
with name stmary10.afm at 589824 is skipped, not found
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not
found using lookup 'file'
fontsvirtual math  loading font LMMath12-Regular subfont 9
with name stmary10.afm at 786432 is skipped, not found
fontsfallback modern rm 12pt is loaded

Underfull \hbox (badness 1) in paragraph at lines 25--26

! TeX capacity exceeded, sorry [input stack size=1].
\obeylines ...andafter \def \activeendoflinetoken 
  {\obeyedline }
\dostarttyping ...f \currenttyping {#1}\obeylines 
  \futurelet \nexttoken
\dod...
\obeyedline ...ed \t!line \empty \futurelet \next 
  \dobetweenthelines 
\obeylines ...andafter \def \activeendoflinetoken 
  {\obeyedline }
\dostarttyping ...f \currenttyping {#1}\obeylines 
  \futurelet \nexttoken
\dod...
\obeyedline ...ed \t!line \empty \futurelet \next 
  \dobetweenthelines 
...
l.29 \stoptyping

!  == Fatal error occurred, no output PDF file produced!
mtx-context | fatal error: return code: 1


Any help appreciated.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Fatal error

2011-11-02 Thread Wolfgang Schuster

Am 03.11.2011 um 03:41 schrieb Kip Warner:

 Hey list,
 
 I can't recall if either I explicitly changed something in my ConTeXt
 typesetting or if this happened with the most recent version of ConTeXt
 I pulled from Adam's PPA. I am using version 2011.11.02 20:10.
 
 Here is a minimal example:
 \definestartstop
[CodeExample]
[before={
\crlf
\setupbackground[frame=on,
 before=\blank,
 after=\blank,
 corner=round,
 topoffset=0.5cm,
 leftoffset=0.5cm,
 rightoffset=0.5cm,
 bottomoffset=0.5cm]
\startbackground
\startlines
},
 after={
\stoplines
\stopbackground
\crlf
   },
 commands={\setupalign[right]},
 style=type]

???

\defineframedtext
  [CodeExampleFrame]
  [before=\blank,
   after=\blank,
   corner=round,
   offset=0.5cm]

\definetyping
  [CodeExample]
  [before=\startCodeExampleFrame,
   after=\stopCodeExampleFrame]

\starttext

Hello World

\startCodeExample
Hello World Again
\stopCodeExample

\stoptext

or

\definetextbackground
  [CodeExampleFrame]
  [before=\blank,
   after=\blank,
   corner=round,
   frame=on,
   background=,
   location=paragraph,
   topoffset=0.5cm,
   leftoffset=0.5cm]

\definetyping
  [CodeExample]
  [before=\startCodeExampleFrame,
   after=\stopCodeExampleFrame]

\starttext

Hello World

\startCodeExample
Hello World Again
\stopCodeExample

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