From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/13863 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.text.pandoc Subject: Re: conversion to PDF and ucommon packages Date: Fri, 06 Nov 2015 12:39:47 +0100 Message-ID: <87poznfjb0.fsf@fastmail.fm> References: <4cb4538e-fda7-40c0-9188-d875f13a415e@googlegroups.com> <20151104204424.GA82816@protagoras.berkeley.edu> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1446810007 1312 80.91.229.3 (6 Nov 2015 11:40:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Nov 2015 11:40:07 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCS7B5O6XUOBBCVD6KYQKGQEWGDWRAA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Nov 06 12:39:57 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-qg0-f61.google.com ([209.85.192.61]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZufN6-0001dv-8e for gtp-pandoc-discuss@m.gmane.org; Fri, 06 Nov 2015 12:39:56 +0100 Original-Received: by qghh68 with SMTP id h68sf9362787qgh.1 for ; Fri, 06 Nov 2015 03:39:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=references:user-agent:from:to:subject:in-reply-to:date:message-id :mime-version:content-type: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 :sender:list-subscribe:list-unsubscribe; bh=l4u1S+tAIHO0UfGkEqdjtIvYh4g0WsU76u8M6GGpPJw=; b=OzwzfgaDwWy9iGSmxYxt+RhynfCkqxXG3Aj6E0RUml+rqqz0FFwIE5NDJ5A4E1GBAO 96nRVFVbPlz8Qp4vC5WXMI6+ZApl5r1yN+ITk0tL84mKO2aFTEqz0W8l6kNx7xstEErS y9WwLjiKdjQyKCotDcomymvvrKnuUklNYVnOM2ebFeHJr0Iw9YxmxCnUEDg9ZMOe1ZCQ pC3935rhT+byrWoGCQWke8jE4k9Cy0CC6zVVJOM4Khq/uAJ1o9Ja6BgqPmTikaqU1+3V dKCvPMyjhmXMDXN+8k+1Ez1UAc/dN1uLIahmNtns2r+MGZn72aZXi7ldjmExrE9zPFOX XR0Q== X-Received: by 10.182.125.229 with SMTP id mt5mr180049obb.18.1446809995317; Fri, 06 Nov 2015 03:39:55 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.182.105.34 with SMTP id gj2ls136960obb.86.gmail; Fri, 06 Nov 2015 03:39:54 -0800 (PST) X-Received: by 10.182.196.34 with SMTP id ij2mr11407902obc.24.1446809994668; Fri, 06 Nov 2015 03:39:54 -0800 (PST) Original-Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com. [66.111.4.28]) by gmr-mx.google.com with ESMTPS id u202si728386ywf.5.2015.11.06.03.39.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Nov 2015 03:39:54 -0800 (PST) Received-SPF: pass (google.com: domain of joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.28 as permitted sender) client-ip=66.111.4.28; Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4D760205AA for ; Fri, 6 Nov 2015 06:39:54 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Fri, 06 Nov 2015 06:39:54 -0500 X-Sasl-enc: EEyO/Ob5wo3/kThZslmlwnCcUSNeEpl2VBOz6jVgtX6X 1446809993 Original-Received: from IdeaPad.messagingengine.com (eruc067.goemobile.de [134.76.38.67]) by mail.messagingengine.com (Postfix) with ESMTPA id AF2B8C013FE for ; Fri, 6 Nov 2015 06:39:53 -0500 (EST) User-agent: mu4e 0.9.13; emacs 24.5.50.1 In-reply-to: <20151104204424.GA82816-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org> X-Original-Sender: joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.28 as permitted sender) smtp.mailfrom=joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:13863 Archived-At: On Mi, Nov 04 2015, John MACFARLANE wrote: > If we did have two latex writers, I'd favor making the other > one customizable: all macros are pandoc-specific, and > defined in the template's preamble. This would give people > maximum flexibility to adjust output...you could even use > plain tex definitions of the macros for maximum compilation > speed and minimum dependencies (see https://github.com/jgm/pandoc/issues/1541). The idea of having just pandoc-specific macros sounds great, but I think there are a few things to think about. First, a pure-TeX writer would probably be more trouble than it's worth. TeX is pretty low-level and I doubt there are many Markdown users that really know enough TeX to be able to customise a TeX template. I know I certainly can't, and I consider myself quite a capable LaTeX (but not TeX!) user. For example, here's how you can create tables in TeX: http://www.volkerschatz.com/tex/halign.html As the code snippets show, customising the basic table macro \halign requires quite a lot of TeX knowledge. Also, Plain TeX does not support Unicode. You'd need XeTeX or LuaTeX for that, but I have no idea how much that would add to a basic TeX install. So, if you add a fully-customisable (La)TeX writer, I think it makes more sense to have it default to using LaTeX, with an option to use plain TeX instead if a user is so inclined. (I don't think the writer would have to be modified for this if you use custom macros. You'd just have to have two templates, one defining the custom macros using LaTeX and one defining them using plain TeX.) That way, it would be useful to a larger audience. -- Joost Kremers Life has its moments