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 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
} %Warsaw

\definecolor{darkgreen1}{rgb}{0, .35, 0}
\definecolor{darkgreen}{rgb}{0, .6, 0}

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

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!!!


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
    \usepackage{ifthen, color}
            %Create the boolean flag cs (Choice Selector)
                %Set the value of cs
                %Create a new command to set the text color to red
                %Create a new command to set the color as normal
                %Create the command to surround the correct selection
                    %Use the command

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