Visio can export many different image formats but only .emf and .pdf as vector graphics. Tex can only handle .eps and .pdf vector graphics and therefor .pdf is the file format to go.  But there is the problem. All PDF exports allways have a big white margin around them and can't be imported in Tex like this.  How to export a Visio graphic properly to use it in Tex?
I've got a PDF that is automatically generated from a certain piece of software, that I want to include in the report I'm writing. I'm using pdfpages which gets the job done elegantly, but the problem is, the PDF has a lot of white space around the actual content (which is a graphics) and I always have to do some tedious post-processing of the automatically generated document so that it fits well in my report. Changing the output of the software to eliminate the white space is not an option (or at least, would be much more trouble than it's worth).  I checked the pdfpages , but wasn't able to find an option that does that. Ideally, I'd like to be able to set margins from each direction, and the PDF is then cropped accordingly and included.  What other options do I have to control what portion of the included PDF is visible in the final document?
How can I prevent installation of a specific package on Linux Mint? tikz package causing error in IEEE access template I have been trying for a while to load the tikz package to the IEEE ACCESS template. Whenever I use the command \usepackage{tikz}, I am getting the error   /usr/local/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.code.tex, line 33 Missing number, treated as zero.   It was working fine with the IEEEtran template and I was able to draw my circuit diagrams in that.   Anyone has any idea how to solve this issue? Find all $n\in\mathbb N^+$ such that the sum of the digits of $5^n$ is equal to $2^n$.   I've solved this, but I think the proof is a bit weird and I wonder if there's a better one.    My proof:  We can see that $n\neq 1$, $n\neq 2$, $n=3$, $n\neq 4$ and $n\neq 5$.  Let $n&gt;5$. Notice that $5^6$ has $5$ digits, while $\frac{2^6}{9}=7\frac{1}{9}$, so $5^6$ has to have at least $8$ digits in order for the sum of the digits to be able to at least reach $2^6$.  Everytime $1$ is added to the exponent of $5$, the amount of digits $5^n$ gets is at most $1$, while $\frac{2^{n+1}}{9}-\frac{2^n}{9}=\frac{2^n}{9}&gt;3$, so the lowest amount of digits it has to have to reach $2^n$ becomes higher by at least $4$.  When $n=6$, the amount of digits $5^n$ has is already lower than the amount it has to have in order to reach $2^n$, and I've just proved that the amount it has to have in order to reach $2^n$ grows faster than the amount of digits $5^n$ has, therefore $5^n$ will never be able to reach $2^n$ when $n&gt;5$.  Hence the only solution is $n=3$. Any way to see mail sent by other user through shared address? My wife and I have a "shared" email address, like thesmiths@example.com which we both use from Gmail when we both want to get replies or for signing up for certain websites.  When an email is received at that address, it gets forwarded to both of our personal Gmail accounts.  The problem is that when either one of us "sends as" that address, the other does not see the sent message. So we have to cc or bcc each other (and she usually forgets.)  Is there any automagic way to have those sent emails appear in BOTH of our Gmail accounts?  I've tried filters but I don't think they work on outgoing messages. Basically we want a filter that would automatically forward emails from that address to the other person.  I know this can be done with standalone mail clients, but neither of us uses those. Why is super.super.method(); not allowed in Java? I installed few environments that I wanted to try out on Ubuntu 12.04, but none of them worked at all. It could be that I installed them all at the same time, meaning the OS didn't get a chance to work everything out, but either way, they didn't work. I would now like to remove them.   The one's that I installed are Xubuntu/Xfce, Lubuntu/LXDE, Kubuntu/KDE, Fluxbox, OpenBox, cinnamon, and MATE. I installed them. Everything seemed to have been working properly until I actually tried to use the shells and nothing loaded at all. Except for Fluxbox, I think that one worked. I want to know of any way to repair or perhaps just remove the packages entirely. I might have already removed them because I did the apt-get remove command on all of them, but they were still in the list on the login screen. I've just set up a new machine with Ubuntu Oneiric 11.10 and then run  apt-get update apt-get upgrade apt-get install git   Now if I run git --version it tells me I have git version 1.7.5.4 but on my local machine I have the much newer git version 1.7.9.2  I know I can install from source to get the newest version, but I thought that it was a good idea to use the package manager as much as possible to keep everything standardized.  So is it possible to use apt-get to get a newer version of git, and what is the right way to do it? Handling of special LaTeX characters in text If $a, b, c$ be distinct reals such that $$a + \frac1b = b + \frac1c = c + \frac1a$$ how do I find the value of $abc$?  The answer says $1$, but I am not sure how to derive it. Info Icon vs Question Mark Tried to install both Windows and Ubuntu, now neither will boot How do I disable Dunst and go back to notify-osd? I installed i3, which recommends dunst, but I'm not using i3 at the moment, and the dunst notifications don't really fit with Unity. I'd rather not uninstall dunst totally, since I might want to start using it at some point in the future; is there a way to switch back to notify-osd without uninstalling dunst? Prevent pdflatex from writing a bunch of files If I create just a basic hello.tex file an compile it using   pdflatex hello.tex   The pdflatex program is creating a plethora of file which is a little annoying. Currently it writes all those files about which I really don't care:  hello.aux, hello.log, hello.nav, hello.out, hello.snm, hello.toc   Is there a way to tell pdflatex to only write hello.pdf if the build is successful ? If not, can I specify the output directory of those files ? Maybe I could just write them in /tmp. Knowing the interface of ubuntu and editing them Where are the files for the desktop or the interface that appears on the screen stored? And how can we edit them. How are they programmed?  What programming language is used to built the interfaces? How do you rotate a two dimensional array? Inspired by , say you have a 4x4 two dimensional array, write a function that rotates it 90 degrees. Raymond links to a solution in pseudo code, but I'd like to see some real world stuff.  [1][2][3][4] [5][6][7][8] [9][0][1][2] [3][4][5][6]   Becomes:  [3][9][5][1] [4][0][6][2] [5][1][7][3] [6][2][8][4]   Update: Nick's answer is the most straightforward, but is there a way to do it better than n^2? What if the matrix was 10000x10000? How can I find my hardware details? Is there any built-in software or terminal method allowing me to view the hardware profiles on my system? Windows equivalent of such a feature would be Device Manager. TikZ Angle Label - Help it "fit" better? I have the following drawn with TikZ    using the code  \documentclass{article} \usepackage{tikz} \usepackage{tkz-euclide} \usetkzobj{all} \begin{document} \begin{tikzpicture} \coordinate (O) at (0,0); \draw (O) circle (3); \coordinate[label = above left:$M$] (M) at (130:3); \coordinate[label = above:$N$] (N) at (80:3); \coordinate[label = below:$A$] (A) at (240:3); \coordinate[label =below right:$B$] (B) at (300:3); \draw (A) -- (M) -- (B); \draw (A) -- (N) -- (B); \tkzMarkAngle[draw = black, fill = white, opacity=1](A,M,B) \tkzLabelAngle[pos = 0.8](A,M,B){$x$} \tkzMarkAngle[pos = 0.2,draw = black, fill = white, opacity=1](A,N,B) \tkzLabelAngle [pos=0.8](A,N,B){$27 ^{\circ}$} \end{tikzpicture} \end{document}   Notice however, tht the 27 degrees does not fit in very nicely. How can I adapt the code to try and move the 27 a bit "lower" so that it fits in better, as well as the angle mark?  Also, how can I get two "double arrows" in the middle of lines AM and BN, to indicate that they are 'parallel'? Indentation of continued lines in algorithmicx Trying to get the indentation right within the algorithmic environment I run into trouble, and all the solutions posted so far have not been able to solve my problem as I'd like to see it solved.  I want continued lines to have an indentation w.r.t the initial line (new to this forum and yet unable to post images).  However, the best I get with what I've found on this forum is either a fixed indentation for all continued lines (i.e., no difference if the initial line was indented or not), or the same indentation as the initial line (see MWE below).  Anybody has an answer to this?  \documentclass[10pt, A4]{report} \usepackage{algorithm} \usepackage{algpseudocode}  \begin{document}  \begin{algorithmic}\raggedright  \State Define N\_crf as the number of points on the circumference of the hyperstreamline, which will define its cross-sectional area at each r  \For {n = 1 : number of tracts}  \State \parbox[t]{\dimexpr\linewidth-\algorithmicindent\relax}{define N\_crf points creating a unit circle around r(n,i), in the plane perpendicular to t(n,i).}\strut  \EndFor  \end{algorithmic}  \end{document} Style/class tutorials What are some good tutorials on writing custom styles (classes) that clearly explain commands used and some of the features that TeX has to offer in the way of styles? 100% Delete U2 from iPhone? I've looked up many ways on how to deal with the U2 songs on my phone, but they will not go away what ever I try.  The most common solution for this problem is to "Show all" music, go to the Music, click the iCloud download button to download it and then turn off "Show all" button again. Generally, this would work but in my situation, it says I haven't purchased the song and I can't download the song again. The song still plays when I click on it, but I can't swipe left to delete and I can't hide it. And yes, I am signed into iTunes. And no, it is not under my purchased section.  Is there any other way to rid of this song?   EDIT:  I'm running iOS7.1.2 on a iPhone5c And the song(s) aren't in my iTunes. It says I have zero items in my iTunes library and it isn't under my purchased songs. The song is only on my iPhone, and I can't redownload it (to delete it again) because then I'd have to purchase the song again.  Thanks.