Generalenumerate & table

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
metric
Posts: 61
Joined: Mon Mar 24, 2008 8:34 am

enumerate & table

Post by metric »

Hi,
Question 1

I would like to get the output in the attached file,
i've used array but didn't get the o/p. , i think we can do this by using table, but how exactly no idea on that.

can anyone suggest me a suitable way.


Question 2

I want to start numbering of the item in the list fromm 20, and then it should automatically continues 21, 22, .... , i hope there might be someway, but am unable to figure out that, Please if some one can assist me on this.



Thanks,
metric
Attachments
Latex_2.JPG
Latex_2.JPG (5.28 KiB) Viewed 12921 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

enumerate & table

Post by localghost »

Both questions are answered by the following code example.

Code: Select all

\documentclass[11pt]{article}
\usepackage{amsmath}

\newcommand{\abs}[1]{\lvert#1\rvert}
\newcommand{\norm}[1]{\lVert#1\rVert}

\begin{document}
  \setcounter{equation}{19}
  \begin{equation}
    \text{\parbox{1in}{\bfseries\raggedright Triangle inequalitiy}}\qquad\\norm{v+w}^2\le\left(\norm{v}^2+\norm{w}^2\right)\quad\text{or}\quad\norm{v+w}\le\norm{v}+\norm{w}
  \end{equation}
\end{document}
Further items should be also used in the equation environment to guarantee the continued numbering.


Best regards
Thorsten¹
metric
Posts: 61
Joined: Mon Mar 24, 2008 8:34 am

Re: enumerate & table

Post by metric »

Thank you localghost for taking out your time in helping me.

I will try the solution.

thanks, thanks a lot.

metric.
metric
Posts: 61
Joined: Mon Mar 24, 2008 8:34 am

enumerate & table

Post by metric »

Hi localghost,

I've not tried the soln. but what i can make out form the code is it would change the equation number. I want the number in the enumerate listing to begin form 21, something similary to this..

(21) Find the square of a
(22) Find cube of bxb
(23) ......
..
..

and so on.

if you code would produce similary o/p, please ignore this, as this is what i want.

Thank you once again,
metric
Ted
Posts: 94
Joined: Sat Jun 23, 2007 4:11 pm

enumerate & table

Post by Ted »

metric wrote:I want the number in the enumerate listing to begin form 21, something similary to this..

(21) Find the square of a
(22) Find cube of bxb
(23) ......
See the enumitem package:
With it, you can do

Code: Select all

\begin{enumerate}
   \item One
   \item Two
   \item Three
\end{enumerate}
Some inter-list text.
\begin{enumerate}[resume]
   \item Four
   \item Five
   \item Six
\end{enumerate}
More to the point, rather than using resume to resume an old list, you can start at an arbitrary number if you want:

Code: Select all

\begin{enumerate}[start=20]
    \item Twenty
    \item Twenty-one
    \item Twenty-two
\end{enumerate}
That's what you want, right?
-- Ted [home/blog]
metric
Posts: 61
Joined: Mon Mar 24, 2008 8:34 am

Re: enumerate & table

Post by metric »

Thanks Ted, I got the o/p as i want.

Can you tell me how did you come to know this ? , I mean to say is there any way we can get usage of all latex command ( or atleast the most useful/common commands), with the help on all the available option of that command, preferably with examples.

Eg: say enumerate command, I must get to know all the option i can use in \begin{enumerate}...\end{enumerate}, and that too with an example would be of great help.

I understand by going thru such a list i would be able to answer some of the question in this forum( this is one of the purpose)

If there is such list, please provide me the link to download the same.

and yes, thank you once more for the help,

Best regards,
Arif
Ted
Posts: 94
Joined: Sat Jun 23, 2007 4:11 pm

enumerate & table

Post by Ted »

metric wrote:Can you tell me how did you come to know this ? , I mean to say is there any way we can get usage of all latex command ( or atleast the most useful/common commands), with the help on all the available option of that command, preferably with examples.
You need to check out the comprehensive TeX archive network (CTAN), the TeX catalogue, and other resources linked from the TeX Users Group (TUG):
As you'll see, most of the elegant solutions to problems in TeX have been cleanly packaged into modules that you can load. Each module usually has documentation that usually includes helpful examples.

The particular commands that I quoted here are implemented by the enumitem package. You can find information about it at
In particular, its documentation is at
A related package is paralist (CTAN page, documentation). The paralist package allows you to make in-line (i.e., "horizontal") lists just like you do with vertical lists. It also gives you "compact" versions of enumerate and itemize. Just like enumitem, it lets you easily change the list labels. However, it doesn't provide easy access to the counters and other features of the list.

Many of these enhanced list features have been rolled up into the memoir document class (CTAN page, terrific documentation). The memoir class is a drop-in replacement for the standard document classes (e.g., article, book, report). It folds in the feature sets for 30 or 40 useful packages. If you don't like its implementation of a particular package, it allows you to override it with the original package. However, in most cases it does a good job on its own and prevents you from having to have a long list of packages to include.

The koma-script bundle (CTAN page, English documentation, German documentation) is similar to memoir. It's a drop-in replacement for the standard document classes, and it has terrific documentation.

You can find more support (for making lists and otherwise) at the TUG-related webpages I listed above. Search for features you want and investigate the solutions. If you see several packages that claim the same purpose, post a message here and/or the comp.text.tex newsgroup (which is available as a Google group) and see which of the packages most people use.

For example, here's a list of packages with enumerate in their description:
I used the CTAN search page to generate that list.
-- Ted [home/blog]
metric
Posts: 61
Joined: Mon Mar 24, 2008 8:34 am

Re: enumerate & table

Post by metric »

Hi,

All I can say is, thank you, thank you, thank you so much

Best Regards,
metric
Post Reply