* apostrophe in a verbatim enviroment
@ 2008-11-06 19:46 Alan Bowen
2008-11-06 23:14 ` Aditya Mahajan
0 siblings, 1 reply; 5+ messages in thread
From: Alan Bowen @ 2008-11-06 19:46 UTC (permalink / raw)
To: mailing ConTeXt users list for
Is it possible to get an apostrophe to typeset as a vertical mark
( ' ) rather than a curved mark ( ’ ) when using \starttyping and
MKII? I am trying to get the old “typewriter” look for a brief stretch
of text.
Alan
___________________________________________________________________________________
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] 5+ messages in thread
* Re: apostrophe in a verbatim enviroment
2008-11-06 19:46 apostrophe in a verbatim enviroment Alan Bowen
@ 2008-11-06 23:14 ` Aditya Mahajan
2008-11-07 13:33 ` Alan Bowen
0 siblings, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2008-11-06 23:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 447 bytes --]
On Thu, 6 Nov 2008, Alan Bowen wrote:
> Is it possible to get an apostrophe to typeset as a vertical mark
> ( ' ) rather than a curved mark ( ’ ) when using \starttyping and
> MKII? I am trying to get the old “typewriter” look for a brief stretch
> of text.
See
http://archive.contextgarden.net/message/20060913.020414.752ac0bd.en.html
for a possible solution. See Taco's and Hans's mails in the thread for
other options.
Aditya
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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] 5+ messages in thread
* Re: apostrophe in a verbatim enviroment
2008-11-06 23:14 ` Aditya Mahajan
@ 2008-11-07 13:33 ` Alan Bowen
2008-11-07 15:45 ` Taco Hoekwater
0 siblings, 1 reply; 5+ messages in thread
From: Alan Bowen @ 2008-11-07 13:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
Thanks, Aditya. This is a good start. The problem is that I need this
to work with \starttyping...\stoptyping because there are spacing and
line-breaking issues as well.
Right now:
\starttext
\catcode`'=\active
\def'{\raise.6em\hbox{\char13}}
\starttyping
202'906
202'096
\stoptyping
\tt
202'906
202'096
\stoptext
gives me the layout I want or the apostrophe (char13) I need, but not
both at the same time.
On Nov 6, 2008, at 18;14,51 , Aditya Mahajan wrote:
> On Thu, 6 Nov 2008, Alan Bowen wrote:
>
>> Is it possible to get an apostrophe to typeset as a vertical mark
>> ( ' ) rather than a curved mark ( ’ ) when using \starttyping and
>> MKII? I am trying to get the old “typewriter” look for a brief
>> stretch
>> of text.
>
> See http://archive.contextgarden.net/message/20060913.020414.752ac0bd.en.html
>
> for a possible solution. See Taco's and Hans's mails in the thread
> for other options.
>
> Aditya___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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] 5+ messages in thread
* Re: apostrophe in a verbatim enviroment
2008-11-07 13:33 ` Alan Bowen
@ 2008-11-07 15:45 ` Taco Hoekwater
2008-11-07 16:16 ` Alan Bowen
0 siblings, 1 reply; 5+ messages in thread
From: Taco Hoekwater @ 2008-11-07 15:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
Alan Bowen wrote:
> Thanks, Aditya. This is a good start. The problem is that I need this
> to work with \starttyping...\stoptyping because there are spacing and
> line-breaking issues as well.
>
> Right now:
>
> \starttext
> \catcode`'=\active
> \def'{\raise.6em\hbox{\char13}}
You can add this line to make \starttyping work:
\appendtoks \catcode`'=\active \to\everysetupverbatim
And a (perhaps unneeded) hint: if you don't want a perpetually
active ', the two lines above can be written as:
\begingroup
\catcode`'=\active
\gdef'{\raise.6em\hbox{\char13}}
\endgroup
Best wishes,
Taco
___________________________________________________________________________________
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] 5+ messages in thread
* Re: apostrophe in a verbatim enviroment
2008-11-07 15:45 ` Taco Hoekwater
@ 2008-11-07 16:16 ` Alan Bowen
0 siblings, 0 replies; 5+ messages in thread
From: Alan Bowen @ 2008-11-07 16:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
Many thanks, Taco, that works perfectly. I have been typesetting this
book for my brother and that was the last knot to be untied before
sending it off.
Very best, Alan
PS Your tact in phrasing your hint is also much appreciated! 8-)
On Nov 7, 2008, at 10;45,46 , Taco Hoekwater wrote:
>
>
> Alan Bowen wrote:
>> Thanks, Aditya. This is a good start. The problem is that I need this
>> to work with \starttyping...\stoptyping because there are spacing and
>> line-breaking issues as well.
>>
>> Right now:
>>
>> \starttext
>> \catcode`'=\active
>> \def'{\raise.6em\hbox{\char13}}
>
> You can add this line to make \starttyping work:
>
> \appendtoks \catcode`'=\active \to\everysetupverbatim
>
> And a (perhaps unneeded) hint: if you don't want a perpetually
> active ', the two lines above can be written as:
>
> \begingroup
> \catcode`'=\active
> \gdef'{\raise.6em\hbox{\char13}}
> \endgroup
>
>
> Best wishes,
> Taco
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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] 5+ messages in thread
end of thread, other threads:[~2008-11-07 16:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-06 19:46 apostrophe in a verbatim enviroment Alan Bowen
2008-11-06 23:14 ` Aditya Mahajan
2008-11-07 13:33 ` Alan Bowen
2008-11-07 15:45 ` Taco Hoekwater
2008-11-07 16:16 ` Alan Bowen
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).