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

Consistent numbering of figures and tables across output formats #2328

Closed
sjackman opened this issue Jul 24, 2015 · 5 comments
Closed

Consistent numbering of figures and tables across output formats #2328

sjackman opened this issue Jul 24, 2015 · 5 comments

Comments

@sjackman
Copy link

I'm rendering a Markdown document to HTML, PDF and DOCX. The tables and figures of the PDF are automatically numbered, but in HTML and DOCX they are not. Either is fine with me, but I would like for it to be consistent across output formats. So, how do I either

  1. disable automatic numbering of figures and tables for PDF, or
  2. enable automatic numbering of figures and tables for HTML and DOCX
@sjackman sjackman changed the title Consistent number of figures and tables across output formats Consistent numbering of figures and tables across output formats Jul 24, 2015
@rgaiacs
Copy link
Contributor

rgaiacs commented Jul 24, 2015

The tables and figures of the PDF are automatically numbered,

This is done by LaTeX. If you don't want the numbers you can run

$ sed -i 's/caption/caption*/' name-of your-file.tex

before compile from LaTeX to PDF.

but in HTML and DOCX they are not.

For HTML you can use a filter to add the numbers so that it is part of the text. You can also use CSS to add the number.

I don't know very much of DOCX but I believe that the filter will work.

@sjackman
Copy link
Author

\caption*{ works. Note that it requires \usepackage{caption}.

@s7726
Copy link

s7726 commented Aug 7, 2015

For DOCX you should just have to apply the correct number formatting to the figure label style.

@ickc
Copy link
Contributor

ickc commented Mar 10, 2017

I agree with @mb21 that this should be closed.

@mb21
Copy link
Collaborator

mb21 commented Mar 11, 2017

This issue is probably a subset of #813

@mb21 mb21 closed this as completed Dec 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants