Export Notebook as one long pdf page using Mathematica? - wolfram-mathematica

I need to export my notebook to show my work.
I want the pdf just to look like what I see on my screen in the same format as I scroll down through my notebook.
Is it possible ?
Edit :
New solution, new problem, thanks to Verbeia, I was able to have obtain a "1 long page" pdf out of my notebook. But there remain weird formatting behavior as below, can we fix that ?
While my notebook looks like :

This works for me under Mac OS X 10.6, Mma 8.0.1:
Select the whole notebook. This is easiest done if you have a top-level title or heading at the beginning of the document.
Choose "Save Selection As..." from the File menu (screenshot 1).
Choose PDF from the resulting dialog (screenshot 2).
You need to use "Save Selection As...", because "Save As" does try to calculate page breaks. If I understand your question correctly, you want a long "scroll" PDF with no page breaks. "Save Selection As..." does that.
EDIT in response to 500's question edit
To ensure the content goes "full width", you need to set the Printing Environment properly. I found setting the Printing Environment to the default Printing (see screenshot) and setting landscape paper in the Page Setup gave good results. Alternatively, you could go to the Option Inspector and set the Page Size or Paper Size settings for that notebook explicitly.
(on Mac OS X you get there from the Mathematica menu > Preferences > Advanced Tab > Show Option Inspector button > Notebook options > Printing options > Printing Options)

I don't know whether this will help for the this specific case. You can explicitly enter a page break into Mathematica using Insert > Page Break (appears at the bottom of the Insert menu). Try doing that before and after the image you have here.
Exporting by saving the notebook as a pdf and exporting by using the Export function often have different results as well. You may wish to try using the Export function out.

Related

How do I add an imshow option when right clicking on an item in MATLAB workspace?

I want to add another option when right clicking on MATLAB workspace items. I would like imshow to also appear in the menu:
You have to dig a little more. Those options displayed are what people frequently use when deciding to plot a 2D matrix. If your desired option isn't there, you have to go to Plot Catalog... (very last option at the bottom of the pop-up menu in your image) and choose the plot you want. In your case, you have to go to Image Plots, then choose the rig
Here's the window I get when I load up the onion.png image that's part of the image processing toolbox:
im = imread('onion.png');
The last option is imshow, which is what you need. However, I think this is more invasive than just typing in imshow(im); or whatever the variable name is called. You can also get MATLAB to autocomplete the variable by using TAB in the Command Prompt to save time. I personally think it's more quicker to type it in rather than having to wait for the Plot Catalog window to open.... then again, that's just me.
I think I found a workaround for that. On the Plots tab, right clicking on the imshow function lets me add it to the quick access toolbar. now I simply click on the variable on workspace and then press alt + 1 and Voila ! :)

Not about programming, but issues with SublimeText UI

Does anyone know (a) why this is happening and (b) better still, how I can fix it.
When I right-click a folder in the sidebar and select "New File" the dialog that shows the textbook to enter a new file name is partially hidden behind the status bar.
I have tried toggling off the status bar, but then the new file dialog just shifts down even lower.
You can simply resize vertically the panel by dragging it.

Take full localhost webpage screenshot (Firefox, Windows)?

I need to take a full screenshot of a localhost page I'm working on. Print Screen button offers me no solution to this nor the Alt-Print Screen does, as they take only what is displayed on the screen. I need the shot of the full page.
I tried with some online services and a couple of add-ons for Firefox to no avail since they cannot reach any localhost addess or are not compatible with FF 29.
Is there a way I can achieve this?
I'll answer my own question.
Forget about add-ons. You can do it via the browser's built-in Developer's Toolbar commands.
Press Shift+F2 and to bring the toolbar up at the bottom of the screen.
Type: screenshot file --fullpage
You will be asked for a location to sav your screenshot in .png format (e.g. file.png).
You can also omit the file name if you don't want the image to be saved and rather send it to the clipboard: - screenshot --fullpage --clipboard
Type screenshot help to see more interesting options.
The Firefox source docs tell how to take a screenshot with the developer tools
Using the screenshot icon
By default, the screenshot icon is not enabled. To enable it:
visit the Settings page
find the section labeled “Available Toolbox Buttons”
check the box labeled “Take a screenshot of the entire page”.
Using the screenshot command
Type :screenshot in the Web Console to create a screenshot of the
current page. By default, the image file will be named Screen Shot
yyy-mm-dd at hh.mm.ss.png.
Helpful params
Command
Type
Description
--clipboard
boolean
When present, this parameter will cause the screenshot to be copied to the clipboard. Prevents saving to a file unless you use the --file option to force file writing.
--delay
number
The number of seconds to delay before taking the screenshot; you can use an integer or floating point number. This is useful if you want to pop open a menu or invoke a hover state for the screenshot.
--dpr
number
The device pixel ratio to use when taking the screenshot. Values above 1 yield “zoomed-in” images, whereas values below 1 create “zoomed-out” images.
--file
boolean
When present, the screenshot will be saved to a file, even if other options (e.g. --clipboard) are included.
--filename
string
The name to use in saving the file. The file should have a “.png” extension.
--fullpage
boolean
If included, the full webpage will be saved. With this parameter, even the parts of the webpage which are outside the current bounds of the window will be included in the screenshot. When used, "-fullpage” will be appended to the file name.
--selector
string
A CSS selector that selects a single element on the page. When supplied, only this element and its descendants will be included in the screenshot.

Windows 7 taskbar icon grouping with multiple similar windows

When I have a number of similar windows opens, for example, multiple explorer windows, they are all grouped into the same icon on the taskbar. When I hover over this I get a thumbnail of the window, and a piece of truncated text which is supposed to help me work out what that window is.
However I also like to have the full path shown in explorer windows, so the truncated text is usually C:\CommonPathToEveryWind...
I have noticed that if I have over 14 explorer windows open, then Windows gives up trying to display these useless thumbnails, and instead gives me a nicely formatted list of paths.
My question is how can I customise this behaviour, to either disable thumbnails all together for a subset of applications where a thumbnail is inappropriate (explorer, 'Everything'); or to lower the max number of thumbnails per grouped taskbar icon to 2; or just to disable thumbnails all together, (without loosing the entire windows theme)
Edit: Just to make it clear what I currently get, and what I actually want. I do still want to keep the grouping behaviour, so that multiple instances of the same program, Explorer for example, only take one slot on the taskbar. What I want is to alter what is displayed when I hover over the grouped icon:
What I actually see - useless thumbnails:-
The style I want for any number of instances:-
Found the answer I was looking for here:
This can be done.
open regedit
navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband
right-click on the empty space in the right-hand pane and create new DWORD value
set the name to NumThumbnails
double-click the value and set it to the maximum number of thumbnails you want to see
close regedit, log off and log on again
That should do it. Note that you cannot completely disable thumbnails - setting the value to 0 is the same as setting it to 1.
-Indrek
right click task bar. select properties.
The option you are looking for is labeled taskbar buttons (see picture) and has a drop down box to the right of it. The options are:
always combine, hide labels
combine when taskbar is full
never combine
Note: some PCs don't have aero-supporting graphics cards, so that may hinder your ability to make changes...
Re:
My question is how can I customise this behaviour, to either disable thumbnails all together for a subset of applications where a thumbnail is inappropriate (explorer, 'Everything'); or to lower the max number of thumbnails per grouped taskbar icon to 2;
You can edit this via the Start Menu customize button or through regedit. Instructions with screenshots are found here: http://blogs.technet.com/b/win7/archive/2011/05/10/change-the-number-of-recent-items-displayed-in-windows-7-jump-list.aspx.
Re:
or just to disable thumbnails all together, (without loosing the entire windows theme)
You can edit this via the Advanced Settings menu found in System in the Control Panel or via regedit (as stated in a previous post). Info with screenshots here: http://www.guidingtech.com/12253/turn-off-windows-7-taskbar-thumbnail-previews/.

Visual studio Reformat Code/Document

I can't find the Reformat button, I know I can use ctrl+k+d, but I wish to have also the toolbar with the button. can someone help me ?
You can use Edit > Advanced > Format Document and you can also move this as a button to any toolbar. Go to Tools > Customize > Commands, select Toolbar and push Add Command button. Then select Edit category and find Document Format.
Apparently VS2010 (maybe others) hide certain commands depending on the style you choose. I chose Web Dev (code) as my choice and the Document Format is not present to be added to a toolbar. But, if I change to C# Code (tools>Import/Export) then the Document Format command is right there in the Edit menu where others here have said it is.
I had to import the C# Dev layout, but unchecked colors and code formatting options (so it won't overwrite those). What section you must import to get the format document button, I don't know, I didn't experiment that deep.
Seems stupid MS chose to force us down specific paths for layout with no convenient way to get out of it.
If you can't find it in the Edit menu: you can also find it if you press CTRL + P and then type >format. The shortcut is SHIFT + ALT + F

Resources