Revision: 17240
http://sourceforge.net/p/gate/code/17240
Author: ian_roberts
Date: 2014-01-21 12:28:30 +0000 (Tue, 21 Jan 2014)
Log Message:
-----------
Allow for permalinks to paragraphs as well as sections, subsections, etc.
Modified Paths:
--------------
userguide/trunk/tao_main.tex
Modified: userguide/trunk/tao_main.tex
===================================================================
--- userguide/trunk/tao_main.tex 2014-01-21 09:59:58 UTC (rev 17239)
+++ userguide/trunk/tao_main.tex 2014-01-21 12:28:30 UTC (rev 17240)
@@ -242,6 +242,8 @@
\def\subsect@nolabel#1{\subsection{#1}}
\def\subsubsect@label[#1]#2{\htcode{<A NAME="#1"></A>}\subsubsection[#2]{#2
\htcode{<span style="font-size:x-small">[<A
href="http://gate.ac.uk/userguide/#1\permalinktrailer" title="Permanent link to
this section">\#</A>]</span>}}\label{#1}}
\def\subsubsect@nolabel#1{\subsubsection{#1}}
+ \def\para@label[#1]#2{\htcode{<A NAME="#1"></A>}\paragraph[#2]{#2
\htcode{<span style="font-size:x-small">[<A
href="http://gate.ac.uk/userguide/#1\permalinktrailer" title="Permanent link to
this section">\#</A>]</span>}}\phantomsection\label{#1}}
+ \def\para@nolabel#1{\paragraph{#1}}
\else
\def\smartpart@label[#1]#2{\part{#2}\label{#1}}
\def\smartpart@nolabel#1{\part{#1}}
@@ -253,6 +255,8 @@
\def\subsect@nolabel#1{\subsection{#1}}
\def\subsubsect@label[#1]#2{\subsubsection{#2}\label{#1}}
\def\subsubsect@nolabel#1{\subsubsection{#1}}
+ \def\para@label[#1]#2{\paragraph{#2}\label{#1}}
+ \def\para@nolabel#1{\paragraph{#1}}
\fi
\def\smartpart{\@ifnextchar[{\smartpart@label}{\smartpart@nolabel}}
@@ -260,6 +264,7 @@
\def\sect{\@ifnextchar[{\sect@label}{\sect@nolabel}}
\def\subsect{\@ifnextchar[{\subsect@label}{\subsect@nolabel}}
\def\subsubsect{\@ifnextchar[{\subsubsect@label}{\subsubsect@nolabel}}
+\def\para{\@ifnextchar[{\para@label}{\para@nolabel}}
%\renewcommand{\chapt}[1]{\chapter{#1}}
%\renewcommand{\sect}[1]{\section{#1}}
%\renewcommand{\subsect}[1]{\subsection{#1}}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs