ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \tt in \hyphenatedurl?
@ 2014-04-26 22:15 Pablo Rodriguez
  2014-04-27 19:04 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez @ 2014-04-26 22:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I have the following sample:

\starttext
The wiki located at
\useURL[url1][http://wiki.contextgarden.net][][\hyphenatedurl{http://wiki.contextgarden.net}]\from[url1].
\stoptext

This is actually ConTeXt output generated from pandoc.

Is there any way to have \hyphenatedrul with \tt and *without* editing
the text itself? (Since this is automatically generated output, it makes
no sense having to edit it.)

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
___________________________________________________________________________________


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

* Re: \tt in \hyphenatedurl?
  2014-04-26 22:15 \tt in \hyphenatedurl? Pablo Rodriguez
@ 2014-04-27 19:04 ` Wolfgang Schuster
  2014-04-28 19:30   ` Pablo Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2014-04-27 19:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 27.04.2014 um 00:15 schrieb Pablo Rodriguez <oinos@gmx.es>:

> Dear list,
> 
> I have the following sample:
> 
> \starttext
> The wiki located at
> \useURL[url1][http://wiki.contextgarden.net][][\hyphenatedurl{http://wiki.contextgarden.net}]\from[url1].
> \stoptext
> 
> This is actually ConTeXt output generated from pandoc.
> 
> Is there any way to have \hyphenatedrul with \tt and *without* editing
> the text itself? (Since this is automatically generated output, it makes
> no sense having to edit it.)

When you omit the fourth argument for \useurl you can change the style and color for the url with the \setupurl command, it would even be split at page breaks because context already uses the \hyphenatedurl command in this case.

\setupurl[style=mono,color=red]

\starttext
The wiki located at \useURL[url1][http://wiki.contextgarden.net]\from[url1].
\stoptext

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

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


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

* Re: \tt in \hyphenatedurl?
  2014-04-27 19:04 ` Wolfgang Schuster
@ 2014-04-28 19:30   ` Pablo Rodriguez
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez @ 2014-04-28 19:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 04/27/2014 09:04 PM, Wolfgang Schuster wrote:
> Am 27.04.2014 um 00:15 schrieb Pablo Rodriguez:
> 
>> Is there any way to have \hyphenatedrul with \tt and *without* editing
>> the text itself? (Since this is automatically generated output, it makes
>> no sense having to edit it.)
> 
> When you omit the fourth argument for \useurl you can change the
> style and color for the url with the \setupurl command, it would even
> be split at page breaks because context already uses the
> \hyphenatedurl command in this case.
> 
> \setupurl[style=mono,color=red]
> 
> \starttext
> The wiki located at \useURL[url1][http://wiki.contextgarden.net]\from[url1].
> \stoptext

Many thanks for your help, Wolfgang.


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
___________________________________________________________________________________


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

end of thread, other threads:[~2014-04-28 19:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-26 22:15 \tt in \hyphenatedurl? Pablo Rodriguez
2014-04-27 19:04 ` Wolfgang Schuster
2014-04-28 19:30   ` Pablo Rodriguez

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