From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26089 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jeremy Conlin Newsgroups: gmane.text.pandoc Subject: Approach to converting large, custom, LaTeX document to restructured text Date: Thu, 10 Sep 2020 14:43:56 -0700 (PDT) Message-ID: <9c40cd2c-9874-446b-8772-c8a99e377acan@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_102_512548695.1599774236463" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18600"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDEO7JNYQUCBBHN45L5AKGQE62QY7TI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Sep 10 23:44:01 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f63.google.com ([209.85.161.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kGUML-0004io-5x for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 10 Sep 2020 23:44:01 +0200 Original-Received: by mail-oo1-f63.google.com with SMTP id 1sf3466087oob.11 for ; Thu, 10 Sep 2020 14:44:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=7BkF+wGKSjPdzJALawSynlzaa3kggjEbKN29ThpuIK4=; b=IiTXkgj/Udjb+yf7x/tX+Os8YsaBzJCG95oqGirMMSXuIdWZAwHHVXgoSAVv5bxufX 2R6P0dinro/65oX4zjADh2Fh37q4qpKXzMz2gtguNLO9/UjuJG2trm8MsAxJtzUTr/Aw 5PLdgJNIo52WhjbE8s/eYAlCgnA5KFsUgYb0isdMWPpOCJsjTA6ZaVOIgRdYejxRToLw z8iNB2xqzdLzT5XJFAmavs3jnIvMZTlGyz3u2fFJjxNL8/6yYswZ83bvEp5fS5+PeDCY uZP1RAy+7wFdkTDYCxJ5iE9KskEu7CGqdBMqCj8ENRyOfKbaZ3aPp15fJ3VuqpoBHwer 2pwg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=7BkF+wGKSjPdzJALawSynlzaa3kggjEbKN29ThpuIK4=; b=tcSsmwDPe3aI5VbZQMwQJXovF1ZHLnNJJY4tZnmmMbiMtO3mqUCiLL2O+2TnuYO5vd d5GcIhkKKNWg4k1dqZWEOqDGbhWpI5qM0qelzMAhB9iem8crnW5dYwA1lUOMtbbvI1oF /cpznLklBgsq8UffejjRHTZADNM2/oowlJk/78a3WPbyvOx9UZxiK7oZDyVCUJ48zDRw hEPiGmhFMCTn0efRWk1/7aFJKyHio+D5jKBaAH6Sh2ChWbejR/iTB918uTRB82XdIGlt 3rCIP0JWZUFzldD1blySvKFzCqXksmzIPpyArw7KKkSxfMsysk/YOS9vL2+SeLwvJn2s PgNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id: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=7BkF+wGKSjPdzJALawSynlzaa3kggjEbKN29ThpuIK4=; b=smvJfI8GIk6hovkrKdew8GB3L9CgDWri4QxPF8bIvkJwbl1S5YEFGlpE086DWlcSOZ lOPAEtWCu9L5FSAClSQ5SOFwjgweP3ovUsFKxi7JPpSg3H/79VS5fCx5YRlQO+2luC2L Mgcrr2NQfZtcK91OlXmYyfUdb0ENj7/6/2WphfOlQYeLU5sBvcxMP6CydTHUmPzyTsuz 1nGF/jVfwSsjruYv0KfgRwdr3DEylzsY3P4zBzC+CxdFlkSBF+CuFDDDvmzX7cYw17We YeRTc7JLTtqoBAcDxSnpTeIAKkugw7yI5I26xI7WKHi/TiGyEQ2KUZ2beqoybcmHRffh iw1g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530z8GTvnbFmP1OBCRsrdcFHUoRaofDrElW6ACHu5zh6WPICkbhv Kmg3QKIR/zw2bWVglTv02nE= X-Google-Smtp-Source: ABdhPJy8FO6CgkROuwuW+hstSvpCg7ZvoY4ap9d5oodsgPqatZWPi6jiKhFZOEky27QETDrwZsfU3A== X-Received: by 2002:aca:4d58:: with SMTP id a85mr1399493oib.110.1599774240269; Thu, 10 Sep 2020 14:44:00 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:3a07:: with SMTP id h7ls1087oia.1.gmail; Thu, 10 Sep 2020 14:43:57 -0700 (PDT) X-Received: by 2002:aca:eb48:: with SMTP id j69mr1366648oih.18.1599774237226; Thu, 10 Sep 2020 14:43:57 -0700 (PDT) X-Original-Sender: jlconlin-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:26089 Archived-At: ------=_Part_102_512548695.1599774236463 Content-Type: multipart/alternative; boundary="----=_Part_103_1182160383.1599774236463" ------=_Part_103_1182160383.1599774236463 Content-Type: text/plain; charset="UTF-8" I have a large (900 page) LaTeX document (broken up into several LaTeX files) that I want to convert into restructured text. I've already tried to use pandoc to convert some of the files and it has failed for a few reasons. I'm a new pandoc user, but I figure I'm going to have to write my own converter. Before I do, I wanted to ask this forum what the right way to approach the conversion. I was planning on reading everything into Python, do my own search/replace and then pass the result on to pandoc. I would then rinse/repeat until I have everything the way I want it. I know there are filters and such that I can write to customize things, but (as a beginner) I'm not sure if it would be easier to learn pandoc syntax and write my own filter, or just go at it in Python as I described above. I don't mind doing it either way; I think it might be a fun side project to do when I'm procrastinating doing what I really should be doing. Please advise on what is the right approach. I'm sure there are other approaches too that I'm not aware of. I'm open for suggestions. Thanks, Jeremy -- 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/9c40cd2c-9874-446b-8772-c8a99e377acan%40googlegroups.com. ------=_Part_103_1182160383.1599774236463 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I have a large (900 page) LaTeX document (broken up into several LaTeX file= s) that I want to convert into restructured text. I've already tried to use= pandoc to convert some of the files and it has failed for a few reasons.&n= bsp;

I'm a new pandoc user, but I figure I'm going to ha= ve to write my own converter. Before I do, I wanted to ask this forum what = the right way to approach the conversion. I was planning on reading  e= verything into Python, do my own search/replace and then pass the result on= to pandoc. I would then rinse/repeat until I have everything the way I wan= t it. 

I know there are filters and such that= I can write to customize things, but (as a beginner) I'm not sure if it wo= uld be easier to learn pandoc syntax and write my own filter, or just go at= it in Python as I described above.

I don't mind d= oing it either way; I think it might be a fun side project to do when I'm p= rocrastinating doing what I really should be doing. 

Please advise on what is the right approach. I'm sure there are oth= er approaches too that I'm not aware of. I'm open for suggestions.

Thanks,
Jeremy

--
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/9c40cd2c-9874-446b-8772-c8a99e377acan%40googlegroups.= com.
------=_Part_103_1182160383.1599774236463-- ------=_Part_102_512548695.1599774236463--