From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi0-f47.google.com (mail-oi0-f47.google.com [209.85.218.47]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id 57a7f799 for ; Mon, 19 Jun 2017 23:27:03 -0500 (EST) Received: by mail-oi0-f47.google.com with SMTP id p66so32785155oia.0 for ; Mon, 19 Jun 2017 21:27:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cathet-us.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:in-reply-to:references:comments :mime-version:content-id:date:message-id; bh=+z/xgdxIMnUJzL62UkT3tAziOSd0HkqtmW1pgSlbkPI=; b=IJy61QMgwJrOhXJf8XbNInBQI2C3rpA7376KHzeyF3K8kqgfxuXRxX0t9zWBYDKXzF 8R/xqhVY9oEeQ4KsPAkjn1Wkuhn1Y64xiVOZoN/LIOeiAia6cSblxR+lbgqDFhoJ4sxF cvCnKgXdYp3rxc6kg9Zp1SRSvHzSB99RP0WCgKM3r7MkYKOTxPaBxKQBKkQaZwo4ZFx/ lD2D0id+isIViSlSkKjaEoNkr4nqOmgMKOX7Crn2CQDpv2zNdKUJha6g4AJQtA7feLr8 XOH3qGUoZ78iLL3AO5dlWMX3Z3fAu6yRass4nQnd43gUZjXRvVER9e5C+IwTDmTSjYtH bsiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :comments:mime-version:content-id:date:message-id; bh=+z/xgdxIMnUJzL62UkT3tAziOSd0HkqtmW1pgSlbkPI=; b=pQdU4JK0RosH/S7mvfxLBb7w3b3y2yQ3lNUF0FWHQtekfAFkhmYz0c43uimYWKnZXU L38of0nInaOC+VFkZEhckvZr34aMf6mN1BnVk/g9hjffKgQoqNzC2D2y5hZBZdHI1ebF AnEsJPAyUN0ExJB2KTJbL4Tk7pPDgyngYn2W1/Vzh/H28iNm0U0SNXWTyFbmZ4qG736l v+5+N+l0S1i72I7xttuZI4YEb079luK8ffbSz4v0bZVXIyM0UCsop5JYxxxeavQuRJbW dGpAfaBkpS6w0PNvzy5AorfUaxR2yl0Uj7tPNlmOsUOHRxwMxGRaW/L6KOeF00IzGgQA PfEA== X-Gm-Message-State: AKS2vOxPqrboLdojxIot9unZU1T1Y/U67Uidg/O4KM1c5O5zmrSKBXpf joSU0DNIKPI72Uic X-Received: by 10.202.171.82 with SMTP id u79mr15262527oie.93.1497932822247; Mon, 19 Jun 2017 21:27:02 -0700 (PDT) Received: from cathet.us. (75-161-15-69.albq.qwest.net. [75.161.15.69]) by smtp.gmail.com with ESMTPSA id w193sm5871543oie.37.2017.06.19.21.27.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Jun 2017 21:27:01 -0700 (PDT) Sender: "Anthony J. Bentley" Received: from cathet.us (localhost [127.0.0.1]) by cathet.us. (OpenSMTPD) with ESMTP id 20f0ef10; Mon, 19 Jun 2017 22:27:00 -0600 (MDT) From: "Anthony J. Bentley" To: Ingo Schwarze cc: tech@mdocml.bsd.lv Subject: Re: Rendering of math symbols in ASCII mode In-reply-to: <20170619170610.GF97447@athene.usta.de> References: <72240.1497830663@cathet.us> <20170619170610.GF97447@athene.usta.de> Comments: In-reply-to Ingo Schwarze message dated "Mon, 19 Jun 2017 19:06:10 +0200." X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <90640.1497932820.1@cathet.us> Date: Mon, 19 Jun 2017 22:27:00 -0600 Message-ID: <84965.1497932820@cathet.us> Hi Ingo, Thanks for the thoughts. Ingo Schwarze writes: > > .EQ > > roman erf ( x ) = 2 over {sqrt pi} int sub 0 sup x e sup {- t sup 2} dt > > .EN > > Why roman? Aren't function names usually set italic in mathematic > papers? My impression is that single-letter functions are italic but words are roman. I've formatted that way since reading this in the TeXBook several years ago: "The names of algebraic variables are usually italic or Greek letters, but common mathematical functions like 'log' are always set in roman type." Reading it again, I'm not sure what qualifies as a "common" function. Briefly browsing the dusty TAOCP from my shelf just now, I encountered several italicized single-character function names, several romanized multi-character function names, and no contrary examples. > Currently, words like "integral" are translated to character escape > sequences by the parser, independent of the output format. Moving > that translation to the formatters in order to avoid it for -Tascii > would cause code duplication because several formatters need the > same translation: -Tutf8, -Tpdf, -Thtml... Indeed, that would be ugly. > Multi-character descriptive renderings cause a problem with > spacing. For example, rendering > > \[sr]2\[mo]R > > as > > sqrt2element ofR > > is not very readable. Nitpick: \(sr is not the right way to do square roots in eqn(7). The sqrt keyword will wrap in parentheses. (But I get your point.) > For some character escape sequences that render to nothing in > groff -Tascii, i decided to use descriptive renderings > enclosed in angle brackets in the past: > > \(sc SECTION SIGN > \(de DEGREE SIGN > \(ps PILCROW SIGN > \(CS BLACK CLUB SUIT > > Do you consider that desirable for cases like the above, too? Indeed, I think this is a sensible and readable way to go for -Tascii, particularly for characters likely to be used in eqn(7). -- Anthony J. Bentley -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv