From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32124 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Mert.Kara" Newsgroups: gmane.text.pandoc Subject: Converting several markdown files into docx Date: Wed, 1 Feb 2023 05:56:24 -0800 (PST) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3494_1208674504.1675259784183" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12885"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCE5NMU3VIBBBCO75GPAMGQEERQF5MI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Feb 01 14:56:29 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f57.google.com ([209.85.210.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pNDbA-00039C-MQ for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 01 Feb 2023 14:56:28 +0100 Original-Received: by mail-ot1-f57.google.com with SMTP id 61-20020a9d0343000000b0068bba9986e7sf5835560otv.5 for ; Wed, 01 Feb 2023 05:56:28 -0800 (PST) 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:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=UWYhAwQaHKKuiOQq05BG3foY35lDWgtuYch1NcB5mM0=; b=R69sXO9WVWqsi46G4l/FnKouejQQZFBFJ6DF2tGTHVBoCk4+/y07lkhOoIDn8jNYzw bnNuwm5uAiz7QWFMXQSclHLH4qQQbPIdS/Xb4QXlhVmVaSCzqGI30g29zf9Hz2ARu680 QnBy2ofZfVdOcq0Bplhcn6uAmo0EnSbqvL+DeF4tQ7R7+fUBbzdrqMz5t7HTVpH8n5l3 M23r9Z2zafjb5PDbKHa876klX+hOzO8MqLPiYONWWnWOCeIGBSqC97lcbOtPEF7J0GiB Sdc3JSk4c7vpgMEj8InHEsmLhkM8sOt8j6QxcPeEOG7e3WdinE/BaVaYeE5dc/XB5WhU MW2Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.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:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=UWYhAwQaHKKuiOQq05BG3foY35lDWgtuYch1NcB5mM0=; b=GsL4qRaRdHjCRUkpCmmKetklCYaYkb+3jNvrGteD1amqvUilsJDzhhmJnPJkH75QXp qum1XoPYPBCJQq+ahbqJ+h1v3TEuRA1dPPzzClePxTCJuwth0QNymDPmJhbF2HvppWhs hCoAC7cw4O9WPXVTlTe3DAFsG+kbKxYdYsCwgahTzXssNO+KOgPlhtjC3CEdvti491/D iLukxUvXLgEyr3mKHQLtA5u0vpdJ/pVXw/Dzr1k4ef0H3xPIZVXHxHA8Qo3RjrG7rmoi mpXisKVW8LUxNkgSRgXkK+9aH2C6ULVrlFR8lB08hSo0iGPn98lxMXIySRaHcBGCvv5e mYog== 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:message-id:to:from:date :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=UWYhAwQaHKKuiOQq05BG3foY35lDWgtuYch1NcB5mM0=; b=FQtP+HDBfBvLRNMpaw9UjEXK8in/YRAivu7uH2gySfBAI93E3goCy+Cu/94gRfrD3b P6BnxyBIyPKBNDBxvZoa6K8ruUwFOBwHDC1uRpTUyPCbw5oJB8HKl0LkAv+fugTr/NMi ldlhUvW0d9EisVGYNZofBCQvg/oS7IVDkWrrgIZJT+pG/8Biy1uvCpKZGU46R3Z6fJmT 2t6tsNLkKeuqlZgmu4ef79Hoxh5mF3VdWTIMU6eeUcHmL/OJoE3zF/USrdgrxLW7Fwy3 sGP5MMHosJHVO3wlMn8RgQxDrLYVKG4D8c29p3sNofjkgOEylZ7/r8ynsxpcoy2AaiYN WRNQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKXqKwZVIIsRp2zqDH21xLnS53+Xv1rdHB0fpfRuPav1/qbvyQuJ Erh720N161ZvjqwmsEKjGMA= X-Google-Smtp-Source: AK7set87SVv51NyZqMJwA7N7+0z4iJLQzPnD/K2CPyR1zMa1lewI0mg4tBFgg7bvw6isV02CU1Nl5g== X-Received: by 2002:a05:6808:1918:b0:378:2b0c:493e with SMTP id bf24-20020a056808191800b003782b0c493emr159514oib.172.1675259787389; Wed, 01 Feb 2023 05:56:27 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:b96:b0:163:2c39:4a44 with SMTP id lg22-20020a0568700b9600b001632c394a44ls8070410oab.8.-pod-prod-gmail; Wed, 01 Feb 2023 05:56:25 -0800 (PST) X-Received: by 2002:a05:6871:71f:b0:163:c555:24dd with SMTP id f31-20020a056871071f00b00163c55524ddmr209852oap.25.1675259784877; Wed, 01 Feb 2023 05:56:24 -0800 (PST) X-Original-Sender: mertkarracan96-Re5JQEeQqe8AvxtiuMwx3w@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:32124 Archived-At: ------=_Part_3494_1208674504.1675259784183 Content-Type: multipart/alternative; boundary="----=_Part_3495_903622850.1675259784183" ------=_Part_3495_903622850.1675259784183 Content-Type: text/plain; charset="UTF-8" I have a folder called Project: Project: img docs README The README is written in Markdown and looks like this: document 1 document 1.1 document 2 document 2.1 document 2.1.1 The readme has links to the individual Markdown files. The file structure in the document folder looks like this: Document 1 Document 2 Document 11 Document 21 Document 211 The documents have images that come from the img folder and have cross references to each other e.g. Document 1 has a reference to Document 11. How can I use a pandoc command to convert the documents as they appear in order in the README to a DOCX file, with the corresponding images and the cross references in the respective Markdown files. Is there a suitable script with pandoc for this? I had it once with the pandoc command: for /r "." %i in (*.md) do pandoc -o "%~i.docx" "%~i" All files in the docs folder were converted to a DOCX file and merged, but the order was completely wrong and the cross references were to the Markdown files from the docs folder and not from the created DOCX file. -- 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/e07223da-8f56-4f14-86f5-b8d5a0de461cn%40googlegroups.com. ------=_Part_3495_903622850.1675259784183 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have a folder called Project:

Project:=

img docs README

The README is written in Markdown and looks like this:

document 1
=C2=A0 =C2=A0 =C2=A0document 1.1
document 2
=C2=A0 =C2=A0 =C2=A0document 2.1
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0document 2.1.1

The readme has links to the individual Markdown files. The file structur= e in the document folder looks like this:

Document 1
Document 2
Document 11
Document 21
Document 211

The documents have images that come from the img folder and have cross r= eferences to each other e.g. Document 1 has a reference to Document 11.

=

How can I use a pandoc command to convert the documents as they appear i= n order in the README to a DOCX file, with the corresponding images and the= cross references in the respective Markdown files. Is there a suitable scr= ipt with pandoc for this?

I had it once with the pandoc command:

f= or /r "." %i in (*.md) do pandoc -o "%~i.docx" "%~i"

All files in the docs folder were converted to a DOCX file and merged, b= ut the order was completely wrong and the cross references were to the Mark= down files from the docs folder and not from the created DOCX file.

--
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/e07223da-8f56-4f14-86f5-b8d5a0de461cn%40googlegroups.= com.
------=_Part_3495_903622850.1675259784183-- ------=_Part_3494_1208674504.1675259784183--