From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64709 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: What's the proper way to typeset a slash in a text flow? Date: Tue, 21 Dec 2010 06:43:31 +0100 Message-ID: References: <87fwtsaui5.fsf@universe.krase.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292928514 6340 80.91.229.12 (21 Dec 2010 10:48:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Dec 2010 10:48:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 21 11:48:30 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PUzlc-0005WW-IA for gctc-ntg-context-518@m.gmane.org; Tue, 21 Dec 2010 11:48:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 59D8FCA924; Tue, 21 Dec 2010 11:48:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id d+kJszcyVUQ8; Tue, 21 Dec 2010 11:48:25 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A35F6CA907; Tue, 21 Dec 2010 11:48:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C8AA9CA907 for ; Tue, 21 Dec 2010 11:48:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xpy3JPnndk04 for ; Tue, 21 Dec 2010 11:48:21 +0100 (CET) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id 975F7CA903 for ; Tue, 21 Dec 2010 11:48:21 +0100 (CET) Original-Received: from mail-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBLAmK47015868 for ; Tue, 21 Dec 2010 11:48:21 +0100 Original-Received: by fxm9 with SMTP id 9so3882744fxm.3 for ; Tue, 21 Dec 2010 02:48:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=v7dHTmxuwbjjuLgtDNCpIZIZW8fr9Mp4tBo6IRPjDO0=; b=YRplO89AbNheHJmPrpQk7L1mFKfGFNW0Jb1uSEeEWqtV6UPni6DTlhh2stEMYbv1cn XLyEa0RPmQ0fQLHNW66aK2VuiB2fjtZOjGdMjW4IN29i6nsZmP3Gj03bYSy0v3hjGJ3f 6BXkXPVRWB3y1G1m4ncdJwjgZOP9GMI1fCKTY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=sUA6p7SHnEtXERnJrRq1+AWGEVwmWwxuAH1T2l3Fp9EbJDsDqXSblkS7xj6WHswPR4 5UdqRf8UydGjSpIwHpT9mlXt+ccp7+MjvM6LZtUxhD+mRjZX7td6Yddz43YB+4XLWyEj vPTyKCh7Rc/7VL3lebrZLK+R7PoblnRcKVtCs= Original-Received: by 10.223.54.132 with SMTP id q4mr5942748fag.117.1292928500543; Tue, 21 Dec 2010 02:48:20 -0800 (PST) Original-Received: from [192.168.2.23] (p5B294ED6.dip.t-dialin.net [91.41.78.214]) by mx.google.com with ESMTPS id o17sm1260693fal.25.2010.12.21.02.48.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 21 Dec 2010 02:48:18 -0800 (PST) In-Reply-To: <87fwtsaui5.fsf@universe.krase.net> X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.44; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0BDJKMkoU - 39619fac9f38 - 20101221 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:64709 Archived-At: Am 21.12.2010 um 00:34 schrieb Marco Pessotto: > > See the following minimal example (I'm not trying to typeset urls or > filesystem paths in this way, just regular text): > > %%%%%%%%%%%%%%%%%%%%%%%%%%%% > \def\myslash{/\penalty-5000} > \starttext > > \type{/} > > {\bfd Love/Hate/Play/Love/Hate/Play/Love/Hate/Play/Love/Hate/Play} > > \type{\slash} > > {\bfd Love\slash Hate\slash Play\slash Love\slash > Hate\slash Play\slash Love\slash Hate\slash Play\slash Love\slash > Hate\slash Play} > > \type{\textslash} > > {\bfd Love\textslash Hate\textslash Play\textslash Love\textslash > Hate\textslash Play\textslash Love\textslash Hate\textslash > Play\textslash Love\textslash Hate\textslash Play} > > \type{\myslash} > > {\bfd Love\myslash Hate\myslash Play\myslash Love\myslash Hate\myslash > Play\myslash Love\myslash Hate\myslash Play\myslash Love\myslash > Hate\myslash Play} > > \stoptext > %%%%%%%%%%%%%%%%%%%%%%%%%%%% > > Neither one of the first three solutions above give me the right thing, > because the line won't break at /. What am I missing? > > A workaround seems to be > > \def\myslash{/\penalty-5000} > > and then using \myslash instead of \slash, but I'm pretty sure I'm not > doing this right. MkIV: \setbreakpoints[compound] 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 ___________________________________________________________________________________