From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31501 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'Marek Stepanek' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Define Classoption landscape in YAML Header Date: Mon, 3 Oct 2022 09:17:00 -0700 (PDT) Message-ID: <8b56978a-73a7-4c52-9d23-058aac94dbd4n@googlegroups.com> References: <0AF82EB2-E41A-48AB-A502-065A1BA5D069@googlemail.com> <833DC8A0-1188-416D-8227-2B95EE2ABB3C@gmail.com> <030d0b12-280e-4c76-ad01-ae63c7f0de18n@googlegroups.com> <329B8145-4825-47FD-AB9F-11D0D60D934C@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1496_503392727.1664813820061" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39531"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD6M3P4AXQHRB7MV5SMQMGQEAZFBGNA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Oct 03 18:17:05 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f191.google.com ([209.85.167.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ofO7t-000A2L-DO for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 03 Oct 2022 18:17:05 +0200 Original-Received: by mail-oi1-f191.google.com with SMTP id m21-20020a0568080f1500b00350c7fc362csf4021677oiw.11 for ; Mon, 03 Oct 2022 09:17:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date; bh=r8Vr21W3o60J83h464f+pc3JD4Kw/yoeCG52XKz4SXQ=; b=PkciW7uAnVFexUzvDvsXkMhPHJYUmQsVvziKkIl6RXILO0CpJja+gP27CF2wQgVA3h st61ftDY5Sy77maSLE5+sptT9C3sLwE864NW9BuDDoWxTl5MB24OBBNBOmXilrzjh0tZ dBZIey+J8P6qSklZYEdumE2dRXWlaP3ZlfK8KHWpWSmVxTl7llFx1nT/cpcrc5g8aDHo AsytUnvrq5HOsnKRb+Ai94IdOnW35slJh1johE4f4X8lz93ifJiTJm/LyNxs0CWxSC1l q4bDc3SBuxSSHt7p7yjwOXG33747MmXdWguB2wJHcoTMm6kLcuLxUiUYI/l3OeuMbNH3 Dq2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=r8Vr21W3o60J83h464f+pc3JD4Kw/yoeCG52XKz4SXQ=; b=fvu0BvM18/xLcMiTrZXVx/AQMmZHOW2ESsSFzCKD0Ah8y9ri/y0d6w/WFRtcSJMfyM IG0KM46BGTBpdZObNysOAho6sfUgXok2PMoegpt6cRx8jMkVwVtiLGG0clZfo9qxik8A kliLueylpYtggtOiSLb3NLcordNoVHAYpkEHQMXm4kLrfZoseB2xeM2iRhy3+TD1jODL 3xghMdY07pzPymb6NEphKu+QhvcfkBmBtlwEBF0ADF7xHFnDM2TpHlZg+l7DZC+vFFyS 5U2omRHwzkGJbfkgkQrFojO7bXmPmtIH/IJQ7eQGPoNH3zl01JzSf8z9EqbbVjSBkOGd hw6A== X-Gm-Message-State: ACrzQf14SGmCgPhBbyK/2em0j4yQGMIooqOl5aT34BSYLZ4WdSmBX5gl zGjyKYfc6KFZvWPGoUkw/uU= X-Google-Smtp-Source: AMsMyM77uOidARFmGIhJtybdWkUK62d5az1hZeZec7nXobOcl2H8LBrF6PnvrMAPP1bbM3zvG4g6yA== X-Received: by 2002:aca:b957:0:b0:351:4ecf:477d with SMTP id j84-20020acab957000000b003514ecf477dmr4353279oif.126.1664813824163; Mon, 03 Oct 2022 09:17:04 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:2219:b0:351:2f34:6fc0 with SMTP id bd25-20020a056808221900b003512f346fc0ls2908294oib.2.-pod-prod-gmail; Mon, 03 Oct 2022 09:17:01 -0700 (PDT) X-Received: by 2002:a05:6808:30b:b0:350:653c:fa5c with SMTP id i11-20020a056808030b00b00350653cfa5cmr4311984oie.123.1664813821022; Mon, 03 Oct 2022 09:17:01 -0700 (PDT) In-Reply-To: X-Original-Sender: mstep.germany-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org X-Original-From: Marek Stepanek 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:31501 Archived-At: ------=_Part_1496_503392727.1664813820061 Content-Type: multipart/alternative; boundary="----=_Part_1497_1070156855.1664813820061" ------=_Part_1497_1070156855.1664813820061 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Merci Bastien,=20 I found a "buggy" solution:=20 ``` documentclass: scrartcl fontsize: 12pt pagesize: a4paper lang: en-GB header-includes: - \usepackage{lipsum} KOMAoption: - landscape ``` Buggy because putting package lipsum after KOMAoption=20 ``` header-includes: KOMAoption: - landscape - \usepackage{lipsum} ``` I get an error:=20 ``` Error producing PDF. ! Undefined control sequence. l.132 \lipsum ``` Probably not the right way to do it. And if I add some other packages I=20 need, it will become probably even more buggy ...=20 Greetings to all marek On Monday, October 3, 2022 at 2:45:52 PM UTC+2 Bastien Dumont wrote: > Mmh, scrlayer-scrpage seems more specialized than that. But, even if you= =20 > use a KOMA class, you can still set "geometry" in the YAML header. > > Le Monday 03 October 2022 =C3=A0 01:09:38AM, 'Marek Stepanek' via=20 > pandoc-discuss a =C3=A9crit : > > Thx again. Perhaps somebody else could help me out, with the page=20 > layout. I > > made a Minimal (Non) working example: > >=20 > >=20 > >=20 > > On Sunday, October 2, 2022 at 10:46:52 PM UTC+2 fiddlosopher wrote: > >=20 > > I can't diagnose Koma layout issues. Maybe someone who is familiar with > > Koma can give more advice. > >=20 > > > On Oct 2, 2022, at 12:35 PM, 'Marek Stepanek' via pandoc-discuss < > > pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote: > > > > > > Thx fiddlosopher :-) Working. BUT the page layout is wrong: the body = is > > very narrow, as if it is still portrait ... You need a minimal working > > example? > > > > > > On Sunday, October 2, 2022 at 9:30:05 PM UTC+2 fiddlosopher wrote: > > > Sorry, should be > > > > > > classoption: > > > - landscape > > > > > > > On Oct 2, 2022, at 12:29 PM, John MacFarlane > > wrote: > > > > > > > > Try classoptions? > > > > > > > >> On Oct 2, 2022, at 8:01 AM, 'Marek Stepanek' via pandoc-discuss < > > pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote: > > > >> > > > >> > > > >> Hello all, > > > >> > > > >> little question: how to define landscape in KOMAoptions for the=20 > entire > > document? I tried with: > > > >> > > > >> ``` > > > >> --- > > > >> documentclass: scrartcl > > > >> fontsize: 12pt > > > >> pagesize: a4paper > > > >> lang: en-GB > > > >> # fontfamily: libertinus > > > >> KOMAoptions: > > > >> - landscape > > > >> ``` > > > >> > > > >> Not working. Thank you for your help > > > >> > > > >> > > > >> marek > > > >> > > > >> > > > >> -- > > > >> 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,= =20 > send > > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > >> To view this discussion on the web visit [1] > https://groups.google.com/ > > d/msgid/pandoc-discuss/ > > 0AF82EB2-E41A-48AB-A502-065A1BA5D069%40googlemail.com. > > > > > > > > > > > > > -- > > > You received this message because you are subscribed to the Google=20 > Groups > > "pandoc-discuss" group. > > > To unsubscribe from this group and stop receiving emails from it, sen= d=20 > an > > email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > To view this discussion on the web visit [2] > https://groups.google.com/d/ > > msgid/pandoc-discuss/ > > 030d0b12-280e-4c76-ad01-ae63c7f0de18n%40googlegroups.com. > >=20 > >=20 > > -- > > You received this message because you are subscribed to the Google Grou= ps > > "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email > > to [3]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [4] > https://groups.google.com/d/msgid/ > > pandoc-discuss/b095b73c-de48-4806-aa5b-22bc126219aen%40googlegroups.com= . > >=20 > > References: > >=20 > > [1]=20 > https://groups.google.com/d/msgid/pandoc-discuss/0AF82EB2-E41A-48AB-A502-= 065A1BA5D069%40googlemail.com > > [2]=20 > https://groups.google.com/d/msgid/pandoc-discuss/030d0b12-280e-4c76-ad01-= ae63c7f0de18n%40googlegroups.com > > [3] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [4]=20 > https://groups.google.com/d/msgid/pandoc-discuss/b095b73c-de48-4806-aa5b-= 22bc126219aen%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > > > --- > > documentclass: scrartcl > > fontsize: 12pt > > pagesize: a4paper > > lang: en-GB > > classoption: > > - landscape > > header-includes: > > - \usepackage{lipsum} > > include-before: > > - | > > ```{=3Dlatex} > > \begin{center} > > \hfill \break% > > \Huge{Minimal Non-Working Example of Landscape}\\[0.5em] > > \Large{ With Pandoc from Markdown to PDF }\\[1.2em] > > \Large{ Marek Stepanek }\\[1.2em] > > \large{Last Edit: Munich \today}\\[1.5em] > > \end{center} > > ``` > > - \tableofcontents > > - \bigskip > > --- > >=20 > > # Foreword > >=20 > > This is a Minimal Non-Working example of wrong page-layout with=20 > `documentclass: scrartcl` in a YAML-Header. I need this layout for large= =20 > and long tables. Probably this is not a Pandoc-Forum question, more a=20 > \LaTeX{} one? Sorry about it ... As you may see here: the page-layout is= =20 > wrong. Is this really `pagesize: a4paper`? > >=20 > > At the end I inserted my `Makefile`. Thank you for your help. Also, if= =20 > it is off-topic here. > >=20 > > # New Chapter > >=20 > > ```{=3Dlatex} > > \lipsum[1] > > ``` > >=20 > > # Second Chapter > >=20 > > ```{=3Dlatex} > > \lipsum[2] > > ``` > >=20 > > # Third Chapter > >=20 > > ```{=3Dlatex} > > \lipsum[3] > > ``` > >=20 > > \newpage > >=20 > > # Annex > >=20 > > I am compiling this page with following `Makefile`: > >=20 > > ```{.yaml} > >=20 > > all: save typeset open > >=20 > > .PHONY: all > > save: > > w > >=20 > > typeset: > > pandoc \ > > --from markdown \ > > --to latex \ > > --pdf-engine pdflatex \ > > --out mwd.pdf \ > > mwd.md > >=20 > > open:=20 > > open mwd.pdf > > ``` > >=20 > >=20 > >=20 > > --=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 view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/8b56978a-73a7-4c52-9d23-058aac94dbd4n%40googlegroups.com. ------=_Part_1497_1070156855.1664813820061 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Merci Bastien, 
I found a "buggy" solution: 

```
documentclass: scrartcl
fontsize: 12pt
pagesiz= e: a4paper
lang: en-GB
header-includes:
- \usepackage{lipsum}
K= OMAoption:
- landscape
```

Buggy because put= ting package lipsum after KOMAoption 

```
header-includes:
KOMAoption:
- landscape
- \usep= ackage{lipsum}
```

I get an error:&n= bsp;

```
Error producing PDF.
! Und= efined control sequence.
l.132 \lipsum
```

= Probably not the right way to do it. And if I add some other packages I nee= d, it will become probably even more buggy ... 

Greetings to all

marek

On Monday, Oc= tober 3, 2022 at 2:45:52 PM UTC+2 Bastien Dumont wrote:
Mmh, scrlayer-scrpage seems more= specialized than that. But, even if you use a KOMA class, you can still se= t "geometry" in the YAML header.

Le Monday 03 October 2022 =C3=A0 01:09:38AM, 'Marek Stepanek' v= ia pandoc-discuss a =C3=A9crit :
> Thx again. Perhaps somebody else could help me out, with the page = layout. I
> made a Minimal (Non) working example:
>=20
>=20
>=20
> On Sunday, October 2, 2022 at 10:46:52 PM UTC+2 fiddlosopher wrote= :
>=20
> I can't diagnose Koma layout issues. Maybe someone who is = familiar with
> Koma can give more advice.
>=20
> > On Oct 2, 2022, at 12:35 PM, 'Marek Stepanek' via= pandoc-discuss <
> pandoc-...@googlegr= oups.com> wrote:
> >
> > Thx fiddlosopher :-) Working. BUT the page layout is wron= g: the body is
> very narrow, as if it is still portrait ... You need a minimal= working
> example?
> >
> > On Sunday, October 2, 2022 at 9:30:05 PM UTC+2 fiddlosoph= er wrote:
> > Sorry, should be
> >
> > classoption:
> > - landscape
> >
> > > On Oct 2, 2022, at 12:29 PM, John MacFarlane <fiddlo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> wrote:
> > >
> > > Try classoptions?
> > >
> > >> On Oct 2, 2022, at 8:01 AM, 'Marek Stepanek&= #39; via pandoc-discuss <
> pandoc-...@googlegr= oups.com> wrote:
> > >>
> > >>
> > >> Hello all,
> > >>
> > >> little question: how to define landscape in KOMA= options for the entire
> document? I tried with:
> > >>
> > >> ```
> > >> ---
> > >> documentclass: scrartcl
> > >> fontsize: 12pt
> > >> pagesize: a4paper
> > >> lang: en-GB
> > >> # fontfamily: libertinus
> > >> KOMAoptions:
> > >> - landscape
> > >> ```
> > >>
> > >> Not working. Thank you for your help
> > >>
> > >>
> > >> marek
> > >>
> > >>
> > >> --
> > >> You received this message because you are subscr= ibed to the Google
> Groups "pandoc-discuss" group.
> > >> To unsubscribe from this group and stop receivin= g emails from it, send
> an email to pandoc-= discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> > >> To view this discussion on the web visit [1]https://groups.google.com/
> d/msgid/pandoc-discuss/
> 0AF82EB2-E41A-48AB-A502-065A1BA5D069%40= googlemail.com.
> > >
> >
> >
> > --
> > You received this message because you are subscribed to t= he Google Groups
> "pandoc-discuss" group.
> > To unsubscribe from this group and stop receiving emails = from it, send an
> email to pandoc-dis= cus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> > To view this discussion on the web visit [2]https://groups.google.com/d/
> msgid/pandoc-discuss/
> 030d0b12-280e-4c76-ad01-ae63c7f0de18n%40googlegroups.com.
>=20
>=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 email
> to [3]pandoc-discus...@= googlegroups.com.
> To view this discussion on the web visit [4]https://groups.google.com/d/msgid/
> pandoc-discuss/b095b73c-de48-4806-aa5b-22bc126219aen%40googlegroups.com.
>=20
> References:
>=20
> [1] https://groups.google.com/d/= msgid/pandoc-discuss/0AF82EB2-E41A-48AB-A502-065A1BA5D069%40googlemail.com<= /a>
> [2]
https://groups.google.c= om/d/msgid/pandoc-discuss/030d0b12-280e-4c76-ad01-ae63c7f0de18n%40googlegro= ups.com
> [3] mailto:pandoc-discu= s...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [4] https://groups= .google.com/d/msgid/pandoc-discuss/b095b73c-de48-4806-aa5b-22bc126219aen%40= googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter

> ---
> documentclass: scrartcl
> fontsize: 12pt
> pagesize: a4paper
> lang: en-GB
> classoption:
> - landscape
> header-includes:
> - \usepackage{lipsum}
> include-before:
> - |
> ```{=3Dlatex}
> \begin{center}
> \hfill \break%
> \Huge{Minimal Non-Working Example of Landscape}\\[0.5em]
> \Large{ With Pandoc from Markdown to PDF }\\[1.2em]
> \Large{ Marek Stepanek }\\[1.2em]
> \large{Last Edit: Munich \today}\\[1.5em]
> \end{center}
> ```
> - \tableofcontents
> - \bigskip
> ---
>=20
> # Foreword
>=20
> This is a Minimal Non-Working example of wrong page-layout with `d= ocumentclass: scrartcl` in a YAML-Header. I need this layout for large and = long tables. Probably this is not a Pandoc-Forum question, more a \LaTeX{} = one? Sorry about it ... As you may see here: the page-layout is wrong. Is t= his really `pagesize: a4paper`?
>=20
> At the end I inserted my `Makefile`. Thank you for your help. Also= , if it is off-topic here.
>=20
> # New Chapter
>=20
> ```{=3Dlatex}
> \lipsum[1]
> ```
>=20
> # Second Chapter
>=20
> ```{=3Dlatex}
> \lipsum[2]
> ```
>=20
> # Third Chapter
>=20
> ```{=3Dlatex}
> \lipsum[3]
> ```
>=20
> \newpage
>=20
> # Annex
>=20
> I am compiling this page with following `Makefile`:
>=20
> ```{.yaml}
>=20
> all: save typeset open
>=20
> .PHONY: all
> save:
> w
>=20
> typeset:
> pandoc \
> --from markdown \
> --to latex \
> --pdf-engine pdflatex \
> --out mwd.pdf \
> mwd.md
>=20
> open:=20
> open mwd.pdf
> ```
>=20
>=20
>=20

--
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 view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/8b56978a-73a7-4c52-9d23-058aac94dbd4n%40googlegroups.= com.
------=_Part_1497_1070156855.1664813820061-- ------=_Part_1496_503392727.1664813820061--