From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25140 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Example yaml header with options depending on the output format Date: Wed, 06 May 2020 11:47:26 -0700 Message-ID: References: <4a0597de-a28f-4088-8de9-d8b623e682cf@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="51721"; mail-complaints-to="usenet@ciao.gmane.io" To: Dominique , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBS4MZT2QKGQEXUV2XPQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed May 06 20:47:44 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pj1-f57.google.com ([209.85.216.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jWP55-000DKb-Fo for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 06 May 2020 20:47:43 +0200 Original-Received: by mail-pj1-f57.google.com with SMTP id c18sf3184833pjo.2 for ; Wed, 06 May 2020 11:47:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1588790862; cv=pass; d=google.com; s=arc-20160816; b=qLF6dGItDMdtd9quJMTSib+QDcRZaP7SxzKEKf7DgteuAIRtZfdYf545+jyyfhX7fK w2QJOUUKWOQ0YNUWp4203CiVjokw/fXUAV0l9E7M7BcVjd6vyequXowUM04h02cBqqOF 2XvjDXUqdiAplzYHex1FgVUTdv5pdMshvfRItWmCkapWi8zQt3KKO0M9Epc9rL9KXvpt kXh332tsmxw6TMXpAnRhy4NQP7y6pTYISGHQG2i9ZuriOWINoa6EQQhfDHEUei62y5qR 5V2vYZCvWoDt3F6r0+MtNp1yUQm9guW6BnT9kA09O77Ku5jcmeaJyrQGbo+gi1+o0Rm7 y4tw== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=zcqJfIN25yiZzskvtv4oiuamScW3I969iGrFtYkOdtU=; b=PALyT9AHcpuCXHz1WeUIaQoa4JiX6Lw6eCmcpIlQsXbgIfj3rzBzptVpch/7RVdWUT n3KB8TfYCIpVVMU6ykUI+xGsBU9iSa2IYPDihieXBvIZ5ysXGFE/MHjtBqH6ywQJySkw edjT2KKu6dOHDMUFZKwI22QNNheWkBj7AVP3eLVHVUmmAbecZvTOumzYK+RpLxRpy+2U tiE7ZL5v3l3a2igNUF9KhCsqi9teTIZtBw2B7l+sSlnpnTdKGtpR9d3WxdFih+vLrObs lJxlx022xFkFyQwzizRBXnfaPJWdhINmHZSmLbMmGJ/Bf2SQU5bRrRKmOzkYNAapIGD7 Nryg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=RhFZ0IC0; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62d 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:to:subject:in-reply-to:references:date:message-id :mime-version: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=zcqJfIN25yiZzskvtv4oiuamScW3I969iGrFtYkOdtU=; b=df1N+ok8vkbnFBvQbYOKsKpC35xLf1hWl8FZ50kmwtPAOkX6WP3wXTTCmg2A4HigO2 4XHtFdsfBJZlRQwTdOvUscPCiGNCBVYK/JYHmW42sYH0q16AU5uKcn7W2LLzekqweA2b CDxoZqX3aqsL1q32NspA9xZZ9lZ4NEm/A0D65Obckp/NzRttkQdOMhcvlDZAkAvEBeYF s4wuyHecQpg4CVsN+kS4FCZq/yF4CIXOis1L1kY8doNOmw0bhjSdvVHvhqnaNY8APKQ3 7eQP/X79NyShORk3VuJaV07Zld2Hqex1c+yPzYOJLDXHY+zoTsmOa2SKrZz100gnDFfh jcQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version: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=zcqJfIN25yiZzskvtv4oiuamScW3I969iGrFtYkOdtU=; b=XUwLwauTk7oq9vJTh9eYdq+d4DmFoupXY9zulxoe6xLq/Af0CDIh10kSOujKqCrFJH pZMgC+nJiGR3bsibT9T2PUffgNOsQIE/j25Dd9guNBy85+svMrP7BiBzdPeuUbRM61cy eeiwXxLQGivgPHUtPrEhec0aNlk7qSOvEVhi8gxk1C2xs7NsKx8ZU6MOwhEZW9yyKvUL q/QaWMoIa+fzDR5logMvOU89BWeil2k0UfyhLmn0FcXs8pXwdKexbZAx3EgtxmrO/ReR LnRIkZqvIys+wsaMJ6ie+PXy82aYeHeIA1GJJBOwOiGHWQv/E4th6ST+MqXZSGyiYTwB 3ndQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AGi0PubgViOATQ+2v8tYX8iqZAvfu+ZMpNzKMhGVzHvB4kverrb/Tuy1 lXLBmvqb1N54GiTFrPjjt3I= X-Google-Smtp-Source: APiQypL20sKwGA4sAuu40xIwG709zkxexwtSPlkt7J6X1u/hdTy/5rQgP2yrxJtUKyIWL81L03ci0g== X-Received: by 2002:a17:90a:bc4a:: with SMTP id t10mr11324034pjv.104.1588790862196; Wed, 06 May 2020 11:47:42 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90a:c713:: with SMTP id o19ls4893479pjt.1.gmail; Wed, 06 May 2020 11:47:39 -0700 (PDT) X-Received: by 2002:a17:90a:9295:: with SMTP id n21mr11416072pjo.195.1588790859024; Wed, 06 May 2020 11:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588790859; cv=none; d=google.com; s=arc-20160816; b=FKl2efneLAO/tNKwaFbYBprE2po2OC2ljE1KIHtIIyukAr96b5evx/MvbKWjnjQGkQ DTXTW13Qp7tnXr1kcXqldwXTr3MtZyRvgUm4K0w2BAv6Wq7GwT8oSyKcpt5SxXJFJopB 2ndiD06prg/mx3EJ2rPguEjqhN9IDVxpV+w75BmDx2yhnrZexgpyyNn4ubEkBz/tESEX q3sSe8TLYPNGkw/xCyZ08LkyySiNtt9YZHryKiMMzY4BhZv+IYzipTKBnGup+KyukGnz gsfZc8Tz3aeogEftitGZmJ84q8hjQwFDDy6YEqNfO0SM9wWL8Uerqy4bosQ6pMDMIIDh 7Y8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=LeczwXDkU9DE7iU/VHkgwZnHC2uJ0UUgjZGRIQEchAg=; b=vwaoawJkJVe1IcJAh5ZQf9D/YE+KM7LN4zevuc4ei09vP+SooY+1deFwbfVEIoiOiw tVn/XfKFYoP3+ynnV97z2ajA4RvMgU5Ji8nNILNZsvbjg7u8xVtwbaMdaKiYQpFZ+eNT 99GO8Qkpw1Vm+tJvIz84NTa+oDbGmlYIGBFTlSIpQBRjHkQzksXZDnSHDKvu8aUAJRkz Q+kjp/QzUATE3lWV41W2/CKDF2QjzviD9RhVUxbjZaNtIyHbVmfGbHCQeORxYNMQIuy/ JwcO3YRTRediB0+h5jdAbdocZHXh0wAqXHVmx/lj/mpvT4SKLipPzyNAoPyVTkR+rNPK 4XmQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=RhFZ0IC0; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62d as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com. [2607:f8b0:4864:20::62d]) by gmr-mx.google.com with ESMTPS id g11si201131pgj.2.2020.05.06.11.47.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 May 2020 11:47:39 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62d as permitted sender) client-ip=2607:f8b0:4864:20::62d; Original-Received: by mail-pl1-x62d.google.com with SMTP id s10so881745plr.1 for ; Wed, 06 May 2020 11:47:39 -0700 (PDT) X-Received: by 2002:a17:902:8bc5:: with SMTP id r5mr1843686plo.218.1588790858616; Wed, 06 May 2020 11:47:38 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id r78sm2152865pgr.40.2020.05.06.11.47.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 11:47:37 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id A1277A256; Wed, 6 May 2020 14:47:26 -0400 (EDT) In-Reply-To: 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.s=20150623 header.b=RhFZ0IC0; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62d 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.io gmane.text.pandoc:25140 Archived-At: Put those under 'variables': variables: height: whatever Dominique writes: > Thanks, that seems reasonable. There's more to learn about Pandoc every day! > > I tried writing a defaults file but Pandoc complains that certain options > in there are not recognized. In particular, "height" and "revealjs-url" > appear invalid. They were recognized in the yaml header block (in the main > md source file). > > Same problem with Beamer: option "aspectratio" is not recognized. > > Any suggestions? > > On Wednesday, May 6, 2020 at 1:58:50 AM UTC-4, John MacFarlane wrote: >> >> >> Personally I'd suggest using a defaults file for the theme >> and other presentational details, reserving the YAML metadata >> for actual metadata. >> >> You could have one defaults file for revealjs and another for >> beamer; in addition to different themes, these could specify >> the output format. >> >> Dominique > writes: >> >> > I wrote a presentation in Markdown and converted it to HTML with pandoc >> > using the revealjs format. I set several options in the yaml header, >> > including the theme. >> > >> > Now I would like to export the same presentation to PDF using the beamer >> > output format. However, pandoc complains that the theme I selected for >> > Reveal.js isn't recognized for Beamer. Conversely, I would like to set >> > options for Beamer (e.g., aspectratio) that aren't recognized for >> Reveal.js. >> > >> > Could someone show an example of a yaml header block that specifies >> options >> > for two or more output formats? >> > >> > Thanks. >> > >> > -- >> > 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/4a0597de-a28f-4088-8de9-d8b623e682cf%40googlegroups.com. >> >> > > -- > 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b82861de-dc10-40bb-8d11-69a1ba6049cc%40googlegroups.com.