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

Markdown image to latex figures with numbering? #157

Closed
rddaz2013 opened this issue Jan 8, 2018 · 5 comments
Closed

Markdown image to latex figures with numbering? #157

rddaz2013 opened this issue Jan 8, 2018 · 5 comments

Comments

@rddaz2013
Copy link
Contributor

Hi,

with the normal sphinx(rst) we got the figure directive with caption... with latex it gives a nice numbered figure.

.. figure:: whatever
Figure caption

How it is possible to get this type of figure within/with nbsphinx?

@mgeier
Copy link
Member

mgeier commented Jan 9, 2018

You might be able to get this in a Markdown cell with something like this:

![Figure caption](whatever)

... but only if this is in a paragraph by itself.

Note that this is an accidental feature and it will likely be removed from nbsphinx in the future.
This currently works because of the implicit_figures extension that's enabled per default in pandoc: http://pandoc.org/MANUAL.html#extension-implicit_figures.
If #36 will be implemented some day, the use of pandoc and therefore this feature will most likely disappear.

@rddaz2013
Copy link
Contributor Author

rddaz2013 commented Jan 9, 2018

thx

Okay then i must save the plot as image before and set the 'link' in Markdown. (Think that works in many cases)

For a Markdown-Output from jupyter-cell i can use the Display/Markdown String right?
like Display(Markdown('....'))

@rddaz2013
Copy link
Contributor Author

rddaz2013 commented Jan 12, 2018

Okay Markdown('![Übersicht aller Signalverläufe](Egg.png)') for Image+Caption works...but if my first Header is Markdown('#'+'str(mysection))) is not recognized for the HTML Output [<h1>] in sphinx??

@mgeier
Copy link
Member

mgeier commented Jan 12, 2018

I don't know exactly what you mean, but it sounds similar to #152?

@rddaz2013
Copy link
Contributor Author

rddaz2013 commented Jan 12, 2018 via email

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

2 participants