From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/22589 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: LaTeX Macros from External File Date: Mon, 22 Apr 2019 15:22:40 +0200 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000797afc05871e5d19" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="70300"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBK4A67SQKGQEUY6MUEI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Apr 22 15:22:53 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-wm1-f64.google.com ([209.85.128.64]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hIYuK-000IA4-Ex for gtp-pandoc-discuss@m.gmane.org; Mon, 22 Apr 2019 15:22:52 +0200 Original-Received: by mail-wm1-f64.google.com with SMTP id u6sf11001597wml.3 for ; Mon, 22 Apr 2019 06:22:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1555939372; cv=pass; d=google.com; s=arc-20160816; b=jplG6Et0E6ixgZyq1bLfRfVR2Lfl8pCf3BSi3ilsY77kqAQFGgvkRYuCaQSDeEJLJG ruXBfpSYVMIQbj16gKv0dMN269VsDaoPfz8U9r4aqA09xks+gTuVeHjEMaiuBhUCR8ab nUZKHRaOgammJJcD/a47t3d9J1RER9qDCfL8Vv6dfpBrvkHx6/3St1hf26DKHnpvKhOE P/hnZL8gQSmUCIetHTqWlNsJwAme+5QnMnE9wCbkgX+RAILz3/+Rx7AudOTA/cPRDw50 4bkKZe4BLrewoWYQSjmImlyU7omT1k/84inDZElIQ9y8qPxp+s3tGrHDLCF4w6+dS8ak OODw== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=Xfrjf4u4Zg9/BEo7+5e7fVD/DnkGjGqTfwoGtJhItg0=; b=dPhH1V5ZshTO9wZR5m2ZGudqWY16nD/Z9zhkJSsSClZsOujx9S29tUY57epu0LrJuN 4jehZ4K2Kw+6wiGFhp/uxcDcQx1nc1KCVKmA1fn3z8wxzidULbFp0xbpiMsgxEG4aa4X OCzXD9IFjGljik1FtTvCGLd9lqxW94XtjvCs+I3R+iMgHuZO7tWw4jK6LhyN5gJ2EzED Ou0sWfi1ZV6ZSj9u7NQkeC9Lx/YvqH2c6hIMShH084owTNUV7uRwuMrRFBm2lR6xlt2z V/UsgdO7cAEL5UVJ01kza00JaUL3vmccK9PUWnPR+JQOtM1l9YKFOzok1YHMMXyFL1rH i1xg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TDjTiysr; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::436 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to: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=Xfrjf4u4Zg9/BEo7+5e7fVD/DnkGjGqTfwoGtJhItg0=; b=Li4uATPT6jdkJEHn5Eu+fXb55HpBcT7QRhFtUN8PHzYmxO9zLx2RLeRKVTGw5YC0mR NAop/KxYgwmqSkgzBPQzeze954W8XDRvJMgsvGDTva67IryHrMAE1XPhThiz7T+Rw1+3 S6pPfLIJwjnz9Zy3DVb18J2pDrGWbUlGUSmUxHAkHdj03fAeVnDpyxJmUeihuMqmJybs yw9wpSk54cSs85RKwDRnwvYzZNLdBAAJnMfkgpFsbTDl1Zf9OJUNtqCDHHsHM1tOs5Hu qSdR6wPqn7qEsLdf1NSkb0ywynZ5jB1Um5ttL8PNzdARfX7YimDiqfnxcPxRRF+29O2+ r2QQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :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=Xfrjf4u4Zg9/BEo7+5e7fVD/DnkGjGqTfwoGtJhItg0=; b=ZOa+2t75MbRydRCURIUsIKIsKGRksr3Wk3WzZZlYob/83rNWxEL4sKWmPqPMkKWKFT BkYBYxelbJni9Rzrv+K8+tHJuYu8sPdGvpmE3It6v4aUBTayc2aj/VMWvhDn5HsYQmHK vK5dUkzbDaufkp/2S2kFhnklnt9Ys883EsBXMpB+odsFzB1CPInsMnDYaDocbptCNEyq kBM4kVwz27K6POjsrK8xQhOQQoaOBnIHwUcXTHlT5BIPNOP5b2tZxc4mXHGMvDuRc9Xm TGErYWFZ9OjaUPUxZ4xRkGfCRAfljZsl37YxSyBZMDodcRnQw3LLvIlElezY8QM366Es yJsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to: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=Xfrjf4u4Zg9/BEo7+5e7fVD/DnkGjGqTfwoGtJhItg0=; b=WkDxi5cCdZGXt8mBRYztBqoIRfGX2BYL0mKHeiBxGdulwVqgUFPn6F32lV5WpfX914 BMPPj/h5oyu23JEA5Qb+DLeq6snBEeCukHfP8MJTM0lEIViAYxENp5zDSZvfkd5bK/kc nush5R2d1FRGBB72d/lBfiIIX3YunTBdZcYGwNogQZcr4C3xUI5cGw9jRB+sWzrHOIoV ioLfhX1fNGNJIvPRlR6xO6guU9v5QZv7paByg8d3/j0elG7hrSbO5tJJ7B+psm8X4lkF f1u0m81GoquTPtTvnfAwhJ7qmc188a7vNiG7bgIMmcqFuG80EadKmdJdVGye8z0+eQCG mm7Q== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAUQYyhbfZlDNB5BUyuRrmvG5Fh+B40ZIiH//hfY49smLug2lqtm l3ixAlq+hur57u2WiDL0BF8= X-Google-Smtp-Source: APXvYqxuCFAGSw7SRngPtpULjzaIO2VJp8j+HLyPs1U2nyaotAPAEF3iqHQA7728GL4fN6aZcMAYIQ== X-Received: by 2002:a1c:b088:: with SMTP id z130mr11890695wme.5.1555939371955; Mon, 22 Apr 2019 06:22:51 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a1c:2d04:: with SMTP id t4ls3333961wmt.4.gmail; Mon, 22 Apr 2019 06:22:51 -0700 (PDT) X-Received: by 2002:a1c:7dd7:: with SMTP id y206mr12304855wmc.81.1555939371167; Mon, 22 Apr 2019 06:22:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555939371; cv=none; d=google.com; s=arc-20160816; b=FzrsShnm+9W7ho4lwatr9OwchskojUYDLtGuTlu16OO5BN7A/oiGbXTDMKpVzlxEwC U6G/4jWSDB65EkhWptwlOd2xgeeO+HVEE7gsCsOwwocXnVLKeCbnar8VF6UY6KDjuwEj S1JiQ9sVvr0SxRswI6/5PvPgFTa4ozzvQmF4ZqqSfP+6ncd0y0um8VU15LvW9/LJywlR bMZ0Zo/JyF6ch+gTjWlLNJ36v4+/S8TVdlqpKU9mlTCnJMXsd//b+3AY/MEq31/QrDKJ +EhYebMFEY+v3SAZvac/ssb8rEAR2yl8G/3iEdND64i4uGfkNpNXXecttUfI8K87ek2B K5fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Ro3H6QBzaSW2ln88OOwSTEhZio+T56ukEUVoJLBGdpA=; b=s2WcUMNN1XEaiq7KKztkO1vUUI1sgie73MYQP4GmxrtxeqQm+DLV1QfkLKiMmwIqHP hCsSfS+3Xfcd3swsb+eK5Mhq+r1httHCkkWj1Q4QVagrZ0+Z+DxieEyV5GTJ2kvVLHNr WBBqKjz4MSqZ7Jea4XcrwUiS4nMu9fkOm+VitsIIEIA4lYOG+jO8DfArLOlUzoISVRiD g0hJj9A3iSM78/MGI3T9yFHOEjPdK8JmmwN1zIiB6vfxPLPDg3zQPidga07w/07vjXSR WYzAMXVML8jX8oOxCgUIVlmSjmW0E3fnMi4MKL6CUv7qwzutUkK3mQ6DimkcqvW/8HoO sarQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TDjTiysr; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::436 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com. [2a00:1450:4864:20::436]) by gmr-mx.google.com with ESMTPS id t14si1161029wmj.4.2019.04.22.06.22.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Apr 2019 06:22:51 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::436 as permitted sender) client-ip=2a00:1450:4864:20::436; Original-Received: by mail-wr1-x436.google.com with SMTP id j9so15790950wrn.6 for ; Mon, 22 Apr 2019 06:22:51 -0700 (PDT) X-Received: by 2002:adf:e952:: with SMTP id m18mr2323593wrn.291.1555939370563; Mon, 22 Apr 2019 06:22:50 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TDjTiysr; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::436 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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.org gmane.text.pandoc:22589 Archived-At: --000000000000797afc05871e5d19 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You can include the file with the macro definitions on the command line before the actual source. They will be concatenated so effectively the macro definitions end up at the top of your markdown.Just make sure to give it an `.md` rather than a `.tex` or `.ltx` extension, or set the source format explicitly with the `-f` or `-r` option: ````sh pandoc -f markdown mymacros.ltx source.md ```` Den s=C3=B6n 21 apr. 2019 22:28Alberto Simoes skrev: > Hi > > The latex_macro extension allows me to define extensions directly on my > pandoc md source. > Nevertheless, I have a file with my usual macros, and I would like to use > it from my pandoc md files. > Is that possible? > > Thank you > Alberto > > -- > 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/f2870a3c-cdc1-4ede-bb88-= 8875a94537ab%40googlegroups.com > > . > For more options, visit https://groups.google.com/d/optout. > --=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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/CADAJKhDvc-WkrgyqP%3DAhoz1YgVZLEGnw58Fya6mW%3Dfgw13mfkA%40ma= il.gmail.com. For more options, visit https://groups.google.com/d/optout. --000000000000797afc05871e5d19 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You can include the file with the macro definitions = on the command line before the actual source. They will be concatenated so = effectively the macro definitions end up at the top of your markdown.Just m= ake sure to give it an `.md` rather than a `.tex` or `.ltx` extension, or s= et the source format explicitly with the `-f` or `-r` option:

````sh
pandoc -f mar= kdown mymacros.ltx source.md
````


Den s=C3=B6n 21= apr. 2019 22:28Alberto Simoes <h= ashashin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
<= div dir=3D"ltr">
Hi

The latex_macro extension = allows me to define extensions directly on my pandoc md source.
N= evertheless, I have a file with my usual macros, and I would like to use it= from my pandoc md files.
Is that possible?

<= div>Thank you
Alberto

--
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 pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To post to this group, send email to pandoc-discuss@googlegrou= ps.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/f2870a3c-cdc1= -4ede-bb88-8875a94537ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://gro= ups.google.com/d/msgid/pandoc-discuss/CADAJKhDvc-WkrgyqP%3DAhoz1YgVZLEGnw58= Fya6mW%3Dfgw13mfkA%40mail.gmail.com.
For more options, visit http= s://groups.google.com/d/optout.
--000000000000797afc05871e5d19--