5
$\begingroup$

So I am writing a report in Mathematica and experiencing a problem.

First I create an input cell. Then write some text into it. Afterwards convert it to text cell with Alt-7. As a result some cells show up as the first cell, some as the second (as shown in the gif below).

enter image description here

As you can see in the gif, the cell fonts are different. Also the cell brackets are different. However both cells were created using Format > Style > Text (Alt-7 shortcut).

Here is the question. Why is this happening and how can I make them look the same way (use the same fonts at least)?

Sorry if it is a duplicate. Couldn't find anything.

$\endgroup$
  • 1
    $\begingroup$ Welcome! To make the most of Mma.SE start by taking the tour now. It will help us to help you if you write an excellent question. Edit if improvable, show due diligence, give brief context, include minimal working example of code and data in formatted form. As you receive give back, vote and answer questions, keep the site useful, be kind, correct mistakes and share what you have learned. $\endgroup$ – rhermans Jul 1 '18 at 16:50
  • $\begingroup$ The cell brackets give a clue. One is an output cell, the other a text cell. I guess that you have generated output using Mathematica then edited it. I don't think this is likely to work very well. $\endgroup$ – mikado Jul 1 '18 at 20:14
  • $\begingroup$ How can I convert the output cell into text cell. No output was generated. cells behave differently when I convert their style into text. $\endgroup$ – Levon Jul 1 '18 at 22:09
  • $\begingroup$ @Levon Thanks for the edit. $\endgroup$ – Kuba Jul 4 '18 at 14:26
4
$\begingroup$

You input cell contained a SubscriptBox so it can't be converted to a string when switching to a Text cell. The whole cell content is left as it was in BoxData which makes StandardForm styles active with addition to "Text" cell styles. The second cell content can be converted to a plain string so only "Text" styles apply.

You can investigate the content with Ctrl+Shift+E.

To keep consistent fonts, with Text cells and with 2D typesetting features proceed as follows:

  • do not convert input cells but write in text cells from the beginning

  • when a 2D formula happens, e.g. a subscript entered with Ctrl+-, an inline cell will be created automatically leaving the rest of the cell intact while supporting 2D features "locally"

  • in the second cell your τ should match the previous one, you can select it and hit Alt+9 to create an inline cell manually.

enter image description here

$\endgroup$
  • $\begingroup$ Great, thanks @Kuba $\endgroup$ – Levon Jul 4 '18 at 15:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.