[NTG-context] Font recognition with command "context", but not with command "texexec"
Hi, this might be a very simple problem, but I tried to figure it out for some time now without success. Reading manuals, searching with Google, etc. did not help. So if it actually is very simple, I herewith apologize. I really tried to solve it without the mailing list. Here is the Problem: The command "texexec" ignores the bodyfont setup. When I process the following code \setupbodyfont[gentium] \starttext This little text is enough to demonstrate the problem. \stoptext with the command "texexec /filename/", the default font is used. Only when i use the command "context/filename/.tex", context uses the font gentium. The gentium font is a truetype font and stored on my system under /usr/share/fonts. I use Linux Mint Debian Edition 201204. My .bashrc file contains the following line: export OSFONTDIR="/usr/local/share/fonts;$HOME/.fonts;/usr/share/fonts" I use the standalone version of context with pdftex. The command \contextversion returns "2012.07.27 16:41", i.e. the time I last updated it. Using the mkiv switch did not help. texexec mkiv /filename/ Any comments are welcome. Best, martin ___ 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] Two questions related with bibliography
Dear all, I have a self-made bst file in the same folder with the main tex file. I cannot figure out how to enable it. I tried \setuppublications[alternative=mybst] and \bibstyle[mybst] Both do not work. How should I do? Another question is how to set the citations in main text to be subscript? BTW, will ConTeXt drop BibTeX one day? Best regards, Wei-Wei ___ 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] Limitation of mixedcolumns?
The "nested mixedcolumns" does not work properly when it reaches the bottom of the "outer mixedcolumns" here: $ context --version mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: d:/ConTeXt/tex/texmf-local/tex/context/base/context.mkiv mtx-context | current version: 2012.07.24 15:58 here is the minimal example (mostly copied from page-mix.mkiv === \setupbodyfont[5pt] \starttext \setupmixedcolumns [boxedcolumns] [n=2, balance=no] \definemixedcolumns [nestedboxedcolumns] [boxedcolumns] [n=2, background=color, backgroundcolor=yellow, color=red, strut=yes, balance=yes, backgroundoffset=0mm] \startboxedcolumns %\dorecurse{10}{\input zapf \par \input ward \par} \obeydepth \startnestedboxedcolumns \dorecurse{15}{\input zapf\par} \stopnestedboxedcolumns \par \input zapf \par \obeydepth \startnestedboxedcolumns \input zapf \stopnestedboxedcolumns \par \input zapf \stopboxedcolumns \stoptext -- Best Regards Chen ___ 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] A strange problem, probably with \startitemize[columns]
Hello, I am a bit afraid to gain a nickname "the itemize-column guy", but it seems that again there's a problem with this feature... Unfortunately, I did not manage to isolate the problem, so maybe it lies somewhere completely else. Anyway, sorry for spamming the list again with a complete file of one of my documents (it's all Polish to most of you anyway;)), but it compiles succesfully, but very strangely (it looks like \vsize > \paperheight) on newest ConTeXt (it used to look just fine about three weeks ago). Any clues? -- Marcin Borkowski http://mbork.pl % Äwiczenia na Newtona o grach \mainlanguage[pl] \usetypescript[pagella] \setupbodyfont[pagella] \usemodule[tikz] \usetikzlibrary[calc] \let\origstarttikzpicture=\starttikzpicture \let\origstoptikzpicture=\stoptikzpicture \def\starttikzpicture{\hbox\bgroup\origstarttikzpicture} \def\stoptikzpicture {\origstoptikzpicture\egroup} \def\todo#1{{\em \kap{do dopisania}: #1}} %\setupinteraction[state=start] \enablemode[nauczyciel] %\disablemode[nauczyciel] \def\startteacher{\grabbufferdata[teacher][startteacher][stopteacher]} \doifmodeelse{nauczyciel}{\def\stopteacher{\par{\switchtobodyfont[small]\getbuffer[teacher]\par}}}{\def\stopteacher{}} \def\startanswer{\par\dostartbuffer[answer][startanswer][stopanswer]} \doifmodeelse{nauczyciel}{\def\stopanswer{{\switchtobodyfont[small]\blank[small]{\sl Odpowiedź.} \getbuffer[answer]\par}}}{\def\stopanswer{}} \def\putdotafter#1{#1.} \setuphead[subject][style=bold,after={},alternative=text,distance=0.25em,textcommand=\putdotafter] %\setuphead[section][numbercommand=\putdotafter] \setuphead[chapter][sectionstopper=.,page=no] \def\teacheronly#1{\doifmode{nauczyciel}{#1}} \def\time#1{\doifmode{nauczyciel}{\removeunwantedspaces \hskip 0pt plus 6em\penalty20\ \hskip 0pt plus -6em (#1~minut)}} \defineitemgroup[exercises] \setupitemgroup[exercises][1][n,broad,intro][left={\headnumber[chapter]},before={},inbetween={\blank[medium]}] \def\ppauza{\unskip\kern.2em--\hskip.2em\ignorespaces} \starttext \noheaderandfooterlines \startalignment[middle] \tfd Gry (materiaÅy na Äwiczenia w~czwartek) \par\blank[big] \stopalignment \startnotmode[nauczyciel] \placefigure[bottom,none]{}{% \hbox to \textwidth{ \externalfigure[logo-1-t][height=1.5cm]\hfil \externalfigure[logo-2-t][height=1.5cm]\hfil \externalfigure[logo-3-t][height=1.5cm] }} \stopnotmode \completecontent[alternative=a,pagestyle=slanted,distance=2pt] \page \startchapter[title={Gry macierzowe\time{15--20}}] \startexercises \startitem Jakie sÄ strategie optymalne dla obu graczy w~grze o~poniższej macierzy? \startformula \startmathmatrix[n=2,left={\left(\,},right={\,\right)},align=right] \NC 1 \NC 2 \NR \NC 3 \NC 4 \NR \stopmathmatrix \stopformula \startteacher Macierz interpretujemy nastÄpujÄ co: I~gracz wybiera wiersz, II~gracz wybiera kolumnÄ (obaj robiÄ to równoczeÅnie), po czym II~gracz wypÅaca pierwszemu kwotÄ z~przeciÄcia wybranego wiersza i~kolumny (gra o~sumie zero: wygrana jednego gracza jest równa przegranej drugiego). \stopteacher \startanswer Pierwszy gracz, wybierajÄ c drugi wiersz, w~każdym wypadku wygrywa wiÄcej, niż gdyby wybraÅ pierwszy; powinien wiÄc wybraÄ drugi wiersz (dominujÄ cy). Drugi gracz, wybierajÄ c pierwszÄ kolumnÄ, w~każdym przypadku traci mniej, niż gdyby wybraÅ drugÄ ; powinien wiÄc wybraÄ pierwszÄ (dominujÄ cÄ ) kolumnÄ. \stopanswer \stopitem \startitem Rozważmy grÄ z~nastÄpujÄ cÄ macierzÄ : \startformula \startmathmatrix[n=3,left={\left(\,},right={\,\right)},align=right] \NC 4 \NC 1 \NC -1 \NR \NC 0 \NC 1 \NC 6 \NR \NC 3 \NC 2 \NC 5 \NR \stopmathmatrix \stopformula Jaka jest optymalna strategia dla każdego z~graczy? \startanswer Å»aden wiersz ani kolumna nie sÄ dominujÄ ce, ale ponieważ \math{2} w~trzecim rzÄdzie i~drugiej kolumnie jest {\em najmniejszÄ } wartoÅciÄ w~swoim rzÄdzie i~{\em najwiÄkszÄ } wartoÅciÄ w~swojej kolumnie, optymalnÄ strategiÄ dla I~gracza jest trzecia (wygra co najmniej~\math{2} niezależnie od strategii II~gracza), a~dla II~gracza druga (przegra co najwyżej~\math{2} niezależnie od strategii I~gracza). \stopanswer \stopitem \startitem Gra {\em parzyste czy nieparzyste} polega na tym, że dwóch graczy wybiera (równoczeÅnie) liczbÄ \math{1} lub~\math{2}. JeÅli suma wybranych liczb jest nieparzysta, wygrywa gracz~I; jeÅli jest parzysta, wygrywa gracz~II. Gracz, który przegraÅ, oddaje drugiemu kwotÄ równÄ sumie wybranych liczb. Narysujcie macierz tej gry. Jaka jest optymalna strategia każdego z~graczy? Czy gra jest sprawiedliwa? \startteacher To zadanie możemy opuÅciÄ lub omówiÄ pobieżnie bez wiÄkszej szkody. \stopteacher
[NTG-context] TeXlive 2012 and letter module
Hi followers of ConTeXt, does something in the lettermodule in the texlive version and the minimal version of ConTeXt has changed, as both no longer recognize the \useletterextension[addrentry,label] \useaddressfile[addrfile] lines and complain about an unknown command, if yes, what would be the way to fix this, or is this functionallity finally droped? Greetings Martin 'golodhrim' Scholz ___ 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] SVG?
On Sat, Jul 28 2012, Bill Meahan wrote: > Do recent versions of MKIV (specifically, the one in TeXLive 2012) support SVG -> http://wiki.contextgarden.net/Humour#Can_you_run_it_for_me.3F ;) -- Peter ___ 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] SVG?
Do recent versions of MKIV (specifically, the one in TeXLive 2012) support SVG graphics directly or is it still necessary to convert to PDF as in the wiki example? I've created a couple of items in Inkscape and can save them to PDF directly without the "automatic" background conversion but native SVG support would be better if it exists. Thanks. -- Bill Meahan, Westland, Michigan USA “Writing is a combination of intangible creative fantasy and appallingly hard work.” —Anthony Powell This message is digitally signed with an X.509 certificate to prove it is from me and has not been altered since it was sent. smime.p7s Description: S/MIME Cryptographic Signature ___ 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] fit text to page
On 27-7-2012 19:01, Reviczky Adam wrote: setuppapersize[A4][A4] %% [A1][A1] \showframe \starttext \scale[factor=max,width=\textwidth,height=\textheight]{\framed[frame=on]{!}} \stoptext you can experiment with \unprotect \def\grph_scale_convert_large_scale#1#2#3#4% {\edef#2{\ifnum#3=\plusthousand-\the\dimexpr#1\else\luaexpr{-\number#3*\number\dimexpr#1/1000}sp\fi}% \edef#4{\luaexpr{\number#3/10}}} \protect at the top of your file - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] fit text to page
Hallo Adam, On 07/27/2012 07:01 PM, Reviczky Adam wrote: Hi list, I'm trying to scale a text to the textwidth and textheight by keeping the aspect ratio, using different papersizes. When the dimensions get too big I get an "Arithmetic overflow". (I'm trying to do something similar to resizebox in LaTeX: http://tex.stackexchange.com/questions/55394/perfectly-scale-line-paragraph-image-anything-up-to-textwidth) Minimal example: \setuppapersize[A4][A4] %% [A1][A1] \showframe \starttext \scale[factor=max,width=\textwidth,height=\textheight]{\framed[frame=on]{!}} \stoptext Error message: ! Arithmetic overflow. \c_grph_scale_used_y_scale \grph_scale_convert_large_scale ...scratchdimen #3 \relax \fi \scratchdimen -... \grph_scale_calculations_yes ...grph_scale_temp_y \xdef \finalscaleboxwidth ... \grph_scale_calculate ...h_scale_calculations_yes \fi \fi \fi \syst_boxes_with_next_box ...grph_scale_calculate \ifconditional \c_grph_sca... l.6 ...h,height=\textheight]{\framed[frame=on]{!}} Adam Not sure where exactly, but likely you have reached a size calculation limit of TeX (seems like a box calculation since more text works fine). Start with the bigger font size if you want to enlarge the box that much: \setuppapersize[A4][A4] %% [A1][A1] \showframe \starttext \definedfont[Serif at 20pt] \scale[factor=max,width=\textwidth,height=\textheight]{\framed[frame=on]{!}} \stoptext Jano ___ 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] Math operators broken in current beta
It seems like the issue has been fixed. Maybe I just happened to update at a wrong time. Thanks, Janne Junnila On Fri, Jul 27, 2012 at 12:03 PM, Janne Junnila wrote: > Hi, > > Unless I have managed to somehow mess up my installation, math > operators don't seem to render in the latest beta. The following code > produces only $x$ for me. Any ideas? > > \starttext > \startformula > \log x > \stopformula > \stoptext > > Best regards, > Janne Junnila ___ 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 ___