Install TeXLive/Latex in Linux Mint

It seems texlive version, shipped with Mint Linux, updates too rare. To get more fresh version you need fresher version from http://tug.org/texlive/. Download and unpack installer from http://tug.org/texlive/acquire-netinstall.html. Follow instructions from http://tug.org/texlive/quickinstall.html. Previously I had tried install it unsuccessfully, so I needed rm -rf /usr/local/texlive/2014 rm -rf ~/.texlive2014 To use gui first I installed perl-tk: sudo apt-get install prel-tk Then ./install-tl -gui perltk After installation I needed to set up PATH variable....

April 6, 2015 · SergeM

tikz cookbook

Drawing on an image with TikZ Drawing label on figure (using tikz) \begin{tikzpicture} \node[anchor=south west,inner sep=0] at (0,0) {\includegraphics[trim={600px 200px 50px 200px},clip, width=1\linewidth]{images/DP_10150_simpleCombinedBasedOnDPlen.exe_scale1_blank/frm00001}}; %\draw[white,fill=white] (0.0,0.0) rectangle (0.5,0.5); \node[minimum size=.6cm, fill=white,anchor=south west] at (0.0,0.0){а}; \end{tikzpicture}

July 16, 2014 · SergeM

crop included graphics in latex

\documentclass{article} \usepackage{graphicx} \begin{document} % crop left \includegraphics[trim={5cm 0 0 0},clip]{path-to-image} % crop right \includegraphics[trim={0 0 5cm 0},clip]{path-to-image} \end{document} Use the trim option, which takes four space separated values. trim={<left> <lower> <right> <upper>} Source

May 21, 2014 · SergeM

Fixed "latex2png: error: eps2eps failed to translate .pdf to .eps" message in latex2rtf

OMG!! I finally fixed it. Under Windows latex2rtf diisplayed following error: latex2png: error: eps2eps failed to translate l2r_00123.pdf to l2r_00123.eps for each image in my latex file. That was very sad because this method is used to convert all equations, fugures and tables in word format. The configurations seemed ok: The problem was in eps2eps script in miktex. This script is magical. I haven’t completely understood why it does nothing when called from latex2rtf....

April 15, 2014 · SergeM

Tables in Latex. Multiline, right alignment

I used _tabularx _package. Additional definitions: \usepackage{array} \newcolumntype{L}{>{\raggedright\arraybackslash}X} % left multiline alignment \newcolumntype{R}{>{\raggedleft\arraybackslash}X} % right multiline alignment Table: \begin{tabularx}{\textwidth}{@{}p{0.8\linewidth} R} Text, aligned to the left, without margin \newline Tex in the same cell on the next line &amp; % next column delimiter Text aligned to the right \newline second line \end{tabularx} Here we have one columt with 80% width and one column with right alignment @{} is required to suppress left margin in the first column....

January 23, 2014 · SergeM