[NTG-context] Numbered Labels
Hi all, For a rulebook I wanted to use numbered labels in the margin for each rule like in the manual in chapter 10.5. But I dont get the chapter or section number before the rulenumber. I.e. I only get "Rule 2" instead of "Rule 4.2". How can i manage this? In the Wiki are no hints about that. Below a minimal example of what I tried. Thanks for your help. With sunny greetings from Austria Wolfgang Murth %-- \definelabel[rule][text=Rule,location=inmargin,before=, after=, way=bysection] \starttext \chapter{test} \rule this is a simple test \section{Section A} \rule[1] this is a simple test \rule this is a simple test \rule this is a simple test \rule this is a simple test \rule this is a simple test \section{Section B} \rule this is a simple test \rule this is a simple test \rule this is a simple test \rule this is a simple test \stoptext %-- ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Heros Condensed
Hi Wolfgang, > Can you try to compile it without the images, the following message looks > suspicious: I found the problem. The lines 187 and 188 are the troublemakers. \setupbackgrounds[header][text][background=nicetop] \setupbackgrounds[footer][text][background=nicebottom] With commenting them out the document is ok. Wolfgang Murth 07_Access.tex Description: Binary data ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Heros Condensed
Hi Hans, >> After fetching the simplefonts module with "first-setup.bat >> --extras="t-simplefonts" >can you test with todays beta? I'm sorry to tell you, that with this beta in other documents I only get a titlepage with text and graphics on it. All the other pages are plain white with no text. Enclosed find the tuc and log file of the successful and failing compile. The document is named 07_Access. successful: ConTeXt ver: 2009.11.02 21:31 MKIV fmt: 2009.11.7 int: english/english failing:ConTeXt ver: 2009.11.23 11:49 MKIV fmt: 2009.11.23 int: english/english kind regards Wolfgang Murth 07_Access_works.log Description: Binary data 07_Access_works.tuc Description: Binary data 07_Access_fails.log Description: Binary data 07_Access_fails.tuc Description: Binary data ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Heros condensed and Font switching
Hi Hans, >depends on your need, Main text in one font (Helvetica), Excel Formulas in another font (Heros Condensed). >no need for \language as you already use \mainlanguage ok >\def\xlf#1{{\definedfont[Bold sa 1]#1}} With that I just use the bold style of the current font and not the condensed font or have I seen that wrong? kind regards Wolfgang Murth ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Heros condensed and Font switching
Thank you all for your input at suggestions. Before I posted my question I did a search in the Wiki and the mailinglist archive but didn't find a clue. Finaly I got a working minimal example. The with \definedfont[file:...] I found out that I can use every Font that ist installed on my Windows System. Is this a correct way for font switching for a special markup or is there a better or more correct way? kind regards Wolfgang Murth % % % % Define language \language[de] \mainlanguage[de] % % % Bodyfont Helvetica \usetypescript[helvetica][texnansi] \setupbodyfont[helvetica,ss,10pt] % % % Excel Funcions and Formulas \def\xlf#1{{\definedfont[file:texgyreheroscn-bold*regular at 10pt]#1}} \starttext \chapter{Excel Time and Date} When using Time and Date calculations with Excel important functions are \xlf{DATUM} and \xlf{ZEIT}. \stoptext % ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Heros Condensed
Hi Hans, >can you test with todays beta? Tested with following sample from Wolfgang Schuster and it worked. Thanks! kind regards Wolfgang Murth \usemodule[simplefonts] \setmainfont[TeX Gyre Heros][weight=condensed] \starttext \rm\tf roman \it italic \bf bold \bi bolditalic \sc smallcaps \stoptext ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Heros Condensed
Hi Hans, >can you test with todays beta? I'll give it a try. kind regards Wolfgang Murth ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Heros condensed and Font switching
Hi all, Sorry for popping up that question again, but has anybody a hint for me how to solve it or where I can read more about it? I'm working on converting my lecture papers from latex to ConTeXt, where I also use a condended font, but only for Excel formulas and not as main body font . For example > { > \changefont{cmss}{sbc}{n}\small% > \begin{tabbing}% > \hspace{1cm}\=\$E\$9:\$E\$13 <=\$D\$9:\$D\$13\\ > \> {\$F\$18:\$H\$18 >=0}\\ > \end{tabbing} > }% My question is how I can change a font only for a particular text. Not only normal->condensed, even change the complete font like using Zapf for a special markup in a Helvetica/Heros text. Thanks for you help. Wolfgang Murth ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Heros Condensed
Hello all, After fetching the simplefonts module with "first-setup.bat --extras="t-simplefonts" And now I get a luatex error >loading : ConTeXt User Module / Simplefonts >) >! LuaTeX error >...text/tex/texmf-context/tex/context/base/font-syn.lua:666: attempt to call >field 'data_state' (a nil value) stack traceback: > ...text/tex/texmf-context/tex/context/base/font-syn.lua:666: in > function 'resetdata' > ...text/tex/texmf-context/tex/context/base/font-syn.lua:671: in > function 'identify' > ...text/tex/texmf-context/tex/context/base/font-syn.lua:696: in > function 'load' > ...text/tex/texmf-context/tex/context/base/font-syn.lua:707: in > function 'load' > ...text/tex/texmf-context/tex/context/base/font-syn.lua:844: in > function 'resolve' > ...text/tex/texmf-context/tex/context/base/font-syn.lua:1235: in > function 'exists' > ...text/tex/context/third/simplefonts/t-simplefonts.lua:183: in > function 'selectfont' > :1: in main chunk. >\currentcommalistcommand ...arameter \c!weight ")} > >\next1 #1,->\currentcommalistcommand {#1} > \doprocesscommaitem >\relax regular, > italic,slanted,bold,bolditalic,boldslanted,caps, i... >\doprocesscommalist ...aitem \gobbleoneargument #1 > ,]\relax \global \advance ... >\simplefo...@definetextfont ...rocesscommacommand > \simplefo...@typescript {\... >l.3 \setmainfont[TeX Gyre Heros][weight=condensed] kind regards Wolfgang Murth ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Heros condensed and Font switching
Hi Wolfgang, Hi all, My last post regarding Heros Condensed leads me to another unsolved mystery. I'm working on converting my lecture papers from latex to ConTeXt, where I also use a condended font, but only for Excel formulas and not as main body font . For example > { > \changefont{cmss}{sbc}{n}\small% > \begin{tabbing}% > \hspace{1cm}\=\$E\$9:\$E\$13 <=\$D\$9:\$D\$13\\ > \> {\$F\$18:\$H\$18 >=0}\\ > \end{tabbing} > }% My question is how I can change a font only for a particular text. Not only normal->condensed, even change the complete font like using Zapf for a special markup in a Helvetica/Heros text. Thanks for you help. Wolfgang Murth ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Heros Condensed
Hello Wolfgang, Thanks for your solution but one problem leads to another. First I found that I had to get the simplefonts module with "first-setup.bat --extras="t-simplefonts" And now I get a luatex error >loading : ConTeXt User Module / Simplefonts >) >! LuaTeX error ...text/tex/texmf-context/tex/context/base/font-syn.lua:666: >attempt to call field 'data_state' (a nil value) >stack traceback: > ...text/tex/texmf-context/tex/context/base/font-syn.lua:666: in > function 'resetdata' > ...text/tex/texmf-context/tex/context/base/font-syn.lua:671: in > function 'identify' > ...text/tex/texmf-context/tex/context/base/font-syn.lua:696: in > function 'load' > ...text/tex/texmf-context/tex/context/base/font-syn.lua:707: in > function 'load' > ...text/tex/texmf-context/tex/context/base/font-syn.lua:844: in > function 'resolve' > ...text/tex/texmf-context/tex/context/base/font-syn.lua:1235: in > function 'exists' > ...text/tex/context/third/simplefonts/t-simplefonts.lua:183: in > function 'selectfont' > :1: in main chunk. >\currentcommalistcommand ...arameter \c!weight ")} > >\next1 #1,->\currentcommalistcommand {#1} > \doprocesscommaitem > \relax regular, > italic,slanted,bold,bolditalic,boldslanted,caps, i... >\doprocesscommalist ...aitem \gobbleoneargument #1 > ,]\relax \global \advance ... >\simplefo...@definetextfont ...rocesscommacommand > \simplefo...@typescript {\... >l.3 \setmainfont[TeX Gyre Heros][weight=condensed] kind regards Wolfgang Murth ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Heros Condensed
Hi all, I need a condensed font and Heros Condensed came into my mind. But I haven't any clue how to use that font. How can I use that font with mkiv? Thanks for your help Wolfgang Murth ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Verbatim HTML Code
Hello Hans, >\typefile{somefile.html} Thanks, that did it. Wolfgang Murth ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Page Background
Hello Wolfgang, >\definelayer[...][...,state=continue,...] I tried that before I posted my question but that didn't work. See below a minimal sample. I am using ConTeXt ver: 2009.10.02 13:14 MKIV and also tried it with ConTeXt ver: 2009.11.02 21:31 MKIV. best regards Wolfgang Murth % Minimal Sample \language[de] \mainlanguage[de] \setuplayout[ header=0.5cm, footer=1cm, width=16.5cm, height=22.7cm, topspace=3.8cm, leftmargindistance=2mm ] \startstandardmakeup \raggedcenter \vskip 0cm \definedfont[Bold sa 2]\setstrut \strut This is the titlepage\\ \vfill \stopstandardmakeup \starttext \useexternalfigure[headpict][cow.pdf][height=2cm] \useexternalfigure[footpict][cow.pdf][height=2cm] \definelayer[imgtopbot] [width=\paperwidth, height=\paperheight, x=0cm, y=0cm, frame=off, state=continue ] \setlayerframed[imgtopbot][voffset=0.5cm,frame=off] {\externalfigure[headpict]} \setlayerframed[imgtopbot][voffset=26.5cm,frame=off] {\externalfigure[footpict]} \setupbackgrounds[page][background=imgtopbot] \chapter{first} \dorecurse{10}{\input tufte } \chapter{second} \dorecurse{10}{\input davis } \chapter{third} \dorecurse{10}{\input zapf } \chapter{fourth} \dorecurse{10}{\input bryson } \stoptext ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] framed and footnotes
Hi, I tried to put a footnote in a framed box, but the text of the footnote is not shown. Is that normal? Below you find a minimal sample of what I tried. I'm using mkiv 2009.10.02. %= \definecolor [caution] [r=1, g=.78, b=.62] \def\cautionbox#1{ \framed[background=color,backgroundcolor=caution,framecolor=red,align=normal,width=\textwidth]{#1}} \startbuffer \input tufte \stopbuffer \starttext \cautionbox{\getbuffer} \cautionbox{\getbuffer\footnote{And now a little footnote} \par\getbuffer} But as the text continues\footnote{And now a BIG footnote}. \stoptext %= Best regards Wolfgang Murth ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___