From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31087 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=27Kriszti=C3=A1n_Hofst=C3=A4dter=27_via_pandoc=2Ddiscuss?= Newsgroups: gmane.text.pandoc Subject: Re: How can I use figure placement specifiers with Markdown, e.g. [p] for special place? Date: Mon, 25 Jul 2022 02:50:54 -0700 (PDT) Message-ID: <1d05b65b-70c3-41f4-b4be-b1578db89f55n@googlegroups.com> References: <87czdud1v5.fsf@zeitkraut.de> <0a6a41d3-fb62-43e9-a85e-edb09e53dc79n@googlegroups.com> <878roicwo8.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2388_803163208.1658742654193" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13162"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCLPH74HTUARB76O7GLAMGQEGZ5D53I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jul 25 11:50:59 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yw1-f192.google.com ([209.85.128.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oFujr-0003Ek-Mc for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 25 Jul 2022 11:50:59 +0200 Original-Received: by mail-yw1-f192.google.com with SMTP id 00721157ae682-317f6128c86sf84390407b3.22 for ; Mon, 25 Jul 2022 02:50:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=mGkT/1+qnytuKxQK6fjowZEQkN+BEFyoOFK/J2h1tU8=; b=nksB/DCCCx0W6o8ekPdOZLtVNGs4he45Z6C8N91CMSU7d8k8pNCS1JdsArrhI9c6WG eDjCv/zgqERPWAzSm1DfNb1DmEOiXNk6p8cJsroW+bq+2B5SN7Ek46Maz3D4KUJEhSi1 RrYjmi4QIr8LspN8GceDSqvUYKU8zyzSRIGIYHXcUzuNsFS3zj8xlS2kX15vR+ghRgYB Wlxerf5W8eJbtEVYWKQsYNpXagTuc+iUo9ysq8VrxoAmbpy1t05TEWqTkJXh7z51Djh1 FuZwTJVdh7VpY6qOxlpOvkPfDz9dw1aV1lrIQe1thD+TMxUucK4CTKAVcMdGcAiJMirx kXQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:message-id:in-reply-to:references :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=mGkT/1+qnytuKxQK6fjowZEQkN+BEFyoOFK/J2h1tU8=; b=mcl1tbVeiQ/hyI09ynFktppEgsNLf9dW7hd2XnFAeh4D6C4m3CXD1cG+wd1giw5WpW kFXM/HvUhhToLaBIfcCisCWPLp3Rbf2Y2MRaaPDMkg4bBKt7WZJ9hRct4QKSay4YyTuJ vHNOpRQ6y48BPX4gc4sKUAz+lgfC5DJqdjdAU1VsVXyPfz8Whvhg3YuU+4RNU36u2Bwi x6pJfHIbBqQqgHJk3Z2LBr1u9zIe8LTxHmEO4lHKOZGFmTEnXDRkl+2tMoSGUYPfAu7U a14+XgIM220U2dWLovtjqKdNcS9x7YsJaaGljLMYucuW3tCW1uJvDZU5ApkX8fKweKiN fO2A== X-Gm-Message-State: AJIora+KWVv+ZsgJzzfANk2yeU7B4Vae51Qgr6Su/+0jK8zYC6tOda2Y gBQekGWjHwtoOHt1tvaMTLw= X-Google-Smtp-Source: AGRyM1sYSysPPKvfeGqyghtHBJfXTw26bRuxF6AUJhoqXlrjpqMZykKHwLhdLwkMbjzCxk7gC/wXkQ== X-Received: by 2002:a25:a2c3:0:b0:671:51b2:7049 with SMTP id c3-20020a25a2c3000000b0067151b27049mr1234013ybn.220.1658742658758; Mon, 25 Jul 2022 02:50:58 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:6949:0:b0:670:1685:aefe with SMTP id e70-20020a256949000000b006701685aefels2068629ybc.2.-pod-prod-gmail; Mon, 25 Jul 2022 02:50:54 -0700 (PDT) X-Received: by 2002:a25:74c7:0:b0:66f:7078:c88d with SMTP id p190-20020a2574c7000000b0066f7078c88dmr8249852ybc.28.1658742654778; Mon, 25 Jul 2022 02:50:54 -0700 (PDT) In-Reply-To: <878roicwo8.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> X-Original-Sender: tedor2-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org X-Original-From: =?UTF-8?Q?Kriszti=C3=A1n_Hofst=C3=A4dter?= 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:31087 Archived-At: ------=_Part_2388_803163208.1658742654193 Content-Type: multipart/alternative; boundary="----=_Part_2389_900521756.1658742654193" ------=_Part_2389_900521756.1658742654193 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Brilliant! Thanks Albert :-)=20 Now that I'm on it, .... how could I also convert the Contents, List of=20 Figures and Tables when making the docx file?=20 (When converting to PDF they are all there.) I use these lines to add them to the pages: ``` \setcounter{tocdepth}{5} \tableofcontents \listoffigures \listoftables ``` And I think the only relevant lines in the front matter (YAML) are:=20 ``` header-includes: - \usepackage[nottoc]{tocbibind} # adding lof/lot to toc documentclass: report sectionsDepth: 4=20 link-citations: true linkReferences: true nameInLink: true=20 ``` thanks! k On Sunday, July 24, 2022 at 5:17:35 PM UTC+1 Albert Krewinkel wrote: > > 'Kriszti=C3=A1n Hofst=C3=A4dter' writes: > > > You recommendations added the figure, but the cross referencing didn't > > come through: > > 1. there is no figure number before the figure's caption > > > > 2. there is no reference in the text to the figure either > > The Lua filter should run before pandoc-crossref runs; the order in > which filters are run is the order in which they are given on the > command line. Try this: > > > % pandoc -L parse-latex.lua -F pandoc-crossref ... > > > --=20 > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > --=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/1d05b65b-70c3-41f4-b4be-b1578db89f55n%40googlegroups.com. ------=_Part_2389_900521756.1658742654193 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Brilliant! Thanks Albert :-) 

Now that I'm on = it, .... how could I also convert the Contents, List of Figures and Tables = when making the docx file? 

(When converting = to PDF they are all there.)

I use these lines = to add them to the pages:

```
\setcounter{tocdepth}{5}
\tableo= fcontents
\listoffigures
\listoftables
```

And I think the only relevant lines in the front matter (YAML) are= : 

```
header-includes:
- \usepackage[nottoc]{tocbibind} # adding lof/lot to toc
documentclass: report
sect= ionsDepth: 4 
link-citations: true
linkReferences: true
nameInLink: true 
```

thanks! k


On Sunday, July 24, 202= 2 at 5:17:35 PM UTC+1 Albert Krewinkel wrote:

'Kriszti=C3=A1n Hofst=C3=A4dter' writes:

> You recommendations added the figure, but the cross referencing di= dn't
> come through:
> 1. there is no figure number before the figure's caption
>
> 2. there is no reference in the text to the figure either

The Lua filter should run before pandoc-crossref runs; the order in
which filters are run is the order in which they are given on the
command line. Try this:

> % pandoc -L parse-latex.lua -F pandoc-crossref ...


--=20
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124

--
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/1d05b65b-70c3-41f4-b4be-b1578db89f55n%40googlegroups.= com.
------=_Part_2389_900521756.1658742654193-- ------=_Part_2388_803163208.1658742654193--