Mathematica ItemStyle -> Bolding with Grid - wolfram-mathematica

I am very near the end of my project but I cannot get one last thing to work out. I need to bold a few lines in my "grid" but I am not sure how. So far I am only able to get the top row and the last column to become bold. But i need rows 1,12,13,14, and 15 to be bolded and the last column to be bolded. I have uploaded a screen shot of what I currently have.
What I currently have so far.
as you can see only the top row and the last column are bolded. I reiterate I need the top row, and rows 12,13,14,15 to be bolded.

You need to have a look at the specifications for ItemStyle in Grid's Details and Options section of the documentation.
You have ItemStyle->{-1-> Bold, 1-> Bold} that is asking for the last column and the first row to be bold. You want to skip specifying the columns and only specify the row so you have to tell it to use Automatic styling for the columns and then specify the row styling.
ItemStyle->{{Automatic}, {12-> Bold, 13-> Bold, 14-> Bold, 15-> Bold}}
Hope this helps.

Related

How to add the group of cells with the same structure in RDLC report?

I have an RDLC report and want to add the group of cells with the same structure as in red rectangle next to the right?
I can easily add the whole column, but third, fourth and fifth rows don't contain 2 cells. There's only one empty cell.
Please, take a look at the screen shot attached.
You need to add two columns to the right, and then merge two cells in the "header" rows by clicking on the first cell, pressing Shift key and then selecting the second cell. "Merge" option will be available on right-click for those two cells then as long as you are still holding Shift key.

Grouped TableView separator line

I have a grouped tableView with 3 sections. On the last section I have a single cell with a label. I need it to be completely transparent. I've done that but I still have the separator lines around and it's not very UI-pretty.
Is there any way to remove the separator lines for just one cell (or section for that matter)
Thanks in advance!

MigraDoc PDFSharp Table overflow text

I am creating a big table with MigraDoc.
I have two issues I don't know how to solve exactly:
If the content (Paragraph) of a cell is too long it breaks and I got 2 lines in my cell. I don't want this behavior. I want that the text which does not fit in the first line of the cell is hidden.
If a word is too long I want also that the characters which are outside of the cell are hidden. Now they are displayed in the next cell :/ and are overlapping with the content of the next cell...
Do you know how to fix this issues?
This behavior is by design.
Use MeasureString to measure your text before you add it and truncate at the correct place (maybe adding "..." if you want).
See also:
http://forum.pdfsharp.net/viewtopic.php?p=6158#p6158

Highlight the row in excel mac 2011 when a cell has a specific word

In Excel 2011 Mac (it seems to be important since other referenced solutions in stackoverflow for excel windows or mac older versions don't seem to work).
I want to apply conditional formatting so when a cell in column D includes a word "student" the full row which includes the cell gets a color format (blue color for the text white/empty filling for the cell).
I have tried INDIRECT and some other formulas but I don't get it right. Only the cell that includes the word gets the formatting, not the whole row (that is, the rest of the cells on the same row where the pattern matches).
Admittedly, this answer is based on the Windows version but it should still work for you.
(Pictures taken from mix of Windows and Mac versions where possible.)
Select Manage Rules... from the Conditional Formatting menu.
Click the New Rule... button.
Select Use a formula to determine which cells to format, enter the formula as shown below, and then click the Format... button to choose your conditional format (blue text with no fill).
- You said you were looking for the word "student" in column D, and I have assumed that row 3 is the first row that you want this conditional formatting to be applied. Just change the 3 to another row number if this is not the case.
If the word "student" is not the only thing in your target cell, then use the following formula instead:
=ISNUMBER(SEARCH("student",$D3))
Then type a range into the Applies to textbox as shown.
- In this example, we assume that row 3 is the first row and row 400 is the last row that you want the conditional formatting to be applied to.
- Note that we did not include column letters in the formula since we want every column of each row to be included.
Click OK and you should be done.
I hope this works for you.
Follow these steps for conditional formatting.
Step 1 - Select Conditional Formatting > New Rule...
Step 2 - Select Style Dropdown
Step 3 - Choose Classic
Step 4 - Select Dropdown with Format only top or bottom ranked values
Step 5 - Select from Dropdown Use a formula to determine which cells to format
Step 6 - Highlight desired Cells and take note of the current cell. (D3)
Step 7 - Use formula: =MATCH("Student",D3,0) in the formula section. Again, D3 is the current cell.
Step 8 - Press OK

Cells & cellgroups in mma

This question and the comments and answers prompted this question. How do I effectively use Cells and CellGroups in mathematica? I've always only programmed systematically inside the input cells, entering the next line in a new cell after evaluating the previous. Looking around at the different options available, this seemed inefficient.
How do I use these more effectively? I tried organizing my code into sections using command-5 and into subsections, etc. But then when I try to get back to input cell with command-9, it doesn't evaluate it. I'm sure I'm doing something wrong, so help is appreciated.
Cell groups are just that, a way to group cells together. These groups can be easily selected, executed as one, and opened/closed (collapsed). By default these groups are indicated by a series of blue brackets to the right of the cells:
As seen above, output cells are automatically grouped with the input cell that created them. Also, the Section cell automatically groups the Text, Input, and Output cells below it. Finally the Title cell groups all cells below it, including the Section cell.
The different classes of cells that are available, such as Title, Section, etc., are determined by the active Stylesheet. The way they group is controlled by the option CellGroupingRules. This is a more advanced area, and details are probably better addressed in a different question.
Cell Grouping can be done either automatically, the default, or manually, or to a limited extent by a combination thereof. This is all handled by the menu commands in Cell > Grouping > ... or the keyboard shortcuts listed there.
If using Automatic Grouping, then styling a cell in a style that groups (as controlled by CellGroupingRules) will automatically group "lesser" cells and cell groups beneath it.
To style a cell, select the entire cell, not just the cell contents, by either:
clicking on the blue cell bracket (or the area where it would be if it is hidden)
clicking within the cell and using Alt+. until the entire cell is selected
clicking and dragging from above the cell, where the cursor is horizontal, to below the cell
Then, use menu Format > Style > ..., or the corresponding key combinations.
The same methods can be used to select cell groups, rather than individual cells.
To create a new cell of a particular style:
click outside of existing cells where the cursor is horizontal
this should create a horizontal rule as shown in earlier illustration
specify a style, again with Format > Style > ... or keyboard shortcuts
start typing (or paste) the contents of the new cell
To create a new Input cell, the default style, simply do step (1) and then type or paste the input.
It depends on your stylesheet. Input is not the nineth numbered style in every stylesheet. Also, you have to select the cell bracket to change a cell's style.
I use sections particularly to be able to use folding, i.e. the double clicking on the cell group bracket to hide the lower ranking cells. That makes for a clean document. It doesn't do anything with the Input cells (except for the context option).

Resources