Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation of \newcommand shows replaced value, not example #1973

Closed
JensErat opened this issue Feb 25, 2015 · 4 comments
Closed

Documentation of \newcommand shows replaced value, not example #1973

JensErat opened this issue Feb 25, 2015 · 4 comments

Comments

@JensErat
Copy link

In the documentation on \newcommand, the example is executed and replaced by the macro's value instead of printed:

\newcommand{\tuple}[1]{\langle #1 \rangle}
$\tuple{a, b, c}$

Displayed is: ${a, b, c}$.

It seems, the author expected \newcommand not to work within code sections, but it actually does.

@jgm jgm closed this as completed in 47bfdca Feb 25, 2015
@nkalvi
Copy link

nkalvi commented Feb 26, 2015

You may want to freshen http://johnmacfarlane.net/pandoc/README.html after the fix.

@jgm
Copy link
Owner

jgm commented Feb 26, 2015

I'll regenerate when we have the next release. Doing it now would
bring some option documentation out of sync with the released version.

+++ nkalvi [Feb 25 15 17:14 ]:

You may want to freshen http://johnmacfarlane.net/pandoc/README.html after the fix.


Reply to this email directly or view it on GitHub:
#1973 (comment)

@nkalvi
Copy link

nkalvi commented Feb 26, 2015

You're right; apologies for not being precise - I meant just the http://johnmacfarlane.net/pandoc/README.html#latex-macros section. This is how it looks now:

latex macros

@jgm
Copy link
Owner

jgm commented Feb 26, 2015

Yes - I just refreshed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants