addcontentsline
- command<>
#barcode<>Barcode
PS/ps#border<>Border around each Page
#circle<>circle with a letter in it
misc/classfiles<>Classfiles
color/color#color.cfg<>Color config file
misc/timestamp#time<>Current Time
#cpp<>C++ - Symbol
misc/underline#dashedULine<>Dashed underline
#newenv<>Define a new Environment
misc/dna<>DNA-Sequences
misc/underline#dashedULine<>Dotted underline
misc/twocolumn#doublerule<>Double columnseprule
#draft<>Draft Option
http://www.pstricks.de/pst-plot/pst-plotDemo<>Drawing Math functions<>
#empty<>Empty page
#newenv<>Environment
#ams<>Environment in an environment (amsmath)
misc/chapterPic<>epigraph-package
misc/firstBold<>First Letter bold
misc/highbox<>First Word in other fontsize
color/color#color.cfg<>Graphics config file
misc/harpoon<>Harpoon-Symbol
#hrulefill<>hrulefill
#texsystem<>Information about the (La)TeX System
#jobname<>jobname
length/length<>LaTeX Length
#texsystem<>LaTeX System
length/length<>LaTeX Length
#mathtext<>Mathcommands in textmode
misc/chapterPic<>Motto on chapter-pages
#newenv<>\newenvironment
underbracket/bracket<>Overbracket
misc/overwrite#picture<>Overwriting Images
#overwrite<>Overwriting Text
#packageOption<>Package options
#parameter<>Parameters in Environments
#jobname<>Parsing filename
#path<>Path-setting
misc/chapterPic<>Picture on chapter-page
http://www.pstricks.de/pst-plot/pst-plotDemo<>Plot Math functions
http://www.pstricks.de/<>pstricks package
#raisebox<>\raisebox Command
misc/renew<>\renewcommand{...}
misc/spanish<>Spanish Language
#sideBySideEx<>Side by Side Example<> #substr<>SubString
symbols/symbols#tally<>Tally Symbol
#texsystem<>TeX System
misc/timestamp#time<>Time
misc/timestamp#timestamp<>Timestamp
misc/twocolumn<>twocolumn mode
underbracket/bracket<>Underbracket
#commandchar<>underscore
#width<>Width of an Image
misc/harpoon<>xleft/rightharpoon-Symbol
#xypic<>xypic and babel
\newpage\null\newpageWithout header and footer, but correct page counting:
\newpage \begingroup \thispagestyle{empty}% oder \pagestyle{empty} \null \endgroup \newpageA "real" empty page, without influencing the counter:
\shipout\null
\makeatletter \def\hrulefill{\leavevmode\leaders\hrule\@height-3pt\@depth7pt\hfill\kern\z@} \makeatother
When there are some problems with passing options to a package one can still use:
\PassOptionsToPackage{something}{pict2e} \AtBeginDocument{\RequirePackage{pict2e}}or from the command line latex "\PassOptionsToPackage{dvips}{pict2e}\input{myfile}"and when myfile loads pict2e without any specific options, the options on the command line will get used. |
In the following example everything before the colon and itself is stripped. It is no problem to strip the suffix of the string instead of the prefix. |
\newenvironment
\newenvironment{name}{% code for \begin{name}% }{% code for \end{name}% }Using a parbox or a minipage requires some special code, f.ex.:
\makeatletter \newenvironment{myEnv}{% \begin{lrbox}{\@tempboxa}% % put here additional stuff \begin{minipage}{\columnwidth}% % put here additional stuff }{% \end{minipage}% \end{lrbox}% \usebox{\@tempboxa}% } \makeatotherIn your text use it in the usual way:
\begin{myEnv}any stuff \end{myEnv}
fancybox
contains an environment for a "side by side example", which
means on the left the code and on the right the output. This works well, but doesn't support
umlauts or another special character. Here is a solution with package listings
.
\raisebox
- command
\shorthandoff{"} % xypic stuff \shorthandon{"}
addcontentsline
- command\addcontentsline{toc}{section}{% line 1\hspace*{\fill}\endgraf line 2% }For the addtocontents -command see also here
voss@shania:/tmp> texdoc TETEXDOC (creates and opens a pdf document) voss@shania:/tmp> texdoc tds (creates and opens a pdf document) voss@shania:/tmp> less `kpsewhich texmf.cnf` (opens the configuration file) voss@shania:/tmp> kpsewhich '-expand-var=$HOMETEXMF' /usr/local/texlive/texmf-local voss@shania:/tmp> kpsewhich '-expand-var=$HOMETEXMF' /usr/local/texlive/texmf-local voss@shania:/tmp> kpsewhich -expand-var=\$TEXMF {!!/home/voss/.texlive2005/texmf-config,!!/home/voss/.texlive2005/texmf-var,/home/voss/texmf,!!/usr/local/texlive/2005/texmf-config,!!/usr/local/texlive/2005/texmf-var,!!/usr/local/texlive/2005/texmf,!!/usr/local/texlive/2005/../texmf-local,!!/usr/local/texlive/2005/texmf-dist} voss@shania:/tmp> kpsewhich -expand-var=\$TEXINPUTS :/home/voss/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeXThe last one prints the root of the TeX tree.
This one tells you where LaTeX search for tex or bib files
voss@shania:/tmp> kpsepath tex
.:!!/home/voss/.texlive2005/texmf-config/tex/kpsewhich//:
!!/home/voss/.texlive2005/texmf-var/tex/kpsewhich//:
/home/voss/texmf/tex/kpsewhich//:
!!/usr/local/texlive/2005/texmf-config/tex/kpsewhich//:
!!/usr/local/texlive/2005/texmf-var/tex/kpsewhich//:
!!/usr/local/texlive/2005/texmf/tex/kpsewhich//:
!!/usr/local/texlive/2005/../texmf-local/tex/kpsewhich//:
!!/usr/local/texlive/2005/texmf-dist/tex/kpsewhich//:
!!/home/voss/.texlive2005/texmf-config/tex/generic//:
!!/home/voss/.texlive2005/texmf-var/tex/generic//:
/home/voss/texmf/tex/generic//:
!!/usr/local/texlive/2005/texmf-config/tex/generic//:
!!/usr/local/texlive/2005/texmf-var/tex/generic//:
!!/usr/local/texlive/2005/texmf/tex/generic//:
!!/usr/local/texlive/2005/../texmf-local/tex/generic//:
!!/usr/local/texlive/2005/texmf-dist/tex/generic//:
!!/home/voss/.texlive2005/texmf-config/tex///:
!!/home/voss/.texlive2005/texmf-var/tex///:
/home/voss/texmf/tex///:!!/usr/local/texlive/2005/texmf-config/tex///:
!!/usr/local/texlive/2005/texmf-var/tex///:!!/usr/local/texlive/2005/texmf/tex///:
!!/usr/local/texlive/2005/../texmf-local/tex///:
!!/usr/local/texlive/2005/texmf-dist/tex///:/home/voss/.TeX:/usr/share/doc/.TeX:
/usr/doc/.TeX
voss@shania:/tmp> kpsepath bib
.:!!/home/voss/.texlive2005/texmf-config/bibtex/bib//:
!!/home/voss/.texlive2005/texmf-var/bibtex/bib//:
/home/voss/texmf/bibtex/bib//:!!/usr/local/texlive/2005/texmf-config/bibtex/bib//:
!!/usr/local/texlive/2005/texmf-var/bibtex/bib//:
!!/usr/local/texlive/2005/texmf/bibtex/bib//:
!!/usr/local/texlive/2005/../texmf-local/bibtex/bib//:
!!/usr/local/texlive/2005/texmf-dist/bibtex/bib//
kpsepath
.$ % { } & # _ ^
are command characters and
have to be escaped when you want to use them as normal characters:
\$ \% \{ \} \& \# \_ \^otherwise you'll get an error at the LaTeX run.
For the underscore there exists a special package underscore.sty. If you want to pass for
example a filename with a underscore to another macro, then do it in the following way:
\documentclass[12pt]{article}
\usepackage{graphicx}
\newcommand{\UnderscoreCommands}{\do\myMacro}
\newcommand{\myMacro}[1]{something ... \includegraphics{#1}}
\usepackage[strings]{underscore}
\begin{document}
\myMacro{/tmp/file_1}
\end{document}
For a document which has bookmarks with a underscore it is a bit different:
\documentclass{article}
\usepackage{hyperref}
\usepackage{underscore}
\begingroup
\lccode`\~=`\_
\lowercase{\endgroup
\pdfstringdefDisableCommands{\let~\relax}%
}
\begin{document}
\tableofcontents
\section{Hello_World}
\end{document}
\makeatletter \DeclareRobustCommand{\Cpp} {\valign{\vfil\hbox{##}\vfil\cr \textsf{C\kern-.1em}\cr $\hbox{\fontsize{\sf@size}{0}\textbf{+\kern-0.05em+}}$\cr}% } \makeatother
\newenvironment{mytable}[2]{% \begin{table}% \newcommand{\mytablecaption}{% \caption{#1}% \label{#2}% }% \centering \begin{tabular}{lll}% }{% \end{tabular}% \mytablecaption \end{table}% }
in latex preamble
\newsavebox{\Imagebox} \newcommand{\image}[2]{ \centering \savebox{\Imagebox}{\includegraphics{#1}}% \usebox{\Imagebox}\par\noindent \parbox[t]{\wd\Imagebox}{\#2}% }Now you are able to place an image in a parbox with the right width.
in latex preamble for files
\def\input@path{{yourInputPathForTheFiles/}}
For the graphi files you can define:
\graphicspath{{../home/voss/TEST/}}but remember:
draft
for the documentclass.If you want to use this option for own commands like notes, than you can use this option and output some notes only when the draft option is set. The following example shows this for the arcticle class:
\newcommand{\myNote}[1]{% \@ifclasswith{article}{draft}{% \marginpar{#1}}{}% }The draft-option is passed to all other used packages. If you only want to mark the overfull lines then you can write
\setlength{\overfullrule}{5pt}instead of using the draft-option with all other effects.
\newcommand\myOverwrite[2]{\makebox[0cm][l]{#1}#2\ }You can also define your own math-symbols:
\newcommand\kreis[1]{\ensuremath{\mathbin{\settowidth{\dimen7}{\mbox{$\bigcirc$}}% \makebox[0pt][l]{$\bigcirc$}\makebox[\dimen7]{#1}}}}\kreis{u} prints a circle with an u in it.
\usepackage{xspace} %for a better layout \let\origdelta\delta \renewcommand{\delta}{\ensuremath{\origdelta}\xspace}Now you can write only \delta, LaTeX uses it by default as a math-command like:
\delta and $delta$ is exactly the same ...
Environment in an environment |
---|
You cannot create a new environment which uses a given amsmath environment.
With the following amsmath macro it is possible. |