public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: "'Marek Stepanek' via pandoc-discuss" <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Define Classoption landscape in YAML Header
Date: Mon, 3 Oct 2022 09:24:36 -0700 (PDT)	[thread overview]
Message-ID: <030fddee-45f2-496f-9571-4bb051d4dff9n@googlegroups.com> (raw)
In-Reply-To: <8b56978a-73a7-4c52-9d23-058aac94dbd4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 7338 bytes --]

Ah! Now it is working in my original Markdown file, like follows: 

```
documentclass: scrartcl
fontsize: 12pt
pagesize: a4paper
lang: en-GB
KOMAoption: landscape
```

I tried this one before, but could not compile it ... Hope this solution 
will work over the long ... 

Once again thx to all who replied!

On Monday, October 3, 2022 at 6:17:00 PM UTC+2 Marek Stepanek wrote:

> Merci Bastien, 
> I found a "buggy" solution: 
>
> ```
> documentclass: scrartcl
> fontsize: 12pt
> pagesize: a4paper
> lang: en-GB
> header-includes:
> - \usepackage{lipsum}
> KOMAoption:
> - landscape
> ```
>
> Buggy because putting package lipsum after KOMAoption 
>
> ```
> header-includes:
> KOMAoption:
> - landscape
> - \usepackage{lipsum}
> ```
>
> I get an error: 
>
> ```
> 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 
> need, it will become probably even more buggy ... 
>
> 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 
>> use a KOMA class, you can still set "geometry" in the YAML header. 
>>
>> Le Monday 03 October 2022 à 01:09:38AM, 'Marek Stepanek' via 
>> pandoc-discuss a écrit : 
>> > Thx again. Perhaps somebody else could help me out, with the page 
>> layout. I 
>> > made a Minimal (Non) working example: 
>> > 
>> > 
>> > 
>> > On Sunday, October 2, 2022 at 10:46:52 PM UTC+2 fiddlosopher wrote: 
>> > 
>> > I can't diagnose Koma layout issues. Maybe someone who is familiar with 
>> > Koma can give more advice. 
>> > 
>> > > 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 <fiddlo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 
>> > 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 
>> 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, 
>> 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 
>> Groups 
>> > "pandoc-discuss" group. 
>> > > To unsubscribe from this group and stop receiving emails from it, 
>> send 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. 
>> > 
>> > 
>> > -- 
>> > 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...-/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. 
>>
>> > 
>> > References: 
>> > 
>> > [1] 
>> https://groups.google.com/d/msgid/pandoc-discuss/0AF82EB2-E41A-48AB-A502-065A1BA5D069%40googlemail.com 
>> > [2] 
>> https://groups.google.com/d/msgid/pandoc-discuss/030d0b12-280e-4c76-ad01-ae63c7f0de18n%40googlegroups.com 
>> > [3] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 
>> > [4] 
>> https://groups.google.com/d/msgid/pandoc-discuss/b095b73c-de48-4806-aa5b-22bc126219aen%40googlegroups.com?utm_medium=email&utm_source=footer 
>>
>> > --- 
>> > documentclass: scrartcl 
>> > fontsize: 12pt 
>> > pagesize: a4paper 
>> > lang: en-GB 
>> > classoption: 
>> > - landscape 
>> > header-includes: 
>> > - \usepackage{lipsum} 
>> > include-before: 
>> > - | 
>> > ```{=latex} 
>> > \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 
>> > --- 
>> > 
>> > # Foreword 
>> > 
>> > This is a Minimal Non-Working example of wrong page-layout with 
>> `documentclass: 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 this really `pagesize: a4paper`? 
>> > 
>> > At the end I inserted my `Makefile`. Thank you for your help. Also, if 
>> it is off-topic here. 
>> > 
>> > # New Chapter 
>> > 
>> > ```{=latex} 
>> > \lipsum[1] 
>> > ``` 
>> > 
>> > # Second Chapter 
>> > 
>> > ```{=latex} 
>> > \lipsum[2] 
>> > ``` 
>> > 
>> > # Third Chapter 
>> > 
>> > ```{=latex} 
>> > \lipsum[3] 
>> > ``` 
>> > 
>> > \newpage 
>> > 
>> > # Annex 
>> > 
>> > I am compiling this page with following `Makefile`: 
>> > 
>> > ```{.yaml} 
>> > 
>> > all: save typeset open 
>> > 
>> > .PHONY: all 
>> > save: 
>> > w 
>> > 
>> > typeset: 
>> > pandoc \ 
>> > --from markdown \ 
>> > --to latex \ 
>> > --pdf-engine pdflatex \ 
>> > --out mwd.pdf \ 
>> > mwd.md 
>> > 
>> > open: 
>> > open mwd.pdf 
>> > ``` 
>> > 
>> > 
>> > 
>>
>>

-- 
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/030fddee-45f2-496f-9571-4bb051d4dff9n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 12413 bytes --]

  parent reply	other threads:[~2022-10-03 16:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-02 15:01 'Marek Stepanek' via pandoc-discuss
     [not found] ` <0AF82EB2-E41A-48AB-A502-065A1BA5D069-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2022-10-02 19:29   ` John MacFarlane
     [not found]     ` <C28A5F4B-6190-41D9-B137-5426B800E499-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-10-02 19:30       ` John MacFarlane
     [not found]         ` <833DC8A0-1188-416D-8227-2B95EE2ABB3C-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-10-02 19:35           ` 'Marek Stepanek' via pandoc-discuss
     [not found]             ` <030d0b12-280e-4c76-ad01-ae63c7f0de18n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-02 20:46               ` John MacFarlane
     [not found]                 ` <329B8145-4825-47FD-AB9F-11D0D60D934C-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-10-03  8:09                   ` 'Marek Stepanek' via pandoc-discuss
     [not found]                     ` <b095b73c-de48-4806-aa5b-22bc126219aen-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-03 12:22                       ` Bastien DUMONT
2022-10-03 12:45                       ` Bastien DUMONT
2022-10-03 16:17                         ` 'Marek Stepanek' via pandoc-discuss
     [not found]                           ` <8b56978a-73a7-4c52-9d23-058aac94dbd4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-03 16:24                             ` 'Marek Stepanek' via pandoc-discuss [this message]
     [not found]                               ` <030fddee-45f2-496f-9571-4bb051d4dff9n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-03 17:09                                 ` 'Marek Stepanek' via pandoc-discuss
     [not found]                                   ` <36c9598d-33de-48fb-b44f-0b7a1958100en-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-03 17:47                                     ` Bastien DUMONT

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=030fddee-45f2-496f-9571-4bb051d4dff9n@googlegroups.com \
    --to=pandoc-discuss-/jypxa39uh5tlh3mbocffw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).