From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31072 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: How can I use figure placement specifiers with Markdown, e.g. [p] for special place? Date: Sun, 24 Jul 2022 16:20:06 +0200 Message-ID: <87czdud1v5.fsf@zeitkraut.de> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36027"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBU5M6WLAMGQERGX6V3I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jul 24 16:25:28 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f188.google.com ([209.85.208.188]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oFcXw-0009BI-4l for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 24 Jul 2022 16:25:28 +0200 Original-Received: by mail-lj1-f188.google.com with SMTP id b17-20020a05651c0b1100b0025d6a404ad2sf1612612ljr.4 for ; Sun, 24 Jul 2022 07:25:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658672727; cv=pass; d=google.com; s=arc-20160816; b=F09TS4O96y9pA0S6Dm4XkdrR//IXf7mOjPvPjZvUCvkFB3efCbOc0u7Qx8+IP5ctBx M8ybHTK1v75EAyzeU2oaagE9kMihn8gp1ZqH9iBkSlckWfxS0vEFU3QNDSgxHzfvBsP2 ydZbQRfRY7+NMJGM+fOrak6q7ieh1ZR9oVeeHL1V06cnAZGST2uebTdMTZCp7Gdtw+wQ 6tppGaBBmskRTTvsapjTVk8jO1HIV1qYSpffhYryOdVPzZ9h92mpFmN9S1QNtxl/CKg1 8vZfXtjF35qoBpr2GhTKJ9VksOTkqi9BjFZ8LfKmJ/11r+myu+5ZqXOd6S92tlhfYTob 7oFA== 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:content-transfer-encoding :mime-version:message-id:in-reply-to:date:subject:to:from:references :sender:dkim-signature; bh=pdhrtd+71TLrqx91XGLd3DUDC6WrEtwcagzoMRzOwjA=; b=rqdktTwOF44eG43hiqa+5CYMtz2Be1OKJZmUFbOOPB+TjFJPB5aYTxLEBvcI9VFvbD uTL0Tj1kLFF61Ya22EcabESdoTPlyjPwUbOkBYgar24ts/o4SdT4cn4EiLvQjPfLsa0m voWtaSEkaDF/Ea0v7dh6o3zLwe93z3nUi2Ux0h4w+t73/joqa5zj3oVpSgI2DsLmSNGa gp4f+vwbcs5C7KK4fN2umQ1QJ82wcH9gt2fW6e2+ivJTkJ3XOZWVW8srivwBEe3iehVT FALxmhWnrg1Z1C1q/ytyeSY/JVtgXVeO63NzM7aeaksbp6WleA21kNxwQlQ33/g6GYSY 77zA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.171 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:references:from:to:subject:date:in-reply-to:message-id :mime-version:content-transfer-encoding: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=pdhrtd+71TLrqx91XGLd3DUDC6WrEtwcagzoMRzOwjA=; b=RazEJFBI8/DO4zIUd4i4XemEh6j3Pp9RPys7iBraBz9iTswIo1Gcm0H9kNnO0+DIoU U7/8T8oa9Vl6FQBDMsjXSCKTY6nxPtvIqsz2lRKIAYtVuB5zHOGEV+bYJiT69vvjBfiG D2OdoiSSpLjKxyA0cBCGQKxY50ujpv9amfjL6+FnCd4PXsphQPkZatTZTin8L5BlMt9O Euq1X+RqiKZnzxxB8zFiqcG4S9pt2RiTlMAHM9smn4uWnwsrLmM345pzGBRMeiR+quy1 KpWh1CVkJkO8Xrit6EMrhhA0BzdfbEgNVeZXCqd33fBBjolpo9HjMrRbbkov4qPhgnAm HBZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:references:from:to:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding :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=pdhrtd+71TLrqx91XGLd3DUDC6WrEtwcagzoMRzOwjA=; b=Zlr27/atRU90vo7FwbHezyqg6joEH/M+Qbw/X5gqeX9OvwW+Xu+21f/8yJijh4nnu2 vcnwwCEiFWnpds5GReUEvmkJVpAAPrjRni7BGFazWBQG+oi1J/EoE7swLplsfXh3iHQC vzf7BHIdosonG7fdp8r1NprZ9Hv1IwGt6hEiACHhxn1KyuD5/zuArDcuWGP5UitNzn+o kAOfhAv9Tg0a8yZEVLyy4SHcEek/jQnugl95J6VOst4qNANbSbHggPvtu8LiNT5LQ2WO XbVZhF5S5w2XjXYne5HyWzQKkySFGPLiX5x2ThUznoc/U/lDUe6dQktM3SeBcrNGnhUP Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora/qqqS91qyUl6AUw4miLfvXQDd4n2Z/C552Xx7JLmEX/Xd1hMAA Cd8u3htb4AZb/1U2RpxpJUc= X-Google-Smtp-Source: AGRyM1vxvHG86pYXVB824K7VDlQFPH9JwPcMT4wHgBpQ8u9Ziqx8Neo2fM1le+h7/bBrrL59GLwSVQ== X-Received: by 2002:a05:6512:e88:b0:489:d187:9b3c with SMTP id bi8-20020a0565120e8800b00489d1879b3cmr3014155lfb.669.1658672727641; Sun, 24 Jul 2022 07:25:27 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:745:b0:48a:776f:8c2f with SMTP id c5-20020a056512074500b0048a776f8c2fls1530146lfs.1.-pod-prod-gmail; Sun, 24 Jul 2022 07:25:22 -0700 (PDT) X-Received: by 2002:a05:6512:3194:b0:48a:6b01:114b with SMTP id i20-20020a056512319400b0048a6b01114bmr2940391lfe.685.1658672722486; Sun, 24 Jul 2022 07:25:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658672722; cv=none; d=google.com; s=arc-20160816; b=xmX3coX79j8iNGA1nsYz+O3mL1yrazaur2ZZOsOGFXGj0BKZcCL/i97h98RqdgCejS 1jlS6dbDeRpphVLj9ADS8CE0tQHLI4OGrkkUh+ZicA+ytdmZO1+/s1WZg3M8tfczcqvL kns9rvaAinuQAYJ0CnTqiZJk3BERjA293x/lwAk66y4vYlo3dN5b6iv7JwipaAe9niLd WCpOQt5+qbBkBglryK26biLQMk81xOVuBZTcLBzBmcMbpttw+5p1JQoDoCYEvQ06tH/U ozy3yLfGSvIsj/t4BtNXK+2ZQ++uGFYbsT6+jqH9oThyyCzFiyD1F0ziz0GubnLq6K5I pKnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:references; bh=ygWyb0ncjHjWGW9RpDgZjl8KNQWkBGkKrVx8zf1O3uM=; b=dEP+F94JMzOczM0Ktk7NJsFYHgaQtDepRbMBtdpMhizkiNvOKCU+7BXhMGdVcBd4S6 CJYk/LWVIGv57CrQLADdGXfa+ffNJaC+P1g8sd5bQAknAZwEvlrxEgfZkqkMAROa9Poq Q7hvOKvMAtj0OlXwLmyp2w4OcaJCbiACc6HawoWrNEP800zcww9u10G5kpvkH5poazXh cVTfFZSf1HoJ8V5eCwa747GVqrcmtEPQ67NA9gH5N6lnrgJ8LqNOl5UoEVGt7t1WgTnC AnhIomRoP5vfpz1/xFPIPuXtOd2PLSwgvtDa9pW5ybt4S0zlYKE062tjSprsV5aAte2A mXmg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.171 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org. [80.241.56.171]) by gmr-mx.google.com with ESMTPS id v4-20020a2ea604000000b0025a8d717b7dsi221242ljp.5.2022.07.24.07.25.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jul 2022 07:25:22 -0700 (PDT) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.171 as permitted sender) client-ip=80.241.56.171; Original-Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4LrQSH60qlz9sS0 for ; Sun, 24 Jul 2022 16:25:19 +0200 (CEST) In-reply-to: X-Rspamd-Queue-Id: 4LrQSH60qlz9sS0 X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.171 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@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:31072 Archived-At: 'Kriszti=C3=A1n Hofst=C3=A4dter' via pandoc-discuss writes: > How can I use figure placement specifiers with Markdown, e.g. [p] for > special place? > > When converting from Markdown to PDF the figure with the code below is > rendered properly, however it is missing when converting to Word > (docx). The easiest way is probably to use the LaTeX code in combination with a Lua filter that parses the LaTeX when converting to a different output format: ``` lua if FORMAT:match 'latex' then return {} end function RawBlock (raw) if raw.format:match 'tex' then return pandoc.read(raw.text, 'latex').blocks end end ``` Save the above to a file `parse-latex.lua` and pass it to pandoc via `--lua-filter=3Dparse-latex.lua`. --=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/87czdud1v5.fsf%40zeitkraut.de.