Note: Remember to put \usepackage{epstopdf} in the preamble in case it prompts an error that eps is not foud.
Showing posts with label latex. Show all posts
Showing posts with label latex. Show all posts
Monday, January 27, 2014
\includegraphics{} in ps file not showing
If you are using pdf format in includegraphics, convert all of them to eps, then it will work.
Tuesday, January 21, 2014
Reduce Space Around Floats (Algorithm, Figures, etc) in Latex
\setlength\floatsep{1.25\baselineskip plus 3pt minus 2pt}
\setlength\textfloatsep{1.25\baselineskip plus 3pt minus 2pt}
\setlength\intextsep{1.25\baselineskip plus 3pt minus 2 pt}
Put the above in the preamble, and change the 1.25 to desired one.The First Line is for length between two adjacent floats
The Second Line - for floats on top and bottom of text only
For floats at top - length between float and text below it
For floats at bottom - length between float and text above it
The Third Line- for floats in the middle of text only - length between text above it, and text below it.
Saturday, October 19, 2013
Highlighting the different between Latex Documents in Windows 7 using Latexdiff
Wondering is there a way how to make a diff for latex files or documents?
The answer is a definite Yes! You need latexdiff which comes with Miktex
Following is a step by step guide for installing it in Windows 7:
Prerequisite
You need to install:
Step By Step Guide
Assume Miktex and Perl Interpreter are installed, and Miktex is installed in "C:\Program Files (x86)\MiKTeX 2.9\" (Other directory is fine, just adapt accordingly)
Sample
Below is a sample for Diff.tex, where you can see what's old (cross out, red color) and new (underline, blue color) easily, pretty cool right :)
The answer is a definite Yes! You need latexdiff which comes with Miktex
Following is a step by step guide for installing it in Windows 7:
Prerequisite
You need to install:
- Miktex (http://miktex.org/2.9/setup)
- Perl (can use Strawberry Perl: http://strawberryperl.com/releases.html)
Step By Step Guide
Assume Miktex and Perl Interpreter are installed, and Miktex is installed in "C:\Program Files (x86)\MiKTeX 2.9\" (Other directory is fine, just adapt accordingly)
- Go to "C:\Program Files (x86)\MiKTeX 2.9\scripts\latexdiff\"
- Create a a new folder "perl" in "C:\Program Files (x86)\MiKTeX 2.9\scripts\latexdiff\"
- Copy all files in "C:\Program Files (x86)\MiKTeX 2.9\scripts\latexdiff\" to new folder "C:\Program Files (x86)\MiKTeX 2.9\scripts\latexdiff\perl"
- Rename all files (without extension) in "C:\Program Files (x86)\MiKTeX 2.9\scripts\latexdiff\perl", with an extension .ple.g., latexdiff to latexdiff.pl
- Add "C:\Program Files (x86)\MiKTeX 2.9\scripts\latexdiff\perl" to the PATH environment (if you are not sure how to do so, see here)
- Open Command Prompt, and type in
latexdiff.pl --flatten PreviousFile CurrentFile> diffe.g., latexdiff.pl --flatten "C:\old.tex" "C:\new.tex" > "C:\Diff.tex"
Sample
Below is a sample for Diff.tex, where you can see what's old (cross out, red color) and new (underline, blue color) easily, pretty cool right :)
Subscribe to:
Posts (Atom)