public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Bastien DUMONT <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>
To: 'Marek Stepanek' via pandoc-discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Define Classoption landscape in YAML Header
Date: Mon,  3 Oct 2022 17:47:13 +0000	[thread overview]
Message-ID: <Yzsft+UJI44imipT@localhost> (raw)
In-Reply-To: <36c9598d-33de-48fb-b44f-0b7a1958100en-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

Happy to know that it works! Pandoc has a variable "geometry". As it passes its value to the package, it is strictly equivalent to calling it via header-includes, but it helps maintaining a cleaner header:

```
---
documentclass: scrartcl
fontsize: 12pt
pagesize: a4paper
lang: en-GB
classoption:
- landscape
geometry:
- left=3cm
- right=3cm
---
```

(Setting "width" is unnecessary if you set "left" and "right".)

Le Monday 03 October 2022 à 10:09:34AM, 'Marek Stepanek' via pandoc-discuss a écrit :
> Sorry for the noise! Finally it is not working like that. I helped me out with
> geometry:
> 
> ```
> ---
> documentclass: scrartcl
> classoption: landscape
> fontsize: 12pt
> pagesize: a4paper
> lang: en-GB
> header-includes:
> - \usepackage[width=14cm, left=3cm, right=3cm]{geometry}
> ```
> 
> What is good use in this forum: cut out all the thread afterwards or keep it?
> 
> marek
> 
> On Monday, October 3, 2022 at 6:24:36 PM UTC+2 Marek Stepanek wrote:
> 
>     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][1]https://
>             groups.google.com/
>             > d/msgid/pandoc-discuss/
>             > 0AF82EB2-E41A-48AB-A502-065A1BA5D069%[2]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][3]https://
>             groups.google.com/d/
>             > msgid/pandoc-discuss/
>             > 030d0b12-280e-4c76-ad01-ae63c7f0de18n%[4]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][5]https://
>             groups.google.com/d/msgid/
>             > pandoc-discuss/b095b73c-de48-4806-aa5b-22bc126219aen%[6]
>             40googlegroups.com.
>             >
>             > References:
>             >
>             > [1] [7]https://groups.google.com/d/msgid/pandoc-discuss/
>             0AF82EB2-E41A-48AB-A502-065A1BA5D069%40googlemail.com
>             > [2] [8]https://groups.google.com/d/msgid/pandoc-discuss/
>             030d0b12-280e-4c76-ad01-ae63c7f0de18n%40googlegroups.com
>             > [3] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>             > [4] [9]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 [10]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit [11]https://groups.google.com/d/msgid/
> pandoc-discuss/36c9598d-33de-48fb-b44f-0b7a1958100en%40googlegroups.com.
> 
> References:
> 
> [1] https://groups.google.com/
> [2] http://40googlemail.com/
> [3] https://groups.google.com/d/
> [4] http://40googlegroups.com/
> [5] https://groups.google.com/d/msgid/
> [6] http://40googlegroups.com/
> [7] https://groups.google.com/d/msgid/pandoc-discuss/0AF82EB2-E41A-48AB-A502-065A1BA5D069%40googlemail.com
> [8] https://groups.google.com/d/msgid/pandoc-discuss/030d0b12-280e-4c76-ad01-ae63c7f0de18n%40googlegroups.com
> [9] https://groups.google.com/d/msgid/pandoc-discuss/b095b73c-de48-4806-aa5b-22bc126219aen%40googlegroups.com?utm_medium=email&utm_source=footer
> [10] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [11] https://groups.google.com/d/msgid/pandoc-discuss/36c9598d-33de-48fb-b44f-0b7a1958100en%40googlegroups.com?utm_medium=email&utm_source=footer

-- 
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/Yzsft%2BUJI44imipT%40localhost.


      parent reply	other threads:[~2022-10-03 17:47 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
     [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 [this message]

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=Yzsft+UJI44imipT@localhost \
    --to=bastien.dumont-vwifzpto/vqstnjn9+bgxg@public.gmane.org \
    --cc=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).