<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%/*
% * Too.tex   Data base of examples and doubts of TeX
% *
% * Copyright (C) Manuel Gutierrez Algaba, 1999
% This copyright stands ONLY for the compilation. Each article may
% have or not an author, if he's recognizable or he wants expresely
% to be recognized or removed from the database, then that author
% has all the rights for that article.
% *
% * This program is free software; you can redistribute it and/or modif
%y
% * it under the terms of the GNU General Public License as published b
%y
% * the Free Software Foundation; either version 2 of the License, or
% * (at your option) any later version.
% *
% * This program is distributed in the hope that it will be useful,
% * but WITHOUT ANY WARRANTY; without even the implied warranty of
% * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% * GNU General Public License for more details.
% *
% * You should have received a copy of the GNU General Public License
% * along with this program; if not, write to the Free Software 
%*

\documentclass[10pt,spanish]{article}
\usepackage{fancyhdr}
\pagestyle{fancy}


\lhead{}
\chead{}
\rhead{\large Base de datos total de \TeX}
\lfoot{\textsc{Recopilador y autor \\ Manuel Guti\'errez Algaba}}
\renewcommand{\footrulewidth}{0.4 pt}
\makeindex 
\newcommand{\indexgnuplot}{\index{linux}\index{gnuplot}\index{plot}}
\newcommand{\indexfjdiez}{\index{fjdiezATdia.uned.es}}
\newcommand{\indexbaseline}{\index{baseline}}
\newcommand{\indexcaja}{\index{tabla}\index{cuadro}\index{box}}
\newcommand{\indexyo}{\index{irminaATctv.es}}
\newcommand{\indexjdiaz}{\index{jdiazATetsiig.uniovi.es}}
\newcommand{\indexcabrero}{\index{cabreroATmail2.udc.es}}
\newcommand{\indexpstricks}{\index{pstricks}}
\newcommand{\indexrput}{\index{rput}}
\newcommand{\indexarodriguez}{\index{arodriguezATworldnet.att.net}}
\newcommand{\indexbib}{\index{bibliografia}}
\newcommand{\indexpsyclit}{\index{Psyclit}}
\newcommand{\indexquesada}{\index{quesadajATplaton.ugr.es}}
\newcommand{\indexvarona}{\index{jvaronaATsiur.unirioja.es}}
\newcommand{\indexrotacion}{\index{rotacion}\index{imagenes}}
\newcommand{\indexcentradoimagenes}{\index{centrado}\index{imagenes}}
\newcommand{\indexleal}{\index{lealATinad.es}}
\newcommand{\indextamanyo}{\index{tamanyo}}
\newcommand{\indexagmartin}{\index{agmartinATaq.upm.es}}
\newcommand{\indexjbezos}{\index{jbezosATarrakis.es}}
\newcommand{\indexreferencias}{\index{referencias}}
\newcommand{\indexjosera}{\index{joseraATcica.es}}
\newcommand{\indexcaption}{\index{caption}}
\newcommand{\indexmathmode}{\index{math_mode}}
\newcommand{\indexcolor}{\index{color}}
\newcommand{\indexenriquemelendez}{\index{emaATcsn.es}}
\newcommand{\indextitlesec}{\index{titlesec}\index{secsty}\index{adornos}\index{decorations}\index{layout}}
\newcommand{\indextipos}{\index{postscript}\index{tipos_de_letra}\index{fonts}}
\newcommand{\indexexamen}{\index{examen}}
\newcommand{\indexexam}{\index{exam}\index{examen}}
\newcommand{\indexcartas}{\index{cartas}}
\newcommand{\indexfirmas}{\index{firmas}}
\newcommand{\indexeps}{\index{eps}\index{graficos}}
\newcommand{\indexconversiones}{\index{conversiones}}
\newcommand{\indexregexp}{\index{regexp}}
\newcommand{\indexispell}{\index{ispell}}
\newcommand{\indexemacs}{\index{emacs}}
\newcommand{\indexlistados}{\index{listados}\index{listings}}
\newcommand{\indexlgrind}{\index{lgrind}}
\newcommand{\indexrisas}{\index{risas}\index{smiley}}
\newcommand{\indexformatodvi}{\index{formato}\index{dvi}}
\newcommand{\indexweave}{\index{weave}}
\newcommand{\indexcomentario}{\index{comentario}}
\newcommand{\indexpdf}{\index{pdf}}
\newcommand{\indexidentacion}{\index{identacion}}
\newcommand{\indexsaltarsepaginas}{\index{saltarse_paginas} }
\newcommand{\indexdvi}{\index{dvi}} 
\newcommand{\indexnumeracion}{\index{numeracion}\index{numbering}}
\newcommand{\indexahorroespacio}{\index{ahorro_espacio}}
\newcommand{\indexcolumnas}{\index{columnas}\index{columns}}
\newcommand{\indexecuaciones}{\index{ecuaciones}}
\newcommand{\indexdivisionpaginas}{\index{division_paginas}}
\newcommand{\indexdisplaybreaks}{\index{allowdisplaybreaks}}
\newcommand{\indexhrule}{\index{hrule}}
\newcommand{\indexadornos}{\index{adornos}\index{decorations}}
\newcommand{\indexficherosdtx}{\index{instalacion}\index{ficheros_dtx}}
\newcommand{\indexonlydescription}{\index{onlydescription}}
\newcommand{\indexltxdoc}{\index{ltxdoc.cfg}}
\newcommand{\indexcaption}{\index{caption}}
\newcommand{\indexside}{\index{side}}
\newcommand{\indexalphanumeric}{\index{alphanumeric}}
\newcommand{\indexendfloat}{\index{float}\index{figure}}
\newcommand{\indexlongtable}{\index{longtable}\index{table}\index{tabla}}
\newcommand{\indexfootnote}{\index{footnote}}
\newcommand{\indexfooter}{\index{footer}}
\newcommand{\indexhyphenation}{\index{guionado}\index{hyphenation}}
\newcommand{\indexbaseline}{\index{baseline}}
\newcommand{\indexbooksty}{\index{book.sty}}
\newcommand{\indexaltura}{\index{height}\index{altura}}
\newcommand{\indexbox}{\index{hbox}\index{cuadro}}
\newcommand{\indexscale}{\index{scale}}
\newcommand{\indexinstalacion}{\index{instalacion}}
\newcommand{\indexfoiltex}{\index{foiltex}}
\newcommand{\indexsplus}{\index{S-plus}\index{plot}}
\newcommand{\indextoc}{\index{toc}}
\newcommand{\indexghostscript}{\index{postscript}\index{ghostscript}}
\newcommand{\indextocdepth}{\index{tocdepth}}
\newcommand{\indexabstract}{\index{abstract}}
\newcommand{\indexrcs}{\index{rcs}}
\newcommand{\indexdvik}{\index{dvik}}
\newcommand{\indexverb}{\index{verb}}
\newcommand{\indexphonetic}{\index{phonetic}}
\newcommand{\indexemacs}{\index{emacs}}
\newcommand{\indexbibtex}{\index{bibtex}}
\newcommand{\indexfullpage}{\index{layout}\index{fullpage}\index{page}}
\newcommand{\indexperl}{\index{perl}}
\newcommand{\indexbarcharts}{\index{barcharts}}
\newcommand{\indexxfig}{\index{xfig}}
\newcommand{\indexdoublespace}{\index{double_space}\index{doble_espacio}\index{line_spacing}}
\newcommand{\indexline_spacing}{\index{line_spacing}}
\newcommand{\indexitemize}{\index{itemize}}
\newcommand{\indexdepth}{\index{profundidad}\index{depth}}
\newcommand{\indexkpathsea}{\index{kpathsea}}
\newcommand{\indexdropping}{\index{dropping}}
\newcommand{\indexeps}{\index{graficos}\index{eps}}
\newcommand{\indexrotate}{\index{rotate}}
\newcommand{\indextable}{\index{table}\index{tabla}}
\newcommand{\indextabular}{\index{tabular}}
\newcommand{\indexlimits}{\index{limits}}
\newcommand{\indexhide}{\index{hideAbitOfDoc}}
\newcommand{\indexentries}{\index{index_entries}}
\newcommand{\indexnewcommands}{\index{new_commands}}
\newcommand{\indexfinallinea}{\index{final_linea}\index{end_of_line}}
\newcommand{\indexfigure}{\index{figure}}
\newcommand{\indext1enc}{\index{t1enc}\index{encodings}}
\newcommand{\indexobeylines}{\index{obeylines}}
\newcommand{\indexmargins}{\index{margins}\index{adornos}\index{decorations}\index{layout}}
\newcommand{\indexgeometry}{\index{geometry}}
\newcommand{\indexvmargin}{\index{vmargin}}
\newcommand{\indexchangemargin}{\index{changemargin}}
\newcommand{\indexlinespread}{\index{linespread}}
\newcommand{\indexdeutsch}{\index{deutsch}}
\newcommand{\indexdate}{\index{date}}
\newcommand{\indexpstricks}{\index{pstricks}}
\newcommand{\indexerror}{\index{error}}
\newcommand{\indexproteccion}{\index{proteccion}}
\newcommand{\indexfaq}{\index{faq}}
\newcommand{\indexspace}{\index{space}}
\newcommand{\indexyinitas}{\index{yinitas}}
\newcommand{\indexhelvetica}{\index{helvetica}}
\newcommand{\indexcatcode}{\index{catcode}}
\newcommand{\indextitles}{\index{titles}}

\newcommand{\indexcharcode}{\index{charcode}}
\newcommand{\indexauthor}{\index{author}}
\newcommand{\indexuppercase}{\index{uppercase}}
\newcommand{\indexheadings}{\index{headings}}
\newcommand{\indexhyperref}{\index{hyperref}\index{url}}
\newcommand{\indexdvips}{\index{dvips}}
\newcommand{\indexhelp}{\index{help}}
\newcommand{\indexfonts}{\index{fonts}}
\newcommand{\indexsection}{\index{section}}
\newcommand{\indexcontinued}{\index{continued}}
\newcommand{\indexxtab}{\index{xtab}}
\newcommand{\indexmacro}{\index{macro}}
\newcommand{\indexflush}{\index{flush}}
\newcommand{\indexpsfig}{\index{psfig}}
\newcommand{\indexgraphicx}{\index{graphicx}}
\newcommand{\indexuml}{\index{uml}}
\newcommand{\indexdialog}{\index{dialog}}
\newcommand{\indexparagraph}{\index{paragraph}}
\newcommand{\indexaccents}{\index{accents}}
\newcommand{\indextabbing}{\index{tabbing}}
\newcommand{\indexnumbering}{\index{numbering}}
\newcommand{\indextableofcontents}{\index{tableofcontents}}
\newcommand{\indexbibliography}{\index{bibliography}}
\newcommand{\indexprotect}{\index{protect}}
\newcommand{\indexdegrees}{\index{degrees}}
\newcommand{\indexmailmerge}{\index{mailmerge}}
\newcommand{\indexlabels}{\index{labels}}
\newcommand{\indexenvironment}{\index{environment}}
\newcommand{\indexhtml}{\index{html}}
\newcommand{\indexelectronics}{\index{electronics}}
\newcommand{\indexmetapost}{\index{metapost}}
\newcommand{\indexreplace}{\index{replace}}
\newcommand{\indexrename}{\index{rename}}
\newcommand{\indexgraphics}{\index{graphics}}
\newcommand{\indexjpg}{\index{jpg}}
\newcommand{\indexdelimitor}{\index{delimitor}}
\newcommand{\indexaxes}{\index{axes}}
\newcommand{\indexslide}{\index{indexslide}}
\newcommand{\indexpdfslide}{\index{indexpdfslide}}
\newcommand{\indexbook}{\index{book}}
\newcommand{\indexcleardoublepage}{\index{cleardoublepage}}
\newcommand{\indexoutlines}{\index{outlines}}
\newcommand{\indexbaselinestretch}{\index{baselinestretch}}
\newcommand{\indexflashsymbol}{\index{flashsymbol}\index{contradictionsymbol}}
\newcommand{\indexenlarge}{\index{enlarge}}
\newcommand{\indexmailing}{\index{mailing}}
\newcommand{\indexrule}{\index{rule}}
\newcommand{\indextextheight}{\index{textheight}\index{height}}
\newcommand{\indexdiff}{\index{diff}}
\newcommand{\indexcondensedversion}{\index{condensedversion}}
\newcommand{\indexfrancoise}{\index{francaise}}
\newcommand{\indexdocumentation}{\index{documentation}}
\newcommand{\indexinitial}{\index{initial}}
\newcommand{\indexnewsgroup}{\index{newsgroup}\index{internet}}
\newcommand{\indexrecode}{\index{recode}}
\newcommand{\indexlatexhistory}{\index{latexhistory}}
\newcommand{\indexomega}{\index{omega}}
\newcommand{\indexusepackage}{\index{usepackage}}
\newcommand{\indexlayout}{\index{layout}}
\newcommand{\indexpage}{\index{page}}
\newcommand{\indexstructure}{\index{structure}}
\newcommand{\indextextwidth}{\index{textwidth}\index{width}}
\newcommand{\indexcolumn}{\index{column}}
\newcommand{\indexcolumnsep}{\index{column}\index{columnsep}}
\newcommand{\indexcolumnseprule}{\index{columnseprule}\index{column}}
\newcommand{\indexcolumnwidth}{\index{column}\index{width}}
\newcommand{\indexlinewidth}{\index{line}\index{width}}
\newcommand{\indexevensidemargin}{\index{evensidemargin}\index{margins}}
\newcommand{\indexoddsidemargin}{\index{evenoddsidemargin}\index{margins}}
\newcommand{\indexfootskip}{\index{footskip}\index{footer}}
\newcommand{\indexheadheight}{\index{headheight}\index{headings}}
\newcommand{\indexheadsep}{\index{headsep}}
\newcommand{\indextopmargin}{\index{topmargin}\index{margins}}
\newcommand{\indexmarginparpush}{\index{marginparpush}\index{margin_notes}
\newcommand{\indexmarginparsep}{\index{marginparsep}\index{margin_notes}}
\newcommand{\indexmarginparwidth}{\index{marginparwidth}\index{margin_notes}}
\newcommand{\indexpaperheight}{\index{paperheight}}
\newcommand{\indexpaperwidth}{\index{paperwidth}}
\newcommand{\indexsanserif}{\index{sanserif}}
\newcommand{\indexmulticol}{\index{multicol}}
\newcommand{\indexpstops}{\index{pstops}\index{psutils}}
\newcommand{\indexpsbook}{\index{psbook}\index{psutils}}


\begin{document}
\newcommand{\jiji}{\vspace{3pt}\hrule\vspace{3pt}}
\newcommand{\jaja}{.\\VVVV\dotfill\\\vspace{3pt}}
\rfoot{ irmina@ctv.es}

\tableofcontents
\section{Copyright}
Copyright 1999 Manuel Guti\'errez Algaba.
Este documento est'a bajo licencia GNU. Deber\'ia haber recibido
la licencia GNU junto con este documento.

\section{Objetivos}
Se trata de tener una base de datos de ejemplos y dudas, que no 
es s\'olo f\'acil de manejar sino que puede convertirse en otros
formatos o mediante un CGI en una especie de Oraculo de \TeX. 
Para cualquier duda, vaya al indice y consulte en las p\'aginas
que m\'as le interese.

\section{Trucos}
\jiji
Alguien sabe donde se puede conseguir el gnuplot compilado para
Windows?
\indexfjdiez \indexgnuplot
\jaja
\indexyo
Puedes construir un sistema POSIX en Win NT, con GCC Cygnus, coger
los fuentes y compilarlo para NT.
\jiji

Como puedo alinear dos cajas de la forma 
\begin{verbatim}
xxxxxxxxxx   xxxxxxxxxx
x caja 1 x   x caja 2 x
xxxxxxxxxx   xxxxxxxxxx
             xxxxxxxxxx
             xxxxxxxxxx
             xxxxxxxxxx
\end{verbatim}
\indexjdiaz \indexcabrero \indexcaja
\jaja
 \verb|\vbox| apila sus contenidos verticalmente, y la baseline de la caja
 resultante coincide con la basline de la \'ultima caja que se ha metido en
 el vbox.
 
 \verb|\vtop| hace lo mismo, pero la baseline de la caja resultante es la de la
 primera caja de las que se meten en el vtop.
 
 En el ejemplo que esta escrito mas arriba, ambas \verb|\vbox{}| se componen de
 una sola caja en su interior (la \verb|\hbox|), por lo que la baseline de la
 \verb|\vbox| resultante ser\'a equivalente a la baseline de la \verb|\hbox| que tiene
 dentro. Ya que esta \verb|\hbox| es a la vez la primera y la \'ultima de las que
 hay dentro de \verb|\vbox|, el resultado no cambiar\'{i}a aunque us\'aramos \verb|\vtop|.
 
 La solucion es a\~nadir una caja "nula" en primer lugar dentro de cada
 \verb|\vtop|, es decir:
 
 \verb|\vtop{\null\hbox{caja1}}\vtop{\null\hbox{caja2}}|
 
 De este modo, la baseline de cada uno de los vtops es la baseline de la
 caja nula, y por tanto ser\'a el punto m\'as alto de la \verb|\vtop|. Ya que
 posteriormente TeX alinear\'a ambas vtops de acuerdo con sus baselines, el
 resultado ser\'a como lo que tu buscabas.
 
\jaja
 \indexrput \indexpstricks \indexarodriguez
Con rput de pstricks no necesitas saber el tama\~no de la caja, solo el lugar donde
la quieres poner. Y tambi\'en trabaja con Latex. Quiz\'as sea la mejor alternativa en
cuanto a facilidad. Lo malo es que tienes que pasarlo a ps, pdf, o lo que quieras.

\jiji

¿Alguien sabe si hay alguna manera (utilizando import en bibdb, por
ejemplo) de trasformar el formato de las referencias en psyclit a el de
BibTeX? Las referencias son mas o menos as\'{i} tal como salen de Psyclit:

\begin{verbatim}
 No.    Registros    Solicitud
*  1          106    brehmer

Registro 1 de 106 - PsycLIT 1988-1992

AN:  1993-24396-001
DT:  Journal-Article
TI:  Dynamic decision making: Human control of complex systems.
AU:  Brehmer,-Berndt
SO:  Acta-Psychologica. 1992 Dec; Vol 81(3): 211-241
IS:  0001-6918
PY:  1992
\end{verbatim}

\jaja
 \indexyo \indexbib \indexpsyclit

\verb|"""|\\
\verb|Registro 1 de 106 - PsycLIT 1988-1992|\\
\verb||\\
\verb|AN:  1993-24396-001|\\
\verb|DT:  Journal-Article|\\
\verb|TI:  Dynamic decision making: Human control of complex systems.|\\
\verb|AU:  Brehmer,-Berndt|\\
\verb|SO:  Acta-Psychologica. 1992 Dec; Vol 81(3): 211-241|\\
\verb|IS:  0001-6918|\\
\verb|PY:  1992|\\
\verb| |\\
\verb|En:|\\
\verb||\\
\verb|\bibitem{knuth1} {\sc D.E. Knuth}|\\
\verb| {\it Literate Programming.} Center for|\\
\verb|the Study of Language and Information (CSLI), 1992.|\\
\verb|"""|\\
\index{clases!libro}\\\verb|class libro:|\\
\index{funciones!\_\_init\_\_}\\\verb|    def __init__(self):|\\
\verb|        pass|\\
\verb||\\
\index{funciones!genera\_cite}\\\verb|    def genera_cite(self):|\\
\verb|        print "\\bibitem{cite}"+ self.autor+ " "+ self.tipo_title + \|\\
\verb|        " "+ self.compendio + ", " + self.py|\\
\verb||\\
\index{clases!registro}\\\verb|class registro:|\\
\verb|    dict_tokens= { "AN": "anyo",|\\
\verb|                   "DT": "tipo_doc", "TI": "tipo_title",|\\
\verb|                   "AU": "autor", "SO": "compendio", "BK": "compendio",|\\
\verb|                   "IS": "Is", "PY": "py", "Re": None }|\\
\index{funciones!\_\_init\_\_}\\\verb|    def __init__(self, fichero):|\\
\verb|        f = open(fichero, "r")|\\
\verb|        self.lines = f.readlines()|\\
\verb|        f.close()|\\
\verb|        self.lista_libros = []|\\
\verb|        self.analiza()|\\
\verb||\\
\index{funciones!analiza}\\\verb|    def analiza(self):|\\
\verb|        libro_actual = libro()|\\
\verb|        for i in self.lines:|\\
\verb|            try:|\\
\verb|                if self.dict_tokens[i[0:2]] is None:|\\
\verb|                    self.lista_libros.append(libro_actual)|\\
\verb|                    libro_actual = libro()|\\
\verb|                else:|\\
\verb|                    setattr(libro_actual, self.dict_tokens[i[0:2]],|\\
\verb|                            i[3:-1])|\\
\verb|            except KeyError:|\\
\verb|                pass|\\
\verb||\\
\verb|        self.lista_libros.append(libro_actual)|\\
\verb|        del self.lista_libros[0]|\\
\verb||\\
\index{funciones!imprime}\\\verb|    def imprime(self):|\\
\verb|        print "imprimiendo"|\\
\verb|        for i in self.lista_libros:|\\
\verb|            #print i.__dict__|\\
\verb|            i.genera_cite()|\\
\verb||\\
\verb|        |\\
\verb||\\
\verb|if __name__=='__main__':|\\
\verb|    r= registro("syclit")|\\
\verb|    r.imprime()|\\

\jiji
¿ Como crear una pagina vacia ? Por ejemplo para un examen
\jaja
 \indexjosera \indexyo
\begin{verbatim}
\documentclass{article} %% no importa el tipo de documento
\begin{document}
\pagestyle{empty}  
% ...........aqui sigue el documento
\end{verbatim}
\jiji

 lo que sucede es que tengo una formula muy larga que no
 cae en horizontal, deseo escribirla en forma vertical aun cuando
 aparezca en una pagina independiente la pura formula.
 
 Hasta ahora, lo que hago es un peque\~no postscript
 con la formula y despues la incorporo al documento en forma vertical
 como un dibujo cualquiera, pero no es lo ideal.
 
 Mis preguntas son:
 
 - Puedo escribir en forma vertical la formula?
 - Como hago para que una pagina salga en forma vertical (landscape) ?
\jaja
 \indexvarona \indexrotacion

\begin{verbatim}
\documentclass[10pt]{article}

%\addtocounter{page}{3}
%\enlargethispage{1cm}
\usepackage{amsmath,amssymb}
\usepackage{graphicx}
%\usepackage[spanish]{babel}
\usepackage{rotating}
%% Usar \rotdriver no hace falta si se carga el paquete {graphix},
%% pues graphics.cfg (si est\'a bien configurado) le da el driver.
%\rotdriver{textures}
%\rotdriver{dvips}
\setlength{\textwidth}{16cm}
\setlength{\textheight}{22cm}
\setlength{\oddsidemargin}{0cm}
\setlength{\topmargin}{-1cm}
\def\agorda{{\mathcal{A}}}
\def\ogorda{{\mathcal{O}}}
\def\ugorda{{\mathcal{U}}}
\def\cgorda{{\mathcal{C}}}
\def\pgorda{{\mathcal{P}}}
\def\continua{{\mathcal{C}}}

\begin{document}

Hola, Blanca:

Como puedes ver, funciona perfectamente.

Los girados no se ven en la pantalla (supongo que es porque la pantalla
no es capaz de interpretar el PostScript), pero se imprime bien.

Hola \begin{sideways}HOLA\end{sideways} Hola


En esta pagina he puesto un HOLA girado.

En la otra p\'agina pongo la tabla ella solita.

Lo he hecho en el Mac con Textures.

\begin{sidewaystable}
$$
\dfrac{\agorda^1}{{(b^1)}^T}=
\begin{pmatrix}
a &amp;&amp;&amp;&amp;&amp; \\[0.5ex]
a &amp;&amp;&amp;&amp;&amp; \\[0.5ex]
0.5-a &amp; 0 &amp; a &amp;&amp;&amp; \\[0.5ex]
0.5-a_{43}^1 &amp; 0 &amp;a_{43}^1 &amp;&amp;&amp; \\[0.5ex]
(-1+2a) (1-12a+12a^2) &amp; 0 &amp; -2 (-1+2a) (1-6a+6a^2) &amp; 0 &amp; a &amp; \\[0.5ex]
-1 + 10a - 12a^2 + 4 (1-6a+6a^2) a_{43}^1 &amp; 0 &amp;
   -2 (1-6a+6a^2) (-1+2a_{43}^1)&amp; 0 &amp; a &amp; 0 \\[0.5ex]
\hline
\displaystyle{\frac{1}{6\,{{\left(1-2a\right)}^2}}} &amp; 0 &amp;
\displaystyle{\frac{2\,\left(1-6a+6a^2\right)}{3\,{{\left(1-2\,a\right)}^2}}}
&amp; 0 &amp; \displaystyle{\frac{1}{6\,{{\left(1-2a\right)}^2}}} &amp; 0
\end{pmatrix}
$$
\end{sidewaystable}

\end{document}
\end{verbatim}

\jiji

 del todo bien. Inserto imagenes mediante

\begin{verbatim}
 \begin{figure}
   \begin{center}
     {\centering \includegraphics[scale=0.72]{la_imagen.eps}\par}
   \end{center}
   \caption{Comentario a pie de imagen.}
   \label{etiqueta_de_la_imagen}
 \end{figure}
\end{verbatim}

 pero no logro hacer algo del tipo:
\begin{verbatim}
 xxxxxxxxxxxxxxxxxx
 xxxxxxxxxxxxxxxxxx
 xxxxxxxxxxxxxxxxxx

      IMAGEN

 xxxxxxxxxxxxxxxxxx
 xxxxxxxxxxxxxxxxxx
\end{verbatim}
 donde x=texto sino que la imagen aparece siempre en una p\'agina para ella
 sola, ?qu\'e estoy haciendo mal?.
\jaja
 \indexcentradoimagenes \indexleal \indextamanyo \indexcaja


Te doy una idea, incluye el gr'afico con el comando \verb|\fbox| y as'i te haces una idea
del tama'no.

\verb|\fbox{ \includegraphics[width=0.5\textwidth]{la_imagen.eps}}|

Ah! por cierto creo que no hace falte un entorno de centrado para centrar una
figura, me parece que el considera una figura como una letra grande con lo que
bastar'ia un centerline, o sea

\verb|\centerline{\fbox{ \includegraphics[width=0.5\textwidth]{la_imagen.eps}}}|

Adem'as con esto te evitas que a'nada espacio adicional y ya que la mayor'ia de
los entornos a'naden espacio al comienzo y al final con lo cual tienes el del
entorno figure y adem'as el del center y bueno el espacio de este segundo te lo
ahorras.
\jaja

El entorno figure es un entorno float, o sea que va "flotando" en el 
documento hasta que encuentra su posicion mas idonea. Puedes controlar
estos ires y venires con unos parametros opcionales: h,t,b,p por ejemplo
\verb|\begin{figure}[htb]|, y mucho me temo que el parametro por defecto es p.
El significado de los parametros es:
h = here, dejarlo justo donde esta (si cabe, ten en cuenta que los graficos
  no se pueden partir en dos partes)
t = top, ponerlo en la parte de arriba de la siguiente pagina
b = bottom, ponerlo en la parte de abajo de la primera pagina en que quepa
p = page, ponerlo en una pagina aparte
\jaja
 \indexagmartin

¿C\'omo es tu imagen?, a ver si es muy grande y ocupa m\'as que lo que est\'a
reservado para floats. Adem\'as tienes cosas que no necesitas (p.ej.
centering)

Para que insista m\'as en colocarla donde quieres puedes utilizar p.ej.
[!t] que la pondr\'{i}a en top con mucha m\'as insistencia. Prueba con algo
como
\begin{verbatim}
 \begin{figure}[!t]
   \begin{center}
     \includegraphics[width=0.5\textwidth]{la_imagen.eps}
   \end{center}
   \caption{Comentario a pie de imagen.}
   \label{etiqueta_de_la_imagen}
 \end{figure}
\end{verbatim}
a ver que pasa (lo del width en vez del scale es que a m\'{i} me gusta m\'as
ponerlo en funci\'on del ancho de l\'{i}nea)

\jiji
Hola a todos,

retomo de nuevo la pregunta que lance hace algun tiempo (y que espero
alguien me pueda resolver).

Cual es la forma mas sencilla de citar referencias electronicas (tipo
direcciones web) con BibTeX? Uso Windows 95 + MikTek 1.2 + WinEdt, y para
generar la bibliografia, el programa WinBibdb. Me he creado un fichero de
estilo con natbib (autor+anyo). Pero no hay forma de que me aparezcan las
direcciones web en las referencias de forma bonita...

\jaja
 \indexbib \indexreferencias \indexjbezos

En realidad hay bastantes variantes (si puedes conseguir la quinta
edición del MLA Handbook puedes verlas). No es lo mismo una página,
que un mensaje de un grupo de noticias, que un libro en pdf,
que un sitio entero. Creo que lo mejor para tratar una página web
es como parte de libro (más exactamante inproceeding, que es el que
menos datos requiere), con la página concreta como parte y el
nombre general del sitio como obra. El autor debería estar
citado en la fuente html. Finalmente, la url la añades ``a pelo''
como nota, entre \verb|\texttt{&lt;...&gt;}| y con la fecha de consulta (que
debe indicarse además de la del archivo html). Lo malo es que a
menudo faltan datos, y bibTeX no marcha si no se dan. Para
otros casos tal vez funcionen proceedings, manual, etc.

En custom-bib, url es un nuevo campo añadido a los ya existentes.
No se si bibdb puede crear entradas con ese nuevo campo.

De Merlin.mbs:
\begin{verbatim}
% \subsection*{URL address}
% For electronic documents with an Internet address, add a URL entry.
% Harvard already has this, but here it is done for all styles.
% The URL text will be set with the \verb!\url! command in the \texttt{url}
% package by Donald Arseneau. This package must be loaded for the command
% to work right. It allows line breaks at punctuations. Otherwise, 
% \verb!\texttt! is used instead, with no line breaks. The URL text is preceded 
% by \verb!\urlprefix! which defaults to ``URL '' but may be redefined by the 
% user to be whatever he/she wants. The final space must be included.
\end{verbatim}
\jiji
&gt;
=A1Hola a todos! Esta vez escribo por una cuesti=F3n que no es del grupo:
Me da problemas incluir una formula logica en el \verb|\caption| de una figura.

Exactamente, al hacer el indice de contenidos (he logrado evitar el probl=
ema
en el mismo \verb|\caption| poniendo spanish en activeacute)

En mi documento tengo en el pre=E1mbulo
\jaja
 \indexjosera \indexcaption \indexmathmode

Yo tuve el mismo problema en mi tesis que tiene José Ramón. Algunas
formulas (las que tienen acentos matemáticos \verb|\mathaccent| del estilo de
\verb|\bar| \verb|\vec| etc) me daban error en la lista de figuras aunque no en el
caption de la figura como parece indicar Jose Ramón.

No logre solucionalo pero para salir del paso utilize el parámetro
opcional de \verb|\caption| para que el texto de la lista de figuras no
tuviera esa formula que me daba error:

Es decir: 

\begin{verbatim}
\caption[Texto que aparece en lista de figuras]{Texto del pie de la figura}
\end{verbatim}

En este caso podría ser una cosa así:
\begin{verbatim}
\caption[An example of interaction relation between two copies of $K_{1,3}$]
 {An example of interaction relation between two copies of
 $K_{1,3}$ transformed in the Boolean clauses $(a \wedge \bar{b}) \vee\
 (\bar{a} \wedge {b})$}

\end{verbatim}
\jiji

 He creado un tabla con el paquete tabularx (que contiene 33 columnas) y
 quisiera que una o varias de esas columnas aparezcan con el fondo en
 color (verde, rojo,...).
 
 ¿Hay alguna orden que permita hacer ésto rápidamente?. Si no existe,
 alguien sabe alguna otra forma.
\jaja
 \indexcaja \indexcolor

Existe el paquete colortbl, de David Carlisle, que está en
CTAN:macros/latex/contrib/supported/carlisle. Lo que no sé es si
funcionará con tabularx, pero puedes probarlo.
\jiji
en alguna parte he leido que es posible "latexear" un documento "de forma
rapida", es decir, sin incluir las imagenes etc... que pudiera contener,
para obtener una "vista rapida" del aspecto que tendra el documento final.

Como se hace esto?
\jaja 
Poniendo la opci\'on draft \verb|\document[draft...|
\jiji
Hola.. Estoy escribiendo en clase book, y quiero hacer los siguientes
cambios:
* Los titulos de chapter, en mayusculas y centrados.
* Los titulos de section, en mayusculas.

alguien sabe como hacerlo?, algo lei en el Latex Companion, pero no me
sirvio ni lo entendi.

\jaja
  \indextitlesec \indexjbezos
Para lo que quieres, posiblemente sectsty será suficiente. Para cosas
más elaboradas, titlesec (que he escrito yo mesmo). En ese punto el
Companion ya se ha quedado obsoleto (no es que no sirva lo que dice,
es que entonces todavía no habia paquetes para manipular titulos y
habia que entrar en las tripas de LaTeX).
\jiji
\indexjbezos \indextipos
Ya se encuentra en CTAN/info/spanish/ el archivo tipos.pdf, que corrige y
aumenta (y ademas esta mas bonito) la serie de mensajes que escribi sobre
los tipos y que hasta ahora estaba disponible como solo texto en

\jiji
\indexjosera \indexexamen

\begin{verbatim}

\documentclass[a4paper]{article}
\usepackage[spanish]{babel}

\begin{document}
\pagestyle{empty}

\begin{center}
{\large{EXAMEN FINAL - MATEM\'ATICAS III}}

{15 de diciembre de 1998}
\end{center}
\vskip 1cm

\begin{enumerate}
\item

un problema

\item  Demostrar que el cambio $ y = z  y_0 $ transforma una
ecuaci\'on diferencial  $ y'' + R(x) y'+ S(x)= Q(x) $ en otra de
la forma  $ y'' + p(x) y'= q(x),  $ siendo $y_0$ una soluci\'on
particular de la ecuaci\'on homog\'enea original.
Aplicar este hecho para hallar la integral general de
$$ \displaystyle
x Lx  y'' - 2 y ' +
\left(\displaystyle\frac{1}{x} + \displaystyle\frac{2}{x Lx} \right) y =
\left( Lx \right) ^2, $$
conociendo la soluci\'on $y_0 = Lx$, que anula al primer
miembro de la ecuaci\'on.

\item

otro problema

\item

y otro m\'as

\end{enumerate}


\end{document}
\end{verbatim}
\jiji
\indexcartas \indexfirmas \indexyo
\begin{verbatim}
\begin{tabular}{lll}
El presidente casa n 17 &amp; \hspace{3cm} &amp; El secretario casa n 18 \\
Enrique Herrer &amp; \hspace{3cm}  &amp;Antonio Guti'errez
\end{tabular}   
\end{verbatim}

\jiji
utilizo Pagedraw para crear "a mano alzada" dibujos de toda clase (no tengo
tiempo de momento para aprender Metapost, PStricks, etc...). Este programa
(freeware) para Windows 95 (mi plataforma) exporta a EPS directamente, pero
necesita las fuentes Adobe Type Manager para poder escribir texto en los
dibujos.

1) Es posible incluir directamente texto en un .eps, sin tener que
"rasterizar" el dibujo (es decir, perdiendo la capacidad de autoescalado,
etc... como podria hacer con Adobe Photoshop, por ejemplo)? Me gustaria
poder aqadir el texto "desde fuera de TeX" (es decir, que el texto este
dentro del fichero .eps final), para aumentar la portabilidad del fichero.

2) Si alguien pudiese indicarme si se pueden conseguir esas fuentes de modo
gratuito (Adobe Type Manager Version 2.01 or later. Only ATM fonts, i.e.,
PostScript Type 1) para Windows 95, se lo agradeceria...
\jaja
 \indexeps 
Existen dos programas MayuraDraw (shareware) y Tkpaint (freeware)
( xfig, tgif...)  para
graficos "mano alzada" sencillos, exportables a EPS pero pienso que lo ideal
es conservar las fuentes LaTeX en las graficas. Para ello es mas facil
utilizar el paquete "psfrag" que reemplaza los textos en los archivos ".eps"
y permite utilizar el potencial del formato LaTeX para las expresiones
matematicas. El esfuerzo bien vale la pena.


\jiji

Necesito cambiar las unidades en un documento tex de pt en ex.
Alguien conoce alguna utilidad para Mac OS que permita hacer
multiples substituciones de texto en documentos. Como editor uso 
Alpha, con el que seguro que se puede hacer lo que pretendo, excepto
que necesitas saber programar en TCL (al menos lo suficiente para  
estar seguro de no mandar 300 paginas a la basura). 

\jaja
 \indexconversiones \indexregexp \indexjbezos

Un programa que se llama SuperReplace proporciona sustituciones
al estilo de expresiones regulares, pero muuucho mas facil de usar.
No requiere programar, y ademas ya incluye conversiones
preprogramadas de 8 bits a TeX y viceversa. Esta en
\verb|&lt;http://www.kagi.com/guoniu&gt;.|

Para hacer sustituciones en Alpha no es necesario saber Tcl, ya
que el diálogo Find...  permite usar expresiones regulares, y
guardarlas para un futuro con el pequeño menu desplegable
llamado Patterns. No se exactamente si necesitas hacer
calculos; si no hacen falta, prueba con algo parecido a esto:

  En Search for:     \verb|([0-9]*\.?[0-9]+ *)pt|
  En Replace with:   \verb|\1ex|
  Y el boton Grep encendido.

Con una expresion mas complicada se podria llegar a multiplicar
o dividir por diez.

Finalmente, puedes recurrir a AppleScript, para el que existen
módulos para busqueda y sustitucion, pero ahora no tengo a mano

\jiji
 Resulta que instale el diccionario espanol de Ispell para utilizarlo
 en los documentos LaTeX y funciona muy bien. Lo que no se ahora es
 como configurar emacs para que admita este diccionario.
\jaja
 \indexispell \indexemacs

\begin{verbatim}
	Pon esto en tu $HOME/.emacs

	(setq ispell-dictionary-alist 
      (cons '("espa~nol"
              "[A-Za-zÁÉÍÓÚáéíóúÄËÏÖÜäëïöünÑ\\]"
              "[^A-Za-zÀÂÆÇÈÊÎÔÙÛàâçèêîôùû\\]" 
              "[---'\"]" 
              t
              ("-T"  "latin1" "-d" "espa~nol")
              "~latin1")
            ispell-dictionary-alist))

	(setq ispell-menu-map
      (cons ispell-menu-map
            '(espa~nol
              "Seleccionar español"
              (nil) lambda nil
              (interactive)
              (ispell-change-dictionary "espa~nol"))
            ))

(setq ispell-dictionary "espa~nol")
\end{verbatim}
\jiji

 My question  is  regarding listing typesetting; I   am looking
 into a way  to format some listing  like some  "a2ps" pages (or  other
 similar usefull  C,  Tcl/Tk and  Perl text  print  formatter),  ans am
 wondering how  to do it without having  to include a  PS of the "a2ps"
\jaja
\indexlistados \indexlgrind
Have a look at lgrind or the listings package.
\jiji
\indexrisas
\verb|\smile| and \verb|\frown| (math mode) produce a smiling resp. frowning "paren".
The wasysym package offers \verb|\smiley| and \verb|\frownie| for smiling resp.
frowning faces.
Have a look at 
\verb|http://www.fi.infn.it/pub/tex/doc/html/latex_21.html|
Or just \verb+;-)+ or \verb|;+}| 
\jiji
where can I find the format of .dvi files and orther (fonts,...) used or
generated by tex ?
\jaja
These are described in the tex.web and mf.web, from ctan:systems/knuth
use `weave tex.web' to generate a .tex file
A better source might be dvitype.web.
And you can probably easily read it as text without formatting it.
If you do format it, you need "weave" (of course) and probably also
webmac.tex.

\indexformatodvi
\indexweave

\jiji
\indexreferencias \indexpdf
&gt; Also I'd like to install and use the url.sty package
\jaja
I'd consider using hyperref if I were you, which will handle URLs fine
and also make them real hyperlinks if you output to PDF.  
\jiji
when I have nested list environments:
I would like for the nest list to be idented slightly more then 
it is by default. How do I do this (permanently for all lists in 
my documents)?
\jaja
\indexidentacion
\verb|\addtolength{\leftmarginii}{5pt}|
\jaja

try to set the value of
\verb| \leftmargin[n]  where n is {i,ii,iii,iv,v or vi}. At|
each level, the left margin is indented with the value of
\verb| \leftmargin| unless you
modify the value above.
ex :
\verb|\setlength{\leftmarginii}{2cm}|
 %will indent the second level 2cm compared to the
first level.

these declarations must be made outside the list environment. (so in the
preamble if you want this for all your lists).

\jiji
 1. How do I change the section headings such that the section number
 does not appear in boldface? Or make the section number and 
 the section header to be unbolded?
\jaja
\index{adornos} \index{seccion}
titlesec.sty or sectsty.sty.
\jiji

 I have a situation whereby I produce a latex document up to, say, page 95.
 
 Page 96 to page 110 are produced (picture pages) by some other means and
 just slid into the latex document which should now continue from page 111.
 
 How do I force this condition (i.e. to continue the page label from page
 111 rather than from 96).

\jaja
 \indexsaltarsepaginas

You can just say
\begin{verbatim}
	\clearpage
	\setcounter{page}{111}
\end{verbatim}
at the position in the text, but maybe you don't know what the
page
number will be. If you at least know how many picture pages you
have
you can use
\begin{verbatim}
 \clearpage
 \addtocounter{page}{15}
\end{verbatim}

\jaja
..
\addtocounter{page}{18}

\jiji
Is there a way for me to just produce a print file with only the
offending page in it,

\jaja
 \indexdvi \indexnumeracion
dvips -pp 3 
prints the page which is numbered 3
dvips -pp =3
prints the third page (no matter how it is numbered)

\jiji

What would it take to make them numbered consecutively from
the beginning so that I don't have to count what pages from the
third set of page numbers that I want?  Say I want the 2-5 pages
from the last set, they actually turn out to be pages 11-14, so how
can I get dvips to number them so (without changing the real
page numbering in the file):

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]
[13] [14] [15] [16] [17] ... [26]


\jaja
 \indexnumeracion

Here is a posible solution.  The numbers which are written by tex are 
the values of \verb|\count0|  TeX prints the values of \verb|\count0| to \verb|\count9|
on the output when it produces a page. I make \verb|\count1| contain the
`true'page number, using the everyshi package to increment this.

\begin{verbatim}
\documentclass{article}
\usepackage{everyshi}
\makeatletter
\countdef\c@truepage=1 \c@truepage=0
\makeatother
\EveryShipout{\stepcounter{truepage}}

\begin{document}
\begin{titlepage} Hello \end{titlepage}
a\newpage b
\end{document}
\end{verbatim}
The result is 
[1.1] [1.2] [2.3]
Actual pagenumbering is unchanged


\jiji
	I just have finished with the writting of my thesis. Now
there is just one thing that it is making me uneasy. The size of
my fles. Just 300kB of .tex and 19MB of .eps!!! Most of my figures
were generate with the win95 PS driver, so it is enormous. Now I
wish to reduce its size by compressing it. I hear that PS support
data compression by filters. There is some tool available to produce
compressed eps files from uncompressed eps files?

	I am including the eps files with graphix package by
\verb|\includegraphycs[...]{file.eps}| command.


\jaja
 \indexahorroespacio \indexeps

If you are using unix (I don't know if this works on win95 etc) you can:

Assume: file.eps

1. Extract eg. "\%\%BoundingBox: 151 197 460 564" from file.eps and put
   it in file.eps.bb

2. Eg. gnuzip your file: "gzip file.eps"

3. Add, in your document preamble

\verb|\DeclareGraphicsRule{.eps.gz}{eps}{.eps.bb}{`gunzip -c #1}|

4. Include your figure as normal but with the new extension:

\verb|\includegraphics[...]{file.eps.gz}|


This is all written in the manual epslatex.dvi ("Using EPS Graphics in
LaTeX2e Documents"), read it!

\jiji
\begin{verbatim}
+-----------------------------------------+
|                     +-----------------+ |
|   texts ........    |                 | |
|  ...............    |   Fig. 1        | |
|  ...............    |                 | |
|  ...............    +-----------------+ |
|  ...............    texts .........     |
|    .............    ...............     |
|  ...............    ...............     |
|  ...............    ............        |
|                                         |
| +------------------------------------+  +
| |                                    |  |
| |                                    |  |
| |                                    |  |
| |        Fig. 2                      |  |
| |                                    |  |
| +------------------------------------+  +
+-----------------------------------------+
\end{verbatim}
This is not possible. twocolumn know how to handle wide 
figures using figure* environment, but they are always
placed on the top of your page. 

\jaja
 \indexcaja \indexcolumnas
	Actually, you can hack this pretty easily.  The method is to
make Fig.1 a column-wide figure at the top of the second column and
Fig.2 a column-wide figure at the bottom of the second column.

	Next, add a null figure with the same height as Fig.2 at the
bottom of the first column (also this "figure" has no caption and
therefore does not mess with the numbering.

	Next, allow Fig.2 to stick out to the left and, finally,
adjust the placement of the figures to make them come out in the
right places.

  For example:
\begin{verbatim}
\begin{figure}[b]
  \vbox to 1in{%              Hack to be as high as the 2nd fig
    \vfil
    \hbox to \columnwidth{%
      \null
      \hfil}
    \vfil}
  \vspace{\abovecaptionskip}
  \phantom{Figure 0: \dots Figure two text\dots}%  Fig.2 caption repeated here.
  \vspace{\belowcaptionskip}
\end{figure}

\begin{figure}[t]
  \vbox to 1in{%		Figure one -- nothing special.
    \vfil
    \hbox to \columnwidth{%
      \hfil
      Actual Figure One
      \hfil}
    \vfil}
  \caption{}
\end{figure}

\begin{figure}[b]
  \hbox to \columnwidth{%	   Fig.2 is one column wide
    \hss                         % but it can stick out to the left
    \begin{minipage}{\textwidth} % and is actually textwidth wide!
      \vbox to 1in{%
        \vfil
        \hbox to \textwidth{%
          \hfil
          Actual Figure Two
          \hfil}
        \vfil}
      \caption{}
    \end{minipage}}
\end{figure}

\end{verbatim}
\jiji
 I'd like to insert a figure in two-column format.
\jaja
You can use float environment to insert anything (including
table, figure, paragraph etc).

Do like this : (figure environment use single-column, figure*
environment is for two-column spanning figure)

\begin{verbatim}
%% Fig. 1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{figure*}
\epsfig{file=figure.eps,height=5cm,width=5cm}
\caption{THIS IS FIGURE}
\end{figure*}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{verbatim}

Internally, figure (and table) environment use minipage environ-
ment.

\jiji

Actually, you can get great PDF from any LaTeX file, if you add

\verb|\usepackage{pslatex} |
\verb|\usepackage{hyperref}|

and use PDFTeX.
\indexpdf
\jiji
I have a lengthy list of equations in a "split" environment, and I would
like to insert a page break to spread the equations over two pages.
According to the LaTeX companion, this can be done using \displaybreak
or \allowdisplaybreaks, but my attempts to use these commands failed.
(In particular, the document inserted a page break after ALL of the
equations, not the equation I specifically targeted.)
\indexecuaciones \indexdivisionpaginas \indexdisplaybreaks
\jaja
There is an optional argument to \allowdisplaybreaks, ranging from 1
(mild) to 4 (very liberal breaks), and the same goes for \displaybreak.
It should do what do what you want. Also, from the AMSLaTeX
documentation, "\displaybreak should be placed immediately before the \\
where it is to take effect."
\jaja
\allowdisplaybreaks should be enclosed in a group (together with the
particular multiline display) if you wish it to target only one 
environment.

\displaybreak should be placed right where you want a break to occur

\jiji
Does anyone know how to set the thickness of the line produced by
\hrulefill?
I can't find it in my manuals.

\indexhrule \indexadornos
\jaja
You can change the default thickness of \hrulefill by redefining it:

\def\hrulefill{\leavevmode\leaders\hrule height 0.6pt \hfill\kern\z@}

Or you can change the default thickness of \hrule by redefining it as a macro:

\let\TeXhrule\hrule
\def\hrule{\Texhrule height 0.6pt}

\jiji
  Maybe this is a naive question, but how do I use new packages with LaTeX
  that come in .dtx files?
\jaja
 latex package.ins
 latex package.dtx

\jaja
\indexficherosdtx

\indexficherosdtx \indexonlydescription
A small tip:
Search the .dtx file and find a line start with
   \documentclass{ltxdoc}
Add a line
   \onlydescription
to get only the documentation for the dtx file, and save some trees
\jaja
\indexltxdoc
There is no need to edit the file. In fact in most cases you should not
do that.

You can add that line by making a file ltxdoc.cfg.

\jiji
how do I modify the caption command in such a way that it is placed
beside the figure if the figure width is below a certain value?

\indexcaption \indexside

\jaja
...macros/latex/contrib/supported/sidecap/
helps which should be on every ftp-server with a tex-tree.
\jaja
\usepackage{sidecap}

\jiji

\indexnumeracion
\indexalphanumeric

\renewcommand{\thefootnote}{\alph{footnote}}
and
\renewcommand{\thefootnote}{\roman{footnote}}
also
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\jiji

I would like to be able to use the endfloat package with a long table
that I created with the longtable package. Endfloat seems to ignore
the existence of the long table and leave it there in the
text. However, the list of tables at the end of the document properly
show the caption of the long table along with captions from other
tables.

How can I make endfloat recognize the long table and move it to the
end of the document as the others?

\indexendfloat \indexlongtable
\jaja
longtable uses a non-float mechanism to get to look vaguely float-
like.

i imagine that, to get it to work with endfloat, one would need some
pretty heroic hacking of longtable (and possibly endfloat as well).

\jiji
\indexnumeracion
\indexalphanumeric
\indexfootnote
 Can footnote markers be something other than arabic 
numerals?  

\jaja
Yes, \renewcommand{\thefootnote}{\alph{footnote}}
  or \Alph, or \roman, or \Roman, or \fnsymbol
This is a general prescription for changing the formatting of one of
LaTeX's counters: you redefine \thecounter.

\jiji
     I have just uploaded hyphenat.tar to ftp.tex.ac.uk/incoming. Can
 you please use this to replace the current
 tex-archive/macros/latex/contrib/supported/hyphenat?

 From the README:
     The hyphenat package can be used to disable all hyphenation in a
 document or in selected text within the document. It also enables
 hyphenation within `words' that contain analphabetic characters
 (e.g., that include underscores), and hyphenation of text typeset in
 monospaced fonts (e.g., Computer Modern Typewriter or Courier).

 Changes in version 2.3
 o Added \hyp command for hyphenation of compound hyphenated words


\indexhyphenation

\jiji
\indexbaseline \indexbooksty 
I hope someone can help me out with the following questions:

1. I have a variant of book.sty where the normal font is 10/14. My headings
are 12/17. Now, if I want the total vertical space of the space above the
heading + the heading itself + space below the heading to be equal to the
height of two normal rows of text, should I take space above = 9pt and space
below = 2pt (i.e., 9 + 17 + 2 = 28) or space above = 12pt and space below =
4pt (i.e., 12 + 12 + 4 = 28)? (So, my problem is that I don't know if the
vertical height of a heading, on a single row, equals the font size or the
baselineskip.)
\jaja

The baseline that is used is the baseline in effect when a paragraph
ends. I would guess you are ending the scope of your baselineskip change
before the blank line that ends the paragraph, right?

Look at the following example:

1    ...text before the heading.

2    {\Large Heading That Goes on Long Enough
3            to Require Two Lines
     
     }

4    Additional text that follows the heading...

Assume that \Large sets the font size to 12pt and the baselineskip to 
17pt, and that the other text uses 10pt/14pt. Then the baseline of 
line~2 will be 17pt below the baseline of line~1, the baseline of line
~3 will be 17pt below that, and the baseline of line~4 will be 14pt
below that. This assumes that the height and depth of adjacent lines do
not add up to more than the relevant baselineskip.

If the heading uses up only one line, there will be 17pt
(baseline-to-baseline) above and 14pt (again baseline to baseline
below). This ammounts to 21pt. If you want the total space used to 
equal 28pt, then you simply add 7pt of space and divide it as you like
above and below. 

\indexadornos 
\indexaltura
\indexbox

I have done this a number of times. You can create a box of a particular
height in the following way

\vbox to 50mm{
  &lt;commands to set font and baselineskip&gt;
  \vskip 20mm
  \hbox{Chapter 1}
  \hbox{Introduction}
  \vfil}

In this example, the first \hbox will start 20mm below the the top of
the \vbox, and the \vfil at the end will stretch to whatever is needed
to ensure that the \vbox is 50mm tall. The two \hbox'es are placed with
the baselineskip set previously. (One could omit the \hbox
wrapping, simply forcing a linebreak between the two lines, but I find
it easier not to have to worry about all of TeX's myriad paragraph
building parameters.)
\jaja
When defined normally, the baselineskip above a paragraph is the value
for within that paragraph.  Thus the baselineskip above headings should
be 17 pt and the baselineskip below should be 14 pt.  You want to add
a total of 3*14-(17+14) = 11 pt space.  It is up to you how you distribute
it.  

Since the text below the title has a smaller baselineskip, you may want 
to reduce the \prevdepth parameter after the title to avoid getting
a \lineskip.&nbsp; E.g., 
\vskip-.5\prevdepth \prevdepth=.5\prevdepth
But it will probably not be an issue with 10 and 12pt text.


&gt;2. When a heading is too wide to fit on a single row, I would expect the
&gt;baseline of the second row to be 17pt below the baseline of the first. But
&gt;this isn't so. 

Ah!  You have your headings defined badly.  Somehow your font size
is being forgotten before the paragraph ends.  It works properly
when you use \@startsection normally.

&gt;3. I want the first row of text in each chapter to start at exactly the same
&gt;height.

Just specify the size of the box and some fill-glue:
\vbox to 1in{\vfill &lt;title font&gt;&lt;the title&gt;} 
or 
\parbox[b][1in][b]{\linewidth}{&lt;title font&gt;&lt;the title&gt;} 
which puts all titles at the same baseline.  To put them 
at the same top line:
\vbox to 1in{&lt;title font&gt;&lt;the title&gt;\vfill } 
or 
\parbox[t][1in][t]{\linewidth}{&lt;title font&gt;&lt;the title&gt;} 

\jiji
\indexscale
 My integral symbols aren't being scaled properly in a presentation I'm
 working up. Is this a known problem? Any workarounds? 

\jaja
\usepackage{exscale}

\jiji
 I have a large table problem with LaTeX.
 The code below produces a correct table, but after the fifth line
 of the table the initial width of 152mm jumps to 160mm.
 The 160mm is OK, but the jump looks awful. Can someone help me?
\indexlongtable
\jaja
Supertabular calculates some table dimensions that it usues during the next
run. In my case it took three-four subsequent runs to get the table look
correct.
\jaja

your table is inside a floating environment so it will not break over a
page. So don't use supertabular, it can not work there, use tabular.
\jaja
Why are you using supertabular here? 
Supertabular is for splitting a large table across pages, which won't
happen here because you put it in a sidewaystable. But supertabular will
still start a new section when it thinks the page is full, and then it may
change the width of the table (because each sectionb is typeset as a
separate table), unlike longtable which makes all segments the same.

So just use tabular rather than supertabular.

\jiji
\indexinstalacion \indextipos
 I have just installed yhmath package but when I try to use it I get
 
    !  I can't find file 'yhcmex10.mf'.

 I don't understand it because I have updated the filenames and if I do
   initexmf --find-latex-input yhcmex10.mf
 it returns
   c:\texmf\tex\latex\yhmath\yhcmex10.mf
 So what is the problem.

\jaja
Perhaps you could try to put the mf files in 

  c:\texmf\fonts\source\public\yhmath

which I think is more correct when it comes to fonts.
\jaja

yhcmex10.mf is not LaTeX input, it is Metafont input. 
The error message you quote is coming from Metafont.
You should have put yhcmex10.mf somewhere under 
   \texmf\fonts\source\public
Now run 
   initexmf -u 
and all should work.

\jiji
 Sorry you're having problems with FoilTeX and PDF.  I (think I) would
 be surprised that the root cause is "the font manipulation done by
 FoilTeX" because the essense of this is scaling of standard
 fonts. There is nothing really fancy about it, particularly once you
 get to dvi.  I've never tried using dvips to get to pdf so I can't
 say if that's the problem.
 
 On the other hand, I just tried a simple test of 
   pdflatex sampfoil
 (with a modified version of sampfoil.tex, adding pdfoutput=1, e.g.)
 and the results were essentially OK.  At least AcroRead had no problem
 with it.
 Have you tried this?

\indexfoiltex
\indexpdf
\jaja
Yes, it is viewable with acroread but it does not print correctly.
Also the PDF file contains fonts of type 3 as reported by Acroread's
font info.

Did you try printing your modified sampfoil on a Poscscript printer?
\jaja

I did try your suggestion.  First, I looked at the font info in my
AcroRead and here's the list:
  CMSSBX10 Type1 Custom   Embeddes Subset Type 1
  CMSS10   Type1 Custom   Embeddes Subset Type 1
  CMTT10   Type1 Custom   Embeddes Subset Type 1
  CMR10    Type1 Custom   Embeddes Subset Type 1
  CMMI10   Type1 Custom   Embeddes Subset Type 1
  CMSY10   Type1 Custom   Embeddes Subset Type 1
  CMTI10   Type1 Custom   Embeddes Subset Type 1
  CMSSI10  Type1 Custom   Embeddes Subset Type 1
  CMCSC10  Type1 Custom   Embeddes Subset Type 1
  CMU10    Type1 Custom   Embeddes Subset Type 1
  CMMI7    Type1 Custom   Embeddes Subset Type 1
  CMR7     Type1 Custom   Embeddes Subset Type 1
  CMSY7    Type1 Custom   Embeddes Subset Type 1
  LASY10   Type1 Built-in Embeddes Subset Type 1
  CMEX10   Type1 Custom   Embeddes Subset Type 1
Then I printed on PS printer (level 2) and everything came out perfectly.  

&gt;From what you're telling me, perhaps you don't have all the CM/LA
Type1 fonts installed.  Make sure your psfonts.map and related map
files are configured correctly. It's not looking like a FoilTeX
problem but dvips or pdflatex configuration problem.  Like I said, I
don't what FoilTeX could be doing different from plain LaTeX because
the font names are identical, the only difference is the font sizes
and that shouldn't matter to Type1 font.

\jaja
\indext1enc
I found out that the problem was caused by using the t1enc package.  

I replaced \usepackage{t1enc} with \usepackage[latin1]{inputenc} and
now I can get type1 only fonts in my document with:

dvips -j0 -Pcmz -Pamz filename.dvi -o
distill filename.ps
\jaja

Those are two entirely different packages.
\usepackage{t1enc} is an obsolete version of
\uespackage[T1]{fontenc}

Font encodings determine what characters in the fonts exist and thus
what kind of words stand a chance of correct hyphenation.

Input encodings describe how the source file presents special
characters.  Both are pretty much orthogonal.

You might want to try in addition to [T1]{fontenc} the ae package
which will use the normal cmr fonts in T1 encoding via virtual fonts,
thus yielding correct hyphenation.

\jiji
\indexsplus
\indexpdf
The technical report "Statistical Tables and Plots using S-Plus and LaTeX"
may be obtained from
http://hesweb1.med.virginia.edu/biostat/s/doc/summary.pdf

This document shows how to combine the statistical package S-Plus with
LaTeX to produce long statistical reports such as those used in clinical
trials and in drug licensing applications.  Even more importantly, the
document
has many examples of how tabular output from the Hmisc library's
summary.formula function can be sent to a plot method to convert
the table into a graphic that may be incorporated into a LaTeX
report.  The table making ability of S-Plus comes from the print.display
library of Heiberger &amp; Harrell available on Statlib (lib.stat.cmu.edu).
This library (also called the print.display library) has a variety of
functions that produce LaTeX code to automatically typeset tables from
calculations done by S-Plus.  The S-Plus summary.formula goes a step
further and creates a variety of computed values to compose fairly complex
tables from only a few S-Plus commands.  The latex function in display
is then used to typeset the computed values into LaTeX tables.

The technical report shows how to do indexing, cross-referencing and hyper-
referencing in LaTeX to produce Adobe Acrobat .pdf files that are
somewhat "live".

\jiji
Is it possible to preview EPS imagines in YAP (dvi viewer from MikTeX) ?

\indexghostscript
\jaja
Yes, if you have Ghostscript/GSview.

You can download them from

ftp.cs.wisc.edu/ghost/aladdin/current
\jiji
Something seemingly strange has happened while processing aoducment
using LaTeX2e: the table of contents, as it appears in the .dvi file,
lists only the parts (I'm using the article format), not the sections
and subsections as it did before.  This happened once before, and the
problem went away, but seems consistent now, even after running LaTeX
about 5 times on the file.  I've got a feeling that there must be
something that I'm doing wrong that's causing this.

The .toc file contains all of the sections and subsections.  Is
there something that I should be doing to force these to appear
in the table of contents?
\indextoc \indextocdepth

\jaja

See if the \tocdepth variable is getting changed anywhere.
\jaja
I've experienced this too but then the TOC was completely empty. What
I did was in essence to add and then remove a picture-environment
(\include/\input or whatever) which xfig had produced.


\jiji
I would like my abstract to be included in the table of contents. I use
\begin{abstract}...\end{abstract}.

I would like a foreword on page ii
abstract on page iii
and toc on page iv - vi

I have tried to set the pagenumber counter before generating the toc,
but it doesn't make the toc start on page iv.

Are there similar environments as \begin{abstract}...\end{abstract} for
generating forewords? And if not, how do I center my text vertically on
the foreword?
\indextoc \indexabstract

\jiji
 I'd like to use the $Id$ string produced by rcs in one of the title
 arguments of a document to help track versioning. However, you can't use
 \verb or the verbatim enviroment in the argument of any commands. Any
 suggestions?

\indexadornos \indexrcs
Should you use plain TeX, you might want to look at the following code, which
sets the \footline in my diploma thesis:

\begingroup
   \catcode`\$ = 12
   \catcode`\_ = 12
   \frenchspacing
   \global\footline = {%
      \iftitle
         \global\titlefalse
         \hss\headlinesf\folio
      \fi
      \ifproofmode
         \font\seventt = cmtt7
         \seventt
         \hss
         \frenchspacing
         $Id: diploma_thesis.tex,v 0.20 1999/02/12 16:21:20 franke Exp $%
         \hss
      \else
         \hfil
      \fi
   }%
\endgroup

\jiji
I've made a alpha release of xdvik 22.01 with support for type1 fonts.
This version reads and renders the type1 fonts directly, there is no
gsftopk needed.  Once this is working well we can remove ... loads of
pk files.

The xdvik-t1 version will be maintainted separately from the normal
xdvik distribution until the code is more robust and complete.

There is no README in the tarball, this is all there is:

- It's a alpha release.  There are some broken things.
- This is xdvik, it can be easily used with teTeX and texk/web2c TeX
  installations.
- It can use type1 versions of any font, but the lookup algorightm is very
  simple at present: Using kpathsea look for a type1 font with the name
  we want.
  So when the dvi file wants cmr10 kpathsea looks for cmr10.pfa or
  cmr10.pfb and the acompanying cmr10.afm.  This means that this alpha
  version will be able to use all the bsr/y&amp;y type1 fonts since they are
  normaly stored in the texmf tree as cmr10.pfb and so forth.
- There is no anti-aliasing of type1 fonts.  There is some gc related(?)
  problem on screen depths deeper than 8 bits making the anti-aliased fonts
  come out as gray or multicolor blobs on the screen.  The code is in t1.c
  if anyone that knows X programming wants to look at it (this is a hint :-).
- There is a font metric problem with some glyphs the first time they are
  displayed resulting in the following glyph being printed on top of the
  previous glyph.  A refresh of the window fixes this.
  It almost looks as if the .afm files are buggy and t1lib corrects the
  metric when rendering the glyph the first time.

The next thing I'll be working on is making it understand Adobe postscript
font names and encoding things.

It's available at http://www.math.uio.no/~janl/xdvi/ as well as
ftp.tug.org:/tex/xdvik-22.01-t1-alpha.tar.gz

\indextipos
\indexdvik
\indexformatodvi

\jiji
\indexbox
\indexverb
 Is there a way for me to put an \fbox around a \verb?
\jaja
You are welcome to a package I wrote that is based on code.sty from CT
 AN.
The vcode.sty package can put a box around a verbatim listing, and als
 o
provides some control of the fontsize and alignment of the list, and l
 ine
numbers and so on. The syntax is like this:

\begin{vcode}{fnxb}
blah blah
\end{vcode}

The letters in the argument say make a frame, put line numbers on, use 
 the
extra-small font, and align the whole thing with the bottom line.  The
 re
are several other arguments.

There is a companion vcode.hlx for use with Otfried Cheong's Hyperlate
 x
package.  Not many of the arguments are implemented for html, however.

You can get the package from ftp://top.gso.uri.edu/pub/tex, where you'
 ll
find vcode.dtx and vcode.ins.

\jiji
Is the any latex2e package which could put both word and phonetic
symbol together? For example, something like below:

\indexphonetic
\jaja
This can be done with the ruby package, which comes as part of CJK. It
was designed for asian languages, but there is no reason why it can be
used for western script.  You will also want the tipa package, if you
want to use the phonetic symbols.  You would write \ruby{eat}{i:t} to
get i:t in a small font over eat.

\jiji
 I would like to invoke e.g.: (La)TeX,
 using some short key sequence for instance f6 instead the
default C-c C-c. It is possible?
 How it can be achieved in auc-tex+emacs2.02 ?
Which file should I edit?
\indexemacs
\jaja
;;If you do not want to use 'C-c C-c' or the pull-down menu "Command"
;(global-set-key [(control f5)] 'do-LaTeX)      ; LaTeX  the current file
;(global-set-key [(control f6)] 'do-DVIview)    ; DVIview  the current file
;(defun do-LaTeX ()
;   "LaTeX the curent file."
;   (interactive)
;   (TeX-command "LaTeX" 'TeX-master-file))
;(defun do-DVIview ()
;   "YAPview the curent file."
;   (interactive)
;   (TeX-command "View" 'TeX-master-file))



Insert those lines in your .emacs (or _emacs) file and uncomment them. FYI,
I'm using MiKTeX and NT Emacs. However, I beleive those should work on Unix
(or Linux) system with some minor revision.

But I found a problem with those. After I edited the .tex file from emacs, I
tried control-f5. It did not save the new buffer. It just compile the old
buffer again. If I use the pull-down menu, everything is OK.
\jaja
Of course you do not really want this in, say, c-mode, so you might
want to use something like

(define-key LaTeX-mode-map [(control f5)] 'do-LaTeX)

\jiji

Does anyone know anything about changing the the size of
global-string-size in bibtex?  I've had a look around and can't seem
to see anything about it.

Anyway the specifics are bibtex 0.99c in tetex-0.4 package, and the
error message is -

Warning--you've exceeded 1000, the global-string-size, for entry Pham:93
while executing--line 1183 of file abstractp.bst
*Please notify the bibstyle designer*

I have an abstract field and it often exceeds 1000 characters so
idealy I just want to be able to increase the size of
global-string-size.

\indexbibtex

\jiji
 I have a long document in LaTeX2e, with plenty of references, literature
 citations etc. I want to convert it to PDF. I have used dvips with the
 proper fonts and run the result through Acrobat destiller, which gave me a
 PDF file as expected. However, the PDF does not contain any reference
 information (which I have seen as hyperlinks in other PDF files).

 Can anybody advise me on the best procedure to produce cross-referenced PDF
 from the LaTeX source?

\indexpdf \indexreferencias
\jaja

Meanwhile I have found the hyperref package and used it as:

\usepackage[dvips=true,colorlinks=true]{hyperref}

It works mostly fine. There is, however, a bizarre problem:

Entries in the "table of contents" andf "list of figures" which are loner
than one single line and which were correctly split into two or more lines
before, are now no longer broken and result in very Overfull \hboxes.

\jiji
I've been using fullpage.sty for all of my LaTeX documents. The smaller
margins seem a lot more "normal" than the standard LaTeX margins, which
create a document where it seems that half of the page if filled with white
space. After seeing all of the warnings about leaving layout to the
xperts,
I wonder why the default creates such huge margins. Is that in keeping with
standard typographic conventions? If so, why does it look so strange to me.

\indexfullpage
\jaja

If I understand correctly, it's not so much that the margins are large as
that the width of a single line of text is small.  The human eye/brain is
more comfortable with a line width which does not force the eye to move very
far as it tracks along the line from left to right.  On the other hand, you
want a sensible amount of text, or the eye has to keep scanning back and
forward at the end of every short line instead!

Research has shown that a balance exists, usually described as something
like 10-12 words or about 60 characters per line, I believe.  The default
margins in LaTeX standard classes will provide roughly this line length when
using the default fonts.

Personally, I agree the defaults are overly large - not enough white space
is bad, but too much is distracting.  I usually change the margins to make
them smaller than the LaTeX default.

Hope that helps - if I'm completely off-track, would someone please correct
me before I'm laughed off the group?  Thanks :-)

\jiji
 Can anyone recommend a web site with a step by step guide to installing
 PostScript fonts in LaTeX? 
\indextipos \indexinstalacion 
\jaja

     http://www-theorie.physik.unizh.ch/~ichbin/texfonts/

\jiji
I would like a foreword on page ii
abstract on page iii
and toc on page iv - vi


I'm using \documentclass{report}, and I want pagenumbers to appear on my
abstract (as well as my foreword).

\indexnumeracion
\jaja
Perhaps the best thing would be to redefine the titlepage environment.
create a stylefile (mytpage.sty) with 

  \renewenvironment{titlepage}{
    \newpage\vspace*{\fill}}{\vspace*{\fill}\newpage}
  \newenvironment{forword}{\titlepage
    \section*{Forword}
    \addcontentsline{toc}{chapter}{Forword}}{\endtitlepage}

Then start your document with

\documentclass{report}
\usepackage{mytpage}
\begin{document}
\pagenumbering{roman}
\begin{abstract}
\addcontentsline{toc}{chapter}{Abstract}
....
\end{abstract}
\begin{forword}...\end{forword}
\tableofcontents
\clearpage
\pagenumbering{arabic}

\jiji
 I wrote a little Perl program (XFigchart.pl) that produces barcharts
 in XFig format.  It is easy to use, as anything that could be done in
 XFig (e.g. labels) is not performed by XFigchart.pl.  It simply creates
 the colored bars (flat or stacked, optionally 3D with shading).

 It may be helpful with making slides with LaTeX.

 It is freely (GPL) available at

    http://eda.ei.tum.de/~mcp/xfigchart.html

\indexxfig \indexperl \indexbarcharts
\jiji
\indexdoublespace
afaik, doublespacing.sty is a latex2.09 style file;
try the setspace.sty package instead. it is available
from the ctan in macros/latex/contrib/supported

\jiji
 Last week I posted a message asking how I could add a 5th itemize level into
 my latex document. I received the advice, to copy the relevant parts put out
 of latex.ltx into a sty file and make the appropriate variations. What I did
 precisely was to create a style file with
 \newcounter{enumv}
 \setlenght{\leftmarginv}{2cm}.
 
 To be honest, I did not understand the @enumdepth definitions in latex.ltx
 so I could not change these in my style file.
 
 When I compiled my latex document with my style file however, I still got
 the error message "too deeply nested".
 
 Can anyone give me more precise instructions as to what I need to define in
 my style file.

\indexdepth
\indexitemize
\jaja


You will have to redefine itemize in your style file. A logical way to do
this would be:

\def\itemize{%
        \ifnum\@itemdepth&gt;4\@toodeep\else\advance\@itemdepth\@ne
        \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
        \list{\csname\@itemitem\endcsname}%
                {\def\makelabel##1{\hss\llap{##1}}}\fi}

The four in the first line of the definition means that there are now five
levels of itemize. Now \itemize will not give errors any more about ``Too
deeply nested.'' After having done this, you will probably want to have
something like a dot or dash for your fifth itemize level. This can be
defined by adding

\def\labelitemv{+}

in your style file. This will cause the ``+'' to be used on the fifth
level of itemize. You can just write another symbol here. When you save
these definitions in a file fiveitems.sty, you should not get any errors
on the following .tex file:

\documentclass{article}
\begin{document}
\begin{itemize}
\item first
\begin{itemize}
\item second
\begin{itemize}
\item third
\begin{itemize}
\item fouth
\begin{itemize}
\item fifth
\end{itemize}
\end{itemize}
\end{itemize}
\end{itemize}
\end{itemize}
\end{document}
\jaja
This must be some impressive list!  Did you consider using sectioning commands
for the outer level?

Here's my attempt:

\@definecounter{enumv}                         
\def\enumerate{%
  \ifnum \@enumdepth &gt;4\@toodeep\else          % This line changed.
    \advance\@enumdepth\@ne
    \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
      \expandafter
      \list
        \csname label\@enumctr\endcsname
        {\usecounter\@enumctr\def\makelabel##1{\hss\llap{##1}}}%
  \fi}
\let\endenumerate =\endlist
\renewcommand\theenumv{\@Roman\c@enumv}    %
\newcommand\labelenumv{\theenumv.}         % Label is I. II. III. IV. etc
\renewcommand\p@enumv{\p@enumiv\theenumiv}

\jiji
I have just completed an alpha version of two Perl modules,
TeX::Kpathsea and TeX::Kpsewhich.  TeX::Kpathsea provides a Perl
interface to much of the Kpathsea library, and TeX::Kpsewhich
essentially implements the kpsewhich program as a Perl module, in
addition to providing an object-oriented variant of the same.

My intention is to write Perl versions of the mktex* scripts over the
next week or so using these libraries; these should be much faster
than the shell-script variants, and allow for the possibility of
better security, for example, having non-world-writeable font
directories which can be written to by a (secure) setuid Perl mktex...
program.

I *do not* intend for these Perl scripts to replace the shell
versions; it has already been ascertained that not everybody can be
assumed to have Perl.

Comments are of course welcome on the code and possibility of
improvements.

The code can be fetched from http://www.debian.org/~jdg, and is
released under the GPL.
\indexkpathsea \indexperl
\jaja
\jiji
I've tried to get double spacing in two ways: setting \baselinestretch and by
using setspace.sty.  Both techniques will also double space the text in long
section headings.

Is there a technique that avoids this?

Is there a relatively simple way of redefining the sectioning commands (e.g.,
\ section{...}) to fix this, perhaps by putting the text in a box of some
sort?
\indexdoublespace
\jaja
I got around this problem by using the environmental form of the
setspace.sty commands.

I surround the text I want doublespaced or other like so:

\begin{spacing}{2.0}
	text ......
\end{spacing}

That way, section, headings, etc. retain their single-spaced setting.

\jiji
in my strange new world of pdflatex, i seem to have broken
the dropping.sty package:
  \usepackage{dropping}
\indexpdf
\indexdropping
\jaja
I just had a look, and it takes an option for the driver:

\usepackage[dvips]{dropping}
You can declare 
\usepackage[other]{dropping}
to do things differently, but the dvips option apparently
has nothing to do with dvips!  Only for the availability of
scalable fonts or a maketexpk script.  So you may as well
say [dvips] even though you don't use it.
\jiji
I have used dropping.sty it with yinitas.  It may not be the best
solution, but I simply defined a new command in the preamble with the
following:

\indexyinitas \indexdropping

\newcommand{\yinit}{\usefont{U}{yinitas}{m}{n}}

This assumes that you have a file uyinitas.fd somewhere, I essentially
copied a file called uyinit.fd that I had from another source.  There
may be a suitable .fd file somewhere on CTAN, or you can roll your own.
I then used commands such as the following when I wanted a dropped
capital.  This worked sufficiently well for my purpose.

\dropping{3}{\yinit{} T}his 
\indexyinitas

\jiji
 I'm using the book class and want to add a footer, without messing
 up the running headers.  Does anyone know how I go about this?

\jaja

Read through the documentation of the package fancyhdr is probably the
best bet.

\indexfooter
\jiji
I'm trying to \include an .eps file made with xfig. there's only 1 small
problem. If I run the file through LaTeX it rotates the picture 90 degrees
counter clock-wise ... anyone have any suggestions about how to fix this ?

\indexxfig \indexeps \indexrotate
\jaja


Take portrait instead of landscape in the export menue of xfig.
\jaja
No, latex does not rotate it, you presumably want it rotating, so add
angle=90 (or angle=-90) to the optional arguments of \includegraphics.

\jiji
 I have a large number of tabulars for which I'd like
 identical column widths, so I'd like to be able to
 specify the desired width of each column.

\jaja
\indextable
\indextabular

  \begin{tabular}{@{}*{3}{p{5em}}@{}}

will declare 3 column, each 5em wide, unnecessary space (allocated for 
vertical lines) is removed by @{}.

\jiji

\jaja
&gt;Now I can do this with an empty row, like this:
&gt;  \hspace{2cm} &amp; \hspace{2cm} &amp; \hspace{2cm} \\
&gt;but this leaves an undesired vertical gap.

\begin{tabular}{p{2cm}p{2cm}p{2cm}}

And if all your entries fit within 2cm, all those entries 
are on a single line.

To replace "c" columns, i is best to have array.sty in action 
and do

\begin{tabular}{p{2cm}&gt;{\centering}p{2cm}p{2cm}}
 
\jiji
\indextable \indexlimits
I am using two column format and I have a table which exceeds the width
of the column.
\jaja

I ran into this problem. My solution was to change the font size
( ie use {\small }) for the table entries, but this was not good enough.
So I compile the table in a standaolone document, dvips-ed it to
a postscript file, then included the *.ps figure into my original document.
The advantage was that I could set the width to the desired pagewidth.

\jiji
 I prepare my lecture notes and handouts in latex.  One feature I would
 love to have is to selectively surpress the printing of some of the
 materials.  Something like a ''hide'' macro style would do.  Consider
 the following example:
 
 \usepackage[on]{hide}
 ...
 Q: Why is the sky blue?
 \begin{hide}
 A: Because someone painted it blue.
 \end{hide}
 ...
 
 When I latex it with the on switch, the answer part would be printed;
 but if a off switch is selected instead, the answer part would be
 ignored by latex and hence not printed.  With this setup, on means
 lecture note for me, off means
 handout for students.
 
 So my question: Does there exist such latex style?
\jaja
\indexhide
Yes; I just made one up.  But I changed the user interface a bit:
Call it hide.sty, and call it as follows:

\usepackage[answer,joke]{hide}
\newenvironment{answer}{\par\medskip\noindent\textbf{A:}}{\par}
% or whatever you wish your answer environment to look like

At \begin{document}, the answer and joke environments will be replaced
by the comment environment from the verbatim package.  To turn it off,
simply don't list the environment(s) that you don't want to hide.

The implementation is simple enough:

%% File: hide.sty
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{hide}
\RequirePackage{verbatim}
\DeclareOption*{\toks0\expandafter{\@hiding}
  \edef\0{\def\noexpand\@hiding{\the\toks0\@hide{\CurrentOption}}}
  \0}
\def\@hiding{}
\let\@hide\relax
\ProcessOptions

\def\@hide#1{
    \expandafter\let\csname #1\endcsname\comment
    \expandafter\let\csname end#1\endcsname\endcomment
}

\AtBeginDocument{\@hiding}
\jaja

comment.sty or morevrb.sty.

\jiji
\indexnewcommands \indexentries
 I'm trying to write a command to create index entries, where a name
 should appear in \tt in the index:
 
 \newcommand{\ixm}[1]{%
    \index{#1@\texttt{#1} macro}%
    \index{macros!#1@\texttt{#1}}}
 
 This works OK, unless I want to use it to define a page range:
 
 \ixm{GOODFIT|(}
   ...
 \ixm{GOODFIT)}

\jaja
\newcommand{\ixm}[2][]{%
   \index{#2@\texttt{#2} macro#1}%
   \index{macros!#2@\texttt{#2}#1}}

To be used like this

\ixm[|(]{command}
\ixm[|)]{command}

\jiji
\indexadornos \indexfinallinea
 Does anyone know how to insert a character in the end of a line (on the
 most right)
 Note the line has to be normal, I mean left adjusted

\jaja
  bla bla bla\hfill e
\jaja

\marginpar{X} probably.

To put all marginal notes on the right, but with the two-sided option 

%  Marginal notes are normally put on the outside of the page
%  if @mparswitch = true, and on the right if @mparswitch = false.

\makeatletter
\@mparswitchfalse % all on the right
\makeatother
\jaja

bla bla\nobreak\hfill e\break

The \break should be omitted if this is the end of the paragraph.

Without the \nobreak, TeX could break the line there and discard
the \hfill. The letter e would then end up at the beginning of the next
line. Without the \break, TeX could continue the line with additional
text. If the \break is placed at the end of a paragraph, there will be
and empty last line of the paragraph, causing an underfull hbox warning
and (possibly) unwanted vertical whitespace.

In LaTeX idioms:

bla bla bla\nolinebreak\hspace{\fill}e\linebreak

\jiji
In documentclass book I want to insert a large figure, larger
than linewidth. It should use the parmargin but it doesn't,
it uses space on the right hand side of the text. 

\indexfigure \indexadornos
\jaja

\hspace{-\marginparwidth}\hspace{-\marginparsep}\includegraphics{...}

If you don't want to insert this by hand after you know which page you 
land on, use the \label for the caption, and test with ifthen.sty...

\leftline{%
\ifthenelse{\isodd{\pageref{fig:wideone}}%
  {}{\hspace{-\marginparwidth}\hspace{-\marginparsep}}%
  \uncludegraphics{...}
}

\jiji
\indexfullpage
I've been using fullpage.sty for all of my LaTeX documents. The smaller
margins seem a lot more "normal" than the standard LaTeX margins, which
create a document where it seems that half of the page if filled with white
space. After seeing all of the warnings about leaving layout to the experts,
I wonder why the default creates such huge margins. Is that in keeping with
standard typographic conventions? If so, why does it look so strange to me.

\jaja

It probably looks strange because you are used to the pages generated by
word-processors, and by books which are printed on smaller sheets of
paper.  The large margins are to maximize readablity, the best way to
reduce them is to use a two-column class option.
\jaja
Standard typography says that a normal single column of text should be
between 1.5 and 2.5 alphabets wide (one rule of thumb).  This works out
to be about 45-65 characters of normal text.  Anything outside this
range is likely to get hard to read - it has to do with the ease of
following a line and finding the start of a new one.  Longer lines make
life easier in that it's a slight effort to find the start of a new
line, but longer lines make it harder in that it's tricky to follow a
*very* long line, and hard to find the start of the next line if the
lines are long.

Now then...  Way back when when typewriters ruled the Earth and people
still lived in caves, people used 1 inch margins on A4[1], foolscap
folio, and US letter paper.  This is easy to remember, and gives a
suitable column width with a normal typewriter - about 65 characters if
I recall correctly (10 characters per inch is typical from a
typewriter).  If you apply the same rule of thumb to (say) a 10pt
proportional fount like cmr10, you get far, far, far too many characters
across a single column.

A better solution to the `huge margin' problem is to use a multiple
column layout, or a larger base point size and possibly a wider fount.

The reason the standard LaTeX layout looks strange is that US letter
paper and A4 paper are both too wide for single column printing - it's
the fault of the paper rather than the layout.  The layout choses the
widest column width you can expect to get away with, but it's still too
narrow for the paper.
\jiji
\indexpdf

see http://www.tug.org/applications/pdftex/  for documentation on pdftex...
\jiji
\indexentries
 
 I am producing a book with Latex2e:
 \documentclass[fleqn,german,11pt,a4paper,twoside]{book}
 
 I would like to reduce the line spacing in the table of contents. I could
 not find any answer in the Latex companion or in othert literature. Setting
 \baselinestretch has no effect. 

\jaja

 Typesetting of ToC entries is controlled by commands named like
\l@section, \l@subsection, etc. which are defined in the class. The
tocloft package (CTAN in tex-archive/macros/latex/contrib/supported)
provides parameterized versions of these commands (and more), so you can
adjust the ToC typesetting to suit your purposes.

\jiji
\indexobeylines
is it possible in plain TeX to write a macro that reproduces the argument
with \obeylines turned on? I mean something like

\obeylinesmode{%
This is
printed in
three lines.
}

The naive version
\def\obeylinesmode#1{{\obeylines#1}}
doesn't work because the ^^Ms are turned into spaces already when the
argument is scanned.

I am aware that this is nearly FAQ 7.3 but it isn't since I don't want
\beginlinemode
This is
printed in
three lines.
\beginparmode

\jaja

\def\obeylinesmode{\begingroup
    \obeylines
    \GetObeyedLines
}
\def\GetObeyedLines#1{#1\endgroup}

The secret is to defer the reading of the argument until after the EOL's
have been made active. 

&gt;as suggested in Appendix E fo The TeXbook. I am looking for a macro with
&gt;an argument.

Well, \obeylinesmode doesn't take an argument, but it immediately
invokes one that does. And the syntax looks exactly the same.
\jaja
Right. If you look at it in the right way, this is like doing
footnotes when you want to make it possible to put anything
into a footnote. Therein lies the answer. The following is
simply a reworking of the plain footnote macro involving, in DEK's
words, some aftergroup trickery:

\def\obeylinesmode{% parameter #1 (the text) is read later
  \makelines}
\def\makelines{\vbox\bgroup\obeylines% and/or \obeyspaces, \bf or whatever
  \futurelet\next\lines}
\def\lines{\ifcat\bgroup\noexpand\next \let\next\llines
  \else\let\next\lnes\fi \next}
\def\llines{\bgroup\aftergroup\lllines\let\next}
\def\lnes{\lllines}
\def\lllines{\egroup}

\obeylinesmode{Ithink that I shall never see
A thing as lovely
As a flea.}
\jaja
One obvious simplification:

\def\obeylinesmode{\vbox\bgroup% Begin reading text
   \obeylines% or whatever
   \futurelet\next\lines}
\def\lines{\ifcat\bgroup\noexpand\next \let\next\llines
   \else\let\next\lnes\fi \next}
\def\llines{\bgroup\aftergroup\lllines\let\next}
\def\lnes{\lllines}
\def\lllines{\egroup}% Finally put it in the \vbox

\jiji
\indexlimits
 Subject: TeX capacity exceeded, sorry [save size=1000].

\jaja

In the case that you gave (partiailly quoted below) it is extremely likely
that you have some sort of macro loop.

\newcommand{\A}{stuff\B stuff}
\newcommand{\B}{stuff\C stuff}
\newcommand{\C}{stuff\A stuff}

which will lead to a stack overflow when you actually call any of those
macros.  Look very carefully at the macros on or near line 158 of your
input file.  No finite amount of memory could fix this problem.
\jaja

I presume this cut-off was for the posting only.  If your error did occur
there it means you have an overrun in your aux file -- usually due to
unprotected fragile commands in captions or titles.

You should rerun, but with 
\errorcontextlines=999
in the preamble, and quote at least 20 lines around line 158 of whatever
file is being read (probably thesis.bbl).

\jiji
 I would like to swap those pages that all odd pages are the right
 pages and all even pages are the left pages. Thats what I what. How
 can I do this?

\indexmargins
\jaja
Well, you could always swap the margins if you really want to with
\dimen0=\evensidemargin
\evensidemargin=\oddsidemargin
\oddsidemargin=\dimen0

before \begin{document}

or you could set them directly to the values you want.  Or you could
use geometry.sty for doing the whole page layout.
\indexgeometry 
\jiji
Beim Arbeiten mit dem 'Listings'-Paket habe ich vor, C/C++
Quelltexte einzubinden (was mit Listings bedeutend hübscher
aussehen kann als mit Verbatim...) und unter anderem gibt es int
meinen Files spezielle Zeilen, die mit einem Lattenzaun beginnen:
\indexdeutsch
\indexlistados 

#define  MAX_VARIABLES 100
#include &lt;iostream.h&gt;

und so weiter

Die Parameter sind derzeit
\lstset{basicstyle=\small
       ,commentstyle=\small\itshape
       ,keywordstyle=\small\bfseries\underbar
       ,nonkeywordstyle=\small
       ,blankstring=true
       %,flexiblecolumns=false 
       %,baseem=0.49         
       %,labelstyle=\tiny,labelstep=10
       }


Dieser Lattenzaun wird aber leider aus mir unverständlichen
Gründen nicht angezeigt! Zwar bleibt an der vorgesehenen Stelle
ein Freiraum, aber das Zeichen selbst kommt nicht? Weiß hier
jemand, wie man das beheben kann oder wenigstens, woran es liegt?

&gt;Es liegt am keywordstyle \underbar. Wenn man \underbar weg laesst,
&gt;dann funktioniert es wieder.


\jiji
\indexdate \indexdeutsch
 \date{\relax} vermeidet auch noch die fehlermeldung

\jiji
\indexpstricks
\documentclass{article}
\usepackage{german}
\usepackage{pstcol}% laedt auch `pstricks'!

\begin{document}

\psframebox[fillcolor=green,fillstyle=solid,framearc=.4]{%
  \huge Das ist ein Test in gr"un\dots}

\end{document}

\jiji
\indexerror \indexproteccion \indexdeutsch \indexreferencias

ich moechte gern eine Http-Adresse in eine Bildunterschrift packen, aber irgendwie weigert sich Latex, wenn ich das mit \url versuche.

Wie kann ich das hinbekommen ?
\jaja
Probier: \caption{\protect\url{blabla}}

Siehe auch DE-TeX-FAQ

==&gt; http://www.dante.de/faq/de-tex-faq/
(wird hier regelmaessig geposted)

Dort:
7.4.2 Wie kann ich innerhalb des Arguments von \caption, \section etc.
      Anweisungen wie \cite, \ref und \pageref verwenden, ohne Fehler 
      wie `! Argument of \@sect has an extra }.' zu erhalten?

\jiji
I need to decrease the space above and below equation, 
 \abovedisplayskip \abovedisplayshortskip 
\belowdisplayskip \belowdisplayshortskip are those amount of space.
However, the following doesn't seem to work, and the space remain the
same unchanged.

\jaja
These parameters are reset by the size-changing commands \normalsize,
\small and \footnotesize.  Unfortunately, they are set explicitly in the
definitions of those commands, so 

a) you can declare your sizes after \begin{document} and anywhere 
else where the font size has been set, like in floats.  Since displayed
equations tend to only occur in the main text, you may be able to set
them once.

b) the "proper" solution is to make a .clo file with different 
definitions of \normalsize, \small and \footnotesize, or a .sty file
that appends your settings to whatever the current definitions are:

\let\RegNormalsize\normalsize 
\def\normalsize{\RegNormalsize 
\abovedisplayskip\z@skip \abovedisplayshortskip\z@skip 
\belowdisplayskip\z@skip \belowdisplayshortskip\z@skip 
}

\indexecuaciones   \indexspace
\jiji
a) you need to start using latex2e instead of latex2.09.
b) the following works for me:

\documentclass[a4,12pt]{article}
\usepackage{setspace}% for ``double-spacing'', etc.

\begin{document}

% double space (actually one-and-a-half)
\onehalfspacing

Today is very sunny day. I want to go to picnic with my friends.
But It's very unlucky that my car is broken.

% normal space
\singlespacing

The reason why my car is broken is that it is rainy at yesterday's 
night. I left the windows of my car open all night.

\end{document}

\indexspace
\jiji
\indexspace  \indexfinallinea
 If one inserts explicit space into
a document, one should almost always arrange for it to change properly
with font changes. In this particular example, a stop-gap solution might
be \\[-\baselineskip], since baselines are nearly always changed when 
font sizes are changed (and an empty line typically takes up just one
baseline). 

As a more practical, example, if one is creating a table and
desired some extra vertical space (say every fifth line to aid the eye
in scanning across a line). The amount of space shouldn't be hard coded,
but should be in terms of quantities that change roughly in proportion
to the separation of the other lines (such as \baselineskip).

\jiji
How can I disable interpreting of two newlines as a paragraph end? 
Instead i would prefer to always use explicit \par as a paragraph break
in TeX/LaTeX 

\jaja

What I'd try is to change the newline character from category 5 (end of line)
to category 10 (space). 

So try:
\catcode char10=10
\catcode char13=10
\jaja
I'd recommend putting a single % into the offending line causing the
\par.

If you really insist, this should be something like
\catcode`\^^M=10
which makes a newline equivalent to a space.

Probably
\endlinechar=32
might also do the trick.

\indexfinallinea \indexcatcode
\jaja
\endlinechar=`\ %

\jiji
 I am using osa.bst in conjunction with revtex.cls (using LaTeX 2e).
 
 1. I have entered my refs in BibTeX .bib file. The article titles are
 entered in Upper and Lower Case in Normal Title Style. I did it that way
 [...] When I use revtex.cls and
 osa.bst the article titles are printed in Upper and Lower Case. HOWEVER,
 by looking at a recent issue of JOSA A (journal I am writing for) I find
 that the article title should be in lower case (as in a sentence).  Is
 there a problem with the osa.bst file?  If so, how to fix it?

\jaja

That sounds like a standard limitation of bibtex.  Generally there
seems to be two ways it can treat titles, the first is to convert them
to lower case, the second to leave them as entered.  The trouble with
the first approach is that it leads to situations such as an element
symbols such as `Yb' being converted to `yb', unless you know of the
problem and enter those things you don't want changed within braces:
{Yb}.  Because of this problem it is common for journal bst's to avoid
the case munging feature, this leads to your problem!  You could try
modifying your _personal_ copy of osa.bst, but does that really solve
your problem since the journal presumably has the original style.  The
section in plain.bst that does the case munging is the following (see
the `change.case').

FUNCTION {format.title}
{ title empty$
    { "" }
    { title "t" change.case$ }
  if$
}

Personally I prefer to enter the title in sentence format, using lower
case where possible, and then avoid case munging.

\jaja
\indexbib \indextitles
&gt; 2. I think there is a way to get the journal titles printed out as
&gt; abbreviations, even though they are entered in full in .bib file. E.g.
&gt; Vision Research in .bib file gets printed in Refs section as Vision Res.
&gt; Does anyone  know how to do this, and if so, could you please tell me
&gt; how to do it?

This is normally done by entering the journal name with a macro name
rather than in full.  For instance you could use the definition

journal = anp,

where the .bst has definition in it such as the following (taken from
prst.bst).

MACRO {anp} {"Adv. Nucl. Phys."}
MACRO {ap} {"Ann. Phys."}
MACRO {arnpc} {"Annu. Rev. Nucl. Part. Sci."}

There is clearly a limitation here, since it only works for macros
defined in the .bst and makes it harder to use the full title without
writing your own .bst to do so.

What I do to get around this is to have two extra .bib files which
define the macros.  One is called `full.bib' and the other is called
`abbrev.bib', obviously defining the macros with the full and
abbreviated version of the journal names, respectively.  In this case
the macros are defined as strings, the following are the definitions
from the start of abbrev.bib.

@string {ac = {Acta Crystallogr.}}
@string {advcat = {Adv. Cat.}}
@string {advmat = {Adv. Mat.}}
@string {advp = {Adv. Phys.}}

Then I can change between the full and abbreviated version of the
journal titles by simply changing the \bibliography command between
the two versions.

\bibliography{abbrev,main}

        or

\bibliography{full,main}

\jiji
For some program listings that are set in Helvetica (don't ask why), I'm
having to import the ' and " characters from another font in order to get
them upright rather than slanted.  (OT1 encoding in Helvetica apparently
doesn't provide upright quotes, and we're too far along in the project to
switch to LY1 encoding.)

This works correctly:

\begin{listing}                    % defined elsewhere
\catcode`"=\active
\def"=\textrm{\char34}
...
the listing
...
\end{listing}

However, if I try to move the \catcode and \def commands into the definition
of the "listing" environment, they don't work.  Apparently TeX has to
*execute* the \catcode before it can correctly *read* the \def.  What do I
need to do?

\indexcatcode \indexhelvetica \indexlistados
\jaja
Add the \catcode`"=\active line just before the definition
and \catcode`"=12 just after.

\jiji

I am trying to define an uppercase command which works on characters
defined via \charNN.  I have defined an input-&gt;output encoding scheme
which maps, via macros
	ä -&gt; \glyph@adieresis -&gt; \char228
	Ä -&gt; \glyph@Adieresis -&gt; \char196
and then I have set
	\uccode228=196 \lccode228=228
	\uccode196=196 \lccode196=228
Now I want to be able to uppercase and lowercase token lists.

It is clear to me why \uppercase{ä} and \uppercase{\char228} do not
work: TeX does not expand the arguments of \uppercase and a marco
token is mapped into itself.  But I had expected
	\edef\test{\noexpand\uppercase\char228} \test
to work, on the assumption that \edef would expand \char228 to it's
"underlying" character token.  But it doesn't!  Said another way, TeX
doesn't really treat "\char97" the same as "a".

How can I obtain the effect I want?
\indexcharcode
\jaja

\jiji
\author{David B.\ Wilson
    \and Catherine Gallagher
    \and Mark B.\ Coggelshall
     \and Doris L.\ MacKenzie}
\indexauthor \indexuppercase
\jiji
 
 I wanna assign the equation numberings with some additional
 
 characters, i.e. like following
 
 --------------- equation ---------------  (1a)
 --------------- equation ---------------  (1b)
 --------------- equation ---------------  (1c)
 --------------- equation ---------------  (1d)
 
 some other comment.....
 
 --------------- equation ---------------  (2a)
 --------------- equation ---------------  (2b)
 --------------- equation ---------------  (2c)
 
 I know that LaTeX give the equation number with automatically increasing.
 How can I solve this problem?
\jaja 

Assuming that you are using LaTeX2e, then use the amsmath package, and
you can use the subequations environment to do what you want. BTW all
these 'tricks' are documented in amsldoc.dvi which should be in any
standard distribution that has AMSLaTeX.

\indexnumeracion   \indexecuaciones
\jiji
 Is there a "nice" latex macro package to create headers for letters ?
 I tried fancyheadings, but it lacks features like designing a large header
 for the first page and small for all subsequent pages.
 

\jaja 

Can be tricky - if you do things the conventional way, you need to make
the header box large enough for your first page header on the first
page.  Unless you then play very silly buggers, subsequent pages have a
lousy page layout.

I get round the problem by re-writing the \address command (and the
\opening command, but that's a side issue).  One example is:

\address{%
  {\large \bfseries \ML@fromMAGline    
          Motorcycle Action Group \ML@up(UK\ML@up)\strut%
    \hspace{\fill}\ML@drawlogo}\\
          {\large \bfseries \ML@frombranchline 
         Bolton and District Branch\strut}\\
  {\normalsize      \ML@fromaddressline
         93 Not Really Road, Bolton, BL9 9XY\strut}\\
  {\normalsize      \ML@fromtelline     Tel 01234 567890\strut}\\
  {\normalsize      \ML@fromemailline   
         email \RMemail\strut\hspace{\fill}%
    }%
  }

The \ML@from&lt;thing&gt;line commands are defined to be fount selection
commands; \ML@drawlogo draws a logo; \RMemail prints my email address
(using stuff from the url package).  \ML@up lifts its argument a little
bit - it makes the (UK) look better if the ( and ) are slightly raised.

\indexcartas \indexheadings
\jiji
1) With option dvips: \usepackage[dvips]{hyperref}
   I get a LaTeX error message:
   \hyper@anchor #1-&gt;{\pdfmark 
                            [\anchor@spot ]{pdfmark=/DEST,linktype=anchor,Vi...

   Does anyone know why?

   With no options (default hypertex): no errors.
  
\jaja
\indexhyperref \indexdvips
 This could potentially be caused by the presence of a hyperref.cfg
 file that conflicts with the dvips option.  Check for the presence of
 such a file on your system somewhere.
 

Yes. Exactly.

\jiji

I don't know if there's a more complete online manual for LaTeX, but I
find "Hypertext Help with LaTeX" which can be found at any of these
mirror sites
http://wwwsyseng.anu.edu.au/~sito/latex/mirror.html
to be quite useful for quick reference. Of course it's faster to access
if you download the tarred version and install it on your system.
However, for serious work I cannot live without my "LaTeX Companion".

\indexhelp
\jiji

2 documents about fonts and font usage may have come with your LaTeX
distribution: fntguide.dvi and simple-nfss. Additionally, you could try
the TeX Fonts Guide web page
http://www-theorie.physik.unizh.ch/~ichbin/texfonts/
\indexfonts
\jiji
    Section headings should be typeset without hyphenation but
unfortunately the standard LaTeX classes don't do that. This can be
fixed by either redefining the sectioning commands in a package, or a
quick hack is to do:

\section[toc entry]{{\protect\raggedright text heading}}

which will work provided no word in the text heading is wider than a
line.

\indexsection   \indexhyphenation
\jiji
 But then I face the following problem. Doing this, I would have four
 different figure captions (figure 1, figure2, figure 3, figure4) on each
 of the four pages with corresponding entries in the table of contents
 (list of figures). I would rather have that the first page caption say
 ``Figure 1: The Questionnaire,'' with the following three pages caption
 saying   ``Figure 1: The Questionnaire (contd),''  something similar to
 what the longtable environment does with the captions. This way, I would
 also hope to see only one entry in the List of Figures.
 
 So basically, I guess, what I am looking for is a way to play with the
 figure counters.
\jaja 

    The ccaption package (CTAN
tex-archive/macros/latex/contrib/supported) provides a "continuation"
caption which will do what you want. (That is ccaption with double c).

\indexcaption    \indexcontinued
\jiji

    The table environment puts all its content on a single page, no
matter if it runs off the bottom. The supertabular environment is
designed to break a long table across pages. You use one or the other,
but not one enclosed in the other. So the short answer is: don't use
supertabular within table.

    You might want to take a look at the xtab package which reduces some
of the infelities of supertabular.

\indextable \indextabular \indexxtab
\jiji

This is almost certainly a bug in LaTeX, due to it not properly handling
a feature of TeX.  It may arise in other contexts.  I will explain.

The macro
    \def\once
      {\advance\count0 1 \csname xxx\number\count0 \endcsname \once }
is of course recursive.  It creates an infinity of control sequences.

If called outside of a group, \once will cause TeX to bomb, because
TeX runs out of control sequence names.

If called inside a group, \once will cause TeX to bomb, because it runs
out of save space.  Try it and see, if you don't believe me!

Why is this?  Because \csname ... \endcsname has the side effect of
causing the formed control sequence, if otherwise undefined, to be set 
to \relax.  This assignment is restored at the end of the group, if
made in a group.  (By the way, this is a way of making assignments in
the mouth of TeX.  A dirty trick of course.)  The save stack is where
such reassignments arestored, so they can be restored.  Hence the
bombing.

What does this have to do with the bibliography problem?
Well, LaTeX uses \csname ... \endcsname to form control sequences as
it processes the "aux" file.  And so it bombs like the second use of
\once if the bibliography is large enough.

This problem can be solved by confining the side-effect to a group.
For example, it the LaTeX macros had the fragment
        \def\buggy#1{\expandafter #1\csname}
        \def\doit#1{\buggy\dotheitem xx: #1\endcsname}
        \def\dotheitem #1{\gdef #1{\undefinedref #1}}
then we would get the error.  But if we replace \buggy by
        \def\safety#1{%
            \begingroup
            \expandafter\endgroup
            \expandafter #1\csname
         }
then we would not get the error.  You see, the restoration occurs within
the tiny little group, inside \safety.

All this, except the application to LaTeX biblographies, is explained in
my article in Baskerville 4(1) 1994), pages 16--17.  Baskerville is the
jounral of the UK TeX Users Group.

\indexerror \indexbib \indexmacro
\jaja

This is not a bug in latex. (The csname behaviour is a mis feature of
tex, but that is another story) 

On a normal sized tex installation, it is possible to have several
thousand cross references accessed via csname. This is enough for the
vast majority of documents (and for the rest you can make a bigger
tex).

If the lookup tables for cross references were implemented via token
lists rather than via csname, latex would be orders of magnitude
slower, for no apparent gain.

\jiji
Every now then I have these long displayed equations 
and I manage to fit them on a single line by using 
a small font. 
ie 
\begin{small} 
 \begin{equation*}
  Long = equation 
 \end{equation*}
\end{small} 
 
When I do this, the text following the equation 
has a tiny indentation, not a paragraph indentation 
as I dont leave a blank line. 

Has anybody noticed this? 
Is there any fix for this?  
\jaja

look in a recent ltnews for \ignorespaceafterend
\jaja
It is probably the space (really end-of-line) following 
"\end{small}". Just comment it out: 

\begin{small} 
 \begin{equation*}
  Long = equation 
 \end{equation*}
\end{small}% 

\indexecuaciones  \indexspace
\jiji
Put
	\usepackage{rotating}
near the start of the document. Then do:
	\begin{sidewaystable}{col_specifiers}
and
	\end{sidewaystable}

instead of the normal \begin{table}{col_specifiers} and \end{table}.
{col_specifiers} should be the same as with the "normal" table.

The effect is very beautiful. I find the previewer YAP cannot display 
 or
print such tables properly, but GSView has no problem after the docume
 nt
is converted to PostScript with DVIPS. (I'm using the MiKTeX 1.2
package.)

\indexrotate \indextable
\jiji
dirty, but working:
\renewcommand{\thepage}{}
\indexnumbering
\jiji
&gt;unprocessed floats then generate a page break and flush all floats, and
&gt;otherwise continue the output as normal.

placeins.sty

(placeins.tex is a plain TeX equivalent)
\jaja

Donald Arseneau has a command to do this called flushfloats (I think)
he's probably hidden it in contrib/other/misc somewhere...

\indexflush   \indexfigure
\jiji

 I'm working on my thesis, using the report class in LaTeX2e.  I want to
 have running headers with the chapter and section titles, so I'm using
 the "twoside" option and \pagestyle{headings}.
 
 The problem is, I've got some sections with very long titles which
 overrun the page margins in the headers.  I've tried substituting a
 shorter section title in the header using \markright, e.g.
 
         \section{Long section title causing header to overrun margins}
         \markright{\uppercase{\thesection\ short title}}
 
 This works...sort of.  The original, long title is used on the page
 containing the section command, while the short title is used on
 subsequent pages.
 
 I'm guessing that \markright allows one to manipulate the heading, but
 only if no marking commands have been called yet for the current page.
 How can I overcome this restriction?
 
 BTW, I have looked at the relevant sections in the LaTeX Companion, but
 am generally more confused for doing so.  I have looked a bit at the
 fancyheadings package, but I'm not sure that it will solve the problem.

\jaja
\indextitles \indexsection
You can specify a short version of the title for the headers and the
table of contents in the optional argument of the \section macro:
  \section[short title]{long title}
\jaja

If you do 

\sectionmark{short}
\section{Long section title}
\sectionmark{short}

you run the risk of the page break happening after the first
sectionmark.  I don't know if this is necessarily a problem,
but you can ensure they stay together with:

\section[Long section title] {\sectionmark{short}Long section title}
\sectionmark{short}

\jiji
&gt;1. insert a ps picture in latex file, remember something like
&gt;   \psfig, but don't remember the exact and how to define the size
&gt;   and position etc.

psfig is old and rather buggy.  suggest:

  \usepackage{graphicx}

  \includegraphics[width=&lt;whatever&gt;]{blah.eps}

\indexpsfig   \indexgraphicx
\jaja
Put
  \usepackage{graphicx}
in the preamble and then
  \begin{figure}[htbp]
    \centering
    \includegraphics{filename.eps}
    \caption{...}
    \label{...}
  \end{figure
You can use the optional argument to specify width (and other things)
    \includegraphics[width=10cm]{filename.eps}
Get the file epslatex from CTAN. This is a very good documentation:
  CTAN/info/epslatex.{ps,pdf}

\jiji
 Can I use \caption for tabular? I tried but it turned out an error.
\jaja
no; captions are for floating figures and/or tables.  if you want a
caption under a tabular environment, the usual thing to do would be

  \begin{table}
    \begin{tabular}{....}
    ....
    \end{tabular}
    \caption{behold, a table}
  \end{table}

\indexcaption   \indextabular 
\jiji
May be the following helps

==&gt; http://www.ensta.fr/~diam/latex/contrib/

(it's PStricks not Metapost).

\indexuml
\jiji
 In portuguese, when someone is speaking the line starts with ---,
ike:
   --- I don't think so.
 I want to know how to setup and environment to add --- to the begin of
 every line. It's not just using \begin{itemize} and \item[--- ],
ecause the
 spacing must be the same as standard text.

\indexdialog   \indexparagraph
\jaja
Here is an environment to add an em-dash (`---' in LaTeX source) to th
 e
beginning of every PARAGRAPH.  I don't know how to do every line, but 
 I
think you want every paragraph instead of what you asked for.  It's no
 t
very TeX-like to have lines be significant in this way in a source fil
 e.

I'm not sure whether you want the usual paragraph indentation before t
 he
em-dash.  Uncomment the \setlength command and specify the space you
want before the dash there, if you want to change it from the norm for
the surrounding document.

\newenvironment{portugesedialogue} {%
  % \setlength\parindent{0pt}
  \everypar={---}%
  }{}

\jiji
 I've got the following problem: I need to use some accents (like \'e) in a
 tabbing environment. Unfortunately, \` and \' have another meaning in such
 a context, therefore, \'e doesn't work. \'{e} doesn't work either.
\jaja
Every description of the tabbing environment (which one should almost
always rather replace by a tabular) should have this.

If I remember correctly, try something like
\a'e or \a`e

\indextabbing   \indexaccents
\jiji
I'm having the following silly problem for which I can't find the
solution:
I have a text with figures as follows:
bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla.\\
\begin{figure}[bt]
...
\end{figure}
bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla
\jaja
You probably need to write something like (note the blank lines):

... bla bla bla.

\begin{figure}[bt]
...
\end{figure}

\noindent % if you want the next paragraph to be flush left, otherwise
ignore this line.
bla bla ...

Alternatively, if you really need the figure environment and text to b
 e the
way you already have it, try (note the "%" after \end{figure}):

... bla bla.
\begin{figure}[bt]
...
\end{figure}%
bla bla ...

\indexparagraph   \indexfigure
\jiji
 When I have a parbox in tabular environment the top line touches the top
 of the letters. Is it possible to avoid this?
\jaja
How about a \vspace*{2mm} at the beginning of the parbox content?

TeX boxes tend to fit exactly without space. This sometimes is not the
nicest thing especially in tables.  For normal table lines I use
\strut -- if the original is not enough I define one myself like:

\newcommand{\Strut}{\vrule width 0pt height 1.1em depth 0.5em} 

This will make an invisible line of 0pt width but the defined height
and depth according to thedefinition. Since it's defined with "em" it
will scale with the used fontsize.

\indextabular \indexspace \indexadornos
\jiji
I use hyperref to generate hyperlinks in the index when generating
pdf. This works well, appart in the following cases:
- when a visual directive is used like \index{foo|textbf}
- when specifying ranges, like \index{foo|(} ... \index{foo|)}

\jaja
* Use generic markup:
  \newcommand*{\mainentry}[1]{\textbf{\hyperpage{#1}}}
  \index{foo|mainentry}

* With makeindex I do not see a simple possiblity.
* Avoid page ranges:
  * No \index{foo|(}...\index{foo|)},
  * makeindex -r

Or, _if I knew_ how to split num1--num2 in two different number
arguments, I could do something like this:

\index{foo|(hyperrange}
\index{foo|)}

and the define this:

\newcommand{\hyperrange}[1]{\firstnum{#1}--\secondnum{#1}}

\indexpdf \indexhyperref
\jiji
I would like to include a program listing as an appendix.  I can use the lgrind
package to format the listing nicely.  The problem is that it is a long
listing and so it would be good to rotate and shrink the pages and then put two
pages on single piece of paper.  How can this be done?  Can this
be done within a single document?  
\jaja
I prefer to include listings in fixed width font as that is
how the compiler reads them.  To do that the following works well:

\documentclass[11pt,twoside]{report}
\usepackage{verbatim}
\usepackage{lscape}
\usepackage{multicol}

%when ready for section containing listing do this:
\begin{landscape}  
  \begin{multicols}{2}
\section{Code Listings}
  \subsection{{\tt file1.c}}
      {\tiny
    \verbatiminput{src/file1.c}}

\indexlistados 
\jiji
I use Itemize in Tabular. Because of that Itemize cannot directly placed
in a table, I use Minipage as embedding part. This is disadvantageous
since I have explicitly to declare the width of each column and it's
unflexibly.
Now I'm searching for a more simple solution. It was well if the
columns' width could be implicitly calculated of the common table width,
that is e.g when the linewidth fluctuates.
\jaja

Someone already pointed out an answer for using \itemize in a tabular,
but your complaint about setting the width has me confused.  You have to
set the width for all p-type entries, and once you do that, your minipage
can use the same width.

I should mention that the solution works with the tabularx package
which makes variable-width p-type columns:

\usepackage{tabularx}

\makeatletter
\newcolumntype{I}{%
 &gt;{\minipage[t]{\linewidth}\let\\\tabularnewline
    \itemize
       \addtolength{\rightskip}{0pt plus 50pt}% for raggedright
      \setlength{\itemsep}{-\parsep}}%
 X% &lt;--- instead of "p{width}" 
 &lt;{\@finalstrut\@arstrutbox\enditemize\endminipage}%
}
\makeatother

\begin{document}
..

\begin{tabularx}{\linewidth}{lXIr}


But if you have many very short items, you will still get a lot
of white space.  The way to put a series of narrow items in a single
tabular cell is with nested tabulars or a {tabbing} inside a minipage.

\begin{tabular}{ll}
Test &amp; 
  \begin{tabular}{@{$\bullet$\enspace}l@{}}
   doe\\
   rae\\
   me\\
   fa\\
   so\\
   la\\
   tee
  \end{tabular}
\\
..
\end{tabular}

If you need enumeration, you have to declare your own counter (or use
one like "enumiii").

\setcounter{enumiii}{0}
\begin{tabular}{ll}
Test &amp; 
  \begin{tabular}{@{\refstepcounter{enumiii}\theenumiii.\enspace}l@{}}
   doe\\
   rae\\
   me\\
   fa\\
   so\\
   la\\
   tee
  \end{tabular}
\\
..
\end{tabular}

\indextabular \indexitemize
\jiji

 Looks like I am doing something here that latex does not like... and the
 result is that I am not happy... here goes...
 
 1. I want the page number in the table of contents to be on the top
 right. the table of contents is 3 pages.
 
 2. I used the myheadings pagestyle with markboth{}{} and I got the page
 numbering on the top right everywhere except the first page of the TOC
 whre it came on the bottoem center.
 
 3. I then tried using the fancyhdr package with \cfoot{} but even that
 didnt remove the page number from the bottom center of the first page of
 the TOC.
 
 4. I the used the nopageno package along with the fancyhdr package. The
 nopageno package is working in the sense that there are no page numbers
 anywhere. Then I used fancyhdr to put page numbers on the top right.
 Once again, this works everywere except the first page of the TOC. Page
 2 and 3 of the TOC are ok.
 
 5. It seems that fancyhdr package has no effect on the first page of the
 TOC if the TOC is more than one page long.
 
 If anyone can suggest how I might be able obtain page number on the top
 right of the first page of the TOC, would be wonderful !!
 
 I am trying to use the tocloft package without much success...

\jaja
\usepackage{tocloft}
\renewcommand{\cftaftertoctitle}{\thispagestyle{myheadings}}
or variations of that.
\indextableofcontents   \indexnumeracion
\jiji

 I manage my references with BibTeX together with the
harvard.sty-package. Whenever I try to use a command provided by this
package in a headline, I get an error message. For example

\section{\citeasnoun{Pfann:89}}

produces

! Argument of \@sect has an extra }.
&lt;inserted text&gt;
                \par
l.42 \section{\citeasnoun{Pfann:89}}

\indexbibliography   \indexsection  \indexprotect
\jaja
Try \section{\protect\citeasnoun{Pfann:89}}

\jiji
 Can someone tell me how to get that little degrees symbol?
 I'm specifying temperatures in a document. I've check the
 FAQ and am a newbie.

\jaja
Well, you can use \circ (pg. 122 in Kopka) as

$34^{\circ}$

\indexdegrees
\jaja
\usepackage{textcomp}
...
90\textdegree % for angles
20\,\textcelsius % for temperatures

\jiji
 I'd like to send out the same letter to many different people.  Does anyone
 know how I could use LateX to  do mail merge?
\jaja
The mailing package on CTAN
\indexmailmerge
\jaja
textmerg.sty is very useful for printing circular letters and so
on. Is it also possible to print all entries of a database aligning
the corresponding entries using the tabular environment (LaTeX2e)?

I attach a database example (file.dat) and a latex file (db.tex).
The latex file shows in the upper part what I want to do but can't,
and in the lower part (commented out) what I don't want to do but
can.

Thank you in advance!
Horst Gwinner

--------------4A2C9E2941CDCE683F59C93C
Content-Type: text/plain; charset=us-ascii;
 name="file.dat"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="file.dat"

Mike
Piff
University Lane 23
Sheffield

John
Miller
Stadelheimstreet 4
Muenchen


--------------4A2C9E2941CDCE683F59C93C
Content-Type: application/x-tex;
 name="db.tex"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="db.tex"

\documentclass{article}
\usepackage{textmerg}

\begin{document}

\Fields{\Forename\Surname\Street\Town\EmptyLine}
\begin{tabular}{llll}
\Merge{file.dat}{%
\Forename &amp; \Surname &amp; \Street &amp; \Town \\
}
\end{tabular}

%\Merge{file.dat}{%
%\begin{tabular}{llll}
%\Forename &amp; \Surname &amp; \Street &amp; \Town \\
%\end{tabular}
%
%}

\end{document}

\jiji
However, when I click on it, the link takes me to fig-a instead of fig-b.
If I comment out the statement \setcounter{figure}{0},
then everything works just dandy. But I really want 
my figures to be labelled starting at 1.1 for section 1, 
starting at 2.1 for section 2, etc.
[...]
\jaja

\@addtoreset is your friend.

Yours sincererly
  Heiko &lt;oberdiek@ruf.uni-freiburg.de&gt;

PS: Your example rewritten:

\documentclass[dvips,12pt]{article}

\usepackage[colorlinks]{hyperref}
\usepackage{graphicx}

\renewcommand{\theequation}{\thesection.\arabic{equation}}
\renewcommand{\thefigure}{\thesection.\arabic{figure}}

\makeatletter
\@addtoreset{equation}{section}
\@addtoreset{figure}{section}
\makeatother

\begin{document}

\section{first section}

\begin{figure}
  \centering
  \includegraphics{fig-a}
  \caption{figure a.}
  \label{fig:fig-a}
\end{figure}

Hello World

\section{second section}

\begin{figure}
  \centering
  \includegraphics{fig-b}
  \caption{figure b.}
  \label{fig:fig-b}
\end{figure}

In figure \ref{fig:fig-b}, you see that...

\end{document}

\indexfigure \indexhyperref
\jiji
 I have a postscript font for a non-roman script.
 I have the following files.
 font.pfa
 font.vf
 font.afm
 font.tfm
 font.map
 *.sty (a couple of them)
 *.tex (a few of them)
\jaja
1. Where do I need to put these files.


Let's assume the maker of this font is xyz. Create
directories as given and put the files in them:

font.pfa goes in ~/texmf/fonts/type1/xyz

(If you get .pfb fonts instead, they go here too.)

font.vf goes in  ~/texmf/fonts/vf/xyz
font.tfm goes in ~/texmf/fonts/tfm/xyz

There is no place for .afm files because TeX systems don't use them
directly. Keep it safe though because it belongs to the .pfa

font.map goes in ~/texmf/dvips/config

and you need to add a line to config.ps in that directory saying

p +font.map

Check that font.map contains a line saying something like

rfontname FontNameInFull &lt;font.pfa

Dvips won't work unless this is correct. If you want to work with 
pdflatex as well, you need to add a reference to the map file to
pdflatex's config as well, the same way.

*.sty files go in ~/texmf/tex/latex/local 

or whatever directory you have nominated as the place you keep 
local/personal additions to your installation (TeX Live 4 
suggests ~/texmf.local, for example).

*.tex files go in the same place if they are a part of the font
distribution. If there are many .sty and .tex files, create a 
subdirectory called font within the local directory and put them 
there.

2. Is there anything special about compilation I need to know.

Only (critical!) to remake your index. Run one of

   configure --update-fndb
   maketexlsr
   texhash 

or whatever the indexer is called in your installation (see your
documentation). Until you do this, your new files will not be 
usable by LaTeX.

\indextipos
\jiji
 For a book I am writing I defined a new environment, called "example."  It
 is not a theorem-like environment, but an ordinary environment.  Anyway,
 I'm having trouble referencing it.  I defined a counter to go with it, so
 I assumed that if I gave a label to the environment, as in
 
 \begin{example}\label{ex:1}
 ...
 \end{example}
 
 and then later used \ref{ex:1}, that this would work.  It doesn't.  It
 compiles fine, but the example numbers on the the references are all
 wrong.
 
\jaja
Are you using \refstepcounter in the preamble to the environment?

\indexlabels   \indexenvironment
\jiji
http://hutchinson.belmont.ma.us/tth/

I consider this one to be the best.  (I've tried almost all of them.)
It runs VERY quickly, and in my opinion gives the best results.

I've got a short Web page on tth, giving a quick intro and some
tips.  If you are interested, go to my general LaTeX page,

   http://heather.cs.ucdavis.edu/~matloff/latex.html

scroll down to the section titled "Programs to convert LaTeX to
HTML (not a complete list)," and click on the tth link.

\indexhtml
\jaja
To be sure, it is very good if you are prepared to limit yourself to a
subset of LaTeX/TeX markup. I much prefer a system that does not limit 
me in any way, and is completely configurable to produce eg XML
instead of HTML. Which means TeX4ht, the only system that you can be
_sure_ will understand your source files full of catcode changes.
\jaja
TeXLive &amp; 4allTeX CD's
CTAN
http://www.cis.ohio-state.edu/~gurari/TeX4ht/mn.html
\jiji

 I have a problem with TeX exceeding its memory capacity (or most
 probably, myself trying to exceed my TeX knowledge). First Let me
 describe the problem, as there might well be different solutions to
 it. I'm trying to write a macro that formats the kind of diagrams that 
 describe the time behaviour of signals in electronic data
 sheets. Given the following input:
 
 \begin{tabular}
       \signal{XSUS\_G}          {-........-----}
       \signal{XPR\_U}           {.-----........}
 \end{tabular}
 
 I'd like to get:
 	__                  __________
 XSUS_G	  \________________/
            __________
 XPR_U   __/          \________________
 
 for drawing I'm using pstricks, but I'm considering switching to
 metapost.

\indexmetapost \indexelectronics
\jaja
Using pstricks for this job seems to be an overkill.
The cleanest and most efficient (and even simplest?) approach is
  a small special signals font which handles / and \ via ligatures.
  (See below).
But even without that
  it should suffice to use rules for the horizontal bars and
  a slash and a backslash for / and \

In this case, instead of recursion I would use active characters . and -
The first appearance in a row would insert \ or /
 and redefine . and - accordingly.
At the beginning . and - must have a special meaning to avoid
 a starting \ or /.

\begingroup
\catcode`\. \active \catcode`\- \active

\gdef\signals {\catcode`\. \active \catcode`\- \active
               \let . \startdot \let-\startbar }
  \gdef\startdot {\let-\firstbar \let .\lowbar \lowbar }
  \gdef\startbar {\let.\firstdot \let -\highbar \highbar }
  \gdef\firstdot {\let-\firstbar \let .\lowbar \downslash \lowbar }
  \gdef\firstbar {\let.\firstdot \let -\highbar \upslash \highbar }
\endgroup

%% The following definitions are crude.
%% They do not fit together
%% Moreover, for better efficiency they should by stored in boxes
%%     with \setbox and called with \copy

\def \downslash {$\backslash$}
\def \upslash {/}
\def \highbar {$\overline{\phantom/}$}
\def \lowbar {$\underline{\phantom/}$}

Test: {\signals ..-.--..---../-- }

%%%%

But now to the optimal ( I think :-) solution:

%% signals.mf %% the MetaFont code

font_size=12pt#;
mode_setup;

D# :=  3pt#   ;  % depth
H# :=  9pt#   ;  % height
W# := 10pt#   ;  % width
S# :=  8pt#   ;  % width of slash
p# := .7pt#   ;  % pen

define_pixels ( D,H,W, S,p ) ;

ligtable ".": "-" |=:| "/" ;
ligtable "-": "." |=:| "\" ;

beginchar (".", W#, H#, D# );
   pickup pencircle scaled p ;
   draw (0,-D)--(W,-D);
   endchar;

beginchar ("-", W#, H#, D# );
   pickup pencircle scaled p ;
   draw (0,H)--(W,H);
   endchar;

beginchar ("/", S#, H#, D# );
   pickup pencircle scaled p ;
   draw (0,-D)--(S,H);
   endchar;

beginchar ("\", S#, H#, D# );
   pickup pencircle scaled p ;
   draw (0,H)--(S,-D);
   endchar;

end
%% end : signals.mf %%


%% test.tex :

\font\signals signals at 12truept

Test: {\signals ..-.--..---../-- }

\end

\jiji

 Does anybody know of a macro (package) which allows you to perform
 character substitution/deletion on its argument?   A typical things I'd
 like are to have calls
 [] 
 which would work so that
 \filterspaces {remove the spaces from this}
 \replacespaces {replace the spaces in this}{_}
 would produce
 removethespacesfromthis
 replace_the_spaces_in_this
 even when used inside other macros.

\jaja
This is really not too difficult,
as the followin fully expandable solution shows:

\def\replacespaces #1#2{\start {#2}#1 {\replacespaces} }
\def\take #1#2 {\ifx \replacespaces#2\expandafter\stop
    \else #1#2\expandafter\take\fi{#1}}
\def\start #1#2 {\ifx \replacespaces \expandafter\stop
    \else #2\expandafter\take\fi{#1}}
\def\stop #1{}

% Some examples

\message {\replacespaces {Eins Zwei Drei Vier}_} 
\message {\replacespaces {Eins Zwei Drei Vier }_} 
\message {\replacespaces {Eins Zwei Drei Vier}{}} 
\message {[\replacespaces {Eins}{_}]} 
\message {[\replacespaces { }{_}]} 
\message {[\replacespaces { Eins }{_}]} 
\message {[\replacespaces {}{_}]} 
\end

\indexreplace
The \ifx in \start is incomplete (I think, you don't 
want to compare \replacespaces with \expandafter).
It seems to be rubbish of a previous version, because
the "end" check is done in \take.

\def\start #1#2 {#2\take{#1}}

\jiji
 1. I want to capitalize the heading of the Abstract and References
 sections. (I want "REFERENCES" instead of "References".)  I decided to
 use \section*{ABSTRACT} for the abstract. 
\jaja

\renewcommand{\abstractname}{ABSTRACT}
\renewcommand{\bibname}{REFERENCES}

\indexrename  \indexabstract \indexbibliography
\jiji
I'm trying to create a table which has in one of the columns an eps 
graphics.  This if the latex:

\begin{figure}[h]
  \begin{center}
     \begin{tabular}{|c|c|p{10cm}|} \hline
        name &amp; symbol &amp; description \\
        \hline\hline
        state &amp; \epsfig{file=state.eps,width=1cm} &amp; A discrete state, as
used in Petri nets.  Each state can hold 0 or more tokens, indicating
whether or not the state is active.  Tokens can be atomic symbols, or can
be associated with some data type. \\
        \hline
     \end{tabular}
     \caption{}
     \label{quan}
  \end{center}
\end{figure}

There will be more rows once I get it working.  The problem is that the
text is aligned with the bottom of the graphics, the above example
produces a three row table with the following effect:

 | name  |symbol| description
 ---------------------------------------------------------------------
 |       |  xx  |
 |       | xxxx |
 |       |  xx  |
 | state |      | A discrete state, as used in Petri nets.  Each state
 |       |      | can hold 0 or ... etc

I'd like to get the text so it is aligned vertically with the figure,
hence:

 | name  |symbol| description
 --------------------------------------------------------------------
 | state |  xx  | A discrete state, as used in Petri nets, Each state
 |       | xxxx | can hold 0 or ... etc
 |       |  xx  |
 |       |      |
\jaja
\indextable  \indexgraphics
What happens if you use something like:

\newlength{\awidth}

\newcommand{\mygraphic}[2][]{%
  \settowidth{\awidth}{\includegraphics[#1]{#2}}%
  \parbox[t]{\awidth}{\mbox{}\\\includegraphics[#1]{#2}}}

And then put \mygraphic{foo.eps} where you want it to be aligned.
\jaja

\jiji
There is a program named jpeg2ps which wraps PS level 2 or 3 around
JPEG. See
http://www.pdflib.com/jpeg2ps/index.html
\indexjpg
\jiji
I would like associate a label to each "case" in the
environment case.

Something like :


-------------------------------------------------------------
\begin{equation}
abs (x) = \begin{cases}
     		 x&amp; \text{if $x&gt;0$}\label{pos},\\
		-x&amp; \text{otherwise}\label{neg}.
	  \end{cases} 
\end{equation}

In the previous formulas, case~\ref{pos} corresponds to ...
--------------------------------------------------------------
\jaja
\indexenvironment \indexlabels
\jiji
 Is there an easy way by which i can get rid of the semicolon after the 
 figure
\jaja
\usepackage{caption2}
\renewcommand{\captionlabeldelim}{}

\indexdelimitor \indexlabels

\jiji
Have 5 figures gathered together over 2 pages:

1     |     4
2     |     5
3     |   Captiontext
-------------------

(even)| (odd) 
that is:
I use a book style: so it should be fig 1,2,3 on evenpage (left) and 
4,5,and caption on (righthandsite) oddpage

using:
include graphics (using graphicx package)

graphics are full width

What is the best way to keep the figures together and have 1 caption as 
layouted????
\jaja
\cleardoublepage

\includegraphics{1}

\includegraphics{2}


\includegraphics{3}

\clearpage

\includegraphics{4}

\includegraphics{5}

\includegraphics{6}
{
\makeatletter\def\@captype{figure}
\caption{stuff}
}
\clearpage

\indexlabels \indexfigure
\jaja

ccaption.sty, subfigure.sty

\jiji
    Does anyone know of a good exam template for latex?  Specifically, I
would
like to have blank x-y graphs next to problem statements.  Thank you for
any info.
\jaja

Here is what I use to produce a set of axes for -5 &lt; x &lt; 5 and -5 &lt; y &lt;
5:

\begin{picture}(165,165)
\multiput(0,0)(15,0){11}{\line(0,1){150}}
\multiput(0,0)(0,15){11}{\line(1,0){150}}
\put(73,154){$y$}
\put(153,73){$x$}
\thicklines
\put(75,0){\vector(0,1){150}}
\put(0,75){\vector(1,0){150}}
\end{picture}

\indexaxes \indexexam
\jiji

I have just installed

 macros/latex/contrib/supported/pdfslide

from

%% File: pdfslide.dtx Copyright (c) 1999, C. V. Radhakrishnan
%% &lt;cvr@river-valley.com&gt;
%%
%% This package may be distributed under the terms of the LaTeX Project
%% Public License, as described in lppl.txt in the base LaTeX distribution.
%% Either version 1.0 or, at your option, any later version.

This is a package for use with pdftex, to make nice presentation
slides. Its aims are:

* to devise a method for easier technical presentation.

* to help the mix of mathematical formulae with text and graphics
which the present day \textsc{wysiwyg} tools fail to accomplish.

* to exploit the platform independence of \TeX{} so that
presentation documents become portable.

* to offer the freedom and possibilities of using various
backgrounds and other embellishments that a user can imagine to have in
his presentation.

\indexpdf \indexslide \indexpdfslide
\jiji
I use the standard Book document class (not bothering too
much yet with the layout), with option (among others)
openright. The following occurs; The table of contents
starts on a right page but all chapters start on a left
page.

\jaja
change of page numbering from front matter to main matter?

try \cleardoublepage after the end of the table of contents.

the blank pages are inserted according to the page number of the
end of the end of previous chapter.  but if you change the page
numbering, the page number gets reset to a `start of chapter' value.
so you need to do the blank page before resetting the page numbering.

\indexbook  \indexadornos \indexcleardoublepage
\jiji
&gt;Trying to turn a font not designed for outlines (such as
&gt;palatino) into an outline font will not give good results, and anyway
&gt;could probably only be done by hacking the font code.
It is possible to make most Type 1 fonts into "outlines" without hacking
the font code: hack the PostScript "show" operator along the lines of
\special{! /show {false charpath gsave .25 setlinewidth stroke grestore}
def}
instead :-)
\indexoutlines  \indexfonts
\jiji
What is the variable to modify to set a desired line spacing in the
tabular environment (i have columns with multiple lines) ?
\baselineskip seems to have ne effect.

\jaja

You shouldn't touch \baselineskip in LaTeX anywhere.

\renewcommand{\baselinestretch}{1.1}

affects lines in paragraphs, including in a p entry of tabular.

\renewcommand{\arraystretch}{1.1} 

affects spacing of tabular rows: row spacing = \arraystretch*\baselinestretch

I imagine that you want widely spaced rows, but want single-spacing
within eact "p" column entry.

{\renewcommand{\baseleinestretch}{.6}
 \renewcommand{\arraystretch}{1.666} 
\begin{tabular}{lp{2in}}
here &amp; is a test with multiple lines in a paragraph cell of a tabular\\
test &amp; Test \\
here &amp; is a test with multiple lines in a paragraph cell of a tabular\\
test &amp; Test \\
here &amp; is a test with multiple lines in a paragraph cell of a tabular\\
\end{tabular}}

\indexbaseline \indexbaselinestretch   \indextabular \indexspace
\jiji
Howto obtain the "flash"-symbol for contradiction (in a proof)?
\jaja

The stmaryrd package has this symbol, they call it \lightning.

Now can any one tell me why the stmaryrd package is called the stmaryrd
package, where is St Mary Road ?

\indexflashsymbol
\jiji
How should I redefine the @makecaption definition in the book.cls to reduce
the font size in captions?
\jaja
I don't know why your trial with the caption* package went awry, but
the direct answer is:

\long\def\@makecaption#1#2{%
  \vskip\abovecaptionskip
  \begingroup \small %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \sbox\@tempboxa{#1: #2}%
  \ifdim \wd\@tempboxa &gt;\hsize
    #1: #2\par
  \else
    \global \@minipagefalse
    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  \fi
  \vskip\belowcaptionskip
  \endgroup %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
}

You could instead define \fnum@figure, as in:

\def\fnum@figure{\small \figurename~\thefigure}

This relies on the grouping provided by the figure environment.

It actually makes a bit more sense to redefine the float environment
so it declares \small instead of \normalsize, but that is defined in
latex.ltx rather than in the document class.

\indexadornos \indexcaption
\jiji
&gt;\pagenumbering{roman}
&gt;\maketitle
&gt;\tableofcontents
&gt;
&gt;\pagenumbering{arabic}
&gt;\chapter{Introduction}
&gt;\section{\tt Introduction}
&gt;
&gt;
&gt;but my toc page is still numbered in arabic. What have I done wrong?

Try:

\tableofcontents
\clearpage
\pagenumbering{arabic}

&gt; TeX uses the pagenumbering style which is in effect at the time
&gt; it ships out the page. Without the \clearpage, TeX doesn't
&gt; realise it needs to break the page until after it has read the
&gt; \pagenumbering{arabic}, and so you get arabic numbering on
&gt; your ToC. With the \clearpage, TeX gets the hint to ship out
&gt; the page (with roman numbering) before it gets to the command
&gt; switching to arabic numbering.
&gt; 

\indexnumbering  \indextableofcontents
\jiji

 I'm producing graph.eps file from graphics with the driver HP LaserJet
 5P/5MP. I include it in LaTeX file with "graphicx" package.
 
 Ideally, I would like two graphs to fit on one page. I tried this:
 
 \enlargethispage{2cm}
 \begin{figure}[h]
   \centering
   \includegraphics[clip,width=.45\linewidth]{fig1.eps}
   \caption{Negative S-SIMS ion mass spectrum of a chromium phosphate
    conversion coating on Al. Conversion time was 600~s.The sample was
    rastered 60~s over an area of 400~$\mu$m$^2$.}
   \vspace{5mm}
   \includegraphics[width=.8\linewidth]{fig2.eps}
   \caption{Negative FT LMMS ion mass spectrum of the same sample.
    The detection conditions were optimized for $m/z$ 90 -- 350
    ($T_{\rm gate} = 400~\mu$s). The analyzed area was about
    4000~$\mu$m$^2$.}
 \end{figure}
 
 Once I print this page, only the first fig is printed in its original size;
 the second does never appear.
 What could be the problem? and how to solve it?
 Both eps files can be viewed separately with GSVIEW.


\jaja
...
\setlength{\unitlength}{1cm}
\includegraphics[scale=0.6]{m00.eps}
...
Something like this usually works for me.
If you want to have both pics side by side try the minipage command

\indexenlarge  \indexfigure
\jaja
to have 2 figures with 2 captions in one figure environment you have to 
use the subfigure package.
&gt;&gt;er no, you can have any number of \caption commands in a figure
&gt;&gt;environment.

I this  case you could also enclose 2 figure environments in other 
evironment like minipage or center:

\begin{center}
\begin{figure}
\includegraphicx[....]{abc.eps}
\caption{..}
\label{..}
\end{figure}
\includegraphicx[....]{def.eps}
\caption{..}
\label{..}
\end{figure}
\end{center}

This will keep the figures on one page, even if this causes a overfull 
vbox.
\jaja

a center environment would have no effect on the float at all (it would
not center any graphic or text) but it would cause unwanted vertical
white space coming from the environment if the float should float to
another place. So you probably don't want to do that.

minipage would have an effect but it would stop the float floating.
If you don't want to allow it to float you may as well just use
\includegraphics directly not in a figure environment (the only purpose
of which is to allow it to float)
\jaja

&gt; \begin{center}
&gt; \begin{figure}
&gt; \includegraphicx[....]{abc.eps}
&gt; \caption{..}
&gt; \label{..}
&gt; \end{figure}
&gt; \begin{figure}
&gt; \includegraphicx[....]{def.eps}
&gt; \caption{..}
&gt; \label{..}
&gt; \end{figure}
&gt; \end{center}


Anyway, this is probably not what you want. It puts two floating
objects inside a center env. The floatings float away, and you're left 
with nothing inside "center". Use

\begin{figure}
  \begin{center}
    ... whatever ...
    \caption{One}\label{one}
    ... whatever ...
    \caption{Two}\label{two}
  \end{center}
\end{figure}

to keep your two graphics together in one floating figure, each
graphics having it's own caption.

\jiji

 \documentclass[12pt]{letter}
\usepackage[avery5160label,noprintreturnaddress,noprintbarcodes,nocapaddress]{en
vlab}
\makelabels
\begin{document}
\startlabels

\mlabel{}{Search Committee\\
Math Department\\
JMU\\
Harrisonburg VA 22807}
\mlabel{}{Search Committee\\
Math Department\\
U of Iowa\\
Iowa City, IA 52242}
\mlabel{}{Search Committee\\
Math Department\\
Gettysburg College\\
Gettysburg PA 17325}
%
% etc
%
\end{document}

\indexmailing
\jiji
\chapter{\protect\includegraphics{logo} ....}

\indexsection  \indexfigure
\jiji
I know about the two packages numline and lineno which both don't work 
with my document. I seem to remember that there is a package which
basically puts a simple numbered ruler in the margin (independent of
the page content), but I can't remember its name.
\jaja
vruler.sty 

\indexrule   \indexmargins
\jiji
(La)TeX seems to make a big effort to format text
so that each page in a document has the same text height.
And it seems to do this by varying the space between
paragraphs, equations, list items, etc.

Can this easily be disabled, such that the space between
paragraphs, equations, etc. is always the same, and
instead, the text height varies.
\indexadornos \indexspace \indextextheight
\jaja
\raggedbottom

\jiji

 Does anyone know of any tools that can automatically compare two latex
 documents and produce another with change-bars?
\jaja

The shell script chbar.sh can do that. To find on CTAN.

\indexdiff
\jiji
 I have a document that I want to produce in two versions, one full and one
 condensed. I'd like to set a switch at the beginning of the document and,
 according to the switch, hide or not hide text that's in a custom
 environment.  Is there any way I can do this?
\jaja
&gt; 

In the preambule put
\newif\iffullversion

Then you can either put the switches

\fullversiontrue

or

\fullversionfalse

in your document, or (I prefer the latter variant) put just the line
\input{version.cfg}
in your document. The file version,cfg should be the following;

% If you want full version, uncomment this line
\fullversiontrue
% Otherwise, uncomment this line
%\fullversionfalse

Then in the document itself you can write

\iffullversion
Long text to hide
\fi

or (again, I prefer this variant):

\iffullversion
Long text to hide
\else
This section is omitted in the condensed version. To typeset it,
change \texttt{version.cfg}, and run \LaTeX{} again.
\fi

\indexhide
\jaja
If you use LaTeX, try the package comment.sty available on CTAN and the
commands

\includeversion{FINAL}\excludeversion{TEMPORARY}

\begin{FINAL}
This will appear at the end
\end{FINAL}

\begin{TEMPORARY}
This will not
\end{TEMPORARY}

\jiji
fr.comp.text.tex est un forum français de discussion concernant
TeX et LaTeX. comp.text.tex est son équivalent anglophone.

\indexnewsgroup \indexfrancoise
\jiji
www.deja.com is a good place to read news from USENET newsgroups
\indexnewsgroup
\jiji
Suite à de nombreuses demandes, les accents ont été ajoutés. Le
programme `recode' de GNU est capable d'en générer une version
sans les accents (recode latin1:flat faq_latex). Ceux qui ne
possèdent pas un tel programme peuvent me demander une version
sans accent par e-mail.

\indexrecode \indexaccents \indexfrancoise
\jiji

TeX (1978) est le formateur de texte de D. E. Knuth. A
l'origine, Knuth a développé TeX (en WEB cf. paragraphe 23.2)
notamment pour réaliser de beaux documents et écrire des
formules mathématiques.

LaTeX, écrit par L. Lamport (1982), est un jeu de macros au
dessus de TeX, plus facile à utiliser que ce dernier. Il
propose notamment différents styles de document auxquels
correspondent des classes de document et une grande diversité
de macros qui répondent à divers besoins des auteurs. LaTeX a
été conçu pour rédiger des articles, des rapports, des thèses ou
des livres ou pour préparer des transparents. On peut insérer
dans le texte, des dessins, des tableaux, des formules
mathématiques et des images sans avoir à se soucier (ou presque)
de leur mise en page. Les documents produits avec LaTeX et TeX
sont d'une excellente qualité typographique.

Plain TeX écrit également par D. E. Knuth, était le premier jeu
(minimal) de macros par dessus TeX. De même Eplain, de K. Berry,
est un jeu de macros intermédiaire entre TeX et LaTeX.

Suite à une large diffusion de LaTeX beaucoup d'extensions ont
été créées par différents utilisateurs. Grâce à Murphy, ces
extensions ont introduit un certain nombre d'incompatibilités
et ont porté atteinte à la portabilité de LaTeX. C'est de cette
situation qu'est né le projet de normalisation LaTeX3, sous la
direction des gurus LaTeX : L. Lamport, F. Mittelbach, C.
Rowley, R. Schopf et tant d'autres... Pour plus de détails,
consulter :
http://www.latex-project.org/

Toutefois, pour ne pas perturber les actuels utilisateurs de
LaTeX, la version provisoire normalisée s'appelle LaTeX2e (1994)
et elle est compatible (dans la mesure du possible) avec les
anciens standards. Ainsi tous les documents écrits pour
LaTeX2.09 peuvent être compilés sous LaTeX2e en mode "LaTeX2.09
compatibility mode".

\indexlatexhistory \indexfrancoise 
\jiji
Il existe aussi omega, une extension 16 bits de TeX qui utilise
unicode comme représentation interne et autorise ainsi la
composition de textes multi-lingues dans les langues telles que
l'arabe, le chinois ou les langues du continent indien. Pour
plus de renseignements, vous pouvez consulter : les cahiers
GUTenbeg, TUGboat, ftp://ftp.ens.fr/pub/tex/yannis/omega/,
ftp://ftp.ens.fr/pub/tex/yannis/omega-babel/, ...
\indexomega \indexfrancoise
\jiji

Quand on utilise plusieurs packages :
\usepackage{package1,package2}
et que l'on veut utiliser une option du package1 qui n'existe
pas pour le package2, on peut écrire :
\usepackage[option1]{package1}
\usepackage{pckge2}
Cela évite un message du type "unknown option1 for pckge2" qui
peut apparaître quand on écrit
\usepackage[option1]{package1,package2}.

On peut également écrire :
\documentclass[option1,gnagna]{article}
\usepackage{pckge1,pckge2}
qui permet de conserver l'ordre de chargement des packages mais
pas celui dans lequel seront exécutées les options par tel
package. Les options de classe sont globales et descendent à
toutes les extensions chargées si elles sont définies pour ces
extensions (certaines options sont par nature globales comme
draft, final, french, a4paper, dvips...).

\indexfrancoise \indexusepackage
\jiji
La commande \layout du package 'layout' permet de visualiser la
structure d'une page et ses différents paramètres. Globalement
elle est composée du corps du texte, d'une entête et d'un pied
de page. Des marges sont également définies de chaque côté du
corps du texte.

Exemple :
\documentclass{report}
\usepackage{layout}
\begin{document}
\layout
\end{document}
%%%% fin exemple %%%%

\indexfrancoise \indexpage \indexlayout \indexstructure
\jiji
Pour les documents devant être imprimés en recto-verso,
\oddsidemargin définit la marge gauche des pages impaires
(recto), et \evensidemargin la marge gauche des pages paires
(verso). Pour les documents simple face, la commande
\oddsidemargin suffit.

Les principaux paramètres d'une page sont les suivants :
+ \textheight définit hauteur du texte.
+ \textwidth définit la largeur du texte.
+ \columnsep définit l'espace entre colonnes pour un document
multi-colonnes.
+ \columnseprule définit la largeur de la ligne qui sépare les
colonnes d'un document multi-colonnes (par défaut ce paramètre
vaut 0pt i.e. pas de ligne).
+ \columnwidth définit la largeur d'une colonne. Ce paramètre
est calculé automatiquement par LateX d'après \textwidth et
\columnsep.
+ \linewidth définit la longueur de la ligne courante. Ce
paramètre est généralement utilisé dans des environnements qui
redéfinissent les marges.
+ \evensidemargin définit un espace supplémentaire dans la marge
gauche des pages paires des documents recto-verso.
+ \oddsidemargin définit cet espace pour les pages impaires d'un
document recto-verso ou pour toutes les pages dans le cas d'un
document recto uniquement.
+ \footskip définit la distance entre la dernière ligne du texte
et la première ligne du bas de page.
+ \headheight définit la hauteur de l'entête.
+ \headsep définit la distance entre la dernière ligne d'entête
et la première ligne du corps du document.
+ \topmargin définit un espace supplémentaire au dessus de
l'entête.
+ \marginparpush définit l'espace vertical minimum entre deux
notes de marge.
+ \marginparsep définit l'espace horizontal entre entre le corps
du document et les notes de marge.
+ \marginparwidth définit la largeur des notes de marge.
+ \paperheight définit la hauteur du papier sur lequel le
document sera imprimé.
+ \paperwidth définit sa largeur.

\indexfrancoise \indexpage \indexstructure \indextextheight
\indextextwidth \indexcolumnsep \indexcolumnseprule 
\indexcolumnwidth \indexlinewidth \indexevensidemargin
\indexoddsidemargin \indexfootskip \indexheadheight
\indexheadsep \indextopmargin \indexmarginparsep \indexmarginparpush
\indexmarginparwidth 
\indexpaperheight 
\jiji

* Pour modifier l'espace interligne d'un document on peut
utiliser la commande \linespread (solution non recommandée).
Par exemple, \linespread{1.6} permet de doubler l'intervalle
par défaut.

* \renewcommand{\baselinestretch}{1.2} placé dans le
préambule permet d'obtenir le même résultat pour tout le
document.

* Localement, on peut également utiliser la commande
\baselineskip de la manière suivante :

Exemple :
{\setlength{\baselineskip}{1.2\baselineskip}
Texte affecté
\par} %%% &lt;= terminer le paragraphe
%%%% fin exemple %%%%

\indexfrancoise \indexline_spacing \indexlinespread
\indexbaselinestretch 

\jiji
* Pour réduire l'interligne d'un paragraphe (à celui de small
par exemple) sans modifier la taille de la fonte on peut
utiliser \small{\normalsize texte à interligne réduit}\par ou
encore {\advance\baselineskip -1pt le texte \par}.

\indexfrancoise \indexline_spacing  \indexparagraph 
\jiji

Exemple :
La syntaxe de définition d'une nouvelle section est :
\renewcommand\section{\@startsection {section}{1}{\z@}%
	{-3.5ex \@plus -1ex \@minus -.2ex}%
	{2.3ex \@plus.2ex}%
	{\reset@font\Large\bfseries}}

Explication :
+ La commande \@startsection permet de gérer : la table des
	matières, la numérotation des titres, les références,
	les titres des sections dans l'en-tête, etc...
+ {section} indique qu'il s'agit d'une section
+ {1} indique son niveau dans la table des matières
+ {\z@} indique son niveau d'indentation (zéro)
+ {-3.5ex \@plus -1ex \@minus -.2ex} définit l'espace qui sera
	ajouté au dessus du titre
+ {2.3ex \@plus.2ex} définit l'espace qui sera ajouté en dessous
	du titre. Si ce nombre est négatif alors il s'agit d'un
	espacement horizontal, pour avoir des titres "en ligne",
	comme ça :
	Titre de ma section.        Nous allons parler... bla,
	bla, bla...
+ \@plus et \@minus permettent de jouer sur l'élasticité de ces
	espaces
+ {\reset@font\Large\bfseries} sont les commandes de mises en
	forme du titre.
%%%% fin exemple %%%%

* Pour augmenter l'espace avant une section il suffit, par
exemple, d'écrire, dans le préambule du document :

%%%% debut macro %%%%
\makeatletter
\renewcommand\section{\@startsection{section}{1}{\z@}%
	{2cm \@plus -1ex \@minus -.2ex}%
	{2.3ex \@plus.2ex}%
	{\reset@font\Large\bfseries}}
\makeatother

\indexsection \indextitles \indexfrancoise
\jiji

* Le package 'sfheaders' de M. Loreti, ci dessous met les titres
dans une fonte sans serif quelle que soit la classe de
document utilisée. 
\usepackage{SFheaders}.

\indexsection \indextitles \indexfrancoise \indexsanserif

\jiji

* Le package 'multicol'

multicols qui permet de redéfinir localement le nombre de
colonnes désirées (10 maximum). Lorsqu'une page n'est pas
complète, le texte apparaît réparti sur toutes les colonnes.
Ainsi chaque changement de colonnage n'entraîne plus un
changement de page.

Exemple :
\documentclass{article}
\usepackage{multicol}
\usepackage{french}
\setlength{\columnseprule}{0.5pt}
\begin{document}

\begin{multicols}{3}[Titre sur une seule colonne.]
   3~colonnes équilibrées, 3~colonnes équilibrées, 3~colonnes
   équilibrées, 3~colonnes équilibrées
\end{multicols}

\begin{multicols}{2}[\section{Titre numéroté.}]
   blabla sur deux colonnes, c'est plus sérieux. C'est le
   style qui est généralement utilisé pour écrire des
   articles.
\end{multicols}
\end{document}
%%%% fin exemple %%%%

Pour ajouter un titre numéroté qui apparaisse sur toute la
largeur de la page, il faut utiliser l'option [\section{Titre.}]
juste après \begin{multicols}{nb-col}.

Remarques :
+ Pour qu'une ligne de séparation apparaisse entre les
colonnes, il faut utiliser : \setlength{\columnseprule}{1pt}.

+ Pour redéfinir la largeur de l'espace inter-colonnes, il faut
utiliser \setlength{\columnsep}{30pt}.

\indexfrancoise \indexmulticol \indexcolumnas
\jiji

* Pour redéfinir un format de page, (par exemple un A4 plié en
trois), il faut utiliser la commande \setlength.  Il suffit de
savoir quelles sont les longueurs à préciser, le meilleur moyen
pour ce faire est de les visualiser avec la commande \layout
(définie par le package 'layout' disponible sur
ftp://ftp.lip6.fr/pub/TeX/CTAN/macros/latex/packages/tools/).

%%%% debut macro %%%%
% (Th. Bouche)
\ProvidesPackage{a6size}
% rien a voir avec la taille : ajustement du \baselineskip
\renewcommand\normalsize{%
   \@setfontsize\normalsize\@xiipt{13.5}%
   \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
   \abovedisplayshortskip \z@ \@plus3\p@
   \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
   \belowdisplayskip \abovedisplayskip
   \let\@listi\@listI}
\renewcommand\small{%
   \@setfontsize\small\@xipt{12.4}%
   \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
   \abovedisplayshortskip \z@ \@plus3\p@
   \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
   \def\@listi{\leftmargin\leftmargini
   \topsep 9\p@ \@plus3\p@ \@minus5\p@
   \parsep 4.5\p@ \@plus2\p@ \@minus\p@
   \itemsep \parsep}%
   \belowdisplayskip \abovedisplayskip}
\normalsize

\setlength\paperheight {148mm}%
\setlength\paperwidth  {105mm}%
%\voffset-1cm
%\hoffset-2cm
\setlength{\topmargin}{-1.3cm}%
\setlength{\oddsidemargin}{-.5cm}%
\setlength{\evensidemargin}{-1cm}%
\setlength{\marginparsep}{0\p@}%
\setlength{\headsep}{0\p@}%
% calcule la hauteur du texte en fonction du \baselineskip, pour
% que les lignes soit placees au meme niveau sur toutes les pages
\setlength{\textheight}{\topskip}
\addtolength{\textheight}{22\baselineskip}%
\setlength{\textwidth}{7cm}%
\setlength{\footskip}{23\p@}% (originellement : 48)
%\setlength{\baselineskip}{13\p@}%
%\setlength{\marginparwidth}{0\p@} %
%\addtolength{\baselineskip}{.2\baselineskip}%
\setlength{\parindent}{0\p@}
%\addtolength{\headsep}{\headsep}
%\setlength{\push@skip}{.2\textwidth}
\newenvironment{page}{\vspace*{\stretch{1}}}
{\vspace*{\stretch{2.5}}\newpage}
\pagestyle{plain}
%%%% fin macro %%%%

Il faut ensuite opérer ce que les imprimeurs appellent une
imposition : imprimer la page tant à tel endroit de la x-ième
feuille de telle sorte qu'il n'y ait plus qu'à plier la liasse
pour obtenir un livre prêt à être relié. Cette étape est facile
à réaliser soit à l'aide de dvidvi (mais qui n'autorise pas les
rotations, ce qui peut en limiter l'intérêt pour des formats
spéciaux) soit avec pstops :
pstops "2:0L@.7(21cm,0)+1L@.7(21cm,14.85cm)" un.ps deux.ps


\indexfrancoise \indexlayout \indexbook \indexpstops
\jiji

=================SNIP
#!/bin/sh
#
# Turn a (clean) PS file into a booklet
#
# input on stdin or file in arg
#
# psbook -- reorder the pages
#           see -s option for _very_ large files
# psnup  -- scale and place two pages onto one
# pstops -- reverse the odd pages for duplex printing
#
# outup on stdout
#
psbook $1 | psnup -2 | pstops "2:0,1U(21cm,29.7cm)"
=================SNIP


\indexpsbook
\jiji

* Le résultat est possible également en ne travaillant que sur
le postscript : dvips -h twoup -t landscape fichier.dvi.

\indexbook \indexfrancoise \indexdvips
\jiji

La structure d'une page LaTeX permet de nombreux ajustements :
+ \setlength{\textwidth}{??cm} permet de fixer la largeur du
texte
+ \setlength{\textheight}{??cm} permet de fixer la hauteur du
texte
+ \setlength{\oddsidemargin}{(-)??cm} permet de définir la
marge gauche des pages impaires
+ \setlength{\evensidemargin}{(-)??cm} permet de définir la
marge gauche des pages paires
+ \setlength{\topskip}{??cm} laisse un espace en haut de page
+ \setlength{\footskip}{??cm} laisse un espace en bas de page
+ \setlength{\headheight}{??cm} fixe la hauteur de l'entête
+ \addtolength{\topmargin}{(-)??cm}
+ \addtolength{\textheight}{(-)??cm}

\indexfrancoise \indexlayout
\jiji
* Le package 'geometry' est plus flexible que les précédents
pour définir son propre format de page. Il définit de
nouvelles variables de structure de la page. Il propose en
outre un ensemble de formats par défaut (a0paper, b5paper,
legalpaper, ...).

Exemple 1 :
\geometry{margin=5pt}
équivalent à
\geometry{hmargin=5pt, vmargin=5pt}
équivalent à
\geometry{margin={5pt,5pt}}
%%%% fin exemple %%%%

Exemple 2 :
\documentclass{report}
\usepackage{french}
\usepackage{geometry}
\geometry{scale=1.0, nohead}
\begin{document}
Ainsi, le texte apparaît beaucoup plus haut dans une page.
\end{document}
%%%% fin exemple %%%%

Exemple 3 :
\documentclass{report}
\usepackage{french}
\begin{document}
Voici une page normale pour comparer.
\end{document}
%%%% fin exemple %%%%

\indexgeometry \indexlayout \indexfrancoise
\jiji

* Le package 'vmargin', de V. Kuhlmann, est disponible sur

 Il  permet facilement de
redéfinir globalement (pour tout le document) les marges d'un
document par la commande :
\setmarginsrb{1}{2}{3}{4}{5}{6}{7}{8}
1 est la marge gauche
2 est la marge en haut
3 est la marge droite
4 est la marge en bas
5 fixe la hauteur de l'entête
6 fixe la distance entre l'entête et le texte
7 fixe la hauteur du pied de page
8 fixe la distance entre le texte et le pied de page

Vous pouvez également utiliser des valeurs par défaut en rapport
avec le papier utilisé, par exemple:
\setpapersize{A4}

\indexfrancoise \indexmargins \indexvmargin
\jiji


* L'environnement changemargin décrit ci-dessous permet de
modifier localement les marges d'un document. Il prend deux
arguments, la marge gauche et la marge droite (ces arguments
peuvent prendre des valeurs négatives).

%%%% debut macro %%%%
\newenvironment{changemargin}[2]{\begin{list}{}{%
\setlength{\topsep}{0pt}%
\setlength{\leftmargin}{0pt}%
\setlength{\rightmargin}{0pt}%
\setlength{\listparindent}{\parindent}%
\setlength{\itemindent}{\parindent}%
\setlength{\parsep}{0pt plus 1pt}%
\addtolength{\leftmargin}{#1}%
\addtolength{\rightmargin}{#2}%
}\item }{\end{list}}
%%%% fin macro %%%%

Exemple :
\begin{changemargin}{2cm}{-1cm}
   Ceci permet d'augmenter la marge gauche de 2cm et de diminuer
   celle de droite de 1cm.
\end{changemargin}
A comparer avec un texte qui occupe toute la largeur de la page,
comme celui-ci.
%%%% fin exemple %%%%

\indexfrancoise \indexmargins \indexchangemargin
\jiji

* Le package 'truncate' disponible sur
permet de fixer la largeur d'un texte.

\indexfrancoise \indexmargins \indexpage
\jiji

* L'environnement narrow, de K. Reckdahl, ci-dessous permet
d'encapsuler des paragraphes de largeurs différentes.
%%%% debut macro %%%%
%-----------------------------------------------------------------
% \begin{narrow}{1.0in}{0.5in}   produces text which is narrowed
%          by 1.0 on left margin and 0.5 inches on right margin
% \begin{narrow}{-1.0in}{-0.5in} produces text which is widened
%          by 1.0 on left margin and 0.5 inches on right margin
% Narrow environments can be nested and are ended by \end{narrow}
%-----------------------------------------------------------------
\newenvironment{narrow}[2]{%
 \begin{list}{}{%
  \setlength{\topsep}{0pt}%
  \setlength{\leftmargin}{#1}%
  \setlength{\rightmargin}{#2}%
  \setlength{\listparindent}{\parindent}%
  \setlength{\itemindent}{\parindent}%
  \setlength{\parsep}{\parskip}%
 }%
\item[]}{\end{list}}
%%%% fin macro %%%%

\indexfrancoise \indexmargins \indexparagraph
\jiji
\input{Too.ind}
\end{document}
</pre></body></html>