Re: [NTG-context] Type-setting filenames

2008-09-18 Thread Hans Hagen
Wolfgang Schuster wrote:
> On Thu, Sep 18, 2008 at 11:09 AM, Hans Hagen <[EMAIL PROTECTED]> wrote:
>> [EMAIL PROTECTED] wrote:
> I am using \filename to type-set filenames.  Some of these are very
> long
> (greater than 30 characters) and overhang
> the right hand margin, sometimes even disappearing off the edge of the
> page.  The first line break is just before the
> full stop.  There are usually plenty of spaces in the names.  Can I
> get
> ConTeXt to put a line-break into filenames?
 Did you try \hyphenatedfilename ?
>>> Yes, I tried that, no difference.  I presume that \hyphenatedfilename is
>>> for use with filenames that already have hyphens in them?
>>> Mine don't, but I want them to split.  Perhaps splitting filenames is
>>> frowned upon - if so, what is the best way to put them into documents?
>>> Or perhaps I should use shorter filenames, but why should I compromise
>>> readability?  One example is "Transfer functions for PID and KF
>>> controllers.xmcd"
>>>
>>> Any ideas or comments?
>> \def\myfilename#1{{\spaceskip.25em plus
>> 1em\relax\tttf\normallanguage\zerocount#1}}
>>
>> \myfilename{Transfer functions for PID and KF controllers.xmcd}
>> \myfilename{Transfer functions for PID and KF controllers.xmcd}
>> \myfilename{Transfer functions for PID and KF controllers.xmcd}
>> \myfilename{Transfer functions for PID and KF controllers.xmcd}
> 
> Why do you use the language trick and not just \nohyphens?

because of a bug in luatex -)


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Type-setting filenames

2008-09-18 Thread richard . stephens

> \def\myfilename#1{{\spaceskip.25em plus
1em\relax\tttf\normallanguage\zerocount#1}}
>
> \myfilename{Transfer functions for PID and KF controllers.xmcd}
> \myfilename{Transfer functions for PID and KF controllers.xmcd}
> \myfilename{Transfer functions for PID and KF controllers.xmcd}
> \myfilename{Transfer functions for PID and KF controllers.xmcd}

That works brilliantly (I've no idea why through).  Thanks Hans

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Type-setting filenames

2008-09-18 Thread Wolfgang Schuster
On Thu, Sep 18, 2008 at 11:09 AM, Hans Hagen <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
 I am using \filename to type-set filenames.  Some of these are very
 long
 (greater than 30 characters) and overhang
 the right hand margin, sometimes even disappearing off the edge of the
 page.  The first line break is just before the
 full stop.  There are usually plenty of spaces in the names.  Can I
 get
 ConTeXt to put a line-break into filenames?
>>> Did you try \hyphenatedfilename ?
>>
>> Yes, I tried that, no difference.  I presume that \hyphenatedfilename is
>> for use with filenames that already have hyphens in them?
>> Mine don't, but I want them to split.  Perhaps splitting filenames is
>> frowned upon - if so, what is the best way to put them into documents?
>> Or perhaps I should use shorter filenames, but why should I compromise
>> readability?  One example is "Transfer functions for PID and KF
>> controllers.xmcd"
>>
>> Any ideas or comments?
> \def\myfilename#1{{\spaceskip.25em plus
> 1em\relax\tttf\normallanguage\zerocount#1}}
>
> \myfilename{Transfer functions for PID and KF controllers.xmcd}
> \myfilename{Transfer functions for PID and KF controllers.xmcd}
> \myfilename{Transfer functions for PID and KF controllers.xmcd}
> \myfilename{Transfer functions for PID and KF controllers.xmcd}

Why do you use the language trick and not just \nohyphens?

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Type-setting filenames

2008-09-18 Thread Hans Hagen
[EMAIL PROTECTED] wrote:
>>> I am using \filename to type-set filenames.  Some of these are very
>>> long
>>> (greater than 30 characters) and overhang
>>> the right hand margin, sometimes even disappearing off the edge of the
>>> page.  The first line break is just before the
>>> full stop.  There are usually plenty of spaces in the names.  Can I
>>> get
>>> ConTeXt to put a line-break into filenames?
>> Did you try \hyphenatedfilename ?
> 
> Yes, I tried that, no difference.  I presume that \hyphenatedfilename is
> for use with filenames that already have hyphens in them?
> Mine don't, but I want them to split.  Perhaps splitting filenames is
> frowned upon - if so, what is the best way to put them into documents?
> Or perhaps I should use shorter filenames, but why should I compromise
> readability?  One example is "Transfer functions for PID and KF
> controllers.xmcd"
> 
> Any ideas or comments?
\def\myfilename#1{{\spaceskip.25em plus 
1em\relax\tttf\normallanguage\zerocount#1}}

\myfilename{Transfer functions for PID and KF controllers.xmcd}
\myfilename{Transfer functions for PID and KF controllers.xmcd}
\myfilename{Transfer functions for PID and KF controllers.xmcd}
\myfilename{Transfer functions for PID and KF controllers.xmcd}


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Type-setting filenames

2008-09-18 Thread richard . stephens

>> I am using \filename to type-set filenames.  Some of these are very
>> long
>> (greater than 30 characters) and overhang
>> the right hand margin, sometimes even disappearing off the edge of the
>> page.  The first line break is just before the
>> full stop.  There are usually plenty of spaces in the names.  Can I
>> get
>> ConTeXt to put a line-break into filenames?
>
> Did you try \hyphenatedfilename ?

Yes, I tried that, no difference.  I presume that \hyphenatedfilename is
for use with filenames that already have hyphens in them?
Mine don't, but I want them to split.  Perhaps splitting filenames is
frowned upon - if so, what is the best way to put them into documents?
Or perhaps I should use shorter filenames, but why should I compromise
readability?  One example is "Transfer functions for PID and KF
controllers.xmcd"

Any ideas or comments?

Richard

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Type-setting filenames

2008-09-17 Thread Thomas A. Schmitz

On Sep 17, 2008, at 4:20 PM, [EMAIL PROTECTED] wrote:

> I am using \filename to type-set filenames.  Some of these are very   
> long
> (greater than 30 characters) and overhang
> the right hand margin, sometimes even disappearing off the edge of the
> page.  The first line break is just before the
> full stop.  There are usually plenty of spaces in the names.  Can I  
> get
> ConTeXt to put a line-break into filenames?

Did you try \hyphenatedfilename ?

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Type-setting filenames

2008-09-17 Thread richard . stephens

I am using \filename to type-set filenames.  Some of these are very  long
(greater than 30 characters) and overhang
the right hand margin, sometimes even disappearing off the edge of the
page.  The first line break is just before the
full stop.  There are usually plenty of spaces in the names.  Can I get
ConTeXt to put a line-break into filenames?

Thanks,

Richard

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Type-setting filenames

2008-06-25 Thread Wolfgang Schuster
On Wed, Jun 25, 2008 at 11:03 AM,  <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Can anyone suggest a good way of type-setting filenames in ConTeXt?  They
> are usually long with few spaces and so often overhang the right-hand margin
> and even fall off the edge of the page.  They also often include backslashes
> and underscores which I have to manually change - very tedious.
>
> Is there, for example, a command which handles some or all of my problems?

\filename{...} or \hyphenatedfilename{...}

Regards
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Type-setting filenames

2008-06-25 Thread richard . stephens
Hello,

Can anyone suggest a good way of type-setting filenames in ConTeXt?  They 
are usually long with few spaces and so often overhang the right-hand 
margin and even fall off the edge of the page.  They also often include 
backslashes and underscores which I have to manually change - very 
tedious.

Is there, for example, a command which handles some or all of my problems?

Thanks

Richard
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___