[NTG-context] Linecorrection and distances

2013-07-18 Thread H. Özoguz
I use grid-setting, but have elements, which should not be set on the 
grid (because it is impossible, because of different interlinespaces, 
bigger fonts, or whatever).

For these elements I use
\startlinecorrection Elements \stoplinecorrection
After these elements the normal text is continued, set on the grid 
again. That is all working and fine.


But: The distances between these \startlinecorrection Elements 
\stoplinecorrection blocks and the text (both distances, before and 
after) are not always the same, they seem to be random. How to correct 
that without inserting \vksip+-Xpt manually before/after the 
linecorrected blocks?


For testing:

\showgrid

\setuplayout[grid=yes]

\definefont[big][name:Arial at 25 pt]

\def\kurztext{Dies ist ein kurzer Text. Die anderen Standardtexte sind 
deutlich zu lang.}


\starttext

\kurztext

\startlinecorrection

\big \kurztext Und noch Zusatztext.

\stoplinecorrection

\kurztext

\startlinecorrection

\big \kurztext

\stoplinecorrection

\kurztext

\stoptext


In the above example you can see it, the distances between the grid set 
and the not grid set text are different.


Thanks for your help once again.
Huseyin
___
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] Linecorrection and distances

2013-07-18 Thread Hans Hagen

On 7/18/2013 9:36 AM, H. Özoguz wrote:

I use grid-setting, but have elements, which should not be set on the
grid (because it is impossible, because of different interlinespaces,
bigger fonts, or whatever).
For these elements I use
\startlinecorrection Elements \stoplinecorrection
After these elements the normal text is continued, set on the grid
again. That is all working and fine.

But: The distances between these \startlinecorrection Elements
\stoplinecorrection blocks and the text (both distances, before and
after) are not always the same, they seem to be random. How to correct
that without inserting \vksip+-Xpt manually before/after the
linecorrected blocks?

For testing:

\showgrid

\setuplayout[grid=yes]

\definefont[big][name:Arial at 25 pt]

\def\kurztext{Dies ist ein kurzer Text. Die anderen Standardtexte sind
deutlich zu lang.}

\starttext

\kurztext

\startlinecorrection

\big \kurztext Und noch Zusatztext.

\stoplinecorrection

\kurztext

\startlinecorrection

\big \kurztext

\stoplinecorrection

\kurztext

\stoptext


In the above example you can see it, the distances between the grid set
and the not grid set text are different.


you only switch the font so the distance between lines is determines by 
the size of glyphs + interlineskip .. best use:


\big \setupinterlinespace


-
  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] weird interaction in linenotes command (again)

2013-07-18 Thread Hans Hagen

On 7/17/2013 9:05 PM, Wolfgang Schuster wrote:


\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


\prewordbreak % experiment


\fi}

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
___


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

2013-07-18 Thread Alan Bowen
Should the definition not be
  \define[1]\anios{{\tfx \inmagin{#1}}}
……\inmargin….?

Alan


On Wed, Jul 17, 2013 at 6:59 PM, Andres Conrado ela...@chiquitico.orgwrote:

 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

 ___

___
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] A very simple macro that does not work...

2013-07-18 Thread Marco Patzer
On 2013–07–18 Alan Bowen wrote:

 Should the definition not be
   \define[1]\anios{{\tfx \inmagin{#1}}}
 ……\inmargin….?

\inmagin would do the job with Knuth's new iTeX¹ system² but it's
not yet available in ConTeXt, which still uses legacy TeX. In the
near future it's unlikely that iTeX will be merged with ConTeXt,
although it's on the agenda for LuaTeX 2.0 ;)

Marco

¹ ring ring
² It has built-in spell check and is of interpreting unknown
  commands based on the context, so \inmagin would work just fine.


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] Linecorrection and distances

2013-07-18 Thread H. Özoguz

you only switch the font so the distance between lines is determines by
the size of glyphs + interlineskip .. best use:

\big \setupinterlinespace


My Problem is NOT the bad interlinespacing of the big font in my 
example. Of course I can correct that with your suggestion, but thats 
not the topic. These big font sentences are only examples for 
elements, which are not set on the grid.
The question is: How to achieve same distances between every normal text 
(set on the grid) and the elements (not set on the grid)? It is clear 
that not all before-distances and all after-distances respectivley can 
be the same  simulatously, thats trivial. But at least all 
before-distances (so the distance between the text and the elements, in 
this order!) should be the same in the complete book. How to?

___
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-18 Thread Wolfgang Schuster

Am 18.07.2013 um 03:12 schrieb Michael Ash m...@econs.umass.edu:

 Dear Wolfgang,
 
 Thank you very much.  This is very helpful.
 
 One note is that to center the footer required 
 
 \setupletterframe[foot][align=middle]

Of course, the alignment is a framed feature.

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

You can use \setupletteroptions[indenting=…] which only passed to the content 
section.

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

This should be alternative c and not e.


\usemodule[letter]

\setupletterlayer[reference][alternative=c]

%\setupletterlayer[reference][alternative=c,list=reference] % default: list=date
%\setupletter[reference=\currentdate]

\setupletteroptions[indenting={yes,medium,next}]

\startletter
\input knuth
\stopletter


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] weird interaction in linenotes command (again)

2013-07-18 Thread Pablo Rodríguez
On 18/07/13 12:21, Hans Hagen wrote:
 On 7/17/2013 9:05 PM, Wolfgang Schuster wrote:
 
 \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
 
 \prewordbreak % experiment
 
 \fi}

Many thanks for your replies, Wolfgang and Hans.

Hans, I’m afraid that your patch fixes Wolfgang’s sample, but not mine.

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] Linecorrection and distances

2013-07-18 Thread Hans Hagen

On 7/18/2013 2:15 PM, H. Özoguz wrote:

you only switch the font so the distance between lines is determines by
the size of glyphs + interlineskip .. best use:

\big \setupinterlinespace


My Problem is NOT the bad interlinespacing of the big font in my
example. Of course I can correct that with your suggestion, but thats
not the topic. These big font sentences are only examples for
elements, which are not set on the grid.
The question is: How to achieve same distances between every normal text
(set on the grid) and the elements (not set on the grid)? It is clear
that not all before-distances and all after-distances respectivley can
be the same  simulatously, thats trivial. But at least all
before-distances (so the distance between the text and the elements, in
this order!) should be the same in the complete book. How to?


it always depends on the content

you can influence it with options ... see teststuite for examples (in 
spacing path)


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] Linecorrection and distances

2013-07-18 Thread H. Özoguz

it always depends on the content

you can influence it with options ... see teststuite for examples (in
spacing path)


Sorry, I did not get you. Which options, to influence this behaviour? (I could not find 
any options, parameters, for startlinecorrection). And to which testsuite do 
you refer to?

Huseyin

___
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] Linecorrection and distances

2013-07-18 Thread Marco Patzer
On 2013–07–18 H. Özoguz wrote:

 And to which testsuite do you refer to?

Probably

  http://pragma-ade.com/context/latest/cont-tst.7z

 I could not find any options, parameters, for startlinecorrection

  grep -Hnr startlinecorrection *
  cld/cld-001.cld:28:  context.startlinecorrection( { blank })
  margins/margindata-006.tex:17:\startlinecorrection
  margins/margindata-006.tex:24:\startlinecorrection
  margins/margindata-006.tex:31:\startlinecorrection
  margins/margindata-006.tex:38:\startlinecorrection
  margins/margindata-006.tex:45:\startlinecorrection
  spacing/linecorrection-001.tex:6:\startlinecorrection \framed{xxx} 
\stoplinecorrection
  spacing/linecorrection-001.tex:14:\startlinecorrection \framed{xxx} 
\stoplinecorrection
  tables/xtables-003.tex:22:\startlinecorrection
  tables/xtables-003.tex:26:\startlinecorrection
  tables/xtables-003.tex:30:\startlinecorrection
  tags/tagged-007.tex:33:\startlinecorrection

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] weird interaction in linenotes command (again)

2013-07-18 Thread Wolfgang Schuster

Am 18.07.2013 um 17:38 schrieb Pablo Rodríguez oi...@web.de:

 On 18/07/13 12:21, Hans Hagen wrote:
 On 7/17/2013 9:05 PM, Wolfgang Schuster wrote:
 
 \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
 
 \prewordbreak % experiment
 
\fi}
 
 Many thanks for your replies, Wolfgang and Hans.
 
 Hans, I’m afraid that your patch fixes Wolfgang’s sample, but not mine.
 
 Many thanks for your help,


New minimal example:

\setuppapersize[A6]

\starttext

\dorecurse{10}{not original }

\blank

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

\blank

\dorecurse{10}{\startline[test:2:#1]not 
original\prewordbreak\stopline[test:2:#1] }

\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] Some questions about the letter module (Wolfgang Schuster)

2013-07-18 Thread Michael Ash
Thank you very much; this was again very helpful.   I am still having a
problem with left-justifying the date:

\setupletterlayer[reference][alternative=c]

does not properly left-justify the date; the date is towards the left but
is aligned several mm to the right of the other text.  (This was true on
the mwe that Wolfgang sent.)

BTW are the values for the alternative key (example, e, c, etc.)
documented somewhere?

Thank you again.

Best,
Michael




 Message: 5
 Date: Thu, 18 Jul 2013 14:57:33 +0200
 From: Wolfgang Schuster schuster.wolfg...@gmail.com
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] Some questions about the letter module
 Message-ID: aaec0b67-ca76-4b98-95ed-e3bbc7916...@gmail.com
 Content-Type: text/plain; charset=windows-1252


 Am 18.07.2013 um 03:12 schrieb Michael Ash m...@econs.umass.edu:

  Dear Wolfgang,
 
  Thank you very much.  This is very helpful.
 
  One note is that to center the footer required
 
  \setupletterframe[foot][align=middle]

 Of course, the alignment is a framed feature.

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

 You can use \setupletteroptions[indenting=?] which only passed to the
 content section.

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

 This should be alternative c and not e.


 \usemodule[letter]

 \setupletterlayer[reference][alternative=c]

 %\setupletterlayer[reference][alternative=c,list=reference] % default:
 list=date
 %\setupletter[reference=\currentdate]

 \setupletteroptions[indenting={yes,medium,next}]

 \startletter
 \input knuth
 \stopletter


 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] weird interaction in linenotes command (again)

2013-07-18 Thread Pablo Rodríguez
On 18/07/13 21:31, Wolfgang Schuster wrote:
 [...]
 New minimal example:
 [...]
 \dorecurse{10}{\startline[test:2:#1]not 
 original\prewordbreak\stopline[test:2:#1] }

Many thanks for your reply, Wolfgang.

Now I understand what was required here and what \prewordbreak does
(modifying strc-ref.mkvi was Greek to me).

This fixes the issue with my command.

Many thanks again 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
___