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

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. >

[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

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,

[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

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

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

[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

[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}

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 tom

[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

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

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?

[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:

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

Re: [NTG-context] aligning rotated text in a natural table

\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 schr

Re: [NTG-context] aligning rotated text in a natural table

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 1

[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

[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,

[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

[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.

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

[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

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

[NTG-context] \bf disturbs flowing of text around image

In the example below (just updated minimals too) the \bf in the second paragraph prevents the text flowing around the picture, the text runs over the picture. Take \bf out and all is fine. If I use an \input statement instead of the lorem text the effect does not show. The image name is

Re: [NTG-context] \bf disturbs flowing of text around image

\dontleavehmode{\bf ...} ... or \bold{...} ... Thanks Wolfgang, \bold{...} ... doesn't work, \dontleavehmode{\bf ...} does work. Could you, or someone, give me an idea what is going on? Is something broken in the background? Am I using outdated (not current MKIV) syntax by just using

Re: [NTG-context] table row span question

As far as I know, this should be written as \DC \DL[3] \DR OK, maybe syntactically better -- actually changes the appearance too. Now the the columns that I do not want with lines have them and vice versa. Kind of the negative of what I need. The use of DC DL DR kind of eludes me. How

Re: [NTG-context] table row span question

Use natural tables, they provide better control about the cell size and layout. Wolfgang, thanks! I wasn't aware of them. They don't seem to have found their way into contextref.pdf I could do what I want and more! Below is the solution for my situation. Gleened from

[NTG-context] table row span question

I am having trouble working out a solution for spanning some rows of tables. The instructions at http://wiki.contextgarden.net/Table got me so far as the example shows. The example is a timetable excerpt. So I want horizontal lines everywhere, except on Mo, Di, Mi (Monday Tuesday Wednesday)

Re: [NTG-context] xits font in ~/.fonts

Khaled, a while ago I was getting strange results: wanted to use roman font got bold italic, etc. Font listing roman name and italic filename, all with several fonts. I just deleted the font cache folder Did the trick for the time being. ./tex/texmf-cache/luatex-cache/context/hexnumber

Re: [NTG-context] (Open) Solaris minimals

I've been been OpenSolaris user, but mainly as a big data pot. Attempts with Minimals were cut short, because my OpenSolaris install had issues with updates. Seeing the news... No so sure if my need will be there. Mac serves me fine for the time being. Martin ... is there still any interest

Re: [NTG-context] Numbering in Table of Content

and it doesn't work. The title and subject parts never get into the generated TOC. Any idea why? Thanks very much! Not sure, seems to work for me. Though I do get two TOCs, one for front matter, one for body matter -- the limit of my knowledge is reached here. Are you all current and

Re: [NTG-context] lettrine and setupalign cause Overfull \hbox errors

For the moment, at least. Lettrine could be made smarter in mkiv, Good to know but I have no time. I know that feeling! Not a big problem for me, I mean the errors. Good thing needs good time (Gut Ding braucht gut Weile.) Take care, Martin

Re: [NTG-context] Numbering in Table of Content

Basically I need a few unnumbered entries at the top of the table (like abstract, acknowledgements, etc) Rio, I handle this through using the unnumbered sectioning (\title, \subject..) and then a \definecombinedlist [content][title,chapter] Essentially you add title to the already

[NTG-context] Interaction and TOC/content problmes

I am having a couple of small problems with the interaction. In principle it's working, but... 1. The TOC is added to the bookmarks, which is fine, but with a lower-case c, ie. content 2. From http://wiki.contextgarden.net/PDF_Bookmarks_and_Headers I figured out how to get rid of the \crlf in

[NTG-context] lettrine and setupalign cause Overfull \hbox errors

There appears to be some kind of clash between the lettrine module and setting up \setupalign[right] when used together: on a 200 page text every line has Overfull \hbox errors. As a (stupid?) side question: why is text, that aligns on the left edge of an odd-numbered page called right

Re: [NTG-context] lettrine and setupalign cause Overfull \hbox errors

Both are attempting to do something special with the paragraph shape, and the interaction is causing trouble. Taco, thanks. Does that mean I have either live with it or forget about left alignment? Martin ___

Re: [NTG-context] 2 sets of footnotes?

Does the job, thanks to Hans an Hraban! Now, I'll have a look at putting that into the wiki. Martin there you go \definenote [onenote] [location=page,way=bychapter] \definenote [twonote] [location=text,way=bychapter] \starttext \chapter{First} \section {Alpha} test \onenote{alpha one}

Re: [NTG-context] 2 sets of footnotes?

Hraban, Thanks. I will have a play with that -- I am always getting lost in the various sets of syntax rules (mk's, etc)... You are right, the new MKIV syntax hints at possibilities. Is any documentation other than the footnote page on the wiki and a few recent posts? Do I really have to dig

Re: [NTG-context] Blank lines and \noindent

Marcus, After \blank I always need an \indenting[no]. How do I set up this general behaviour? Not sure if I read your question correctly. a. to disable indenting completely (which is default) \setupindenting[no] b. disabling in front of particular paragraphs seems to be a bit

[NTG-context] 2 sets of footnotes?

Hi all, I'm trying to do a (re-)layout for an older book which holds a few challenges for me. Hopefully I can find some help here. In this book I need to track 2 kinds of footnotes, sidenotes and the original page numbering (I don't replicate the old text flow but put comments where pages

[NTG-context] Blank lines and \noindent

Just curious about the intented behaviour of \noindent. If I place it as shown in the example, the next paragraph will still be indented. However, if the blank line between \noindent and the following text is deleted or contains a comment, the following text will not be indented. Is this

Re: [NTG-context] Blank lines and \noindent

Wolfgang, thanks for the input. Got me a bit further. You should also use ConTeXt’s own commands \indentation and \noindentation. OK, had taken them to be equivalent reading the manual. But I see the context commands do what I want... \input{...} is LaTeX style, to read files with spaces

Thanks Luigi, I note that down. But it didn't do the trick to solve the problem. Guess it is as Aditya said: there is a problem in principle at this point in time. Best, Martin luatools --generate mtxrun --script fonts --reload context --make

\usetypescriptfile has changed. Earlier it used to load file.tex, but now it loads file.mkiv and therefore, none of the typescripts from the typescript module work. A short-term work around is to add Ok, so a more fundamental problem. Both suggestions you made, work for me: %workaround1

Re: [NTG-context] Minimals on windows 32 bit fails ?

Luigi, check out Mojca's reply to my : minimals update issues Martin --- On Tue, 3/8/10, luigi scarso luigi.sca...@gmail.com wrote: From: luigi scarso luigi.sca...@gmail.com Subject: Re: [NTG-context] Minimals on windows 32 bit fails ? To: mailing list for ConTeXt users ntg-context@ntg.nl

Re: [NTG-context] minimals update issues

No way that i'm going back to messy encodings for patterns. Hans I not worried and not pushing for a quick-fix (I went back to a previous edition (my fav zip-of-minimals-method)) and am happy to hold off with updates until there is a proper solution... cheerful Martin

Using the typescript for CharisSIL as given doesn't work for me. Modern is substituted (as should be). It appears to load the mkiv file, but not the fonts, What am I doing wrong? Example below. (on Mac: MTXrun | current version: 2010.07.30 11:35, LuaTeX, Version beta-0.61.0-2010072816) -- I

[NTG-context] minimals update issues

Just ran ./first-setup.sh (yesterday it ran fine, now=5:20AM GMT 3.Aug) and it ends very ungracefully: A section from some the first (of more) failure. Am I doing something wrong? MTXrun | run: texexec --make --all --fast --pdftex cont-nl cont-enTeXExec | using search method 'kpsewhich'

There is a typo in the last line of type-charissil.tex: Change \loadmarkfile{charissil} to \loadmarkfile{type-charissil} Aditya Aditya, thanks for that -- hope that typo gets fixed in the sources. Unfortunately that did not fix the problem. Despite runs of mtxrun --script font

Re: [NTG-context] Setting up protrusion, side-effects

Could as well be a luatex backend problem so I have to discuss it with Taco and Hartmut. Hans Hi Hans, Thanks for looking into this further. I have tried to drill down the effect being switchable through \setupfootertexts here are my results. In the example below, I get (with the

Re: [NTG-context] Setting up protrusion, side-effects

It has to do with the backend resolving fontnames and expansions factors and so ... first I need to hear from Hartmut what he thinks of it. No stress :) I'll wait silently -- just wanted to submit, what I thought to be, useful info. cheers, Martin

Re: [NTG-context] Setting up protrusion, side-effects

I hate to pick up on this again, but... The basic Palatino, together with protrusion and small caps is causing issues. Essentially horizontal placing of the characters fails (see previous PDF). In the example below, I can reliably cause the effect by commenting out (or not) the line with the

Re: [NTG-context] using \definebodyfont with multiple size declarations -- Why?

Can you show me a example where simplefonts is so slow. Sure, here goes. I should say, most of my documents are 1-5 pages and build time is usually under 5 seconds (2nd and higher runs). One (relatively) slow use of simplefonts is the Chinese example (1) below. The way I pasted it, it runs

Re: [NTG-context] Setting up protrusion, side-effects

Fonts are sometimes special and when ypu load a font it's setting (e.g. ligatures, protrusion etc.) are frozen. To change the settings you need \definefontfeature before \setupbodyfont, OK, got it. Makes sense! Could this also be extended to \switchtobodyfont, in case I am using more then

Re: [NTG-context] using \definebodyfont with multiple size declarations -- Why?

cjk fonts are huge ... are you using a slow machine with not that much memory? Hi Hans, well, slow is kind of right: MacBook 2GHz Core Duo (first series of MacBooks), but 2GB of RAM is something I would think to be ok. For the Chinese example I see: mkiv lua stats : current memory usage

Re: [NTG-context] using \definebodyfont with multiple size declarations -- Why?

Hans, thanks for the detailed answer! My understanding is slowly advancing :D in principle we could do without, but this helps predefining a couple of things that otherwise would slow down each font switch This confirms my (vague) assumption that deep in the internals it helps structure

Re: [NTG-context] using \definebodyfont with multiple size declarations -- Why?

indeed. in that case it's mostly the cpu caches that matter Ah... Time to save some money for new hardware ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] using \definebodyfont with multiple size declarations -- Why?

While \MODULA\ taught me to structure, \TEX\ taught me to think recursive. I would certainly go along with the teaching structure part for Modula! ___ If your question is of interest to others as well, please add

Re: [NTG-context] Minimals without rsync - again?

As I am working in China at the moment, rsync only works sporadically (super slow, possibly not at all for a couple of days, then at high speed for a day or two), kind of soft blocked. Having clobbered my installation of minimals (and other things) because of it, Not a solution, but a crutch:

[NTG-context] using \definebodyfont with multiple size declarations -- Why?

As someone new to Context, I am trying to get to grips with font handling. Reading through a fair amount of documentation it is not always to clear to me what recommended practice in todays Luatex/MKIV enviroment is. My setup is Minimals updated 26.7.2010 (luatex 0.60.2, MTXrun 2010.07.22)