ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: newbie questions (fonts, xml, etc.)
@ 2002-07-10 15:10 Bruce D'Arcus
  0 siblings, 0 replies; 6+ messages in thread
From: Bruce D'Arcus @ 2002-07-10 15:10 UTC (permalink / raw)


Regarding xml in ConTeXt, and Berend's DocBook example:

If I add the code you posted to the preamble, it works, but if I do the 
following, it doesn't.  Shouldn't it?

\useXMLfilter[contml]

\starttext

\startXMLdata
Bold is not always <b>beautiful</b> but if you really want it, you can
get it by using this element.

There is a (not so) subtle difference between a display 
<quotation>quotation</quotation> and an <quote>in<compound/>line</quote>
one. 
\stopXMLdata

\stoptext

Also, any general suggestions if I want to move away from 
my current dependence on Word and Endnote to an xml-based system from 
which I could easily generate pdf docs via ConTeXt, and rtf docs as 
well?  Bibliographic references are hugely important, and so the source 
of my biggest concern.  If I run ConTeXt on an xml file, I assume I 
want to code that file such that ConTeXt knows to run BibTeX on it.  
But then what if I want to convert the xml to rtf?

The LaTeX solutions I've been able to get to work (latex2rtf, for 
example) can't handle the bib data correctly.

Thanks,
Bruce


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: newbie questions (fonts, xml, etc.)
       [not found] <8831344.1025912440347.JavaMail.cpadmin@nassol01>
@ 2002-07-06  7:15 ` Berend de Boer
  0 siblings, 0 replies; 6+ messages in thread
From: Berend de Boer @ 2002-07-06  7:15 UTC (permalink / raw)
  Cc: ConTeXt mailinglist

"Bruce D'Arcus" <darcusb@muohio.edu> writes:

> On below, I see: what we currently have is the same procedure as with 
> LaTeX, while the fix you sent Hans improves on this by making bib 
> generation transparent.  So I lose nothing compared to LaTeX?  

No.

> What purpose does the ConTeXt-specific bib module have then?

To be able to include bibtex entries, to format them, to say which
databases you want to select, etc.

-- 
Live long and prosper,

Berend de Boer


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: newbie questions (fonts, xml, etc.)
  2002-07-05 14:53 Bruce D'Arcus
@ 2002-07-05 21:35 ` Berend de Boer
  0 siblings, 0 replies; 6+ messages in thread
From: Berend de Boer @ 2002-07-05 21:35 UTC (permalink / raw)
  Cc: ntg-context

"Bruce D'Arcus" <darcusb@muohio.edu> writes:

> >> I had little luck finding any simple files that I could use to figure 
> >> this out.  Are there any?  
> >
> >See my docbook example I posted.
> 
> I'd find that on the list archive?

Yea, just a few days ago.

> >I use it all the time. I send a fix to Hans to produce bibtex
> >automatically from texexec, so that hopefully will be included in the
> >next release, now you need to run bibtex by hand.
> 
> Can clarify the "produce bibtex automatically" part, and what you mean 
> by "run bibtex by hand"?

I assume you use texexec to compile your documents? After texexec you
have to say:

        bibtex mydocument

and then

        texexec mydocument

So two extra commands, annoying and hopefully no longer necessary in
the near future.

-- 
Live long and prosper,

Berend de Boer


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: newbie questions (fonts, xml, etc.)
@ 2002-07-05 14:53 Bruce D'Arcus
  2002-07-05 21:35 ` Berend de Boer
  0 siblings, 1 reply; 6+ messages in thread
From: Bruce D'Arcus @ 2002-07-05 14:53 UTC (permalink / raw)


Berend de Boer wrote:

>"Bruce D'Arcus" <darcusb@muohio.edu> writes:
>
>> 2)  Footnotes: how would I set them up with an indent and whitespace 
>> after?
>
>Don't know, is there a \setupfootnote(s) command?

Yes, but it doesn't work as I expect it to ;-)

>> I had little luck finding any simple files that I could use to figure 
>> this out.  Are there any?  
>
>See my docbook example I posted.

I'd find that on the list archive?

>> 7)  Finally, what is the current status on bibliographic support?  I 
>> need to be able to use BibTeX bst files, or to easily create the 
>> equivalent in ConTeXt.  Is this possible now, or in the near-future?
>
>I use it all the time. I send a fix to Hans to produce bibtex
>automatically from texexec, so that hopefully will be included in the
>next release, now you need to run bibtex by hand.

Can clarify the "produce bibtex automatically" part, and what you mean 
by "run bibtex by hand"?

Thanks for the help!

Bruce


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: newbie questions (fonts, xml, etc.)
  2002-07-05  2:20 Bruce D'Arcus
@ 2002-07-05  7:42 ` Berend de Boer
  0 siblings, 0 replies; 6+ messages in thread
From: Berend de Boer @ 2002-07-05  7:42 UTC (permalink / raw)
  Cc: ntg-context

"Bruce D'Arcus" <darcusb@muohio.edu> writes:

> 2)  Footnotes: how would I set them up with an indent and whitespace 
> after?

Don't know, is there a \setupfootnote(s) command?

> 3)  How do I set the Chapter heading right-aligned, with the chapter 
> number in the right margin.  The following didn't work, and I don't 
> know why...
> 
> \setuphead
> [chapter]
> [align=right,
> alternative=inmargin]

I usually do this:

\def\MyHead#1#2{%
  %my header
}

\setuphead
  [chapter]
  [header=empty,
   command=\MyHead,
   style=\relax]

within \MyHead you can basically do whatever you want. For example
just the standard tex stuff with boxes and moveing them around left or
round. \framed works also great.

> 5)  The xml support intrigues me.  But, I don't know much about xml, 
> and while I've read the doc "xml in context," I'm still unsure of how I 
> would actually code an xml doc (and the ConTeXt doc itself) such that 
> it could easily be processed with ConTeXt.  Say, for example, I have an 
> app that outputs xhtml: would ConTeXt be able to process such files in 
> theory?

Yes.

> I had little luck finding any simple files that I could use to figure 
> this out.  Are there any?  

See my docbook example I posted.

> 7)  Finally, what is the current status on bibliographic support?  I 
> need to be able to use BibTeX bst files, or to easily create the 
> equivalent in ConTeXt.  Is this possible now, or in the near-future?

I use it all the time. I send a fix to Hans to produce bibtex
automatically from texexec, so that hopefully will be included in the
next release, now you need to run bibtex by hand.

-- 
Live long and prosper,

Berend de Boer


^ permalink raw reply	[flat|nested] 6+ messages in thread

* newbie questions (fonts, xml, etc.)
@ 2002-07-05  2:20 Bruce D'Arcus
  2002-07-05  7:42 ` Berend de Boer
  0 siblings, 1 reply; 6+ messages in thread
From: Bruce D'Arcus @ 2002-07-05  2:20 UTC (permalink / raw)


I just started experimenting with ConTeXt a bit the other day and, 
while I've read the documentation I downloaded, I ran into a few issues 
I would appreciate help on.  I apologize if I'm a bit long-winded 
here...

1)  First, and probably most tricky, has to do with fonts.  It took me 
awhile, but I figured out how to set up the CT equivalent of LaTeX's fd 
files (is it not possible for ConTeXt to read these files?).  But I 
have a font that has a whole bunch of extra figure glyphs (which I've 
mapped into slots of characters I never use) that I want to use in the 
following way:

	old-style (default, so no problem)
	monospaced lining (want to use in tables)
	superiors (footnotes)
	proportional lining (headings)

In other words: I want to tell ConTeXt "use the glyphs in these slots 
for these purposes."  Is this possible, and if yes, how do I do it?  
(In LaTeX, I used lowercase mapping to help deal with the footnote 
issue, but never did figure it all out.)	

2)  Footnotes: how would I set them up with an indent and whitespace 
after?

3)  How do I set the Chapter heading right-aligned, with the chapter 
number in the right margin.  The following didn't work, and I don't 
know why...

\setuphead
[chapter]
[align=right,
alternative=inmargin]

4)  How do I set up page numbering and headers/footers such that they 
are different on the first page of a chapter or article (with 
headers/footers suppressed) than the subsequent pages?

5)  The xml support intrigues me.  But, I don't know much about xml, 
and while I've read the doc "xml in context," I'm still unsure of how I 
would actually code an xml doc (and the ConTeXt doc itself) such that 
it could easily be processed with ConTeXt.  Say, for example, I have an 
app that outputs xhtml: would ConTeXt be able to process such files in 
theory?

My needs are really pretty simple (no math support, for example: just 
standard headings, footnotes, etc.).  My attempt to add a short piece 
of xml code to a document failed.  I'm not clear from the documentation 
exactly what I need in the preamble.  I assumed it was just to load the 
appropriate xtag filter (from what I could tell, contml has everything 
I need in the way of entities), but it seems I need more than this.  

I had little luck finding any simple files that I could use to figure 
this out.  Are there any?  

6)  The other thing that intrigues me about ConTeXt is its support for 
interactive documents.  Is there a ConTeXt equivalent to LaTeX .sty 
files, perhaps with some available for simply producing interactive 
docs similar to the ConTeXt docs produced by PRAGMA?

7)  Finally, what is the current status on bibliographic support?  I 
need to be able to use BibTeX bst files, or to easily create the 
equivalent in ConTeXt.  Is this possible now, or in the near-future?

Thanks in advance for any help!

Bruce


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-07-10 15:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-10 15:10 newbie questions (fonts, xml, etc.) Bruce D'Arcus
     [not found] <8831344.1025912440347.JavaMail.cpadmin@nassol01>
2002-07-06  7:15 ` Berend de Boer
  -- strict thread matches above, loose matches on Subject: below --
2002-07-05 14:53 Bruce D'Arcus
2002-07-05 21:35 ` Berend de Boer
2002-07-05  2:20 Bruce D'Arcus
2002-07-05  7:42 ` Berend de Boer

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).