ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: About \version[temporary]
Date: Fri, 4 Dec 2009 19:45:03 +0100	[thread overview]
Message-ID: <A31615F4-5CE6-44C8-A68A-114ADD8B2C9D@gmail.com> (raw)
In-Reply-To: <4B17F192.4070303@wxs.nl>


On 3 déc. 2009, at 18:12, Hans Hagen wrote:
> there will be a tracing mechanism in mkiv
> 
> Hans

Many thanks Hans for your answer.
For the time being I found a solution, which is far from being optimal for visualizing references to equations, but is acceptable for now (actually for writing math articles I still use only mkii).

In case others would need such a workaround, I give an example below.

Have a nice week-end.
Best regards: OK

%%% begin show-references.tex

\enableregime[utf]
\setupformulas[way=bysection]
%% defining \proclaim which is built in Plain-teX
%% but has disappeared from ConTeXt
\defineenumeration[proclaim]
	[text=,
	style=slanted,
	title=yes,
	titleleft=,
	titleright=,
	location=serried,
	width=fit,
	right={.~}]
\setupnumber[proclaim][way=bysection,numbersection=yes]
%% end definition \proclaim

% Defining \eqref and \lemref
% all equation references should be like eq:something
\def\eqref#1{(\in[eq:#1])} 
% all proposition references should be like lem:something
\def\lemref#1{\in[lem:#1]}

% in order to visualize the references when
% proof reading we add these commands
% to see the references in the margins one has to say
% \enablemode[temporary]
\def\showeqref#1{\doifmode{temporary}{\inright{\ttxx #1}}}
\def\showlemref#1{\doifmode{temporary}{\inleft{\ttxx #1}}}


\enablemode[temporary]
\starttext

\title{Showing the cross references} 

\blank[2*big]

\section{Introduction}

In this paper we are interested in the study of the following Schrödinger system of equations: find an infinite sequence $(\lambda_{m},\phi_{m})_{m\geq1}$ and a potential $V$ satisfying \showeqref{Eigen, Potential}
\placeformula
\startformula 
\startalign[n=3]
\NC  {-1\over 2} \Delta \phi_{m} + V\phi_{m}  \NC = \lambda_{m}\phi_{m} 
\NC \quad\mbox{in }\, \Omega  \NR[eq:Eigen]
\NC - \Delta V  \NC = \sum_{m=1}^{\infty}\rho_{m}|\phi_{m}|^2 
\NC \quad\mbox{in }\, \Omega  \NR[eq:Potential]
\stopalign
\stopformula
Our main result is the following:

\startproclaim[lem:MainThm]{Theorem}
\showlemref{MainThm}
The Schrödinger-Poisson system of equations \eqref{Eigen}--\eqref{Potential} has a solution obtained as the minimum of the functional $J$.
\stopproclaim

\input knuth.tex

\blank
The proof of theorem \lemref{MainThm} will be given later\dots

\stoptext

%%% en show-references.tex
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


      reply	other threads:[~2009-12-04 18:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-01 17:27 Otared Kavian
2009-12-03 17:12 ` Hans Hagen
2009-12-04 18:45   ` Otared Kavian [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A31615F4-5CE6-44C8-A68A-114ADD8B2C9D@gmail.com \
    --to=otared@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).