Re: [NTG-context] minimal example for Cyrillic
Some time ago this example used to work: \enableregime[utf] \usetypescript[modern-base][t2a] \setupbodyfont[modern] \starttext Немного текста. \stopbuffer This requires cm-super package. Unfortunately after some update this stopped working. If someone puts me on a right way to start debugging font loading mechanism I'll try to sort this out. Problem is that map files seem to be loaded, fonts are installed in right places but ConTeXt doesn't try to generate tfm. It just always uses default fonts (LM ones with ec encoding). I've tried varous combinations (\setupencoding, fiddling with typescripts) with no difference. Tried this on MkII, as MkIV seem to require even more tuning. Gour wrote: Hello! I was able to persuade one user to prepare ConTeXt package for NixOS distro, but, unfortunately, being from Russia he quickly discovered that he minimal example from wiki (http://wiki.contextgarden.net/Russian) does not work, i.e. \enableregime[utf] \useencoding[cyr] \definetypeface [russian] [rm] [serif] [computer-modern] [default] [encoding=t2a] \setupbodyfont[russian] \starttext Мама и Папа % Some Russian characters \stoptext does transliterate Russian characters. I do not have any experience working with Cyrillic, so if anyone can provide minimal working example it would be very nice? I persistently claimed that it must work! :-) Sincerely, Gour ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Best Regards, Oleg Kolosov ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] setuptyping
Hans van der Meer wrote: I get some unexpected results with setuptyping. According to the manual the style-parameter has options normal, bold, small, etc. But if I use them I get the option back. The only thing that seems to work is style=command. Example: \setuptyping[style=bold] \starttext \starttyping abcd \stoptyping \stoptext Results in typeset text boldabcd yours sincerely, dr. H. van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Try \setuptyping[style=\bf] -- always works. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Dropped caps, \startlines\stoplines, and indentation question
Adrian Drury wrote: Hello, I'm having trouble using dropped caps within \startlines\stoplines. I'm trying to typeset some poetry and I'm using \setuplines[space=yes]. I'd like to use dropped caps and have the indented lines be additionally indented by any space at the beginning of the lines. See the following example - the first part shows roughly the result I want (but with manual formatting/spacing), the second part shows the result of \DroppedCaps inside \startlines\stoplines, and the third part uses the lettrine module. The lettrine module comes close, but Nindent doesn't seem to affect the indented lines within \startlines\stoplines. \usemodule[lettrine] \def\MyDroppedCaps% { \DroppedCaps {} {Serif} {2\baselineskip} {2pt} {1\baselineskip} {2} } \setuplines[space=yes] \starttext \MyDroppedCaps S{\sc umer} is icumen in,\crlf \hbox to .6em{}Lhude sing cuccu!\crlf Groweth sed, and bloweth med,\crlf \hbox to .6em{}And springth the wude nu---\crlf \hbox to 3.3em{}Sing cuccu! \startlines \MyDroppedCaps S{\sc umer} is icumen in, Lhude sing cuccu! Groweth sed, and bloweth med, And springth the wude nu--- Sing cuccu! \stoplines \startlines \lettrine{S}{umer} is icumen in, Lhude sing cuccu! Groweth sed, and bloweth med, And springth the wude nu--- Sing cuccu! \stoplines \stoptext Any suggestions for how to do this? I'm a beginning ConTeXt user, so if there's a better/different way to do this, I'd be happy to hear it! Also, I read the list in digest form. For the benefit of people using threaded mail readers, is there a better way to reply to individual messages than replying to the digest message and editing the Subject line appropriately? Thanks very much, Adrian Drury ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Try \startlines \vbox{\lettrine{S}{umer} is icumen in,\crlf Lhude sing cuccu!} Groweth sed, and bloweth med, And springth the wude nu--- Sing cuccu! \stoplines -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] A few questions about eating spaces in macros
Hans Hagen wrote: Radhelorn wrote: Hello! I have a few questions about ignoring unnecessary spaces and blank lines. The following example illustrates my problem. In the first start/stop pair text after \startcommand is not bold as it should be, in the second it is bold but blank line is before. I've tried to fix this with various manipulations with \noindent with moderate success. Another problem is necessity to explicitly add % character before \stopcommand to ignore newline. How to do this inside macro with this combination of lines and sidebar? Thanks in advance for any suggestions. - \setuplines[before=,after=] \def\startcommand{\dosingleargument\dostartcommand} \def\dostartcommand[#1]% {\bgroup\defineshortcut[style=bold]#1\startlines\startsidebar} \def\stopcommand{\stopsidebar\stoplines\egroup} \starttext \startcommand this must be bold \input knuth this is bold% \stopcommand some text \startcommand[arg] this is bold indeed but with a blank line before \input knuth \stopcommand \stoptext \ignorespaces \removeunwantedspaces Hans After some fiddling I've found that it is not spaces that interfere -- it's newlines. Is there a mechanism to ignore last newline as: text text \commandhere to automatically become text text\commandhere and some mechanism to ignore future newline \somecommand text here to become \somecommand text here ?? Also I've found that for the very first example to work there is a need to manually add \leavevmode or something like this: \startcommand \leavevmodethis must be bold Maybe if there was an \ignorespaces after argument eating it would solve problems. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] A feq questions about eating spaces in macros
Hello! I have a few questions about ignoring unnecessary spaces and blank lines. The following example illustrates my problem. In the first start/stop pair text after \startcommand is not bold as it should be, in the second it is bold but blank line is before. I've tried to fix this with various manipulations with \noindent with moderate success. Another problem is necessity to explicitly add % character before \stopcommand to ignore newline. How to do this inside macro with this combination of lines and sidebar? Thanks in advance for any suggestions. - \setuplines[before=,after=] \def\startcommand{\dosingleargument\dostartcommand} \def\dostartcommand[#1]% {\bgroup\defineshortcut[style=bold]#1\startlines\startsidebar} \def\stopcommand{\stopsidebar\stoplines\egroup} \starttext \startcommand this must be bold \input knuth this is bold% \stopcommand some text \startcommand[arg] this is bold indeed but with a blank line before \input knuth \stopcommand \stoptext -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] About 'repeat' option of \startitemize
Radhelorn wrote: I have another observation in behaviour of 'repeat' option but will try to experiment with this a little more. This itm module is too elaborate. After Taco's t-itmfix I've came up with my own little fix. Please observe. -- Radhelorn [EMAIL PROTECTED] \def\dolistitem % evt aantal items opslaan per niveau, scheelt zoeken {\ifconditional\textlistitem % begin of item \else \par \fi %\ignorespaces \increment\noflistelements \ifnum\itemcolumndepth=\zerocount \ifconditional\optimizelistitem \ifnum\noflistelements=\plusone% tgv bv kolommen/nesting \findtwopassdata\s!list{\noflists:}% % wordt soms de volgorde \fi% verstoord, vandaar \find \iftwopassdatafound \ifcase0\twopassdata\relax \twopassdatafoundfalse \fi \fi \iftwopassdatafound \ifnum\twopassdata=3 \ifnum\noflistelements1 \doitembreak\itemnobreak \fi \else\ifnum\twopassdata3 \ifnum\noflistelements=2 \ifconditional\introlistitem \doitembreak\nobreak \else \doitembreak\itemnobreak \fi \else\ifnum\twopassdata=\noflistelements\relax \doitembreak\itemnobreak \else\ifnum\noflistelements2 \doitembreak\itembreak \else \ifconditional\introlistitem\else\doitembreak\itembreak\fi \fi\fi\fi \fi\fi \fi \fi\fi \noindent \setbox8\hbox {\ifconditional\headlistitem \ifconditional\symbollistitem \symsymbol \else \doitemattributes\itemlevel\c!headstyle\c!headcolor{\listitem}% \fi \else \ifconditional\symbollistitem \symsymbol % no attributes, why? \else \doitemattributes\itemlevel\c!style\c!color{\listitem}% \fi \fi}% \doifsomething\somdestination {\setbox8\hbox{\goto{\box8}[\somdestination]}}% \globallet\somdestination\empty \dimen2=\getitemparameter\itemlevel\c!width\relax % new, prevents loops when symbol is (not yet found) graphic \ht8=\strutheight \dp8=\strutdepth % so that content differs per run (esp mp graphics afterwards) \checkforrepeatedlistitem \ifdim\dimen2\zeropoint\relax \llap{\ifconditional\sublistitem\llap{+}\fi\box8\hskip\leftmargindistance}% \else \ifdim\dimen2=\zeropoint\relax \calculatelistwidth1{\dimen0}% \else \calculatelistwidth\itemlevel{\dimen0}% \fi \ifconditional\textlistitem \hbox{\ifconditional\sublistitem+\fi\box8\hskip\fontdimen2\font}\nobreak \else\ifconditional\inlinelistitem \hbox to \dimen0{\ifconditional\sublistitem\llap{+}\fi\box8\hfill}% \else\ifconditional\txtlistitem \dodotxtitem % \hskip-\dimen0 this makes them touch \else % todo: align+marge binnen de hbox \llap{\hbox to \dimen0{\ifconditional\sublistitem\llap{+}\fi\box8\hfill}}% \hskip\fullwidth % added for 'repeat' option fix \fi\fi\fi \fi \forceunexpanded % needed for m conversion (\os) / i need to look into this \setevalue{\@@currentitemsymbol\itemlevel}% {\getvalue{\@@localitemsymbol\itemlevel}}% still problems with \uchar ? %{\noexpand\getvalue{\@@localitemsymbol\itemlevel}}% no, spoils subrefs \resetunexpanded \setfalse\headlistitem \setfalse\sublistitem \setfalse\symbollistitem \EveryPar{\ignorespaces}% needed ? \ignorespaces} % I don't think this is the best way but it will require minimal % change to the original sources. \def\checkforrepeatedlistitem {\global\newdimen\fullwidth \ifnum\itemlevel=\plusone \initializeboxstack{item}% \fi \ifconditional\repeatlistitem \savebox{item}{\itemlevel}{\hbox{\copy8}}% \setbox8\hbox to \wd8 {\setbox\scratchbox\hbox {\scratchcounter\itemlevel \advance\scratchcounter\minusone \dorecurse\scratchcounter{\foundbox{item}{\recurselevel}}}% \ifnum\itemlevel\plusone \ifdim\wd\scratchbox\zeropoint %\hskip-\dimen2 \global\advance\fullwidth\wd\scratchbox \box\scratchbox \fi \fi \box8}% \fi} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] About paragraph columns in table environment
Taco Hoekwater wrote: Hans Hagen wrote: Radhelorn wrote: | There are so | | me rather lo | | ng titles th | | a needs to b | | e typeset. | you're not serious about this are you? I'm curious as well. What is this for? It can be used in small cards or something like that. I've tried to fit wide table in a narrow paper. I was making electronic version of printed document and can assure you that original design was even more strange (to my tastes of course). anyhow, a wikiable example I'll look into it a little later. A similar problemsolution, for verbatim text, is already in the wiki: http://wiki.contextgarden.net/Verbatim_with_line_breaks Well maybe I should give this a try too ;-). -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] About 'repeat' option of \startitemize
Hans Hagen wrote: \defineitemgroup[myitemize] \setupitemgroup[myitemize][n,width=4em] \setupitemgroup[myitemize][each][width=4em] \setupitemgroup[myitemize][each][n] Thanks. This will do for a time. Actually I have another observation in behaviour of 'repeat' option but will try to experiment with this a little more. This itm module is too elaborate. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] About 'repeat' option of \startitemize
Hello All! A while ago Hans introduced 'repeat' option for \startitemize to make nested items. I've decided to give it a try: \startitemize[repeat] \item item1 \startitemize \item item1.1 \item item1.2 \item item1.3 \stopitemize \item \startitemize \item item2.1 \item item2.2 \item item2.3 \item item2.4 \stopitemize \stopitemize gives: 1. item1 1. item1.1 2.2. item1.2 3.3. item1.3 2.1. item2.1 2.2. item2.2 3.3. item2.3 4.4. item2.4 should: 1. item1 1.1. item1.1 1.2. item1.2 1.3. item1.3 2.1. item2.1 2.2. item2.2 2.3. item2.3 2.4. item2.4 From my observations of mysterious box manipulations in core-itm I think that fix for repeating first digit can be as simple as removing one of these \plusone's somewhere. But it is possible to make both 1.1 and 2.1 work as in my example? And it seems that space after dot in nested lists is slightly bigger. Is this intentional? -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] About 'repeat' option of \startitemize
Hans Hagen wrote: Radhelorn wrote: Hello All! A while ago Hans introduced 'repeat' option for \startitemize to make nested items. I've decided to give it a try: next time give it a try when i just made it; it took some time to figure out what was wrong (rather tricky code) Thanks! Soon you will be fixing bugs even earlier than we will be noticing them! But there is another problem. When using itemize without repeat option indentation is right, but with this option indentation (both before number and after number) of nested items is different for different levels: 1. item 1.1item 1.2.1 item 1.2.1.1.item 1.2.2.1em Something needs to be done with this, but I'm afraid that this will complicate macros even more. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] About paragraph columns in table environment
Hans Hagen wrote: Radhelorn wrote: \SetTableToWidth{\textwidth} \starttable[|p(.45\textwidth)|p(.45\textwidth)|] \HL \VL foo foo foo foo foo foo \VL bar bar bar bar bar bar \VL\AR \HL \stoptable Thanks. Now it works like expected. BTW, how to fit text into a small box if I don't care about where word breaks? can you explain that a bit more? Something like this: | There are so | | me rather lo | | ng titles th | | a needs to b | | e typeset. | Originally I wanted this in table headers and such things. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] About repeated formatting keys in table.
Hello! Acording to WIKI this should work: \starttable[*{3}{|c|}] \HL \NC column1 \NC column2 \NC column3 \NC\NR \HL \stoptable \starttabulate[*{3}{|c|}] \HL \NC column1 \NC column2 \NC column3 \NC\NR \HL \stoptabulate Tabulate works as expected, but table gives errors about missing columns. It seems that |'s is not always multiplied by *{}{} command. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \startstandardmakeup aligned top-left
Jilani Khaldi wrote: Hi All, I have the first page of a document set this way: \startstandardmakeup *Document info* \stopstandardmakeup The result is *Document info* is placed in the center of the page. How to put it (*Document info*) at the top-left of the page? Thank you. Inside standardmakeup you can use whole bunch of TeX/ConTeXt commands for setting up glue and spaces. In your case just add \vfill after *Document info*. Also see cont-en manual about makeups. You can define your own or alter many options of standard makeup. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] About paragraph columns in table environment
Hello all! I've tried to fit wide table (with paragraphs and vertical lines) into page width. Following example don't work as expected: \SetTableToWidth{\textwidth} \starttable[|p|p|] \HL \VL foo foo foo foo foo foo \VL bar bar bar bar bar bar \VL\AR \HL \stoptable Text in columns formatted as if table was not widened. What did I miss here? BTW, how to fit text into a small box if I don't care about where word breaks? Thanks. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] About \defineshortcut
Taco Hoekwater wrote: For example after command: \defineshortcut [//] [] [style=\em] I can get slash only by \textslash (which is expected) and it breaks things like: \typefile {some/dir/file} So how to revert to previous meaning of '/'? It is possible to do it only temporarily? Explicit \start a /b/ c \stop style grouping is normally best, but a shortcut is just an active character with a closing defimiter, so this will work for you special case: \catcode`\/=\other \typefile {some/dir/file} \catcode`\/=\active I've experimented with various macros to undefine/temporarily disable shortcuts and found that most convenient variant is to insert this catcode changing into \typefile command. Why not to do this for every command, that accepts path parameters? This slows process down too much? But this is just an afterthought. I think that \defineshortcut commands are most useful inside some environment (start/stop pair). So it is possible to have such environment that restores back all catcode changes (or other variable changes) made inside it (like local variables in some programming laguages)? This can have many other uses. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] About \defineshortcut
Hans Hagen wrote: Radhelorn wrote: I think that \defineshortcut commands are most useful inside some environment (start/stop pair). So it is possible to have such environment that restores back all catcode changes (or other variable changes) made inside it (like local variables in some programming laguages)? This can have many other uses. i have no idea why you use shortcuts (i implemented it as a gimmick -) Well I was reading sources and stumbled over these commands. I am using shortcuts to typeset programming examples in non standard languages and pseudo-code. grouping is doable with: \starttext \startsetups whatever \defineshortcut [b] [style=bold] \defineshortcut [e] [style=slanted] \stopsetups \definestartstop[whatever][commands=\setups{whatever}] \input tufte oeps b:oeps or e:oeps \startwhatever oeps b:oeps or e:oeps \stopwhatever oeps b:oeps or e:oeps \input tufte \stoptext Many thanks! I've looked this indeed! It is a pity that such useful command (setups) remains undocumented. As far as I understand inside setups can be any commands and environment changes are fully restored after their execution. Right? And \setups command can replace any single command (in arguments and such). If this is OK, then I will try to collect some more examples and post them on the WIKI later this week. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to upgrade ConTeXt on a pre-installed version coming with tetex-3.0?
R S Ananda Murthy wrote: Hello, I am using Slackware 10.2 which comes with tetex-3.0. In this, I want to upgrade ConTeXt to the latest version. How to do this? Thanks for your help, Just follow instructions in http://wiki.contextgarden.net/TeTeX_3.0_installation I've upgraded ConTeXt on my Slackware many times without any problems. BTW, you need to do all steps only once. After you setup teTeX to use ConTeXt in local tree subsequent upgrades can be as simple as just unpacking cont-tmf.zip into this tree (but read release notes carefully). -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] sed question
David Arnold wrote: IntermediateAlgebraText $ find . -name *.tex | xargs sed -i '/% output=pdf/d' sed: 1: ./book.tex: invalid command code . Strange. Command is valid and works for me. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] About \defineshortcut
Taco Hoekwater wrote: Radhelorn wrote: Hello All! There is intresting macros in cont-new -- shortcuts. It works pretty well, but I have one question: how to undefine them back? For example after command: \defineshortcut [//] [] [style=\em] I can get slash only by \textslash (which is expected) and it breaks things like: \typefile {some/dir/file} So how to revert to previous meaning of '/'? It is possible to do it only temporarily? Explicit \start a /b/ c \stop style grouping is normally best, but a shortcut is just an active character with a closing defimiter, so this will work for you special case: \catcode`\/=\other \typefile {some/dir/file} \catcode`\/=\active Thanks Taco. I was experimenting with \bgroup \egroup and thinking about some more explicit and visible. BTW where is these \start \stop defined? -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] About \defineshortcut
Hello All! There is intresting macros in cont-new -- shortcuts. It works pretty well, but I have one question: how to undefine them back? For example after command: \defineshortcut [//] [] [style=\em] I can get slash only by \textslash (which is expected) and it breaks things like: \typefile {some/dir/file} So how to revert to previous meaning of '/'? It is possible to do it only temporarily? -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \showmathcharacters loop
Hans Hagen wrote: Radhelorn wrote: I've done clean install of beta context 2005.09.14 with all default configuration (like wiki teTeX 3.0 Installation doc suggests). Results is still the same, but default teTeX 3.0 context (2005.01.31) works fine. i need to update the zip (but currently i'm busy with replacing / installing all our main company servers, so ...) Hans So, maybe there is some way to overcome this bug? Maybe temporarily use some other engine to generate characters list? If solution needs more than just some command, then I think I shall wait for the update, so not bother. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Chinese in utf-8
Duncan Hothersall wrote: Hi all. I have ConTeXt set up to output Chinese using usemodule[chinese], all fonts, encodings and maps are installed and the sample file works well. Now I have a whole load of Chinese text in utf-8 encoding. Can ConTeXt process this, or do I have to convert it to another encoding? I tried \enableregime[utf] and \useencoding[uc] but it just produced black blobs instead of Chinese characters. I hope ConTeXt can do it? :-) Thanks, Duncan Please post output of texexec command. Maybe ConTeXt fails to find some files? -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \showmathcharacters loop
Radhelorn wrote: This simple file sends pdfetex into endless loop: \starttext \showmathcharacters \stoptext Here is texexec --version: TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.141592-1.30.3-2.2 (Web2C 7.5.5) context : ver: 2005.08.31 cont-en : ver: 2005.08.31 fmt: 2005.10.8 mes: english \showmathcharacters used to work for some older version of ConTeXt, but now it didn't. As far as I remember my personal settings haven't changed. I've done clean install of beta context 2005.09.14 with all default configuration (like wiki teTeX 3.0 Installation doc suggests). Results is still the same, but default teTeX 3.0 context (2005.01.31) works fine. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \showmathcharacters loop
Hello All! This simple file sends pdfetex into endless loop: \starttext \showmathcharacters \stoptext Here is texexec --version: TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.141592-1.30.3-2.2 (Web2C 7.5.5) context : ver: 2005.08.31 cont-en : ver: 2005.08.31 fmt: 2005.10.8 mes: english \showmathcharacters used to work for some older version of ConTeXt, but now it didn't. As far as I remember my personal settings haven't changed. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Escaping tabulate
Christopher Creutzig wrote: Radhelorn wrote: Oh, thanks. Can you describe in a few words distinction between {} and \bgroup\egroup? I know that \bgroup\egroup are implicit characters and useful in macro definitions but what this really means? You can have \def\startfoo{\bgroup} \def\stopfoo{\egroup} but you cannot get the same effect with \def\startfoo{{} \def\stopfoo{}} Thanks. Clear and simple answer. I believe in ConTeXt you'd usually(?) use \start and \stop instead of \bgroup and \egroup, though. What do the experts say about this? I've seen \start \stop pairs in some examples, but there are so many of them in sources that I can not find their definition. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] control text color of \about[], \at[]
VnPenguin wrote: Hi, I would like to control the text color of command \about[], \at[]. Already search around mailing list archive but it not helps. Thank you, Very simple solution is to define your own: \def\myabout#1{{\color[red]\about[#1]}} Is that you want? -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] control text color of \about[], \at[]
VnPenguin wrote: On 7/16/05, Radhelorn [EMAIL PROTECTED] wrote: Very simple solution is to define your own: \def\myabout#1{{\color[red]\about[#1]}} Is that you want? No, unfortunately. The commands \color or whatever \red, \blue,.. have no effect in my case :( Did you \setupcolors[state=start]? -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] control text color of \about[], \at[]
VnPenguin wrote: On 7/16/05, Radhelorn [EMAIL PROTECTED] wrote: Did you \setupcolors[state=start]? Of course :-) Then post here complete minimal example, so I can run it on my system. Problem may be in your setup or commands you've used. Did you remember that colors can only be seen in PDF documents? Try texexec --color --pdf yourfile on source. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Escaping tabulate
Henning Hraban Ramm wrote: Am 2005-07-14 um 15:49 schrieb Radhelorn: I'm expirementing with tabular layouts and have many problems with tabulate. For example I want to make tabulate header of description but ConTeXt gives me errors about missing } and such. I is possible to make tabulate one big letter as in LaTeX and manipuate it as a whole? I haven't any luck with combinations of vbox/hbox. Maybe there is ConTeXish way to do this? Try buffers; try \bgroup ... \egroup instead of {...} in definitions; try to post a minimal example of what you did, so that we don't have to search for our crystal balls in order to help you. Here is one: \starttext \definetyping[test][option=commands] \starttest /BTEX\vbox\starttabulate \NC test \NC test \NR \NC test \NC test \NR \stoptabulate/ETEX \stoptest \stoptext Maybe I'm abusing tabular because TeXish \settabs will do for many cases but I want to use some of tabular features. Another problem with this example that /BTEX /ETEX doesn't work when I use just \starttyping[option=commands]. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problem with \vec in zfaqcmrm font
Taco Hoekwater wrote: Hi, I do not have this font, so cannot really help. Wild guess: some of the font parameters are wrong, perhaps because you are using a constituent of a virtual font directly instead of the composed virtual font it is a part of. But I'm only guessing... Greetings, Taco No, I'm using right font and I've found from sty and fd's that LaTeX using same font. But there is tfm and vf with same name. Which one is used? Radhelorn wrote: Hello! Sorry for being so active lately but I've run into problem after problem... This formula $\vec{}\vec a\vec A$ fives first vector at baseline, second a little higher and third somewhere at the middle of letter A. \showfont shows nice vector at 7e in right position but \showmathcharacters shows vec at baseline. I'm using zfaqcmrm from pscyr package. I don't know where to start looking for source of problem. Is there a way to manualy adjust vector position? Other symbols seem to work well -- problem just with \vec. In LaTeX all works well too. Thanks for your patience. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Escaping tabulate
Hans Hagen wrote: Radhelorn wrote: Henning Hraban Ramm wrote: Am 2005-07-14 um 15:49 schrieb Radhelorn: I'm expirementing with tabular layouts and have many problems with tabulate. For example I want to make tabulate header of description but ConTeXt gives me errors about missing } and such. I is possible to make tabulate one big letter as in LaTeX and manipuate it as a whole? I haven't any luck with combinations of vbox/hbox. Maybe there is ConTeXish way to do this? Try buffers; try \bgroup ... \egroup instead of {...} in definitions; try to post a minimal example of what you did, so that we don't have to search for our crystal balls in order to help you. Here is one: \starttext \definetyping[test][option=commands] \starttest /BTEX\vbox\starttabulate \NC test \NC test \NR \NC test \NC test \NR \stoptabulate/ETEX \stoptest \stoptext Maybe I'm abusing tabular because TeXish \settabs will do for many cases but I want to use some of tabular features. what do you want to achieve? why do you need the typing? This is just an example where tabular gives errors. Actualy I started from tries to align not floating tables (\setuptabular[align=middle] \startalignment[middle] doesn't help). I thougt that making tabular independent from it's surroundings will be workaround and provide possibility to abuse it in some other places. Sorry, this is bad example. I've solved aligning problem with \hfill\vbox or \rightaligned, but this needs to be done for each table. Did I miss something important? -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Escaping tabulate
Peter Münster wrote: On Fri, 15 Jul 2005, Radhelorn wrote: I've solved aligning problem with \hfill\vbox or \rightaligned, but this needs to be done for each table. Did I miss something important? Hello, you can define a macro. For example: \def\startMyMidAlignedTable{\hbox to \hsize\bgroup\hss\vbox \bgroup\starttable} \def\stopMyMidAlignedTable{\stoptable\egroup\hss\egroup} Oh, thanks. Can you describe in a few words distinction between {} and \bgroup\egroup? I know that \bgroup\egroup are implicit characters and useful in macro definitions but what this really means? -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Not possible to redefine inbetween in \definedescription
Hello All! I think that I've found a bug in descriptions. It seems that it is impossible to redefine inbetween option -- it always produces a \blank. Try this: \definedescription[desc][before=before,after=after,inbetween=inbetween,location=top] \desc{test} test I've fixed it this way: --- core-des.tex.orig 2005-06-14 06:56:00.0 +0400 +++ core-des.tex2005-07-14 15:26:20.0 +0400 @@ -372,7 +372,8 @@ \c!indenting,\c!indentnext,\c!align,\c!text,\c!distance,\c!command]% \getparameters[\??dd#1] [\s!do\c!state=\v!stop,\s!do\c!command=\normal@@descriptionhandler,\c!level=,#2]% - \doifvalue{\??dd#1\c!location}\v!top{\doassign[\??dd#1][\c!inbetween=\blank]}% + \doifvalue{\??dd#1\c!location}\v!top{% + \doifnotvalue{\??dd#1\c!inbetween}{\doassign[\??dd#1][\c!inbetween=\blank]}}% \setvalue{#1}{\dodoubleempty\@@description[#1]}% \setvalue{\e!start#1}{\dodoubleempty\@@startdescription[#1]}% \setvalue{\e!stop #1}{\@@stopdescription{#1}}}% And when using commands with brackets in argumets like: \definedescription[desc][before=\blank[small]] ConTeXt will give many errors, so arguments needs to be grouped (before={\blank[small]}). Is this intentional? Thanks for your time. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Escaping tabulate
Hello! I'm expirementing with tabular layouts and have many problems with tabulate. For example I want to make tabulate header of description but ConTeXt gives me errors about missing } and such. I is possible to make tabulate one big letter as in LaTeX and manipuate it as a whole? I haven't any luck with combinations of vbox/hbox. Maybe there is ConTeXish way to do this? -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Not possible to redefine inbetween in \definedescription
Taco Hoekwater wrote: And when using commands with brackets in argumets like: \definedescription[desc][before=\blank[small]] ConTeXt will give many errors, so arguments needs to be grouped (before={\blank[small]}). Is this intentional? Yes, that is a speed optimization. ConTeXt does not even attempt to balance the occurrence of [ and ] at top-level, so the explicit grouping indeed required. It would be easy to extend ConTeXt to do this, but the speed penalty would be substantial. Thanks. So every command with brackets needs to be grouped? Maybe something else? Where to look at it? -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Not possible to redefine inbetween in \definedescription
Adam Lindsay wrote: Taco Hoekwater said this at Thu, 14 Jul 2005 16:30:10 +0200: So every command with brackets needs to be grouped? Maybe something else? Where to look at it? I know of nothing else, just brackets. Any bracket, not just as part of a command, but also in cases like this: \setuppublications[left={[}] Ooh, just remembered: Commas, too. \setupitemize[stopper={,}] and to be sure: every command with brackets sounds like you mean everywhere... this is just amongst parameters. So: brackets and commas, used as parameter values, need to have enclosing braces. If you think of the braces as quoting the parameter values, you'll probably be alright. I mean parameter values. Then why not have ConTeXt add braces to every parameter? Or there will be slowdown Taco mentioned? -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Problem with \vec in zfaqcmrm font
Hello! Sorry for being so active lately but I've run into problem after problem... This formula $\vec{}\vec a\vec A$ fives first vector at baseline, second a little higher and third somewhere at the middle of letter A. \showfont shows nice vector at 7e in right position but \showmathcharacters shows vec at baseline. I'm using zfaqcmrm from pscyr package. I don't know where to start looking for source of problem. Is there a way to manualy adjust vector position? Other symbols seem to work well -- problem just with \vec. In LaTeX all works well too. Thanks for your patience. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Not possible to redefine inbetween in \definedescription
Christopher Creutzig wrote: Radhelorn wrote: I mean parameter values. Then why not have ConTeXt add braces to every parameter? Or there will be slowdown Taco mentioned? Exactly. ConTeXt would need to find out the parameters' boundaries first, and that is the place where things would become slow, since it is not possible to use TeX's built-in parser for that; it just can't handle two different types of balanced brackets at the same time. Besides, you'd still need to quote commas, since \setupitemize[stopper=,] is just as valid as \setupitemize[stopper={,}] is, just with a completely different meaning. And while it may be a bit strange, you could even set \setupitemize[stopper={, before=abc },after=\blank] – absolutely no way of guessing these quotes. regards, Christopher ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Thanks Adam, Christopher, you helped me a lot! It's always hard to explain TeXnical things to Word users. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Basic question on Unicode and ConTeXt
Steffen Wolfrum wrote: I know there is \enableregime[utf] but what else I needed that the output equals my utf-8 input? Could some maybe give a short and usable How-To on common examples: Greek Russian an East European language and an Asian language? You did read http://contextgarden.net/Encodings_and_Regimes and linked pages, did you? If you learn anything new, please add it to the wiki! Well, yes, I wasn't interested in e.g. VISCII, but I read the info for UTF. But as you wrote linked pages I became more curious and looked up also those pages. Indeed, there is more: But, why is the Vietnamese example with \enableregime[utf] \setupencoding[default=t5 linked under vis = visciiVISCII Vietnamesevis = viscii VISCII Vietnamese and not accessable with utf UTF-8 Unicode ? (Same for cyrillic) Is this just a wrong link, or does this show that I don't have understood the realationship between regimes and encoding? Shouldn't all UTF relevant examples be listed under UTF? \enableregime is not enough. You need to setup font encoding and appropriate bodyfont. For these see type-enc, type-pre and such. Example for cyrillic: \enableregime [utf] \setupencoding [default=t2a] \usetypescript [modern-base] [\defaultencoding] \setupbodyfont [modern] \starttext Тест. \stoptext -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] aligning of tables and tabulate
Mojca Miklavec wrote: Radhelorn wrote: Mojca Miklavec wrote: Radhelorn wrote: Maybe this is a stupid question, but according to manual this should align tables right: \setuptabulate[align=right] some text before \starttabulate[|l|l|] I've tried left, right, middle, center... to no effect. Both tables remain left aligned. \starttabulate[|r|r|] and \starttable[|r|r|] This aligns cell contents but not tables themselves. Sorry, I didn't understand the question. If you need the solution: \rightaligned{\starttable[|l|l|] \HL \NC testxxx \NC test \NC\AR \NC test \NC testxxx \NC\AR \HL \stoptable} If you need the reason, why \setuptabulate[align=...] doesn't work, someone else has to answer it. Thanks. This will do as temporal solution, but with many tables this quickly get out of hand. Maybe someone look into this problem. I've found out that \startalignment \stopalignment not influences tables too. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] aligning of tables and tabulate
Hello! Maybe this is a stupid question, but according to manual this should align tables right: \starttext \setuptabulate[align=right] some text before \starttabulate[|l|l|] \HL \NC test \NC test \NR \NC test \NC test \NR \HL \stoptabulate in the middle \setuptables[align=right] \starttable[|l|l|] \HL \NC test \NC test \NC\AR \NC test \NC test \NC\AR \HL \stoptable after after \stoptext I've tried left, right, middle, center... to no effect. Both tables remain left aligned. Thanks for your patience. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] aligning of tables and tabulate
Mojca Miklavec wrote: Radhelorn wrote: Maybe this is a stupid question, but according to manual this should align tables right: \setuptabulate[align=right] some text before \starttabulate[|l|l|] I've tried left, right, middle, center... to no effect. Both tables remain left aligned. \starttabulate[|r|r|] and \starttable[|r|r|] This aligns cell contents but not tables themselves. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Confusion with font instructions
Otared Kavian wrote: On 5 juil. 2005, at 18:25, Adam Lindsay wrote: David Rogers said this at Tue, 5 Jul 2005 09:18:45 -0700: But if I change every times to lucida, typesetting reverts to cm (or lm or whatever it is) and no lucida appears. What am I missing? Have you bought the lucida fonts for TeX? Yes I have bought Lucida fonts for TeX as well as MathTime, but don't know and don't understand how to use them... All needed mappings are in type-buy.tex. Look there and install your fonts to comply with that layout. Or you can create typescripts with proper synonyms, look in type-dis.tex for example. Hope this helps. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Confusion with font instructions
Hans Hagen wrote: Does: \usetypescript [adobekb] [ec] \usetypescript [postscript][ec] \loadmapfile[ec-base.map] \usetypescript[times][\defaultencoding] \setupbodyfont[times,12pt] \starttext \input knuth \stoptext work? If so, i'll add the map file loading to the adobekb typescripts No, it's not. But replacing ec-base with context-base solves the problem. I don't know why. Relevant lines in these files identical. Using 8r encoding also helps, but texnansi gives same result as ec. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Confusion with font instructions
David Rogers wrote: OK, I tried this setup, and ConTeXt ran without stopping to complain, but (as Otared described, I guess) the font actually produced is very jaggy, both on screen and in print. My nostalgia for dot matrix fonts : resetting map file list fonts : using map file: original-base fonts : using map file: ec-public-lm fonts : using map file: ec-base fonts : using map file: original-ams-base fonts : using map file: original-public-lm fonts : using map file: ec-urw-palatino fonts : using map file: original-youngryu-px [1.1{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ original-empty .map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ original-base .map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ec- public-lm. map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ec-base .map}{/ usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/original-ams- base.ma p}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/original- public- lm.map} Warning: pdfetex (file ec-urw-palatino.map): cannot open font map file {/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/original- youngryu- px.map}] [2.2] [3.3] Well, here is your problem. pdftex cannot find map file for direct font inclusion and you get bitmaps. I've found needed definitions in context-base.map and ec-base.map. ec-base is loaded by default, but dose nothing. Maybe someone explain this. As a quick solution try: \loadmapfile [context-base] % !!! \setupencoding [default=ec] \usetypescript [adobekb] [\defaultencoding] \usetypescript [palatino] [\defaultencoding] \usetypescript [postscript] [\defaultencoding] \usetypescript [lucida] [\defaultencoding] \setupbodyfont [palatino] \setupoutput[pdftex] \startbuffer Some {\bf text} to {\it test} {\sl font} {\bs switching}. \stopbuffer \starttext \getbuffer \switchtobodyfont [postscript] \getbuffer \switchtobodyfont [lucida] \getbuffer \stoptext Works for me on tetex-3.0. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] International characters in math
Adam Lindsay wrote: \definetypeface[somename][mm][math][euler][euler] \setupbodyfont[somename] \starttext $$\sqrt{\acute{a}+\bar{b}+\dot{c}}$$ \stoptext I don't get any accents. Am I doing something wrong? No, I am. You can verify further by adding: \loadmapfile[original-ams-base] \showmathcharacters The normal text-ish accents are not present in the eulervm fonts. I suppose the rationale is that these are never to be used for text (but it becomes questionable when you don't have an overbar or dot!) I have tried to figure out how to get them from other fonts, but am at a loss, in terms of the general case. No one has mentioned it before now, so I didn't try that hard. :) Anyone have any suggestions on what approach to take, or what they'd like to see? Apart from creating some new virtual euler font with accents I can not see any solution. Beforementioned commands (\acute ...) do not work in \mbox and \hbox in math mode (writes about '{' and '}' missing). Another strange thing. After this sequence: \usetypescript [modern-base] [t2a] % just for example \setupbodyfont [modern] \definetypeface[mytf][mm][math][euler][euler] \startbuffer $$\sqrt{\acute{a}+\bar{b}+\dot{c}}$$ \stopbuffer \starttext \getbuffer \switchtobodyfont[mytf] \getbuffer \switchtobodyfont[modern] \getbuffer \stoptext Third formula remains roman. Why so? -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] International characters in math
Mojca Miklavec wrote: To enable bold math by default write: \definetypeface[somename][mm][boldmath][latin-modern][default][rscale=1] % optional parameter rscale may be any number followed by \setupbodyfont[somename] if you want some other font, for example euler, choose one of the following lines: %\definetypeface[somename][mm][math][euler][euler] %\definetypeface[somename][mm][boldmath][euler][euler] Thanks for example. We're on the same way now ;-). But what exactly do you mean by bold math with accented characters? I meant not accented, but other alphabet (cyrillic in my case). Accented characters are composed from others, which is another case. Is there any special reason that we have to write $\hbox{\tf ...}$? Well, AFAIK in \mbox there is switch \mf (for 'math font'), which switches last font alternative even for math symbols. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] International characters in math
Hans Hagen wrote: Thanks Hans, Wolfgang for your advice. \mbox and \text in newmath solves some problems like units, but what if I want bold roman math with international characters (or my own fonts) by default? $\hbox{\tf \'e\'erste}$ and $\mbox{\'e\'erste}$ $\hbox{\bf \'e\'erste}$ and $\mbox{\bf\'e\'erste}$ Thanks Hans, Mojca, I've solved my problems by adjusting a typescript file. I will return to the experiments later. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] International characters in math
Hans Hagen wrote: I've returned to my experiments with fonts and have a question: is there a way to use international characters in math like with LaTeX mathtext package? Or even as \text{} in AMS LaTeX? compare $\hbox{\'e\'erste}$ and $\hbox{\tf \'e\'erste}$ and $\mbox{\'e\'erste}$ what you get depends on the encoding of the font in use, here you'l get compare garbage and okay and okay so, you don't need any additional package Hans Thanks Hans, Wolfgang for your advice. \mbox and \text in newmath solves some problems like units, but what if I want bold roman math with international characters (or my own fonts) by default? I'm trying to figure it out from sources, but it's very long and hard way. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] International characters in math
Hello All! I've returned to my experiments with fonts and have a question: is there a way to use international characters in math like with LaTeX mathtext package? Or even as \text{} in AMS LaTeX? Is there some documentation on math in ConTeXt except sources? -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Strange behavior with the X2 encoding
Hello! I'm expirementing with the fonts in ConTeXt and have a problem. \usetypescript [modern-base] [x2] \setupbodyfont [modern] \starttext Text. \stoptext When parsing this file ConTeXt outputs: ... (/usr/local/tetex/texmf-local/tex/context/base/type-map.tex) (/usr/local/tetex/texmf-local/tex/context/base/type-spe.tex) (/usr/local/tetex/texmf-local/tex/context/base/type-akb.tex))) * Nor \end, nor \relax or \bye helps, on Ctrl-D I get: ! Emergency stop. * cont-en T2{A,B,C} encodings works well. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Strange behavior with the X2 encoding
Taco Hoekwater wrote: \usetypescript [modern-base] [x2] \setupbodyfont [modern] \starttext Text. \stoptext When parsing this file ConTeXt outputs: ... (/usr/local/tetex/texmf-local/tex/context/base/type-map.tex) (/usr/local/tetex/texmf-local/tex/context/base/type-spe.tex) (/usr/local/tetex/texmf-local/tex/context/base/type-akb.tex))) * This one was nasty. There is a bug in enco-cyr.tex: 1. open /usr/local/tetex/texmf-local/tex/context/base/enco-cyr.tex in an editor 2. change line 673 to read: \resetcaserange 128 to 255 (the lower value was 0, and that resets all \catcodes to 'letter') 3. save the file and regenerate formats 4. all should be well now. Taco Thanks, works fine now. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problems with the pscyr font package
Taco Hoekwater wrote: Radhelorn wrote: Hello All! I'm fresh ConTeXt user, trying to move from LaTeX. And I have several problems with fonts in ConTeXt 2005.06.07 (teTeX-3.0). First of all: pscyr. It's a cyrillic type1 font package which works perfectly in LaTeX, but in Plain TeX and ConTeXt whitespaces between words disappear. I can't find any LaTeX package on CTAN except as a BaKoMa install package, and my system teTeX does not have 'fcori6a.tfm'. Under those circumstances, it becomes quite hard to help you with your problem. There may be a clue buried in the latex support macros ? Well, I've already looked at this. AFAIK no magic there: from tex/latex/pscyr/pscyr.sty: \def\codefault{fco} \DeclareRobustCommand\cofamily [EMAIL PROTECTED]@alphabet\rmfamily\mathrm \fontfamily\codefault\selectfont} \DeclareTextFontCommand{\textco}{\cofamily} there is also definition of bold math mode and \renewcommand{\hbar}{{\mathchar'26\mkern-8.5muh}} from tex/latex/pscyr/t2afco.fd: \DeclareFontFamily{T2A}{fco}{} \DeclareFontShape{T2A}{fco}{m}{it}{- fcori6t}{} from fonts/map/dvips/pscyr/pscyr.map: fcori6a CollegePSCyr-Italic T2AEncoding ReEncodeFont t2a.enc colle8.pfb Encoding file fonts/enc/dvips/pscyr/t2a.enc, but pdftex ignores ReEncodeFont, as stated in documentation. Hope this helps. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problems with the pscyr font package
Taco Hoekwater wrote: \DeclareFontShape{T2A}{fco}{m}{it}{- fcori6t}{} So you should use fcori6t in ConTeXt as well. You are using the wrong metrics, and that is the cause of the disappearing space. Oh, thank you, I see it now. But how font filename and basename is resolved from map file if tfm in source and in map file differ? If LaTeX uses *6t for T2A encoding, but in map file there is only *6a, how it works? I've reread the docs, but this moment remains unclear. The *6t tfm's works as expected, I'm just trying to understand what all this files doing. Encoding file fonts/enc/dvips/pscyr/t2a.enc, but pdftex ignores ReEncodeFont, as stated in documentation. Pdftx does do the actual re-encoding, it just ignores the supplied string value. Taco Yes, I figured it out from experiments. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problems with the pscyr font package
Taco Hoekwater wrote: Radhelorn wrote: Taco Hoekwater wrote: \DeclareFontShape{T2A}{fco}{m}{it}{- fcori6t}{} So you should use fcori6t in ConTeXt as well. You are using the wrong metrics, and that is the cause of the disappearing space. Oh, thank you, I see it now. But how font filename and basename is resolved from map file if tfm in source and in map file differ? If LaTeX This is because of virtual fonts: Thanks, this explains the situation. Is there a command to trace font loading? Which files are loaded, etc. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context