Hello Jean Pierre,
Have you added C:\context\tex\texmf-win64\bin (or whatever dir you installed
ConTeXt) directory to PATH env variable ?
Best regards
Joseph Canedo
From: Jean-Pierre Delange
Sent: Tuesday, May 24, 2016 5:57 PM
To: ntg-context@ntg.nl
Dear list,
I am cu
Dear all,
I use the nifty ‘firstline’ feature ConTeXt offers (using a larger font size,
line mode, 1 line only) and I notice that the last word of the first line is
never hyphenated even if doing so could reduce underful in the first line. From
typo-fln.lua it looks like that’s expected as the
Yes, I probably should have written ‘Would it be time consuming etc… ?’ :-)
In any case, I had a try to the test file, and it works very well.
Thanks for your very swift reply.
Best regards
Joseph Canedo
From: pra...@wxs.nl
Sent: Sunday, May 29, 2016 5:18 PM
To: ntg-context@
Hi Fabrice,
Have you tried \vec command ?
\startformula
\vec{AB} = \vec{AC} + \vec{CB}
\stopformula
Best regards
Joseph
From: Fabrice Couvreur
Sent: Saturday, June 4, 2016 9:12 AM
To: ntg-context@ntg.nl
Hello everyone,
When I used LaTeX, I was writing the vectors w
Dear all,
In a simple document using only 1 font but with different sizes what are the
easiest switch commands to change font size locally ? I am aware of \tfa, \tfx
etc …. but they do not seem to size in absolute size but rather relatively to
current font size. In the following MWE :
\start
Thanks Alan for the suggestion, I’ll try it. Doing more research I figured out
that \definefont defined such simple command at the expense of eventually
repeating the font name and features.
\definefont[SmallFont][name:EBGaramond*base,xxicentury at \SmallFontSize] %
\SmallFont works
I was
It is (very) limited to few words only to reproduce how an old Bible I am
trying to typeset (words added in the text to ease the understand were printed
in smaller size).
Thanks a lot
Regards
Joseph
From: Alan BRASLAU
Sent: Monday, June 13, 2016 5:19 AM
To: josephcan...@gma
Hi, have you tried putting the \inmargin Inside before= in defineenumeration ?
Seems to work fine (assuming you want the marginal note on same line as
question.
Joseph
\defineblock[question]
\hideblocks[question]
\defineenumeration
[question]
[text=Question, before=\inmargin{marg
Dear list,
In some lua code I have in my project, I’ve started getting this error when
upgrading to latest beta (used to work fine for lots of versions for months) :
attempt to perform arithmetic on field 'hangindent' (a nil value)
when using expression: tex.hangindent in lua code.
I am qu
Thanks a lot Hans.
From: pra...@wxs.nl
Sent: Sunday, July 10, 2016 12:21 PM
To: ntg-context@ntg.nl
On 7/9/2016 11:19 PM, josephcan...@gmail.com wrote:
> Dear list,
>
> In some lua code I have in my project, I’ve started getting this error
> when upgrading to latest beta (used
Hi Taco,
I will not be able to go to the Netherlands to assist to these meetings, but it
is planned to put information, articles on the different presentations please ?
Especially interested in TUC related one, and for the sake of curiosity about
the “Snake” justification (wondering if such
Dear all,
In some cases specifying \setupalign[stretch] does not seem to have any effect
with latest betas (live, 2016.06.20 22:14 version are fine, but 2016.07.18 is
not), and the output has now overfulls instead of (admitedly a bit large)
underfulls.
Attached simple (albeit bit extreme) M
Thanks a lot Wolfgang for the simpler code, I’ll replace mine with your
suggestion, in actual document the margins width are much larger and font
smaller too.
I use binaries on Win64 platform (installed using command line method:
first-setup.bat --modules=all):
$ ls -l $(which luatex.dll)
-rw
I think I could figure out the reason of this problem. Actually emergency
stretch is broken in all cases it seems. In luatex source code I see:
source/texk/web2c/luatexdir/tex/commands.w:primitive_tex("emergencystretch",
assign_dimen_cmd, dimen_base + emergency_stretch_code, dimen_base);
Dear all,
Combining patterns for french and ancien greek languages, I noticed there are
wrong hyphenations at quote char as shown in following MWE.
Is this expected behavior by using the patterns= key in such a way ?
Using ConTeXt ver: 2016.08.08 21:28 MKIV beta fmt: 2016.8.9 int:
english/En
Dear all,
I use grid to typeset documents, this works all fine in main text, but in
margin notes it does not seem that interline spacing is as tight. Is there any
way to get tighter interline spacing in margin notes too ?
Following simple MWE illustrates the situation
\setuplayout[grid=both]
Dear all,
I was wondering if there were any sort of tool (beyond manual eye inspection)
in general sense, either printing some warning in log file, or visually in
output document, or even reading pdf file, that would help determining if for a
some page there is content that is typeset outside (
Dear all,
Sounds like a typo in file
tex/texmf-context/tex/context/base/mkiv/node-nut.lua line 238
find_tail should be findtail I think.
BTW this new rangedimension function is helpful.
Joseph
De : Pablo Rodriguez___
Hi,
There are dimensions related to this :
local paper_width = tex.getdimen('paperwidth')
local paper_height = tex.getdimen('paperheight')
There is also :
tex.pageheight
tex.pagewidth
Not sure these are always same. Hope this helps,
Regards,
Joseph Canedo
De : Procházka Lukáš Ing._
If by messing it’s meant modifying their values, I agree that’s a bad idea 😊,
the requirement is likely to read the value only (at least this is my usage of
these in shipouts « after » callback).
If these are not reliable, what’s the reliable way to get the page width and
height ?
Thanks
Regard
Dear list,
I think this issue has been already reported (or a similar one
http://www.mail-archive.com/ntg-context@ntg.nl/msg77729.html) but not resolved.
It seems that if \blank[force, etc … is first in page there is additional
spacing due to topskip. I’ve checked that this unwanted spacing disa
Hi Marcus,
Thanks for the tip, somewhat better in terms of alignment to the grid (but
there is now larger space before exactly 1 line in excess). Unfortunately if
the \blank[force, halfine, depth] is not first in page the vertical alignment
is now wrong, and I do not know if a given \blank wil
Tried the following putting a \vbox before the \blank. There is probably better
solution for this.
\setuplayout[grid=both]
\showgrid
\starttext
\endgraf\vbox to \lineheight{}\blank[samepage, -halfline]
HalfLine
\blank[halfline]
Text
\page
Text
\endgraf\vbox to \lineheight{}\blank[samepage, -halfl
Dear list,
After ugrading to latest beta (to test typesetting with it for now), I noticed
that some words that used to be hyphenated with previous versions are no longer
hyphenated in the output, especially when the word break used to happen at a
ligature (for example ‘st’ or ‘ct’).
I had a qu
Apparently this difference comes from this change in font-ots.lua near line
603. If I edit the file to put back the discretionary_code argument, the output
is same with new beta.
MWE (well as close to MWE I could write, requires EBGaramond unfortunately).
\language[fr]
\definefontfeature[feat][
Great, thanks a lot Hans. Not a big issue (some glues are bit more stretched
than before here and there, but not to the point to have underfulls), but
curious to understand.
Best regards
Joseph
De : Hans Hagen
Envoyé le :jeudi 13 octobre 2016 20:51
À : mailing list for ConTeXt users
Objet :Re:
Dear list,
I would like to have a chapter title consisting of 1 line, halfline spacing,
another set of lines, and another halfline spacing (I use grid=both but same
issue with grid=yes), but I fail to acheive this. I give a simple MWE that
shows wanted effect (without heading) which works all f
Hello Marcus
This answer might help :
http://www.mail-archive.com/ntg-context@ntg.nl/msg59507.html
A bit hard to find as the word used is « potrusion ».
Hope this helps
Best
Joseph
De : Marcus Vinicius Mesquita
Envoyé le :lundi 17 octobre 2016 21:17
À : mailing list for ConTeXt users
Objet :[
Re question 2. You can have the list of loaded fonts files from the log file
produced by context command, nearly the end :
For example from my run :
mkiv lua stats > loaded fonts: 4 files: dejavusansmono.ttf,
ebgaramond12-regular.otf, keteryg-medium.ttf, sblgreek.ttf
>From this you can deduce
Dear list,
Could not find any hint on this list on this (minor) problem.
When compiling the following simple MWE :
\starttext
\startalignment[flushright]
Foo.
\stopalignment
\stoptext
I get an underful hbox message :
Underfull \hbox (badness 1) in paragraph at lines 4--5
[]\3>modern-design
Thanks a lot, all, for the hints.
Best regards,
Joseph
De : Hans Hagen
Envoyé le :mardi 21 février 2017 13:06
À : mailing list for ConTeXt users
Objet :Re: [NTG-context] Underful with \startalignment[flushright]
On 2/21/2017 10:45 AM, Henri Menke wrote:
> On 02/20/2017 10:59 PM, josephcan...@gmai
Dear list,
Sorry if question is trivial but I’d like to use « back » key in \blank to
discard a \blank just before. The following MWE illustrates :
\starttext
Title.
\blank[none]
\blank[back, -line] %% I’d expect this one to discard the \blank[none] (as if
it was not present)
\startalignment[b
Thanks Hans for having replied.
My message was a bit confusing, sorry about that. I think the problem is that
‘back’ (or \blank generally) does not seem to work the same with negative blank
as it does with positive blank. The following :
\showgrid\setuplayout[grid=both]
\starttext
Title.
\blank
Hi,
I think you can use tex.write() instead of tex.print() (pretty much the same as
in lua io functions).
Hope this helps
Joseph
De : Otared Kavian
Envoyé le :dimanche 19 mars 2017 16:31
À : mailing list for ConTeXt users
Objet :[NTG-context] How to use tex.print in ctxlua
Hi,
I would like to
A probably quick and dirty « solution », which consists in inserting a
\discretionary node between each digit using some lua code. There are mostly
likely better solutions for this.
Joseph
\startluacode
function sha(s)
local out = {}
for i = 1, s:len() do
out[#out + 1] = s:sub(i, i)
If I am not mistaken SHA is only hexadecimal digits, so you probably need only
to have a « language » that hyphenates between any pair of those. Should be
much simpler I guess, but I do not really know how to add such setting I am
afraid.
Joseph
De : Pablo Rodriguez
Envoyé le :samedi 8 juillet
Hello all,
Wondered if you could figure out what I did wrong with specifying the font.
Asked question on TexExchange.org already, with samples.
http://tex.stackexchange.com/questions/274471/obtaining-features-from-ebgaramond-font-in-context
I use texlive 2015 on Windows 8.1
Many thanks,
Thanks Rik,
I’ll install standalone ConTeXt along TexLive then.
Is there any place I could find docs on \definecharacterspacing command please
? Could not find any occurrence on the Wiki.
Many thanks
Best regards
Joseph
Sent from Windows Mail
From: Rik Kabel
Sent: Friday, Oct
Hello all,
I got the installation zip file following instructions found in:
http://wiki.contextgarden.net/ConTeXt_Standalone#Windows
Unzipped in C:\ConTeXt directory (brand new an empty).
Started command: first-setup.bat --context=current --modules=all
After a couple of minutes: I get:
!
At the moment, I use “\,” between word and question marks. Also “~” between
word and “:”. I guess the \definecharacterspacing is more flexible and
transparent from text input point of view (only write normal space). IIRC both
\, and ~ also avoids line breaking at their location. Is there a way t
Works all fine (also used win64.zip file) if I do not specify --context=current.
Thanks
Joseph
Sent from Windows Mail
From: josephcan...@gmail.com
Sent: Friday, October 23, 2015 9:28 PM
To: ntg-context@ntg.nl
Hello all,
I got the installation zip file following ins
Hello all,
I have an another newbie ConTeXt user question (very powerful but the learning
curve is a bit steep at least for me 😊). Sorry if this is documented in the
Wiki but could not find an example to do this.
I would like to have text splitted in chapters (or sections) with some title,
Yes, that’s correct. I guess command= attribute kind of replaces the “default”
processing for the head ? Because when I use it the “align = center” does not
seem to be taken in account.
Thanks a lot
Joseph
Sent from Windows Mail
From: Thomas A. Schmitz
Sent: Sunday, October 25
Thanks a lot, very concise. I was wondering if the \stopchapter (or more
generally \stop) were needed ? In my document I write in some instances:
\startsubsection
Bla bla
\startsubsection
etc ….
and it seems to work fine (but perhaps pure luck or is the \startsubsection
implictly end
Dear all,
I would like to use the first line specific style magic but I cannot make it to
work within 2 column text. I give a simple example (I’ve modified from previous
post example on this list). Is that expected ? If you uncomment the
\startcolumns and \stopcolumns below, the first line sty
Seems to work fine with columnsets:
\setupbodyfont[pagella]
\definecolumnset[TwoColumns][n=2]
\starttext
\startcolumnset [TwoColumns]
\setupindenting[medium,yes]
\setupalign[tolerant]
\definefirstline
[fancy]
[alternative=line,
style=\tfd]
\setfirstline[fancy] \input tufte \par
\setfi
Dear all,
I try to typeset some text with dropcaps which are pdf files in a 2 column
text. I came up with 3 possibilities as shown in the sample below (attached
D1.pdf). So far best solution seems to use the lettrine module, but I wondered
if it would be possible to cope with the issue with
Dear all,
Still playing with \setfirstline, I was wondering how to apply it for headings
as well ? Naive sample below does not work for the subject title, most probably
because headings/titles have different processing than normal paragraphs.
\definecolumnset[TwoColumns][n=2]
\definefirstli
Hello all,
Perhaps a more meaningful example, actually I explicitly break lines Inside
title text.
\setuphead[subject][align=center]
\starttext
\startsubject[title={First title line\\ \tf eventual second line}] % second
line same size as normal text Howto ?
Some text here
\stopsubject
Came up with some solution using lua, probably not the most elegant one but
seems to work. Attached below in case it’s of any interest for anyone.
\setupheads[
align=center]
\startluacode
userdata = userdata or {}
userdata.test = function(n)
local breakline = n:find([[\\]])
l
Dear all,
I saw that \fetchmark command broken and applied the (small) change as
explained in http://www.mail-archive.com/dev-context%40ntg.nl/msg02349.html but
the command is still giving wrong marks in headers. Is there any other fix or
should I run some command after having modified the str
Dear all,
From strc-mar.mkiv I see another function called \fetchmarking with is also
expandable as says comment:
% also fully expandable but here we have: [name][range][method]
It seems to give correct marking if I use empty [] for range parameter. But I
do not understand what “range” mean
Tried locally on W8.1/64 and otherwise same ConTeXt and EBGaramond files I see
similar issues (expect maybe kerning is done with new otf loading).
Sent from Windows Mail
From: Rik Kabel
Sent: Monday, November 2, 2015 3:10 AM
To: ntg-context@ntg.nl
Three problems with
Dear all,
I would like to display in page header the number of first and last subsection
that starts on a given page (ie the title of those appear on that page
regardless their content). For this I tried using
\fetchmarking[subsectionnumber][][top] and
\fetchmarking[subsectionnumber][][botto
Dear all,
Digging a bit Inside lua code I could find a way to use internal structures
(namely structures.marks.fetched, structures.lists.ordered.section and
structures.lists.cached) to get the output I would like. I guess that’s not
really recommended to use internal structures from lua code ?
Dear all,
Trying to use EB Garamond font Inside mixed columns + use firstline feature
(to make it larger) I get an empty line in output between first line and the
rest of paragraph. If I comment the line containing \setupbodyfont and use
default font the problem disappears (even with larger \
Dear all,
I am trying to write some lua code that loads some pdf file and scales it. I
have the following code (got from previous question here to get number of pages
from a pdf and from source files).
local figure = figures.push { name = filename, scale = N } -- scale value does
not seem t
More precisely, I would like to get width and height of the scaled figure
Inside lua code, to perform some checks.
Thanks again
Joseph
From: josephcan...@gmail.com
Sent: Monday, November 9, 2015 10:12 PM
To: ntg-context@ntg.nl
Dear all,
I am trying to write some lua co
Dear all,
Is it possible in ConTeXt within lua code to do “trial typesetting” (not sure
that’s best name for what I would like to achieve) ? By this I mean store some
input (with text and macros) in some buffer and do what ConTeXt does normally
(parsing, create nodes …) but instead of shipping
Hello,
I was wondering if someone could have some hints on this question, anyway, I
found the function mknodes() from luaTeX wiki and
nodes.handlers.characters(head) function in ConTeXt (as it seems that
node.ligaturing(head) and node.kerning(head) do not seem to do anything).
It seems to
Just in case it is of interest (and assuming this won’t change in future
versions), after digging again in lua code I replaced
nodes.handlers.characters(head) with
local proc = nodes.tasks.actions('processors') -- not sure finalizers tasks are
needed ?
head = proc(head)
before passing retu
Hi Hans
First of all, thanks a lot for replying.
I tried your suggestion and it does not seem to work at least for fancy
features in EB Garamond (historical liguratures and other features).
I also tried to pass the hbox to tex.linebreak() and got assertion failure in
luatex.
Is there any
> are you sure that you defined that font and that it's the current font?
I’ll double check my code and may I send you a MWE if I can still not see the
ligatures and stuff. I’ll try also with new beta (have not installed yet) just
in case.
> just put stuff in vboxes and loop over that; at the
Dear all,
I am using \starthanging to implement dropcaps (with small pdf files). I use
this Inside mixedcolumns (2 columns).
I’d like to know if there is a better way than \testcolumn[N], N being the
number of lines of the dropcap, to prevent the location of dropcap being cut
between end o
Attached simple MWE. The second line has no ligatures/ no glyph substitution/
kern
Using: ConTeXt ver: 2015.10.09 21:28 MKIV beta fmt: 2015.11.1
Thanks
Best regards
Joseph
From: josephcan...@gmail.com
Sent: Wednesday, November 18, 2015 10:36 PM
To: ntg-context@ntg.nl
I’ll try this in a minute. Thanks a million.
Another bit of complexity, if I have some words in different font (only a few
of them), should I call tohbox for these separately and “chain” the different
hboxes together ? For example the idea is to “emulate” for instance:
The second line has a
Dear all,
First of all, thanks for new beta. It fixes the initial feature (in previous
beta there were not typeset at all).
But while testing (a bit somewhat extreme example to push the limits) I came up
with some initial letter hanging in the footer (page 3). Not sure the issue is
linked wi
Dear all,
In some text I am typesetting I noticed that the text following a section was
always starting on same page (which is all fine), but in some cases the text
preceding the section heading was also finishing on same page, ie the last
paragraph before the section heading was broken in pre
Hans,
Thanks for replying, Actually I realise the problem is with column break (was a
bit late when I wrote my message, sorry for this).
I prepared a small example + output I get.
I am not saying the output is necessarly bad, but I’d like to know how to avoid
the paragraph being broken and
Dear all,
I wondered if there was a way to fill up the bottom of the page with some
content (an image, some decorative pattern …) to avoid large blank space in
page (given some limits, ie more than 2 lines of space is left blank).
By bottom of page I mean remaining space that could have been
Hi Thangalin,
Thanks a lot for replying,
Sure, I attach 2 mwe’s. First one (fill_mwe.tex) shows a “lettrine” + paragraph
cut in bottom of 1st page (not desirable).
To fix this problem I add \setpenalties\clubpenalties{5}{1} to make sure
the 6 first lines of paragraph are all toge
Dear all,
I am trying to add margin notes and for some reason I do not understand when
having them in the main text, the main text which normally would be fully
justified (without notes) is now aligned to left, but right side is erratic. I
attach a simple MWE showing this.
If you disable the
Dear all,
Another problem appears if using both \inouter and \ininner to have notes in
both sides. Apparently when doing so the stack=continue does not work any
longer. I see margin notes overlapping and not being stacked.
If the “left note” is removed the right side notes are stacked properl
Thanks Wolfgang for alternative proposal.
I had a try with your sample and it seems the margin notes stay stacked but not
nearby the line I insert them in the text, which is what I
am looking for. Is there a way to achieve this using notes ?
Otherwise I assume that there is a bug with \ininner
Is this problem a hard limitation from (lua)TeX ? or simply some bug in ConTeXt
?
The problem with main text justification is not present with “stable” version
of ConTeXt, so my guess is that’s a regression in beta.
I initially used stack=yes but despite the name in some cases the notes fail
For fonts I found this site : http://www.opensiddur.org.
In particular http://opensiddur.org/tools/fonts/
Hope this helps a bit
Joseph Canedo
From: Meer, Hans van der
Sent: Saturday, January 16, 2016 2:56 PM
To: ntg-context@ntg.nl
I need to typeset the letters of the hebr
Dear list,
The problem with margin notes and main text justification being wrong in some
lines when using stack=continue is still present with latest beta mtx-context
| current version: 2016.01.18 22:21
This can be verified with the test stacking-002.tex in test suite or with MWE I
post
Hello,
Normally for this purpose you’d use subsection, subsubsection etc … I guess.
Best regards
Joseph
From: m...@silentumbrella.com
Sent: Friday, March 11, 2016 9:08 AM
To: ntg-context@ntg.nl
Greetings,
Is it possible to have
\starttext
\startchapter
Hey a chapter!
Dear all,
Using ConTeXt ver: 2016.05.01 09:52 MKIV beta, I see that marginal notes
(using \inouter for example) are put 1 or more lines below expected when using
stack= option. A simple MWE follows.
\setupmargindata[outer][stack=yes] % or =continue
\starttext
Foo \inouter{note}*bar Foo bar
Dear all,
Sorry for replying to my own post, but is there a solution to fix this issue
please ? Or any problem to reproduce it ? This makes the stacked margin notes
almost unusable as with several ones one same page the last ones drift outside
bottom of the page.
Many thanks
Best regards
80 matches
Mail list logo