Monday, November 26, 2012

Linux Mint 14 with Cinnamon Desktop [Review] | OMG! Ubuntu!

Linux Mint 14 with Cinnamon Desktop [Review] | OMG! Ubuntu!

One opinion of Mint, specifically 14.  So far, I love it.  A great alternative to Ubuntu.  Although, I haven't tried its multi-monitor support

Friday, November 23, 2012

Sage - Download for Linux - Version 5.4.1

Sage - Download for Linux

For those keeping up, ver 5.4.1 has been released.  I have kind of let Maxima and Sage fall to the wayside for now, like I've said before.  For now python and Asymptote are working pretty well for me.  If only I could get the contour plot to work in Asymptote...:(

Tuesday, November 20, 2012

Asymptote Graphics Package - A preliminary 2D plot

Alright, so awhile back, I think this past summer, I was experimenting with Asymptote in order to replace Origin.  Origin is great and probably the best, but I only have access to it through Windows, and I am not a fan at all of Windows and even more Microsoft products especially Office such as Word and PP.  So I am trying to find an alternative to Origin to create high quality publication ready graphs.  I've briefly looked at SciDavis (a free Origin type software), but it is missing a lot of options and just doesn't look as good.  There is also matplotlib for Python, but the images just don't look "right" as well (same can be said for Matlab, Mathematica, Maxima, and Sage plots).  I dunno what it is, but for me they just don't cut it, so far.  Now, Asymptote looks GREAT!  However, it is command line based which may scare some people and there isn't much in the way of help and/or examples like say compared to matplotlib or Matlab which can be quite frustrating, especially if something doesn't work right off the bat and you have to debug and figure it out on your own.  I had a bit of this, but once I got done I was ecstatic!

So for a 2D plot here is my example.  I hope this helps at least one person.  I would like to one day generate many examples if possible.  I will post links later as I forgot where I found some help.

This is preliminary and I will be cleaning it up later.  For the code:


import graph;

size(300, 200, IgnoreAspect);

real L = 2;

real a = 1;

real l = L/a;

real z = 0.5;

real z_ovr_l = z/l;

real sigma = 25;

real kappa = 1/(2*pi*l*sigma);

real u_z(real r) {return 2*pi*z*(cos(pi*(r^2)));}

draw(graph(u_z, 0, 1), "$u_z$");

xaxis("$r$", Bottom, LeftTicks);
yaxis("$u_z$", LeftRight, RightTicks(6,2));


Generates
In order to "run" or compile the Asymptote code, I used the built in terminal, Konsole, in Kile.  I usually have the .asy file saved in a folder called something like Asymptote files.  I then open the .asy file in Kile and click the Konsole button at the bottom.  To run the file type in the terminal (make sure you're in the folder where the file is; it should be already there if you opened the file in Kile):

For an .eps file type: asy -V test or just asy test where test is the name of the file and -V brings the image up in a viewer.

For a .pdf file type: asy -V -f pdf test or asy -f pdf test

More later.

The Linux Mint Blog » Blog Archive » Linux Mint 14 “Nadia” released!

The Linux Mint Blog » Blog Archive » Linux Mint 14 “Nadia” released!

Asymptote, a graphics software « Bubbles Bad; Ripples Good

Asymptote, a graphics software « Bubbles Bad; Ripples Good

A nice, short blog post on Asymptote and also a bit on MetaPost, MetaFont, and PGF/TiKZ.

Monday, November 19, 2012

Sunday, November 18, 2012

Placing LaTeX .sty files in Ubuntu/Mint/Linux

Ok, so since switching to Mint I had to reinstall all software programs including TeX Live.  I forgot that I had installed the latest version TeX Live 2012 in Ubuntu from this post so I just installed from the repositories which is version 2009 (uses the same or similar repositories as Ubuntu) for Mint 13.

I was trying to compile a .tex file in Kile when I received an error stating that the bigints.sty could not be found.  Now there are a few ways to solve this.  One is to install TeX Live 2012 which is what I did before.  Two is to download and install the bigints.sty file from

http://www.tex.ac.uk/CTAN/macros/latex/contrib/bigints/

or

http://www.ctan.org/tex-archive/macros/latex/contrib/bigints

and then place it into the directory of the file you are compiling.  This is a per file thing.  if you want to install universally you can either install into the directory (for me at least) /usr/local/share/texmf/ where I found to go onto /usr/local/share/texmf/tex/latex.  It is then suggested to create a folder named after whatever the file name is.  So in this case something like /usr/local/share/texmf/tex/latex/bigints.  However, I could not create a folder in Nautilus probably because I am not logged in as admin.  I tried to open a terminal and did su and typed in my password and went back to Nautilus with no luck.  I didn't feel like looking up the commands to do this in the terminal which would have probably worked fine especially since I saw an alternative I could try.  This alternative is to create the same file structure in your home directory.  This is useful especially if you DON'T have access as an admin.  So I created ~texmf/tex/latex/bigints and placed the .sty file there.  Oh, I also saw where you might have to run texhash which I did through Kile's built in Konsole.  Viola!  It worked!

I also noticed that there is a texmf-texlive file under the share folder so this might be a possibility as well if the other route through just texmf doesn't work.






Found help from the following links:

http://www.volkerschatz.com/tex/tpacks.html
http://tex.stackexchange.com/questions/39771/finding-a-ubuntu-package-for-a-sty-file
http://stackoverflow.com/questions/1911713/add-find-style-files-in-to-latex
http://ubuntuforums.org/showthread.php?t=334047

Wednesday, November 14, 2012

Fallback Mode (Classic Session) To Be Dropped From GNOME 3.8 ~ Web Upd8: Ubuntu / Linux blog

Fallback Mode (Classic Session) To Be Dropped From GNOME 3.8 ~ Web Upd8: Ubuntu / Linux blog

Hmm, not sure what to think here.  I guess this means Ubuntu as well?  Dang, as I am not liking Unity anymore.  It seems to be heavy resource wise.  Plus, I can only get Gnome classic/fallback to get my quad monitors to work without much fuss.  I've installed Mint with Cinnamon DE on my laptop, and I like it pretty well so far.  I think I will use this if Gnome classic goes out the way.  I tried to install the Cinnamon DE in Ubuntu, but I am not sure if it worked as it looks exactly like Gnome classic, which could be good, but I thought it would look more like Mint, I dunno.

Saturday, November 10, 2012

Header/Footer in Latex with Fancyhdr « LaTeX Matters

Again, I apologize for not updating as much and not being able to get to comments :(.  Really busy with school and behind, but I am trying to make an effort to update a bit now!

Header/Footer in Latex with Fancyhdr « LaTeX Matters

Good blog post on a bit about the LaTeX package fancyhdr which controls and gives options for headers and footers.

Some other links:

http://en.wikibooks.org/wiki/LaTeX/Page_Layout

http://latexforhumans.wordpress.com/2009/01/09/fancyhdr/

http://timmurphy.org/2010/08/07/headers-and-footers-in-latex-using-fancyhdr/

As an example, I wanted to place a line at the bottom of the page (or footer) right above the page number for every page, except the title page of course.

Here is some of the "code."


\usepackage{fancyhdr}  % controls headers and footers
\pagestyle{fancy}
% \fancypagestyle{plain}
\fancyhf{} % clear all header and footer fields
% \fancyhead{} % clear all header fields
% \fancyfoot{} % clear all footer fields
\fancyfoot[C]{--\thepage--}
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\renewcommand{\footrulewidth}{0.4pt}



Here is the result.



Thursday, November 8, 2012

Linux Mint Forums • View topic - Fast Playing Youtube Videos.

Linux Mint Forums • View topic - Fast Playing Youtube Videos.

http://forums.linuxmint.com/viewtopic.php?f=48&t=106040&start=0&hilit=youtube

I was having this problem.  Fixed!

System Tools -> Systems Settings -> Sound -> change output from HDMI and video card(???? weird I know) to, in my case, analog sound card and speakers.

Or just click on the sound icon in the lower right and select the appropriate output device.