From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18022 Path: news.gmane.org!.POSTED!not-for-mail From: David Nebauer Newsgroups: gmane.text.pandoc Subject: Re: Context template: definefontfeature causes error Date: Mon, 7 Aug 2017 00:00:55 -0700 (PDT) Message-ID: References: <60cb5b4b-6529-4eff-9403-df62472529a6@googlegroups.com> <20170807050041.GB81152@Johns-MacBook-Pro.local> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2971_1202122860.1502089255903" X-Trace: blaine.gmane.org 1502089259 14225 195.159.176.226 (7 Aug 2017 07:00:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 7 Aug 2017 07:00:59 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD7YRUMRLYIKRIFAZQCRUBB2QK532-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Aug 07 09:00:53 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pf0-f186.google.com ([209.85.192.186]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dec1z-0003NU-4a for gtp-pandoc-discuss@m.gmane.org; Mon, 07 Aug 2017 09:00:51 +0200 Original-Received: by mail-pf0-f186.google.com with SMTP id s86sf4847654pfd.3 for ; Mon, 07 Aug 2017 00:00:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=JzyC2xNdTY9wqDSWYd/eCsyfullkx8oRPdUtaarbo1g=; b=WiFODIiNgcTx2V0oy/EWsY6bPEF+DZcm0Ucm9exbDEZcHJE5NREdtgQbKpsz76vhgi goS3uC3vyy9m4lM8nV3/wHZ3LBnAcdObiBsl0y/QbqBR5hKmd+LZqgciTWHBTr9t6dVD I3XWJitn2RyyAaBzb7SW5BV25l23EkL7t3g9OhmZ5srbD4HzaOAhJ/KybCjrkHas5TUV fxQmjisnxnjccrkC6stVIAYRiDNfl1jNIxu/HE0cenpOxliESFcTFnn4DgHxZ+oF/HvO ZhvzanFWUALmW80XoYl62+tbVJPAKv+0puAjRkZb0loxbuQlucVaNHUgebxuyYQAwFqh wnYA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=JzyC2xNdTY9wqDSWYd/eCsyfullkx8oRPdUtaarbo1g=; b=bridaC2no0dQ5EyJihGbx63b8Uohh94GweFWcFyn3cLbVnUl+tPTGAsceqFa14Mt8F BqGARm3qcdrRI78fEgwNCDT59Cpu6ELlDEtTXg6wj9A1Dawv6quE2x4D7PDrs5lBTGdn n00H0JlGBpCIAulcNuzFSIM2x9gLnZ+dwXmt7aLRa3rFismmuzlVGeE2t6CX/KeuX8G2 zQKJHazCIl7g0pDkCKE2WG0hJA152bicHyoy0Yl6e171Gu9pW+spXCkH2p7L73PkAx/i ywdG7NRAsMu55rl4KvmVQnqa439kqF/320rJtYgl5HyuIP072Og93aPkAaeCyWGimhF1 vPEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=JzyC2xNdTY9wqDSWYd/eCsyfullkx8oRPdUtaarbo1g=; b=kg7HNEE50La4/AU8RsdWnovWdpOFIAiLxbOvAey5E1MsDs6IhFZJv5XHxurR7kzjXL zOtVBa094xk5m1d7ukz+kPS+Nwjdazp4NAQPT3anClGk+sRLFtgtTt7cwnRSiy5nVoxA L7LgLIT7OrgWsGGtFZF8GdRqSMut4XxLPlzYPqoLCdCS1RoSyQAl5VyILmZ5GFG2jNKB OYvqI27SjMkziJ0jgE1XRmwtyL3HDm6mG93OynUYkXlEwq9Al90jZX81xn90xZbT1Fa/ M/0FpkMKYdcMZm/eOH25EEgzP3iiRu5ToaZNhLxX9fLwdKD5TFMSYuxB9r9vMr6CEWQ7 7pgg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AIVw112GAIU390dv5REpkjJUzdtRgFucxD1dEQvVhf0XRUOKO46AFs5j DMX6losO2c3LZg== X-Received: by 10.36.1.208 with SMTP id 199mr352790itk.6.1502089257195; Mon, 07 Aug 2017 00:00:57 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.142.67 with SMTP id q64ls444248iod.47.gmail; Mon, 07 Aug 2017 00:00:56 -0700 (PDT) X-Received: by 10.36.50.88 with SMTP id j85mr352252ita.12.1502089256418; Mon, 07 Aug 2017 00:00:56 -0700 (PDT) In-Reply-To: <20170807050041.GB81152-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org> X-Original-Sender: davidnebauer-Re5JQEeQqe8AvxtiuMwx3w@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:18022 Archived-At: ------=_Part_2971_1202122860.1502089255903 Content-Type: multipart/alternative; boundary="----=_Part_2972_1391958135.1502089255903" ------=_Part_2972_1391958135.1502089255903 Content-Type: text/plain; charset="UTF-8" Genius. I changed the papersize parameter variable value from 'a4' to 'A4' and the problem disappeared. Thanks for the help -- that would have taken me forever to track down. On Monday, 7 August 2017 14:30:56 UTC+9:30, John MacFarlane wrote: > > 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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > > To post to this group, send email to > > [2]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@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-...-/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 > > -- 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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e368266c-a7d5-41d5-b8c0-0e63981f44b6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_2972_1391958135.1502089255903 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Genius. I changed the papersize parameter=C2=A0variable va= lue=C2=A0from 'a4' to 'A4' and the problem disappeared. Tha= nks for the help -- that would have taken me forever to track down.

= On Monday, 7 August 2017 14:30:56 UTC+9:30, John MacFarlane wrote:Can you give exact instructions (inclu= ding any inputs) for
recreating the problem, so we can test?

Note: you might try setting papersize to 'A4' (capital
letter A), instead of 'a4'. =C2=A0I 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 ]:
> =C2=A0 When creating pdf output using context, pandoc fails with t= he error
> =C2=A0 message:
> =C2=A0 tex error on line 15 in file /tmp/tex2pdf.2478/input.tex: != Missing
> =C2=A0 number, treated as zero
> =C2=A0 On creating context output line 15 turns out to be:
> =C2=A0 \definefontfeature[default][default][script=3Dlatn,
> =C2=A0 protrusion=3Dquality, expansion=3Dquality, itlc=3Dyes, text= italics=3Dyes,
> =C2=A0 onum=3Dyes, pnum=3Dyes]
> =C2=A0 On processing the context output directly I get the followi= ng expanded
> =C2=A0 error message for line 15:
> =C2=A0 Dimensions can be in units of em, ex, in, pt, pc,
> =C2=A0 cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
> =C2=A0 I'll assume that you meant to say pt, for printer's= points.
> =C2=A0 To recover gracefully from this error, it's best to
> =C2=A0 delete the erroneous units; e.g., type `2' to delete
> =C2=A0 two letters. (See Chapter 27 of The TeXbook.)
> =C2=A0 tex error =C2=A0 =C2=A0 =C2=A0 > tex error on line 15 in= file FILEPATH.tex: ! Illegal
> =C2=A0 unit of measure (pt inserted)
> =C2=A0 In case it helps, here is the context output up to and incl= uding line
> =C2=A0 15:
> =C2=A0 % Enable hyperlinks
> =C2=A0 \setupinteraction
> =C2=A0 =C2=A0 [state=3Dstart,
> =C2=A0 =C2=A0 title=3D{Minimal Working Example},
> =C2=A0 =C2=A0 style=3D,
> =C2=A0 =C2=A0 color=3Dblue,
> =C2=A0 =C2=A0 contrastcolor=3D]
> =C2=A0 % make chapter, section bookmarks visible when opening docu= ment
> =C2=A0 \placebookmarks[chapter, section, subsection, subsubsection= ,
> =C2=A0 subsubsubsection, subsubsubsubsection][chapter, section]
> =C2=A0 \setupinteractionscreen[option=3Dbookmark]
> =C2=A0 \setuptagging[state=3Dstart]
> =C2=A0 \setuppapersize[a4]
> =C2=A0 % use microtypography
> =C2=A0 \definefontfeature[default][default][script=3Dlatn, pr= otrusion=3Dquality,
> =C2=A0 expansion=3Dquality, itlc=3Dyes, textitalics=3Dyes, onum=3D= yes, pnum=3Dyes]
> =C2=A0 Pandoc version is 1.17.2 on debian/testing.
>
> =C2=A0 --
> =C2=A0 You received this message because you are subscribed to the= Google
> =C2=A0 Groups "pandoc-discuss" group.
> =C2=A0 To unsubscribe from this group and stop receiving emails fr= om it, send
> =C2=A0 an email to [1]pandoc-discus...@googlegroups.com.
> =C2=A0 To post to this group, send email to
> =C2=A0 [2]pandoc-...@googlegroups.com.
> =C2=A0 To view this discussion on the web visit
> =C2=A0 [3]http= s://groups.google.com/d/msgid/pandoc-discuss/60cb5b4b-6529-4eff-<= /a>
> =C2=A0 9403-df62472529a6%
40googlegroups.com.
> =C2=A0 For more options, visit [4]https:= //groups.google.com/d/optout.
>
>References
>
> =C2=A0 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> =C2=A0 2. mailto:pandoc-...@googlegroups.com
> =C2=A0 3. https://groups.google.com/d/msgid/pandoc-discuss/60cb5b4b-6= 529-4eff-9403-df62472529a6@googlegroups.com?utm_medium=3Demail&am= p;utm_source=3Dfooter
> =C2=A0 4. https://groups.google.com/d/optout

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/e368266c-a7d5-41d5-b8c0-0e63981f44b6%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_2972_1391958135.1502089255903-- ------=_Part_2971_1202122860.1502089255903--