Re: [NTG-context] is it possible to add lengths?
On Sat, 2005-07-09 at 01:53 -0400, Paul Tremblay wrote: > Is it possible to add lengths in ConTexT? > > backspace= 55m + 1in I don't know enough about ConTeXt to declare this The Right Way(tm), but here's one way that Works For Me(tm): \starttext \newdimen\mydimen \mydimen=1in \hbox{\framed[height=\mydimen,width=1in]{before} \advance\mydimen by 55mm \framed[height=\mydimen,width=1in]{after}} \stoptext -- Stuart Jansen <[EMAIL PROTECTED]> Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] is it possible to add lengths?
Is it possible to add lengths in ConTexT? backspace= 55m + 1in Thanks Paul -- *Paul Tremblay * [EMAIL PROTECTED]* ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] tweaking underlining
Reading the list archives, it looks like there are certain advantages, to performing underlining according to my example below: = \setupcolors[state=start] \definetextbackground[underline][location=text,alternative=1,background=,frame=off] \definestartstop [underline] [before={\starttextbackground[underline]}, after=\stoptextbackground] \starttext \startunderline{}http://gurulabs.com/\stopunderline \stoptext = I would like to tweak this a little however. Specifically, I'd like to change the color of the line and move it down a point or two. In one thread, Hans hinted how to do this: > you can redefine the metapost graphic, the main thing there is that > you draw/fill something related to the multipar paths; it takes a bit > of experimenting, but after a while you start seeing possibilities. > See plus-rul.tex for an example of such a graphic. I think I've tracked this reference down to the definition of mpos:par:columnset, but at this point am lost as to how to proceed. Metapost is still beyond me. Any hints would be much appreciated. -- Stuart Jansen <[EMAIL PROTECTED]> Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TeX + Metapost syntax highlighting in Vim
On 7/8/05, Thomas A. Schmitz <[EMAIL PROTECTED]> wrote: > Mojca, > > just wonderful to see that there's another ConTeXt user who likes > vim! Though I'm basically an emacs person, there are some editing I use vim everyday here with ConTeXt for vietnamese text :-) It's nice to have a set of macros/mapping for ConTeXt some where so vim's fans could share & enjoy with ... -- http://vnoss.org Vietnamese Open Source Software Community ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TeX + Metapost syntax highlighting in Vim
Mojca Miklavec wrote: > In case someone finds this experimental piece of code for highlighting > metapost inside ConTeXt useful, put: Hi! I don't want to be a party-pooper, but I have already commited support for the context file-type to vim7 CVS. Perhaps you can look over my version and make suggestions? It doesn't use the rather bloated LaTeX/Plain TeX syntax definition, but my own blend, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TeX + Metapost syntax highlighting in Vim
(Sorry for responding to two separate mails, I'm a bit rushed, going on a three-day holiday.) Hans Hagen wrote: > Mojca Miklavec wrote: > > If you have something like > > \startMPpage > > draw ... > > \stopMPpage, > > it will do the syntax highligting for metapost inside the \start-\stop > > pair. That's a great idea, I'll add that to my version > > I downloaded SpellChecker and SuperTab (autocomplete) today from the vim > > website and it works great! (see http://contextgarden.net/Vim and feel > > free to add any useful stuff there) Version 7 has a spell-checker built in. > > I was astonished as I saw autocomplete work. There are only a couple of > > lines with an extraordinary functionality. I think that if someone > > writes a good script to convert texshow to vim syntax highlighting > > script, than autocomplete will be able to provide good hints for all the > > existing commands in ConTeXt and the corresponding parameters. I'll try > > to see what I can do, but please don't excpect any results too soon. There's always the ever-simple CTRL-P/CTRL-N as well. > What is the syntax? I can exten ctstools to spit out a vim keyword table; > it already handles scite, jedit and bbedit so adding vim is not undoable Download vim and run :help syntax. But the short version is syn keyword contextKeyword ... ^-- group name ^-- keywords But that won't work for stuff beginning with \\. Then you'll have to use regexes and syn match contextKeyword ... ^-- regex Exactly what kind of keyword table are we talking about?, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] some alpha software (was: Re: Making texshow easier to edit)
Dear all, > (PS: Tell me if you need some extra books to read once you are done with > your fontinstaller and the garden :) I don't think that I am ever done with these two. :) Since we are talking about the font installer: I have created a project at foundry.supelec.fr, thanks to Fabrice Popineau. (I keep him busy with the software there :) I have uploaded some files into the subversion server, as well added something that could be called the beginning of a documentation. Beware! This is pre pre alpha software and I am very busy changing the interface every few hours, so contact me before you actually try to work with it. I hope that there will be nightly subversion snapshots to download soon. Here is the project page: https://foundry.supelec.fr/projects/rfil/ and here is the 'home page' of the project: https://rfil.groups.foundry.supelec.fr/ (documentation in rdoc format) Happy TeXing and happy hacking, Patrick -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Bold Greek Math with Fourier Font
Hi all, Does anyone know how to setup fourier to have boldfaced symbols (both greek and roman) using the Fourier font? I've read through the "Mixed Normal and Bold Math" doc, but I cannot seem to get bold to work at all with the Fourier font. Heck, I cannot even get the boldmath definition to stop substituting with cm! I've changed 'tex/context/base/type-syn.tex' and 'tex/context/base/type-enc.tex' to provide boldmath/bfmath definitions as below. Despite 3 hours of fiddling, I'm getting substitution with computer modern when I try and the boldmath definition in test.tex (below). I hope this isn't a case of me not reading the docs carefully enough... Any and all help greatly appreciated. Cheers, Randall % START tex/context/base/type-enc.tex ... % Fourier (Utopia) \starttypescript [math] [fourier] [default,ec] \definefontsynonym [Fourier-Math-Letters] [futr8t] %\definefontsynonym [Fourier-Math-Letters] [futmi] \definefontsynonym [Fourier-Math-Letters-Italic] [futmii] \definefontsynonym [Fourier-Math-Symbols] [futsy] \definefontsynonym [Fourier-Math-Extension] [fourier-mex] \stoptypescript \starttypescript [boldmath,bfmath] [fourier] [default,ec] \definefontsynonym [Fourier-Math-Letters-Bold] [fourier-mlb] \definefontsynonym [Fourier-Math-Letters-Italic-Bold] [fourier-mlitb] \definefontsynonym [Fourier-Math-Symbols] [futsy] \definefontsynonym [Fourier-Math-Extension][fourier-mex] \stoptypescript % fourier virtual fonts: % futb8c.vf futbi9d.vf futc9c.vf futr8t.vf futri8t.vf futroorn.vf futsi9e.vf % futb8t.vf futbi9e.vf futc9d.vf futr9c.vf futri9c.vf futrorn.vf futso9c.vf % futb9c.vf futbo8c.vf futc9e.vf futr9d.vf futri9d.vf futs9c.vf futso9d.vf % futb9d.vf futbo8t.vf futcorn.vf futr9e.vf futri9e.vf futs9d.vf futso9e.vf % futb9e.vf futbo9c.vf futmi.vf futrc8t.vf futro8c.vf futs9e.vf futsoorn.vf % futbc8t.vf futbo9d.vf futmib.vf futrc9d.vf futro8t.vf futsc9d.vf futsorn.vf % futbi8c.vf futbo9e.vf futmii.vf futrc9e.vf futro9c.vf futsc9e.vf futsy.vf % futbi8t.vf futboorn.vf futmiib.vf futrd8t.vf futro9d.vf futsi9c.vf % futbi9c.vf futborn.vf futr8c.vf futri8c.vf futro9e.vf futsi9d.vf % map file has: %fourier-bb Fourier-Math-BlackBoard http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TeX + Metapost syntax highlighting in Vim
Mojca Miklavec wrote: In case someone finds this experimental piece of code for highlighting metapost inside ConTeXt useful, put: " ConTeXt augroup filetypedetect au! BufRead,BufNewFile *.texsetfiletype context augroup END somewhere to your filetype.vim (probably after TeX) and move the attached file to syntax\context.vim. If you have something like \startMPpage draw ... \stopMPpage, it will do the syntax highligting for metapost inside the \start-\stop pair. There are still some "bugs" present (see comments in file), but I don't know how yet to get rid of them. I downloaded SpellChecker and SuperTab (autocomplete) today from the vim website and it works great! (see http://contextgarden.net/Vim and feel free to add any useful stuff there) I was astonished as I saw autocomplete work. There are only a couple of lines with an extraordinary functionality. I think that if someone writes a good script to convert texshow to vim syntax highlighting script, than autocomplete will be able to provide good hints for all the existing commands in ConTeXt and the corresponding parameters. I'll try to see what I can do, but please don't excpect any results too soon. What is the syntax? I can exten ctstools to spit out a vim keyword table; it already handles scite, jedit and bbedit so adding vim is not undoable 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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TeX + Metapost syntax highlighting in Vim
Mojca, just wonderful to see that there's another ConTeXt user who likes vim! Though I'm basically an emacs person, there are some editing tasks I like to do with vim - the line numbering alone is wonderful, there is no equivalent in emacs (and I've tried quite a lot of things!). So cheers to you. So far, I've basically been working with vim-latex, gnashing my teeth from time to time (oh the way they hijacked the alt key!). I've just added support for typesetting with texexec by adding this line to texrc: TexLet g:Tex_CompileRule_cont = 'texexec --pdf --nonstopmode $*' But I for one would be extremely happy if someone more knowledgeable would add proper ConTeXt support to vim the way Berend and Patrick added ConTeXt support to AucTeX! Best Thomas On Jul 8, 2005, at 6:10 PM, Mojca Miklavec wrote: In case someone finds this experimental piece of code for highlighting metapost inside ConTeXt useful, put: " ConTeXt augroup filetypedetect au! BufRead,BufNewFile *.texsetfiletype context augroup END somewhere to your filetype.vim (probably after TeX) and move the attached file to syntax\context.vim. If you have something like \startMPpage draw ... \stopMPpage, it will do the syntax highligting for metapost inside the \start- \stop pair. There are still some "bugs" present (see comments in file), but I don't know how yet to get rid of them. I downloaded SpellChecker and SuperTab (autocomplete) today from the vim website and it works great! (see http://contextgarden.net/ Vim and feel free to add any useful stuff there) I was astonished as I saw autocomplete work. There are only a couple of lines with an extraordinary functionality. I think that if someone writes a good script to convert texshow to vim syntax highlighting script, than autocomplete will be able to provide good hints for all the existing commands in ConTeXt and the corresponding parameters. I'll try to see what I can do, but please don't excpect any results too soon. Mojca " Vim syntax file " Language: ConTeXt " Maintainer: Mojca Miklavec <[EMAIL PROTECTED]> " Installation: "To automatilcally load this file when a .tex file is opened, add the "following lines to ~/.vim/filetype.vim: " "augroup filetypedetect "au! BufRead,BufNewFile *.texsetfiletype context "augroup END " "You will have to restart vim for this to take effect. In any case it "is a good idea to read ":he new-filetype" so that you know what is going "on, and why the above lines work. "Adapted from eruby by Michael Brailsford (Thanks for the idea!) " "This is just a testing version. "TODO: "- adapt tex.vim for plain TeX + ConTeXt support only (no LaTeX!!!) "- add MetaFun support on the top of Metapost "- add all the possible \start ... \stop delimiters which switch the " syntax highlighting to MetaFun, XML, JavaScript, ... " if version < 600 syntax clear elseif exists("b:current_syntax") finish endif "Source the tex syntax file runtime! syntax/tex.vim "Set the filetype to tex to load the tex %??? ftplugins set ft=tex unlet b:current_syntax " Put the metafun syntax file in @metafunTop " " TODO: should be changed to metafun once the support is there " javascript should probably be adapted to PDF specification too, but it " changes in every version anyway and doesn't work either " syn include @metafunTop syntax/mp.vim " for some reason I can't make both metapost and javascript working at the same time "syn include @javascriptTop syntax/javascript.vim syn region metafunBlock matchgroup=metafunDelim start=#\ \startMPpage# end=#\\stopMPpage# keepend [EMAIL PROTECTED] " TODO: \startuseMPgraphic{the name} - "the name" has to be catched and " typeset in ConTeXt, not in metapost!!! " \start..MP.. may not be inside comments!!! syn region metafunBlock matchgroup=metafunDelim start=#\ \startMPinclusions# end=#\\stopMPinclusions# keepend [EMAIL PROTECTED] syn region metafunBlock matchgroup=metafunDelim start=#\ \startMPgraphic# end=#\\stopMPgraphic# keepend [EMAIL PROTECTED] syn region metafunBlock matchgroup=metafunDelim start=#\ \startuseMPgraphic# end=#\\stopuseMPgraphic# keepend [EMAIL PROTECTED] syn region metafunBlock matchgroup=metafunDelim start=#\ \startreusableMPgraphic# end=#\\stopreusableMPgraphic# keepend [EMAIL PROTECTED] syn region metafunBlock matchgroup=metafunDelim start=#\ \startuniqueMPgraphic# end=#\\stopuniqueMPgraphic# keepend [EMAIL PROTECTED] syn region metafunBlock matchgroup=metafunDelim start=#\ \startMPrun# end=#\\stopMPrun# keepend [EMAIL PROTECTED] " comments have to be added, \startJScode{name}, "name" has to be catched and " typeset in ConTeXt, not in javascript syn region javascriptBlock matchgroup=javascriptDelim start=#\ \startJScode# end=#\\stopJScode# keepend [EMAIL PROTECTED] syn region javascriptBlock matchgroup=javascriptDelim start=#\ \s
Re: [NTG-context] Hiding the content (drawing empty boxes?)
Hans Hagen wrote: i've added printable support (was already there but no key available) \setupinteraction[state=start] \defineproperty [mojca] [layer] [state=stop] \starttext \input ward \startproperty[mojca]I hate hacking TeX!\stopproperty \input davis \button{Show Mojca's Secret}[VideLayer{mojca}] \button{Hide Mojca's Secret}[HideLayer{mojca}] \button{Toggle Mojca's Secret}[ToggleLayer{mojca}] \stoptext the bad news is is that acrobat does not handle it (my guess is that such features don't work becausethey have no way of testing it) Hans Here it works in both Adobe Acrobat Professional 6.0.1 and Adobe Reader 7.0.1. Thanks for those examples too, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] How to override a font in a typescript
Friday, July 8, 2005 Hans Hagen wrote: > Giuseppe Bilotta wrote: >>>\definetypescriptsynonym[modern][courier] >> >> That's quite a hack, but if there is no other choice ... > but a valid one; well, the idea is that oen can combine fonts, so ... Not so valid at all. For example, it doesn't allow me to reset the scale factor. I really think we need a way to overrule single selections within a typescript without resorting to file synonyms. > btw, why don't you want to install latin modern? the > monospaced variant combines well with palatino; of course > one has to play with rscale a bit (i'm amazed about the > amount of tex docs and books on the web that have funny > relative scaling) Because I want to try something different. Plus, if I didn't, you wouldn't notice where the typescript mechanism would need to be extended to provide more flexibility :) >> Actually I was thinking about something like Lucida Console >> ... provided that I manage to set it up :) > what platform? there is a myway on that; we can add the metrics to the > (windows) > font zip file if needed I'm on Windows XP. Anyway, now I'm having a look at the Luxi fonts. Look interesting. -- Giuseppe "Oblomov" Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] TeX + Metapost syntax highlighting in Vim
In case someone finds this experimental piece of code for highlighting metapost inside ConTeXt useful, put: " ConTeXt augroup filetypedetect au! BufRead,BufNewFile *.texsetfiletype context augroup END somewhere to your filetype.vim (probably after TeX) and move the attached file to syntax\context.vim. If you have something like \startMPpage draw ... \stopMPpage, it will do the syntax highligting for metapost inside the \start-\stop pair. There are still some "bugs" present (see comments in file), but I don't know how yet to get rid of them. I downloaded SpellChecker and SuperTab (autocomplete) today from the vim website and it works great! (see http://contextgarden.net/Vim and feel free to add any useful stuff there) I was astonished as I saw autocomplete work. There are only a couple of lines with an extraordinary functionality. I think that if someone writes a good script to convert texshow to vim syntax highlighting script, than autocomplete will be able to provide good hints for all the existing commands in ConTeXt and the corresponding parameters. I'll try to see what I can do, but please don't excpect any results too soon. Mojca " Vim syntax file " Language:ConTeXt " Maintainer: Mojca Miklavec <[EMAIL PROTECTED]> " Installation: " To automatilcally load this file when a .tex file is opened, add the " following lines to ~/.vim/filetype.vim: " " augroup filetypedetect " au! BufRead,BufNewFile *.texsetfiletype context " augroup END " " You will have to restart vim for this to take effect. In any case it " is a good idea to read ":he new-filetype" so that you know what is going " on, and why the above lines work. " Adapted from eruby by Michael Brailsford (Thanks for the idea!) " " This is just a testing version. " TODO: " - adapt tex.vim for plain TeX + ConTeXt support only (no LaTeX!!!) " - add MetaFun support on the top of Metapost " - add all the possible \start ... \stop delimiters which switch the " syntax highlighting to MetaFun, XML, JavaScript, ... " if version < 600 syntax clear elseif exists("b:current_syntax") finish endif "Source the tex syntax file runtime! syntax/tex.vim "Set the filetype to tex to load the tex %??? ftplugins set ft=tex unlet b:current_syntax " Put the metafun syntax file in @metafunTop " " TODO: should be changed to metafun once the support is there " javascript should probably be adapted to PDF specification too, but it " changes in every version anyway and doesn't work either " syn include @metafunTop syntax/mp.vim " for some reason I can't make both metapost and javascript working at the same time "syn include @javascriptTop syntax/javascript.vim syn region metafunBlock matchgroup=metafunDelim start=#\\startMPpage# end=#\\stopMPpage# keepend [EMAIL PROTECTED] " TODO: \startuseMPgraphic{the name} - "the name" has to be catched and " typeset in ConTeXt, not in metapost!!! " \start..MP.. may not be inside comments!!! syn region metafunBlock matchgroup=metafunDelim start=#\\startMPinclusions# end=#\\stopMPinclusions# keepend [EMAIL PROTECTED] syn region metafunBlock matchgroup=metafunDelim start=#\\startMPgraphic# end=#\\stopMPgraphic# keepend [EMAIL PROTECTED] syn region metafunBlock matchgroup=metafunDelim start=#\\startuseMPgraphic# end=#\\stopuseMPgraphic# keepend [EMAIL PROTECTED] syn region metafunBlock matchgroup=metafunDelim start=#\\startreusableMPgraphic# end=#\\stopreusableMPgraphic# keepend [EMAIL PROTECTED] syn region metafunBlock matchgroup=metafunDelim start=#\\startuniqueMPgraphic# end=#\\stopuniqueMPgraphic# keepend [EMAIL PROTECTED] syn region metafunBlock matchgroup=metafunDelim start=#\\startMPrun# end=#\\stopMPrun# keepend [EMAIL PROTECTED] " comments have to be added, \startJScode{name}, "name" has to be catched and " typeset in ConTeXt, not in javascript syn region javascriptBlock matchgroup=javascriptDelim start=#\\startJScode# end=#\\stopJScode# keepend [EMAIL PROTECTED] syn region javascriptBlock matchgroup=javascriptDelim start=#\\startJSpreamble# end=#\\stopJSpreamble# keepend [EMAIL PROTECTED] hi link metafunDelim texSTatement hi link javascriptDelim texSTatement let b:current_syntax = "context" " vim: set ts=4 sw=4: ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Preliminary support for the Luxi typeface
I couldn't find the appropriate typescript definition in ConTeXt, so here's the initial stuff: \starttypescript[mono][luxi][\defaultencoding] \definefontsynonym[Luxi] [\defaultencoding-ul9r8a] [encoding=\defaultencoding] \definefontsynonym[LuxiBold] [\defaultencoding-ul9b8a] [encoding=\defaultencoding] \definefontsynonym[LuxiOblique] [\defaultencoding-ul9ro8a][encoding=\defaultencoding] \definefontsynonym[LuxiBoldOblique] [\defaultencoding-ul9bo8a][encoding=\defaultencoding] \stoptypescript % Maybe should map Slanted, not Italic \starttypescript[mono][luxi][name] \definefontsynonym[Mono][Luxi] \definefontsynonym[MonoBold][LuxiBold] \definefontsynonym[MonoItalic][LuxiOblique] \definefontsynonym[MonoBoldItalic][LuxiBoldOblique] \stoptypescript Of course there's the usual Berry name mapping needed if you only have the LaTeX metrics, which go to the regular expression ul9[rb]o?8[artc] as usual. -- Giuseppe "Oblomov" Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to override a font in a typescript
Giuseppe Bilotta wrote: \definetypescriptsynonym[modern][courier] That's quite a hack, but if there is no other choice ... but a valid one; well, the idea is that oen can combine fonts, so ... btw, why don't you want to install latin modern? the monospaced variant combines well with palatino; of course one has to play with rscale a bit (i'm amazed about the amount of tex docs and books on the web that have funny relative scaling) Actually I was thinking about something like Lucida Console ... provided that I manage to set it up :) what platform? there is a myway on that; we can add the metrics to the (windows) font zip file if needed 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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Why does ConTeXt try to load Latin Modern?
Taco Hoekwater wrote: Or you could do something like this: \def\doiffontelse#1#2#3{% \batchmode \font\klutch=#1 \errorstopmode \ifdim \the\fontdimen5\klutch < 1pt #3\else #2\fi \let\klutch\relax } \doiffontelse{ec-lmr10} {\message{Up-to-date}} {\message{Please install lmr}} It gives an ugly error in the log file if the font is not found, but that is a only a minor inconvenience. I remember that long ago taco and i had some discussion about testing stuff in font-ini, here is a residu, still in font-ini.tex: %D Some unused left||overs: %D %D \starttyping %D \def\doiffontpresentelse#1#2#3% %D {\bgroup %D\batchmode\font\dummy=\truefontname{#1}\errorstopmode %D\edef\lastfontname{\fontname\dummy}% %D\ifx\lastfontname\nullfontname\egroup#3\else\egroup#2\fi} %D %D \def\abortiffontnotfound#1% %D {\doiffontpresentelse{#1}{}{\showmessage\m!fonts{10}{\truefontname{#1}}\endinput}} %D \stoptyping a more modern definition is: \def\doiffontpresentelse#1% {\bgroup \batchmode\font\dummy=\truefontname{#1}\errorstopmode \edef\lastfontname{\fontname\dummy}% \ifx\lastfontname\nullfontname \egroup\expandafter\secondoftwoarguments \else \egroup\expandafter\firstoftwoarguments \fi} and more etex is: \def\doiffontpresentelse#1% {\bgroup \scratchcounter\interactionmode \batchmode \font\dummy=\truefontname{#1}\relax \interactionmode\scratchcounter \edef\lastfontname{\fontname\dummy}% \ifx\lastfontname\nullfontname \egroup\expandafter\secondoftwoarguments \else \egroup\expandafter\firstoftwoarguments \fi} thsi works ok with: \doiffontpresentelse{texnansi-lmr10}{YES}{NO} \doiffontpresentelse{adam-lindsay-modern-serif}{YES}{NO} i'll add them (again) 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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] How to override a font in a typescript
Friday, July 8, 2005 Adam Lindsay wrote: > Giuseppe Bilotta said this at Fri, 8 Jul 2005 15:24:10 +0200: >>Ok so far, but having to rewrite all of it just to override a >>single value seems excessive, to me. Isn't there a simple >>way to only override only some things? >> >>I had tried a \definetypeface line on its own, but it didn't >>seem to work ... > Hmm. How about: > \definetypescriptsynonym[modern][courier] That's quite a hack, but if there is no other choice ... > % and test with: > \usetypescript[adobekb][ec] > \usetypescript[palatino][ec] > \setupbodyfont[palatino] > \starttext > \showfontstrip > \stoptext > (It'll screw up the relative sizing put in place, and URW's Courier is > singularly ugly, and I would endorse what Hans said: you should be using > Latin Modern anyway, but I think it achieves what you want...) Actually I was thinking about something like Lucida Console ... provided that I manage to set it up :) -- Giuseppe "Oblomov" Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Why does ConTeXt try to load Latin Modern?
Or you could do something like this: \def\doiffontelse#1#2#3{% \batchmode \font\klutch=#1 \errorstopmode \ifdim \the\fontdimen5\klutch < 1pt #3\else #2\fi \let\klutch\relax } \doiffontelse{ec-lmr10} {\message{Up-to-date}} {\message{Please install lmr}} It gives an ugly error in the log file if the font is not found, but that is a only a minor inconvenience. Greetings,Taco Hans Hagen wrote: Adam Lindsay wrote: My first thought (and this probably can apply to your other issue within this thread) was to probe for tfm files with something like: \doiffile{zplmr7t.tfm} ...but that doesn't work. Does anyone know how you can look for non-.tex files from within ConTeXt? you probably need to add the font paths you your tex input paths 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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to override a font in a typescript
Giuseppe Bilotta said this at Fri, 8 Jul 2005 15:24:10 +0200: >Ok so far, but having to rewrite all of it just to override a >single value seems excessive, to me. Isn't there a simple >way to only override only some things? > >I had tried a \definetypeface line on its own, but it didn't >seem to work ... Hmm. How about: \definetypescriptsynonym[modern][courier] % and test with: \usetypescript[adobekb][ec] \usetypescript[palatino][ec] \setupbodyfont[palatino] \starttext \showfontstrip \stoptext (It'll screw up the relative sizing put in place, and URW's Courier is singularly ugly, and I would endorse what Hans said: you should be using Latin Modern anyway, but I think it achieves what you want...) -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] How to override a font in a typescript
Friday, July 8, 2005 Hans Hagen wrote: > you can define any typescript that you want, so > \starttypescript [my-palatino] [ec] >\definetypeface [palatino] [rm] [serif] [palatino] [default] > [encoding=\typescripttwo] >\definetypeface [palatino] [tt] [mono] [courier] [default] > [encoding=\typescripttwo,rscale=1.075] % probably smaller, say .95 >\definetypeface [palatino] [mm] [math] [palatino] > [default] [encoding=default] > \stoptypescript > \usetypescript[my-palatino][ec] ... Ok so far, but having to rewrite all of it just to override a single value seems excessive, to me. Isn't there a simple way to only override only some things? I had tried a \definetypeface line on its own, but it didn't seem to work ... -- Giuseppe "Oblomov" Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Why does ConTeXt try to load Latin Modern?
Hans Hagen said this at Fri, 8 Jul 2005 15:14:29 +0200: >> ...but that doesn't work. Does anyone know how you can look for non-.tex >> files from within ConTeXt? > >you probably need to add the font paths you your tex input paths Hmm. That doesn't make for a satisfying general solution, then. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Why does ConTeXt try to load Latin Modern?
Adam Lindsay wrote: My first thought (and this probably can apply to your other issue within this thread) was to probe for tfm files with something like: \doiffile{zplmr7t.tfm} ...but that doesn't work. Does anyone know how you can look for non-.tex files from within ConTeXt? you probably need to add the font paths you your tex input paths 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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Why does ConTeXt try to load Latin Modern?
Giuseppe Bilotta said this at Fri, 8 Jul 2005 13:39:22 +0200: >Is it possible to set mathpazo as the default math font for >Palatino, and setting px as the fallback? Interesting. My first thought (and this probably can apply to your other issue within this thread) was to probe for tfm files with something like: \doiffile{zplmr7t.tfm} ...but that doesn't work. Does anyone know how you can look for non-.tex files from within ConTeXt? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Why does ConTeXt try to load Latin Modern?
Giuseppe Bilotta wrote: Is it possible to set mathpazo as the default math font for Palatino, and setting px as the fallback? that would break many of my files the best thing to do is (given that this pazzo stuff is complete) \starttypescript[pazzo][... . \stoptypescript For that to work i need - the proper defs (probably adam will provide them) - a list of font files needed (in order to test them) 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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to override a font in a typescript
Giuseppe Bilotta wrote: The problem is that the Palatino typescript *explictily* mentions 'modern' as its tt font (scaled by 1.75). I would like to override that in my source file. Is this possible? you can define any typescript that you want, so \starttypescript [my-palatino] [ec] \definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=\typescripttwo] \definetypeface [palatino] [tt] [mono] [courier] [default] [encoding=\typescripttwo,rscale=1.075] % probably smaller, say .95 \definetypeface [palatino] [mm] [math] [palatino] [default] [encoding=default] \stoptypescript \usetypescript[my-palatino][ec] ... 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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Hiding the content (drawing empty boxes?)
Mojca Miklavec wrote: Tu sum it up: - the adapted plain TeX trick with boxes doesn't place any content, but only works for plain text (not useful) - \startproperty[mysecret] hides the content (works satisfactory in that view), but only works on Adebe Acrobat, not even in the Wiki - \startproperty[hidden] works on more browsers, but has the same effect as making fonts transparent: it doesn't influence any rules, figures, ... only fonts. For those complaining that hiding doesn't work on other PDF viewers: Adobe also gives up (one of those nice "undocummented features", one could also call them bugs) if I try to save the resulting file as TXT. I just wanted to check if the hidden content will be saved, but I didn't manage to save anything anyway. i've added printable support (was already there but no key available) \setupinteraction[state=start] \defineproperty [mojca] [layer] [state=stop] \starttext \input ward \startproperty[mojca]I hate hacking TeX!\stopproperty \input davis \button{Show Mojca's Secret}[VideLayer{mojca}] \button{Hide Mojca's Secret}[HideLayer{mojca}] \button{Toggle Mojca's Secret}[ToggleLayer{mojca}] \stoptext the bad news is is that acrobat does not handle it (my guess is that such features don't work becausethey have no way of testing 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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] How to override a font in a typescript
Friday, July 8, 2005 Hans Hagen wrote: > Giuseppe Bilotta wrote: >> Practical example: when I set up palatino, the typescript >> file set 'modern' as the typeface (which again tries to load >> the lm files :)) >> >> Assume now that I want to overrule that choice, and only >> that choice. Can I do this from within my source file? > one problem is that a typescript not always defines rm, ss tt mm so that > leaves > you with holes in your font system; one option is to nil the preloader in for > instance the palatino typescript; put this in your local copy of cont-sys.tex: > \let\preloadfonts\relax > \usetypescript[palatino][\defaultencoding] > \setupbodyfont[palatino,rm,12pt] I already nihiled preloadfonts in my cont-loc. Otherwise, I wouldn't have been able to compile anything so far :) The problem is that the Palatino typescript *explictily* mentions 'modern' as its tt font (scaled by 1.75). I would like to override that in my source file. Is this possible? -- Giuseppe "Oblomov" Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] enumerated lists
Frank Grieshaber wrote: Hello all (esp. the ConTeXt-Developers), some time ago I sent the following email to this list and got no reply so I'm resending it. Is there any possibility that this feature will be part of the next/one of the next ConTeXt-versions? Frank Dear all, I have a manuscript with long nested numbered enumerations and I want the numbers of all levels to be printed automatically like: 1. one 1.1 one-one 1.2 one-two 2. two 2.1 two-one 2.2.1 two-two-one ... Well, I've solved this problem with enumerations, but example isn't necessary because more elegant solution will be in next release ;-). -- Radhelorn <[EMAIL PROTECTED]> ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Why does ConTeXt try to load Latin Modern?
Friday, July 8, 2005 Adam Lindsay wrote: > Giuseppe Bilotta said this at Fri, 8 Jul 2005 10:11:01 +0200: >>Thursday, July 7, 2005 Adam Lindsay wrote: >> >>> Me neither, but they look to be of good quality, but of lesser glyph >>> coverage (lacking AMS symbols) than the PX fonts. That said, the basic >>> three fonts are 99.8% glyph compatible with the existing PX support. >> >>So ConTeXt uses the PX family for math support when Palatino >>is in use? > That's my understanding of it, yes. > Reading more about it yesterday, that does indeed sound non-optimal. > Can you say what the requirements would be for improving Palatino math > support would be? Well, all things considered I would say that augmenting the mathpazo collection would be the best thing. > (And have you tried my little typescript hack?) Yes. It works perfectly, thanks :) > For those trying to follow along: > Young Ryu's pxmath: > * Current ConTeXt choice > + Complete AMS glyph coverage > - Some spacing bugs > - No longer supported, and deprecated in LaTeX world > Diego Puga's mathpazo: > * LaTeX's preferred choice (of free fonts) > + heavily tested spacing > - only 'basic' math support > I think some sort of hybrid is possible. Without relying on virtual > fonts, it would be necessary to make a choice between the two blackboard > options. Is it possible to set mathpazo as the default math font for Palatino, and setting px as the fallback? -- Giuseppe "Oblomov" Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Hiding the content (drawing empty boxes?)
Adam Lindsay wrote: Hans Hagen said this at Fri, 8 Jul 2005 09:12:01 +0200: as long as it's only mojca's password that needs to be hidden If I'm ever going to store my password in PDF files, I'll wait for pdfTeX support for password-protected files first :) :) Well, someone could cut-and-paste that invisible text... The problem is not in cutting-and-pasting at all. If I make a presentation, people won't mind cutting and pasting on my computer while I talk. But as long as it is only supported by Adobe >= 6, it's only suboptimal. :( If someone could hack the plain TeX macro, it would probably do exactly what I would expect it to do, but it doesn't sound easy at all. But that certainly works better on Apple's Preview.app, and probably is mostly appropriate for the intended use... (hiding stuff in presentations, making them non-Acrobat/JS dependent) Except that it doesn't seem to hide framed content. Tu sum it up: - the adapted plain TeX trick with boxes doesn't place any content, but only works for plain text (not useful) - \startproperty[mysecret] hides the content (works satisfactory in that view), but only works on Adebe Acrobat, not even in the Wiki - \startproperty[hidden] works on more browsers, but has the same effect as making fonts transparent: it doesn't influence any rules, figures, ... only fonts. For those complaining that hiding doesn't work on other PDF viewers: Adobe also gives up (one of those nice "undocummented features", one could also call them bugs) if I try to save the resulting file as TXT. I just wanted to check if the hidden content will be saved, but I didn't manage to save anything anyway. Thanks for all the comments, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Making texshow easier to edit
Mojca Miklavec wrote: - a link to download documentation (pdf or png with html navigation) for single .tex files could be present (like in modules.pdf) Actually, modules.pdf is an old version. I'm making a new modules.pdf; news at http://contextgarden.net/User:Luigi.scarso/modules.pdf (actually useless link: maybe next week...) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Why does ConTeXt try to load Latin Modern?
Giuseppe Bilotta said this at Fri, 8 Jul 2005 10:11:01 +0200: >Thursday, July 7, 2005 Adam Lindsay wrote: > >> Me neither, but they look to be of good quality, but of lesser glyph >> coverage (lacking AMS symbols) than the PX fonts. That said, the basic >> three fonts are 99.8% glyph compatible with the existing PX support. > >So ConTeXt uses the PX family for math support when Palatino >is in use? That's my understanding of it, yes. Reading more about it yesterday, that does indeed sound non-optimal. Can you say what the requirements would be for improving Palatino math support would be? (And have you tried my little typescript hack?) For those trying to follow along: Young Ryu's pxmath: * Current ConTeXt choice + Complete AMS glyph coverage - Some spacing bugs - No longer supported, and deprecated in LaTeX world Diego Puga's mathpazo: * LaTeX's preferred choice (of free fonts) + heavily tested spacing - only 'basic' math support I think some sort of hybrid is possible. Without relying on virtual fonts, it would be necessary to make a choice between the two blackboard options. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Making texshow easier to edit
Patrick Gundlach wrote: Hello Nikolai, [a luckily not so long list snipped] I'll have a look at texshow-web this weekend. ... So if there are more suggestions, shout out now. Are you sure that you wanted to ask that? # source browser (apart from line numbering and advanced searching mentioned last time) - It probably doesn't make much difference, but the search could be case insensitive. - There are also quite some files with "sorry, I don't know how to display the file" message. They should either become supported, removed (we don't really need /fonts/type1/hoekwater/context/contnav.pfb for example) or there should be a link to download them - a link to download could actually be present for every file (especially if old ConTeXt distros also land in the source browser) - a link to download documentation (pdf or png with html navigation) for single .tex files could be present (like in modules.pdf) - it would be nice to add plain.tex - it would be nice to add third-party modules' sources - both goes for texshow as well This is probably not trivial, but doable: Every command is either a TeX primitive or defined somewhere (including \let-s and probably some other strange TeX stuff I'm not yet aware of). Suppose there is someone like me with very modest knowledge of all those commands, but wants to understand what that strange macro definition is doing. If there exists a short description of some command in texshow, a label could be added to any such command appearing anywhere in any .tex file and a hyperlink to either texshow or \def\thatcommand. If, for every new version of ConTeXt, a script would check for all the available new commands (\def\command), exclude the ones which are of no interest for an user (\dododododocommand ...), and somehow compare that with translations and texshow (quite some manual work would be needed anyway), than we would have a nice list of commands that: - have to be added to texshow - have to be translated if they were not already (including the modules). # live.ConTeXt - Has anyone thought about enabling the source browser and "live" on older ConTeXt distributions? I'm not sure if this brings anything and is also not on the priority list, but perhaps someone will be interested in the development of ConTeXt or some strange behaviour/bugs can be checked/compared in two different versions ... # texshow Joining (and extending) the functionality of texshow and Wiki is probably the most urgent and the least trivial task. (None of the things I mentioned above are so relevant if relevant at all.) Mojca (PS: Tell me if you need some extra books to read once you are done with your fontinstaller and the garden :) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Why does ConTeXt try to load Latin Modern?
Giuseppe Bilotta wrote: Thursday, July 7, 2005 Adam Lindsay wrote: Me neither, but they look to be of good quality, but of lesser glyph coverage (lacking AMS symbols) than the PX fonts. That said, the basic three fonts are 99.8% glyph compatible with the existing PX support. So ConTeXt uses the PX family for math support when Palatino is in use? yes, and tx when times is chosen 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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] bug in mptopdf
Taco Hoekwater wrote: Hi Hans, I am afraid there is a bug in the latest mptopdf. It presents itself by spurious spaces in the output for long postscript strings. Here is an example: % uncomment next two lines for viewing in gv(1) %defaultfont := "Times-Roman"; %prologues := 1; beginfig(1); label ("This string wraps to a second line"& " in the metapost output",(origin)); endfig; end. The created pdf document has a space after the p in metapost. The output contains: (This\040string\040wraps\040to\040a\040second\040line\040in\040the\040metap\ ost\040output) cmr10 9.96265 fshow This works ok here: \starttext \startMPpage label ("This string wraps to a second line"& " in the metapost output",(origin)); \stopMPpage \stoptext i wonder where your metap\ost comes from, is that something in your local mp? what happens if you set the line length in mp larger? 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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to override a font in a typescript
Giuseppe Bilotta wrote: Practical example: when I set up palatino, the typescript file set 'modern' as the typeface (which again tries to load the lm files :)) Assume now that I want to overrule that choice, and only that choice. Can I do this from within my source file? one problem is that a typescript not always defines rm, ss tt mm so that leaves you with holes in your font system; one option is to nil the preloader in for instance the palatino typescript; put this in your local copy of cont-sys.tex: \let\preloadfonts\relax \usetypescript[palatino][\defaultencoding] \setupbodyfont[palatino,rm,12pt] 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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Hiding the content (drawing empty boxes?)
Hans Hagen said this at Fri, 8 Jul 2005 09:12:01 +0200: >as long as it's only mojca's password that needs to be hidden :) Well, someone could cut-and-paste that invisible text... But that certainly works better on Apple's Preview.app, and probably is mostly appropriate for the intended use... (hiding stuff in presentations, making them non-Acrobat/JS dependent) Except that it doesn't seem to hide framed content. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] How to override a font in a typescript
Practical example: when I set up palatino, the typescript file set 'modern' as the typeface (which again tries to load the lm files :)) Assume now that I want to overrule that choice, and only that choice. Can I do this from within my source file? -- Giuseppe "Oblomov" Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Hiding the content (drawing empty boxes?)
> as long as it's only mojca's password that needs to be hidden, she can use: Well, it is still in the pdf file, so I'd rather not store my passwords there. Patrick -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] bug in mptopdf
Hi Hans, I am afraid there is a bug in the latest mptopdf. It presents itself by spurious spaces in the output for long postscript strings. Here is an example: % uncomment next two lines for viewing in gv(1) %defaultfont := "Times-Roman"; %prologues := 1; beginfig(1); label ("This string wraps to a second line"& " in the metapost output",(origin)); endfig; end. The created pdf document has a space after the p in metapost. The output contains: (This\040string\040wraps\040to\040a\040second\040line\040in\040the\040metap\ ost\040output) cmr10 9.96265 fshow Greetings, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Why does ConTeXt try to load Latin Modern?
Thursday, July 7, 2005 Adam Lindsay wrote: > Me neither, but they look to be of good quality, but of lesser glyph > coverage (lacking AMS symbols) than the PX fonts. That said, the basic > three fonts are 99.8% glyph compatible with the existing PX support. So ConTeXt uses the PX family for math support when Palatino is in use? -- Giuseppe "Oblomov" Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] itemize error in setbodyfont
� wrote: Hi This error massage in \startitemize[1, packed] with \setbodyfont[22pt]. this is solved in the current release you can try \definebodyfontenvironment[22pt] (funny, this \ is a backslasg but shows asn an crossed W in my mail agent) How can I do systems : begin file paint at line 11 title : - \midaligned {자전거 폐기안내} ! Math formula deleted: Insufficient symbol fonts. \mathematics #1->\relax \ifmmode #1\else $#1$ \fi \dodosymbol ...bol \csname \??ss :#1:#2\endcsname \relax }\relax \dosymbol ...fnosymbol \redosymbol \currentsymbol \fi \fi \relax \dodosymbol ...name \??ss :#1:#2\endcsname \relax }\relax \dosymbol ...fnosymbol \redosymbol \currentsymbol \fi \fi .. l.19 \item ? 茶穗六? ? Terminating on signal SIGHUP(1) [파란1GB 메일] 개성있는 서명,비즈니스용 명함~ 파란명함으로 쏴주세요! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- - 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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] enumerated lists
Mojca Miklavec wrote: Frank Grieshaber wrote: Hello all (esp. the ConTeXt-Developers), some time ago I sent the following email to this list and got no reply so I'm resending it. Is there any possibility that this feature will be part of the next/one of the next ConTeXt-versions? Frank I'm affraid that despite the huge amount of features that "itemize" offers, it should be rewritten one day. Sometimes it doesn't really work as expected (some comments can be found in my post "\setupitemize[packed,paragraph]") and the features you are mentioning here are missing, although they would be sensible. Dear all, I have a manuscript with long nested numbered enumerations and I want the numbers of all levels to be printed automatically like: 1. one 1.1 one-one 1.2 one-two 2. two 2.1 two-one 2.2.1 two-two-one ... Using the following prints only the current level's number, not all levels: \startitemize[n,packed] \item \item \startitemize[m,packed] \item \item \stopitemize \item \item \stopitemize PS: But once again - If anyone will be reading this post in the mail archive: please, don't use this trick!!! Please check first if this feature has been added in the meantime. sorry for being mean again ... % copy this into cont-new.tex \unprotect \def\dododosetupitemgroupconstant[#1][#2#3#4]% * permits [2] {\processaction [#2#3#4] [ \v!packed*=>\packitems, \v!intro*=>\itemintrotrue, \v!autointro*=>\autoitemintrotrue, \v!broad*=>\setitemparameter{#1}\c!factor{1}, #2#3*\v!broad*=>\setitemparameter{#1}\c!factor{#2#3}, #2*\v!broad*=>\setitemparameter{#1}\c!factor{#2}, \v!text*=>\textitemstrue \settrue\inlinelistitem \dosetuppackeditemgroup{#1}% \packitems, \v!columns*=>\packitems, \v!margin*=>\setitemparameter{#1}\c!width{-2em}, % signal \v!inmargin*=>\setitemparameter{#1}\c!width{-2em}, % signal \v!atmargin*=>\doifnot{#1}{1}{\setitemparameter{#1}\c!width{0em}}, % signal \v!intext*=>\settrue\inlinelistitem, % new \v!loose*=>\optimizeitemsfalse, \v!paragraph*=>\paragraphitemstrue \packitems, \v!joinedup*=>\dosetuppackeditemgroup{#1}% \packitems, \v!serried*=>\setitemparameter{#1}\c!factor{-1}, #2#3*\v!serried*=>\setitemparameter{#1}\c!factor{-#2#3}, #2*\v!serried*=>\setitemparameter{#1}\c!factor{-#2}, \v!stopper*=>\setitemparameter{#1}\c!placestopper\v!yes, \v!unpacked*=>\packeditemsfalse, \v!repeat*=>\settrue\repeatlistitem, % new \v!standard*=>\dosetupstandarditemgroup{#1}]} \def\dolistitem % evt aantal items opslaan per niveau, scheelt zoeken {\iftextitems % begin of item \else \par \fi \ignorespaces \increment\noflistelements \ifnum\itemcolumndepth=\zerocount \ifoptimizeitems \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\noflistelements>1 \doitembreak\itemnobreak \fi \else\ifnum\twopassdata>3 \ifnum\noflistelements=2 \ifitemintro \doitembreak\nobreak \else \doitembreak\itemnobreak \fi \else\ifnum\twopassdata=\noflistelements\relax \doitembreak\itemnobreak \else\ifnum\noflistelements>2 \doitembreak\itembreak \else \ifitemintro\else\doitembreak\itembreak\fi \fi\fi\fi \fi\fi \fi \fi\fi \noindent \setbox8\hbox {\ifheaditem \doitemattributes\itemlevel\c!headstyle\c!headcolor{\listitem}% \else\ifsymbolitem \symsymbol \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{\ifsubitem\llap{+}\fi\box8\hskip\leftmargindistance}% \else \ifdim\dimen2=\zeropoint\relax \calculatelistwidth1{\dimen0}% \else \calculatelistwidth\itemlevel{\dimen0}% \fi \iftextitems \hbox{\ifsubitem+\fi\box8\hskip\fontdimen2\font}\nobreak \else \ifconditional\inlinelistitem \hbox to \dimen0{\ifsubitem\llap{+}\fi\box8\hfill}% \else % todo: align+marge binnen de hbo
Re: [NTG-context] Hiding the content (drawing empty boxes?)
Adam Lindsay wrote: Mojca Miklavec said this at Fri, 8 Jul 2005 00:33:38 +0200: Just a hint: don't ever expect my secrets to be hidden that way. They are way too precious to be seen by others by simply switching them on again in Acrobat :) It's not hidden in other PDF viewers, such as Apple's native one. as long as it's only mojca's password that needs to be hidden, she can use: \starttext \input tufte \startproperty[hidden] mojca's secret code hidden for adam's apple \stopproperty \input tufte \stoptext 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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Why does ConTeXt try to load Latin Modern?
Hans Hagen wrote: ah, so 'crepi' is not related to creperen which in dutch means that he's going down (into the gutter, etc) hmm, ""In Dutch, "creperen" means to =>DIE<= a slow, agonizing death (or something along that line :))..."" In italian, 'crepi' is 3th singular person from verb 'crepare': 'crepare': to die, to pop off, to kick the bucket | to burst| to crack (like 'the wall has cracked') From latin crepare. It seem that they share the same origin. -) luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] itemize error in setbodyfont
Hi This error massage in \startitemize[1, packed] with \setbodyfont[22pt]. How can I do systems : begin file paint at line 11 title : - \midaligned {ìì ê±° í기ìë´} ! Math formula deleted: Insufficient symbol fonts. \mathematics #1->\relax \ifmmode #1\else $#1$ \fi \dodosymbol ...bol \csname \??ss :#1:#2\endcsname \relax }\relax \dosymbol ...fnosymbol \redosymbol \currentsymbol \fi \fi \relax \dodosymbol ...name \??ss :#1:#2\endcsname \relax }\relax \dosymbol ...fnosymbol \redosymbol \currentsymbol \fi \fi .. l.19 \item ? 茶ç©ï§? ? Terminating on signal SIGHUP(1) [íë1GB ë©ì¼] ê°ì±ìë ìëª ,ë¹ì¦ëì¤ì© ëª í¨~ íëëª í¨ì¼ë¡ ì´ì£¼ì¸ì! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context