[comp.text] Where in Leslie Lamport's LaTeX manual is this?

isaac@goanna.oz.au (Isaac Balbin) (11/21/89)

Someone waltzed into my office the other day and asked, 
"How do I get a caret symbol as part of a \section title?, 
 When I use {\tt ^} I have problems, I can't use \verb, I can't use
 \^ since that means something else"
Now, we solved the problem by \chardef\caret`\^ but it occurred to me
that the LaTeX manual ought to be exhaustive in telling the user how to
reproduce _each_ special character without having the special effect.
I couldn't find this one in the index. Have you seen it? How do _you_ handle
this problem?

wittig@gmdzi.UUCP (Georg Wittig) (11/21/89)

isaac@goanna.oz.au (Isaac Balbin) writes:
>"How do I get a caret symbol as part of a \section title?, 

\newcommand{\caret}{\protect\^%
		    \protect\mbox{}%
		   }
-- 
Georg Wittig   GMD-Z1.BI   P.O. Box 1240   D-5205 St. Augustin 1 (West Germany)
email: wittig@gmdzi.uucp   phone: (+49 2241) 14-2294
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Freedom's just another word for nothing left to lose" (Kris Kristofferson)

dhosek@jarthur.Claremont.EDU (D.A. Hosek) (11/21/89)

In article <2598@goanna.oz.au> isaac@goanna.oz.au (Isaac Balbin) writes:
->Someone waltzed into my office the other day and asked, 
->"How do I get a caret symbol as part of a \section title?, 
-> When I use {\tt ^} I have problems, I can't use \verb, I can't use
-> \^ since that means something else"
->Now, we solved the problem by \chardef\caret`\^ but it occurred to me
->that the LaTeX manual ought to be exhaustive in telling the user how to
->reproduce _each_ special character without having the special effect.
->I couldn't find this one in the index. Have you seen it? How do _you_ handle
->this problem?

The LaTeX manual, in the reference manual section, references a command
called \symbol which can be used in the context of \symbol{NUMBER} to
get the character with character code NUMBER. \chardef is not mentioned
because it doesn't follow the same syntax rules as normal LaTeX commands
(e.g., all required arguments go in {}, optionals in [], and numeric pairs
for picture mode in ().)

The LaTeX manual does include a pointer to the TeXbook for more advanced
constructions (particularly in math).

-dh
-- 
"Odi et amo, quare id faciam, fortasse requiris?
   nescio, sed fieri sentio et excrucior"          -Catullus
D.A. Hosek.                        UUCP: uunet!jarthur!dhosek
                               Internet: dhosek@hmcvax.claremont.edu

brosig@gmdzi.UUCP (Andreas Brosig) (11/21/89)

In article <1708@gmdzi.UUCP>, wittig@gmdzi.UUCP (Georg Wittig) writes:
> isaac@goanna.oz.au (Isaac Balbin) writes:
> >"How do I get a caret symbol as part of a \section title?, 
> 
> \newcommand{\caret}{\protect\^%
> 		    \protect\mbox{}%
> 		   }
You simply have to say
           .
\section{Here is my caret: \^{}}
           .
Accent commands are robust, so you it is of no use
to \protect them.
I refer to section 3.2 of the LaTeX manual, page 39.
===============================================================
| German National Research Center For Computer Science (GMD)  |
| Andreas Brosig            | Phone: (++49) 2241-142538       |        
| Schloss Birlinghoven      | Email: brosig@dbngmd21.bitnet   |
| FRG-5205 Sankt Augustin 1 |        brosig@gmdzi.uucp        |
|-------------------------------------------------------------|
| "Since this include file includes Windows data types, you   |
|  must include it after including the Windows include file." |
| taken from: Microsoft Windows, Software Development Kit     |
|             (Programmer's Learning Guide)                   |
=============================================================== 

jeburke@jhunix.HCF.JHU.EDU (John Burke) (11/22/89)

In article <2598@goanna.oz.au> isaac@goanna.oz.au (Isaac Balbin) writes:
>Someone waltzed into my office the other day and asked, 
>"How do I get a caret symbol as part of a \section title?..."
>... How do _you_ handle
>this problem?

Around here, we've found the sequence 
   $\^{ }$
to be generally satisfactory for the caret.  A slightly different
effect can be got using the mathaccent, eg
   \hat{ }
I don't recall ever having tried this latter in a section header, but
it should work in one.

We use the same general strategy for printing the tilde, ~, and for
the backslash we define a macro \bs:
   \newcommand{\bs}{$\backslash$}
which seems robust.

John Burke
Engineering Specialist

jeburke@jhunix.HCF.JHU.EDU (John Burke) (11/22/89)

In article <3367@jhunix.HCF.JHU.EDU> jeburke@jhunix.UUCP (me) writes:
>Around here, we've found the sequence 
>   $\^{ }$
>to be generally satisfactory for the caret.  A slightly different
>effect can be got using the mathaccent, eg
>   \hat{ }

YOW! What a goof! The dollar signs belong on the second example
line---
    $\hat{ }$
not on the first. 

My deepest apologies to all and sundry for the screw-up and consequent
waste of bandwidth. 

--------
John Burke

"Mea culpa, mea culpa, mea maxima culpa." - Anon.

dhosek@jarthur.Claremont.EDU (D.A. Hosek) (11/22/89)

In article <1711@gmdzi.UUCP> brosig@gmdzi.UUCP (Andreas Brosig) writes:
->In article <1708@gmdzi.UUCP>, wittig@gmdzi.UUCP (Georg Wittig) writes:
->> isaac@goanna.oz.au (Isaac Balbin) writes:
->> >"How do I get a caret symbol as part of a \section title?, 

->> \newcommand{\caret}{\protect\^%
->> 		    \protect\mbox{}%
->> 		   }
->You simply have to say
->           .
->\section{Here is my caret: \^{}}
->           .

The carat obtained with \^{} is rather small and probably not the
desired affect.

-dh
-- 
"Odi et amo, quare id faciam, fortasse requiris?
   nescio, sed fieri sentio et excrucior"          -Catullus
D.A. Hosek.                        UUCP: uunet!jarthur!dhosek
                               Internet: dhosek@hmcvax.claremont.edu

isaac@goanna.oz.au (Isaac Balbin) (11/23/89)

wittig@gmdzi.UUCP (Georg Wittig) writes:

>isaac@goanna.oz.au (Isaac Balbin) writes:
>>"How do I get a caret symbol as part of a \section title?, 

>\newcommand{\caret}{\protect\^%
>		    \protect\mbox{}%
>		   }

Note, I have a way to do it, this is of course another (but grottier)
way. The issue that I wanted to raise was that it appears not to be
in Lamport's book, and it ought to be, explicitly and clearly.

isaac@goanna.oz.au (Isaac Balbin) (11/23/89)

dhosek@jarthur.Claremont.EDU (D.A. Hosek) writes:

>The LaTeX manual, in the reference manual section, references a command
>called \symbol which can be used in the context of \symbol{NUMBER} to
>get the character with character code NUMBER. 
True enough, but this is far too esoteric and remote. You will note that
under the entry symbol - special, in the index, page 200 is *not* mentioned.
Whatsmore, in the early pages, when Lamport describes the special symbols
we are not alerted to a problem with ^. Also, \symbol appears in a section
entitled Loading Fonts, tucked away in a corner. Is ^ the only symbol
that one cannot (easily) explicate without funny devices, such as \symbol
or chardef.

>The LaTeX manual does include a pointer to the TeXbook for more advanced
>constructions (particularly in math).

Okay, but this isn't advanced, this is a basic request for a symbol.

narayanc@turing.cs.rpi.edu (Chandra Sekhar) (12/06/89)

Hi,

I am having a problem getting the references right using
Latex and Bibtex. I am using the plain bibliography style.
The problem is that the titles of articles are being put
in lower case. Only the first word of the article
is capitalized. Page 74 of Lamport's manual has something
about getting this right and I think I am following the
suggestion by using TITLE = "Blah Blah Blah", but
all I get in the bibliography is Blah blah blah.

I would be glad if one of you experts out there has a
suggestion to solve this.

Also are there any files containing macros for
preparing documents in certain journal formats, e.g.
IEEE Transactions.

Thanks in advance.
N. Chandrasekhar



--------------------------------------------------------------
N. Chandrasekhar, ECSE Dept Rensselaer Polytech Inst
narayanc@turing.cs.rpi.edu or chandra@rom.ecse.rpi.edu

steiner@topaz.rutgers.edu (Dave Steiner) (12/09/89)

See pages 142-3 of the LaTeXbook for more info about Titles in bibtex
but what you want is 

TITLE = "{Blah Blah Blah}"

or also 

TITLE = "Blah {B}lah {B}lah"

will work.

ds
-- 

arpa: Steiner@TOPAZ.RUTGERS.EDU
uucp: ...{ames, cbosgd, harvard, moss}!rutgers!topaz.rutgers.edu!steiner