From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Gauland Subject: Re: Different listing styles for same babel language? Date: Mon, 7 Aug 2017 13:06:50 +1200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------5B3A247466FC32256A013AC6" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1deWVY-0004YM-6E for emacs-orgmode@gnu.org; Sun, 06 Aug 2017 21:07:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1deWVV-0005RW-0H for emacs-orgmode@gnu.org; Sun, 06 Aug 2017 21:07:00 -0400 Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]:34415) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1deWVU-0005Po-QU for emacs-orgmode@gnu.org; Sun, 06 Aug 2017 21:06:56 -0400 Received: by mail-pf0-x22d.google.com with SMTP id o86so27445585pfj.1 for ; Sun, 06 Aug 2017 18:06:55 -0700 (PDT) Received: from [132.181.71.164] ([132.181.71.164]) by smtp.gmail.com with ESMTPSA id u75sm11797177pgc.78.2017.08.06.18.06.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Aug 2017 18:06:53 -0700 (PDT) In-Reply-To: Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" Cc: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------5B3A247466FC32256A013AC6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit I recently wrote: >> My org documents include lots of source code blocks, in a variety of >> languages. I use the listings package to give each language a >> distinctive look. >> >> Lately, my work has involved using shell commands on different machines, >> as different users. I'd like to give each shell environment (e.g., local >> user, normal user on remote host, root on remote host) a different look. >> At the moment, I'm doing this by specifying different shells (bash, >> dash, sh) for each. This works, especially since I'm not executing the >> commands from emacs, so it doesn't matter which shell I specify. >> >> Is there a better way to do this? >> > I've found that #+ATTR_LATEX: :options language=.... does exactly what I was looking for. The attached example may be useful to others. --------------5B3A247466FC32256A013AC6 Content-Type: text/plain; charset=UTF-8; name="lstyle-example.org" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="lstyle-example.org" IytMQVRFWF9IRUFERVI6IFxsc3RzZXR7ZnJhbWU9c2hhZG93Ym94fQojK0xBVEVYX0hFQURF UjogXGxzdGRlZmluZWxhbmd1YWdle2Jhc2gtbG9jYWx9e3J1bGVzZXBjb2xvcj1cY29sb3J7 Y3lhbn19CiMrTEFURVhfSEVBREVSOiBcbHN0ZGVmaW5lbGFuZ3VhZ2V7YmFzaC1yZW1vdGV9 e3J1bGVzZXBjb2xvcj1cY29sb3J7eWVsbG93fX0KIytMQVRFWF9IRUFERVI6IFxsc3RkZWZp bmVsYW5ndWFnZXtiYXNoLXJlbW90ZS1yb290fXtydWxlc2VwY29sb3I9XGNvbG9ye29yYW5n ZX19CiMrUFJPUEVSVFk6IGhlYWRlci1hcmdzIDpldmFsIG5ldmVyCgojK0FUVFJfTEFURVg6 IDpvcHRpb25zIGxhbmd1YWdlPWJhc2gtbG9jYWwKIytCRUdJTl9TUkMgYmFzaCA6cmVzdWx0 cyBvdXRwdXQgOmV2YWwgYXNrCiAgIyBSdW4gdGhpcyBzY3JpcHQgb24gdGhlIGxvY2FsIGhv c3QKICAjIEluc3RhbGwgdGhlIGtleSBpbiB0aGUgVk06CiAgc3NoLWNvcHktaWQgLWkgfi8u c3NoL3ZtIFwKCSAgICAgIC1wIDMwMjIgdXNlckAxMjcuMC4wLjEgCiMrRU5EX1NSQwoKIytS RVNVTFRTOgoKIytBVFRSX0xBVEVYOiA6b3B0aW9ucyBsYW5ndWFnZT1iYXNoLXJlbW90ZS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