Q: I want to put a figure into a latex document. I am trying things, but the image is not appearing when I compile it.
A: You need to use:
\usepackage[pdftex]{graphicx}
instead of
\usepackage[dvips]{graphicx}.
[klf]
Saturday, September 8, 2012
Monday, August 13, 2012
Saturday, August 4, 2012
histc, histogram count
http://www.mathworks.com/help/techdoc/ref/histc.html
n = histc(x,edges) counts the number of values in vector x that fall between the elements in the edges vector (which must contain monotonically nondecreasing values). n is a length(edges) vector containing these counts
Very useful. Plot histogram points instead of bar graph. Need to calculate bin centers and use as x values. Divide the result of histc by the length(x) to get the y values. Plot.
n = histc(x,edges) counts the number of values in vector x that fall between the elements in the edges vector (which must contain monotonically nondecreasing values). n is a length(edges) vector containing these counts
Very useful. Plot histogram points instead of bar graph. Need to calculate bin centers and use as x values. Divide the result of histc by the length(x) to get the y values. Plot.
Friday, July 6, 2012
illustrator shortcuts
After decades of using Illustrator in a dumb way (okay maybe only 1.4 decades), I learned a few key points.
- If tracing an original, make it a layer, name it, and lock it.
- Make a new layer, name it, and draw on it.
- Use shortcut Z, zoom
- Use shortcut V, arrow
- Use shortcut [space], hand
- Use the different "corner" options (near the stroke box) so they're not pointy or pointy.
I think that's all.
Labels:
illustrator
Wednesday, June 20, 2012
vectorizing an image
Vector Magic
http://vectormagic.com/home
Takes an image that may become pixelated upon enlargement and vectorizes it into .pdf or other format. I used it for a logo that we wanted to blow up for a banner. Pretty neat. Two free conversions.
http://vectormagic.com/home
Takes an image that may become pixelated upon enlargement and vectorizes it into .pdf or other format. I used it for a logo that we wanted to blow up for a banner. Pretty neat. Two free conversions.
Tuesday, June 5, 2012
artboard size in Illustrator
Adobe Illustrator is yet another program that I have never fully grasped.
But here's how to change the size of the "Artboard" (corresponding to the "page", and holding the artwork that is printed or saved as PDF).
File > Document Setup > Edit Artboards
You should get a drag-able box.
Useful if you want to scale a 6-inch image by 1000% for a banner.
Wednesday, May 2, 2012
tables are out, DL, DT, DD is in
Some info on using definition lists to make table-like displays that are more maintainable:
http://www.onextrapixel.com/2009/05/13/how-to-use-dl-dt-and-dd-html-tags-to-list-data-vs-table-list-data/
http://www.maxdesign.com.au/articles/definition/
You can add the style information to the .css or to the top of the html page to test e.g.
style type="text/css"
dl dd { padding-bottom:0.5em; }
dl dt {float:left;} dt {text-align:left; width:8em;}
dl dd {margin-left:9em;}
dl { padding-bottom:0.5em; }
(add style tags before and after)
http://www.onextrapixel.com/2009/05/13/how-to-use-dl-dt-and-dd-html-tags-to-list-data-vs-table-list-data/
http://www.maxdesign.com.au/articles/definition/
You can add the style information to the .css or to the top of the html page to test e.g.
style type="text/css"
dl dd { padding-bottom:0.5em; }
dl dt {float:left;} dt {text-align:left; width:8em;}
dl dd {margin-left:9em;}
dl { padding-bottom:0.5em; }
(add style tags before and after)
Subscribe to:
Posts (Atom)