From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85923 Path: news.gmane.org!not-for-mail From: Elspeth McGullicuddy Newsgroups: gmane.comp.tex.context Subject: Difficulties with \startformula Date: Tue, 14 Jan 2014 00:13:03 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1389654787 3699 80.91.229.3 (13 Jan 2014 23:13:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jan 2014 23:13:07 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 14 00:13:16 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W2qgy-0005sr-Rm for gctc-ntg-context-518@m.gmane.org; Tue, 14 Jan 2014 00:13:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E0638101EE; Tue, 14 Jan 2014 00:13:11 +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 b1od2WtuwTkP; Tue, 14 Jan 2014 00:13:09 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id ABA08101E2; Tue, 14 Jan 2014 00:13:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B5F49101E2 for ; Tue, 14 Jan 2014 00:13:07 +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 xm1VCHjMPFzJ for ; Tue, 14 Jan 2014 00:13:05 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id B25DA101DE for ; Tue, 14 Jan 2014 00:13:05 +0100 (CET) Original-Received: from mail-ob0-x235.google.com (mail-ob0-x235.google.com [IPv6:2607:f8b0:4003:c01::235]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0DND3ce014815 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 14 Jan 2014 00:13:04 +0100 Original-Received: by mail-ob0-f181.google.com with SMTP id uy5so8499331obc.40 for ; Mon, 13 Jan 2014 15:13:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=VOHAS8vmDTr0EArD2YfmMeZOFrfjheoH4p5TsvIqAyQ=; b=h2zfLKl3L2s2vPE5UeNCZ/PS4jhUMJ3znku9Dlclp3IXydvx5VfVZ9K0QpjB//iCl8 kTgsfCdUmpc72aUxTKeNJZOWT3n4iARhS3Yqxf2Em6B7ZVSfsOTB1CHBY7OYSJSOyyHQ vxPBD5zVowwvbOyTX94/9mc0SjG20vdBHXYJ7f9zmIA4IC2j1RAwUlbhhpc6hgv1nbTW SX/0f/T12bBeYvZUmdjiY+opZSZF+CaDPU5ctwZG+M5RgsQI7+pupCPTX4IjgxyCCvy5 TnPNSbzXCDDafB54FmLhR3QPoc8+FxoJ3RMywaYT0AI6lj7HDFzmG7ZmvbeytHzJFzmQ m1RQ== X-Received: by 10.182.219.167 with SMTP id pp7mr12353obc.85.1389654783155; Mon, 13 Jan 2014 15:13:03 -0800 (PST) Original-Received: by 10.76.33.129 with HTTP; Mon, 13 Jan 2014 15:13:03 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4003:c01::235; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03Ldzd4hc - 201159c6d821 - 20140114 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85923 Archived-At: Hi, 1- I put here a far too long example to show difficulties that I have with formulas in conjunction with framed: I haven't find a way to insert a formula (displaystyle, vertical mode), at the beginning of a \framed. 2- It might be related with this other thing: The last examples are about mouse text selection with Okular (haven't tried with another viewer): When I "mouse text select" elements of the formula, when the \startformula \stopformula in embeded in a \hbox, what is highlighted looks alright. Instead, when it's in "vertical mode", what is highlighted is very very large. It's probably not the purpose of pdf documents, but this select (and copy) feature is very convenient. This feature is rather impinged with this not so nice looking behavior. Also in these conditions Okular can't select the text precisely, but instead select a much wider area of text (one example here does this). 3- When embedded in \hbox (not vertical mode then), the height of "mouse text section" is alright is formula is 'x+y', but there is an error if the formula in instead '\int_a^b'. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \starttext \setupformulas[spacebefore=-1ex] \framed[width=5cm,align=yes]{% Hello } \framed[width=5cm,align=yes]{% Hello \startformula x+y \stopformula } \framed[width=5cm,align=yes]{% %Hello \startformula x+y \stopformula } \framed[width=5cm,align=yes]{% \vskip-1.3\baselineskip \startformula x+y \stopformula } \framed[width=5cm,align=yes]{% \hairline \startformula x+y \stopformula \hairline } \hairline \startformula x+y \stopformula \hairline \framed[align=yes]{% \type{\vrule \hrule \vbox $$}\\ \hbox{\vrule{\hsize=7cm\vbox{\hrule $$ x+y $$ \input{knuth} \hrule}}\vrule}} \framed[align=yes]{% trying to select the ``x'' in the next formula, select text [\type{he ``xhe \vbox x+ syste conyer and}]\\ \type{\vrule \hrule \vbox \startformula}\\ \hbox{\vrule{\hsize=7cm\vbox{\hrule \startformula x+y \stopformula \input{knuth} \hrule}}\vrule}} \framed[align=yes]{% \type{\framed \vbox \startformula}\\ \framed{% {\hsize=5cm\vbox{% \startformula x+y \stopformula \input{knuth} }}}} \framed[align=yes]{% \type{\framed $$}\\ \framed[align=yes,width=5cm]{% $$ x+y $$ \input{knuth} }} \startbuffer \hbox{\vrule\startformula \int_a^b x+y \stopformula} \stopbuffer \framed[align=yes]{% This line generates an error\\ \typebuffer} \framed[align=yes]{% When one ``text select'' with mouse with Okular, height of selection is correct.\\ \hbox{\vrule\startformula x+y \stopformula}} \framed[align=yes]{% When one ``text select'' with mouse with Okular, height of selection is much larger than expected.\\ \startformula x+y \stopformula} \stoptext %%%%%%%%%%%%%%%%%%%% Regards, Chris ___________________________________________________________________________________ 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 ___________________________________________________________________________________