From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/14750 Path: news.gmane.org!not-for-mail From: "kurt.pfeifle via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: =?UTF-8?Q?YAML_block_to_carry_LaTeX_font_detai?= =?UTF-8?Q?ls_--_how_do_I_preserve_'{'_and_=E2=80=98}=E2=80=98_=3F?= Date: Sat, 9 Apr 2016 15:34:18 -0700 (PDT) Message-ID: <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: multipart/mixed; boundary="----=_Part_494_1343925596.1460241258258" X-Trace: ger.gmane.org 1460241262 11931 80.91.229.3 (9 Apr 2016 22:34:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Apr 2016 22:34:22 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDO5LOXQ2AARB2UGU24AKGQECZLDLYQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Apr 10 00:34:22 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-qk0-f189.google.com ([209.85.220.189]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ap1SO-0004tu-Pq for gtp-pandoc-discuss@m.gmane.org; Sun, 10 Apr 2016 00:34:21 +0200 Original-Received: by mail-qk0-f189.google.com with SMTP id e124sf44845381qkc.0 for ; Sat, 09 Apr 2016 15:34:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:message-id: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=LBtbI1AAv58vZweExLa/LOsRrw4PiybU+apwQanMuOk=; b=pZpnWj7B96TxjvEQZpxdyaet/IV0P909Ij9eyfitc2aXL3ZfUiTWbAHBfE/XHGjbQf BLWQYwRI5k9QDmP/DNnKYUVqtWHBXvtMp5EGOROq97qSHRunZJZFAnG8XY+wL9l/A7b0 nlaz5tJrfQdCFQCdoorJeisHPdMTV5CfwxgDoEk+E3hsz11yBLDP6/65C+Rpnu9Vzdjx mVBNgL7zhGaS2n5p6ePZ5Wu8mm3kXdGnLfOagxdFifNqBu6ulQtDuwzIAXJQh1/cV4Ue P9QGCc2MfJVg0AFhhBdS2Zjw3oKhb6p1LXmqSYWax/T+mZyb3llbTksdohyEI5JDAagt hxVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:message-id: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=LBtbI1AAv58vZweExLa/LOsRrw4PiybU+apwQanMuOk=; b=eKnMaZGyTG26nS7DSJksdfBPLnUEwEagRwoQtzxi20SuGr1Rard0jBKZ8O6vVw5vsb TDQIzmApJKLespet3Sg3kM4U46EktUomWU/NXBtY9b6sRHCPXIywCnPBF+WXqRgeks3K 91nZ3e8hSVVtTT0fZz//mvgmH4j7RmkqylGKw9oRpyWMlXpYb+HQAx0IJWhs0OOl0Mou V1zzNO2ysx3Y1UqsSzhxOfvpPF65vF6n6+eUXLkmtWF5wWsVRFq6JtAviUmIo/ZyR2z3 A/N20lkj+8KTaXA17q3nGMyeNHVbWD3Gk6roOiajzPpw3VbM/x2POTNfUnrMiJGeq0mT rSBw== X-Gm-Message-State: AD7BkJKlZbPJpxIG+1xRC8HT07vUn1BXXrS5WWkOdqsElFr/Ok63kynO9iAa+0j7f6Ls0Q== X-Received: by 10.157.39.53 with SMTP id r50mr163455ota.4.1460241259700; Sat, 09 Apr 2016 15:34:19 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.182.131.169 with SMTP id on9ls702269obb.87.gmail; Sat, 09 Apr 2016 15:34:18 -0700 (PDT) X-Received: by 10.182.205.164 with SMTP id lh4mr162826obc.5.1460241258797; Sat, 09 Apr 2016 15:34:18 -0700 (PDT) X-Original-Sender: kurt.pfeifle-gM/Ye1E23mwN+BqQ9rBEUg@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: , X-Original-From: kurt.pfeifle-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org Xref: news.gmane.org gmane.text.pandoc:14750 Archived-At: ------=_Part_494_1343925596.1460241258258 Content-Type: multipart/alternative; boundary="----=_Part_495_888210180.1460241258258" ------=_Part_495_888210180.1460241258258 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I am starting to experience with YAML blocks, so that I store as many as=20 possible source-specific Pandoc command line options and variables within= =20 the Markdown source file for easier reproducability at a later stage. Most things which I currently use work file, except one (which is:=20 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=3DWeidemannBookItalic.otf, BoldItalicFont=3DWeidemannStd-BoldIt= alic.otf, ItalicFeatures=3DColour=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, ItalicFeature= s=3DColour=3DAA0000, BoldFeatures=3D{Colour=3D0000AA}, BoldItalicFeatures= =3D{Colour=3DAA00AA}* In LaTeX the output becomes: \setmainfont[BoldFont=3DWeidemannStd-Bold.otf, ItalicFont=3DWeidemannBookItalic.otf,=20 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 sign= s 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 colo= rs for=20 bold, italic and bold-italic text: How can I get the required curly braces into the LaTeX output un-escaped=20 from setting it up in the YAML block? Or is there an alternative way to get my wanted main font `*Features` to=20 work? Thanks, Kurt =E2=80=8B --=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/6c4977e8-6dca-4d33-a44b-a72a31603e60%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_495_888210180.1460241258258 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I am starting to experience with YA= ML blocks, so that I store as many as possible source-specific Pandoc comma= nd line options and variables within the Markdown source file for easier re= producability at a later stage.

Most things which I currently us= e work file, except one (which is: successfully passing some font fe= atures into the LaTeX output).

Here is my complete YAML block:<= /p>

---
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=3DWeidemannBookItalic.otf, BoldItalicFont=3DWeidemann=
Std-BoldItalic.otf, ItalicFeatures=3DColour=3DAA0000, BoldFeatures=3D{Colou=
r=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=3D=
WeidemannBookItalic.otf, BoldItalicFont=3DWeidemannStd-BoldItalic.otf, Ital=
icFeatures=3DColour=3DAA0000, BoldFeatures=3D{Colour=3D0000AA}, BoldItalicF=
eatures=3D{Colour=3DAA00AA}

In LaTeX the output becomes:

\setmainfont[BoldFont=3DWeidemannStd-Bold.otf,
  ItalicFont=3DWeidemannBookItalic.otf,=20
  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/mispl=
aced-equals-sign"
....
LaTeX is attempting to parse some key-value input but found two equals sign=
s not separated by a comma.

If I remove the backslashes whic= h 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}<=
font color=3D"#f8f8f8">,
  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-ita= lic text:

How can I get the req= uired curly braces into the LaTeX output un-escaped from setting it up in t= he 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 &= 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/6c4977e8-6dca-4d33-a44b-a72a31603e60%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_495_888210180.1460241258258-- ------=_Part_494_1343925596.1460241258258--