Diverting trains of thought, wasting precious time
Formatting a paper for J.UCS in LaTeX has proved quite painful, mainly because of the slightly unconventional formatting requirements (e.g. in bibliography and citation styles) and the exactingness of the editorial process. To make things easier for future authors, here are a few useful tricks.
\usepackage{prettyref} \newrefformat{sec}{[Section~\ref{#1}]} \newrefformat{fig}{[Fig.~\ref{#1}]} \newrefformat{tab}{[Tab.~\ref{#1}]} % based on advice found in Ulrike Fischer's post to comp.text.tex, July 2008 % http://newsgroups.derkeiler.com/Archive/Comp/comp.text.tex/2008-07/msg00540.html % Note the disgusting hack of an extra 17pt hspace: this is to compensate % for the strange reduction in left margin that occurs otherwise. % % the following redefines natbib internals to add a \citep like label % for authoryear citations in the bibliography, as a side-effect the % labels are links to themselves if hyperref is used. \makeatletter \def\@lbibitem[#1]#2{% \if\relax\@extra@b@citeb\relax\else \@ifundefined{br@#2\@extra@b@citeb}{}{% \@namedef{br@#2}{\@nameuse{br@#2\@extra@b@citeb}}}\fi \@ifundefined{b@#2\@extra@b@citeb}{\def\NAT@num{}}{\NAT@parse{#2}}% \item[\hfil\hyper@natanchorstart{#2\@extra@b@citeb}\hspace{17pt}\citep{#2}% \hyper@natanchorend]% \NAT@ifcmd#1(@)(@)\@nil{#2}} \makeatother
% J.UCS footnoting style \makeatletter % commented are the default LaTeX definitions %\renewcommand\@makefnmark{\mbox{\textsuperscript{\normalfont\@thefnmark}}} %\renewcommand\@makefntext[1]% % {\noindent\makebox[0pt][r]{\@thefnmark.\,}#1} % now the modified JUCS ones \renewcommand\@makefnmark{ [see \normalfont\@thefnmark]} \renewcommand\@makefntext[1]% {[\@thefnmark]~#1} \makeatother
\usepackage{calc} \newlength{\totalmargin} \setlength\totalmargin{(\oddsidemargin+\evensidemargin)}% \setlength\oddsidemargin{(\totalmargin/2)}% \setlength\evensidemargin{(\totalmargin/2)}%
[/publishing] permanent link contact