How to get tab space in 'markdown' cell of

2020-07-10 07:44发布

问题:

I am writing descriptive ipynb file and need to give output in markdown with space, but unable to add tab space for printing structured data.

回答1:

  1. Type "nbsp" to add a single space.
  2. Type "ensp" to add 2 spaces.
  3. Type "emsp" to add 4 spaces.
  4. Use the non-breaking space (nbsp) 4 times to insert a tab.

eg.  This is an example.



回答2:

If I understand your question then I don't think this has anything to do with Jupyter cells. For example, are you able to type a tab key into a Stackoverflow question box? Most browsers do not allow tab keys in most dialogs on most websites -- instead, tab switches to the next area.

Some options:

  1. cut a tab from a text application, paste into a Jupyter cell. (works)
  2. try using a browser-specific extension, like TabMeansTab for Chrome or Tabinta for Firefox.

See also further discussions of typing tab keys in browsers in general on SuperUser:

  • https://superuser.com/questions/67934/typing-the-tab-character-in-browser-text-boxes
  • https://superuser.com/questions/522627/how-to-use-tab-key-to-indent-within-a-textfield-instead-of-jumping-to-next-elem


回答3:

I just had this problem and resorted to the following:

This is text with $\;\;\;\;\;\;$ some space inserted.