ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* letter module: no linebreak in signature
@ 2008-11-18 16:47 Michael Green
  2008-11-18 17:53 ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Green @ 2008-11-18 16:47 UTC (permalink / raw)
  To: ntg-context

Using Wolfgang Schuster's wonderful letter module, I enter my  
signature with my name and title like so:

\setupletter[signature={Michael Green \\ Assistant Professor of  
Philosophy}]

This used to produce a line break between "Green" and "Assistant" so  
the output would look like this:

Michael Green
Assistant Professor of Philosophy

But it no longer does. Now it comes out like this:

Michael Green  Assistant Professor of Philosophy

Is there a preferred way to accomplish the effect I want?

Thanks!

Michael

----------  Example  --------------------------------

ConTeXt  ver: 2008.11.10 21:40 MKIV  fmt: 2008.11.17  int: english/ 
english

\setuppapersize[letter][letter]

\usemodule[letter][style=semiblock]
\setupletter[%
  closing={Sincerely yours,},
  signature={Michael Green \\ Assistant Professor of Philosophy},
  date=\currentdate
]

\setupletter[%
  opening={To the Addressee,},
]

\starttext

\startletter

Here is the content of the letter.
\stopletter
\stoptext

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

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: letter module: no linebreak in signature
  2008-11-18 16:47 letter module: no linebreak in signature Michael Green
@ 2008-11-18 17:53 ` Wolfgang Schuster
  2008-11-19 17:06   ` Unicode Characters Erich R Fickel
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2008-11-18 17:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 18.11.2008 um 17:47 schrieb Michael Green:

> Using Wolfgang Schuster's wonderful letter module, I enter my
> signature with my name and title like so:
>
> \setupletter[signature={Michael Green \\ Assistant Professor of
> Philosophy}]
>
> This used to produce a line break between "Green" and "Assistant" so
> the output would look like this:
>
> Michael Green
> Assistant Professor of Philosophy
>
> But it no longer does. Now it comes out like this:
>
> Michael Green  Assistant Professor of Philosophy
>
> Is there a preferred way to accomplish the effect I want?

I uploaded a new version, if you have no time update for
the moment use \crlf as replacement.

> Thanks!
>
> Michael
>
> ----------  Example  --------------------------------
>
> ConTeXt  ver: 2008.11.10 21:40 MKIV  fmt: 2008.11.17  int: english/
> english
>
> \setuppapersize[letter][letter]

Do you need lettersize for all your letters?

> \usemodule[letter][style=semiblock]
> \setupletter[%
>  closing={Sincerely yours,},
>  signature={Michael Green \\ Assistant Professor of Philosophy},
>  date=\currentdate
> ]
>
> \setupletter[%
>  opening={To the Addressee,},
> ]
>
> \starttext
>
> \startletter
>
> Here is the content of the letter.
> \stopletter
> \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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Unicode Characters
  2008-11-18 17:53 ` Wolfgang Schuster
@ 2008-11-19 17:06   ` Erich R Fickel
  2008-11-19 18:52     ` Arthur Reutenauer
  0 siblings, 1 reply; 10+ messages in thread
From: Erich R Fickel @ 2008-11-19 17:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I am trying to insert unicode charater 217D (a cross) into a line of 
text. I cannot figure out how to do it, or if it can be done. I use mkii 
but could be convinced to move to mkiv if necessary.

-Erich Fickel
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Unicode Characters
  2008-11-19 17:06   ` Unicode Characters Erich R Fickel
@ 2008-11-19 18:52     ` Arthur Reutenauer
  2008-11-20 14:16       ` Erich R Fickel
  0 siblings, 1 reply; 10+ messages in thread
From: Arthur Reutenauer @ 2008-11-19 18:52 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

> I am trying to insert unicode charater 217D (a cross) into a line of 
> text. I cannot figure out how to do it, or if it can be done.

  You probably mean U+217D, not U+271D.

  This is one of the famous Zapf dingbats, available in dedicated fonts;
you don't really need Unicode fonts in order to typeset it.  Try the
instructions by Adam Lindsay
(http://web.archive.org/web/20061130021250/homepage.mac.com/atl/tex/ZapfDingbats.pdf)

  An alternative with Mark IV: just find a font that contains that
character.  You can look for it with BabelPad on Windows /
UnicodeChecker on Mac OS / gucharmap on Linux.  Then, just use the font
with the \definefont command.

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Unicode Characters
  2008-11-19 18:52     ` Arthur Reutenauer
@ 2008-11-20 14:16       ` Erich R Fickel
  2008-11-20 15:01         ` Arthur Reutenauer
  2008-11-20 23:53         ` Wolfgang Schuster
  0 siblings, 2 replies; 10+ messages in thread
From: Erich R Fickel @ 2008-11-20 14:16 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

 > This is one of the famous Zapf dingbats, available in dedicated fonts;
 > you don't really need Unicode fonts in order to typeset it.
 > Try the instructions by Adam Lindsay
 >
 >http://web.archive.org/web/20061130021250/homepage.mac.com/atl/tex/ZapfDingbats.pdf)

Thank you for the very quick answer. I read Mr. Lindsay's instruction. 
It worked, and quite easily. I also tried to just use the character in 
mkiv. That didn't work. However, in mkii, I tried the following:

\usesymbols[uzd]
\definecharacter crosssign    {\uchar{39}{29}}
\starttext

Here is the \crosssign\ in a sentence.

\stoptext

That worked too, and seems easier.

I would like to figure it out it mkiv as well. I type the character in 
VIM, but it showed up as a space in the PDF.

-Erich

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Unicode Characters
  2008-11-20 14:16       ` Erich R Fickel
@ 2008-11-20 15:01         ` Arthur Reutenauer
  2008-11-20 23:53         ` Wolfgang Schuster
  1 sibling, 0 replies; 10+ messages in thread
From: Arthur Reutenauer @ 2008-11-20 15:01 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

> I would like to figure it out it mkiv as well.

  Can you send a precise example, specifying in particular the font you use?

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Unicode Characters
  2008-11-20 14:16       ` Erich R Fickel
  2008-11-20 15:01         ` Arthur Reutenauer
@ 2008-11-20 23:53         ` Wolfgang Schuster
  1 sibling, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2008-11-20 23:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 20.11.2008 um 15:16 schrieb Erich R Fickel:

>> This is one of the famous Zapf dingbats, available in dedicated  
>> fonts;
>> you don't really need Unicode fonts in order to typeset it.
>> Try the instructions by Adam Lindsay
>>
>> http://web.archive.org/web/20061130021250/homepage.mac.com/atl/tex/ZapfDingbats.pdf)
>
> Thank you for the very quick answer. I read Mr. Lindsay's instruction.
> It worked, and quite easily. I also tried to just use the character in
> mkiv. That didn't work. However, in mkii, I tried the following:
>
> \usesymbols[uzd]
> \definecharacter crosssign    {\uchar{39}{29}}
> \starttext
>
> Here is the \crosssign\ in a sentence.
>
> \stoptext
>
> That worked too, and seems easier.
>
> I would like to figure it out it mkiv as well. I type the character in
> VIM, but it showed up as a space in the PDF.

\def\crosssign{\utfchar{"271D}}

You need only a font the symbol, if you have one there are different
ways to use it.


The simple solution:

\definefont[unicode][name:unicodesymbols*default]

\def\crosssign{\utfchar{"271D}}

\starttext

text {\unicode\crosssign} text

\stoptext

You can also include the font in the defintion of \crosssign.


The advanced solution:

\def\crosssign{\utfchar{"271D}}

\definefontsynonym[UnicodeSymbols][name:unicodesymbols*default]

\definefontfallback[symbols][UnicodeSymbols][dingbats]

\starttypescript [serif] [mine]
   \definefontsynonym [Serif] [TeXGyrePagella-Regular]  
[fallbacks=symbols]
\stoptypescript

\definetypeface [mine] [rm] [serif] [mine] [default]

\setupbodyfont[mine]

\starttext

text \crosssign\ text

\stoptext

You need a few more lines for the setup because you need
a new typescript.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: letter module: no linebreak in signature
@ 2008-11-19 13:51 Michael Green
  0 siblings, 0 replies; 10+ messages in thread
From: Michael Green @ 2008-11-19 13:51 UTC (permalink / raw)
  To: ntg-context

Wolfgang Schuster wrote:

> You can write the setting for the paper size in a new file with
> the namer user.nls and put it somewhere in your TeX directory
> where ConTeXt could find it. It's similiar to cont-usr.tex because
> my module loads for every letter you write.


Ah, I see. That's an interesting feature. Thanks!

Michael

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: letter module: no linebreak in signature
  2008-11-19  1:54 ` letter module: no linebreak in signature Michael Green
@ 2008-11-19  8:57   ` Wolfgang Schuster
  0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2008-11-19  8:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 19.11.2008 um 02:54 schrieb Michael Green:

>>> \setuppapersize[letter][letter]
>>
>> Do you need lettersize for all your letters?
>>
>
> Yes, I have to use US lettersize paper (8.5 inches x 11 inches) for
> the physical paper on which my letters are printed. For long letters,
> I use a narrower textarea, but I don't think that's what you're
> asking me.

You can write the setting for the paper size in a new file with
the namer user.nls and put it somewhere in your TeX directory
where ConTeXt could find it. It's similiar to cont-usr.tex because
my module loads for every letter you write.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: letter module: no linebreak in signature
       [not found] <mailman.1748.1227033971.31525.ntg-context@ntg.nl>
@ 2008-11-19  1:54 ` Michael Green
  2008-11-19  8:57   ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Green @ 2008-11-19  1:54 UTC (permalink / raw)
  To: ntg-context


On Nov 18, 2008, at 10:46 AM, Wolfgang Schuster wrote:
>
>
> Am 18.11.2008 um 17:47 schrieb Michael Green:
>
>> Using Wolfgang Schuster's wonderful letter module, I enter my
>> signature with my name and title like so:
>>
>> \setupletter[signature={Michael Green \\ Assistant Professor of
>> Philosophy}]
>>
>> This used to produce a line break between "Green" and "Assistant" so
>> the output would look like this:
>>
>> Michael Green
>> Assistant Professor of Philosophy
>>
>> But it no longer does. Now it comes out like this:
>>
>> Michael Green  Assistant Professor of Philosophy
>>
>> Is there a preferred way to accomplish the effect I want?
>
> I uploaded a new version, if you have no time update for
> the moment use \crlf as replacement.
>

Wow, that was incredibly fast. Thank you very much! The new version  
works as I expected.

>>
>> ----------  Example  --------------------------------
>>
>> ConTeXt  ver: 2008.11.10 21:40 MKIV  fmt: 2008.11.17  int: english/
>> english
>>
>> \setuppapersize[letter][letter]
>
> Do you need lettersize for all your letters?
>

Yes, I have to use US lettersize paper (8.5 inches x 11 inches) for  
the physical paper on which my letters are printed. For long letters,  
I use a narrower textarea, but I don't think that's what you're  
asking me.

Thanks again.

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-11-20 23:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-18 16:47 letter module: no linebreak in signature Michael Green
2008-11-18 17:53 ` Wolfgang Schuster
2008-11-19 17:06   ` Unicode Characters Erich R Fickel
2008-11-19 18:52     ` Arthur Reutenauer
2008-11-20 14:16       ` Erich R Fickel
2008-11-20 15:01         ` Arthur Reutenauer
2008-11-20 23:53         ` Wolfgang Schuster
     [not found] <mailman.1748.1227033971.31525.ntg-context@ntg.nl>
2008-11-19  1:54 ` letter module: no linebreak in signature Michael Green
2008-11-19  8:57   ` Wolfgang Schuster
2008-11-19 13:51 Michael Green

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).