From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/22689 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: jiewuza Newsgroups: gmane.text.pandoc Subject: `#` in inline code should be escaped when using --listings Date: Thu, 09 May 2019 22:44:56 +0800 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="98819"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDS4Z3WZ2UDRB6PZ2DTAKGQEK7RCLFA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu May 09 16:45:16 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-wr1-f62.google.com ([209.85.221.62]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hOkIM-000PWP-FK for gtp-pandoc-discuss@m.gmane.org; Thu, 09 May 2019 16:45:14 +0200 Original-Received: by mail-wr1-f62.google.com with SMTP id k18sf2153209wrl.4 for ; Thu, 09 May 2019 07:45:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1557413114; cv=pass; d=google.com; s=arc-20160816; b=G9PMUD/MHdRJ2RJ/Rfk7tgV81IdQUTiBdOMjQTkeVhpV7A8alEhRXNm5nQKD6VZdzp GQDL/pc5DyBqAMECtvBp9KJ3IvYlc6sZ0KUDodO9O5/411z8qO1i+hIoTIpHGVCO4SXW xGjdEFrTHR5R+nWRKN127s1D0FLR8YRZaQjh0fb1dJ5DsDS9FJCiBnun2j70VxgbH97r MiQcifNJtIOyVt//FYMhBpBjGpJGYFlkoLkBs0DC/xk25vI6v1mdeaKUXPp/x/VNW1OX AIZqVu3q7TQJdIO8MxFRMBq7iB5P6b3KVQ7mSxNjkRmAQcvVE/O9x0GGiCL2TFe79nd1 l0sQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:cancel-lock:user-agent :mime-version:message-id:date:subject:from:to:sender:dkim-signature; bh=gWRBWjPc+J50Isyo7GD9VViRGwb+klcGlJxk99fq7hQ=; b=WIP4IMoJCLEjBAQUR5DVKI+55Rmdc3a3UpngIo4TGyP7ODYCfNoTp/WTKDTsmd43KN HdqgaWec1McMVRrCIIoyzEtKLWAttSM7JSa1vGSM58sTjDkrix53l2lZkFISJdOV/1O4 FyE8z755LUWWdnA6i8ZJG/KPH3Co49f82cj2MzS92ODcymj65L5qSEUn6S470Az1t7ug iJk7puWrtnxhGfyf9QB+wM91ZJnnzSjW0zxkuS9Sn3Ju1+dqnRq6FZCPiM9Ia6Qiy9Pq N2/qgg/USP2dm+N6gegNzcgUrgVZ7Tl29pezAGdauoxI8SjWmDDJdz9LZCBYCJ7QkuER LKkQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gtp-pandoc-discuss@m.gmane.org) smtp.mailfrom=gtp-pandoc-discuss@m.gmane.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:to:from:subject:date:message-id:mime-version:user-agent :cancel-lock:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=gWRBWjPc+J50Isyo7GD9VViRGwb+klcGlJxk99fq7hQ=; b=LHfi/st3Dtm09bEEZe1gVj6Nsg9Jspr+JQnszLU7Zcq4FFn6AHTrUE0nblqKOzwHI9 ehJX+eEguDRl8tzq1HMiyquKoG2IIlDRfLX3ui9VK17DCwxVIGvrUJKIs5RLjppp7zTj A2zGEhfx9YCkg9RAB2qVfPQBC3dWr/fbSo/KWYWl12228TGWBD2PQojisyUXMyL43kvx 0NN0A9eVsajoDUZASTRpzBj7IQlWHCZHzuE+oHaMUPmd4bKAo/plm6UADr0OwbnZN5qW b1UfLfHd+XW91fS/T7/FJSlm3L0Pv7r0UTTJvlV3V79vvdEGMgyYb39m10p9keODPwqH uo9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:to:from:subject:date:message-id :mime-version:user-agent:cancel-lock:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=gWRBWjPc+J50Isyo7GD9VViRGwb+klcGlJxk99fq7hQ=; b=GAB4CXqNVWdXcLnjtszP9viXJUiTF+L5RrYtu+14NFQUkI+58JXYaMOjb2O9N4CgzD aH9I3jRe1fftayr+na2bVQ6huOT/ncaNzQJYuI3GLeyDpJQjAPIuUxZr1xZIpSUvTzdn 3OWKHu1rlAER2wcXC8vuMDPs2tzyhjIfUEnXw7Cgpfsf/dkc3hQVqH7f78J+ag+yOT+P c7cMlQarpUP20GNz8JYL8WZRfpl+B4jOu8QiqAj/fKd9RTdzLF59A7GkFDftZInI34Zy JCL3SKwyHvg6TOug2B0yoy2m3YTHwqISIOvld0TI7kiw0c6fRmaeYLTJjNC7aKjT3u5u PITg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAXfh7Ei+9ELE7BYzn4vx0Y22Bq9gq4D7CsUlpzXz97RXuAnZljn Pk6ePLtYNpaZ8ogesImRdlo= X-Google-Smtp-Source: APXvYqydI6ICrQxLrDcl8EfrQk3AJJVA+9u6Q8rr22EeM3s4ZbszaYk39cpaaJe8Cb6bsiWC5yhMrA== X-Received: by 2002:a5d:4c4d:: with SMTP id n13mr3594433wrt.144.1557413113933; Thu, 09 May 2019 07:45:13 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a5d:544d:: with SMTP id w13ls621114wrv.16.gmail; Thu, 09 May 2019 07:45:13 -0700 (PDT) X-Received: by 2002:adf:eb4c:: with SMTP id u12mr3641031wrn.235.1557413113028; Thu, 09 May 2019 07:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557413113; cv=none; d=google.com; s=arc-20160816; b=ZrTZLtss9XuOOPo8ndv0jyWGda3MuY3hwHkHbJXskjhuhebnI7JYRc9iO/4HclYP3V 87X5M0omQNDygE7Ghss9wqyS5532mAdA2CaIHSQoMRbT7CXVlVfR9s9ZOYdat71Sz7gm 1Lq2fKf3iZ3mE/WlUKKputgjZPoT77xLuZj2b/0LZl88Cp3Bq9v+2omQFVVqBAAzOSzP JBSkWLnSx9C1Seo0uzJOeFOZ0Lyn1MgtWj4cfLNfaaYxNlAWWHcBs54/qe+oi6abRvIg O8lJBZY/9bBmpbzaJuYk2wV5M2TvKu0io505kFmLuOt7zx68P14PArkkXhWSc5PMuwdi DiXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cancel-lock:user-agent:mime-version:message-id:date:subject:from:to; bh=wqYsuTFQ6V6NVVumh9kgzEuasMynZrTy+/z2Dv38Xb4=; b=hrLQkKWKxW87rIguxOZE10YUa+XnMU/D+oaXGsyMur9oR0UkbbWK7+44prsa6qJV0C yZmWVeOhCD3nQbwtuEstlabcIzt7YxbFBFTOM/t6PaJhjNAbDLlXM+UwJveN8eTJT7Li hieTP+ONeQHkzQ/I5gT46h63oTI0Ssof4mTtL19taUPLWfxkkbPOFdCT7slxEjgMc4U7 XJLxUQ9JuTqMlh7A5OusSl3nghDuH07MsoQprcRIM3Bo/n4erwzyXCVY4GepcnDymarM oD2DGPujooF3WskFXjpE+71cMexOUAl8x3JeqmT0Yq9UdHEUBoiFEAl7kpVYSoVvHKU3 6QmQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gtp-pandoc-discuss@m.gmane.org) smtp.mailfrom=gtp-pandoc-discuss@m.gmane.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com Original-Received: from blaine.gmane.org ([195.159.176.226]) by gmr-mx.google.com with ESMTPS id y72si634750wmd.3.2019.05.09.07.45.12 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 May 2019 07:45:13 -0700 (PDT) Received-SPF: neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gtp-pandoc-discuss@m.gmane.org) client-ip=195.159.176.226; Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hOkIK-000PT2-9w for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Thu, 09 May 2019 16:45:12 +0200 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:fM2pzEOV0bK5sEk1flqYte1Ogpc= X-Original-Sender: gtp-pandoc-discuss@m.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gtp-pandoc-discuss@m.gmane.org) smtp.mailfrom=gtp-pandoc-discuss@m.gmane.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:22689 Archived-At: I find that `#` becomes `##` in the resulting pdf when I convert a md file which has inline code `#` inside with listings and xeCJK package. Here I just simplified the tex generated by pandoc to reproduce the problem: ``` \documentclass{article} \usepackage{xeCJK} \usepackage{listings} \newcommand{\passthrough}[1]{#1} \begin{document} \passthrough{\lstinline!#!} % not escaped \passthrough{\lstinline!\#!} % escaped \end{document} ``` The result is ``` ## # ``` I checked the document of listings. At page 27, it says: `If you want to enter one of the special characters {}#%\, this character must be escaped with a backslash.`