Re: [NTG-context] footnotes location=text

2012-06-12 Thread HermannSchopper
Thanks a lot, that did it!
Daniel


- Ursprüngliche Nachricht -
Von: Wolfgang Schuster schuster.wolfg...@googlemail.com
Erhalten: 11.06.2012 16:10
An: daniel.schop...@aon.at
 
Am 11.06.2012 um 15:25 schrieb HermannSchopper: 
 
 Hi Wolfgang,  
 thanks for the quick fix! Unfortunately now the paragraph parameter in 
\setupnote[footnote][location=text,paragraph=yes] is ignored while it is 
working with location=page...  
 
 
You need \setupnote[…][paragraph=yes] and \setupnotation[…][display=no] (best 
add also “alternative=serried”) to have footnote etc. as a single paragraph. 
 
\setupnote[footnote][location=text,paragraph=yes] 
\setupnotation[footnote][display=no,alternative=serried] 
 
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] footnotes location=text

2012-06-12 Thread Hans Hagen

On 11-6-2012 13:55, Wolfgang Schuster wrote:


Am 11.06.2012 um 13:21 schrieb HermannSchopper:


Thanks, I missed that change!
And what is the parameter to prevent the footnotes being placed twice?


It’s a bug which was fixed a while ago but came back. The code between 
\unprotect and \protect has to be added/changed in strc-not.mkvi.


actually it's a mixup of what i wanted to do and what got done ... i 
made a new beta for you to check



\unprotect

\unexpanded\def\strc_notes_set_delayed
   {\setfalse\c_strc_notes_delayed

\normalexpanded{\rawprocesscommalist[\noteparameter\c!location]\strc_notes_set_delayed_step}}

\unexpanded\def\strc_notes_set_delayed_step#1%
   {\ifcsname\??notedelayed#1\endcsname
  \csname\??notedelayed#1\endcsname\c_strc_notes_delayed
\fi}

\protect

\setupnote[footnote][location=text]

\starttext

\dorecurse{10}{\input knuth\footnote{Footnote #1}\par}

\placenotes[footnote]

\stoptext

Wolfgang




--

-
  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] wrong page numbers when using arranging

2012-06-12 Thread Pavel Dohnal
Hello,
I am using \setuparranging and it causes me an error in referencing to pages.
I want place number of page into text but this page number is wrong.
As you can see in attached example, Chapter 2 is printed on page 3
but command \at prints page 4.
Could you please advise how to get the correct page number for
Chapter 2? That is page number 3?
Thank you
  Pavel Dohnal


\setuppapersize [A5][A4,landscape]
\setuparranging[2SIDE]

\starttext
Chapter 1 - \at[chapter1]\\
Chapter 2 - \at[chapter2]\\
Chapter 3 - \at[chapter3]\\
Chapter 4 - \at[chapter4]\\
Chapter 5 - \at[chapter5]\\


\chapter[chapter1]{Chapter 1}
{\input knuth }
\chapter[chapter2]{Chapter 2}
{\input knuth }
\chapter[chapter3]{Chapter 3}
{\input knuth }
\chapter[chapter4]{Chapter 4}
{\input knuth }
\chapter[chapter5]{Chapter 5}
{\input knuth }
\stoptext


file.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] Exceptions to assignment syntax [was: Re: labeltext assignment]

2012-06-12 Thread Wolfgang Schuster

Am 12.06.2012 um 00:22 schrieb Aditya Mahajan:

 On Mon, 11 Jun 2012, Aditya Mahajan wrote:
 
 On Mon, 11 Jun 2012, Philipp Gesang wrote:
 
 Dear others, please contribute if you know about further setups
 whose parameters behave in a non-standard way. As this is quite
 counterintuitive, I’d like to wikify any known exceptions
 somewhere over here:
 http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt#Optional_Arguments_and_Setups
 
 That is not a place where I will look for if I were confused. Perhaps it is 
 better to create a patch entitled Its not a bug, its a feature (or 
 something similar, that lists things like this (and the left vs leftflushed 
 that is listed in the FAQ).
 
 Other potential topics that fit better on such a page:
 
 * Why is space after \externalfigure[..][..] gobbled? (in the FAQ)

This has in MkIV a long time ago.

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] footnotes location=text

2012-06-12 Thread Wolfgang Schuster

Am 12.06.2012 um 10:10 schrieb Hans Hagen:

 On 11-6-2012 13:55, Wolfgang Schuster wrote:
 
 Am 11.06.2012 um 13:21 schrieb HermannSchopper:
 
 Thanks, I missed that change!
 And what is the parameter to prevent the footnotes being placed twice?
 
 It’s a bug which was fixed a while ago but came back. The code between 
 \unprotect and \protect has to be added/changed in strc-not.mkvi.
 
 actually it's a mixup of what i wanted to do and what got done ... i made a 
 new beta for you to check

It works.

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] wrong page numbers when using arranging

2012-06-12 Thread Hans Hagen

On 12-6-2012 12:08, Pavel Dohnal wrote:

Hello,
I am using \setuparranging and it causes me an error in referencing to pages.
I want place number of page into text but this page number is wrong.
As you can see in attached example, Chapter 2 is printed on page 3
but command \at prints page 4.
Could you please advise how to get the correct page number for
Chapter 2? That is page number 3?
Thank you
   Pavel Dohnal


\setuppapersize [A5][A4,landscape]
\setuparranging[2SIDE]

\starttext
Chapter 1 - \at[chapter1]\\
Chapter 2 - \at[chapter2]\\
Chapter 3 - \at[chapter3]\\
Chapter 4 - \at[chapter4]\\
Chapter 5 - \at[chapter5]\\


\chapter[chapter1]{Chapter 1}
{\input knuth }
\chapter[chapter2]{Chapter 2}
{\input knuth }
\chapter[chapter3]{Chapter 3}
{\input knuth }
\chapter[chapter4]{Chapter 4}
{\input knuth }
\chapter[chapter5]{Chapter 5}
{\input knuth }
\stoptext


you need to process the file with --arrange to make sure that the last 
run does not adapt the multi-pass data


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] Exceptions to assignment syntax [was: Re: labeltext assignment]

2012-06-12 Thread Marco
On 2012-06-11 Philipp Gesang ges...@stud.uni-heidelberg.de wrote:

 Dear others, please contribute if you know about further setups
 whose parameters behave in a non-standard way.

Here's another candidate: \usepath

http://article.gmane.org/gmane.comp.tex.context/75727

 As this is quite counterintuitive, I’d like to wikify any known
 exceptions somewhere over here:

How about unifying the interface? IMO that would make more sense
then bury the “caveats” somewhere deep in the wiki.


Marco


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

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

Re: [NTG-context] preventing page breaks after headings

2012-06-12 Thread Alan Bowen
Thanks!, Wolfgang. As ever, you are a life saver. I was able to remove all
but one of the weird page breaks using your suggestions. The last one was
resolved by moving a \startegister a few words further along in the
paragraph.

Alan

On Sun, Jun 10, 2012 at 3:13 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 10.06.2012 um 20:52 schrieb Alan Bowen:

  Is there a way in MKII to ensure that there is never a page break
 between a heading and the following text?
 
  \setuphead[after={\page[no]}] does not seem to work without entering
 vertical mode before \page. But, so far, I have not found a way to enter
 vertical mode in after={…} that does not add interlinespace and thus place
 the text too far from the heading.
 
  Any suggestion or alternatives?

 Do you have a example where you get an unwanted page break because context
 tries to prevent it.

 When you can’t make one in a short time try one of the following methods:


 1. Insert a page break before the heading when not enough space is
 available.

 \setuphead[…][before={\testpage[6]\blank[…]}]


 2. Add a big penalty before the vertical space after the heading (don’t
 use this method in mkiv).

 \setuphead[…][after={\nobreak\blank[…]}]


 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

 ___

___
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] directory structure

2012-06-12 Thread Marco
On 2012-06-08 Jan Pohanka xhpoha...@gmail.com wrote:

 Is it also possible to set some global path, where context will
 search the  env files and not to use the full path in document
 file?

Put the files in your local texmf directory: $HOME/texmf/

 Is enviroment  good aproach to define templates?

For general document templates I create modules. They define the
entire document layout. Everything except the content. This makes
sense if the layout is likely to be reused.

I use environments to define individual parts of the layout eg. font
setups, header setup, etc. If the document layout unique to this
particular document I often only use environments.

 template file in some directory on the system: \startenvironment
 myreport ... \setupexternalfigures[directory=???]
 \setupfootertexts[{\externalfigure[mypic]}] ... \stopenvironment

External figures are also found in the local texmf directory.


Marco


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

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


Re: [NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]

2012-06-12 Thread Hans Hagen

On 12-6-2012 13:42, Marco wrote:

On 2012-06-11 Philipp Gesang ges...@stud.uni-heidelberg.de wrote:


Dear others, please contribute if you know about further setups
whose parameters behave in a non-standard way.


Here's another candidate: \usepath

http://article.gmane.org/gmane.comp.tex.context/75727


that's one that can be dealt with (I'll adapt that one)


As this is quite counterintuitive, I’d like to wikify any known
exceptions somewhere over here:


How about unifying the interface? IMO that would make more sense
then bury the “caveats” somewhere deep in the wiki.


that's currently not feasable for all

-
  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] Exceptions to assignment syntax [was: Re: labeltext assignment]

2012-06-12 Thread Marco
On 2012-06-12 Hans Hagen pra...@wxs.nl wrote:

 On 12-6-2012 13:42, Marco wrote:
  On 2012-06-11 Philipp Gesang ges...@stud.uni-heidelberg.de wrote:
 
  Dear others, please contribute if you know about further setups
  whose parameters behave in a non-standard way.
 
  Here's another candidate: \usepath
 
  http://article.gmane.org/gmane.comp.tex.context/75727
 
 that's one that can be dealt with (I'll adapt that one)

While you're at it, check \usesubpath as well. I didn't test, but
assume it has the same issue.

  As this is quite counterintuitive, I’d like to wikify any known
  exceptions somewhere over here:
 
  How about unifying the interface? IMO that would make more sense
  then bury the “caveats” somewhere deep in the wiki.
 
 that's currently not feasable for all

What's the reason? Performance of backwards compatibility?

Personally, I would sacrifice some runtime in favour of a more
uniform interface. That's one of the main ideas that define ConTeXt
and set it apart from other TeX macro packages.

Regarding the backwards compatibility, wasn't MkIV the chance to
introduce incompatible changes (changes for improving the user
interface :)?


Marco


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

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

Re: [NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]

2012-06-12 Thread Hans Hagen

On 12-6-2012 16:24, Marco wrote:


While you're at it, check \usesubpath as well. I didn't test, but
assume it has the same issue.


uses the same code


As this is quite counterintuitive, I’d like to wikify any known
exceptions somewhere over here:


How about unifying the interface? IMO that would make more sense
then bury the “caveats” somewhere deep in the wiki.


that's currently not feasable for all


What's the reason? Performance of backwards compatibility?


more that we cannot use the regular parser


Personally, I would sacrifice some runtime in favour of a more
uniform interface. That's one of the main ideas that define ConTeXt
and set it apart from other TeX macro packages.


if you have completed the list i can see what can be done otherwise

(runtime is often not the reason esp not for macros that get used only a 
few times in a run)



Regarding the backwards compatibility, wasn't MkIV the chance to
introduce incompatible changes (changes for improving the user
interface :)?


sure

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] Exceptions to assignment syntax [was: Re: labeltext assignment]

2012-06-12 Thread Philipp Gesang
Hi Hans!

···date: 2012-06-12, Tuesday···from: Hans Hagen···

 On 12-6-2012 16:24, Marco wrote:
 
 While you're at it, check \usesubpath as well. I didn't test, but
 assume it has the same issue.
 
 uses the same code
 
 As this is quite counterintuitive, I’d like to wikify any known
 exceptions somewhere over here:
 
 How about unifying the interface? IMO that would make more sense
 then bury the “caveats” somewhere deep in the wiki.
 
 that's currently not feasable for all
 
 What's the reason? Performance of backwards compatibility?
 
 more that we cannot use the regular parser
 
 Personally, I would sacrifice some runtime in favour of a more
 uniform interface. That's one of the main ideas that define ConTeXt
 and set it apart from other TeX macro packages.
 
 if you have completed the list i can see what can be done otherwise

I’ll be collecting candidates for the wiki page until saturday
and then write up a draft, maybe submit it to the list for review
first. I can draw up a preliminary list first so you can have a
look at it.

Philipp

 (runtime is often not the reason esp not for macros that get used
 only a few times in a run)
 
 Regarding the backwards compatibility, wasn't MkIV the chance to
 introduce incompatible changes (changes for improving the user
 interface :)?
 
 sure
 
 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
 ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


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

[NTG-context] TABLE lines (frame)

2012-06-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I'd need to create table with a head and a body, and with horizontal lines 
between rows disabled, excluding the head.

Something like (ASCII art trial):

+--+--+
| Head | Head |
+--+--+   - Line here bellow the head is wanted (and can be thicker 
than the outer lines)...
| 11   | 12   |
|  |  |   - ... but no horizontal line between body's rows.
| 21   | 22   |
+--+--+

I played with *frame settings (guided by wiki), but no success.

My trial code:


\starttext
  
\bTABLE[split=repeat,option=stretch,align=middle,frame=off,leftframe=on,rightframe=on]
\bTABLEhead[bottomframe=on]
  \bTR\bTD Head \eTD\eTR
  \bTR\bTD Head \eTD\eTR
\eTABLEhead
\bTABLEbody
  \bTR\bTD 11\eTD\bTD 12\eTD\eTR
  \bTR\bTD 21\eTD\bTD 22\eTD\eTR
\eTABLEbody
  \eTABLE
\stoptext


How to specify rules (frame) to get the desired look?

TIA.

Kind regards,

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

t-TAB.mkiv
Description: Binary data


t-TAB.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] TABLE lines (frame)

2012-06-12 Thread luigi scarso
On Tue, Jun 12, 2012 at 5:12 PM, Procházka Lukáš Ing. - Pontex s. r.
o. l...@pontex.cz wrote:
 Hello,

 I'd need to create table with a head and a body, and with horizontal lines
 between rows disabled, excluding the head.

 Something like (ASCII art trial):

 +--+--+
 | Head | Head |
 +--+--+   - Line here bellow the head is wanted (and can be thicker
 than the outer lines)...
 | 11   | 12   |
 |      |      |   - ... but no horizontal line between body's rows.
 | 21   | 22   |
 +--+--+

 I played with *frame settings (guided by wiki), but no success.

 My trial code:

 
 \starttext
  \bTABLE[split=repeat,option=stretch,align=middle,frame=off,leftframe=on,rightframe=on]
    \bTABLEhead[bottomframe=on]
      \bTR\bTD Head \eTD\eTR
      \bTR\bTD Head \eTD\eTR
    \eTABLEhead
    \bTABLEbody
      \bTR\bTD 11\eTD\bTD 12\eTD\eTR
      \bTR\bTD 21\eTD\bTD 22\eTD\eTR
    \eTABLEbody
  \eTABLE
 \stoptext
 

 How to specify rules (frame) to get the desired look?

 TIA.

 Kind regards,

 Lukas

Hm, your ascii-art and the tex code don't match very well (you have
one head-row on ascii, but two head-rows on tex)
This is quite similar to your ascii-art:

\starttext
 
\bTABLE[split=repeat,option=stretch,align=middle,frame=off,leftframe=on,rightframe=on]
   \bTABLEhead
% \bTR\bTD Head \eTD\eTR
 \bTR[bottomframe=on,topframe=on]\bTD Head \eTD\bTD Head \eTD\eTR
   \eTABLEhead
   \bTABLEbody
 \bTR\bTD 11\eTD\bTD 12\eTD\eTR
 \bTR[bottomframe=on]\bTD 21\eTD\bTD 22\eTD\eTR
   \eTABLEbody
 \eTABLE
\stoptext

-- 
luigi
___
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] TABLE lines (frame)

2012-06-12 Thread Wolfgang Schuster

Am 12.06.2012 um 17:12 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

 Hello,
 
 I'd need to create table with a head and a body, and with horizontal lines 
 between rows disabled, excluding the head.
 
 Something like (ASCII art trial):
 
 +--+--+
 | Head | Head |
 +--+--+   - Line here bellow the head is wanted (and can be thicker 
 than the outer lines)...
 | 11   | 12   |
 |  |  |   - ... but no horizontal line between body's rows.
 | 21   | 22   |
 +--+--+
 
 I played with *frame settings (guided by wiki), but no success.
 
 My trial code:
 
 
 \starttext
  
 \bTABLE[split=repeat,option=stretch,align=middle,frame=off,leftframe=on,rightframe=on]
\bTABLEhead[bottomframe=on]
  \bTR\bTD Head \eTD\eTR
  \bTR\bTD Head \eTD\eTR
\eTABLEhead
\bTABLEbody
  \bTR\bTD 11\eTD\bTD 12\eTD\eTR
  \bTR\bTD 21\eTD\bTD 22\eTD\eTR
\eTABLEbody
  \eTABLE
 \stoptext
 
 
 How to specify rules (frame) to get the desired look?

\starttext

\setupTABLE[start][frame=off,leftframe=on,rightframe=on]
\setupTABLE[header][frame=on]
\setupTABLE[row][first][topframe=on]
\setupTABLE[row][last][bottomframe=on]


\bTABLE[split=repeat,option=stretch]
  \bTABLEhead
\bTR\bTD Head \eTD\bTD Head \eTD\eTR
  \eTABLEhead
  \bTABLEbody
\bTR\bTD 11\eTD\bTD 12\eTD\eTR
\bTR\bTD 21\eTD\bTD 22\eTD\eTR
  \eTABLEbody
\eTABLE

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


[NTG-context] wrong German hyphenation for Nietzsche?

2012-06-12 Thread Pablo Rodríguez
Hi there,

using both \de and \deo, ConTeXt hyphenates Nietzsche as Nietz[-]sc[-]he.

I'm not a native speaker, but I guess that hyphenating “sch” (at least
in that case) is wrong.

Isn't it Nietz[-]sche the right hyphenation?

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
___


Re: [NTG-context] wrong German hyphenation for Nietzsche?

2012-06-12 Thread Wolfgang Schuster

Am 12.06.2012 um 18:12 schrieb Pablo Rodríguez:

 Hi there,
 
 using both \de and \deo, ConTeXt hyphenates Nietzsche as Nietz[-]sc[-]he.
 
 I'm not a native speaker, but I guess that hyphenating “sch” (at least
 in that case) is wrong.
 
 Isn't it Nietz[-]sche the right hyphenation?


Isn’t this what you get with this example!

\starttext
\de\hsize1mm Nietzsche
\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] TABLE lines (frame)

2012-06-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... OK, this seems good.

Actually, I need multi-line header, so two more questions:

1) Is there a way how to address rows (first, last) of the header part? 
Something like:

  \setupTABLE[header][r][1][topframe=on]
  \setupTABLE[header][r][last][bottomframe=on]

  - When I'd like to draw a line bellow the last row of the head, I have to set 
\setupTABLE[r][x][bottomframe=on] so far, where x means the number of the 
last head row. So I'm looking for a way to address the last header row WITHOUT knowing its number.

2) How to make Ctx draw the line bellow the last row printed on a page, when the table is 
continued on the next page and bottomframe (of the whole table) is on? - See 
the bottom of table on the page 1, continued on the next page.

Lukas


On Tue, 12 Jun 2012 17:41:00 +0200, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


\starttext
\setupTABLE[start][frame=off,leftframe=on,rightframe=on]
\setupTABLE[header][frame=on]
\setupTABLE[row][first][topframe=on]
\setupTABLE[row][last][bottomframe=on]
\bTABLE[split=repeat,option=stretch]
  \bTABLEhead
\bTR\bTD Head \eTD\bTD Head \eTD\eTR
  \eTABLEhead
  \bTABLEbody
\bTR\bTD 11\eTD\bTD 12\eTD\eTR
\bTR\bTD 21\eTD\bTD 22\eTD\eTR
  \eTABLEbody
\eTABLE
\stoptext



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

t-TAB2.mkiv
Description: Binary data


t-TAB2.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] wrong German hyphenation for Nietzsche?

2012-06-12 Thread Marco
On 2012-06-12 Pablo Rodríguez oi...@web.de wrote:

 using both \de and \deo, ConTeXt hyphenates Nietzsche as Nietz[-]sc[-]he.

\mainlanguage [de] % same for deo
\starttext
\showhyphens{Nietzsche}
\stoptext

show: Nietz[-||]sche

context version 2012.06.11 00:21


Marco


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

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

Re: [NTG-context] wrong German hyphenation for Nietzsche?

2012-06-12 Thread Pablo Rodríguez
On 12/06/12 18:19, Marco wrote:
 On 2012-06-12 Pablo Rodríguez oi...@web.de wrote:
 
 using both \de and \deo, ConTeXt hyphenates Nietzsche as Nietz[-]sc[-]he.
 
 \mainlanguage [de] % same for deo
 \starttext
 \showhyphens{Nietzsche}
 \stoptext
 
 show: Nietz[-||]sche
 
 context version 2012.06.11 00:21

Thank you, Wolfgang and Marco.

I get:

languageshyphenation  show: Nietz[-]sc[-]he

with:

ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2012.4.6

I'll upgrade and check what happens.


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] wrong German hyphenation for Nietzsche?

2012-06-12 Thread Pablo Rodríguez
On 12/06/12 18:27, Pablo Rodríguez wrote:
 On 12/06/12 18:19, Marco wrote:
 On 2012-06-12 Pablo Rodríguez oi...@web.de wrote:

 using both \de and \deo, ConTeXt hyphenates Nietzsche as Nietz[-]sc[-]he.

 \mainlanguage [de] % same for deo
 \starttext
 \showhyphens{Nietzsche}
 \stoptext

 show: Nietz[-||]sche

 context version 2012.06.11 00:21
 
 Thank you, Wolfgang and Marco.
 
 I get:
 
 languageshyphenation  show: Nietz[-]sc[-]he
 
 with:
 
 ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2012.4.6
 
 I'll upgrade and check what happens.

Well, I have realized that this was ConTeXt from TexLive 2011 (LaTeX,
XeLaTeX and LuaLaTeX hyphenate it right).

And ConTeXt standalone hyphenates it right.

Sorry for the noise,


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] wrong German hyphenation for Nietzsche?

2012-06-12 Thread Mojca Miklavec
On Tue, Jun 12, 2012 at 6:40 PM, Pablo Rodríguez wrote:
 Well, I have realized that this was ConTeXt from TexLive 2011 (LaTeX,
 XeLaTeX and LuaLaTeX hyphenate it right).

 And ConTeXt standalone hyphenates it right.

Patterns in ConTeXt have been updated at the end of May, so they
should be synchronized with those from other engines now.

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] On an odd page?

2012-06-12 Thread Bill Meahan
I must be having a bad day since I can't find the answer to this simple 
question on the wiki. I'm sure it's me but...


How do I test if I am on an odd or even page? I need the equivalent of:
PSUEDO COMMAND
\doifoddpageelse{what to do on oddpage)(what to do on even page}

This is _not_ in a header, BTW

--
Bill Meahan K8QN

The pessimist complains about the wind;
 the optimist expects it to change;
 the realist adjusts the sails.

-- William Arthur Ward

This message is digitally signed with an X.509 certificate
to prove it is from me and has not been altered since it was sent.



smime.p7s
Description: S/MIME Cryptographic 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] On an odd page?

2012-06-12 Thread Wolfgang Schuster

Am 12.06.2012 um 18:49 schrieb Bill Meahan:

 I must be having a bad day since I can't find the answer to this simple 
 question on the wiki. I'm sure it's me but...
 
 How do I test if I am on an odd or even page? I need the equivalent of:
 PSUEDO COMMAND
 \doifoddpageelse{what to do on oddpage)(what to do on even page}
 
 This is _not_ in a header, BTW

\define\MyCommand
  {\signalrightpage\doifrightpageelse{{\tttf RIGHT PAGE!}}{{\tttf LEFT Page!}}}

\setuppagenumbering[alternative=doublesided]

\starttext
\dorecurse{10}{\MyCommand\page}
\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] On an odd page?

2012-06-12 Thread Bill Meahan

On 06/12/2012 12:53, Wolfgang Schuster wrote:



\define\MyCommand
   {\signalrightpage\doifrightpageelse{{\tttf RIGHT PAGE!}}{{\tttf LEFT Page!}}}

\setuppagenumbering[alternative=doublesided]

\starttext
\dorecurse{10}{\MyCommand\page}
\stoptext

Wolfgang


Many thanks, Wolfgang!

--
Bill Meahan K8QN

The pessimist complains about the wind;
 the optimist expects it to change;
 the realist adjusts the sails.

-- William Arthur Ward

This message is digitally signed with an X.509 certificate
to prove it is from me and has not been altered since it was sent.



smime.p7s
Description: S/MIME Cryptographic 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] Exceptions to assignment syntax [was: Re: labeltext assignment]

2012-06-12 Thread Hans Hagen

On 12-6-2012 16:41, Philipp Gesang wrote:


I’ll be collecting candidates for the wiki page until saturday
and then write up a draft, maybe submit it to the list for review
first. I can draw up a preliminary list first so you can have a
look at it.


next week is ok

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] \externalfigure and factor=max

2012-06-12 Thread Marco
On 2012-06-07 Rogers, Michael K mrog...@emory.edu wrote:

 I played with your example a little and rooted around in grph-trf.mkiv.  It 
 seems max selects how to scale based on which dimension in the original 
 figure is greater.  Oddly, the dimensions of the MP figure are 142.26682pt by 
 142.2377pt.  So I suspect that max is selecting the width as the dimension 
 to scale to the specified width=3cm in your case.  (Change the height of the 
 MP figure to 5.01cm and you'll see a change.)  Whether that's a bug or 
 intended is a question for others.  If not, then max is for this problem:
 
 Q. How to scale an image so that the largest dimension is 4cm?
 A.  \externalfigure [\jobname-img] [factor=max, width=4cm, height=4cm]
 
 If this is correct, I'd be glad to try to clarify the wiki. (I've not done 
 much wiki-ing.)
 
 I suppose you could fix your problem with something like
 
 \ifdim\desiredwidth\desiredheight  
 \externalfigure [\jobname-img][width=\desiredwidth]
 \else
 \externalfigure [\jobname-img][height=\desiredheight]
 \fi


___
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] \externalfigure and factor=max

2012-06-12 Thread Marco
Sorry for the previous mail, here again with content:

On 2012-06-07 Rogers, Michael K mrog...@emory.edu wrote:

Hi Michael,

thanks for your investigations.

 Whether that's a bug or intended is a question for others.  If not, then 
 max is for this problem:
 
 Q. How to scale an image so that the largest dimension is 4cm?
 A.  \externalfigure [\jobname-img] [factor=max, width=4cm, height=4cm]

I doubt that this is the intention behind the key.

Can someone confirm that this is a bug?

 If this is correct, I'd be glad to try to clarify the wiki. (I've not done 
 much wiki-ing.)

Only if it's unlikely to be fixed (if it's in the wiki it's documented and a
feature, not a bug ;)


Marco

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

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