From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6428 invoked from network); 11 Nov 2023 13:22:07 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 11 Nov 2023 13:22:07 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1r1nw5-00HHjI-0e for ml@inbox.vuxu.org; Sat, 11 Nov 2023 07:22:05 -0600 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.96.2) (envelope-from ) id 1r1nw4-0012fA-0l for ml@inbox.vuxu.org; Sat, 11 Nov 2023 07:22:04 -0600 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtp (Exim 4.96.2) (envelope-from ) id 1r1nw1-0012eu-1i for ding@lists.math.uh.edu; Sat, 11 Nov 2023 07:22:01 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1r1nvn-00HHih-0x for ding@lists.math.uh.edu; Sat, 11 Nov 2023 07:21:56 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:Message-ID:Date:Subject:From:To: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=DpuKkOzD/0QjPkZyiCwAGDITOGzVMyKHgo5Nav6YlF4=; b=ItJaBH86wqXvhE7Bk6Qaz90eES OkNcG+6iun/ZnG4HnihKrqq6rPselYv9sH4ufKCvEBFk1G8/xUT7m34aJIu99EUnDxrAqlvwyKWBb 6eG9zDDAqEOm1Tbt/dLosvcfyd/Mj5eC8ztQdZlOkLmT3foCy2cP6Q1hqQ7ewIAu7ts4=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r1nva-00059C-MD for ding@gnus.org; Sat, 11 Nov 2023 14:21:37 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1r1nvY-00068L-C2 for ding@gnus.org; Sat, 11 Nov 2023 14:21:32 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org To: ding@gnus.org From: Uwe Brauer Subject: what is the best way to include code snippets in plain mail body Date: Sat, 11 Nov 2023 14:21:24 +0100 Message-ID: <87zfzk4e97.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:UBf0jypCSqzk/upweRBaZHM6Az8= Mail-Copies-To: never Header: Newsgroups List-ID: Precedence: bulk Hi Sometimes I have to include an example which is some code. If it is on a emacs mailing list I would do #+begin_src \documentclass{article} \usepackage{mathtools} \mathtoolsset{showonlyrefs} \usepackage[colorlinks]{hyperref} \usepackage{xpatch} \makeatletter \xpretocmd\HyRef@autoref{\noeqref{#2}}{}{}% small hack \makeatother #+end_src And this is fine. If I write to an author that used some html based mail, (using a gmail account or thunderbird) I would use org-mime to htmlize the above code, but in general I would use ,---- | \documentclass{article} | \usepackage{mathtools} | \mathtoolsset{showonlyrefs} | \usepackage[colorlinks]{hyperref} | \usepackage{xpatch} | \makeatletter | \xpretocmd\HyRef@autoref{\noeqref{#2}}{}{}% small hack | \makeatother `---- Is there any better way for plain based mailing lists say Regards Uwe Brauer -- I strongly condemn Hamas heinous atrocities on Israel, especially the despicable pogroms. I strongly condemn Putin's war of aggression against Ukraine. I support to deliver weapons to Ukraine's military. I support the NATO membership of Ukraine. I support the EU membership of Ukraine. https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/