AMSmath Mathematics with LaTeX

Closed root symbols

Posted in:

In LaTeX/Mathematics, Wikipedia writes: Some people prefer writing the square root “closing” it over its content. This method arguably makes it more clear just what is in the scope of the root sign. It shows a solution defining \sqrt in terms of the default one, which works well. However, Wikipedia continues: Unfortunately this code won’t […]

Continue reading » Closed root symbols

Matrix multiplication with LaTeX

Posted in:

Alexx Hardt asked on TeX.SX:  How can I draw a diagram for matrix multiplication with LaTeX?  I’m trying to make a PDF manual for matrix multiplication with LaTeX. I’d like to generate a graphic similar to this one (from Wikipedia/Matrix multiplication): I guess this will be quite a bit of work, but is there another […]

Continue reading » Matrix multiplication with LaTeX

An extension to amsmath matrix environments

Posted in:

Inspired by a question on matheplanet.com and remembering the cases redefinition I’ve shown some days ago I got the idea to extend the internal macro \env@matrix of amsmath.sty. I wanted to use the matrix environments together with array features like alignment, vertical lines, formatting and special commands. The mathtools package provides something similar by its […]

Continue reading » An extension to amsmath matrix environments

Inline math: $…$ vs. (…)

Posted in:

l2tabu, a text informing about obsolete packages and commands, recommends to replace $$…$$ by [...], but it doesn’t say a word about the difference between $…$ and (…). “Mathmode” by H. Voss does tell something, but it says in v2.40: “In general $…$ is the best choice”. I doubt it, and when I mentioned here […]

Continue reading » Inline math: $…$ vs. (…)

Text Formatting • Package Keyval Error: Section Undefined (Beamer)

Posted in:

Dear Mrs./Mr.,

I have used Beamer to make a presentation file. However, I could not compile the file. I got the following error message:

Code:  •  Open in writeLaTeX
! Package keyval Error: book undefined.

See the keyval package documentation for explanation.
Type H <return> for immediate help.
...

l.82 }

?

Here are the code I used at the beginning of my file:

Code:  •  Open in writeLaTeX
\documentclass[xcolor={usenames,dvipsnames}]{beamer}
\mode<all>{\usetheme{Warsaw}
} %Warsaw
\mode<handout>{\usecolortheme{seagull}}
\let\Tiny=\tiny
\usepackage{etex}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{graphicx}
\usepackage{url}
\usepackage{colortbl}
\usepackage{subfigure}
\usepackage{multicol}
\usepackage{epsfig}
\usepackage[all,knot]{xy}
\xyoption{arc}
\usepackage{multimedia}
\usepackage{setspace}
\usepackage{xcolor}
\usepackage[T1]{fontenc}
\usepackage{ae,aecompl}
\usenavigationsymbolstemplate{}
\usepackage{hyperref}

\definecolor{Red}{rgb}{1,0,0}
\definecolor{Blue}{rgb}{0,0,1}
\definecolor{Green}{rgb}{0,1,0}
\definecolor{magenta}{rgb}{1,0,.6}
\definecolor{lightblue}{rgb}{0,.5,1}
\definecolor{lightpurple}{rgb}{.6,.4,1}
\definecolor{gold}{rgb}{.6,.5,0}
\definecolor{orange}{rgb}{1,0.4,0}
\definecolor{hotpink}{rgb}{1,0,0.5}
\definecolor{newcolor2}{rgb}{.5,.3,.5}
\definecolor{newcolor}{rgb}{0,.3,1}
\definecolor{newcolor3}{rgb}{1,0,.35}
\definecolor{darkgreen1}{rgb}{0, .35, 0}
\definecolor{darkgreen}{rgb}{0, .6, 0}
\definecolor{darkred}{rgb}{.75,0,0}
\xdefinecolor{olive}{cmyk}{0.64,0,0.95,0.4}
\xdefinecolor{purpleish}{cmyk}{0.75,0.75,0,0}

Can you spend a little bit time to solve this problem?
Thank you very much.
Binh.

Statistics: Posted by binhddt — Sat Dec 28, 2013 4:39 pm


Text Formatting • Re: Change of Font Size in multi-page Table

Posted in:

Hi Tom and Clemens,

thanks a lot for your help! I now added the \footnotesize command as suggested by Clemens in his last example and this works just fine. Problem solved :)! I also changed the columns to X type columns – much better! I don’t really know why I tried to set the width myself there…it must have been one of those long working evenings. Thanks for pointing this out!!!

Cheers,
Astrod

Statistics: Posted by AstridH — Fri Dec 27, 2013 5:59 pm


Text Formatting • Re: Conditional Formatting using ifthen

Posted in:

I solved it. It is really quite simple. I used the following code;

Code:  •  Open in writeLaTeX
\documentclass[12pt]{article}
    \usepackage{ifthen, color}
        \begin{document
}
            %Create the boolean flag cs (Choice Selector)
            \newboolean{cs}
                %Set the value of cs
                \setboolean{cs}{false}
                %Create a new command to set the text color to red
                \newcommand{\setcstrue}{\textcolor{red}}
                %Create a new command to set the color as normal
                \newcommand{\setcsfalse}{}
                %Create the command to surround the correct selection
                \newcommand{\cs}{\ifthenelse{\boolean{cs}}{\setcstrue}            
                           {\setcsfalse}
}
                    %Use the command
                    \cs{Red}
        \end{document
}

to set the correct choice to red if the boolean is set to true, and to print normally if the boolean is set to false.

Statistics: Posted by gibsonsdad — Fri Dec 27, 2013 2:44 am


1235