jeudi 31 janvier 2013

[FORWARD] Use bold in att

> Hello,
>
> I fail to bold my word using alltt module
>
> \documentclass{article}
> \usepackage{alltt} % for normal formating inside verbat
> \begin{document}
>
> \begin{alltt}
> hello \textbf{hello}
> \end{alltt}
>
> \end{document}
>
> Any suggestions?

txfonts has bold ttfonts. If you just want set the tt font to be txtt,
just invoke :
\renewcommand{\ttdefault}{txtt}

Example :

\documentclass{article}
\usepackage{alltt}
\renewcommand{\ttdefault}{txtt}

\begin{document}

\begin{alltt}
hello \textbf{hello}
\end{alltt}

\end{document}

--
B.R

Original: http://newsgroups.derkeiler.com/Archive/Comp/comp.text.tex/2006-01/msg00179.html

jeudi 24 janvier 2013

[F]LaTeX: Adding Footnotes to Paragraph Titles

LaTeX: Adding Footnotes to Paragraph Titles

When you put foonotes in paragraph titles or section titles, you will get complaints from LaTeX. The following fixes this and puts no footnotes in the table of contents.
\paragraph[foo-title]{foo-title \protect\footnote{bar-footnote}}
 
original:
http://lesoluzioni.blogspot.fr/2013/01/latex-adding-footnotes-to-paragraph.html

dimanche 20 janvier 2013

[Forward] How to use mathematics in a verbatim-like environment

How to use mathematics in a verbatim-like environment

  1. Add the alltt package to your document.
  2. Enter an encapsulated TeX field.
  3. Type \begin{alltt} to begin the alltt environment.
  4. Begin entering the content of the verbatim environment.
  5. For each mathematical element,
    1. Type \( to begin mathematics.
    2. Type the commands for the mathematical statement or symbol you want.
    3. Type \) to end mathematics.
  6. Complete the content.
  7. Type \end{alltt} to close the environment.
  8. Choose OK.
The package has no options. Alltt is provided automatically with LaTeX and is installed in the TCITeX/TeX/LaTeX/base directory of your program directory. 

The original Website can be found here: http://www.mackichan.com/index.html?techtalk/458.htm~mainFrame