[NTG-context] Re: unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua
Hi Denis, I made a similar solution for docker image [minidocks/context](https://hub.docker.com/r/minidocks/context): [https://github.com/minidocks/context/commit/9b3ccc1eb62e556cada29b5b761207a526bca52e](https://github.com/minidocks/context/commit/9b3ccc1eb62e556cada29b5b761207a526bca52e). You can get inspired. Everything works as it should: ``` $ docker run --rm -it minidocks/context --luatex --version resolvers | globbing | confusing filename, name: 'CHANGELOG.md', lower: 'changelog.md', already: 'ChangeLog.md' mtx-context | redirect luametatex -> luatex: luatex --luaonly --socket "/usr/share/tex/texmf/bin/mtxrun.lua" --script mtx-context --luatex --version --redirected resolvers | globbing | confusing filename, name: 'CHANGELOG.md', lower: 'changelog.md', already: 'ChangeLog.md' mtx-context | ConTeXt Process Management 1.06 mtx-context | mtx-context | main context file: /usr/share/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2024.04.01 08:59 mtx-context | main context file: /usr/share/tex/texmf-context/tex/context/base/mkxl/context.mkxl mtx-context | current version: 2024.04.01 08:59 ``` Best, Martin Hasoň ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
Re: [NTG-context] Printing problem
Prints fine on a LaserJet Pro M501 from Preview.app. __martin On 16 Mar 2023, at 11:49, Mikael Sundqvist via ntg-context wrote: Hi all, I have had some printing problems lately, and it is not perfectly clear to me (or to Hans, we have discussed this a bit) whether it is the printer that has a lack of memory or if the pdf files are somehow corrupted. It might have to do with type3 fonts. I attach a pdf file that does not print on our printer at work. Or well, it prints almost all of the page, but stops at the word "negativa" (or was it "egenvärden", I do not have the printout here right now). Then the printer also prints an error report about some "offending command". So, a request: If you have an easy access to a printer, can you print this page and report back if all of it comes out, or what is happening? Thanks /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Is old-multicolumns module still supported?
Hi guys, I have updated to the mtx-context to the current version: 2021.02.02 15:49 and startcolumns is throwing errors about not defined (>> \startcolumns[n=2]) I have found m-old-multicolumns.mkiv in the ConTeXt directory. Not sure if it is deprecated, but if yes, my motivation to use it was because some default length registers have different values so there is a bigger space before and after column. Regards, BruXy -- Location: Halifax, Nova Scotia Homepage: http://bruxy.regnet.cz/ Email: bru...@gmail.com, br...@regnet.cz Linkedin: http://www.linkedin.com/in/bruxy GitHub: https://github.com/BruXy ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] LMTX musl broken download link
Hi Hans, download link http://lmtx.pragma-ade.nl/install-lmtx/context-linuxmusl.zip on http://www.pragma-ade.com/install.htm (64 bit Linux Musl) page doesn't exist. Would it be possible to fix the link? Best regards Martin Hasoň ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Inkscape 1 without gui
Hi all, Inkscape version detection doesn't work for Inkscape 1 and non-gui environments (eg docker). The output of the `inkscape --version` command is > Unable to init server: Could not connect: Connection refused > Inkscape 1.0 (4035a4fb49, 2020-05-01) >Pango version: 1.44.7 This is standard commands behaviour without `--batch-process` and `--without-gui` options https://wiki.inkscape.org/wiki/index.php/Using_the_Command_Line Because the version of inkscape is on the second line, ConTeXt use options for 0.92 version and Inkscape 1 ends with an error message: > Unable to init server: Could not connect: Connection refused Unknown option --export-pdf=/app/pages/m_k_i_v_01.svg.pdf Best regards Martin Hasoň ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Update luatex for linuxmusl-64 platform in standalone distribution
Hi all, would it be possible to update luatex for the linuxmusl-64 platform, please? The current version ( http://minimals.contextgarden.net/setup/linuxmusl-64/bin/) ends with error: > This is LuaTeX, Version 1.09.2 (TeX Live 2019/dev) (INITEX) > system commands enabled. > (/usr/share/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv (/usr/share/tex/texmf-context/tex/context/base/mkiv/context.mkiv (/usr/share/tex/texmf-context/tex/context/base/mkiv/syst-ini.mkiv) : Your luatex binary is too old, you need at least version 1.10!)) > 121 words of node memory still in use: >11 glue_spec nodes >avail lists: 2:2,5:1 > No pages of output. In Dockerfile for alpine linux https://github.com/minidocks/context, I fixed this bug by downloading the latest version from https://github.com/TeX-Live/luatex. Best regards Martin Hasoň ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] LMTX for alpine linux (musl)
>> Hi all, >> >> I would like use the LMTX in alpine linux (musl). Is this version planned to be prepared? >> Best regards >> Martin Hasoň > > What's the oldest version of Alpine that we would want to support? > > Mojca I want to make the new lmtx tags for docker image minidocks/context https://hub.docker.com/r/minidocks/context. I would support the latest Alpine (3.11 or 3.10). 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] LMTX for alpine linux (musl)
Hi all, I would like use the LMTX in alpine linux (musl). Is this version planned to be prepared? Best regards Martin Hasoň ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] tikz
In addition Hrabans note When using tikz, don't use filenames with spaces. not: picture test.tex, better: picture-test.tex Building may work, so possibly not your error, but some text about pgf may appear in the PDF and empty files (here eg pictures) maybe created. bye, Martin On Wed, 2019-11-27 at 15:42 +, Ursula Hermann wrote: > Then after compiling I have the following mistake: > > Command Line: context.exe --synctex=-1 "picture test.tex" > Startup Folder: > C:\Users\Hermann\Downloads\context-mswin\tex\texmf-context\doc\context\sources\general\manuals\nodes > ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] maths simplifying fractions
sorry for the slow reply, a cold knocked me out. Thanks Henri for pointing to a solution you already offered on stackexchange! I will save it as a good universal solution. Thanks to Kitz, for the very specific solution. This is what I am using at the moment. This might help. > https://tex.stackexchange.com/questions/501056/equivalent-of-cancelto-in-context > > > ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] maths simplifying fractions
Hi all, I am writing some maths exercises that include simplifying fractions. For that reason I would like to cross out some numbers. Unfortunately overstrike doesn't do the trick, eg with a 4 the overstrike is practically invisible. Is there any way to get a diagonal stroke like the latex module "cancel" can do? Thanks for any suggestions, Martin \starttext \startformula \frac{\overstrike{2}}{\overstrike{4}} = \frac{1}{2} \stopformula \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] circuitikz meters
Thanks for that Henri. I didn't expect a simple thing like that. As I had some similar "glitches" before, I'll have a look through the module. All the best, Martin On Tue, 2019-10-01 at 14:03 +1300, Henri Menke wrote: > Circuitikz uses \textbf inside, which is a LaTeX macro. Unfortunately, this > is > hardcoded within the ammeter and voltmeter nodes, so you can't easily change > it. Instead you can simply provide a macro that does the correct thing. > > \usemodule[circuitikz] > \let\textbf\bold % <--- > \starttext > \starttikzpicture > \draw (0,0)to[ammeter, t=A, i=$i$] ++(3,0); > \draw (0,4) to[rmeter, t=V, v>=$v$] ++(3,0) ; > \draw (0,2) to[voltmeter, l=$U$] (++3,2); > \stoptikzpicture > \stoptext > > Cheers, Henri > ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] circuitikz meters
Hello ... I am drawing some simple circuits for an electro-physics class I am teaching using circuitikz. Using meters gives some effects I don't quite understand. The MWE works as shown. The commented lines fail with "Undefined control sequence". If I put the same 3 lines into Latex (via Texstudio on Linux), just the opposite happens. The line with rmeter fails, the other two work. Why the difference? Some version issue? The "circuitikz manual version 0.9.4.pdf" shows all 3 types of meters as choice. Actually I would prefer to use the "ammeter" and "voltmeter" within Context. Thanks for any pointers. Greetings, Martin \usemodule[circuitikz] \starttext \starttikzpicture %\draw (0,0)to[ammeter, t=A, i=$i$] ++(3,0); \draw (0,4) to[rmeter, t=V, v>=$v$] ++(3,0) ; %\draw (0,2) to[voltmeter, l=$U$] (++3,2); \stoptikzpicture \stoptext Latex MWE, works as shown \documentclass{article} \usepackage{circuitikz} \begin{document} \begin{circuitikz} \draw (0,0) to[ammeter, t=A, i=$i$] ++(3,0); %\draw (0,4) to[rmeter, t=V, v>=$v$] ++(3,0) ; \draw (0,2) to[voltmeter, l=$U$] (++3,2); \end{circuitikz} \end{document} ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] defs, variables and dimensions (was: passing variables/data between context and lua)
Hi Hraban, I can't answer your question counter or \define. However in my specific situation I would not use the number as a counter but just as a value. Actually my situation is an exam in which the total points are 44. From these I want to calculate percentages. And, as I find it easier to write calculations (electro physics and maths) in Lua, I then want to pass the results out to Context. Greetings, Martin > > > \define\question{44} > > \defineexpandable\question{44} > > Would it make sense to use a counter or some other TeX construct? > > Is it better to use \setvariable(s) for simple values than any \def? > > Should I use a \newdimen for every custom measure that I want to use with > \dimexpr, e.g. > > \def\MyWidth{10mm} > or better > \newdimen\MyWidth > \MyWidth=10mm > ? > > ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] passing variables/data between context and lua
Thanks for the quick answers. Both suggestions work for me. @Massi Thanks for the pointer into the cld-mkiv.pdf @Wolfgang: I have to admit that I don't completely comprehend your solution, though it works. Searching around for the commands you use, I came across an older posting you answered too: https://mailman.ntg.nl/pipermail/ntg-context/2012/064326.html That helps too. However I can find little documentation on the \setvariable/s commands. I'll play around with the solution to understand it better. > \defineexpandable\question{44} > A solution which uses only existing commands in the document. > > \startsetups [martin] > \startlua > local points = tonumber(\getvariable{martin}{question}) or 0 ; >points = points * 92 ; > local answer = 42 ; > context.setvariable("martin","points",points) ; > context.setvariable("martin","answer",answer) ; > \stoplua > \stopsetups > > \setvariable{martin}{set}{\directsetup{martin}} > > \starttext > > \setvariables [martin] [question=44] > > Points: \getvariable{martin}{points} > > The answer is \getvariable{martin}{answer}. > > \stoptext > > Wolfgang > ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] passing variables/data between context and lua
Hi, I am trying to pass variables/data between context and lua. Lua would be used for calculations on data coming from context. Unfortunately I can't figure out what to do. The code below doesn't work, but is there to illustrate my idea. Any help would be much appreciated. Thanks, Martin \define\question{44} \starttext \startluacode local points = \question * 92 -- do some calculations with points and return to to context answer=42 \stopluacode % lots of Text in between The answer is \answer \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] comma as decimal separator in maths mode
Hi ... I am outputting some numbers in maths mode that have a comma as decimal separator. I get a big space after the comma, which I can prevent by writing $1{,}5$ Is there a less awkward way of getting the comma as a "real" decimal separator? Thanks, Martin \starttext $1,5$ \math{1,5} $1{,}5$ \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \date is calculated wrong
On Wed, 2019-09-11 at 08:42 +0200, Hans Hagen wrote: > On 9/11/2019 4:15 AM, Martin Althoff wrote: > > Hi all, > > > > the \date is output wrong. Whatever value is given for d= I get the 11th. > > That is todays > > date. Not sure what would happen tomorrow > > > > Thanks for any fix suggestions. > > > > \starttext > > \date[d=16,m=9,y=2019][weekday, day,{. }, month, year] > > \stoptext > also in the latest beta? > > Hans > All fixed after updating to current version: 2019.09.10 20:03 Sorry for the noise, Thanks, 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] \date is calculated wrong
Hi all, the \date is output wrong. Whatever value is given for d= I get the 11th. That is todays date. Not sure what would happen tomorrow Thanks for any fix suggestions. \starttext \date[d=16,m=9,y=2019][weekday, day,{. }, month, year] \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] tikz problem with fontsize
Thanks for all the replies. @Ulrike: You are right, this example you give works for me too. Me experiencing it not working must have come out of some strange constellation. @Aditya: Yes, it does. But {} are needed: \tikzstyle{label}=[font={\switchtobodyfont[20pt] \red}] @Hagen: Yes, most examples do use Latex commands. What confused me, was/is which commands are from the macro package i.e. Latex or Context and which are actually Tikz. Integrating font handling makes sense. That is why the idea of using Context font commands did not occur to me. With this in mind, I'll go back to some slightly different syntax used in Tikz 3.1.4 manual and see what happens. Thanks, Martin On Sun, 2019-09-01 at 16:25 +0200, Ulrike Fischer wrote: > Am Sun, 1 Sep 2019 13:05:10 +0200 schrieb Hans Hagen: > > > what is \coordinate supposed to do: > > it stores a coordinate under a name. And it works fine for me (I > would have been quite surprised if not): > > \usemodule[tikz] > \starttext > > \starttikzpicture > \coordinate (a) at (1,1); > \coordinate (b) at (2,2); > \draw[red,<->](a)--(b); > \stoptikzpicture > \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] tikz problem with fontsize
Hi Hans, thanks for this. Yes, that works. Am I right to assume that Context does not have a full tikz engine in the background due to the module implementation? For example, the \coordinate command is unknown as well. Is there any way to integrate a standalone tikz into context documents? Sort of like svg is handled through inkscape. Martin > just use context font commands, like > > \tikzstyle{label}=[minimum size=30mm,line > width=2mm,draw=blue!50,align=center, > font=\bfx] > > but i think you can also do more, like > > \tikzstyle{label}=[minimum size=30mm,line > width=2mm,draw=blue!50,align=center, > font=\bfx\red\setstrut] > > ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] tikz problem with fontsize
Hello all, I am trying to set the fontsize in a tikz image and that is failing. Strangely at the \node line with : ! Undefined control sequence. As the MWE stands now, it will fail. The now commented line works. main context file: /usr/local/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv current version: 2019.08.24 22:42 The fontsize statement work in kTikz. What to do? Are there other ways to change font size in the Context TikZ? Thanks for any input! Martin \usemodule[tikz] \starttext \starttikzpicture \tikzstyle{label}=[minimum size=30mm,line width=2mm,draw=blue!50,align=center,font=\fontsize{60}{60}\selectfont] %\tikzstyle{label}=[minimum size=30mm,line width=2mm,draw=blue!50,align=center] \node[label] at (1,1) {88} ; \stoptikzpicture \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] CrossWords Puzzles with context
Thanks for sharing this! Great help for me as a teacher :) On Sun, 2019-06-23 at 19:06 +0100, Jorge Manuel wrote: > After some attempts to build crosswords puzzles with context, I found this > approach: > > ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] aligning rotated text in a natural table
Thanks for that Wolfgang. It doesn't seem to work though. The text stays at the left. Meantime I have tried two other approaches. Only an approach using a \framed handles longer lines. My problem with the 3. \framed approach is: how do I get the size of the current table cell? In the MWE I used fixed values, in the actual document that would not be good - too many different cells. I am trying a further approach using MetaPost and OverlayBox. Seems possible (line wrapping also an issue), but quite involved... Thanks, Martin New MWS: \setupTABLE[c][1][width=20mm] \setupTABLE[c][2,3][width=30mm] \setupTABLE[r][1][height= 50mm,align={lohi}] \bTABLE \bTR \bTD \dontleavehmode{\rotate{1. a bit more text again, entering the age of long sentences}} \eTD \bTD \hbox to \dimexpr(.5\lineheight+.5\hsize){\hss{\rotate{2. a bit more text again, and see if linebreaking works}}} \eTD \bTD \rotate[rotation=90,location=depth]{\framed[frame=on,align={lohi,middle},width=\dimexpr(\o verlaywidth-05pt),width=48mm,height=29mm]{3. even more huge text, wondering where the rabbit runs)}} \eTD \eTR \eTABLE On Wed, 2019-06-12 at 22:23 +0200, Wolfgang Schuster wrote: > Martin Althoff schrieb am 12.06.2019 um 13:11: > > I am trying to align rotated text horizontally and vertically in a table > > cell. Vertically > > is no problem, horizontally it fails. Non-rotated text is, of course, fine. > > > > What can I do to fix the problem? Thanks for suggestions. > > > > Martin > > > > using: mtx-context | current version: 2019.05.18 10:42 > > PDF of my output is attached. > > > > MWE: > > > > \starttext > > \setupTABLE[c][1][width=7mm] > > \setupTABLE[c][2][width=30mm] > > \setupTABLE[r][each][align={lohi,middle},height= 50mm] > > > > \bTABLE > > \bTR > > \bTD \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD > > \bTD \dontleavehmode\rotate[...]{...} \eTD > > Wolfgang > ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] aligning rotated text in a natural table
Hi Willi, thanks for the quick reply. I have the [align=lohi] as part of the setupTABLE statement. Now I tried adding it into the particular cell -- again no effect even if I add "middle". \bTD[align=lohi] \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD I suspect the rotate mechanism places the object independent of the align= statement. For that reason some other handling might be needed. I just don't know which :) Martin On Wed, 2019-06-12 at 14:31 +0200, Willi Egger wrote: > Martin, did you try to add [align=lohi]? > > Willi > > > On 12 Jun 2019, at 13:11, Martin Althoff wrote: > > > > I am trying to align rotated text horizontally and vertically in a table > > cell. Vertically > > is no problem, horizontally it fails. Non-rotated text is, of course, fine. > > > > What can I do to fix the problem? Thanks for suggestions. > > > > Martin > > > > using: mtx-context | current version: 2019.05.18 10:42 > > PDF of my output is attached. > > > > MWE: > > > > \starttext > > \setupTABLE[c][1][width=7mm] > > \setupTABLE[c][2][width=30mm] > > \setupTABLE[r][each][align={lohi,middle},height= 50mm] > > > > \bTABLE > > \bTR > > \bTD \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD > > \bTD blah \eTD > > \eTR > > > > \eTABLE > > \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] aligning rotated text in a natural table
I am trying to align rotated text horizontally and vertically in a table cell. Vertically is no problem, horizontally it fails. Non-rotated text is, of course, fine. What can I do to fix the problem? Thanks for suggestions. Martin using: mtx-context | current version: 2019.05.18 10:42 PDF of my output is attached. MWE: \starttext \setupTABLE[c][1][width=7mm] \setupTABLE[c][2][width=30mm] \setupTABLE[r][each][align={lohi,middle},height= 50mm] \bTABLE \bTR \bTD \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD \bTD blah \eTD \eTR \eTABLE \stoptext rotate-test.pdf Description: Adobe PDF document ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Old version of luatex for alpine linux (musl)
Dear Mojca, musl LuaTeX binary is out of date again: This is LuaTeX, Version 1.09.2 (TeX Live 2019/dev) (INITEX) system commands enabled. (/usr/share/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv (/usr/share/tex/texmf-context/tex/context/base/mkiv/context.mkiv (/usr/share/tex/texmf-context/tex/context/base/mkiv/syst-ini.mkiv) : Your luatex binary is too old, you need at least version 1.10!)) Would it be possible to update automatically LuaTeX? Best regards Martin pá 26. 10. 2018 v 14:08 odesílatel Mojca Miklavec < mojca.miklavec.li...@gmail.com> napsal: > Dear Martin, > > On Tue, 23 Oct 2018 at 15:24, Mojca Miklavec wrote: > > On Tue, 23 Oct 2018 at 13:37, Martin Hasoň wrote: > > > > > > I want to use the last beta version of standalone ConTeXt distribution > in alpine linux (musl). The installation was OK, but an error occurred > while compiling the file: > > > > Eeeem, my fault, sorry. I did not update LuaTeX for musl as it comes > > from another source > > Can you please try again if it works now? > > Thanks to Henri I fetched the binary of LuaTeX 1.09 (but did not yet > set up automation to do that in the future, please give me some more > time :). > > Henri, thanks a lot. > > Mojca > ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Missing modules crossref and pararef
Hi all, I want to use pararef <https://wiki.contextgarden.net/Paragraph_Referencing> and crossref <http://wiki.contextgarden.net/Cross_Referencing> modules, but they are not present in the ConTeXt installation. These modules also missing in output of install command sh ./first-setup.sh --modules=all Best regards Martin Hasoň ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Latest changes in some size registers
Hi Wolfang, Thank you very much for both answers! I have updated it on wiki: https://wiki.contextgarden.net/Visual_Debugging#Layout Regards, BruXy On 2019-02-25 1:39 p.m., Wolfgang Schuster wrote: Martin Bruchanov schrieb am 22.02.19 um 04:37: Hi all, I have some very condensed documents which should fit on one page: http://gnulinux.guru/bash_cheatsheet.pdf Without any major change in style definition, there is more space around sections or itemize: http://gnulinux.guru/bash_cheatsheet_diff.pdf Source code is here: https://github.com/BruXy/gnulinux.guru/tree/master/bash_tahak Did I miss some update which has introduced some different length settings? I have version: 2019.02.14 16:57 The columns-environment uses now the newer mixedcolumns code which create by default different spaces around section titles. The old columns code can be loaded as a module with \usemodule[old-multicolumns] Wolfgang ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Latest changes in some size registers
I have just done some manual changes to solve this: before={\blank[1*small]} to before={\blank[-5pt]},% Btw, is there any way to display values of these visual attributes when I need to debug "setupsection" setting? (I am usually changing a lot of stuff and comparing it with Wiki and output, but it is quite lame approach.) Regards, BruXy On 2019-02-21 11:37 p.m., Martin Bruchanov wrote: Hi all, I have some very condensed documents which should fit on one page: http://gnulinux.guru/bash_cheatsheet.pdf Without any major change in style definition, there is more space around sections or itemize: http://gnulinux.guru/bash_cheatsheet_diff.pdf Source code is here: https://github.com/BruXy/gnulinux.guru/tree/master/bash_tahak Did I miss some update which has introduced some different length settings? I have version: 2019.02.14 16:57 Regards, BruXy ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Latest changes in some size registers
Hi all, I have some very condensed documents which should fit on one page: http://gnulinux.guru/bash_cheatsheet.pdf Without any major change in style definition, there is more space around sections or itemize: http://gnulinux.guru/bash_cheatsheet_diff.pdf Source code is here: https://github.com/BruXy/gnulinux.guru/tree/master/bash_tahak Did I miss some update which has introduced some different length settings? I have version: 2019.02.14 16:57 Regards, BruXy ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \date behaving strange
Great, that worked. Thanks for the quick solution. Changed the line, then ran: luatools --generate luatools --ini --compile cont-en On 09.02.19 20:59, Hans Hagen wrote: On 2/9/2019 2:39 PM, martin wrote: I'm getting a bit confused. The \date function doesn't result in a formatted date. That goes for some files that are a few weeks old. What am I missing? \starttext \date[d=2,m=3,y= 2018] \stoptext results in: d=2m=3y= 2018 An optional formatting parameter has no effect \date[d=1, m=4, y=2018][weekday, {\\}, dd,{-}, mm,-, year] line 446 of core-con.mkiv should be: {#2}{\currentdatespecification}{\labellanguage}% ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] \date behaving strange
I'm getting a bit confused. The \date function doesn't result in a formatted date. That goes for some files that are a few weeks old. What am I missing? \starttext \date[d=2,m=3,y= 2018] \stoptext results in: d=2m=3y= 2018 An optional formatting parameter has no effect \date[d=1, m=4, y=2018][weekday, {\\}, dd,{-}, mm,-, year] using: mtx-context | current version: 2019.02.07 18:46 ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] problem with non-printing hex 0x0C
I had a problem that kept me busy for a few hours. A \page command had no effect, the text just continued in the pdf. The culprid turned out to be a hex 0x0C, a formfeed character. Once I removed them all was good. It got introduced by extracting the text from a PDF. I realize my files should be "clean" of control characters and ConTexT should (maybe) not be stripping those characters. Then again, they serve no purpose in the document. So... My question: Isn't some more resilience sensible so commands don't break? Or error messages? cheers and thanks for any thoughts. Martin For the record: ConTeXt ver: 2019.01.28 16:58 MKIV beta fmt: 2019.2.4 int: english/english I'm not sure if the FF makes it through the mail. A hex editor will/would show it in front of the \page (sheer coincidence) \starttext \startitemize[columns] \item auf \hl[6]~ Baum \stopitemize \page 1. Der Bauer sitzt auf \hl[6]~ Traktor. \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Best strategy for ConTeXt to ePub update
Hi all, While ago I wrote a book (http://sstv-handbook.com/) in ConTeXt and I have started to thinking about possibility to export also ePub and xHTML besides the PDF version. Few questions: 1. What is current support of ePub, will it export pictures automatically? 2. Do I need to rewrite source code to use those verbose \startsXXX of every element (paragraph, item,...) or is there any simplier way how to handle sources as they are now? Regards, BruXy ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] placing an MPGraphic/Lines over multiple table cells
I am trying to place some lines in "Z" shape over several cells of a table. This single "Z" has the intention of blocking manual alterations to the table in empty cells. The cells to blocked are always a coherent rectangle. I hope that makes sense. In the example below, the table with 4 rows, 3 columns has content in column one only, the other 2 columns should have the "Z". Placing the blocking "Z" into every cell is not an option due to formal requirements. What I attempted below a) seems very cumbersome b) doesn't work (the small "Z" doesn't fill the frame). While I can easily place a "Z" into a single cell (in the example), I can't figure out how to cover multiple cells. Furthermore, I would need to do a lot of calculations to figure out the multiple layer placements, column positions, etc. With multiple tables on a page, several pages, that seems error prone. Any suggestions, corrections, hints are most welcome! Kindly, Martin Working example with some comments: % Graphic that draws the "Z", that works fine in a single table cell as seen in the example \startuseMPgraphic{ZRule} rulethickness:= \frameddimension{rulethickness}*3; drawoptions( withpen pencircle scaled rulethickness withcolor \MPcolor{\framedparameter{framecolor}}); pair topleftcorner, toprightcorner; topleftcorner := (rulethickness, \overlayheight-rulethickness-1.5mm); toprightcorner:= (\overlaywidth-rulethickness, \overlayheight-rulethickness-1.5mm); pair lowerleftcorner, lowerrightcorner; lowerleftcorner := (rulethickness, rulethickness+1.5mm); lowerrightcorner:= (\overlaywidth-rulethickness, rulethickness+1.5mm); draw topleftcorner -- toprightcorner; draw lowerleftcorner -- lowerrightcorner; draw toprightcorner -- lowerleftcorner; \stopuseMPgraphic \defineoverlay[ZRule][\useMPgraphic{ZRule}] \starttext \setupTABLE[c][each][width=30mm] \setupTABLE[r][each][width=6mm] % in an attempt to place the table at known positions, I put it into a layer. Though it is not really "background". \definelayer[datatable][x=0mm, y=0mm,width=\textwidth, height=25mm] \setlayer[datatable][hoffset=0mm, voffset=0mm]{ \bTABLE \bTR \bTD content1 \eTD \bTD \eTD \bTD \eTD \eTR \bTR \bTD content \eTD \bTD \eTD \bTD \eTD \eTR \bTR \bTD content \eTD \bTD \eTD \bTD \eTD \eTR \bTR \bTD content \eTD \bTD[background=ZRule] \eTD \bTD \eTD \eTR \eTABLE } % Now trying to create another layer covering the table area where the "Z" should go. \definelayer[ZStrike][x=32mm, y=0mm,width=60mm, height=24mm] % The "Z" fails to reach full size of the frame \setlayer[ZStrike][hoffset=0mm, voffset=0mm]{\framed[frame=on,width=60mm,height=24mm]{\useMPgraphic{ZRule}}} % arrange the "background" layers \setupbackgrounds[text][background={datatable,foreground,ZStrike}] \blank[force, 28mm] further content \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Reset bibliography numbering
Hi all, I want to use a custom bibliography for every section in document. It is possible to starting the numbering from 1 for each section? \setupbtxrendering[default][ repeat=yes, continue=yes, method=local, numbering=yes, criterium=section, ] \usebtxdataset[default][bib.buffer] \starttext \startsection[title=Section 1] \cite[a] \placelistofpublications \stopsection \startsection[title=Section 2] \cite[b] \cite[a] \cite[c] \placelistofpublications \stopsection \stoptext Actual output: Section 1 [1] 1 bib a Section 2 [2] [1] [3] 2 bib b 1 bib a 3 bib c Expected output: Section 1 [1] 1 bib a Section 2 [1] [2] [3] 1 bib b 2 bib a 3 bib c Many thanks for your help 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Old version of luatex for alpine linux (musl)
Hi all, I want to use the last beta version of standalone ConTeXt distribution in alpine linux (musl). The installation was OK, but an error occurred while compiling the file: This is LuaTeX, Version 1.07.0 (TeX Live 2018) (INITEX) > system commands enabled. > (/usr/share/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv > (/usr/share/tex/texmf-context/tex/context/base/mkiv/context.mkiv > (/usr/share/tex/texmf-context/tex/context/base/mkiv/syst-ini.mkiv > warning (pdf backend): unexpected use of \pdfvariable > ! Missing number, treated as zero. > > \edef > l.1122 \edef > \pdfpagebox {\pdfvariable pagebox} > \pdfpag... > ? > ) > : Your luatex binary is too old, you need at least version 1.08! > Assertion failed: kpse->program_name (../../../texk/kpathsea/variable.c: > kpathsea_var_value: 36) > mtx-context | error, no format found with name: cont-en, aborting Best regards Martin Hasoň ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] The best command for parallel texts
Hi all, I need to type parallel text on double columns. I've tried paragraphs, tabulate, table and column environments. The best result of these options gives the tabulate. Unfortunately, it does not respect alignment - many \hbox errors in all environments except columns :(. What should I use and set up? \setuppapersize[A6][A6] \defineparagraphs[TwoLang][n=2] \setuptabulate[split=yes] \setupalign[verytolerant,stretch] \starttext \startTwoLang \input lorem \nextTwoLang \input davis \stopTwoLang \starttabulate[|p|p|] \NC\input lorem \NC\input davis \NC\NR \stoptabulate \bTABLE[frame=off,align=yes,split=yes] \bTR \bTD[roffset=2mm]\input lorem\eTD \bTD[loffset=2mm]\input davis\eTD \eTR \eTABLE \startcolumns[n=2] \input lorem \column \input davis \stopcolumns \stoptext Best regards Martin Hasoň ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] context tarball distribution?
Dear list, Our slightly paranoid system administrator refuses to pull context via rsync on our development and production hosts. He says there's no protection against someone who may tamper with the data on its transfer like e.g. TLS-protected traffic via https. So I got the following question from him: Can ConTeXt be obtained as a tarball or zipfile? Preferably with version identifiers in the name so he can ensure the parity of the installations across severeal host. Greetings, 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] vertical alignment of images in Natural Table
Apologies if this is a double posting. But my first mail never appeared on the list. Hello, I am trying to vertically align images within a bTABLE/Natural Table cell. The result should be 4 cards on an A4 page with a simple maths exercise and a small image that illustrates the exercise. The image should be horizontally and vertically centered within the space after the text. Exercise text and image size vary somewhat, so a fixed placement is not possible. I have tried \vfill, but it seems to have no effect in a Natural Table. Similarly, \placefigure has not worked for me. As basic layout I am using a Natural Table (4 x 4 cells per page, 12 pages), maybe not the best solution. Alternative suggestions are most welcome. Suggestions would be much appreciated. Martin \starttext \setupTABLE[frame=on,offset=2mm] \setupTABLE[c][1,2][width=.5\textwidth] \setupTABLE[r][1,2][height=.5\textheight] \bTABLE \bTR \bTD 7·3 apples are on a tree. Anne picks 4·3 apples. \blank[.5em] How many apples remain on the tree? \framed[align={low,middle},location=lohi,width=local]{\externalfigure[apple]} \eTD \eTABLE \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] vertical alignment of images in Natural Table
Hello, I am trying to vertically align images within a bTABLE/Natural Table cell. The result should be 4 cards on an A4 page with a simple maths exercise and a small image that illustrates the exercise. The image should be horizontally and vertically centered within the space after the text. Exercise text and image size vary somewhat, so a fixed placement is not possible. I have tried \vfill, but it seems to have no effect in a Natural Table. Similarly, \placefigure has not worked for me. As basic layout I am using a Natural Table (4 x 4 cells per page, 12 pages), maybe not the best solution. Alternative suggestions are most welcome. Suggestions would be much appreciated. Martin \starttext \setupTABLE[frame=on,offset=2mm] \setupTABLE[c][1,2][width=.5\textwidth] \setupTABLE[r][1,2][height=.5\textheight] \bTABLE \bTR \bTD 7·3 apples are on a tree. Anne picks 4·3 apples. \blank[.5em] How many apples remain on the tree? \framed[align={low,middle},location=lohi,width=local]{\externalfigure[apple]} \eTD \eTABLE \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] MS Office Chinese fonts in ConTeXt
Hi Hans, Thank you for your help! I have switched to \usetypescriptfile[mscore]. However, I do not understand one thing, I am using envvar in Linux `OSFONTDIR` and all font file names are in upper case. When \usetypescriptfile[mscore] is set, ConTeXt cannot find font files, when I have renamed all files to lower case, then it works. If I will query font cache with: `mtxrun --script font --list --all --pattern=stsong`, it will return correct path to font file and it does not depend on case. Is it a feature? Best regards, BruXy On 27/08/17 03:12 PM, Hans Hagen wrote: Hi, Attached is a better alternative (just replace the file in the distribution). \usetypescriptfile[mscore] \setupbodyfont [mschinese,12pt] \usebodyfont [mschinese-light,12pt] \definebodyfontenvironment[24pt] \definebodyfontenvironment[18pt] Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] MS Office Chinese fonts in ConTeXt
Hi all, I was trying to create a Chinese document. However, it was quite difficult to find actual information and find fonts... Here is the result: https://github.com/BruXy/ConTeXt-Chinese There is still wrong numbering of Tables and I am not sure how to convert mschinese.ctex into module, but maybe somebody will help. Regards, BruXy PS: It you have some other working Chinese ConTeXt documents, I would be happy to get inspired. ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Initials and short paragraph
Thank you, I think I can make something with this. On Tue, Jun 20, 2017 at 9:45 PM, Pablo Rodriguez <oi...@gmx.es> wrote: > On 06/20/2017 10:15 PM, Martin Oppegaard wrote: > > Thanks for the suggestions! Is there a way to get the amount of > > horizontal space the initial takes so that can be put in manually in > > front of the next paragraph? > > Martin, > > how about making the initial transparent? > > \definecolor[transparentblue][t=0, a=1] > \setupwhitespace[medium] > \starttext > \placeinitial > Knuth writes: > > \placeinitial \starteffect[hidden]K\stopeffect\input knuth > \setupinitial[color=transparentblue] > > \placeinitial K\input knuth > \stoptext > > The sample contains two methods. > > Just in case it helps, > > Pablo > -- > http://www.ousia.tk > > ___ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___ > ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Initials and short paragraph
Thanks for the suggestions! Is there a way to get the amount of horizontal space the initial takes so that can be put in manually in front of the next paragraph? On Tue, Jun 20, 2017 at 6:51 PM, Pablo Rodriguez <oi...@gmx.es> wrote: > On 06/09/2017 07:05 AM, Martin Oppegaard wrote: > > Hi, > > > > When placing an initial and the paragraph is short, the initial is > > laid over the next paragraph. Example: > > > > \starttext > > \placeinitial > > Knuth writes: > > > > \input knuth > > \stoptext > > > > Is there anything to do about this? > > Hi Martin, > > I guess initials make sense only when used inside a paragraph. It is > problematic when you have white space defined. > > Having margin initials is also another approach. You may compare both > with the following sample: > > \setupwhitespace[medium] > \setupinitial[location=margin] > \starttext > \placeinitial > Knuth writes: > > \input knuth > \setupinitial[location=text] > \placeinitial > Knuth writes:\\ > \input knuth > \stoptext > > I hope it helps, > > Pablo > -- > http://www.ousia.tk > > ___ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___ > ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Initials and short paragraph
Hi, When placing an initial and the paragraph is short, the initial is laid over the next paragraph. Example: \starttext \placeinitial Knuth writes: \input knuth \stoptext Is there anything to do about this? Regards, Martin Oppegaard ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] BUG: % is comment in btx fields
2017-05-08 23:44 GMT+02:00 Henri Menke <henrime...@gmail.com>: > The percent character in btx field is taken as a comment characters > which leads to the rest of the field being discarded. In the MWE > below, the URL is cut off at the % sign and everything after it is > lost. See also https://tex.stackexchange.com/q/368730/5763 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problems with old style figures and particular font
On Fri, Aug 12 2016, Wolfgang Schuster wrote: > > > Martin Oppegaard > 11. August 2016 um 21:42 > > Hi Wolfgang, thank you for the quick reply. > > > Moving \definefontfeature before \setupbodyfont doesn't change > anything > for me. Here is the output of running context: > > You need also "script=latn" when you enable oldstyle numerals. > > You can use the mtxrun script to list the available features of a font > where you also see the necessary script: > > $ mtxrun --script font --list --info fbbregular > > resolvers | trees | analyzing 'home:texmf' > mtx-fonts | > mtx-fonts | mapping : fbbregular > mtx-fonts | fontname : fbbregular > mtx-fonts | fullname : fbbregular > mtx-fonts | filename : fbb-Regular.otf > mtx-fonts | family : fbb > mtx-fonts | weight : normal > mtx-fonts | style : normal > mtx-fonts | width : normal > mtx-fonts | variant : normal > mtx-fonts | fweight : conflict: regular > mtx-fonts | > ... > mtx-fonts | > mtx-fonts | gsub features: > mtx-fonts | > mtx-fonts | feature script languages > mtx-fonts | > ... > mtx-fonts | onum grek dflt > mtx-fonts | latn dflt > > begin example > \starttypescript [serif] [fbb] > \setups[font:fallback:serif] > \definefontsynonym [Serif] [file:fbbregular] > \definefontsynonym [SerifItalic] [file:fbbitalic] > \definefontsynonym [SerifBold] [file:fbbbold] > \definefontsynonym [SerifBoldItalic] [file:fbbbolditalic] > \stoptypescript > > \definefontfeature[default][default][script=latn,onum=yes] > > \definetypeface [fbb] [rm] [serif] [fbb] [default] [features=default] > \definetypeface [fbb] [mm] [math] [modern] [default] > > \setupbodyfont[fbb] > > \starttext > ABC abc 1234 > \stoptext > end example > > Wolfgang Ah that solved it, thank you very much! Best regards, Martin Oppegaard ___ 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] Problems with old style figures and particular font
Hi Wolfgang, thank you for the quick reply. On Thu, Aug 11 2016, Wolfgang Schuster wrote: > > > Martin Oppegaard > 10. August 2016 um 22:27 > > Dear list, > > I'm having problems getting old style figures and ligatures with > the fbb > font. I'm using Tex live 2014 on OpenBSD 5.9 and context version > 2014.05.21 22:04. otfinfo -f fbb-Regular.otf reports that it has > onum > and liga, and it works fine with lualatex. I have tried with a > typescript and simplefont (the fbb font is being used in all three > cases); see attached examples. Do you have any suggestions? > > % type-fbb.mkiv > \starttypescript [serif] [fbb] [name] > \definefontsynonym [Serif] [file:fbb-Regular.otf] > [features=default] > \definefontsynonym [SerifItalic] [file:fbb-Italic.otf] > [features=default] > \stoptypescript > > \starttypescript [fbb] > \definetypeface [fbb] [rm] [serif] [fbb] [default] > \stoptypescript > > > % contex-test1.tex > \usetypescriptfile[type-fbb] > \usetypescript[fbb] > \setupbodyfont[fbb,11pt] > \definefontfeature[default][default][liga=yes,onum=yes] > > Move the \definefontfeature setting before \setupbodyfont because > changes to the feature set after the font is loaded are ignored. > > \definefontfeature[default][default][liga=yes,onum=yes] > \setupbodyfont[fbb,11pt] > > Wolfgang > Moving \definefontfeature before \setupbodyfont doesn't change anything for me. Here is the output of running context: open source > 1 > 1 > /usr/local/share/texmf-dist/tex/context/base/cont-yes.mkiv ConTeXt ver: 2014.05.21 22:04 MKIV beta fmt: 2016.2.22 int: english/english system > 'cont-new.mkiv' loaded open source > 2 > 2 > /usr/local/share/texmf-dist/tex/context/base/cont-new.mkiv close source> 2 > 2 > /usr/local/share/texmf-dist/tex/context/base/cont-new.mkiv system > files > jobname 'context-test1', input './context-test1', result 'context-test1' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > 2 > 3 > /home/martin/documents/fbb-test/context-test1.tex open source > 3 > 4 > type-fbb.mkiv close source> 3 > 4 > type-fbb.mkiv fonts > preloading modern-designsize (math) fonts > typescripts > unknown library 'modern-designsize' or 'modern' fonts > 'fallback modern-designsize mm 11pt' is loaded fonts > preloading modern-designsize (mono) fonts > 'fallback modern-designsize tt 11pt' is loaded backend > xmp > using file '/usr/local/share/texmf-dist/tex/context/base/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1 close source> 2 > 4 > /home/martin/documents/fbb-test/context-test1.tex close source> 1 > 4 > /usr/local/share/texmf-dist/tex/context/base/cont-yes.mkiv system > structure > start used structure used structure > text: context-test1 system > structure > stop used structure system > files > start used files used file >1: filename=cont-yes.mkiv filetype=tex foundname=/usr/local/share/texmf-dist/tex/context/base/cont-yes.mkiv usedmethod=database used file >2: filename=cont-new.mkiv filetype=tex foundname=/usr/local/share/texmf-dist/tex/context/base/cont-new.mkiv usedmethod=database used file >3: filename=lang-us.lua filetype=lua foundname=/usr/local/share/texmf-dist/tex/context/patterns/lang-us.lua usedmethod=database used file >4: filename=/home/martin/documents/fbb-test/context-test1.tex foundname=/home/martin/documents/fbb-test/context-test1.tex usedmethod=direct used file >5: filename=type-fbb.mkiv foundname=type-fbb.mkiv usedmethod=direct used file >6: filename=fbb-Regular.otf filetype=otf format=otf foundname=/usr/local/share/texmf-dist/fonts/opentype/public/fbb/fbb-Regular.otf usedmethod=database used file >7: filename=lpdf-pdx.xml filetype=tex foundname=/usr/local/share/texmf-dist/tex/context/base/lpdf-pdx.xml usedmethod=database system > files > stop used files system > options > start commandline options used option > currentrun="3" used option > fulljobname="./context-test1.tex" used option > input="./context-test1.tex" used option > kindofrun="2" used option > maxnofruns="8" used option > no-parse-first-line="true" system > options > stop commandline options system > options > start commandline files used f
[NTG-context] Problems with old style figures and particular font
Dear list, I'm having problems getting old style figures and ligatures with the fbb font. I'm using Tex live 2014 on OpenBSD 5.9 and context version 2014.05.21 22:04. otfinfo -f fbb-Regular.otf reports that it has onum and liga, and it works fine with lualatex. I have tried with a typescript and simplefont (the fbb font is being used in all three cases); see attached examples. Do you have any suggestions? % type-fbb.mkiv \starttypescript [serif] [fbb] [name] \definefontsynonym [Serif] [file:fbb-Regular.otf] [features=default] \definefontsynonym [SerifItalic] [file:fbb-Italic.otf] [features=default] \stoptypescript \starttypescript [fbb] \definetypeface [fbb] [rm] [serif] [fbb] [default] \stoptypescript % contex-test1.tex \usetypescriptfile[type-fbb] \usetypescript[fbb] \setupbodyfont[fbb,11pt] \definefontfeature[default][default][liga=yes,onum=yes] \starttext 1234567890 ff \stoptext % context-test2.tex \usemodule[simplefonts][size=11pt] \setmainfont[fbb Regular] \definefontfeature[default][default][liga=yes,onum=yes] \starttext 1234567890 ff \stoptext % lualatex-test.tex \documentclass[11pt]{article} \usepackage{fontspec} \setmainfont[Numbers=OldStyle,Ligatures=Historic]{fbb Regular} \begin{document} 1234567890 ff \end{document} Best regards, Martin Oppegaard ___ 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] 10th ConTeXt meeting update
2016-07-11 12:02 GMT+02:00 Taco Hoekwater <t...@bittext.nl>: > To make it up to you, we will allow an extra few days of early bird > registration. All registrations done during the current week will still be > considered ‘early’, as long as the bank transfer happens at the same time. > The new cut-off date is therefore Sunday July 17 (I have no desire to update > the web pages with the new deadline, so just ignore the July 1st date given > there). Good. I noticed yesterday that I didn't register yet and early bird had passed. :-) 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 ___
Re: [NTG-context] [OT] Richard Stallmann Receiving the 2015 ACM Software System Award
2016-04-27 19:10 GMT+02:00 luigi scarso <luigi.sca...@gmail.com>: > http://awards.acm.org/press_releases/technical-awards-2015.pdf https://en.wikipedia.org/wiki/GNU_Compiler_Collection#History I'm not sure if RMS' role in GCC has been beneficial in say the last two decades 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 ___
Re: [NTG-context] Fwd: [dante-ev] Kooperation mit der PDF Association
2016-04-21 19:24 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > I suppose that Dante, the largest tex user group being around, being a > member of that group means that the rest of the user groups can save > themselves the trouble and money ... for the few users who need that kind of Also the PDFA is mostly german. And any TeX developer who wants to work on PDF standardisation with the PDFA is welcome, even if (s)he is not a member of DANTE. 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 ___
Re: [NTG-context] two issues with interactive hyperlinks (please comment)
2016-02-22 21:40 GMT+01:00 Alan BRASLAU <alan.bras...@cea.fr>: > This makes me think: Is there some "standard" way for a PDF to contain > both versions? Adobe introduced something called "portfolios" in PDF 1.7 or later, but I doubt that they work with non-Adobe viewers. 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] Bibliographies in MkIV
Hi all, I'm unable to get the andtext option to \setupsite working. According to the old bib module manual, it should control the separation between two authors. Thus the following: \setupbibtex[database=sample,sort=author] \setuppublications[alternative=num] \setupcite[left=(,right=),inbetween={,},andsep={,}] \starttext This is a test of the context citation module in MkIV\cite[hh2010a,Eijkhout1991]. \placepublications[criterium=text] \stoptext using the following sample.bib @ARTICLE{hh2010a, author = hh, title = {The Font Name Mess}, journal = {MAPS}, year = {2010}, volume = {40}, pages = {2-8}, keywords = {context}, } @BOOK{Eijkhout1991, title = {\TeX\ by Topic. A \TeX nician's Reference}, publisher = {Addison-Wesley}, year = {1991}, author = {Victor Eijkhout}, address = {London}, keywords = {general}, } Should produce in the output (1,2) but instead produces (1 and 2). Is there a quick fix? Regards. __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] Fwd: [dante-ev] FYI: Hermann Zapf
-- Forwarded message -- From: Juergen Fenn jf...@gmx.net Date: 2015-06-06 0:44 GMT+02:00 Subject: [dante-ev] FYI: Hermann Zapf To: \Diskussionsliste von DANTE e.V. für Mitglieder Diskussionsliste\ dante...@dante.de -- Forwarded message -- From: b...@ams.org Date: 2015-06-05 21:36 GMT+02:00 Subject: Hermann Zapf To: typ...@listserv.heanet.ie i've just learned (from Chuck Bigelow) that Hermann Zapf has died. R.I.P. -- bb Barbara Beeton Publications Technical Specialist American Mathematical Society 201 Charles Street Providence, RI 02904 Phone: +1 401.455.4000 Fax: +1 401.331.3842 [http://www.ams.org/images/emailFooter-MR75th.png]http://www.ams.org/about-us/contact/reach AMS on Social Mediahttp://www.ams.org/about-us/social ___ 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] drops module release
2014-12-08 13:24 GMT+01:00 Peter Rolf indi...@gmx.net: finally(!?) the release of the drops module for ConTeXt. Which does what? 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 ___
Re: [NTG-context] CV / Resume examples
On Fri, Jun 27, 2014 at 05:24:13PM -0700, Kip Warner wrote: Hey list, Hey Kip and list ;) There is my CV for your inspiration: http://bruxy.regnet.cz/personal/Martin_Bruchanov_Resume.pdf http://bruxy.regnet.cz/personal/Martin_Bruchanov_Resume.ctex BruXy -- Martin Bruchanov Skype : bruxytronics WWW : http://bruxy.regnet.cz/ GPG-Key : http://bruxy.regnet.cz/bruxy-gpg.key (0x8107ED53) Linked-In : http://www.linkedin.com/in/bruxy Google+ : http://gplus.to/BruXy ___ 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] ConTeXt minimal on chromebook
Hi, I was using ConTeXt (ages ago) on my Nokia N800. There were/are pre-compiled Debian packages for arm architecture. Try looking this direction. Martin 17. úno (Pondělí) v 21:23:53 CET 2014, John Kitzmiller k...@inradius.net napsal(a): I attempted to put ConTeXt minimal on Samsung chromebook and got: Error: your system Linux armv7l is not supported yet. Please report to the ConTeXt mailing-list (ntg-context@ntg.nl) This is not a request to support the armv7l (unless it is trivial) but, is it futile to attempt installing minimal on a chromebook with Intel ATOM N570, or Intel Celeron-867? (If I had them at hand I would try.) ___ 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] ConTeXt minimal on chromebook
17. úno (Pondělí) v 23:49:47 CET 2014, John Kitzmiller k...@inradius.net napsal(a): On Feb 17, 2014, at 4:01 PM, Martin maaca Rehula wrote: I was using ConTeXt (ages ago) on my Nokia N800. There were/are pre-compiled Debian packages for arm architecture. Try looking this direction. Martin 21:23:53 CET 2014, John Kitzmiller k...@inradius.net napsal(a): I attempted to put ConTeXt minimal on Samsung chromebook and got: Error: your system Linux armv7l is not supported yet. Please report to the ConTeXt mailing-list (ntg-context@ntg.nl) This is not a request to support the armv7l (unless it is trivial) but, is it futile to attempt installing minimal on a chromebook with Intel ATOM N570, or Intel Celeron-867? (If I had them at hand I would try.) Thank you Martin. I was not clear. I can run Debian and other *nix flavors on the chromebook by various methods and then have ConTeXt, but I would rather not 'dual boot.' What I am after is to have ConTeXt run 'natively,' if that is the right word/concept, on a chromebook core platform. From the chromebook shell I know I can run vim to edit files but I would like to compile them. (Viewing will be the next chapter!) ChromeOS is Linux-based operating system. I don't know, what exactly is different compared to normal Linux distribution. You should be able to execute Linux binaries there. .deb packages are not any ultra proprietary, extra DRM-protected things. It is just .tar.gz archive enclosed in the ar archive. So, you can easily extract files from the .deb package, copy them to your chromebook and execute them. I don't expect dependency on too many libraries. 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 ___
Re: [NTG-context] OT: Reflections on usability ConTeXt for typesetting of mathematics
2014-02-11 10:18 GMT+01:00 Fabrice Couvreur fabrice1.couvr...@gmail.com: Unless I am mistaken, Cambria is a font available for Windows. I'm using Linux, is it possible to install ? Is it free ? If yes, where can I download it ? https://en.wikipedia.org/wiki/Cambria_(typeface)#Availability Xits, I do not know. It's on CTAN and included in TeXLive. 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 ___
Re: [NTG-context] interaction strangeness
Nope..was sleeping. Just woke… __martin On 8 Dec 2013, at 19:55, Jan Tosovsky j.tosov...@email.cz wrote: On 2013-12-06 H. van der Meer wrote: Some further experimentation: interchanging two chapters makes the problem go away. It is reproducible, because putting the chapters back als brings the problem back. Even stranger, sitting at chapter 5 it kills the interaction for chapter 6 and 8, leaving the interactivity for the intervening and later chapters intact. Addition of content to the start of chapter 5 helped for chapter 6 but not for chapter 8, which seems strange. Addition of content to the end of chapter 5 also helped for chapter 6 Addition of content to the start of chapter 7 did help to solve for chapter 8. So I fear it has in some way to do with the moment the output routine is called in relation to the reference processing in \startchapter[title=,reference=]. This topic was discussed few weeks ago without clear conclusion: http://www.ntg.nl/pipermail/ntg-context/2013/075988.html In my case most of cases were resolved when I changed \placebookmarks[chapter, section] just to \placebookmarks[chapter] Although few cases still remain, it is much better now. When the particular item doesn't react via bookmark, it doesn't react also via ToC. I plan to prepare an example for this, but for me it is not so urgent issue. Jan ___ 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 ___ ___ 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] PDF Transparency and ConTeXt
2013/9/29 Thangalin thanga...@gmail.com: I ran into what I think is a similar issue with LaTeX and was able to resolve it using the following command in the preamble: \pdfpageattr{/Group /S /Transparency /I true /CS /DeviceRGB} This should be done automagically in pdfTeX (at least it once was). 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] Em dash using Hoefler
Hopefully, this is the correct list for this question. I'm trying to typeset documents using the font Hoefler on MacOSX (10.8.4) with ConTeXt 2013.05.28 from the TeXlive 2013 distribution. All works, but unfortunately, em dashes are not typeset correctly; there are three dashes instead of a continuous line. I'm obviously missing something and would appreciate help in correcting this. A minimal example that produces the error is: \usetypescriptfile[osx] \usetypescript[hoefler] \setupbodyfont[hoefler,11pt] \starttext A test of Hoefler at 10 pt. The emdash--- does not work... \stoptext files are compiled using context myfile.tex Thanks. __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 ___
Re: [NTG-context] Em dash using Hoefler
Hi Marko, On 20 Aug 2013, at 10:52, Marco Patzer li...@homerow.info wrote: I checked a different version of the font (1.000) and it works. It seems you're using a version not containing an em dash. Thanks for looking into this. Finder reports that my version of Hoefler is 8.0d2e1. Interestingly, bringing up the font panel, selecting Hoefler text followed by show characters (gear wheel in bottom left of font panel), shows the the em dash is present in the font. Additionally, the following, typeset with lualatex, uses hoefler and does have the emdash. The resulting pdf file when intorrogated using pdffont reports pdffont lat_hoef.pdf HoeflerText-Regular (Type0) \documentclass{article} \usepackage{xltxtra} \defaultfontfeatures{Mapping=tex-text} \setromanfont [Scale=1.05,ItalicFeatures={Contextuals={NoLineFinal,NoLineInitial}}] {Hoefler Text} \begin{document} This is hoefler at 10pt. This is an em dash---ok! \end{document} So, is there something wrong with the ConTeXt mapping? __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 ___
Re: [NTG-context] Em dash using Hoefler
Hi Matt, On 20 Aug 2013, at 13:00, Matt Gushee m...@gushee.net wrote: I don't think it's the font. I have been trying to produce an em dash using the latest stable release from contextgarden.net, with a couple of different fonts--Alegreya, which is a free OpenType font, Latin Modern, and one other that I don't remember. In my case, regardless of the font, \emdash works but --- does not. Thanks! I can confirm that \emdash works perfectly with the minimal example I posted. Cheers. __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 ___
Re: [NTG-context] authoring for web and print - suggestions
2013/5/11 Norbert Preining prein...@logic.at: Does anyone have experience with authoring for web and print. I.e., we want to maintain only one format and generate both web pages and printed documentation from it. Is there intrinsic or through addons support in ConteXt for this? Consider pandoc. But you probably need math. :-) 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] problems with the invoice module from contextgarden
Hi guys, today I tried to use the invoice module from contextgarden http://wiki.contextgarden.net/Invoice first it spit errors about userdata.numberformat in combination with %, after commenting it out and not using it, I now get that error: ) (invoicefunctions.tex ! LuaTeX error [string \directlua ]:24: unexpected symbol near '%'. system tex error on line 112 in file invoicefunctions.tex: LuaTeX error ... 102 userdata.InvoiceTextLine(item.text) 103 end 104 end 105 printperhour = (hoursum 0) and (amountsum == (hoursum * userdata.invoice.perhour)) 106 --userdata.invoice.hours = hoursum 107 --userdata.invoice.amount = amountsum 108 userdata.InvoiceSumLine(gesamt, printperhour) 109 context.stoptabulate() 110 end 111 112 \stopluacode } \luat_start_lua_code_indeed ...nd \directlua {#1}} l.112 \stopluacode anyone can help here? Thx 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 ___
[NTG-context] mptopdf problem: he is broken and asking for fix
Hi, I'm using: MPtoPDF 1.4.1 : running 'mpost --mem=mpost linejoin.mp' This is MetaPost, version 1.800 (kpathsea version 6.1.1dev) Attached sources give following error: This is MetaPost, version 1.800 (kpathsea version 6.1.1dev) 26 MAR 2013 22:04 **linejoin.mp (mpost.mp (/mnt/data/tex/texmf/metapost/base/plain.mp Preloading the plain mem file, version 1.004) ) (./linejoin.mp (./line_makro.mp) [1 ! This can't happen (degenerate spec). endfig-scantokens.extra_endfig;shipit; endgroup l.24 endfig ; I'm broken. Please show this to someone who can fix can fix So I hope, there is someone who can fix :) Best regards, BruXy -- Martin Bruchanov Skype : bruxytronics WWW : http://bruxy.regnet.cz/ GPG-Key : http://bruxy.regnet.cz/bruxy-gpg.key (0x8107ED53) Linked-In : http://www.linkedin.com/in/bruxy Google+ : http://gplus.to/BruXy input line_makro.mp def drawjoin(text cap)(text move)(expr xsour)(text desc) = x0 := xsour; linejoin := cap; label.top(desc, z0+(0, 1u)); line(move)(tl, tlline); line(move)(.4bp, black); put_points(shifted (xsour, 0)); enddef; % Rohy navazujicich car beginfig(1); %% path p; z0 = (0,0); z1 = (1u,1u); z2 = (2u,0); p := z0--z1--z2; drawjoin(rounded)()(0)(rounded); drawjoin(beveled)(shifted z0)(3u)(beveled); drawjoin(mitered)(shifted z0)(6u)(mitered); endfig; end; def line(text t)(expr size,col) = draw p t withpen pencircle scaled size withcolor col; enddef; def bod(text t) = draw p t withpen pencircle scaled .4bp; enddef; def put_points(text t) = for i = z0,z1,z2: if i = z0: drawdot i withpen bodik; else: drawdot i t withpen bodik; fi; endfor; enddef; defaultfont := cmtt10; u := cm; % uzka carka nl := .4bp; pen bodik; bodik := pensquare scaled 2nl; color tlline; tlline := 0.7white; tl := 3mm; %drawdot (0,0) shifted (-1cm, 0) withpen bodik; pgp0gSdrUwMMq.pgp Description: PGP 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 ___
[NTG-context] No interaction for publications with author-year style
Hi all, I cannot get interactive publication references with author-year styles, i.e. all apa and ssa alternatives. See below: setupbibtex[database={sample}] setuppublications[alternative=apa] setupinteraction[state=start,color=blue] setupcombinedlist[publications][interaction=all] starttext Here I reference Ref1 cite[ref1] and Ref2 cite[ref2]. page[yes] placepublications[criterium=all] stoptext It works, however, with setuppublications[alternative=ams] or with the num alternatives. In short, author-year styles do not work, but number styles do. Any clues as to what might help? I attached the bib file. Thanks in advance. Best, Martin@Article{ ref1, author = {{Author 1}}, title = {Title 1}, journal = {Journal 1}, volume = {1}, number = {1}, pages = {1-11}, year = {2001} } @Article{ ref2, author = {{Author 2}}, title = {Title 2}, journal = {Journal 2}, volume = {2}, number = {2}, pages = {2-22}, year = {2002} }___ 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] No interaction for publications with author-year style
Hi all, I cannot get interactive publication references with author-year styles, i.e. all apa and ssa alternatives. See below: \setupbibtex[database={sample}] \setuppublications[alternative=apa] \setupinteraction[state=start,color=blue] \setupcombinedlist[publications][interaction=all] \starttext Here I reference Ref1 \cite[ref1] and Ref2 \cite[ref2]. \page[yes] \placepublications[criterium=all] \stoptext It works, however, with \setuppublications[alternative=ams] or with the num alternatives. In short, author-year styles do not work, but number styles do. Any clues as to what might help? I attached the bib file. Thanks in advance. Best, Martin @Article{ ref1, author = {{Author 1}}, title = {Title 1}, journal = {Journal 1}, volume = {1}, number = {1}, pages = {1-11}, year = {2001} } @Article{ ref2, author = {{Author 2}}, title = {Title 2}, journal = {Journal 2}, volume = {2}, number = {2}, pages = {2-22}, year = {2002} }___ 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] Enable comments/highlighting in the output PDF
2013/1/22 Devendra Ghate devendra.gh...@gmail.com: I would like to create an output PDF file on which comments can be added by a reader for feedback. Use Adobe Acrobat and add that option to the PDF. 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 ___
Re: [NTG-context] ConTeXt on the Mac (TexShop). Problem of a newbie
2013/1/10 Keith J. Schultz keithjschu...@web.de: I am kind of confused about the relationship between luatex and ConTeXt. http://www.tug.org/levels.html ConTeXt MkIV needs LuaTeX. 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 ___
Re: [NTG-context] Was: Opening external documents ... - Can ConTeXt reduce size of images?
2013/1/8 Hans Hagen pra...@wxs.nl: it's even worse ... all kind of color and other data is present is such a file .. the pstopdf.rb script (comes with mkii) gets rid of some of that We could reduce some of that during pdf inclusion (or use the new build-in pdf library). 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 ___
Re: [NTG-context] Including movies in pdf files
2012/12/3 Bill Meahan subscribed_li...@meahan.net: FWIW, Adobe Acrobat Reader 11.0 installs and runs on Xubuntu 12.04 i386 (at least the normal functions run, haven't tried any of the oddball stuff). And where do you get that? It's not listed at http://www.adobe.com/support/downloads/product.jsp?product=10platform=unix 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 ___
Re: [NTG-context] Updating texlive?
2012/11/27 Mojca Miklavec mojca.miklavec.li...@gmail.com: What exactly do you mean with a canonical way? The most reliable way How about delivering a new version through tlcontrib? 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 ___
Re: [NTG-context] error when using externalfigure
2012/11/26 luigi scarso luigi.sca...@gmail.com: It has 240x160 pixels and 1ppi, so it's 6,096 meters x 4,06400meters I doubt that 1ppi is intended. :-) 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 ___
Re: [NTG-context] Images in MultiMarkdown - context - PDF
2012/11/21 Guy Stalnaker jstal...@wisc.edu: I get a very good pdf document, but there is one bewildering issue -- the images in the ConTeXt output pdf document are scaled very small. All of Sounds like the TeX engine gets the wrong idea about the dpi of the images. Are you using MkII or MkIV? 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 ___
Re: [NTG-context] How to display source in ConTeXt?
2012/11/13 yang.zhao hckjs...@gmail.com: Thank you, it works. PLEASE switch of Comic Sans! http://bancomicsans.com/ ___ 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] How to display source in ConTeXt?
2012/11/13 Martin Schröder mar...@oneiros.de: 2012/11/13 yang.zhao hckjs...@gmail.com: Thank you, it works. PLEASE switch of Comic Sans! http://bancomicsans.com/ Apologies: I forgot a :-) 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 ___
Re: [NTG-context] \externalfigure and large-paged pdfs
2012/11/8 Taco Hoekwater t...@bittext.nl: Actually, this is a bug report. If you try to include a pdf with a large page size: large being (\maxdimen / 2.8) ? Best Martin PS: What would break if we extended dimens to 64/63 bit in LuaTeX? ___ 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] Multipass Datasets doesn't work
Hello, the simple example from the mailing-list doesn't work with the latest beta. I think the core-dat.lua is corrupted (function commands.datasetvariable) \definedataset[test-1] \definedataset[test-2] \starttext \setdataset[test-1][x=Value X 1,y=Value Y 1] \setdataset[test-1][x=Value X 2,y=Value Y 2] \setdataset[test-2][a][name=Ben Lee User,job=Manager] \setdataset[test-2][b][title=TeX by Topic] \startlines \datasetvariable{test-1}{1}{x}:\datasetvariable{test-1}{1}{y} \datasetvariable{test-1}{2}{x}:\datasetvariable{test-1}{2}{y} \stoplines Name: \datasetvariable{test-2}{a}{name} \par Job: \datasetvariable{test-2}{a}{job} \par \stoptext Kind regards, 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 ___
Re: [NTG-context] Multipass Datasets doesn't work
Am 29.10.2012 10:13, schrieb Wolfgang Schuster: elseif type(t) == table then Now it works, thanks. ___ 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] Promotion of the ConTeXt IRC channel
hi Sietse, there are normally about 5-10 users online regularly, including me and Troy, but it would be nice to meet more users there, as a fast help is easier accomplished via IRC then ML but right ML is nice for a searchable help and as Marco said a secondary helpsystem... That channel was designed as a meetingpoint and should have been handed to ConTeXt by the owners but ConTeXt itself never asked for it and so the topic is still there as an unofficial ConTeXt source, that helped me many times :) So I think your idea about a regularly discussion on there concerning a special topic would be nice, but even having more users there and helping ppl the fast chatway would even be better and nicer too and as I can speak for me myself it is also nice to stay conected and build friendships easier in IRC then ML... :) 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] TeX expansion within lua
2012/9/4 Marco Patzer home...@lavabit.com: I am just interested in a text string, not a box with typeset material. I guess that's more difficult, since macros are expanded and not just simply read. http://tracker.luatex.org/view.php?id=682 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 ___
Re: [NTG-context] Is it posslible to use remotely loaded image in PDF?
2012/8/29 Rostislav Wolný rostislav.wo...@twobits.cz: I'm just wondering if it is possible to create PDF document which contains image (link to image) which is downloaded from the Internet and displayed at the moment when PDF is opened? No. You can use External Objects (PDF Ref 8.8), but that can only point to local files, not URLs. And you would need a viewer that handled External Objects. Or you could use the Open Prepress Interface (PDF Ref 14.11.7), but that can only point to local files, not URLs. And you would need a viewer that handled OPI. Maybe with embedded flash. :-{ 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 ___
Re: [NTG-context] A series of articles about text-editors for the MAPS
Hi Willi, I used vim/gvim in the past and switched to emacs. I write all my stuff with ConTeXt and with some tweaking of the commands you can also make mkiv run inside of emacs. also nice is to write your metapost and use the metapost mode for it that can generate a preview inside emacs for you. Together with auctex and reftex emacs is in my opinion the best tool for writing TeX/LaTeX/ConTeXt documents. So setup is: * emacs * auctex * ConTeXt * reftex * preview-latex * etexshow (a Browser for ConTeXt commands) * metapost-mode+ (metapost preview) * meta-mode (for metafont and metapost) so far the best setup I had and where I will stay :) 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] A series of articles about text-editors for the MAPS
luigi scarso luigi.sca...@gmail.com writes: On Wed, Aug 8, 2012 at 3:19 PM, Martin 'golodhrim' Scholz scholz@gmail.com wrote: Hi Willi, I used vim/gvim in the past and switched to emacs. I write all my stuff with ConTeXt and with some tweaking of the commands you can also make mkiv run inside of emacs. also nice is to write your metapost and use the metapost mode for it that can generate a preview inside emacs for you. Together with auctex and reftex emacs is in my opinion the best tool for writing TeX/LaTeX/ConTeXt documents. So setup is: * emacs * auctex * ConTeXt * reftex * preview-latex * etexshow (a Browser for ConTeXt commands) * metapost-mode+ (metapost preview) * meta-mode (for metafont and metapost) so far the best setup I had and where I will stay :) I'm also with emacs and I feel I will stay... But I have not investigate too much on a specific ConTeXt-mode. It would really useful (well, at least for me ) if you can wikify your setup (emacs stuff are quite stable over the time) BTW I also use * lua-mode.el Hi Luigi, sure I can a lot of what I have is already in the funtoo wiki, but I can try to strip out only the ConTeXt parts from my setup and add it to contextgarden :) will take some time, as I have some work floating around my desk that I need to fix first... :) 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] TeXlive 2012 and letter module
Thx Wolfgang, this makes sense, as I still had your old examples online and build my letters after that I was just wondering if I did something wrong or missed something in using it, but that way it is more flexible and with an /input{addrfile} in the below way one should also be able to still use a kind of the old way having a separated addressfile but with a more flexible layout. Again million thx for clearing it Greetings Martin 'golodhrim' Scholz On Sun, Jul 29, 2012 at 12:39 PM, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am 28.07.2012 um 19:53 schrieb Martin 'golodhrim' Scholz scholz@googlemail.com: 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? I haven’t added this function to the new version because I don’t need it. When you really need it I can add it but context itself has a similar function with the \setvariables and \getvariable which takes only a few more lines than \addressentry does. Below you can see how the example from the KOMA-Script manuals looks with \setvariables (you’re free to use different keys) but it’s no problem to write a simple \addressentry wrapper around this and provide it with the letter module when you want to share your data with LaTeX. example source=scrguide.pdf \usemodule[letter] \setvariables [addressentry:frodo] [lastname={Beutlin}, firstname={Frodo}, address={Der Bühl\\ Beutelsend/Hobbingen im Auenland}, 1={Bilbo Beutlin}, 2={Rauchen von Pfeifenkraut}, 3={der Ringträger}, 4={Bilbos Erbe}] \setvariables [addressentry:sam] [lastname={Gamdschie}, firstname={Samweis}, address={Beutelhaldenweg 3\\Hobbingen im Auenland}, 1={Rosie Kattun}, 2={Knullen}, 3={des Ringträgers treuester Gefährte}] \setvariables [addressentry:tom] [lastname={Bombadil}, firstname={Tom}, address={Im Alten Wald}, 1={Goldbeere}, 2={trällern von Nonsensliedern}, 3={Meister von Wald, Wasser und Berg}] \startletter [toname={\getvariable{addressentry:tom}{firstname}~\getvariable{addressentry:tom}{lastname}}, toaddress={\getvariable{addressentry:tom}{address}}, opening={Lieber \getvariable{addressentry:tom}{firstname} \getvariable{addressentry:tom}{lastname},}, closing={„O Frühling und Sommerzeit und danach wieder Frühling!\\O Wind auf dem Wasserfall und Lachen des Laubes!“}] oder \getvariable{addressentry:tom}{3}, wie Dich Deine geliebte \getvariable{addressentry:tom}{1} nennt. Kannst Du Dich noch an einen Herrn \getvariable{addressentry:frodo}{lastname}, genauer gesagt \getvariable{addressentry:frodo}{firstname}~\getvariable{addressentry:frodo}{lastname}, denn es gab ja auch noch den Herrn \getvariable{addressentry:frodo}{1}, erinnern. Er war \getvariable{addressentry:frodo}{3} im dritten Zeitalter und \getvariable{addressentry:frodo}{3}. Begleitet wurde er von \getvariable{addressentry:sam}{firstname}~\getvariable{addressentry:sam}{lastname}, \getvariable{addressentry:sam}{3}. Beider Vorlieben waren sehr weltlich. Der \getvariable{addressentry:frodo}{firstname} genoss das \getvariable{addressentry:frodo}{2}, sein Gefährte schätzte eine gute Mahlzeit mit \getvariable{addressentry:sam}{2}. Weißt du noch? Mithrandir hat Dir bestimmt viel von ihnen erzählt. \stopletter /example Wolfgang ___ 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] footnote numbers turn red
The footnote numbers turn red(ish) as soon as \setupinteraction is present. Is that intended? thanks for replies! Martin with ConTeXt ver: 2012.07.21 16:50 MKIV fmt: 2012.7.21 example: \setupinteraction[state=start,color=darkblue,style=\tf] \starttext some text\footnote{a footnote} \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] footnote numbers turn red
Hi Marco, Thanks for that. Though it seems that is only part of the situation. With the definition, as you give it, the footnote numbers at the bottom of the page turn green, but the ones in the text remain black. I deleted all generated files just to be sure. Martin The footnote numbers turn red(ish) as soon as \setupinteraction is present. Is that intended? Yes, it is. There is a special setting, when the link appears on the same page, it's contrastcolor. \setupinteraction [state=start, color=darkblue, contrastcolor=green] ___ 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] WG: Problem with simplefonts, placing of period
I just realized my mail was marked as spam..., not sure what impact that has. Might be worth mentioning the Context version: ConTeXt ver: 2012.07.21 16:50 MKIV fmt: 2012.7.21 Looking through the generated PDF the placement of other interpunctuation is also off and the text is running rather tight when \setscript[hanzi] is used. Thanks for any replies! Martin I am experiencing a problem with the placement of the period . after a sentence. In the example below it's the one after (Englisch). Once the line \setscript[hanzi] is uncommented, the period sits under, before or far after the closing bracket depending on borders or text before/after. The question is: Is that a bug or feature? The key impact of setscript I see is on spacing/flow of text. A small amount of Chinese text in the complete document appears the same. Thanks, Martin \usemodule[simplefonts] \mainlanguage[de] \setupsimplefonts[size=11pt] \setmainfont[TeX Gyre Pagella] \setcjkmainfont[AdobeSongStd][regular={* Light},italic={AdobeKaitiStd Regular},bold={AdobeHeitiStd Regular},bolditalic={AdobeHeitiStd Regular}] \setcjksansfont[AdobeKaitiStd][bold={AdobeHeitiStd Regular},bolditalic={AdobeHeitiStd Regular}] \setcjkmonofont[AdobeFangsongStd][bold={AdobeHeitiStd Regular},bolditalic={AdobeHeitiStd Regular}] %\setscript[hanzi] \setuppapersize[A4][A4] \setuplayout [ backspace=45mm, height=fit, width=fit, rightmargin=10mm, leftmargin=30mm, ] \starttext auf der Stufe von A1-C1 (Deutsch) bzw. \quotation{Beginner} bis \quotation{Upper Intermediate} (Englisch). \input{lorem} \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] footnote numbers turn red
OK, was using: 2012.07.21 16:50 MKIV. Ran an update (now 2012.07.27 16:41 MKIV). Problem was in another place though (working on several docs at the moment). A module had the line: \setupfootnotes[textcolor=black] Then adding this what you gave at a later point: \setupinteraction [state=start, color=darkblue, contrastcolor=green] only changed the footnote at the bottom of the page to green, not in the text body. That remained black. This cross dependence had confused me. Is that the intent contrastcolor as given on? http://wiki.contextgarden.net/Command/setupinteraction Martin Not here with 2012.07.27 16:41. Which context version are you running? ___ 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] [***SPAM***] Problem with simplefonts, placing of period
Hi All, I am experiencing a problem with the placement of the period . after a sentence. In the example below it's the one after (Englisch). Once the line \setscript[hanzi] is uncommented, the period sits under, before or far after the closing bracket depending on borders or text before/after. The question is: Is that a bug or feature? The key impact of setscript I see is on spacing/flow of text. A small amount of Chinese text in the complete document appears the same. Thanks, Martin \usemodule[simplefonts] \mainlanguage[de] \setupsimplefonts[size=11pt] \setmainfont[TeX Gyre Pagella] \setcjkmainfont[AdobeSongStd][regular={* Light},italic={AdobeKaitiStd Regular},bold={AdobeHeitiStd Regular},bolditalic={AdobeHeitiStd Regular}] \setcjksansfont[AdobeKaitiStd][bold={AdobeHeitiStd Regular},bolditalic={AdobeHeitiStd Regular}] \setcjkmonofont[AdobeFangsongStd][bold={AdobeHeitiStd Regular},bolditalic={AdobeHeitiStd Regular}] %\setscript[hanzi] \setuppapersize[A4][A4] \setuplayout [ backspace=45mm, height=fit, width=fit, rightmargin=10mm, leftmargin=30mm, ] \starttext auf der Stufe von A1-C1 (Deutsch) bzw. \quotation{Beginner} bis \quotation{Upper Intermediate} (Englisch). \input{lorem} \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] 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] 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 ___
[NTG-context] issue with module name resume
(apologies if this is sent twice, problem with mail) I am trying out the resume module mentioned on http://wiki.contextgarden.net/Curriculum_Vitae I saved the given code into a file p-resume.tex within the minimals folder (updated 20.7.2012), ran: context --generate When using it I consistently get told module not found. If I rename it to eg. p-lebenslauf.tex, using \usemodule[lebenslauf] works as expected. I have created other modules in the same folder without problems. There is not other file with the (partial) name resume in the minimals folder. Is the word resume reserved? What is happening? Thanks! Martin example with p-resume.tex in third folder: \usemodule[resume] \starttext blah... \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] Width of text in startcolumns environment (MkIV)
Hello, I found following problem in version: 2012.07.17 16:42. The frame width goes over both columns (with texexec the width is only over one column, I used \makeupwidth but it is same). \setuppapersize[A5] \starttext \startcolumns[n=2] \title{Test page} \framed[frame=off,bottomframe=on,width=\textwidth,frameoffset=1mm]{ \startalignment[middle] {\tfx \copyright{} \date[][year] Donald E. Knuth} \stopalignment } \input knuth \stoptext Is there another variable defining the width of column? Best regards, -- Martin Bruchanov Skype : bruxytronics WWW : http://bruxy.regnet.cz/ GPG-Key : http://bruxy.regnet.cz/bruxy-gpg.key (0x8107ED53) Linked-In : http://www.linkedin.com/in/bruxy Google+ : http://gplus.to/BruXy pgpWbJOZLI0Ny.pgp Description: PGP 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] Broken Nightly (2012.07.10)
On Sun, Jul 15, 2012 at 10:45:46PM -0700, Kip Warner wrote: On Fri, 2012-07-13 at 09:22 +0200, Wolfgang Schuster wrote: Use \define[2]\PlaceSection {} or \unexpanded\def\PlaceSection#1#2% {} in your environment file. Wolfgang Thanks Wolfgang. As usual, your magic worked. =) Thanks, I have not used \define or \unexpanded\def in my definitions of macros too, so I found this problem in my project too... -- Martin Bruchanov Skype : bruxytronics WWW : http://bruxy.regnet.cz/ GPG-Key : http://bruxy.regnet.cz/bruxy-gpg.key (0x8107ED53) Linked-In : http://www.linkedin.com/in/bruxy Google+ : http://gplus.to/BruXy pgpAaWwngSXLj.pgp Description: PGP 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 ___