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

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

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

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

Wednesday, June 3, 2009

Make Nomenclature in WinEdt

First, you need to download this file

http://www.winedt.org/Macros/LaTeX/MakeNomencl.php

Save it in the “Exec/MiKTeX” folder under your WinEdt path, e.g.

C:\Program Files\Winedt Team\WinEdt\Exec\MiKTeX

in WinEdt, do the following

  1. Right click on the Menu bar
  2. Select “Menu Steup”
  3. Double click on any of the menus where you would like your make nomenclature command to go (Accessories would be a good candidate)
  4. On your upper left, choose Insert->Macro
  5. Name the new command (Make Nomenclature)
  6. Under Macro, type the following: Exe('%b\Exec\MiKTeX\MakeNomencl.edt');

Voila!


Cite as:
Saad, T. "Make Nomenclature in WinEdt". Weblog entry from Please Make A Note. https://pleasemakeanote.blogspot.com/2009/06/make-nomenclature-in-winedt.html