File: frames.hlx

package info (click to toggle)
hyperlatex 2.5-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 480 kB
  • ctags: 288
  • sloc: lisp: 2,291; sh: 180; makefile: 86; awk: 21
file content (38 lines) | stat: -rw-r--r-- 1,035 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
%% -*-latex-*-
%%
%% ``Frames'' package for Hyperlatex
%%
%% Creates a document with frames, 
%%  containing a table of contents on the left.
%%

\typeout{************************
****  Making Frames ****
************************
}

% #1 is hyperlatex-basename
% #2 is hyperlatex-html-ext

\newcommand{\HlxFramesDescription}[2]{
  \xml{frameset rows="100%" cols="25%,75%"}
    \xml{frame src="#1_toc#2" name="contents" marginwidth="5"
      marginheight="5" scrolling="auto" border="0"}
    \xml{frame src="#1_0#2" name="main" marginwidth="20" 
      marginheight="20"}
    \xml{noframes}
    This document uses frames to assist navigation.
    Your browser is currently not supporting the use of frames, but you 
    may still access the 
    \xml{a target="_top" href="#1_0#2"}non-framed version\xml{/a}.
    \xml{/noframes}
    \xml{/frameset}}
  
\newcommand{\HlxFramesNavigation}{%
  \HlxTocName
  \htmlpanel{0}
  \HlxSection{-5}{}*{\navigationname}
  \xml{base target="main"}
  \htmlmenu[0]{1}
  \renewcommand{\bottommatter}{}}