[pstricks] Sectionname

Herbert Voss LaTeX at zedat.fu-berlin.de
Mon Oct 2 17:01:01 CEST 2006


tiM wrote:

> I know, it's not really a pstricks question but i guess there are some
> people here that have had the same problem as i do now. I want to print the
> section name of the current section somewhere in a psfigure environment. Is
> there a command that outputs the complete name of the current section making
> the following two examples equivalent:
> 
> ___ex1___
> \section{abc}
> This section, which is called abc tells more about abc
> 
> ___ex2___
> \section{abc}
> This section, which is called \functionilookfor tells more about
> \functionilookfor

\documentclass[a4paper,landscape]{article}
\usepackage{nameref}
\begin{document}
\section{My name is foo}\label{sec:foo}
bar
\section{baz}

As seen in section ``\nameref{sec:foo}'' blah blah

\end{document}


Herbert






More information about the PSTricks mailing list