From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/14751 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: YAML block to carry LaTeX =?utf-8?Q?fo?= =?utf-8?Q?nt_details_--_how_do_I_preserve_'{'_and_=E2=80=98}=E2=80=98?= ? Date: Sat, 9 Apr 2016 19:39:30 -0700 Message-ID: <20160410023930.GA96031@MacBook-Air-2.local> References: <6c4977e8-6dca-4d33-a44b-a72a31603e60@googlegroups.com> 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; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1460255990 16705 80.91.229.3 (10 Apr 2016 02:39:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Apr 2016 02:39:50 +0000 (UTC) To: "kurt.pfeifle via pandoc-discuss" Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB37ZU24AKGQE5NEAV7Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Apr 10 04:39:46 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-qk0-f190.google.com ([209.85.220.190]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ap5Ht-0002MJ-7C for gtp-pandoc-discuss@m.gmane.org; Sun, 10 Apr 2016 04:39:45 +0200 Original-Received: by mail-qk0-f190.google.com with SMTP id e124sf45213282qkc.0 for ; Sat, 09 Apr 2016 19:39:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:from:date:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding: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=0k2ltyMQ+rP5xW82MKMYxY8OksvJonEDKfY2KkqDjx0=; b=IlBcq1p7X1bfpuRlE1/qrUgAHrCKnxv4HFsbv0c3+0wwCuB+AhV0wkz4dM1Bi7A4Dy gMmZaPkJJRwLl+MhHpkdqp8JkayhQEUwDpg4Fb2cbkBYeGDfSLWin/rbPVFpl60V2Z34 xEu3dRkXAMIZ3W9iefahRRkZ1FhCEqkfdtzZH6EEY2kwWkVfki9oNZQPl/7ltzX8LcRk XfvXyVAmbpFQKv2KQpA4dd0ibmGluWUBox77bAzFbOdxy3RizDRDpaMunTcD38egWzby g1x3+nOYXFfrbOZ+0Yc0hdCL50NNdAeqewnD6SHfYCYM2N6eKo+Zguhu7rqHL5/p X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding: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=0k2ltyMQ+rP5xW82MKMYxY8OksvJonEDKfY2KkqDjx0=; b=Wv6lJU1ILY4j35QhMyhccb8gV92Dn8xfTTPTOT2mkY7cIErFXjRlVFi/8+92USBqWI NwZbq/vxXjdWzyubLQJlzKty0hzB/rmDV6nzJV/SP+O8mAiOkybPdEqPOpNofdJIH3pZ 2ej9KjYIy5ls74IU3oOzbDaXmw5HKdDriBMNxU6kTuZAg360LwYMenYYIKvF++QJLmvR IdHeiZ0gcr+4npcPVDbBkiYY05Ceo6PYVLFE+XBM01l1mfgJXWNAVH8womTMCc1HCTsK cM+g84sF6Tl/s/DBUFrRzKVMvfHzLCfIs Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AD7BkJJHlSoj5AmjITJChWwPJ7fyoy29jnlXbOTwAcJI9q7TkY8qfD1e2IjdI2ysks06jg== X-Received: by 10.50.155.72 with SMTP id vu8mr222504igb.5.1460255984375; Sat, 09 Apr 2016 19:39:44 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.50.111.36 with SMTP id if4ls549537igb.2.gmail; Sat, 09 Apr 2016 19:39:43 -0700 (PDT) X-Received: by 10.50.79.161 with SMTP id k1mr7220712igx.3.1460255983772; Sat, 09 Apr 2016 19:39:43 -0700 (PDT) Original-Received: from mail-pf0-x230.google.com (mail-pf0-x230.google.com. [2607:f8b0:400e:c00::230]) by gmr-mx.google.com with ESMTPS id y20si937844pfa.2.2016.04.09.19.39.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Apr 2016 19:39:43 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::230 as permitted sender) client-ip=2607:f8b0:400e:c00::230; Original-Received: by mail-pf0-x230.google.com with SMTP id e128so100300452pfe.3 for ; Sat, 09 Apr 2016 19:39:43 -0700 (PDT) X-Received: by 10.98.68.209 with SMTP id m78mr23229128pfi.153.1460255983578; Sat, 09 Apr 2016 19:39:43 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id t1sm2144258paa.17.2016.04.09.19.39.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Apr 2016 19:39:42 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 0BC89A5B3; Sat, 9 Apr 2016 22:39:31 -0400 (EDT) Content-Disposition: inline In-Reply-To: <6c4977e8-6dca-4d33-a44b-a72a31603e60-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-PGP-Key: http://johnmacfarlane.net/jgm.asc User-Agent: Mutt/1.5.23 (2014-03-12) 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; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::230 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-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:14751 Archived-At: See BP Johnson's suggestions (recently in this list) about using a dummy latex macro to protect text from being interpreted as Markdown. +++ kurt.pfeifle via pandoc-discuss [Apr 09 16 15:34 ]: > I am starting to experience with YAML blocks, so that I store as many > as possible source-specific Pandoc command line options and variables > within the Markdown source file for easier reproducability at a later > stage. > > Most things which I currently use work file, except one (which is: > successfully passing some font features into the LaTeX output). > > Here is my complete YAML block: >--- >title: Some Document >subtitle: > - This is a test for using YAML for metadata. >author: > - name: Some Name > affiliation: University of Somewhere > - name: Some Other Name > affiliation: University of Nowhere >date: 2016-04-10 >toc: yes >numbersections: yes >toc-depth: 3 >geometry: > - paperwidth=3D595pt > - paperheight=3D842pt > - showframe=3Dfalse > - showcrop=3Dfalse > - hmargin=3D72pt > - headsep=3D54pt > - top=3D66pt > - bottom=3D78pt >author-meta: "Some Name, Some GmbH" >subject-meta: "Knowledge-Based Information Extraction" >title-meta: "Some Phantasy Title" >pdfstartpage: 2 >keywords: "Essay, Important, Difficult" >fontsize: 12pt >lang: de >mainfont: WeidemannBook >mainfontoptions: BoldFont=3DWeidemannStd-Bold.otf, ItalicFont=3DWeidemann= BookItalic >.otf, BoldItalicFont=3DWeidemannStd-BoldItalic.otf, ItalicFeatures=3DColou= r=3DAA0000, >BoldFeatures=3D{Colour=3D0000AA}, BoldItalicFeatures=3D{Colour=3DAA00AA} >monofont: Letter Gothic Std >monofontoptions: [ Scale=3D0.8, Colour=3DAA0000, Numbers=3DLining, Numbers= =3DSlashedZero >, ] >documentclass: scrartcl >header-includes: >... > > My problem is with this line: >mainfontoptions: BoldFont=3DWeidemannStd-Bold.otf, ItalicFont=3DWeidemann= BookItalic >.otf, BoldItalicFont=3DWeidemannStd-BoldItalic.otf, ItalicFeatures=3DColou= r=3DAA0000, >BoldFeatures=3D{Colour=3D0000AA}, BoldItalicFeatures=3D{Colour=3DAA00AA} > > In LaTeX the output becomes: >\setmainfont[BoldFont=3DWeidemannStd-Bold.otf, > ItalicFont=3DWeidemannBookItalic.otf, > BoldItalicFont=3DWeidemannStd-BoldItalic.otf, > ItalicFeatures=3D\{Colour=3DAA0000\}, > BoldFeatures=3D\{Colour=3D0000AA\}, > BoldItalicFeatures=3D\{Colour=3DAA00AA\}]{WeidemannBook} > > This does not compile to PDF and gives this error: >! LaTeX error: "kernel/misplaced-equals-sign" >.... >LaTeX is attempting to parse some key-value input but found two equals sig= ns not > separated by a comma. > > If I remove the backslashes which escape the curly braces, like so: >\setmainfont[BoldFont=3DWeidemannStd-Bold.otf, > ItalicFont=3DWeidemannBookItalic.otf, > BoldItalicFont=3DWeidemannStd-BoldItalic.otf, > ItalicFeatures=3D{Colour=3DAA0000}, > BoldFeatures=3D{Colour=3D0000AA}, > BoldItalicFeatures=3D{Colour=3DAA00AA}]{WeidemannBook} > > then the code compiles and works as expected =E2=80=94 I get different = colors > for bold, italic and bold-italic text: > > [1][1.png] > > How can I get the required curly braces into the LaTeX output > un-escaped from setting it up in the YAML block? > > Or is there an alternative way to get my wanted main font `*Features` > to work? > > Thanks, Kurt > =E2=80=8B > > -- > 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 [2]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to > [3]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > [4]https://groups.google.com/d/msgid/pandoc-discuss/6c4977e8-6dca-4d33- > a44b-a72a31603e60%40googlegroups.com. > For more options, visit [5]https://groups.google.com/d/optout. > >References > > 1. https://lh3.googleusercontent.com/-rI8n718kiu8/VwmBiyHwHiI/AAAAAAAAA= iY/FEjuI3w6YDwCfgEW65d-VRn_DkorZO6Xw/s1600/1.png > 2. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 3. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 4. https://groups.google.com/d/msgid/pandoc-discuss/6c4977e8-6dca-4d33-= a44b-a72a31603e60-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=3Demail&utm_source=3Dfooter > 5. https://groups.google.com/d/optout --=20 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 e= mail 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/20160410023930.GA96031%40MacBook-Air-2.local. For more options, visit https://groups.google.com/d/optout.