From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51178 Path: news.gmane.org!not-for-mail From: Matthijs Kooijman Newsgroups: gmane.comp.tex.context Subject: Limited with rule? Date: Wed, 10 Jun 2009 14:59:12 +0200 Message-ID: <20090610125912.GZ12271@katherina.student.utwente.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1922816072==" X-Trace: ger.gmane.org 1244638831 1092 80.91.229.12 (10 Jun 2009 13:00:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Jun 2009 13:00:31 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 10 15:00:28 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1MENPj-0003sN-Ly for gctc-ntg-context-518@m.gmane.org; Wed, 10 Jun 2009 15:00:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EE6501FB38; Wed, 10 Jun 2009 15:00:22 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11441-02; Wed, 10 Jun 2009 14:59:29 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9582B1FAD7; Wed, 10 Jun 2009 14:59:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6592B1FA41 for ; Wed, 10 Jun 2009 14:59:28 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07507-05 for ; Wed, 10 Jun 2009 14:59:14 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by ronja.ntg.nl (Postfix) with ESMTP id 808D01FAD7 for ; Wed, 10 Jun 2009 14:59:14 +0200 (CEST) Original-Received: from katherina.student.utwente.nl (katherina.student.utwente.nl [130.89.168.160]) by filter1-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n5ACxDYl011239 for ; Wed, 10 Jun 2009 14:59:13 +0200 Original-Received: from matthijs by katherina.student.utwente.nl with local (Exim 4.69) (envelope-from ) id 1MENOa-0000cW-L3 for ntg-context@ntg.nl; Wed, 10 Jun 2009 14:59:12 +0200 Mail-Followup-To: ntg-context@ntg.nl X-PGP-Fingerprint: 7F6A 9F44 2820 18E2 18DE 24AA CF49 D0E6 8A2F AFBC X-PGP-Key: http://katherina.student.utwente.nl/~matthijs/gpg_pubkey.asc User-Agent: Mutt/1.5.18 (2008-05-17) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=130.89.168.160; country=NL; region=15; city=Enschede; latitude=52.2167; longitude=6.9000; http://maps.google.com/maps?q=52.2167,6.9000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 240765382 - e4ae65f41703 - 20090610 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:51178 Archived-At: --===============1922816072== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OAsA6xQjj2jRKPG2" Content-Disposition: inline --OAsA6xQjj2jRKPG2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi all, I've been trying to create a horizontal rule of limited width, using MkIV. My best approach so far is using a \framed with only a bottom frame: \framed[frame=off,bottomframe=on,width=.5\textwidth]{} However, this is not quite elegant. Context provides two commands for drawing lines, \hairline and \thinrule (which seem to do the same from looking at their definition in pack-rul.mkiv, though \hairline does not seem to respond to \setupthinrules for some reason I cannot discern...). However, \setupthinrules accepts a lot of options (including height and depth, which get passed to \hrule, but there is no width option (nor does there seem any way to get \thinrule to pass a width to \hrule). Another attempt to put a frameless \framed around the \hairline (which gets as wide as the containing box) failed as well. The line kept getting vertical, even when I sprinkeled some \dontleavehmod or \pars around... Any suggestions on how to do this? Gr. Matthijs --OAsA6xQjj2jRKPG2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkovriAACgkQz0nQ5oovr7xz/QCfWR3bUtNAgkBQ9HyaxemHqtPu nQEAn1aGmv8VvRUCIx/7ftE7ETveKPlD =amyQ -----END PGP SIGNATURE----- --OAsA6xQjj2jRKPG2-- --===============1922816072== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1922816072==--