Re: [NTG-context] (Con)TeX(t), Unicode and accented characters

2004-12-20 Thread r . ermers
Mojca,

In reply to your question:

> I don't really understand how accented characters are typeset in
> (Con)TeX(t). One of the main reasons for switching to LaTeX (maybe 8
> years ago) someone mentioned was: "You don't have to worry about accented
> characters. You can make any accented character and it will work all over
> the world." (We actually did have lots of problems with MS Word and web
> browsers at that time.) And it was true.

You know that all characters in a font have a number. If you type a, the font 
mechanism makes sure that you see an a. In reality the font shows you the 
character that is put on the numerical position of a. In the font dingbats for 
example, the character on that position is not an a, but a symbol.

In Latex the combination \"{a} can mean two things:
1. in most fonts: show the charachter on the a given numerical position, which 
means that there is one character ä.

2. in some other fonts \"{a} means: combine " with a and make an ä. This means 
that " is combined with the character on the numerical position of a. TeX does 
this very well and thus construes very acceptable diacritical signs like \"{q}, 
\d{o}, \v{o}, which do not exist in regular fonts.

If you have a font which contains \"{q}, \d{o} or some other special 
characters, you may instruct TeX not to create the character, but rather to 
show the contents of a given numerical position in that font. That's what the 
.enc and .fd files under Latex are for.

That's also the reason there are, or used to be, special fonts for Polish an 
Czech and other languages: they contain predefined characters in one single 
numerical position, e.g. \v{s} and \v{c} that TeX does not have to create anew 
from two signs.

Kind regards,

Robert



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Tabulate problem

2004-12-20 Thread VnPenguin
Hi all,
I'm trying a simple tabulate env:
--- begin code 
\starttext
\starttabulate[|l|l|]
\NC foo \NC cmd 2>&1 | grep bar \NC \NR
\stoptabulate
\stoptext
--- end code --

I have error:
-- begin error ---
 grep bar \NC \NR \tabulatetailcontent \removefunnytabulateline 
! Forbidden control sequence found while scanning use of \next.
 
\par 
 
   \endtemplate 
 \endtemplate 

\processtabulate ...cr \fulltabulatecontent \crcr 
  }}\ifnum \nofautotabulate ...
l.21 \stoptabulate
--- end error
--

When I changed "&" by "\&" I have the same error.
Anyone could tell me how to fix it please.

Thank you in advance,

Quy NGUYEN-DAI
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] (Con)TeX(t), Unicode and accented characters

2004-12-20 Thread VnPenguin
On Mon, 20 Dec 2004 21:52:17 +0100, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Mojca Miklavec wrote:
[...]
> > The second problem: This works under Windows when typesetting in code
> > page 1250. How can I use accented characters if text is typeset in
> > Unicode (or latin2) in Linux?
> 
> you probably need to configure you reditor to use utf

Under Linux I use vim/gvim, gedit, gtk2edit for editing Vietnamese
text in UTF-8 without any problem :)
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bibtex & SVG

2004-12-20 Thread Henning Hraban Ramm
Am 20.12.2004 um 13:48 schrieb MichaÅ Morawski:
Is it possible to include graphics (or even animations) in SVG format 
into the pdf documents ?
Which graphics formats you can use depends from the TeX processor.
AFAIK there's none that can handle SVG.
Not even Adobe's Distiller can handle SVG (perhaps V7, don't know).
(I'm just looking for a viewer that can handle SVG 1.2 / SVG Print - no 
chance...)

GrÃÃlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] (Con)TeX(t), Unicode and accented characters

2004-12-20 Thread Mojca Miklavec

Hans Hagen wrote:
and alike; if you want utf, you should say (at the top of the file)
\enableregime[utf]
Thanks for many other advices also, but especially for this one: I 
probably already tried this out. Well, almost ;). Since niether 
\enableregime[utf8] nor \enableregime[utf-8] resulted in the desired 
output. (I was always used to write '8' after utf since utf-16 and some 
others exist as well.)

Thank you, Mojca
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re:floats pb in a list

2004-12-20 Thread olivier Turlier
If you don't need automatic placing but in-place figures, don't use 
\place...

Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
Thanks for your (logical)answer, it's working now when following your 
advice.
--
Olivier TURLIER
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] (Con)TeX(t), Unicode and accented characters

2004-12-20 Thread Hans Hagen
Mojca Miklavec wrote:
But when I switched to ConTeXt I came against that problem again.
In LaTeX I used
\v{c}\v{s}\v{z}
this also works in context
at first, later
\usepackage{csz} ... "c"s"z
in this case, i assume that csz makes " active and such; if you really want that 
, we shoul dmake an enco-fcz, with definitions like:

\startlanguagespecifics[cz]
  \appendtoks \makecharacteractive " \to \everynormalcatcodes
  \installcompoundcharacter "c {\v{c}}
  \installcompoundcharacter "s {\v{s}}
  \installcompoundcharacter "z {\v{z}}
\stoplanguagespecifics
and alike; if you want utf, you should say (at the top of the file)
\enableregime[utf]
As I didn't know how to use any other the font, I always used CMR, the 
default, so I didn't have problems with exotic fonts either.
this should work with all fonts, since there are fallback definitions
% output=pdf -translate-file=cp1250cs
\setupbodyfont
[csr,ams,rm]
try to avoid code pages
What I don't really understand: why did the Chech TUG have to design 
*their own font*, csr, (or made changes to cmr) if accented characters 
worked perfectly already in plain TeX?
in cmr \v{s} is actually two characters, while in csr it's one (composed) 
character (built of two characters but seen as one); therefore when you use csr 
fonts, you can get proper hyphenation (which is notthe case in cmr where the 
usage of \accent primitive spoils the game);

next year, when i can assume that the new latin modern fonts are available 
everywhere, i will drop cmr as default cum suis in favor of lsr (which has cmr, 
plr, csr, vnr, aer etc included)

The second problem: This works under Windows when typesetting in code 
page 1250. How can I use accented characters if text is typeset in 
Unicode (or latin2) in Linux?
you probably need to configure you reditor to use utf
The third problem: How do I typeset '\v{c}' in some other font? I do 
understand that it may not function in just any font since someone has 
to tell the computer how the accented characters are built, but as long 
as \v{c} works, there's no reason for
\useencoding[utf8]
and then continuing with unicode encoded characters not to produce the 
desired result.
don't worry, other fonts work ok; if an encoding does not support the chars you 
need, a composed char is constructed; [font encodings have othing to do with 
input encoding but there do influence hyphenations]

if i'm right, ec, texnansi, and qx encoding all serve your purpose
Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] (Con)TeX(t), Unicode and accented characters

2004-12-20 Thread Mojca Miklavec
Here's a short version of my question:
How do I enable unicode encoded characters (just normal accented latin 
characters) to be typeset in (any font) in ConTeXt, like the 
\usepackage[utf8]{inputenc} in LaTeX?

And here the long one:

I don't really understand how accented characters are typeset in 
(Con)TeX(t). One of the main reasons for switching to LaTeX (maybe 8 
years ago) someone mentioned was: "You don't have to worry about 
accented characters. You can make any accented character and it will 
work all over the world." (We actually did have lots of problems with MS 
Word and web browsers at that time.) And it was true.

But when I switched to ConTeXt I came against that problem again.
In LaTeX I used
\v{c}\v{s}\v{z}
at first, later
\usepackage{csz} ... "c"s"z
(which works pretty much the same as "a"o"u in German)
and finally (when someone told me about that possibility)
\usepackage[utf8]{inputenc} ... ÄÅÅ
As I didn't know how to use any other the font, I always used CMR, the 
default, so I didn't have problems with exotic fonts either.


But here we come to ConTeXt.
For the German "Umlaut", \"{a}\"{o}\"{u} (ÃÃÃ), this was satisfactory:
\useencoding[windows-1250]
\mainlanguage[de]
For \v{c}\v{s}\v{z} (ÄÅÅ) this wasn't the case, so a proposed solution 
from another ConTeXt user was:

% output=pdf -translate-file=cp1250cs
\setupbodyfont
[csr,ams,rm]
What I don't really understand: why did the Chech TUG have to design 
*their own font*, csr, (or made changes to cmr) if accented characters 
worked perfectly already in plain TeX?

The second problem: This works under Windows when typesetting in code 
page 1250. How can I use accented characters if text is typeset in 
Unicode (or latin2) in Linux?

The third problem: How do I typeset '\v{c}' in some other font? I do 
understand that it may not function in just any font since someone has 
to tell the computer how the accented characters are built, but as long 
as \v{c} works, there's no reason for
\useencoding[utf8]
and then continuing with unicode encoded characters not to produce the 
desired result.

Thank you,
Mojca
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new beta

2004-12-20 Thread Dan Luecking
At 11:59 AM 12/17/2004, you wrote:
Hi,
I uploaded a new beta with a couple of fixed discussed last weeks as well 
as a better mp to pdf handling of pen based graphics.
That's goog.

Hans
ps. http://www.pragma-ade.com/2004.pdf
Happy holidays to you, too.
And now I must unsubscribe...
Goodbye all,
Dan
Daniel H. Luecking
Department of Mathematical Sciences
University of Arkansas 

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] No bonds visibel with ppchtex

2004-12-20 Thread Kai Straube
Am Samstag, 18. Dezember 2004 23:42 schrobst Du:

> >>can you try
> >>
> >>   texexec --pdf --automp yourfile
> >>
> >>it may be that your context is configured for runtime mp processing while
> >>your tex does not have write18 enabled
> >
> > Thank you for your answer,
> >
> > but this results in no other output ;-(
>
> strange, check your cont-sys.tex file if metafun is run at runtime
> (write18) and if so, make sure that in texmf.cnf write18 is enabled as well

Hi, 

here are this files. I dont no if they are correct so ;-(

Kai
%D \module
%D   [   file=cont-sys,
%Dversion=1995.10.10,
%D  title=\CONTEXT\ Miscellaneous Macros,
%D   subtitle=System Specific Setups,
%D author=Hans Hagen,
%D   date=\currentdate,
%D  copyright={PRAGMA / Hans Hagen \& Ton Otten}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for 
%C details. 

\unprotect

% Here you can take care of overloading some (style) 
% defaults. What goes here, depends on your local system. 
%
% The following commands sets the default font encoding:
%
% \setupencoding [\s!default=ec] 
%
% You can let \CONTEXT\ load the map files for \PDFTEX. 
%
% \autoloadmapfilestrue
%
% If you use the more verbose naming scheme, uncomment this: 
%
% \usetypescript [map] [default,\defaultencoding] 
%
% or : 
%
% \usetypescript [map] [all] 
%
% In case you have set psfonts.map already, you can comment 
% the following lines. Beware: pdftex uses the fontname 
% (second entry on map file lines) for (not so) clever 
% remapping, so in case of troubles, remove the names (is 
% safe)!   
%
% \preloadmapfile [original-ams-cmr]
% \preloadmapfile [original-ams-euler]
% \preloadmapfile [il2-ams-cmr]
% \preloadmapfile [pl0-ams-cmr]
%
% If you want the default berry names (ec and 8r only): 
%
% \usetypescript [berry] [\defaultencoding]
%
% Overload Lucida by Times cum suis:
%
% \definetypescriptsynonym [lbr] [pos] 
%
% Compensate for missing files:
%
% \definefontsynonym [gbhei]   [gbsong]
% \definefontsynonym [gbheisl] [gbsong]
% \definefontsynonym [gbheisl] [gbsong]
%
% The already loaded map file list can be reset with:
%
% \forgetmapfiles
%
% Setting up a global figure path: 
%
% \setupexternalfigures [\c!gebied={e:/fig/eps,t:/mine/figs}]
%
% Loading a specific special driver: 
%
% \setupoutput [dviwindo]

% Changing language defaults: 
% 
% \setuplanguage
%   [nl]
%   [\c!leftquote=\upperleftsinglesixquote,
%\c!leftquotation=\upperleftdoublesixquote]

% Loading local preferences, for example
%
% \input prag-gen % company styles 
% \input prag-log % more company styles 
%
% Enabling run time \METAPOST\ (also enable \write18 in 
% texmf.cnf):

\runMPgraphicstrue 
\runMPTEXgraphicstrue

% This saves some runtime, but needs a format, which you can
% make with 'texexec --make --alone metafun'. Make sure that 
% the mem files are moved to the used web2c path (locate with 
% 'kpsewhich plain.mem').

\useMETAFUNformattrue

% Enabling nested pretty printing:

\newprettytrue 

% This can be a way to get things working on system with 
% name clashes. (Some \TeX's tend do search system wide.)

\protectbufferstrue

% You can enable a more extensive figure searching, but 
% normally this is not really needed and even annoying. 
%
% \runutilityfiletrue 

% You can also load additional encodings here: 

% \useregime[cyr]
% \useencoding[cyr]
% \enableregime[cp1251]
% \setupbodyfont[cyr]

% So far. 

\protect \endinput
% original texmf.cnf -- runtime path configuration file for kpathsea.
% (If you change or delete `original' on the previous line, the
% distribution won't install its version over yours.)
% Public domain.
% 
% What follows is a super-summary of what this .cnf file can
% contain. Please read the Kpathsea manual for more information.
% 
% texmf.cnf is generated from texmf.in, by replacing @var@ with the
% value of the Make variable `var', via a sed file texmf.sed, generated
% (once) by kpathsea/Makefile (itself generated from kpathsea/Makefile.in
% by configure).
% 
% Any identifier (sticking to A-Za-z_ for names is safest) can be assigned.
% The `=' (and surrounding spaces) is optional.
% No % or @ in texmf.in, for the sake of autogeneration.
% (However, %'s and @'s can be edited into texmf.cnf or put in envvar values.)
% $foo (or ${foo}) in a value expands to the envvar or cnf value of foo.
% 
% Earlier entries (in the same or another file) override later ones, and
% an environment variable foo overrides any texmf.cnf definition of foo.
% 
% All definitions are read before anything is expanded, so you can use
% variables before they are defined. 
% 
% If a variable assignment is qualified with `.PROGRAM', it is ignored
% unless the current executable (last filename component of argv[0]) is
% named PROGRAM.  This foo.PROGRAM construct is not recognized on the
% right-hand side. For environment variables, use FOO_PROGRAM.
% 
% Which file formats use which paths

Re: [NTG-context] Error during processing extremely simple file

2004-12-20 Thread Hans Hagen
Michał Morawski wrote:
Hi,
I have properly generated the format:
texexec --make --language=pl --bodyfont=plr en
Then I have crated the following file:
% interface=en output=pdftex translate=cp1250pl
%\mainlanguage[pl]
\starttext
ABCD
\stoptext
locate your cont-sys.tex file and make the c!dutch -> c!english, so
c!gebied becomes c!directory
(for beta users: temfstart bin:youreditor kpse:cont-sys.tex will load the )
Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] undefined \underbar

2004-12-20 Thread Hans Hagen
Peter Rolf wrote:
Hello Hans,
the definition of \underbar is commented out in the current beta.
oeps, i commented to much, i'll fix it
Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bibtex & SVG

2004-12-20 Thread Taco Hoekwater
(re-replied)
I wrote a bibliographic module for context, see
   http://tex.aanhet.net/bib
My module provides a framework to facilitate the creation of bibliographic 
'styles' like harvard, of which the distribution contains two full examples
at the moment ('apa' and 'aps' styles).
Greetings, Taco
Michał Morawski wrote:
Does Context support bibtex together with harvard style citations?
and
Is it possible to include graphics (or even animations) in SVG format 
into the pdf documents ?

Thank You in advance
Michal Morawski

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Error during processing extremely simple file

2004-12-20 Thread Michał Morawski
Hi,
I have properly generated the format:
texexec --make --language=pl --bodyfont=plr en
Then I have crated the following file:
% interface=en output=pdftex translate=cp1250pl
%\mainlanguage[pl]
\starttext
ABCD
\stoptext
Unfortunately I receive the following message:
TeXExec 4.0 - ConTeXt / PRAGMA ADE 1997-2003
   executable : pdfetex
   format : cont-en
inputfile : tctx
   output : pdftex
interface : en
  translation : cp1250pl
 current mode : none
  TeX run : 1
This is pdfeTeXk, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
%&-line parsing enabled.
(c:/TexLive/texmf/web2c/cp1250pl.tcx)
output format initialized to DVI
entering extended mode
(./tctx.tex
ConTeXt  ver: 2004.12.06  fmt: 2004.12.20  int: english  mes: english
language   : language en is active

system : cont-new loaded
(c:/TexLive/texmf/tex/context/base/cont-new.tex
systems: beware: some patches loaded from cont-new.tex!
color  : palette rollover is available
system (E-TEX) : [line 1083]
system (E-TEX) : [line 1138]
)
system : cont-old loaded
(c:/TexLive/texmf/tex/context/base/cont-old.tex
loading: Context Old Macros
)
system : cont-fil loaded
(c:/TexLive/texmf/tex/context/base/cont-fil.tex
loading: Context File Synonyms
)
system : cont-sys.rme loaded
(c:/TexLive/texmf/tex/context/user/cont-sys.rme
fonts  : [berry] [ec] []
(c:/TexLive/texmf/tex/context/base/type-syn.tex)
(c:/TexLive/texmf/tex/context/base/type-enc.tex)
(c:/TexLive/texmf/tex/context/base/type-siz.tex)
(c:/TexLive/texmf/tex/context/base/type-map.tex)
(c:/TexLive/texmf/tex/context/base/type-spe.tex)
(c:/TexLive/texmf/tex/context/base/type-exa.tex)
(c:/TexLive/texmf/tex/context/base/type-akb.tex))
bodyfont   : 12pt rm is loaded
language   : patterns en->default:default->1->2:2 
uk->default:default->2->2
:2 de->texnansi:texnansi->3->2:2 de->ec:ec->4->2:2 
fr->texnansi:texnansi->5->2:
2 fr->ec:ec->6->2:2 es->default:default->7->2:2 
it->texnansi:texnansi->8->2:2 i
t->ec:ec->9->2:2 nl->texnansi:texnansi->10->2:2 nl->ec:ec->11->2:2 loaded
specials   : tex,postscript,rokicki loaded
system : tctx.top loaded
(./tctx.top
specials   : loading definition file tpd
(c:/TexLive/texmf/tex/context/base/spec-tpd.tex
specials   : loading definition file fdf
(c:/TexLive/texmf/tex/context/base/spec-fdf.tex  
system (E-TEX) : [line 2255] \ifcsname
 )
specials   : fdf loaded
 )
specials   : fdf,tpd loaded
! Undefined control sequence.
 \c!gebied
={C:/WINDOWS/system32/config/systemprofile/}
\xprocesscommaitem #1,#2->\if ,#1
,[EMAIL PROTECTED] \xprocesscommaitem \else 
\if [EMAIL PROTECTED]

\xdogetparameters #1]->\xprocesscommaitem #1,]
 ,[EMAIL PROTECTED]@
\dosetupsystem [#1]->\getparameters [\??sv ][#1]
   \setuprandomize 
[\@@svrandom...
l.4 ...C:/WINDOWS/system32/config/systemprofile/}]

Does anybody know where is the problem?

Sincerely
Michal Morawski 

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Bibtex & SVG

2004-12-20 Thread Michał Morawski
Does Context support bibtex together with harvard style citations?
and
Is it possible to include graphics (or even animations) in SVG format into 
the pdf documents ?

Thank You in advance
Michal Morawski

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] undefined \underbar

2004-12-20 Thread Peter Rolf
Hello Hans,
the definition of \underbar is commented out in the current beta.
Greetings,
   Peter

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context