From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: thibaut.verron@gmail.com Newsgroups: gmane.emacs.help Subject: Re: cdlatex-mode in emacs Date: Thu, 25 Aug 2022 17:58:23 +0200 Message-ID: References: <83edx45070.fsf@gnu.org> <838rnc4ytn.fsf@gnu.org> <936d788e-120e-86a3-0f39-9e57ae242731@gmail.com> <57a9ab6f-47c3-cfca-2aec-e4e8ac5dd6ca@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23232"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 To: uzibalqa , uzibalqa , wilnerthomas@tutanota.com, Eli Zaretskii , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 25 18:01:18 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oRFI9-0005lp-Rf for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 25 Aug 2022 18:01:13 +0200 Original-Received: from localhost ([::1]:55348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRFI8-0005nF-Gc for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 25 Aug 2022 12:01:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRFFV-0004lu-AK for help-gnu-emacs@gnu.org; Thu, 25 Aug 2022 11:58:29 -0400 Original-Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:34785) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRFFS-0002BV-Oc; Thu, 25 Aug 2022 11:58:29 -0400 Original-Received: by mail-wr1-x429.google.com with SMTP id a4so25228330wrq.1; Thu, 25 Aug 2022 08:58:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:references:subject:to:from :user-agent:mime-version:date:message-id:from:to:cc; bh=ynEHllS2mJkW07LTiytAM3rNgziP7wLDqiy3goDn6ko=; b=GT/S+7Y7Y7eH8Zb2o+KkS4CzEwKKxQ29rlOBtr1PRdl2SDB7juHiZpWpiFApK8Nhrk crf3auKCqqMiR0GJuwx50a4KkiUpqzMdP2lVX8Ki0y0gxWvwKibZyyw6ADRbX2ta9s08 Jq24MyY/tgTDqBeOnxRp5nbgi92JrcjOpluKIbzFFOkYAuKYQBkHb591vI6GM43KWUjW Ip6ZniYHNFa4lrxV/8SPUE8f/VWzIbMjv6YqQ0IhKZMNvrWhYGUce0ygYF8UeFcb/yvh 5Fntil758bODAQ0WYBQD++qrPXQKAQkM9HziKloFOB4Z1esq1k8qenOzxpJi2bb6b9Zd 2IFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:subject:to:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc; bh=ynEHllS2mJkW07LTiytAM3rNgziP7wLDqiy3goDn6ko=; b=YP46LbRcJ2mGWABt54Z+fw0MGFuEJyahA7MVJK1QN7eYLjtzChU5gikVv3+mYI+UAQ vhqVTsJs/S3P090cpgQkGImG2T9k68+LOgx2TnzI2ErTMt2kQbjq/8gJ+hLvvNFgVxrb sR9ZGIbjqFfHnGNEW+32T8yYr3+F3yxRqIc+YJWqxn/hGK2ty+5FfIgxMpsAx/96XJuR fRou2QXKM3lur1l7z5pwmUU/aGWte83AFlBD0F7Oj1tXhtmh2tAaOpjbuN3BTbaTabja jNz6FKjm1M1J2qfqOUTnqmk/LkubV/fD5BSHlmdUQ9nNsPQwwAKcHATyWObICp+k0l9B GTlw== X-Gm-Message-State: ACgBeo0O6CgDaYPiQD2y42TaVlEw/Ln6T5Yh1YrrHcBy88FMM4WDv61F 5pltvpsWiOmKMQ4IysGEECU= X-Google-Smtp-Source: AA6agR6juNuWz3v4M6Y21LV21DoHKha60UyhHJOZ+z0PYZFQvxOUEuDGafnKd7yDJ+qXW1s6IwK3NA== X-Received: by 2002:adf:cd06:0:b0:225:1b57:a3b with SMTP id w6-20020adfcd06000000b002251b570a3bmr2645068wrm.154.1661443104562; Thu, 25 Aug 2022 08:58:24 -0700 (PDT) Original-Received: from ?IPV6:2001:628:2010:4094:1f4a:a42b:7a2e:722f? ([2001:628:2010:4094:1f4a:a42b:7a2e:722f]) by smtp.gmail.com with ESMTPSA id v2-20020a5d6b02000000b0021e30e9e44asm19653327wrw.53.2022.08.25.08.58.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Aug 2022 08:58:23 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=thibaut.verron@gmail.com; helo=mail-wr1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139090 Archived-At: On 25/08/2022 17:03, uzibalqa wrote: > ------- Original Message ------- > > > > The file seems well organized to me, the code is grouped according to > > the provided features. That's a lot easier to use and manage than having > > to modify n files at exactly the right place anytime one wants to add a > > new feature. > > > > Most of the contents is common concepts, with little bits of > > instantiation here and there. And a lot of the language-specific content > > (in terms of lines of code) is documentation rather than code. Again, > > that's because tex- and latex- mode do not attempt to implement more > > than basic support for latex files. > > > > In any case it is a concern for developers, not users. Do you have > > changes that you would like to include in tex-mode.el, but can't because > > of the current file structure? > > One feature I did include in my implementation for tex-mode is to highlight > tex commands such as "\sqrt", "\omega" and the rest. But the starting "\" > is not highlighted in order to distinguish different components such as in > "\alpha\beta" and "\sin\omega_k". This sounds like a feature which would be common to all tex flavours, and therefore be easy to integrate in the current code base, no? > > cdlatex would also be useful for use with texinfo-mode, particularly now that > texinfo uses mathjax. > cdlatex is a minor mode, so you can activate it in texinfo-mode buffers. Do you run into problems when you do that? (Some languages do expect different markup than latex, leading to wrapper packages like org-cdlatex. I don't know texinfo, but I seem to remember that cdlatex supports \( \) as math delimiters, which should be useful for mathjax.)