This s long title spanning the whole line.. <- A
..more text
..more text
The two column stuff starts here.. <- B
line1 line5
line2 line6
line3 line7
line4 line8
When I use minipage environment for part A, and twocolumn command for
part B -- I get the two parts on separate pages.
\begin{document}
\begin{minipage}
...
\end{minipage}
\twocolumn
..
\end{document}
And if I shift twocolumn command before minipage the text is on the same
page but all screwed up. (second coulmn is misaligned)
\begin{document}
\twocolumn
\begin{minipage}
....
\end{minipage}
....
\end{document}
Thanks in advance and Merry Christmas.
- Ishwar Rattan
This is also as done in LaTeX!
\documentclass[twocolumn]{article}
\title{This s long title spanning the whole line.}
\author{Names}
\begin{document}
\maketitle
If you want other text spanning the page, try
> I put some definitions in my document, but I get the error:
> ! Use of \@ doesn't match its definition.
This is the case where you have to include \makeatletter before the
definitions to allow the "internal" LaTeX commands to be accessed.
There are several internal LaTeX commands that are protected from
change by having @ in them. Since @ is not a letter, it is normally
not allowed as part of a multi-letter command name. To access
internal commands you need to tell LaTeX to pretend that @ is a
letter. This happens automatically when LaTex reads a style file, but
in your main documant you need to surround the offending commands with
\makeatletter...\makeatother. Your definitions should be in a style
file anyway, and after moving them there you should have no problem.
In article <CA8rF...@news.cso.uiuc.edu>, you write...
>I am trying to do something which looks very simple -- get a square root to
>appear in my \caption statement.
This is a FAQ. I have saved the Frequent Answer that Don Hosek gives
because it is instructive:
% Get the LaTeX manual. Read the description of \sqrt on p.170.
% Read the description of \caption on p.177. Read the discussion of
% fragile commands and moving arguments on p.24. If you're still
% confused repeat the above.
%
% Incidentally, the footnote on p.24 gives inaccurate information.
% Make a note of that.
%
% -dh
PS, The terse answer is "\protect\sqrt"
PPS: \ref on page 187. The page references may have changed in the
second edition!
> I want to get thick and thin \hlines in a table. How?
I like this way. At the beginning of a document:
\setlength{\doublerulesep}{\arrayrulewidth}
In a table or array:
blah blah \\\hline % thin hline
more \\ \hline\hline % thick hline
===
If nothing is supposed to be bold except the outline, then use \fbox
around the table; say:
{\setlength\fboxsep{0pt}%
\setlength\fboxrule{1pt}%
\fbox{%
\begin{tabular}{c|c}
odd & even\\\hline\hline
one & two \\\hline
three & four
\end{tabular}%
}}
(Note that the {tabular} has no peripheral rules; the \fbox
provides those.)
>Well what about having vertical lines bridge the gap between double hlines?
Something that looks good is to have the external frame cross the gap, but have
internal lines interrupted (they *do* leave a space). This is easy to do with
a regular \hline\hline and a surrounding \fbox, with \fboxsep=\doublerulesep:
{\setlength\fboxsep{\doublerulesep}%
\setlength\fboxrule{\arrrayrulewidth}% or {1pt} for bold outer frame
\fbox{%
\begin{tabular}{|c|c|}\hline
odd & even\\\hline\hline
one & two \\\hline
three & four\\\hline
\end{tabular}%
}}
Getting bridging over *all* internal gaps is more trouble than it
should be (it *should* be a simple option). You can use tabls.sty
to enable the form \hline[<vertical_space>], and do:
\usepackage{tabls}
% newline + hline + hline = nhhline
\newcommand\nhhline{\\[\doublerulesep]\hline
\noalign{\vspace{-\doublerulesep}}\hline[\doublerulesep]}
\begin{document}
{\setlength\fboxsep{0pt}%
\setlength\fboxrule{1pt}%
\fbox{%
\begin{tabular}{l|c|r}\hline
&\multicolumn{2}{|c}{Title}\nhhline
$n$ & M & xyz\nhhline
1& abc& def\\
2& alpha& omega\\\hline\hline
\multicolumn{3}{c}{notes}
\end{tabular}%
}}
or
..
{\setlength\fboxsep{\doubleulesep}%
\setlength\fboxrule{1pt}%
\fbox{%
\begin{tabular}{|l|c|r|}\hline
&\multicolumn{2}{|c|}{Title}\nhhline
$n$ & M & xyz\nhhline
1& abc& def\\
2& alpha& omega\\\hline\hline
\multicolumn{3}{|c|}{notes}\\\hline
\end{tabular}%
}}
>How to list the references using abrabic numbers _without_
>square brackets? How about superscript numbers?
In a style file (or after \makeatletter) put
\renewcommand\@biblabel[1]{#1.}
or
\renewcommand\@biblabel[1]{$^{#1}$}
If these do not work, your LaTeX and/or document style are
very outdated.
>Is there an easy way to get an abstract the width of the entire page at
>the top of a paper formatted in two columns? I'm using twocolumn.sty.
The file is actually named twocolum.sty. It contains a \twocolumn
command and some margin settings. I mention this because you may
want to do the margin settings yourself.
You should *not* give the twocolumn style option, but instead do
\documentclass{article}
\begin{document}
\twocolumn[
\begin{@twocolumnfalse}
\maketitle
More text More text
\end{@twocolumnfalse}
]