Re: [NTG-context] Use \unit for value and uncertainty

2016-10-31 Thread Florian Leupold
> On 25.09.16, at 20:11, Florian Leupold <fleup...@posteo.net> wrote: > > Dear list > > Is it possible to use the units module (in MKIV) for value plusminus > uncertainty in a way similar to the \SI command in LaTeX, like > \unit{(1.59\pm2)e-19 coulomb} or > \unit{1.59(2)e-19

[NTG-context] Reduced whitespace when nesting different itemgroups

2016-10-20 Thread Florian Leupold
Dear list, I have noticed a strange behavior when nesting different itemgroups: The whitespace before the lower-level group is reduced. This does not happen when nesting itemgroups of the same kind. And this can somehow be circumvented by setting [columns, one], see MWE below. Is this

[NTG-context] How to clone \underbar?

2016-10-19 Thread Florian Leupold
Dear list, how can I clone \underbar (for the purpose of changing settings for the clone afterwards)? Just using \definebar to inherit \underbar’s properties does not entirely work, see MWE: \definebar[myBar][underbar] \starttext underbar text mode: \underbar{$a^b$}\crlf underbar

[NTG-context] Side effect of leftmargin for formulas on \inright

2016-10-19 Thread Florian Leupold
Dear list, I have noticed that the key leftmargin for formulas has a side effect on \inright, see MWE below. Assuming that is unwanted behavior, is there a way to circumvent the horizontal misplacement of the margin note? Thanks and best regards, Florian MWE: \setupformulas[align=right]

Re: [NTG-context] Bug in \usetikzlibrary{datavisualization}?

2016-10-07 Thread Florian Leupold
> On 06.10.16, at 00:27, Hans Hagen <pra...@wxs.nl> wrote: > > On 10/5/2016 9:51 PM, Florian Leupold wrote: >> Dear list, >> >> Sorry for posting a duplicate, but I guess my previous post got lost during >> the conference... >> >> When on

[NTG-context] Underlining formulas and units

2016-10-05 Thread Florian Leupold
Dear list, underbar behaves weirdly when it comes to indexes, exponents, and units: \starttext \underbar{$F_C=\unit{1e2 newton}$} or \underbar{\unit{1e2 newton}} \stoptext Am I doing something wrong? Is there maybe a setting to correct for this? Thanks, Florian signature.asc Description:

[NTG-context] Bug in \usetikzlibrary{datavisualization}?

2016-10-05 Thread Florian Leupold
Dear list, Sorry for posting a duplicate, but I guess my previous post got lost during the conference... When one tries to load the TikZ data visualization library, the documents does not compile anymore. The error is “.../tikzlibrarydatavisualization.code.tex: ! Missing number, treated as

[NTG-context] text–formula separation inside a frame

2016-10-05 Thread Florian Leupold
Dear list, Sorry for posting a duplicate, but I guess my previous post got lost during the conference... I have got a problem with spacing before a formula inside a frame. The text–formula separation somehow is bigger when it occurs in a frame (see MWE below). Is there an explanation, and/or

[NTG-context] Bug in \usetikzlibrary{datavisualization}?

2016-09-28 Thread Florian Leupold
Dear list, when one tries to load the TikZ data visualization library, the documents does not compile anymore. The error is “.../tikzlibrarydatavisualization.code.tex: ! Missing number, treated as zero”. I have also tried this using ConTeXt online, to the same end:

Re: [NTG-context] Tabulation in itemize list

2016-09-26 Thread Florian Leupold
> On 26.09.16, at 17:07, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: > >> Florian Leupold 26. September 2016 um 16:30 >> >> Dear Wolfgang, >> >> thank you for your suggestion! >> >> However, it seems the code does not compile

Re: [NTG-context] Tabulation in itemize list

2016-09-26 Thread Florian Leupold
> On 26.09.16, at 14:08, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: > >> Florian Leupold 26. September 2016 um 12:53 >> Dear list, >> >> is there a clever way to put a tabulation into an itemize list? I would like >> to have it on the fir

[NTG-context] Tabulation in itemize list

2016-09-26 Thread Florian Leupold
Dear list, is there a clever way to put a tabulation into an itemize list? I would like to have it on the first line of an item, see MWE. However, when I just insert the tabulation after \item, the table is shifted down. A naive fix using \blank[overlay], on the other hand, places the

[NTG-context] text–formula separation inside a frame

2016-09-25 Thread Florian Leupold
Dear list, I have got a problem with spacing before a formula inside a frame. The text–formula separation somehow is bigger when it occurs in a frame (see MWE below). Is there an explanation, and/or (even better) a possible fix? Thanks a lot! Florian MWE:

[NTG-context] Use \unit for value and uncertainty

2016-09-25 Thread Florian Leupold
Dear list Is it possible to use the units module (in MKIV) for value plusminus uncertainty in a way similar to the \SI command in LaTeX, like \unit{(1.59\pm2)e-19 coulomb} or \unit{1.59(2)e-19 coulomb}? Thanks and best regards, Florian signature.asc Description: Message signed with

[NTG-context] Bug: \registerunit is not case sensitive

2016-09-14 Thread Florian Leupold
Dear list, I would like to point out the following bug: \registerunit is not case sensitive. This means that if I register “N” for Newton, “n” for nano is overwritten. MWE: \registerunit[unit][N=newton] \starttext Newton: \unit{1N}, nano meter: \unit{1nm} \stoptext Best regards, Florian

[NTG-context] Nonbreaking, non-vanishing horizontal spaces above underbar

2016-09-14 Thread Florian Leupold
Dear all, I would like to create cloze texts with solutions, but I have problems with horizontal spaces above the underbar, namely: 1) After a linebreak, horizontal space is cut off despite the \zwj. 2) I cannot find a way of scaling the leading and trailing space to equal 0.2 times the width

[NTG-context] Bug with \underbar and \placefigure[right]

2016-09-08 Thread Florian Leupold
Dear list, I would like to report a bug: When \underbar is used for the first word of a paragraph in conjunction with \placefigure[right], the text overwrites the figure. MNWE: \setupexternalfigures[order={pdf,png,jpg}, location={local,global,default}] \starttext \placefigure[right,

Re: [NTG-context] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-06 Thread Florian Leupold
> On 06.09.16, at 02:55, Aditya Mahajan <adit...@umich.edu> wrote: > > On Mon, 5 Sep 2016, Florian Leupold wrote: > >> One problem, however, persists: The theorem environment gets misplaced when >> a figure is placed to its left: >> >&

Re: [NTG-context] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-05 Thread Florian Leupold
tproclaim{Pythagoras Theorem} > The square on the hypotenuse is equal to the sum of the squares on the other > two sides. > \stopproclaim > > You can play with other options in the setups above and tune them to your > taste. > > Best regards: OK > >>

[NTG-context] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-04 Thread Florian Leupold
Dear list, I am trying to use enumerations with MKIV I am a bit at a loss when it comes to the documentation (see below for a few issues). Working on a concrete example, I have come pretty close to what I want for my enumeration ‘theorem’: \setupexternalfigures[location=default]

Re: [NTG-context] Creating cloze texts

2016-09-04 Thread Florian Leupold
> On 04.09.16, at 16:28, Florian Leupold <fleup...@posteo.net> wrote: > > >> On 04.09.16, at 14:14, Hans Hagen <pra...@wxs.nl> wrote: >> >> On 9/4/2016 12:03 PM, Hans Hagen wrote: >> >>> \definebar[ClozedBar][underbar][continue=yes] &

Re: [NTG-context] Creating cloze texts

2016-09-04 Thread Florian Leupold
> On 04.09.16, at 14:14, Hans Hagen wrote: > > On 9/4/2016 12:03 PM, Hans Hagen wrote: > >> \definebar[ClozedBar][underbar][continue=yes] >> >> \unexpanded\def\Clozed#1{\ClozedBar{\zwj#1\zwj}} >> >> \starttext >> >> \input ward >> \Clozed{\color[red]{CLOZE 1}} >> \input ward

[NTG-context] Creating cloze texts

2016-09-02 Thread Florian Leupold
Dear list, I would like to create cloze texts for my students with ConTeXt. Ideally, I would have a command \cloze[]{} with the following functionality: 1) \cloze{} would insert an underlined gap in the text with a width of (say) 1.3 times the width of solution and puts the solution on top of

[NTG-context] Figure-text alignment and wrapping text more tightly

2016-09-01 Thread Florian Leupold
Dear list, I am interested in placing a figure on the right-hand side of the page and wrap text around it, see MWE below. This works mostly nicely. But I have got three questions: 1) Is it possible to top-align the figure with the first line of the paragraph to its left? 2) Is there a way to