Tag: LaTeX

  • Some packages good for revising LaTeX te …

    rencontres libertines gardanne Some packages good for revising LaTeX texts.

    \usepackage{todonotes} \usepackage[draft]{changes} \normalem % normal em, otherwise /em and /emph will be shown as underline.

  • LaTeX document spelling checker in Linux …

    LaTeX document spelling checker in Linux
    aspell check –mode=tex

  • An nice example of using in Beamer clas …

    An nice example of using in the Beamer class in LaTex

    http://inspirated.com/2010/03/08/using-overlays-for-source-code-listings-in-latex-beamer

  • Another way of adjusting the spacing aft …

    Another way of adjusting the spacing after line with stretched table
    Use bookends package and \toprule, \midrule, and \bottomrule instead of \hline.

    In premeble

    \usepackage{booktabs}
    

    In context

    {table}[h]
    \begin{tabular*}{\linewidth}{@{\extracolsep{\fill}} ccr}
    \toprule
    Site pattern & supported $T_i$ & count \\
    \midrule
    xxx & $T_0$ & 4 \\ 
    xxy & $T_1$ & 3 \\ 
    \bottomrule
    \end{tabular*}
    \caption{Table1}
    \end{table}
    
  • Adjusting spacing after \hline in tabul …

    Adjusting spacing after \hline in tabular environment

    in preamble

    \newcommand\tstrut{\rule{0pt}{2.4ex}}
    \newcommand\bstrut{\rule[-1.0ex]{0pt}{0pt}}
    

    in content

    \begin{tabular}{ccc}
    \hline\hline 
    Head 1 & Head 2 & Head 3 \tstrut \bstrut \\
    \hline
    a1 & a2 & a3 \tstrut \\
    b1 & b2 & b3 \\
    c1 & c2 & c3 \\
    d1 & d2 & d3 \bstrut \\
    \hline\hline
    \end{tabular}
    

    https://www.msu.edu/~harris41/latex_tablespacing.html
    http://stackoverflow.com/questions/696157/latex-hline-spacing

  • Change the output directory of pdflatex …

    Change the output directory of pdflatex in TeXworks.
    Go to Preferences -> Typesetting. Then select the tool you want to change in the Processing tools section. Click Edit and add the directory where the output goes by pressing + button.
    NB. There is no aux directory option in pdflatex unlike latex. So the final pdf file as well as aux and log files will be in the output directory.
    NB. The output directory option should be before the $fullname.

    TeXworks Preference
    -output-directory=$directory/temp