From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/99538 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Problem with math alignment Date: Mon, 13 Nov 2017 11:25:50 +0100 Message-ID: <5A09732E.9030608@gmail.com> References: <5A0951E1.8060405@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3260013304256745609==" X-Trace: blaine.gmane.org 1510568780 27910 195.159.176.226 (13 Nov 2017 10:26:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 13 Nov 2017 10:26:20 +0000 (UTC) User-Agent: Postbox 5.0.18 (Macintosh/20170825) Cc: mailing users To: Otared Kavian Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 13 11:26:16 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEBwT-0006vf-Nt for gctc-ntg-context-518@m.gmane.org; Mon, 13 Nov 2017 11:26:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 735BB8C2A6D; Mon, 13 Nov 2017 11:26:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zn1JLNqUf5EB; Mon, 13 Nov 2017 11:26:07 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 2976B8C2A5B; Mon, 13 Nov 2017 11:26:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F12218C29CF for ; Mon, 13 Nov 2017 11:26:05 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DOoeSysa-Pao for ; Mon, 13 Nov 2017 11:26:05 +0100 (CET) Original-Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 744478C2830 for ; Mon, 13 Nov 2017 11:25:55 +0100 (CET) Original-Received: by mail-wm0-f42.google.com with SMTP id n74so13462812wmi.1 for ; Mon, 13 Nov 2017 02:25:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to; bh=g4hB/NYokuKPeAnovWs+SY2Z8PupIfRVdjXN5J13X7w=; b=eVGqr6o/eXyxMhZXVC/RJCNe3fecYK2vjasr82zJH5u9DjUOjRZwPuldcV4FgX9EkA MbxRMJIj3/wLzG7IlIjRmSmYBy9DmAQIvkWwSC884y6hIl/YXNcyiJDthj3JtEPfavOs ZfGSqohv90kfEZZp3+69eh3OxqJErtTSZuBJn0/42UMiz6f+XOQJHBkYk27FqS4t0V3H /MlB5vsi0IKHIQ9+OZNPZmnEtBJGYCLakn6Oe60Dn/gPqE2wjGREY8hM3w17oaRVjnga oLLZqIXuqkjQFpdXyScNh6u/0cCDu7g3fftxzsELrqynuajqJLlKIkh6z4CVBGuT5+z7 XqEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to; bh=g4hB/NYokuKPeAnovWs+SY2Z8PupIfRVdjXN5J13X7w=; b=dubcyfs15M4U7a11e/uINr/BerQwPNpl8p3HYQ0NKhYFxFlVvSC/PBAodytwfaqc/P Aoxh4yyInkpfRQk0SkcBhDL0+1VBtqu/CytZvW2BcOEe8iD2eHPvrg1IYshkmd2Hhssm Gyol75Gtu39Vt/JgA7nFzr8w0KoxLc4icRo2qfF65pIeT2/3g5bH9tLC0vI89srzj+fK 6KMLDzi51gNFolIIoRGEP859+WKe7+XXt4MInPq+RE8cZvR4sbhALKmVt50qAf0VANQo T+sH+nYhdLDJ80MZsfO8WnNHFDO0PU4JywmkDfR5adKmqwltMtJIBGXOWdVOFAWDk0+L sFOw== X-Gm-Message-State: AJaThX550Zpijb/qBVoAC0ZsSmdqX+3yF290zqcp1p1ZMC+PZk2ZYpU7 y/vCLReclsGjWPudAT1hHlY= X-Google-Smtp-Source: AGs4zMZumXN6IYaTox+gboV5v3Wd1cKN5H2CvEoqS4Uu6Htwo9P4Weah1ttwxyGCltChrLg9RxJS5A== X-Received: by 10.80.205.218 with SMTP id h26mr11891697edj.157.1510568754924; Mon, 13 Nov 2017 02:25:54 -0800 (PST) Original-Received: from [192.168.1.6] (x590f7763.dyn.telefonica.de. [89.15.119.99]) by smtp.gmail.com with ESMTPSA id l4sm15699366edc.20.2017.11.13.02.25.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Nov 2017 02:25:54 -0800 (PST) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:99538 Archived-At: This is a multi-part message in MIME format. --===============3260013304256745609== Content-Type: multipart/alternative; boundary="------------010903020602080609050504" This is a multi-part message in MIME format. --------------010903020602080609050504 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > Otared Kavian > 13. November 2017 um 11:08 > > > Hi Wolfgang, > > Thanks for your help. In math-ali.mkiv there are the following lines: > > \setupmathmatrix > [\c!distance=\emwidth, > \c!left=, > \c!right=, > \c!align=\v!middle] > > Is it here where one has to change something? I confess that I am not > at all familiar with the source code… No, this is only the default setup for matrices. The alignment is done at the begin and end of the cell content (look at the commented commands below): \unexpanded\def\math_matrix_start_cell {\dostarttagged\t!mathtablecell\empty \hss %\math_left_of_equalign \startimath \math_matrix_set_style \tabskip\zeropoint \everycr\emptytoks} \unexpanded\def\math_matrix_stop_cell {\stopimath %\math_right_of_eqalign \hss \dostoptagged} Wolfgang --------------010903020602080609050504 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
13. November 2017 um 11:08


Hi Wolfgang,

Thanks for your help. In math-ali.mkiv there are the following lines:

\setupmathmatrix
[\c!distance=\emwidth,
\c!left=,
\c!right=,
\c!align=\v!middle]

Is it here where one has to change something? I confess that I am not at all familiar with the source code…

No, this is only the default setup for matrices. The alignment is done at the begin and end of the cell content (look at the commented commands below):

\unexpanded\def\math_matrix_start_cell
  {\dostarttagged\t!mathtablecell\empty
   \hss
  %\math_left_of_equalign
   \startimath
   \math_matrix_set_style
   \tabskip\zeropoint
   \everycr\emptytoks}

\unexpanded\def\math_matrix_stop_cell
  {\stopimath
  %\math_right_of_eqalign
   \hss
   \dostoptagged}

Wolfgang
--------------010903020602080609050504-- --===============3260013304256745609== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============3260013304256745609==--