Ask Your Question
0

diacritical marks?

asked 2014-07-08 21:55:27 +0200

smbelcas gravatar image

How do we do diacritical marks in Sage? They don't work in math mode in LaTeX, so I don't see how to get them in Sage and google doesn't turn up any results more recent than a 2008 complaint.

edit retag flag offensive close merge delete

Comments

Can you be more precise about what you want to do? Are you using Sage on your computer, online, in command-line, in a notebook? Do you want to name a variable or function some name with diacritical marks, such as `café = 3` or def café(x): return coffee(x)`? Do you want to use filenames that contain diacritical marks? Do you want to include comments with diacritical marks in your code?

slelievre gravatar imageslelievre ( 2014-07-08 22:39:56 +0200 )edit

In a notebook, using the shift-click cells, where LaTeX automatically compiles on save.

smbelcas gravatar imagesmbelcas ( 2014-07-09 00:36:49 +0200 )edit

I just wrote "Trying to write things like élan." in such a text cell with no problems... Anything [Mathjax](http://www.mathjax.org/) can do should be doable in the notebook there.

kcrisman gravatar imagekcrisman ( 2014-07-09 02:24:41 +0200 )edit

Well, when I write \'elan in LaTeX, I get a diacritical mark. But when I write it in the sage text cell, I get...\'elan. Searching the mathjax documentation for 'diacritical' doesn't turn up any results.

smbelcas gravatar imagesmbelcas ( 2014-07-09 03:07:57 +0200 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2014-07-09 04:00:26 +0200

smbelcas gravatar image

updated 2014-07-09 04:02:09 +0200

Aha! Sage's interface for text cells has a "Special Characters" button (looks like a capital omega) that allows one to insert certain letters with diacritical marks.
For marks that are not there (such as the Erdos mark, which should be there), one can use an HTML code from a table and insert it using the HTML button in the text-cell interface. (Thanks to Hannah Alpert for finding these solutions.)

edit flag offensive delete link more

Comments

So, by "How do we do diacritical marks in Sage?", you meant "How do we input diacritical marks in text cells on a Sage worksheet while editing it online on SageMathCloud?", is that right?

slelievre gravatar imageslelievre ( 2014-07-09 04:16:18 +0200 )edit

No, that is not what I meant. As I said above, I meant "How do we input diacritical marks in text cells on a Sage worksheet." This is independent of where the worksheet is edited (or at least should be).

smbelcas gravatar imagesmbelcas ( 2014-07-09 05:39:44 +0200 )edit
0

answered 2014-07-09 04:09:00 +0200

kcrisman gravatar image

updated 2014-07-09 04:11:41 +0200

Mathjax doesn't support just old anything in LaTeX, just math stuff. Just write your stuff in your ordinary keyboard setting in the text cell (but not inside dollar signs) and it should work fine. If your keyboard doesn't do it nicely (as mine doesn't do the Hungarian accent for Erdos) that is when you might use the other little menu or html.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-07-08 21:55:27 +0200

Seen: 608 times

Last updated: Jul 09 '14