public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Alberto Simoes <hashashin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: LaTeX Macros from External File
Date: Thu, 25 Apr 2019 12:33:22 -0700 (PDT)	[thread overview]
Message-ID: <70bd63af-7ad0-4c24-8531-a0c3ac418ff1@googlegroups.com> (raw)
In-Reply-To: <CADAJKhDvc-WkrgyqP=Ahoz1YgVZLEGnw58Fya6mW=fgw13mfkA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 2710 bytes --]

Hi

For LaTeX it is working great.
Nevertheless, for HTML, it isn't. 
And it is behaving strangely.

These are my macros:

\newcommand{\yhat}{\hat{y}}
\newcommand{\ex}[2]{#1^{(#2)}}
\newcommand{\exi}[1]{\ex{#1}{i}}

and only the one in the middle (\ex) is really being processed properly.
No matter the place I put it, it is always the only working.
Is this because it is the only one that only uses "primitive" constructs, 
somehow?

Thank you
Alberto


On Monday, April 22, 2019 at 2:22:53 PM UTC+1, BP wrote:
>
> 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ön 21 apr. 2019 22:28Alberto Simoes <hash...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> 
> 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>.
>> To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/pandoc-discuss/f2870a3c-cdc1-4ede-bb88-8875a94537ab%40googlegroups.com 
>> <https://groups.google.com/d/msgid/pandoc-discuss/f2870a3c-cdc1-4ede-bb88-8875a94537ab%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/70bd63af-7ad0-4c24-8531-a0c3ac418ff1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 4981 bytes --]

  parent reply	other threads:[~2019-04-25 19:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-21 20:27 Alberto Simoes
     [not found] ` <f2870a3c-cdc1-4ede-bb88-8875a94537ab-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-04-22 13:22   ` BPJ
     [not found]     ` <CADAJKhDvc-WkrgyqP=Ahoz1YgVZLEGnw58Fya6mW=fgw13mfkA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-04-22 15:52       ` John MacFarlane
2019-04-25 19:33       ` Alberto Simoes [this message]
     [not found]         ` <70bd63af-7ad0-4c24-8531-a0c3ac418ff1-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-04-25 20:02           ` Alberto Simoes
     [not found]             ` <2572e66c-d943-4899-98c7-90fbed4b7aaa-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-04-25 20:41               ` Alberto Simoes
2019-04-26  0:45               ` John MacFarlane
     [not found]                 ` <m236m5y4qa.fsf-Kg0TIO5PyJpkhmErBYysHMpsVdM05VCzQjotyikrkNS67hWjmhPcHA/vqy67L5BpjQwYZcTdm+3YtjvyW6yDsg==@public.gmane.org>
2019-04-26  8:44                   ` Alberto Simões
     [not found]                     ` <CAAkRyrt80T0O-bCBGirQwAUM5oA_Ooxpg=41Jp9NyKNrkQ8vTg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-04-28 20:05                       ` Alberto Simoes
     [not found]                         ` <03c33657-2843-46b2-a074-eca3173938cc-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-04-29 18:55                           ` BPJ
     [not found]                             ` <CADAJKhAMSptqwy2NGVufupe0G0YGnXd=qV+jd1489XyxiH259g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-04-30 14:15                               ` Alberto Simões

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=70bd63af-7ad0-4c24-8531-a0c3ac418ff1@googlegroups.com \
    --to=hashashin-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).