[NTG-context] Fonts, nice looking headers, MetaFun and CV module
Hi. I'm been huffing and puffing the last few days trying to do my CV in ConTeXt. My previous version used the LaTeX Curve package and I was pretty happy with that. I'm learning alot by doing this myself but some things have been pretty hard. The hardest: trying to some kind of fancy section headers. I'm pretty sure I should have been able to do this with the available documentation but I've read and read and not been able to find a solution. Here's some of the things that my little brain can't comprehend: 1. I'm thoroughly confused about how fonts work. From various documents I found some that worked, for example: \definetypeface [zapf] [cg] [calligraphy] [chancery] \switchtotypeface [zapf] [12pt,cg] or \setupbodyfont[ber,pos] But I can't seem to find any place that lists the fonts I can use or how this actually works. Is there any standardized way, for example, to change font in headers or definitions of commands to affect only text in those definitions? 2. Fancy header with half of the text in background color (see headers in my former pdf at http://www.vitum.net/gjk/cv.pdf). I tried various things here. Using \framed, MetaFun and \setupbackground. For example: \setupbackground [leftoffset=0.3cm, rightoffset=0.3cm topoffset=-0.5cm, bottomoffset=0.3cm, background=color, backgroundcolor=red] I guess I'm misunderstanding the offset parameters. 3. Framed texts with titles: As explained in the MetaFun manual (Section 4.6, page 236) I tried using the code in that section... \FrameTitle{Zapf (1)} \StartFrame Coming back to the use of typefaces in electronic publishing: many of the new typographers receive their knowledge and information about the rules of typography from books, from computer magazines or the instruction manuals which they get with the purchase of a PC or software. \StopFrame \startuseMPgraphic{FunnyFrame} picture p ; numeric w, h, o ; p := textext.rt(\MPstring{FunnyFrame}) ; w := OverlayWidth ; h := OverlayHeight ; o := BodyFontSize ; p := p shifted (2o,h-ypart center p) ; draw p ; drawoptions (withpen pencircle scaled 1pt withcolor .625red) ; draw (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner p,h) ; draw boundingbox p ; setbounds currentpicture to unitsquare xyscaled(w,h) ; \stopuseMPgraphic defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] defineframedtext[FunnyText][frame=off,background=FunnyFrame] \def\StartFrame{\startFunnyText} \def\StopFrame {\stopFunnyText } \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}} \setMPtext{FunnyFrame}{} % initialize the text variable ...and I have the following problems: - The framing of the text is limited to a too narrow textwidth. I can't seem to find where I change that in the code. - Icelandic letters don't seem to work in titles or the text in the frames. They do work in other places in the document, though. Phew, that's enough for now. If any of you guys/gals have other ideas on how to do nice looking headers I'm open to everything. Btw, I love using ConTeXt and really appreciate all your hard work. P.S. Is there any CV package for ConTeXt out there? If not I could post my work (if people like what I did) to the ConTeXt wiki for others to use. -- Best regards / Kær kveðja, Gudmundur J. Kristjansson / Guðmundur J. Kristjánsson [EMAIL PROTECTED] | [EMAIL PROTECTED] | USA Tel. +347-821-9855. Icelandic Tel. +354-893-. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] mplib
Hoi, cstug 1000 euro, gust conversie van metatype1 naar mp++ dus nu nog 500 van tug lospeuteren 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] mplib
Hi, In addition to previous mails about the mplib project we now have funding for the programming part of the mplib project (budgetted 12KEURO) - dante : 6K - tug : 1.5K - tug india : 1K - ntg : 2K - cstug : 1K - gust: will fund a sub-project (metatype1 completion) TUG indicated that next year there could be additional funding but it looks like .5K is enough then, which means that the project funcing is secured. This project is especially nice because it permits us to have a tight luatex/mp pair. LuaTeX (opened up, configurable, tunable pdftex), TeXGyre (8 open type fonts, finaly with math etc), and MPLib (integrated graphical engine) help us boost tex into the future and without funding the programming and font conversion effort, i fear it would have taken many more years. It also means that some of you will have to do some pretty hefty testing of both machineries at the end of the year since context mkiv will be used as testbed. It may be clear that projects like this put quite a financial burden on user groups (there is already substantial continuous funding of texgyre by the mentioned user groups) and luatex is also sponsored (by oriental tex project as well as tug). Projects like this put a dent in the financial reserves of lugs. So ... if you're not yet a member of a local user group or tug ... consider joining since it's the user groups that keep the good work done ... Soon there will also be the option to support specific projects (tug project page). 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] broken: noligature AND hyphenation
Just for the records: One has to be careful with this kind of avoiding ligatures. In most cases it works perfect, but when the word moves towards the end of the line and should be broken then the hyphen misses! But I guess there is no solution that fits *both* situations: regularly on a line and cross lines? Steffen On Wed, 29 Nov 2006 15:01:14 +0100, Taco Hoekwater wrote: Hans Hagen wrote: In TeX (or only LaTeX?) Auf-lagen or Auf|lagen would do this. But what is the equivalent in ConTeXt? \- To be precise, make that Auf|\-|lagen. Taco ___ 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
[NTG-context] header labels
Hi all, I've just hit some rather interesting interaction. I wanted my sections numbered A. Title, B. Title etc. This works, unless I choose language [deo]. Here's a short test document that demonstrates the behavior: \mainlanguage[de] \setupsection[section][conversion=A] \setuplabeltext[section={{},{.~}}] \starttext \section{Number One} dummy \section{Number Two} dummy \section{Number Three} dummy \stoptext If you replace language[deo] with language[de], things work as expected. Any explanation for this behavior? Best Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] header labels
On Mon, 19 Mar 2007, Thomas A. Schmitz wrote: Hi all, I've just hit some rather interesting interaction. I wanted my sections numbered A. Title, B. Title etc. This works, unless I choose language [deo]. Here's a short test document that demonstrates the behavior: \mainlanguage[de] \setupsection[section][conversion=A] \setuplabeltext[section={{},{.~}}] \starttext \section{Number One} dummy \section{Number Two} dummy \section{Number Three} dummy \stoptext If you replace language[deo] with language[de], things work as expected. Any explanation for this behavior? (Untested) \setuplabeltext[de][section=] Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] header labels
On Mar 19, 2007, at 4:46 PM, Aditya Mahajan wrote: (Untested) \setuplabeltext[de][section=] Aditya Nice try, but no cigar :-) Even with \setuplabeltext[deo][...], it still gobbels the periods after the converted numbers. Strange... Thanks for your help, Aditya! Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Fonts, nice looking headers, MetaFun and CV module
On Mon, 19 Mar 2007 03:05:16 -0400 Gudmundur J. Kristjansson [EMAIL PROTECTED] wrote: Hi. I'm been huffing and puffing the last few days trying to do my CV in ConTeXt. My previous version used the LaTeX Curve package and I was pretty happy with that. I'm learning alot by doing this myself but some things have been pretty hard. The hardest: trying to some kind of fancy section headers. I'm pretty sure I should have been able to do this with the available documentation but I've read and read and not been able to find a solution. Here's some of the things that my little brain can't comprehend: 1. I'm thoroughly confused about how fonts work. From various documents I found some that worked, for example: \definetypeface [zapf] [cg] [calligraphy] [chancery] \switchtotypeface [zapf] [12pt,cg] or \setupbodyfont[ber,pos] But I can't seem to find any place that lists the fonts I can use or how this actually works. Is there any standardized way, for example, to change font in headers or definitions of commands to affect only text in those definitions? 2. Fancy header with half of the text in background color (see headers in my former pdf at http://www.vitum.net/gjk/cv.pdf). Hi Gudmundur, below is a very simple solution to your problem. \unprotect \def\cvsection#1#2% {\bgroup \setbox\scratchbox\hbox{#2}% \!!dimena\dimexpr\ht\scratchbox+\dp\scratchbox\relax \lower\dp\scratchbox\hbox\!!to\zeropoint {\startcolor[darkgray] \vrule\c!height.5\!!dimena\c!width\hsize\hss \stopcolor}% \midaligned{\box\scratchbox} \egroup} \protect \setupcolors[state=start] \setuphead [section] [command=\cvsection, textstyle=\ss\bf] \starttext \section{Work experience} \stoptext Wolfgang I tried various things here. Using \framed, MetaFun and \setupbackground. For example: \setupbackground [leftoffset=0.3cm, rightoffset=0.3cm topoffset=-0.5cm, bottomoffset=0.3cm, background=color, backgroundcolor=red] I guess I'm misunderstanding the offset parameters. 3. Framed texts with titles: As explained in the MetaFun manual (Section 4.6, page 236) I tried using the code in that section... \FrameTitle{Zapf (1)} \StartFrame Coming back to the use of typefaces in electronic publishing: many of the new typographers receive their knowledge and information about the rules of typography from books, from computer magazines or the instruction manuals which they get with the purchase of a PC or software. \StopFrame \startuseMPgraphic{FunnyFrame} picture p ; numeric w, h, o ; p := textext.rt(\MPstring{FunnyFrame}) ; w := OverlayWidth ; h := OverlayHeight ; o := BodyFontSize ; p := p shifted (2o,h-ypart center p) ; draw p ; drawoptions (withpen pencircle scaled 1pt withcolor .625red) ; draw (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner p,h) ; draw boundingbox p ; setbounds currentpicture to unitsquare xyscaled(w,h) ; \stopuseMPgraphic defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] defineframedtext[FunnyText][frame=off,background=FunnyFrame] \def\StartFrame{\startFunnyText} \def\StopFrame {\stopFunnyText } \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}} \setMPtext{FunnyFrame}{} % initialize the text variable ...and I have the following problems: - The framing of the text is limited to a too narrow textwidth. I can't seem to find where I change that in the code. - Icelandic letters don't seem to work in titles or the text in the frames. They do work in other places in the document, though. Phew, that's enough for now. If any of you guys/gals have other ideas on how to do nice looking headers I'm open to everything. Btw, I love using ConTeXt and really appreciate all your hard work. P.S. Is there any CV package for ConTeXt out there? If not I could post my work (if people like what I did) to the ConTeXt wiki for others to use. -- Best regards / Kær kveðja, Gudmundur J. Kristjansson / Guðmundur J. Kristjánsson [EMAIL PROTECTED] | [EMAIL PROTECTED] | USA Tel. +347-821-9855. Icelandic Tel. +354-893-. ___ 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] mplib
Soon there will also be the option to support specific projects (tug project page). It is possible to contribute specifically to TUG's development fund, which is TUG's pigeonhole for dev projects, at https://www.tug.org/donate.html. Any donations to that now will end up going to luatex/mplib. Donations are, of course, greatly appreciated :). As Hans said, new members for TUG (http://tug.org/join.html) or any other user group (http://tug.org/usergroups.html) are also greatly appreciated. Cheers, Karl ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mplib
It also means that some of you will have to do some pretty hefty testing of both machineries at the end of the year since context mkiv will be used as testbed. I'll happy write lots of testing scripts. It'll be an unholy mixture of bash, make, python, scheme, and (once I learn them) lua and ruby. -Sanjoy `Not all those who wander are lost.' (J.R.R. Tolkien) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \em in typing environment
All, I have: \startMatlab function output=primary(input) statements---including subfunction calls % first subfunction function out=one(in) statements % second subfunction function out=two(in) statments \stopMatlab Where: \definetyping[Matlab] \setuptyping [Matlab] [before={\startframedtext[width=\textwidth, background=screen, backgroundscreen=0.9]}, after={\stopframedtext}, indentnext=no, color=darkred] I'd like to override the monotype and make one line emphasized, as in: \startMatlab function output=primary(input) {\em statements---including subfunction calls} % first subfunction function out=one(in) statements % second subfunction function out=two(in) statments \stopMatlab Which of course doesn't work but it does give an idea of what I want to try. Any ideas? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] broken: noligature AND hyphenation
Steffen Wolfrum wrote: Just for the records: One has to be careful with this kind of avoiding ligatures. In most cases it works perfect, but when the word moves towards the end of the line and should be broken then the hyphen misses! But I guess there is no solution that fits *both* situations: regularly on a line and cross lines? not yet, luatex will be more clever 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