From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Anand Tamariya Newsgroups: gmane.emacs.devel Subject: Basic WYSIWYG printing in GNU Emacs Date: Sat, 12 Jun 2021 09:16:04 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000057058105c4897769" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15158"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 12 05:47:37 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lrucT-0003mE-6D for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Jun 2021 05:47:37 +0200 Original-Received: from localhost ([::1]:33160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrucR-0001lV-9g for ged-emacs-devel@m.gmane-mx.org; Fri, 11 Jun 2021 23:47:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrubH-00014A-Bw for emacs-devel@gnu.org; Fri, 11 Jun 2021 23:46:24 -0400 Original-Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]:42859) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lrubB-0000AN-Nj for emacs-devel@gnu.org; Fri, 11 Jun 2021 23:46:23 -0400 Original-Received: by mail-io1-xd33.google.com with SMTP id s26so4204207ioe.9 for ; Fri, 11 Jun 2021 20:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Y4q75dpntkdj03nppW8W0cs+UszfmdKpZHAbfFNsm2k=; b=cvqdSDdmQp2OzfkhuKLDPyfvrcyStfwfOTs+KEdYTc5tihssxy72UP79jufmZTX5z5 lZqVM+FNHaVguoSepsScApHFo1xyFuNV7Z3fX4+8gk/I90V+KvzHCnVzQZibxVH/Vcqc zmbp0W50wXe7I0n7xm/miDSNG8ReboKnTp31TUhgnLFG3OcajDVaPa7QuDN4JP6Cm4aM 3a9IPHabWGZuzPsYJsiJcagB/Kh+Bx9ZzE7v0P7rQcQ3/JT6nhUErcA0HAgaG0VH1olY eOsFnfsrLW/eYJzqDys4KD1iu65SjQ4Zho5pxvFKVcTqKmZfgPpWNBQGjcFRwVOdXCNL 1E+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Y4q75dpntkdj03nppW8W0cs+UszfmdKpZHAbfFNsm2k=; b=oP1zx+Q8UuBwzM3xD2rwmfCziescYZeJQexNPKkScsxMt2Jhjy3Amangs/QHFq6OCo yJM4dYIOh8I7IMOppbZdu6aYCzaOQ1Fb/V4vS2HoJRhT7r4ScQuUVc+26Ethyhj9wEZ2 kyX/8iOtIviMGQGA4Y9SsGXuTuhUvZBrQ5r+2ekuT65uCqfN+kxk6qwddsz5vKto++Bc Pgf0lLHDhvqu0RnIBNsQucLm/dTJxXpua50nGGe1U6gBcOSWRXfwJO33yg1hXrJj/lzx X8gtktkR7t148YPm5Z8vAVYBSoUsOyKfKDg+kVoKG8lyXAc9+ae85NQzG/iY/V3klweF uz4Q== X-Gm-Message-State: AOAM531NHLUs417KMkSuJkq0tzoUH6aGkqkYZ+cSAKAZfpoyTtpBsOR1 cjr6U79nRpsGhQ7bUTDwKbt63jf25McD5Tr8fr0za4/Z0fc= X-Google-Smtp-Source: ABdhPJw46cTddJs9VqG4jecTdx9hzDnA0+6YvTzK6GRUpPDbXtnee+lLrNn+3pMJ7kSZd+lNrASZkA1EQMyAOJdJ4Vw= X-Received: by 2002:a02:cd8c:: with SMTP id l12mr6806404jap.111.1623469575307; Fri, 11 Jun 2021 20:46:15 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::d33; envelope-from=atamariya@gmail.com; helo=mail-io1-xd33.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:270736 Archived-At: --00000000000057058105c4897769 Content-Type: text/plain; charset="UTF-8" Here's an attempt to do some basic WYSIWYG printing in GNU Emacs. Sharing the results of my initial attempt. Use it as you see fit. - Run M-x ps-print-buffer-with-faces to send output to printer. - Run C-u M-x ps-print-buffer-with-faces to send output to file (PS format). *Code:* https://gitlab.com/atamariya/emacs/tree/dev *Screenshot:* https://lifeofpenguin.blogspot.com/2021/06/basic-wysiwyg-printing-in-gnu-emacs.html --00000000000057058105c4897769 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Here's an attempt to do some basic WYSIWYG printi= ng in GNU Emacs. Sharing the results of my initial attempt. Use it as you s= ee fit.
  • Run M-x ps-print-buffer-wi= th-faces to send output to printer.

  • Run C-u M-x ps-print-buffer-with-faces to send output to file (PS format).

Code:= https://gitlab.com/atamariya/emacs/tree/dev

Screenshot: https://lifeofpenguin.blogspot.com/2021/06/basic-wysiwyg-printing-in-gnu-e= macs.html

--00000000000057058105c4897769--