blob: 9df6ca528da2a87b58666e2b45286e9cd9ce2bfd (
plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
% Circuit_macros.tex
\documentclass{article}
\usepackage{verbatim,url}
\usepackage{amssymb}
\usepackage[amssymb,Gray,thinqspace,textstyle]{SIunits}
\usepackage{boxdims}
\usepackage{multicol}
\usepackage{xspace}
\usepackage{float}
\input mode
\usepackage{ifpdf}
\usepackage{bookmark}
\usepackage{pdfcomment}
% The followowing seems to cure the problem of missing underscores:
\usepackage[T1]{fontenc}
\usepackage{lmodern}
%\usepackage{textcomp}
\usepackage{microtype}
%\DisableLigatures{encoding=T1,family=tt*}
%
\addtolength{\textwidth}{3cm}
\addtolength{\hoffset}{-1.5cm}
\addtolength{\textheight}{4cm}
\addtolength{\voffset}{-1in}
\setcounter{topnumber}{3}
% Exdented captions
\makeatletter
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip
\sbox\@tempboxa{\hskip-3em{\bf #1:} #2}%
\ifdim \wd\@tempboxa >\hsize
\hskip-3em{\bf #1:} #2\par
\else
\global \@minipagefalse
\hb@xt@\hsize{\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
%%\@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}
%% optional * [ALTHEADING]{HEADING}
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\Large\bfseries%
\let\@@tmp\@svsec\def\@svsec{\llap{\@@tmp}}%
}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\large\bfseries%
\let\@@tmp\@svsec\def\@svsec{\llap{\@@tmp}}%
}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\normalsize\bfseries%
\let\@@tmp\@svsec\def\@svsec{\llap{\@@tmp}}%
}}
\makeatother
\renewcommand\contentsname{Contents, \Version}
\hypersetup{
pdflang=English,
unicode=true,
colorlinks=true,
linkcolor=purple,
citecolor=purple}
\begin{document}
%\pagenumbering{roman}
\title{M4 Macros for Electric Circuit Diagrams in \LaTeX\ Documents}
\author{Dwight Aplevich}
\enlargethispage{\baselineskip}
\date{%
%\input Version%
%\footnote{This document is best displayed with a reader that shows bookmarks.}
\vspace*{-\baselineskip}
}
\maketitle
\pdfbookmark[section]{\contentsname}{toc}
% \pdfbookmark[section]{Contents}{toc}
\begin{multicols}{2}
\tableofcontents
\end{multicols}
%\pagebreak
%\pagenumbering{arabic}
\input body
%\pdfbookmark[section]{\refname}{refs}
\bibliographystyle{plain}
\makeatletter
\addcontentsline{toc}{section}{References\ \unhbox \voidb@x
%\cleaders \hbox to0.44em{\hss .\hss }\hfill \kern \z@ }
%\cleaders \hbox{\hss \hss }\hfill \kern \z@ }
\cleaders \hbox{\hss .$\;$\hss }\hfill \kern \z@ }
\makeatother
\bibliography{Circuit_macros}
\end{document}
|