Re: [NTG-context] toppath

2012-11-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Tue, 27 Nov 2012 08:43:25 +0100, Procházka Lukáš Ing. - Pontex s. r. o. 
 wrote:


Is 'toppath:' prefix working?


... My observation so far:

'toppath' works with \component, so if one needs to include a file, it's better 
to include it via:

\component file.tex

where 'topttath' works as well:

\component toppath:/path-relative-to-me/file.tex

whilst

\input path-relative-to-me/file.tex

works "traditionally", so path is always relative to the directory the 
compilation is launched from.

Best 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

___
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] Find all words set into the margin

2012-11-27 Thread H. Özoguz

Am 27.11.2012 22:39, schrieb ntg-context-requ...@ntg.nl:

(just run your docs with \setupalign[verytolerant,stretch] and you're
okay in most cases)
That is not possible, because I want to have very nice word-distances, 
and I want the margin-runs to be there, to correct them myselve 
manually. So for now, I will go through every single page, and look for 
black boxes (or in your gimmick red boxes).


Thanks.
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] Updating texlive?

2012-11-27 Thread Hans Hagen

On 11/28/2012 12:39 AM, Mojca Miklavec wrote:

On Wed, Nov 28, 2012 at 12:20 AM, Martin Schröder wrote:

2012/11/27 Mojca Miklavec:

What exactly do you mean with a canonical way? The most reliable way


How about delivering a new version through tlcontrib?


Doable***, but a new beta is usually released several times per day
(and sometimes doesn't even compile the format).


Not that often, does it? Making formats is part of making the zip so it 
only fails when i forgot to add a file to the zip (in which case on my 
machine the file from my local tree is taken).



There is one extra prerequisite though: it would have to be marked as
highly experimental. Not everyone who decides to add tlcontrib to the
list of repositories should get the latest beta every few hours. This
feature is or was on Taco's TODO list on my request, but putting
ConTeXt modules into TLContrib structure currently has a much higher
priority than this feature.


indeed. updating tlcontrib can happen with a low frequency (also because 
sometimes betas are real betas with new features)



It might be a lot easier/faster to simply create a second repository
with just ConTeXt betas.


personally i always use special trees for projects that I inly update
when i need a new feature

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] Euler Constant and limit

2012-11-27 Thread Kip Warner
On Tue, 2012-11-27 at 08:06 +0100, Wolfgang Schuster wrote:
> Better define a complete set which includes also serif and sans.
> Afterwards you have to enable it with \setupbodyfont[…].

Hey Wolfgang. The reason why I hadn't done that is I didn't want to
overwrite the selected typeface I was using already for the main body
font. Isn't that what \setupbodyfont[mainface] would do?

In any case, when I add the following to my environment file...

\definetypeface[mainface][rm][serif][modern] [default][designsize=auto]
\definetypeface[mainface][ss][sans] [modern] [default][designsize=auto]
\definetypeface[mainface][tt][mono] [modern] [default][designsize=auto]
\definetypeface[mainface][mm][math] [pagella]
\setupbodyfont[mainface]

...I end up with the following error which, as usual, I don't
understand:

Underfull \hbox (badness 1) in paragraph at lines 62--64

! Math error: parameter \Umathfraction_rule\displaystyle is not set.
\stopdisplaymath ->\stopinnermath $$
\par \afterdisplayspace \par
\egroup 
\strc_formulas_stop_formula ...native \v!formula }
  \dostoptagged
\dostoptagge...
l.69 \stopformula
 
E
? You want to edit file Terms_and_Concepts/Terms_and_Concepts.tex at
line 69

Here is the suspect file:



> \placeformula[formula:Limit of Verhulst equation]
> \startformula
> \lim_{t\to\infty} P(t) = K.
> \stopformula

So what you are saying is that there is no need for \math whenever the
formulas are bracketed with \start and \stopformula? I will give this a
try as soon as I can get the book to compile.

-- 
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] Updating texlive?

2012-11-27 Thread Mojca Miklavec
On Wed, Nov 28, 2012 at 12:20 AM, Martin Schröder wrote:
> 2012/11/27 Mojca Miklavec:
>> What exactly do you mean with a canonical way? The most reliable way
>
> How about delivering a new version through tlcontrib?

Doable***, but a new beta is usually released several times per day
(and sometimes doesn't even compile the format).

There is one extra prerequisite though: it would have to be marked as
highly experimental. Not everyone who decides to add tlcontrib to the
list of repositories should get the latest beta every few hours. This
feature is or was on Taco's TODO list on my request, but putting
ConTeXt modules into TLContrib structure currently has a much higher
priority than this feature.

It might be a lot easier/faster to simply create a second repository
with just ConTeXt betas.

Mojca

*** if TLContrib doesn't run out of disk space after storing all the
ConTeXt versions into SVN ;) ;) ;)
___
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] Updating texlive?

2012-11-27 Thread Martin Schröder
2012/11/27 Mojca Miklavec :
> What exactly do you mean with a canonical way? The most reliable way

How about delivering a new version through tlcontrib?

Best
   Martin
___
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] Updating texlive?

2012-11-27 Thread Thomas A. Schmitz
On 11/27/2012 11:06 PM, Hans Hagen wrote:
> 
> you probably need to copy mtxrun.lua to mtxrun in some bin path

Yes, that appears to be the culprit - after overwriting the "old" mtxrun
with the fresh copy, it seems to work.

On 11/27/2012 11:07 PM, Mojca Miklavec wrote:> What exactly do you mean
with a canonical way? The most reliable way
> could be creating a tar.xz package from the beta and install that one,
> but it wouldn't guarantee you that ConTeXt would work at all. Usually
> quite some effort is put into making sure that ConTeXt runs on TeX
> Live at all and it remains more or less stable (one has to start
> convincing Hans about a month in advance of TL freeze to slow down the
> development and try to hold on with major code changes, so that major
> bugs get fixed without introducing too many new ones; and it's also
> important to make sure that ConTeXt integrates well with the given
> framework of TL).
>
> Creating a script to make you a tar.xz would be doable, but it would
> be completely unsupported.
>
> An alternative is to put ConTeXt into your home/local tree (or some
> other tree where TL would find the files), but the nasty detail is
> that you have to make sure that all the relevant binaries & scripts
> are replaced as well. Notably that's mtxrun.

Hmm, that sounds much more complex than the simple fix Hans suggested.
Since you package context for texlive, you have much more experience
here than I do: any more scripts that need to be copied into the binary
tree? (apart from luatex itself, if it gets updated to a new version)

Thomas
___
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] Updating texlive?

2012-11-27 Thread Hans Hagen

On 11/27/2012 11:07 PM, Mojca Miklavec wrote:

On Tue, Nov 27, 2012 at 10:46 PM, Thomas A. Schmitz wrote:

Hi,

is there a canonical way to update texlive so it runs the latest context
beta?


What exactly do you mean with a canonical way? The most reliable way
could be creating a tar.xz package from the beta and install that one,
but it wouldn't guarantee you that ConTeXt would work at all. Usually
quite some effort is put into making sure that ConTeXt runs on TeX
Live at all and it remains more or less stable (one has to start
convincing Hans about a month in advance of TL freeze to slow down the
development and try to hold on with major code changes, so that major
bugs get fixed without introducing too many new ones; and it's also
important to make sure that ConTeXt integrates well with the given
framework of TL).

Creating a script to make you a tar.xz would be doable, but it would
be completely unsupported.

An alternative is to put ConTeXt into your home/local tree (or some
other tree where TL would find the files), but the nasty detail is
that you have to make sure that all the relevant binaries & scripts
are replaced as well. Notably that's mtxrun.


In the past we had more updates of mp.luatex so it's more likely to work 
nowadays (unzip context, update mtxrun) but I expect a metapost / luatex 
update around the end of the year in which case the delta between tl and 
minimals becomes too large. I agree with Mojca that tl is meant to be 
stable and should be left as is.



 From time to time, I'd like to be sure that I can run texlive as
well. I tried unzipping the latest zip file in texlive/texmf-local,
running mtxrun --generate and context --make, but I get

texmf-local/scripts/context/lua/mtx-context.lua:859: attempt to call
field 'loadchunk' (a nil value)

mtx-context.lua is identical to the one in standalone, as is the luatex
binary, so I'm wondering what's going wrong here?


You also need to make sure that mtxrun is updated (in some way).


often

mtxrun --selfupdate

works (given that we have a compatible luatex)

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] simple question on kerning activation

2012-11-27 Thread Hans Hagen

On 11/27/2012 10:58 PM, Wolfgang Schuster wrote:


Am 27.11.2012 um 22:43 schrieb Pablo Rodríguez :


On 27/11/12 22:34, Wolfgang Schuster wrote:

Am 27.11.2012 um 20:34 schrieb Pablo Rodríguez :
[...]

Probably my font is newer (from
http://ftp.gnu.org/gnu/freefont/freefont-ttf-20120503.zip).

I think there is no file clash, since ConTeXt standalone doesn't provide the 
font


The font files from the gnu page have no kerning but the files from
http://de.fonts2u.com/free-serif.schriftart have kerning information.


Many thanks for your reply, Wolfgang.

I'd like to report this to the font developer (he has assured me that
the fonts have kerning).

How have you discovered that the Savannah FreeSerif fonts have no
kerning info?


That’s not what I wanted to write. I had the same thought as Hans with the 
missing
for the “default” script (AFAIR this was also a problem with other fonts in the 
past)
but I wanted to test it first but he was faster than me.


Normally context will automatically fall back on latn but does so by 
looking at the feature list. These fonts support so many scripts that 
it's not possible.


You (pablo) can report to the font designer that for features like 
kerning a dflt,dflt pair makes sense.


-
  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] Updating texlive?

2012-11-27 Thread Mojca Miklavec
On Tue, Nov 27, 2012 at 10:46 PM, Thomas A. Schmitz wrote:
> Hi,
>
> is there a canonical way to update texlive so it runs the latest context
> beta?

What exactly do you mean with a canonical way? The most reliable way
could be creating a tar.xz package from the beta and install that one,
but it wouldn't guarantee you that ConTeXt would work at all. Usually
quite some effort is put into making sure that ConTeXt runs on TeX
Live at all and it remains more or less stable (one has to start
convincing Hans about a month in advance of TL freeze to slow down the
development and try to hold on with major code changes, so that major
bugs get fixed without introducing too many new ones; and it's also
important to make sure that ConTeXt integrates well with the given
framework of TL).

Creating a script to make you a tar.xz would be doable, but it would
be completely unsupported.

An alternative is to put ConTeXt into your home/local tree (or some
other tree where TL would find the files), but the nasty detail is
that you have to make sure that all the relevant binaries & scripts
are replaced as well. Notably that's mtxrun.

> From time to time, I'd like to be sure that I can run texlive as
> well. I tried unzipping the latest zip file in texlive/texmf-local,
> running mtxrun --generate and context --make, but I get
>
> texmf-local/scripts/context/lua/mtx-context.lua:859: attempt to call
> field 'loadchunk' (a nil value)
>
> mtx-context.lua is identical to the one in standalone, as is the luatex
> binary, so I'm wondering what's going wrong here?

You also need to make sure that mtxrun is updated (in some way).

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
___


Re: [NTG-context] Updating texlive?

2012-11-27 Thread Hans Hagen

On 11/27/2012 10:46 PM, Thomas A. Schmitz wrote:

Hi,

is there a canonical way to update texlive so it runs the latest context
beta? From time to time, I'd like to be sure that I can run texlive as
well. I tried unzipping the latest zip file in texlive/texmf-local,
running mtxrun --generate and context --make, but I get

texmf-local/scripts/context/lua/mtx-context.lua:859: attempt to call
field 'loadchunk' (a nil value)

mtx-context.lua is identical to the one in standalone, as is the luatex
binary, so I'm wondering what's going wrong here?


you probably need to copy mtxrun.lua to mtxrun in some bin path

-
  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] simple question on kerning activation

2012-11-27 Thread Wolfgang Schuster

Am 27.11.2012 um 22:43 schrieb Pablo Rodríguez :

> On 27/11/12 22:34, Wolfgang Schuster wrote:
>> Am 27.11.2012 um 20:34 schrieb Pablo Rodríguez :
>> [...]
>>> Probably my font is newer (from
>>> http://ftp.gnu.org/gnu/freefont/freefont-ttf-20120503.zip).
>>> 
>>> I think there is no file clash, since ConTeXt standalone doesn't provide 
>>> the font
>> 
>> The font files from the gnu page have no kerning but the files from
>> http://de.fonts2u.com/free-serif.schriftart have kerning information.
> 
> Many thanks for your reply, Wolfgang.
> 
> I'd like to report this to the font developer (he has assured me that
> the fonts have kerning).
> 
> How have you discovered that the Savannah FreeSerif fonts have no
> kerning info?

That’s not what I wanted to write. I had the same thought as Hans with the 
missing
for the “default” script (AFAIR this was also a problem with other fonts in the 
past)
but I wanted to test it first but he was faster than me.

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] simple question on kerning activation

2012-11-27 Thread Hans Hagen

On 11/27/2012 8:34 PM, Pablo Rodríguez wrote:

On 27/11/12 18:56, Hans Hagen wrote:

On 11/27/2012 6:36 PM, Pablo Rodríguez wrote:

I see lots of kerns in:

\starttext
\startTEXpage[offset=10pt]
\definedfont[file:freeserif.ttf*default] \showfontkerns \input ward
\stopTEXpage
\stoptext


Well, I don't see any kern.

[...]
the font gets included .. so maybe someone else should also test it

are you sure that the font is okay? mine is 1.687.516 bytes


Probably my font is newer (from
http://ftp.gnu.org/gnu/freefont/freefont-ttf-20120503.zip).


that version misses a dflt,dflt -> kern definition so you need to add:

\definefontfeature[default][default][script=latn]

at the top of your document


-
  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] Updating texlive?

2012-11-27 Thread Thomas A. Schmitz
Hi,

is there a canonical way to update texlive so it runs the latest context
beta? From time to time, I'd like to be sure that I can run texlive as
well. I tried unzipping the latest zip file in texlive/texmf-local,
running mtxrun --generate and context --make, but I get

texmf-local/scripts/context/lua/mtx-context.lua:859: attempt to call
field 'loadchunk' (a nil value)

mtx-context.lua is identical to the one in standalone, as is the luatex
binary, so I'm wondering what's going wrong here?

All best

Thomas
___
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] simple question on kerning activation

2012-11-27 Thread Pablo Rodríguez
On 27/11/12 22:34, Wolfgang Schuster wrote:
> Am 27.11.2012 um 20:34 schrieb Pablo Rodríguez :
> [...]
>> Probably my font is newer (from
>> http://ftp.gnu.org/gnu/freefont/freefont-ttf-20120503.zip).
>>
>> I think there is no file clash, since ConTeXt standalone doesn't provide the 
>> font
> 
> The font files from the gnu page have no kerning but the files from
> http://de.fonts2u.com/free-serif.schriftart have kerning information.

Many thanks for your reply, Wolfgang.

I'd like to report this to the font developer (he has assured me that
the fonts have kerning).

How have you discovered that the Savannah FreeSerif fonts have no
kerning info?

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] simple question on kerning activation

2012-11-27 Thread Hans Hagen

On 11/27/2012 8:34 PM, Pablo Rodríguez wrote:

> Probably my font is newer (from

http://ftp.gnu.org/gnu/freefont/freefont-ttf-20120503.zip).


i got it from:

http://www.fonts2u.com/


At least on my ConTeXt installation, OpenType features aren't enabled by
default.


hard to believe

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] simple question on kerning activation

2012-11-27 Thread Wolfgang Schuster

Am 27.11.2012 um 20:34 schrieb Pablo Rodríguez :

> On 27/11/12 18:56, Hans Hagen wrote:
>> On 11/27/2012 6:36 PM, Pablo Rodríguez wrote:
>> I see lots of kerns in:
>> 
>> \starttext
>>   \startTEXpage[offset=10pt]
>>   \definedfont[file:freeserif.ttf*default] \showfontkerns \input 
>> ward
>>   \stopTEXpage
>> \stoptext
> 
> Well, I don't see any kern.
>> [...]
>> the font gets included .. so maybe someone else should also test it
>> 
>> are you sure that the font is okay? mine is 1.687.516 bytes
> 
> Probably my font is newer (from
> http://ftp.gnu.org/gnu/freefont/freefont-ttf-20120503.zip).
> 
> I think there is no file clash, since ConTeXt standalone doesn't provide the 
> font

The font files from the gnu page have no kerning but the files from
http://de.fonts2u.com/free-serif.schriftart have kerning information.

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] Find all words set into the margin

2012-11-27 Thread Hans Hagen

On 11/27/2012 8:22 PM, "H. Özoguz" wrote:

Am 27.11.2012 18:37, schrieb ntg-context-requ...@ntg.nl:

blue: natural width is larger than hsize
green: natural width is smaller than hsize
magenta: natural width is smaller than hsize (raggedright)
cyan: natural width is smaller than hsize (raggedleft)
yellow: natural width is smaller than hsize (raggedcenter)
red: probably bad news

I'm pretty sure that in a year or so I've forgotten about (as I already
had forgotten about some experimental early luatex code doing something
similar).

Thanks, thats quite nice. Is it pirincipal possible to programm this
macro I am looking for, which lists all "reds" (in your gimmick) in a
TOC with pagenumbers? (I am not asking you to do that, just curious,
maybe I want to programm some macro myself one day, not only getting
gifts from you and all other programmers :))


sure that's possible but not now

(just run your docs with \setupalign[verytolerant,stretch] and you're 
okay in most cases)


-
  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] simple question on kerning activation

2012-11-27 Thread Pablo Rodríguez
On 27/11/12 18:56, Hans Hagen wrote:
> On 11/27/2012 6:36 PM, Pablo Rodríguez wrote:
> I see lots of kerns in:
>
> \starttext
>\startTEXpage[offset=10pt]
>\definedfont[file:freeserif.ttf*default] \showfontkerns \input 
> ward
>\stopTEXpage
> \stoptext

 Well, I don't see any kern.
> [...]
> the font gets included .. so maybe someone else should also test it
> 
> are you sure that the font is okay? mine is 1.687.516 bytes

Probably my font is newer (from
http://ftp.gnu.org/gnu/freefont/freefont-ttf-20120503.zip).

I think there is no file clash, since ConTeXt standalone doesn't provide
the font

> btw, the font has kerns (gpos feature using classes)
> 
> mtxrun --script font --save freeserif.ttf
> 
> shows the internals (in a lua file)
> 
> mtxrun --script font --list --info --file freeserif.ttf
> 
> shows all features

Well, I know that the font has kern as OpenType feature, but I need it
to have the TrueType kern table (not the OpenType feature).

At least on my ConTeXt installation, OpenType features aren't enabled by
default.

I used ConTeXt to check the font wrong kerns that my ereader (Sony
PRS-T1) showed with this font.

Many thanks for your help,


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

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


[NTG-context] Find all words set into the margin

2012-11-27 Thread H. Özoguz

Am 27.11.2012 18:37, schrieb ntg-context-requ...@ntg.nl:

blue: natural width is larger than hsize
green: natural width is smaller than hsize
magenta: natural width is smaller than hsize (raggedright)
cyan: natural width is smaller than hsize (raggedleft)
yellow: natural width is smaller than hsize (raggedcenter)
red: probably bad news

I'm pretty sure that in a year or so I've forgotten about (as I already
had forgotten about some experimental early luatex code doing something
similar).
Thanks, thats quite nice. Is it pirincipal possible to programm this 
macro I am looking for, which lists all "reds" (in your gimmick) in a 
TOC with pagenumbers? (I am not asking you to do that, just curious, 
maybe I want to programm some macro myself one day, not only getting 
gifts from you and all other programmers :))


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] simple question on kerning activation

2012-11-27 Thread Hans Hagen

On 11/27/2012 6:36 PM, Pablo Rodríguez wrote:

On 27/11/12 18:04, Hans Hagen wrote:

I see lots of kerns in:

\starttext
   \startTEXpage[offset=10pt]
   \definedfont[file:freeserif.ttf*default] \showfontkerns \input ward
   \stopTEXpage
\stoptext


Well, I don't see any kern.


attached


Mine attached to (excluding source)


Using ConTeXt - 2012.11.26 13:31 + LuaTeX-0.70.1.

What is wrong here?


maybe the logs reveal something


BTW, on my computer fontconfig isn't able to find many system fonts. But
I guess this isn't the cause, since ConTeXt deals directly with the fonts.


the font gets included .. so maybe someone else should also test it


Many thanks for your help,


are you sure that the font is okay? mine is 1.687.516 bytes

btw, the font has kerns (gpos feature using classes)

mtxrun --script font --save freeserif.ttf

shows the internals (in a lua file)

mtxrun --script font --list --info --file freeserif.ttf

shows all features

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] simple question on kerning activation

2012-11-27 Thread luigi scarso
On Tue, Nov 27, 2012 at 6:46 PM, Pablo Rodríguez  wrote:
> On 27/11/12 18:42, luigi scarso wrote:
>> On Tue, Nov 27, 2012 at 6:36 PM, Pablo Rodríguez  wrote:
>>> \starttext
>>   \startTEXpage[offset=10pt]
>>   \definedfont[file:freeserif.ttf*default] \showfontkerns \input 
>> ward
>>   \stopTEXpage
>> \stoptext
>
>> this is mine
>
> Something must be wrong with my configuration, since i don't even get
> all kerns using the OT kern feature.
>
> Any ideas of what could be wrong?

hm, no.
In this situation I usually reinstall context on a new folder, or
rerun first-setup

--
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] simple question on kerning activation

2012-11-27 Thread Pablo Rodríguez
On 27/11/12 18:42, luigi scarso wrote:
> On Tue, Nov 27, 2012 at 6:36 PM, Pablo Rodríguez  wrote:
>> \starttext
>   \startTEXpage[offset=10pt]
>   \definedfont[file:freeserif.ttf*default] \showfontkerns \input 
> ward
>   \stopTEXpage
> \stoptext

> this is mine

Something must be wrong with my configuration, since i don't even get
all kerns using the OT kern feature.

Any ideas of what could be wrong?

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] simple question on kerning activation

2012-11-27 Thread luigi scarso
On Tue, Nov 27, 2012 at 6:36 PM, Pablo Rodríguez  wrote:
> \starttext
   \startTEXpage[offset=10pt]
   \definedfont[file:freeserif.ttf*default] \showfontkerns \input 
 ward
   \stopTEXpage
 \stoptext
>>>
this is mine


--
luigi


test-3.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] simple question on kerning activation

2012-11-27 Thread Pablo Rodríguez
On 27/11/12 18:04, Hans Hagen wrote:
>>> I see lots of kerns in:
>>>
>>> \starttext
>>>   \startTEXpage[offset=10pt]
>>>   \definedfont[file:freeserif.ttf*default] \showfontkerns \input 
>>> ward
>>>   \stopTEXpage
>>> \stoptext
>>
>> Well, I don't see any kern.
> 
> attached

Mine attached to (excluding source)

>> Using ConTeXt - 2012.11.26 13:31 + LuaTeX-0.70.1.
>>
>> What is wrong here?
> 
> maybe the logs reveal something

BTW, on my computer fontconfig isn't able to find many system fonts. But
I guess this isn't the cause, since ConTeXt deals directly with the fonts.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk


kern.tuc
Description: application/tamp-update-confirm


kern.pdf
Description: application/binary
(/opt/ctxbeta/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2012.11.26 13:31 MKIV  fmt: 2012.11.27  int: english/english

system  > cont-new.mkiv loaded
(/opt/ctxbeta/tex/texmf-context/tex/context/base/cont-new.mkiv
system  > beware: some patches loaded from cont-new.mkiv
)
system  > files > jobname: kern, input: kern, result: kern
fonts   > latin modern fonts are not preloaded
languages   > language en is active
(kern.tex{/opt/ctxbeta/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts   > preloading latin modern fonts (second stage)
fonts   > typescripts > unknown: library 'loc'
{/opt/ctxbeta/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/ctxbeta/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts   > fallback modern rm 12pt is loaded

% begin of command line arguments
%
% script   = true
% fulljobname  = ./kern.tex
% input= ./kern.tex
% no-parse-first-line  = true
% kindofrun= 2
% currentrun   = 3
%
% end of command line arguments

% begin of command line files
%
% 1  ./kern.tex
%
% end of command line files

visualize   > enabled
(/opt/ctxbeta/tex/texmf-context/tex/context/sample/ward.tex)
backend > xmp > using file '/opt/ctxbeta/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1
 ) )

system  > files > start used files

used files  >1: filename=cont-yes.mkiv | filetype=tex | foundname=/opt/ctxbeta/tex/texmf-context/tex/context/base/cont-yes.mkiv | usedmethod=database
used files  >2: filename=cont-new.mkiv | filetype=tex | foundname=/opt/ctxbeta/tex/texmf-context/tex/context/base/cont-new.mkiv | usedmethod=database
used files  >3: filename=lang-us.lua | filetype=lua | foundname=/opt/ctxbeta/tex/texmf-context/tex/context/patterns/lang-us.lua | usedmethod=database
used files  >4: filename=kern.tex | foundname=kern.tex | usedmethod=direct
used files  >5: filename=mkiv-base.map | filetype=map | format=map | foundname=/opt/ctxbeta/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map | usedmethod=database
used files  >6: filename=lm.lfg | filetype=tex | foundname=/opt/ctxbeta/tex/texmf-context/tex/context/fonts/lm.lfg | usedmethod=database
used files  >7: filename=lm-math.lfg | filetype=tex | foundname=/opt/ctxbeta/tex/texmf-context/tex/context/fonts/lm-math.lfg | usedmethod=database
used files  >8: filename=lm-math.map | filetype=map | format=map | foundname=/opt/ctxbeta/tex/texmf/fonts/map/dvips/lm/lm-math.map | usedmethod=database
used files  >9: filename=lm-rm.map | filetype=map | format=map | foundname=/opt/ctxbeta/tex/texmf/fonts/map/dvips/lm/lm-rm.map | usedmethod=database
used files  >   10: filename=lmroman12-regular | filetype=otf | format=otf | foundname=/opt/ctxbeta/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf | usedmethod=database
used files  >   11: filename=lmmath-regular.otf | filetype=opentypefonts | foundname=/opt/ctxbeta/tex/texmf/fonts/opentype/public/lm/lmmath-regular.otf | usedmethod=database
used files  >   12: filename=lmmath-regular.otf | filetype=otf | format=otf | foundname=/opt/ctxbeta/tex/texmf/fonts/opentype/public/lm/lmmath-regular.otf | usedmethod=database
used files  >   13: filename=/usr/share/fonts/ousia-fonts/FreeSerif.ttf | format=ttf | foundname=/usr/share/fonts/ousia-fonts/FreeSerif.ttf | usedmethod=direct
used files  >   14: filename=lmmonoltcond10-regular.otf | filetype=otf | format=otf | foundname=/opt/ctxbeta/tex/texmf/fonts/opentype/public/lm/lmmonoltcond10-regular.otf | usedmethod=database
used files  >   15: filename=ward | filetype=tex | foundname=/opt/ctxbeta/tex/texmf-context/tex/context/sample/ward.tex | usedmethod=database
used files  >   16: filename=lpdf-pdx.xml | filetype=tex | foundname=/opt/ctxbeta/tex/texmf-context/tex/context/base/lpdf-pdx.xml | usedmethod=database

system  > files > stop used files


system  > structure > start used structure

used structure  > text: kern

system  > structure > stop used structure


mkiv lua stats  > used config file  - selfaut

Re: [NTG-context] simple question on kerning activation

2012-11-27 Thread Pablo Rodríguez
On 27/11/12 00:11, Wolfgang Schuster wrote:
> [...]
> Is there a difference between the two lines?
> 
> \usemodule[simplefonts]
> \setmainfont[FreeSerif]
> \starttext
> \showfontkerns
> dadedidodufafefifofufrflftlalelilolutatetitotu\par
> {\definedfont[file:serif*default]dadedidodufafefifofufrflftlalelilolutatetitotu\par}
> \stoptext

No. None has any kerning.

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] simple question on kerning activation

2012-11-27 Thread Pablo Rodríguez
On 26/11/12 23:46, Hans Hagen wrote:
> [...]
> Sure, kern tables are used and are quite valid in open type as well 
> (open type includes truetype).
> 
> I see lots of kerns in:
> 
> \starttext
>  \startTEXpage[offset=10pt]
>  \definedfont[file:freeserif.ttf*default] \showfontkerns \input ward
>  \stopTEXpage
> \stoptext

Well, I don't see any kern.

Using ConTeXt - 2012.11.26 13:31 + LuaTeX-0.70.1.

What is wrong here?


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] Find all words set into the margin

2012-11-27 Thread Hans Hagen

On 11/27/2012 11:19 AM, Sietse Brouwer wrote:


* The log, like Luigi mentions, reports the source location of
overfull hboxes. This might help you at least a bit in finding the
output page.
Overfull \hbox (15.80962pt too wide) in paragraph at lines 1--25
\3>modern-designsize-12pt-rm-tf-0--0 par-al-lel, and|


i uploaded a beta with some gimmicks

\starttext

\showjustification

\showframe

{\notragged\input ward \blank}
{\raggedright  \input ward \blank}
{\raggedleft   \input ward \blank}
{\raggedcenter \input ward \blank}

{\hsize1cm \notragged x x xx xxx\par} \blank

\framed[width=10cm,align=middle]{test}

\stoptext

blue: natural width is larger than hsize
green: natural width is smaller than hsize
magenta: natural width is smaller than hsize (raggedright)
cyan: natural width is smaller than hsize (raggedleft)
yellow: natural width is smaller than hsize (raggedcenter)
red: probably bad news

I'm pretty sure that in a year or so I've forgotten about (as I already 
had forgotten about some experimental early luatex code doing something 
similar).


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] Long sectiontitle with line-break in index of contents

2012-11-27 Thread Wolfgang Schuster

Am 27.11.2012 um 12:06 schrieb H. Özoguz :

> Hi there,
> 
> today many questions :)
> 
> Look at this:
> 
> \starttext
> \completecontent
> \section[
> title={A very long title\par with a formatting in it}
> ]
> \stoptext
> 
> I have a case, where I want to have a line-break (\par) in the title in the 
> text (to avoid hyphenation) - but not in the index of contents - there it 
> should be simply like:

Use \\ and not \par to break the line in the header because in the TOC it’s 
handled as a space.

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] Long sectiontitle with line-break in index of contents

2012-11-27 Thread H. Özoguz

Hi there,

today many questions :)

Look at this:


\starttext

\completecontent

\section[

title={A very long title\par with a formatting in it}

]

\stoptext


I have a case, where I want to have a line-break (\par) in the title in 
the text (to avoid hyphenation) - but not in the index of contents - 
there it should be simply like:




\starttext

\completecontent

\section[

title={A very long title with a formatting in it}

]

\stoptext


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] fonts list

2012-11-27 Thread Sietse Brouwer
Hans wrote:
> it's more the reverse ... some flag give more info when --all is given i.e.
> --list triggers an action

Oh, then my text would be misleading. How about using this as the help text?


--all show all found instances
+ --all show all found instances (combine with other flags)
...
examples of searches:

+ mtxrun --script font --list --all
mtxrun --script font --list somename (== --pattern=*somename*)


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

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


Re: [NTG-context] Find all words set into the margin

2012-11-27 Thread Sietse Brouwer
Huseyin wrote:
>> Is there a command like "\showallmarginruns", which gives something like
>> this: "Margin runs on p. 34,67,101,145,204,298" - it may use somehow the
>> blocks of \version[temporary], that would be perfect for me.
>>
>> Could I make clear, what I am looking for (sorry for my leck of English)?

Yes, that is very clear. Your English is very good. I have no answer,
but some pointers:

* Printing these blocks is done by using the TeX primitive
\overfullrule (setting it to 5pt, specifically).

* Patrick Gundlach wrote a LuaTeX callback that changes the color of
the \overfullrule, but it uses the post_linebreak_filter callback, and
I don't know if the page number information is known yet at that
point.

* The log, like Luigi mentions, reports the source location of
overfull hboxes. This might help you at least a bit in finding the
output page.
Overfull \hbox (15.80962pt too wide) in paragraph at lines 1--25
\3>modern-designsize-12pt-rm-tf-0--0 par-al-lel, and|

Cheers,
-Sietse

On Tue, Nov 27, 2012 at 8:23 AM, luigi scarso  wrote:
> On Tue, Nov 27, 2012 at 7:36 AM, "H. Özoguz"  wrote:
>> Am 26.11.2012 18:01, schrieb ntg-context-requ...@ntg.nl:

 Is there a command or a macro to find all occurences in a file (or
 projekt),
 >where some word is printed into the margin? (Maybe because of bad
 >hyphenation or something else.) - Would be perfect for manual check-up
 > and
 >corrections!
>>>
>>> \version[temporary]
>>> prints blocks next to lines that run into the margin.
>>> http://wiki.contextgarden.net/Command/version
>>> Is that what you're looking for?
>>>
>>> --Sietse
>>
>>
>> Thanks for that! These black blocks are quite useful, but not as powerful,
>> as I am looking for.
>>
>> I am looking for a command, which builds a register of all occurences of
>> these blocks. Imagine I am working on a 300-page book, than I have to check
>> every single page for these margin-runs (f.e. after changing the layout),
>> with these black boxes its much easier, of course, but still a mess.
>>
>> Is there a command like "\showallmarginruns", which gives something like
>> this: "Margin runs on p. 34,67,101,145,204,298" - it may use somehow the
>> blocks of \version[temporary], that would be perfect for me.
>>
>> Could I make clear, what I am looking for (sorry for my leck of English)?
> Not an answer, but do you have seen the informations of the log ?
> ___
> 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
___

[NTG-context] Line break in header

2012-11-27 Thread H. Özoguz


Am 27.11.2012 10:36, schrieb ntg-context-requ...@ntg.nl:

A better solution is to provide a shorter text with the ?marking? key from 
\startsection.


Thanks Wolfgang and Luigi, I did not know that, that is of course the 
easiest and best solution!

___
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] Line break in header

2012-11-27 Thread Wolfgang Schuster

Am 27.11.2012 um 10:36 schrieb luigi scarso :

> On Tue, Nov 27, 2012 at 10:24 AM, Wolfgang Schuster
>  wrote:
>> 
>> Am 27.11.2012 um 10:11 schrieb luigi scarso :
>> 
>>> On Tue, Nov 27, 2012 at 10:04 AM, "H. Özoguz"  wrote:
 \setupheadertexts
 
 [] [{\getmarking[section]}]
 
 [][]
 
 
 \starttext
 
 \section{This is a very long section title, and so, clearly, it does not 
 fit
 in one line, definitely not, absolutely no change. Without line break not
 possible.}
 
 \stoptext
>>> 
>>> Hm, I dont' understand clearly what you want (the title is ok for me), […]
>> 
>> The headertext isn’t broken into lines.
> ah now I see -- the headertext .
> 
> Hm, you can try a temp. patch
> 
> \showframe
> \setupheadertexts[][\vbox{\hsize=0.45\textwidth\getmarking[section]}][][]

Or use a customized frame:

\defineframed[headerframed][frame=off,width=.45\textwidth,align=normal,offset=0pt,location=bottom]

\setupheadertexts
  [][\headerframed{\getmarking[section]}]
  [][]

> There is a macro to make a shortert title, but
> a shorter text with the “marking” key from \startsection
> is better, of course

No need for a macro, it’s available as a option for \setupheader.

\setupheader[width=6cm]

\setupheadertexts
  [][section]
  [][]

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] Line break in header

2012-11-27 Thread luigi scarso
On Tue, Nov 27, 2012 at 10:24 AM, Wolfgang Schuster
 wrote:
>
> Am 27.11.2012 um 10:11 schrieb luigi scarso :
>
>> On Tue, Nov 27, 2012 at 10:04 AM, "H. Özoguz"  wrote:
>>> \setupheadertexts
>>>
>>> [] [{\getmarking[section]}]
>>>
>>> [][]
>>>
>>>
>>> \starttext
>>>
>>> \section{This is a very long section title, and so, clearly, it does not fit
>>> in one line, definitely not, absolutely no change. Without line break not
>>> possible.}
>>>
>>> \stoptext
>>
>> Hm, I dont' understand clearly what you want (the title is ok for me), […]
>
> The headertext isn’t broken into lines.
ah now I see -- the headertext .

Hm, you can try a temp. patch

\showframe
\setupheadertexts[][\vbox{\hsize=0.45\textwidth\getmarking[section]}][][]


\starttext

\section{This is a very long section title, and so, clearly, it does
not fit in one line, definitely not, absolutely no change. Without
line break not possible.}

\dorecurse{100}{\input knuth }
\stoptext

There is a macro to make a shortert title, but
a shorter text with the “marking” key from \startsection
is better, of course
___
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] toppath

2012-11-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... I'd need to refer to a file from within a file, not in via '--path' 
option...

My case is more complicated - a file is included from more other files in 
various directory levels.

BTW: I was also thinking about \processedfile 
(http://wiki.contextgarden.net/Command/processedfile) and about splitting it 
(taking the part up to the last / or \) but \processedfile gives nothing - try:


\enabletrackers[resolvers]

\starttext
  T

  \processedfile

  %\input toppath:/t-Hello.mkiv
\stoptext


Lukas


On Tue, 27 Nov 2012 09:44:08 +0100, Hans Hagen  wrote:


On 11/27/2012 8:43 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

there was a discussion about 'toppath' or 'pathrelativetome'.

Is 'toppath:' prefix working?

Or what other way is to refer to the path of the current file (i.e. the
file I'm referring from)?

The following code doesn't work - "t-Hello.mkiv" is not found although
it's located in the same directory as "t-TopPath.mkiv"; the
"t-TopPath.mkiv" is compiled from ONE LEVEL UP.

So e.g. let's have:

c:\Lukas\ConTeXt\Test\t-TopPath.mkiv
c:\Lukas\ConTeXt\Test\t-Hello.mkiv

and let's switch to current (working) directory to:

c:\Lukas\ConTeXt

and call:

context.exe Test\t-TopPath.mkiv

In this situation compilation fails.

How to make it work?


mtxrun --path=Test --script context t-TopPath.mkiv

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




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


Re: [NTG-context] Line break in header

2012-11-27 Thread Wolfgang Schuster

Am 27.11.2012 um 10:11 schrieb luigi scarso :

> On Tue, Nov 27, 2012 at 10:04 AM, "H. Özoguz"  wrote:
>> \setupheadertexts
>> 
>> [] [{\getmarking[section]}]
>> 
>> [][]
>> 
>> 
>> \starttext
>> 
>> \section{This is a very long section title, and so, clearly, it does not fit
>> in one line, definitely not, absolutely no change. Without line break not
>> possible.}
>> 
>> \stoptext
> 
> Hm, I dont' understand clearly what you want (the title is ok for me), […]

The headertext isn’t broken into lines.

\defineframed[headerframed][frame=off,width=max,align=normal]

\setupheadertexts
  [][\headerframed{\getmarking[section]}]
  [][]

A better solution is to provide a shorter text with the “marking” key from 
\startsection.

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] Line break in header

2012-11-27 Thread luigi scarso
On Tue, Nov 27, 2012 at 10:04 AM, "H. Özoguz"  wrote:
> \setupheadertexts
>
> [] [{\getmarking[section]}]
>
> [][]
>
>
> \starttext
>
> \section{This is a very long section title, and so, clearly, it does not fit
> in one line, definitely not, absolutely no change. Without line break not
> possible.}
>
> \stoptext

Hm, I dont' understand clearly what you want (the title is ok for me),
but you can try
\setupheadertexts

[] [{\getmarking[section]}]

[][]


\starttext

\section{This is a very long section title, and so, clearly,\\ it does
not fit in one line, definitely not,\\ absolutely no change. Without
line break not possible.}

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

[NTG-context] Line break in header

2012-11-27 Thread H. Özoguz

How to allow line break in headers, to achieve not margined header-texts?


\setupheadertexts

[] [{\getmarking[section]}]

[][]


\starttext

\section{This is a very long section title, and so, clearly, it does not 
fit in one line, definitely not, absolutely no change. Without line 
break not possible.}


\stoptext

+++

Thanks
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] toppath

2012-11-27 Thread Hans Hagen

On 11/27/2012 8:43 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

there was a discussion about 'toppath' or 'pathrelativetome'.

Is 'toppath:' prefix working?

Or what other way is to refer to the path of the current file (i.e. the
file I'm referring from)?

The following code doesn't work - "t-Hello.mkiv" is not found although
it's located in the same directory as "t-TopPath.mkiv"; the
"t-TopPath.mkiv" is compiled from ONE LEVEL UP.

So e.g. let's have:

c:\Lukas\ConTeXt\Test\t-TopPath.mkiv
c:\Lukas\ConTeXt\Test\t-Hello.mkiv

and let's switch to current (working) directory to:

c:\Lukas\ConTeXt

and call:

context.exe Test\t-TopPath.mkiv

In this situation compilation fails.

How to make it work?


mtxrun --path=Test --script context t-TopPath.mkiv

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