From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18020 Path: news.gmane.org!.POSTED!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Context template: definefontfeature causes error Date: Sun, 6 Aug 2017 22:00:41 -0700 Message-ID: <20170807050041.GB81152@Johns-MacBook-Pro.local> References: <60cb5b4b-6529-4eff-9403-df62472529a6@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed X-Trace: blaine.gmane.org 1502082064 15357 195.159.176.226 (7 Aug 2017 05:01:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 7 Aug 2017 05:01:04 +0000 (UTC) User-Agent: Mutt/1.6.2 (2016-07-01) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBBPIT7GAKGQEUG6RKQQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Aug 07 07:00:50 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk0-f61.google.com ([209.85.213.61]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dea9o-0003ET-Hk for gtp-pandoc-discuss@m.gmane.org; Mon, 07 Aug 2017 07:00:48 +0200 Original-Received: by mail-vk0-f61.google.com with SMTP id 65sf4338710vkq.3 for ; Sun, 06 Aug 2017 22:00:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1502082054; cv=pass; d=google.com; s=arc-20160816; b=ogjOLQ/CtfkDxwHQzkVrSEKWEOHHlmO+zAqWFn8DLlK4TxO9Ulcr4762ec69WcZBzM kULQ/GCcg/sZOM9dlf0hmubuXlLCzPJBYQ2Ii3+5ktWwd9bmOehAcsdkk4C6+aiqhxqP oDn9mvsPuPbILgPBYfBjwEMQiIdZS2pWZLYm+HPKcwRT2EWgHvl+8G6KGHC1hpJJYNEe 5FE6L6MISBQrZfBTRKQxpaxcwbLmQUHkvr4LZ1Vzg4nUiGKZcEop0SI26RB+WdIfZYEs QcOqlN4N4X+Y5lc2P5ZR0dsfHFca92h+gcz/jTOCRxeXwwl0iz3hPriRso/TSVsp5cmN Idpg== 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:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :date:from:arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=hygYzOIIN0HQChbMzM0m4GFDvj6NOAqIUWTA6LUtSyI=; b=FWsQle5RGisYokXmobW0C8eAu+8VNWozq9OmJn0KMAJ+BbDVrc6tCDgtGz5Wk8uzMc ZJQt4/tBYpgRPx0uGe9mhPoDh7CCJxDIlUjV6YdilMxMYgquHRepVGxcye/ujYWHxUET 2uHbJ1o5X2LSgVLJrS4zsE3VuPE1GD604/rddaw+ubJi1ZFSIAZ0pktkAzRLKsnEg4nV ejN6k5/VkEZU44iZLBaCYN3t50zs3IWHHbYbY6Sv6gRf9MdY6wOvpgPC2nao9updwdrP WxM8W8CCnHB/KKtZh1CLlR/sAX/G9QrCc3V+UJ6KKy+mLA6bF1+kZXLxvPazuQC1VF3S ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.b=U0pEFJdP; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::241 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent: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=hygYzOIIN0HQChbMzM0m4GFDvj6NOAqIUWTA6LUtSyI=; b=p+ao4qCnrvj75/MYein2svwdmj1T+fev1teu1Y5fFQx/Ftlj8Gdjf8DlymGoogSWVP ohy3buYIw3nqw/90creBgMsar2ycvhrHwPjOAahe50ARaP1xRoZR5VhSzA8h5oun+nQ2 hTO5gtSYEOXObpTeLSgPOtwSgZBOlJ8nd728yJBlK2fMdgI3y0eSyD7+q9RlPkmVmOti LhZ1Wev67Ci8qMBF0tdoJup52P45OcTAFpX92ETbIYgXLnMXNkYF3HrKdnSfABjVsBWA KNGGIe1pyTP3zS/sJy4TzWS8IrPTt4+fpllBqIMdUd1Ws7pEQ2s5+nlBFtMNjMIYWPW/ m8UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent :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=hygYzOIIN0HQChbMzM0m4GFDvj6NOAqIUWTA6LUtSyI=; b=URl8fa7x6F6MeyuTDharPJwRnEBdzvpYhTGzVFOiiWW+SDYlfXWxYG5rY7BdLLy6a/ ww+aaeh//bevkGiqB5wvNOO+PsFf8YNvDiOyDgnLW4xGr7Y09h7+RtsAR4HUtBaGM00N zpryXKo3793zHSmDBdeGq6usBFgmvMyJFPWP+sD3bjQYiC8kOzoxUbxLlL/rxsfGjabx AyswywWBBW0CCZ7suytkL7ULWwseOlxj6zSl+HWENvH9Ccu3fZ8i7+1z7kfTOzY6h0Sc Hk/AQOgBTQpkEonGGR1lzA6ptGhxfiSvSh2I5qXTsJu2ZLlkQRtjGZTozdzj1Uv+TgCO Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AHYfb5h3EikDALwR9OtTIn5MTwxKmFj77GtLR6WG0P5FYZWbm0Msx1kv vwAXe3JfpYPUQQ== X-Received: by 10.36.250.70 with SMTP id v67mr341265ith.2.1502082054675; Sun, 06 Aug 2017 22:00:54 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.205.199 with SMTP id d190ls349219iog.41.gmail; Sun, 06 Aug 2017 22:00:53 -0700 (PDT) X-Received: by 10.237.37.225 with SMTP id y30mr7297054qtc.53.1502082053188; Sun, 06 Aug 2017 22:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502082053; cv=none; d=google.com; s=arc-20160816; b=hN1KWRN/P7AuYoLBO1omxpXCz70uWpX1Gym88p2ZV5QftErGIHjVEp9Hbw+LAsF3NF D3UCQdtRV/vINXZys/5O6uh+AaBGYzt3ffwGvEU/E3PqWTV/z84oG/Ve+zHIFlCACyez AWDfwvk5t+sMUlh1W0q+3OEd4oJEpRcM2ORoeSeZr5/V4QoIdtUUqH3HxjSy8Fm10aYx 5bXC78cpACwKcpoPs4x9RR0WsHr3TUreYy9mE6yEYnAk8yLpNyNTmu9vNukdSGX02a8I PayA8TNZ7bWeyzA70iPayzSy7gji01KywkQAH8lF7Rnc2Pku8VxRTFWbp0sNEisc3twi YYZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:to:date:from:dkim-signature :arc-authentication-results; bh=ygqrS8mdE58itV0VTpWzm+a10wgdZv98k8KXOTk3zmc=; b=TO/wpmM+GT3UX6mCpGZeL+VGLzVQGfW4KaD+s94euymG9GD/+FGpR2vg1YRR2A3qaw lQHUZ+QMV4UL7W5+hcJ50rFIkaozKC0cVTciMsLAGt2572snjd26s8Ut1hbZuYEj/+7G J6Rh3Gl8a9hh7+oImFTPGTCM1OFgM4cgz2XKA0bVCghbi5T7QeBGT+Z+WwB/7u+01b1a I/i+Aad827F892HqKJw/MvaQG/2L8giWrpPfUbJRVBCoLL28BWbKE6CaqWhF+nqeriwB h81Gs82xIQhUbwHFFngQfFXzxVT0ub1nIPueRKaFcyYLwWwbxjQ6hmh1e7wajBkEP3kV K/cQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.b=U0pEFJdP; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::241 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com. [2607:f8b0:400e:c00::241]) by gmr-mx.google.com with ESMTPS id w75si977877pfi.5.2017.08.06.22.00.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Aug 2017 22:00:53 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::241 as permitted sender) client-ip=2607:f8b0:400e:c00::241; Original-Received: by mail-pf0-x241.google.com with SMTP id j68so7962847pfc.2 for ; Sun, 06 Aug 2017 22:00:53 -0700 (PDT) X-Received: by 10.99.141.200 with SMTP id z191mr10150819pgd.419.1502082052709; Sun, 06 Aug 2017 22:00:52 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id p126sm12166020pfp.28.2017.08.06.22.00.52 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 06 Aug 2017 22:00:52 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 7A1E7A1C5; Mon, 7 Aug 2017 01:00:41 -0400 (EDT) Content-Disposition: inline In-Reply-To: <60cb5b4b-6529-4eff-9403-df62472529a6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-PGP-Key: http://johnmacfarlane.net/jgm.asc X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.b=U0pEFJdP; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::241 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:18020 Archived-At: Can you give exact instructions (including any inputs) for recreating the problem, so we can test? Note: you might try setting papersize to 'A4' (capital letter A), instead of 'a4'. I doubt that's the issue here, but it is one thing we've fixed recently (pandoc dev version will automatically capitalize 'a4' for ConTeXt output). +++ David Nebauer [Aug 06 17 19:55 ]: > When creating pdf output using context, pandoc fails with the error > message: > tex error on line 15 in file /tmp/tex2pdf.2478/input.tex: ! Missing > number, treated as zero > On creating context output line 15 turns out to be: > \definefontfeature[default][default][script=latn, > protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, > onum=yes, pnum=yes] > On processing the context output directly I get the following expanded > error message for line 15: > Dimensions can be in units of em, ex, in, pt, pc, > cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one! > I'll assume that you meant to say pt, for printer's points. > To recover gracefully from this error, it's best to > delete the erroneous units; e.g., type `2' to delete > two letters. (See Chapter 27 of The TeXbook.) > tex error > tex error on line 15 in file FILEPATH.tex: ! Illegal > unit of measure (pt inserted) > In case it helps, here is the context output up to and including line > 15: > % Enable hyperlinks > \setupinteraction > [state=start, > title={Minimal Working Example}, > style=, > color=blue, > contrastcolor=] > % make chapter, section bookmarks visible when opening document > \placebookmarks[chapter, section, subsection, subsubsection, > subsubsubsection, subsubsubsubsection][chapter, section] > \setupinteractionscreen[option=bookmark] > \setuptagging[state=start] > \setuppapersize[a4] > % use microtypography > \definefontfeature[default][default][script=latn, protrusion=quality, > expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes] > Pandoc version is 1.17.2 on debian/testing. > > -- > You received this message because you are subscribed to the Google > Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to > [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > [3]https://groups.google.com/d/msgid/pandoc-discuss/60cb5b4b-6529-4eff- > 9403-df62472529a6%40googlegroups.com. > For more options, visit [4]https://groups.google.com/d/optout. > >References > > 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 3. https://groups.google.com/d/msgid/pandoc-discuss/60cb5b4b-6529-4eff-9403-df62472529a6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > 4. https://groups.google.com/d/optout