How to automatically generate a table of contents in colab notebook? - google-colaboratory

Note, I'm not requiring a numbered TOC, just any old auto generated table of contents would be great.
Background
The problem I face is I have a long notebook with many top level # .., second ## .. and third ## .. level headings, so it's a bit of a labrynth. It would be extremely convenient if there's a way to automatically generate a table of contents (similar to how it can automatically be generated with google docs). Is this possible in colab? My goal is to avoid having to write it manually, for two reasons: efficiency, and accuracy (I may make mistakes).
What I tried
I tried the obvious (looking in 'Insert', as one would with a google doc), but no luck:
Any ideas?

The icon with three dots/lines on the left gives an automatically generated Table of Contents.
Click here:
It brings up a Table of Contents on the side:

If you want to add it in the notebook itself you can do the following.
Go to the command palette (shortcut or left bottom corner)
Type "table of contents"
Choose "add table of contents cell"
Enjoy your TOC cell

Related

Qlikview Fast Change option is not working

I have created one QV report in which i have added one chart which shows result data.
In that chart properties i have tick fast change allowed type as: Pivot table and Straight table.
My QV desktop version is 12. While selecting one dimension and one measure and click on change the type,at that time it is not working.
I have created my another report in QV version 11 and fast change is working proper over there. Is this the issue of versioning?Or else some property issue?
After clicking on the red highlighted symbol, it still keeps as it is and does not converting to pivot data.
Straight Table:
Pivot Table:
Also below is the Screenshot of the report which i have created in QV version 11. For one dimension and measure,while click on fast change option, it is converting to pivot table as per below:
Can anyone help me out please?
I have already tried by deleting my existing chart and created another new chart with same properties but it is also not working for the new one.
Click on the title of the dimesion and drag it up and to the right. your cursor should go off of the object without releasing the mouse button. to about where my green arrow is.
Then it will look like this

How do I format/tag an accessible PDF table that spans multiple pages horizontally?

I'm responsible for remediating a PDF that has been generated by a third-party, proprietary system for which I have no access to the layout or design. The goal is to pass the adobe acrobat DC accessibility checker before publication.
Some of the tables in the PDF span multiple pages horizontally (i.e. with a page break at column 4 of 7). Thus far, I have designated each piece of text content as a "Cell" and grouped those into a "Table Row" tag and defined each header and sub-header as a "Table Header Cell".
However, Acrobat DC seems to get confused as to the relative size and spacing of each table element. It is creating phantom column headers and rearranging or combining rows in order to fit the appearance of a more standard layout PER PAGE. But since I need one cohesive table to span TWO PAGES, this is breaking my accessibility.
Depending on how I nest my table elements, I get a table layout like one of the two examples below:
Example when including blank cells for multi-column header rows
Example when defining the column span of multi-colum header rows as "7"
As you can see, the layout is not uniform and does not pass regularity checks. Plus, as I add more rows with several blank cells, the table editor produces an error that reads:
"Unknown Table Structure Encountered"
The only way I have managed to remove this error, is to exclude the bolded main-section sub-headers from the tag structure entirely, but I cannot just leave them as untagged content and pass the checker.
Please help.
Signed up just to comment to
Kevin, thanks for replying. Because of the malformed grid, I cannot even click on the cells on Page 2 in order to associate headers. Is there a way to define table structure without using the Table Editor mode? – Glamador Apr 3 at 12:27
but don't have the rep yet to do so:
Glamador - Knowing it can't help you half a year ago but might in the future: I encountered this in a document this week and figured out the "Why" and how to get the Table Editor back, but not the "Easiest/best way to solve" the tagging in Acrobat. This issue is denying you Table Editor is with the table header (TH) cell you created that spans multiple pages.
So if you set a table header cell to something like Row Span: 7, and 3 of those are on the second page Acrobat will give you the "Unknown table structure encountered. Please retag this table using the Reading Order Tool to possibly fix the problem." error any time you try to use the Table Editor on the table that has that [table header cell with a multi-page row span/I'm not working with but assume column span too].
To get your Table Editor use back (not solving the tagging of accessibility, but to quit getting that error on your table,):
Go to your tags
Create a new empty Table Header Cell
Drag the content displayed in the tag from the problem TH to your new TH
Delete the [multiple page row/column spanning, but now empty] problem TH
Repeat if you did this in multiple TH in the same table
You can now use Table Editor again
Note: Because you can't use the Table Editor once these problem headers have been created you can't use it to see which TH's you have set to span multiple pages, or see those row/column spans, so you're going to have to just look at your document if you went through tagging and are going back and checking later and figure out which are the likely problem headers to replace. If you create that header span again in the table that goes across multiple pages you'll be unable to use the Table Editor again until you delete that tag with the page spanning issue.
I haven't found if you can combine TH Row Span settings with IDs/Associated Header Cell IDs and have the user software identify both, so I've been doing the tedious ID association on large but simple tables as my "It's tagged correctly" option, but unfortunately it isn't nearly as fast and easy as Row Spans.
You can edit the tag's object properties by right-clicking on the tag and then you can add an ID there if it doesn't already have one. Be sure each data cell is associated with a header cell. PAC's screen reader preview will also give a good view of the layout to help you get everything associated correctly.

How to programmatically group and set the position of pictures in a word document using access vba

I am currently trying to insert pictures into a word document using access, I currently have a form with a button that uses a folder browser to search for pictures...these pictures are stored in a table!.
I can then select those pictures and insert them into a document, this all goes well, the problem is...I need to then group them (maximum 4 pictures in one group) after days of searching I cannot find any solutions to my problem.
It seems that I must first discover the position of the pictures and then I can go further, the problem there is...that there can be many pictures in total in the document so they do not have a fixed point and there is text between and after the pictures.
How do I solve this?
The most reliable and controlable approach is to place the pictures in table cells. In your case, probably a 2x2 table. Insert the table first (Tables.Add method) then get the target Cell.Range and use the Range.InlineShapes.AddPicture method to insert the picture.
Note that you should be able to control the width (or height) of the picture by setting the column (row) to an EXACT size. The other dimension should adjust automatically to retain the proportions.

IntelliJ: how to navigate horizontally while in column mode

There are situations where column editing mode works great. One thing I'm finding a bit annoying right now though, is that I don't know how to skip to the left or right without editing while in column mode. Check the attached picture.
So I've got some values in a matrix (copied from a select in DBVisualizer), and I want to add quotes and commas and stuff so it works as an SQL script. Currently my elongated cursor is positioned at the start of the "value2" column, and I want to skip to the end to add a quote there, a comma and another quote and then skip to the end of value3 and so on.
I get that I could do this another way - use regexp or do a better extraction of the text to start with. But now that I am where I am, I think there should be a way to navigate horizontally without losing the vertical selection that I've done. If I press left or right the selection collapses to a single line, same thing if I try ctrl-right (skip word).
Is there a key combo that does what I want in IntelliJ? If not, could I use some other tool (I'm on Ubuntu but if there's something in Windows that could work too)?
IJ doesn't support that at the moment. However, huge multi-line editing improvements are planned for the next version (v.13, ETA is the end of 2013). Feel free to track IDEA-80056 progress.

Fixed textframes in MigraDoc?

I wrote a very simple drag and drop style report screen online so users can specify labels and fields etc much like an MS Access Report. I am having an issue getting this to output as PDF and I am using MigraDoc. The TextFrame allows you to specify a Left/Top which is good but I need to do this for multiple rows and I can't quite get it to work in this way.
At present I tried to add a table and a row (for each record) and put textframes within this with the left/top properties but every field gets put in the same place i.e. 0,0 and the records flow over both the header and footer?
I am using c#