subscript

Subscript vs. Superscript conflict

吃可爱长大的小学妹 提交于 2021-02-09 11:59:05
问题 Background: I'm trying to write a module to concatenate strings with it's formatting. Therefor I'm looking in all Font properties that could matter, including Subscript and Superscript . Sample Data: Imagine in A1 : Sample Code: Sub Test() With Sheet1.Range("B1") .Value = .Offset(0, -1).Value For x = 1 To .Characters.Count .Characters(x, 1).Font.Subscript = .Offset(0, -1).Characters(x, 1).Font.Subscript .Characters(x, 1).Font.Superscript = .Offset(0, -1).Characters(x, 1).Font.Superscript Next

Javascript - Change all numbers in a string to subscripts

心不动则不痛 提交于 2020-11-28 02:02:04
问题 I have an input box in which the user inputs a chemical formula. I am displaying their input back to them in a table, with the following code in my javascript file. document.getElementById("entered").innerHTML = userIn; ...where "userIn" is the "id" of the input box, and "entered" is the id of the data in my table row. Now, here's my question: Is there any way I can change all of the numbers in the formula to subscripts, but leaving the letters unchanged? So if H2O2 is entered, only the 2's

writing a label in R for a plot using text, and subscripts using either bquote, paste or expression

荒凉一梦 提交于 2020-06-18 10:45:13
问题 I am having some difficulty with the use of quote, paste and expression. I use a package that gives me some plot based on some results obtained from a data file. The results are saved as objects ( MIN.ED and MIN.error ). For the plot, I would like to label some of the lines on the plot using those result objects as well as text. For the label I use the following line1abel<-paste("MAM"[3],MIN.ED,"\U00B1",MIN.error) I have tried variants using "MAM"["3"} or "MAM[3]" and keep on getting NA. MAM

How to display text with subscripts or superscripts in the Title Bar?

坚强是说给别人听的谎言 提交于 2020-05-12 02:44:06
问题 I would like to be able to show subscripted text in the Title Bar of a Windows Form or WPF Window. The reason for this is simple. Our project team has written a molecule editor: Instead of just displaying its name, 'ACME', we would like to show something like: ACME - Editing C 6 H 12 Cl where the text is subscripted (and possibly superscripted) and whether the control is shown in a Windows Forms or WPF host. 回答1: The original question was asking how to insert a RichTextBox in a Form's Caption

R - Interpreting a subscript in a variable used in ggplot

半腔热情 提交于 2020-04-10 22:07:09
问题 I'm using ggplot to do some multiline plots that are constructed with lots of variables and the use of paste. I have not been able to figure out how to get the subscript 3 in O3 to appear in the following simplified version of the code. gasSubscript <- "O[3]" color1 <- paste(gasSubscript,"some additional text") df <- data.frame(x = c(1,2,3,4,5,6,7,8,9,10), y = c(10,9,8,7,6,5,4,3,2,1)) testPlot <- ggplot(data = df, aes(x = x)) + geom_line(aes(y = y, color = color1)) color1 contains "O[3] some