[NTG-context] MathML to PDF

2005-08-30 Thread Elena Fraboschi
Dear All:

I write this with my tail between my legs, because I am positive that, if
I looked around in the archives etcetera, the information would be there.
So, with apologies (no laziness here, just inordinate haste), could anyone
drop me a URL or two that might answer the needs explained below?  No need
for anyone to waste time writing: just toss me the URL! :-)

What I need
===
The IUMJ abstracts are in MathML.  Sometimes we luck out and the rendition
is just fine.  Sometimes (for example, when using something as simple as
$\sqrt{2}$), the browsers ability to read perfect MathML is atrocious.
Solution:  use ConTeXt to convert MathML to perfect PDF's.  And the
best URL to learn and do just that is...

Many thanks, hope to contribute something soon, best, elena

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \page[+2]

2005-07-29 Thread Elena Fraboschi
Thanks, Matthias and Hans, for the tip about \page[+2].  I have not yet
studied a ConTeXt presentation (read, slides) macros, so it may well
be that that use is very practical.  (In any of the slides packages I
know in LaTeX, it certainly would be.)  As for Hans's suggestion, that
it might be used to create two empty pages, say again I think it's
great - it would be better yet if the functionality \page[-2] existed
to erase the last two pages, say ;-)  Thanks again, elena

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Adding webpage to the bibliography entries

2005-07-29 Thread Elena Fraboschi
In the context of bibligraphies, I have been looking at two topics
that were the subject of presentations at one of the last TUG meetings,
namely,

Bibulus
MLBibTeX

Bibulus interests me because it creates bibliographies directly in
XML.  MLBibTeX interests me because of its extended encoding (it is billed as 
European style bibliography).  In either case, at this time they are for 
developers only: neither is  ready for prime time use (though you can download 
packages and play with them).  On the other hand, they seem to be getting 
*very* close to prime time readiness.   Conclusion:  if
ConTeXt is going to undertake some work concerning the bibliography,
it might be a good idea to consider how that work might tie in with Bibulus or 
MLBibTeX, or both.  This said as an after thought to what Mojca said.  Best, 
elena


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \page[+2]

2005-07-28 Thread Elena Fraboschi
Dear All:

This is like going to school: every evening I study a very narrow
topic in ConTeXt, the idea being Si va piano, si va lontano (go
slow and you'll get far).  So last night I was to study
cross-references, and that was simple enough EXCEPT...

I could not come up with a practical application for 
\page[+2] or \page[-2].  I understand the concept (I think):
it is two pages ahead, or two pages back, relative to the
current page.  But could anyone tell me in what context (sorry for
the pun) would that be used?

I must be missing something.  How could I possibly know what's
on page current + 2 or current - 2 unless I compile, in which
case the notation would be equivalent to inserting cross-references
manually?  As I said, I am missing something, but what.

Thanks in advance, elena

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Position margin text block near previous paragraph

2005-07-26 Thread Elena Fraboschi
Just a quick comment, since I cannot try anything in LiveContext right
at this time:

What you want is the equivalent of LaTeX's \marginpar , which is really
a \vtop whose beginning coincides with the beginning of the paragraph
being \note[d].

I am thinking that this would be a good test case for Brooks Moses'
LaTeX-to-ConTeXt set of macros.  I will experiment with it tonight
unless someone beats me to the punch :-)  Best, elena



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuphead command

2005-07-25 Thread Elena Fraboschi
Dear All:

I amhaving my own private warfare with the \setuphead command, and 
I wonder whether anyone can give me a hint.  I have three problems,
which I describe in detail below.  They are:

(1) how to setup run-in text after a subhead,
(2) how to align the section, subsection, ... headers left or right
(I am not talking of the running heads here)
(3) vertical whitespace before a section header when it falls at the
beginning of a new page

What is *not* wanted :-)

If the solution is use command=\mycommand, fine, I can do that.  just
please tell me that that's the only solution. I really am not asking
about how to write a Plain or LaTeX command.  Rather, what I'd like
to know is if there is a ConTeXt-ish way to do these things, and by
that I mean [something=something].

Description of my problems
==
(1) At the Indiana Univ. Math. J. we use three levels of headings, let's call 
them \section, \subsection, and \subsubsection.  The last two use run-in
text.  In Plain, the corresponding command might be something like this:

\def\mysubsection#1{\vskip14pt\indent{\tenbfsl#1}.~}

The outcome is this:

My cat Inca.  Inca is a beautiful black cat though she is now
approaching her golden years.

I could not come up with a [...=...] way to do run-in text after a
heading.  The only thing I did not try is something that occurred to 
me while walking to work - would this work?

\setuphead[subsection][
after={\blank[none]}
  ]
  
(2) Horizontal alignment.  This problem is almost funny.  Consider these
two setups:

\setuphead[section][
align=middle
]

\setuphead[subsection][
align=left,
]

The section will appear just fine, centered between the left and the
right margins.  The subsection head will appear flush RIGHT!  If, instead,
you write

\setuphead[subsection][
align=right,
]

the subsection head will appear flush LEFT.  Hmmm...  Hans, are you dyslexic?
:-)  (just in case, here comes another one :-))

I was able to obtain a subsection header as I wanted it by writing

\setuphead[subsection][
align=left,
command=\doglobal
]

The problem is that, even though it works, I do not want to learn ConTeXt
the wrong way.  I do not want to hack it if there are set, orthodox ways
to do what I want to do.

(3) Plain TeX had some setup commands (have to re-acquaint myself with
The TeXBook - have not done Plain in years) such that you could insert
vertical whitespace before a section (subsection...) header, as wanted,
but if in the course of writing that section header happened to fall
at the top of a new page, then the vertical whitespace before it would
be gobbled up.  The reason is very simple:  you do not want to have a
ragged top.  My question is this:  Is there any built-in thing like
that in ConTeXt?  Is there a command to gobble up vertical whitespace
when a page break sends a heading to the top of the next page?

Many thanks for any and all help.  Best, elena (I wore thin the
LiveContext interface this weekend - what a great thing to have!)



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuphead command

2005-07-25 Thread Elena Fraboschi
Dear all:

I just conducted some follow up experiments on my previous questions,
and found out that...

(1) In re producing run-in text following a subsection header:  neither
[after={\blank[none]},] nor [after=\nowhitespace,] have any impact:
I still get the subsection header on one line, and the text on the
next line.

(2) In re horizontal alignment, I guess there is some sort of 
inheritance going on here?  In the setup below, I had hoped to
obtain the section header in the middle, and the subsection header
flush left, since subsection had not be re-defined at all.
However, once I define section to be [align=middle,], the
remaining headers follow suit, even when no \setuphead command
is written for them:

\setuphead[section][
align=middle,
]

\starttext
\section{Will this work?}Hello world!  So here comes a
subsection that, not having been defined, would ideally
display at the default location, which is flush left.

\subsection{Is this flush left?}No, it isn't.
\stoptext

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuphead command

2005-07-25 Thread Elena Fraboschi
Hi nikolai, Many thanks for the hint in re right and left.  (The next one
to ask about this, I'll relieve you from the burden of having to answer
and will answer it myself! :-))

So I now have only two questions left unsolved, which are

(1) any ConTeXt command to gobble-up unwanted vertical space before
a section header, when the section header appears right at the
top of a new page?

(2) any ConTeXt way to do a \setuphead such that the text following
the header will be run-in text?

Many thanks.  Best, elena

P.S.  ok ok, I'll try to adopt your way of writing square bracketted
expressions...



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Strange behaviour of \bTABLE ... \eTABLE

2005-07-25 Thread Elena Fraboschi
Dear Mojca:

I think I see what the problem is.  If, instead of typing

\bTR\bTD
   a midaligned parbox:
\eTD\bTD[offset=0pt,width=1em] % 1em wide paragraph
   1 2 3
\eTD\eTR

you type
1\ 2\ 3\

you get what is wanted, namely,

  1
  2
  3
  
My guess is that there is a built-in bias not to split a line
but, rather, give you an overfull \hbox.  I forced the
issue by defining each column to be less than 1em (because 1
is a very narrow char that surely takes less than 1 em), and
by adding a typescript space after each number.  It might
even be possible to eliminate the typescript space and simply
define each column to be 0.25em, say, but I did not try it.
Best, elena

P.S.  Let me know if I missed the boat entirely.  This is the
first issue I attempt to answer.

Here is what I ran in LiveContext:

\starttext
\setupTABLE[frame=on] % only for debugging reasons
\setupTABLE[c][each][align=lohi] % to center vertically (any better way?)
\bTABLE
\bTR\bTD[offset=0pt,width=0.5em] % 1em wide paragraph
1\ 2\ 3\
\eTD\eTR
\eTABLE
\stoptext



Hello,

On the wiki (http://contextgarden.net/Vertically_centred) a while ago 
someone asked how to do the following in ConTeXt:

%%

\documentclass{article}
\begin{document}
a box with a table:
\fbox{\begin{tabular}[c]{l}1\\2\\3\end{tabular}}\par

a midaligned parbox: \parbox[c]{1em}{1 2 3}
\end{document}

%%

I don't know if this would be the proper solution, but for the second 
case (\parbox[c]{1em}{...} which should make a paragraph 1 em wide and 
center the paragraph box vertically) I tried the following:

%%

\setupTABLE[frame=on] % only for debugging reasons
\setupTABLE[c][1,2][align=lohi] % to center vertically (any better way?)
\bTABLE
\bTR\bTD
   a midaligned parbox:
\eTD\bTD[offset=0pt,width=1em] % 1em wide paragraph
   1 2 3
\eTD\eTR
\eTABLE

%%

My ConTeXt version is 2005.06.27.
See the vcenter-context-old.png for the result.

The strange thing is that the number 2 is still in the first line, 
although it is too wide.

Even more strange, I tried the same on live.contextgarden.net. See 
vcenter-context-new.png for the result.

vcenter-latex.tex is what the result should be.

---

This also results in a mess on the live.contextgarden.net:

\bTABLE
\bTR\bTD
 {\bTABLE
\bTR\bTD whatever \eTD\eTR
 \eTABLE}
\eTD\eTR
\eTABLE

Mojca

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuphead command

2005-07-25 Thread Elena Fraboschi
Wonderful, nikolai, many thanks.

I'll test tonight what you says happens automatically (gobbling up
whitespace at the top of a new page).  I'll use a grid to make sure
that that's the case: to the naked eye, it seemed as though there was
an awful amount of whitespace at the top of the page, but we'll see:
I could be wrong.

However, you have solved at least two of my three problems.  Thanks a
lot, elena

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context