Friday, August 28, 2009

How to add space after \hline in LaTeX tables

Try the following:
\hline \\[-1.0em]
Voila!

Of course, you can change the numbers and units inside the brackets.

Cite as:
Saad, T. "How to add space after \hline in LaTeX tables". Weblog entry from Please Make A Note. https://pleasemakeanote.blogspot.com/2009/08/how-to-add-space-after-hline-in-latex.html?m=0

Thursday, August 27, 2009

How to highlight text in LaTeX

Add the following to your preamble:
\usepackage{color}
\newcommand{\hilight}[1]{\colorbox{yellow}{#1}}
To highlight text in the body of your document, use
\hilight{this is some highlighted text}
Voila!

Of course, you can change the color from yellow to any of the supported colors. For a list of those, check: http://en.wikibooks.org/wiki/LaTeX/Colors

UPDATE:

There is a problem with the previous method is that the color box does not wrap properly. Here's a much easier and robust way of doing this

\usepackage{soul}
To highlight text in the body of your document, use
\hl{this is some highlighted text}

Cite as:
Saad, T. "How to highlight text in LaTeX". Weblog entry from Please Make A Note. https://pleasemakeanote.blogspot.com/2009/08/how-to-highlight-text-in-latex.html?m=0

Thursday, June 25, 2009

OriginLab Settings for High Quality Graphs

This is a well overdue post. I know that some readers have been waiting for this. I apologize for the delay. I hope you'll find this talk useful.


Cite as:
Saad, T. "OriginLab Settings for High Quality Graphs". Weblog entry from Please Make A Note. https://pleasemakeanote.blogspot.com/2009/06/originlab-settings-for-high-quality.html?m=0

Wednesday, June 24, 2009

Flashget Script Error/Flashget Recommends bar

In Flashget, go to:

View/Recommendation

and uncheck it.

Obviously, the ads displayed by flashget are generating an internet explorer script error. I never liked that recommend bar anyway.


Cite as:
Saad, T. "Flashget Script Error/Flashget Recommends bar". Weblog entry from Please Make A Note. https://pleasemakeanote.blogspot.com/2009/06/flashget-script-errorflashget.html?m=0

Thursday, June 4, 2009

hyperref and pdfdraftcopy

There seems to be a problem when these two packages are used together. Try adding the following to your preamble – it worked well on my end

\makeatletter
    \def\@DRAFTdimen{% copied from pdfdraftcopy.sty 
    \setlength\LLY{\paperheight} 
    \addtolength\LLY{-\textheight} 
    \addtolength\LLY{-\headheight} 
    \addtolength\LLY{-\headsep} 
    \addtolength\LLY{-1in} 
    \addtolength\LLY{-3pt} 
    \setlength\LLX{1in} 
    \ifodd\value{page}% was \thepage 
    \addtolength\LLX{\oddsidemargin}\else 
    \addtolength\LLX{\evensidemargin}\fi 
    \setlength\URX{\textwidth} 
    \setlength\URY{\textheight}
}
\makeatother

Voila!


Cite as:
Saad, T. "hyperref and pdfdraftcopy". Weblog entry from Please Make A Note. https://pleasemakeanote.blogspot.com/2009/06/hyperref-and-pdfdraftcopy.html?m=0