MathJax - aligned equations with id or class - html

This is my first post here, so I hope everything is clear enough to understand.
I have a list of equations (written in LaTeX), which are alligned like this:
LaTeX example
With following code:
\begin{array}{rcll}
\textrm{gravitational acceleration} & \qquad g & = & \dfrac{G\cdot M}{R^2} \\
\textrm{gravitational acceleration - latitude}: & \qquad g & = & g_{45} - \dfrac{1}{2}\left(g_{poles}-g_{equator}\right)\cos\left(2\varphi\cdot\dfrac{\pi}{180}\right) \\
\textrm{gravitational acceleration - altitude}: & \qquad g_h & = & \dfrac{G\cdot M}{\left(R + h\right)^2} = g_0 \left(\dfrac{R}{R + h}\right)^2 \\
\textrm{arc length}: & \qquad s & = & r\theta \\
\end{array}
The next thing I want to do is that when I click on an equation I get a dropdown with more information or that I go to a page with information of that equation.
But to do this, I think I need some kind of ID of the equation to know which one is clicked and needs extra information.
I hope everything is clear and thanks in advance.

Related

Putting HtmlWidget elements in a paragraph

May I know how to put the elements I get from HtmlWidget(allwordlist![0].ivakavakayagataki.toString()), HtmlWidget(allwordlist![0].ivakavakayagataki.toString()), in a paragraph?
I am making a dictionary application and the above HTML render code works but problem is that I cannot seem to find a way to put these two in a paragraph as in side by side like a sentence.
May I get some help un knowing how to do this please.
Thanks in advance.
Ok so I made it work.
So I first made this function and not that <p> tags so the problem thats was making my HtmlWidget statement not inline and having line breaks was because of the p tag so I first took it out.
Widget mergehtml(String html1, String html2,){
html1 = html1.replaceAll("<p>", "").replaceAll("</p>", "");
html2 = html2.replaceAll("<p>", "").replaceAll("</p>", "");
String mergedHtml = "<p style='font-size:18px;'>" + html1 + " " + "[" + html2 + "], " + "</p>" ;
return HtmlWidget(mergedHtml);
}
and then I called it and put my two variables there.
mergehtml("${allwordlist![0].tina}","${allwordlist![0].itavi}",)
it then started working inline.
Thanks :)

vba cycle through labels to change caption?

I have a list of lables like lblData1, lblData2, etc.
I would like to change their caption with a cycle like:
For i = 1 To 10
lblData & i.Caption = "Something"
Next
But logically is not working..how can i achieve this?
Nevermind, I found out I can do:
For i = 1 To X
Controls("lblData " & i).Caption = "Something"
Next

SSRS:Use decimal place in expression

I would like to minimize the decimal place in my report.
my expression:
="On: "& Avg(Fields!System.Value) & " OFF: " & avg(Sum(Fields!A1.Value)/Sum(Fields!A2.Value)*100)
I would like to show no decimal place for ON and one deciaml place for OFF.
I tried it with the function of ssrs but that is not possible.
How can I do this in this expression?
Try:
="On: "& FORMAT(Avg(Fields!System.Value),"N2") & " OFF: " & FORMAT(avg(Sum(Fields!A1.Value)/Sum(Fields!A2.Value)*100),"N2")
In "Nx" replace x by the number of decimals you want to show.
Let me know if this helps.

format lookupset expression

In Report Builder, I have an expression using the lookupset function that pulls back either nothing, a date and description, or several dates and several descriptions. The data it is pulling is correct. I have searched this forum and MSDN. Using what I've found in both places, I have tweaked my expression to the following.
My expression:
=Join(Lookupset(Fields!ProjectName.Value,
Fields!ProjectNames.Value,
Fields!TaskBaseline0FinishDate.Value & " - " & Fields!TaskName.Value,
"DsActivitiesCompleted"))
However, when this is displayed it doesn't have a carriage return, it just puts one after another after another. Example Below:
08/05/2015 – Milestone: Kickoff meeting Complete 08/18/2015 – Milestone: PMT Test Planning Complete 08/26/2015 – Milestone: Set CCD Date 08/26/2015 – Sprint 0 Complete 09/18/2015 – Milestone: Wave 1 Complete 09/28/2015 - Milestone: Wave 2 Complete
What I want it to look like is below. If possible I would like to have bullet points in front of each line as well.
My question is how do I get it in the format above?
Thanks,
MM
You have missed the final (optional) argument of JOIN which states which character you want to use to join your string together. Changing your expression tyo use vbCrLf (the VB new line code) as follows
=Join(Lookupset(Fields!ProjectName.Value,
Fields!ProjectNames.Value,
Fields!TaskBaseline0FinishDate.Value & " - " & Fields!TaskName.Value,
"DsActivitiesCompleted"),
vbCrLf)
Gives this output
Update
Use the below to use Chr(183) as a bullet character for each new line as well
=" " + Chr(183) + " " +
Join(Lookupset(Fields!ProjectName.Value,
Fields!ProjectNames.Value,
Fields!TaskBaseline0FinishDate.Value & " - " & Fields!TaskName.Value,
"DsActivitiesCompleted"),
vbCrLf + " " + Chr(183) + " ")

Filter for Text with spaces

Using Microsoft Access I want to set a filter for records which include spaces. I tried double escaping by using '""' to no avail.
I have a table like so:
ID Title
1 Green
2 Blue Yacht
3 Yellow
and a form just displaying these records. When I now set the filter:
Form.Filter = "TestTable.Title LIKE '*Yellow*'"
it works like a charm. But when trying to filter for "Blue Yacht"
Form.Filter = "TestTable.Title LIKE '*Blue Yacht*'"
I get an empty result. Filtering for just Blue works like it is supposed to. Somehow Access doesn't like the spaces in the filter. How can I filter for e.g. "Blue " or "Blue Yacht"?
That's very strange behaviour, it should work fine as is, you could try using the Chr code instead of the space:
Form.Filter = "TestTable.Title LIKE '*Blue" & Chr(32) & "Yacht*'"
I stumbled upon this old thread while searching a solution for the same problem. I found none so far. I wonder if this is a bug on Access or what.
So, this is my case, I tried both filters below. I was working to filter and populate a Datasheet subform. Filters are in Combo Box: Citrate, Paxgene, Sodium Herapin.
Dim sTType as string
...
...
1. sTType = "[Tube Type] LIKE '" & Me.txtTubeType & "*'"
2. sTType = "[Tube Type] ='" & Me.txtTubeType & "'"
...
me.Filter = sTType
When Sodium Herapin is selected and applied as filter , the filter comes up with nothing, while I've no problem with the other word filters.
Sol.: I inserted this code way up
me.txtTubeType = iif(InStr(Trim(Me.txtTubeType), "Sod") > 0, "Sodium*", me.txtTubeType)
...
...
sTType = "[Tube Type] LIKE '" & Me.txtTubeType & "'"
me.Filter = sTType
The work around is kind of crude but it worked for my situation.
Cheers!