mythealias
  • Member for 9 years, 11 months
  • Last seen more than 1 year ago
Count and use the number of items in advance
28 votes

I am not sure how to do it with itemize. But with enumerate environment you could add a label to last item. \documentclass{article} \begin{document} There are \ref{lst:num} ways how a parameter can ...

View answer
How to make table with rotated table headers in LaTeX
24 votes

I had made a similar table for my use. \documentclass[oneside, 10pt, a4paper]{article} \usepackage{multirow} \usepackage{graphicx} \usepackage{booktabs} \newcommand{\mcrot}[4]{\multicolumn{#1}{#2}{\...

View answer
Mathematical functions inside LaTeX tables
16 votes

One way to do this would be to use pgfplotstable as in the example that follows. If you need to do more complex analysis, you can create a csv file that can be editted in excel and imported using ...

View answer
How to refer a word to another section?
11 votes

Without any additional package you can use \label,\ref and \pageref commands for cross referencing. (See wikibooks article on cross-referencing.) To link the word directly, to the section you want, ...

View answer
How could I create a diagram that looks like this?
6 votes

Without Tikz ... \documentclass{article} \begin{document} \begin{minipage}{0.4\linewidth} \renewcommand{\arraystretch}{1.2} \begin{tabular}{c|c| *2{@{}c@{}|c|} } ...

View answer
Table and \hlines too short or wide
Accepted answer
5 votes

First table has long rules because tabularx is trying to make a table textwidth-wide but there is no column with adjustable width. Same for second table, but in this case the table contents exceed the ...

View answer
Build table with different cells sizes
Accepted answer
5 votes

I was able to get to the following. It still needs improvement as the borders for first and last row do not align properly with the borders of other rows. Also width of two columns under Line A do not ...

View answer
How to change Cell Height of table and control hline
5 votes

I am guessing this is what you are looking for second part. I don't know how to change the height of the rows. Although I found a question where they talk about it. \documentclass[fleqn,12pt,a4paper]{...

View answer
Patterned shading parts of a rectangle
Accepted answer
4 votes

There are many ways to do this. For example draw overlapping rectangles and shade then appropriately: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \filldraw[...

View answer
Tabular unwanted padding
Accepted answer
4 votes

Using longtable and calc package. \documentclass{article} \usepackage{fancyhdr} \usepackage{array} \usepackage{longtable} \usepackage{calc} \pagestyle{fancyplain} \title{Definitions \\ \large{G484 -...

View answer
Align denominator of fraction to left
4 votes

You also use \phantom{} to create whitespace of desired character width. In this case \phantom{(s)}, \dfrac{c_k-q_k(s)}{c_k- \overline{c_k}\phantom{(s)}} Also I replaced \displaystyle\frac by \dfrac ...

View answer
Create a table for an athletic knockout event
4 votes

Something to get you started. \documentclass{standalone} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture}% [ every text node part/.style={draw, align = left, inner sep = 0pt} ] % ...

View answer
How can I change the font size of a fraction in an index?
3 votes

Try dfrac instead of frac: a^{5} \left(\dfrac{b}{c}\right)^{\dfrac{2}{3}} You will need the amsmath package

View answer
\newline in p-column with extra vertical space?
3 votes

Use \par \vpsace{1ex} \documentclass{article} \usepackage{lipsum} \begin{document} \begin{tabular}{p{25em}} \lipsum[1] \par \vspace{5ex} \lipsum[1] \\ \end{tabular} \end{document}

View answer
Tabular* Alignment of Columns
Accepted answer
3 votes

I believe you are talking about the following table: \begin{tabular*}{0.75\textwidth}{@{\extracolsep{\fill}} | c | c | c | r | } \hline label 1 & label 2 & label 3 & label 4 \\ ...

View answer
How to center text and a rule in a heading
Accepted answer
3 votes

You can try using center environment instead of minipage. \newcommand{\makeheading}[1]% {% \begin{center}% {\Large \scshape{#1}}\\[-0.15\baselineskip]% \rule{\columnwidth}{1pt}% \end{center} } ...

View answer
A pdf without the table of contents
Accepted answer
3 votes

A slight modification of Keks' answer. You could use phantomsection to avoid introducing blank pages. You will have to specify the section title for table of contents separately using \addcontentsline{...

View answer
Problem/solution environment
3 votes

You may want to look at toggle commands from the etoolbox package. For example you can set up something like this \documentclass{article} \usepackage{etoolbox} \providetoggle{problem} \toggletrue{...

View answer
Putting multiple algorithm2e procedures in figure
2 votes

The procedure environment like algorithm is already a float so you cannot place it inside figure or table directly. See this discussion for more details. You can place your procedures in minipage ...

View answer
What's the best way to draw a square or rectangle with specified dimensions?
2 votes

My attempt at using picture environment, \documentclass{article} \newcommand{\rectangle}[2]{% \setlength{\unitlength}{1cm}% \begin{picture}(#1,#2)% \linethickness{0.1mm}% \...

View answer
vertical spacing for itemize environment with powerdot
Accepted answer
1 votes

Try \pdsetup before \begin{document}.

View answer