ulate[|l|l|]
\NC Γ \NC Gamma \NC\NR
\NC Θ \NC Theta \NC\NR
\TB[line]
\NC Φ \NC Phi \NC\NR
\stoptabulate
\stoptext
swap nop and yes in tabl-tbl.mkxl, like:
\appendtoks
\enforced\let\TB\tabl_tabulate_TB_nop
\to \t_tabl_tabulate_initializers_first
\appendtoks
\enfor
roblem I described before:
> > to ensure that the first input is expanded when it is passed to Lua, I
> > have to pass it as [==[#1]==], not "#1". But the updated MWE below still
> > does not seem to work, as the \DoIfPrefixElse macro is printing "NOP"
>
to work, as the \DoIfPrefixElse macro is printing "NOP"
instead of "YES":
```
\starttexdefinition loc [#1]
\doifassignmentelse{#1} {
% if an assignment, then parse and format accordingly
\getparameters[loc][#1]
% Was a section number specified?
\doifdefined{locsec} {
§
All right, I think I've solved the expansion problem I described before: to
ensure that the first input is expanded when it is passed to Lua, I have to
pass it as [==[#1]==], not "#1". But the updated MWE below still does not
seem to work, as the \DoIfPrefixElse macro is printing &
fined{locsec} {
§ \locsec\btxcomma
}
} {
% otherwise, just print the input as-is
#1
}
\stoptexdefinition
\def\DoIfPrefixElse#1#2{\ctxlua{commands.doifelse(string.find("#2","^".."#1"))}}
\def\currentbtxloctext{\loc[sec=31]}
\starttext
\DoIfPrefixElse{§}{\currentbtxloct
) == prefix then
return true
end
return false
end
```
how about
if string.find(str,"^"..prefix) then
in:
\starttext
\def\DoIfPrefixElse#1#2{\ctxlua{commands.doifelse(string.find("#2","^".."#1"))}}
\DoIfPrefixElse{pre}{prefix}{YES}{N
cksempty {testa}{}{} {YES} {NOP} % {name}{tag}{criterium}
\doifelseblocksempty {testb}{}{} {YES} {NOP} % {name}{tag}{criterium}
\stoptext
but you have to wikify it
Hans
-
ntg-context-requ...@ntg.nl wrote:
>
> \starttext
>
> \startbuffer[test]
> test
> \stopbuffer
>
> \doifelsebuffer{test} {YES} {NOP}
>
> \permanent\protected\def\doifelsebuffercontent#1%
> {\doifelse{\luaexpr{(string.strip(buffers.getcontent("
test it buffer creates any output.
indeed you know there is a way ...
\starttext
\startbuffer[test]
test
\stopbuffer
\doifelsebuffer{test} {YES} {NOP}
\permanent\protected\def\doifelsebuffercontent#1%
{\doifelse{\luaexpr{(string.strip(buffers.getcontent("#1")) ~= "&quo
\doiftextelse(\getbuffer[...]} to test it
>> buffer creates any output.
> indeed you know there is a way ...
>
> \starttext
>
> \startbuffer[test]
> test
> \stopbuffer
>
> \doifelsebuffer{test} {YES} {NOP}
>
> \permanent\protected\def\doifelsebuffercont
way ...
\starttext
\startbuffer[test]
test
\stopbuffer
\doifelsebuffer{test} {YES} {NOP}
\permanent\protected\def\doifelsebuffercontent#1%
{\doifelse{\luaexpr{(string.strip(buffers.getcontent("#1")) ~= "" and
"yes")}}{yes}}
\startbuffer[test]
\stopbuffer
\do
2 * 10pt > 2pt \relax
\ifboolean\dimexpression 2 * 10pt > 2pt \relax yes \else nop \fi
\ifboolean\dimexpression 2 * 10sp > 2pt \relax yes \else nop \fi
\ifdimexpression 2 * 10pt > 2pt \relax yes \else nop \fi
\ifdimexpression 2 * 10sp > 2pt \relax yes \else nop \fi
x/luatex:
% \csname \oof\endcsname
\ifcsname foo\endcsname yes\else nop\fi
\ifcsname oof\endcsname yes\else nop\fi
\ifcsname \foo\endcsname yes\else nop\fi
% nop in luametatex (error intercepted), yes in pdftex/luatex
\ifcsname \oof\endcsname yes\else nop\fi
\stoptext
Now, one can argue tha
sname foo\endcsname yes\else nop\fi
\ifcsname oof\endcsname yes\else nop\fi
\ifcsname \foo\endcsname yes\else nop\fi
% nop in luametatex (error intercepted), yes in pdftex/luatex
\ifcsname \oof\endcsname yes\else nop\fi
\stoptext
Now, one can argue that if I consider it a but in the other e
umbers and gets its place on the right page?
>
> – As a workaround, how can I use \placefigure in the middle of a paragraph
> without breaking it?
And I isolated another problem, or even two:
\usemodule[visual]
\definecolor[fakerulecolor][c=.2,m=.1,k=.2]
\useMPlibrary[dum]
\automigr
normal footnotes.\footnote{Other Footnote}
:::\placelocalnotes[testnote] :::
---\placelocalnotes[footnote] --- % just to be sure, no output
%\stoplocalnotes % a NOP?
\stoptext
(LMTX or MkIV 2020.09.20 23:02)
The use case is a commented edition of historical letters. Footnotes of letter
contents
n current LMTX and MkIV.
Hraban
\usemodule[visual]
\definecolor[fakerulecolor][c=.2,m=.1,k=.2]
\useMPlibrary[dum]
\automigrateinserts % nop in LMTX
\showframe
\setupcaptions[
headstyle={\ss\bfx},
align={flushleft,high},
hang=yes,
]
\starttext
\fakewords{10}{30}
% Footnotes, but no co
ing the width it’s still the same MWE (slightly adapted), apparently not
related to floatcombinations but a general problem of footnotes in captions;
couldn’t reproduce “some missing” in an MWE yet.
Hraban
\useMPlibrary[dum]
\automigrateinserts % nop in LMTX
\showframe
\starttext
\input knuth
% Foo
uchexnumbers{\scratchcounter} \par
\scratchcounter = \bitwisenil \bitwisenil "0F "02 "01
\uchexnumbers{\scratchcounter} \par
\scratchcounter = \bitwisenil \bitwisenil "0F with "02 with "01
\uchexnumbers{\scratchcounter} \par
\scratchcounterone\zerocount
e t do
d = d + 1
t = xml.parent(t)
if not t then
break
end
end
context(d)
end
\stopluacode
\startxmlsetups xml:what
\xmldoifelse {#1} {..[name() == "what"]} {
YES
} {
NOP
}
[
I thought that the "yes" and "nop" suffixes were related to "page=yes" and
"page=no" for a few reasons. First, because I thought "nop" could be
shorthand for "no page." More importantly, however, I thought they might be
related because s
number of columns (i.e., the n option for the
pagecolumns environment) is more than one, the "yes" implementation of
the start and stop commands is used.
But this seems wrong. The naming convention for the two implementations
("yes" and "nop") suggests that they shou
nment) is more than one, the "yes" implementation of the
start and stop commands is used.
But this seems wrong. The naming convention for the two implementations
("yes" and "nop") suggests that they should be related the parameters
"page=yes" and "page=no
ight)
Hans
--- test file ---
\setupinteraction
[state=start]
\definesymbol[yes][1]
\definesymbol[nop][0]
\setupfield[whatever][width=20mm,height=20mm,frame=off]
\definefield[what][radio][whatever][whatone,whattwo][whatone]
\definesubfield[whatone][][yes,nop]
\definesubfield[whattwo][][yes,nop
opdfcompression
\setupinteraction
[state=start]
\definesymbol[yes][1]
\definesymbol[nop][0]
\setupfield[whatever][width=20mm,height=20mm,frame=off]
\definefield[what][radio][whatever][whatone,whattwo][whatone]
\definesubfield[whatone][][yes,nop]
\definesubfield[whattwo][][yes,nop]
\setup
hange this mechanism as at soem point we should stick to
what we have ... it already changed a few times)
just move up the figure a bit:
\placefigure
[right,high][]{caption}
{\externalfigure[nop][width=0.5\textwidth,height=19cm]}
or limit the height
--
Rik
On 2015-08-25 10:14, Rik Kabel wrote
output of the following code, the first text line on the second page
only
spans half the textwidth. However, below the figure, the text should span the
whole width.
\starttext
\placefigure[right][]{caption}
{
\externalfigure[nop][width=0.5\textwidth,height=19cm]
}
\input lorem
\input lorem
\input
}
{
\externalfigure[nop][width=0.5\textwidth,height=19cm]
}
\input lorem
\input lorem
\input lorem
\stoptext
Andreas,
This is a long-recognized issue that appears to have no resolution. It
was previously raised by Gerhard Kugler in March 2007 (figure occupies
space into next page
<h
ConTeXt version: 2015.08.21 19:57
When the «page» position key is used, the figure numbers do not match their
order in
the document. In the following example, Figure 2 precedes Figure 1.
\starttext
\placefigure[page][]{}
{
\externalfigure[nop][width=0.5\textwidth]
}
\placefigure
ConTeXt version: 2015.08.21 19:57
In the PDF output of the following code, the first text line on the second page
only
spans half the textwidth. However, below the figure, the text should span the
whole width.
\starttext
\placefigure[right][]{caption}
{
\externalfigure[nop][width=0.5\textwidth
ue{SomeName:foo}{one}
> \setvalue{SomeName:bar}{two}
>
> % and another 50 names
>
> \def\SomeName{foo}
> % \def\SomeName{bar}
>
> \doifelse{\getvalue{SomeName:\SomeName}}{two}
>{YES}
>{NOP}
Many thanks for your reply, Hans.
I didn’t know of this alternative
two}
% and another 50 names
\def\SomeName{foo}
% \def\SomeName{bar}
\doifelse{\getvalue{SomeName:\SomeName}}{two}
{YES}
{NOP}
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061
nics for bra and ket
>> notation) or as an option.
>
> I'll add \mskip\thinmuskip around the middle ... no clue what key/value to
> use so we can wait tile someone complaints
Thanks.
>> 3. Finally, why are the default values of left, middle, and right =
>> 0x2E. Isn
od is (for tex) special in the sense that it is a nop so
if you only want
(
and no
)
then explaining to a user that a period is to be used to nil the right
symbol is somewhat less troublesome.
One sets up the wanted symbols any
] [footer] [{\hfill\bf\ifinfrontmatter ... \else ... \fi\hfill}] regards, Tim
\startbodymatter
\doifmodeelse{*bodypart}{YES}{NOP}
\stopbodymatter
if check on \currentsectionblock
quot;after", or "command" or to set maybe
one to /nop out whatever
is there currently. I don't know how to find out what commands these default
to, if any, but even if I knew at this point, I would still be stuck. Though
I'd like to know about that to.
Any advice on
0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
(gdb) x/16i $pc
=> 0x4a24d1 : movl $0x0,0x4(%rdx,%rcx,8)
0x4a24d9 : addl $0x1,0x963a88(%rip)# 0xe05f68
0x4a24e0 : pop%rbx
0x4a24e1 : retq
0x4a24e2 : jmp0x4a24e8
0x4a24e4 : nop
cro itself is encountered.
There are also variations of the prefixes and suffixes.
Prefixes:
- do
- dodo
- nodo
- redo
Suffixes:
- indeed
- ignore
- yes
- nop
Wolfgang
___
If your question is of interest to others
>> the opposite of what used to be the case a while ago :).
>
> \synctex is a nop in mkiv, use a proper directive instead:
>
> \enabledirectives[system.synctex]
Thank you. What exactly was the reason to disable the old syntax? Why
not maybe defining it to give at least a warning
On 11-3-2011 3:38, Mojca Miklavec wrote:
Dear Hans,
subject says it all: when I use \synctex=1 in mkiv, I don't get any
..synctex.gz file. The --synctex switch works however (which is exactly
the opposite of what used to be the case a while ago :).
\synctex is a nop in mkiv, use a p
Am 04.03.2011 um 11:33 schrieb Hans Hagen:
>>> I don’t like the __ and ___ either but do you know a better way for good
>>> names without using do, dodo, nodo, yes or nop?
>
> we can have module_do_bla or module_x_bla module_xx_bla etc
I think module_bla, module_bla_do,
t we patch luatex to accept it)
I know that \do \dodo \dododo is not the best notation, but I don't
find _ __ ___ better.
I don’t like the __ and ___ either but do you know a better way for good
names without using do, dodo, nodo, yes or nop?
we can have module_do_bla or module_x_bla module
now a better way for good
names without using do, dodo, nodo, yes or nop?
I find that \module__command and \module___command are hard to
distinguish. For helper macros, a better idea might be:
\module_command
\module_command!
\module_command!!
These commands are easy to distinguish visually. Bu
_
> ___ better.
I don’t like the __ and ___ either but do you know a better way for good
names without using do, dodo, nodo, yes or nop?
I first thought about this:
\def\module_command
{\dosingleempty\module_docommand}
\def\module_docommand[#1]{}
but i don’t liked it and in the end i use now
form paragraphs to such a shape:
Abc defhi jklm nop qrst uvw
xyz. ABCDE FGHIJKL MNOPQR
STUW XYZ.
Abc defhi jklm nop qrst uvw
xyz. ABCDE FGHIJKL MNOPQR
STUW XYZ.
Abc defhi jklm nop qrst uvw
xyz. ABCDE FGHIJKL MNOPQR
STUW XYZ.
<-- \textwidth -->|
I.e. paragraphs whose first lin
Hi,
did you already take a look at this?
http://wiki.contextgarden.net/Shaped_paragraphs
HTH,
Stefan.
On 23.01.2011 13:38, Procházka Lukáš wrote:
Hello,
I would need to form paragraphs to such a shape:
Abc defhi jklm nop qrst uvw
xyz. ABCDE FGHIJKL MNOPQR
STUW XYZ.
Abc defhi jklm nop qrst
Hello,
I would need to form paragraphs to such a shape:
Abc defhi jklm nop qrst uvw
xyz. ABCDE FGHIJKL MNOPQR
STUW XYZ.
Abc defhi jklm nop qrst uvw
xyz. ABCDE FGHIJKL MNOPQR
STUW XYZ.
Abc defhi jklm nop qrst uvw
xyz. ABCDE FGHIJKL MNOPQR
STUW XYZ.
<-- \textwidth -->
ce.
system > error on line 12 in file .tex: Undefined control
sequence ...
2 \startitemize
3 \head he got a head ache
4
5 \startitemize[n,packed]
6 \item of all the items
7 \nop he had to learn at school
8 \mar{++} because the marginal explanation
9
On Sun, 24 Oct 2010, Herbert Voss wrote:
From the documentation:
\starttext
\startitemize
\head he got a head ache
\startitemize[n,packed]
\item of all the items
\nop he had to learn at school
\mar{++} because the marginal explanation
\sub of the substantial content
\sym{\#} turned out
>From the documentation:
\starttext
\startitemize
\head he got a head ache
\startitemize[n,packed]
\item of all the items
\nop he had to learn at school
\mar{++} because the marginal explanation
\sub of the substantial content
\sym{\#} turned out to be mostly symbolic
\stopitem
Hi,
(for module writers)
The latest beta gives access to modes at the lua end
\starttext
\enablemode[test]
\enablemode[]
\doifallmodes{test,xxx}{NO}
\doifallmodes{test,}{YES}
\doifmode{test}{YES}
\doifnotmode{xxx}{YES}
\startluacode
tex.sprint(tex.modes['x']and &qu
"title". Eventually something like
> \startcheckbox[title={My title}]..\stopcheckbox
Make sense. At a certain point I should look at this. But lets try to
walk before I start running. ;-)
>> % CheckBoxIndent = -(margin + width) = -4.5em
>> \def\CheckBoxTitle[#1]{
>>
ke
\startcheckbox[title={My title}]..\stopcheckbox
But it's an opinion.
> % CheckBoxIndent = -(margin + width) = -4.5em
> \def\CheckBoxTitle[#1]{
> \nop \hskip -4.5em #1
> }
Yes; a problem arise if you must modify the margin and/or width a little.
You can use dimension
ed][margin=2.5em,symbol=checkbox,width=2em,distance=.5em]
> \starttext
>
> \startcheckbox
> \nop \hskip -4.5em title
> \item Yes
> \item No
> \item A little bit
> \stopcheckbox
>
> \stoptext
I defined:
\definesymbol[checkbox][{[~~~]}]
\defineitemgroup[checkbo
mize][indentnext=no]
>>> but that does not work. How can I make the 'title' not indented?
>>
>> \definesymbol[checkbox][{[~~~]}]
>> \defineitemgroup[checkbox]
>> \setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=1.5em,distance
make the 'title' not indented?
>
> \definesymbol[checkbox][{[~~~]}]
> \defineitemgroup[checkbox]
> \setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em]
>
> \starttext
>
> \startcheckbox
> \nop \hskip -1.5em title
> \item Yes
> \ite
\definesymbol[checkbox][{[~~~]}]
\defineitemgroup[checkbox]
\setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em]
\starttext
\startcheckbox
\nop \hskip -1.5em title
\item Yes
\item No
\item A little bit
\stopcheckbox
x][each][packed][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em]
>>
>> \starttext
>>
>> \startcheckbox
>> \nop title
>> \item Yes
>> \item No
>> \item A little bit
>> \stopcheckbox
>>
>> \stoptext
>
> I tried this. Ther
gt;> [ ] j [ ] k [ ] l
>> instead of:
>> [ ] a
>> [ ] b
>> [ ] c
>> [ ] d
>> [ ] e
>> [ ] f
>> [ ] g
>> [ ] h
>> [ ] i
>> [ ] j
>> [ ] k
>> [ ] l
>> or is that also possible
>
> Add
>
&
em,symbol=checkbox,width=1.5em,distance=.5em]
>
> \starttext
>
> \startcheckbox
> \nop title
> \item Yes
> \item No
> \item A little bit
> \stopcheckbox
>
> \stoptext
I tried this. There is one problem.
I want:
title
[ ] Yes
[ ] No
~]}]
>> \defineitemgroup[checkbox]
>> \setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em]
>>
>> \starttext
>>
>> \startcheckbox
>> \nop title
>> \item Yes
>> \item No
>> \item A little bit
>> \stop
em,symbol=checkbox,width=1.5em,distance=.5em]
>
> \starttext
>
> \startcheckbox
> \nop title
> \item Yes
> \item No
> \item A little bit
> \stopcheckbox
>
> \stoptext
I am still new to ConTeXt, so I did not know this. But in the future I
properly want to wor
emgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em]
\starttext
\startcheckbox
\nop title
\item Yes
\item No
\item A little bit
\stopcheckbox
\stoptext
Or even
\items{Yes, No, A little bit}
maybe with
\setupitems[symbol=checkbox]
Search the ma
group[checkbox]
\setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em]
\starttext
\startcheckbox
\nop title
\item Yes
\item No
\item A little bit
\stopcheckbox
\stoptext
Wolfgang
_
ot;item" (TeX-arg-literal " "))
'("items" [ConTeXt-arg-setup] (TeX-arg-string "Comma separated list"))
'("its" ConTeXt-arg-define-ref (TeX-arg-literal " "))
'("nop" (TeX-arg-literal " "))
w][reference]{text}
\marking[name]{text}
\markversion
\mathematics{text}
\mediaeval{text}
\midaligned{text}
\mirror{text}
\MONTH{text}
\month{text}
\moveongrid[options]
# \MR
\name{text}
# \NC
# \newcounter
# \nextbox
\nextsection
\nocap{text}
\noheaderandfooterlines
\noindenting
\nolist{
s," or really cells.
>
Answering my own question. One posibility is:
\startitemize
\sym{1} This is the first line
\nop This is the second line
%% and so fourth
\stopitmeize
That allows you to control the space between the number and the actual
line. In addition, ConTeXt should (?) do a good job makin
etups todo:product:yes
\stopsetups
\doifelsenothing\currentproduct
{\setups[todo:product:nop]}
{\setups[todo:product:yes]}
or as variant on your ifx, a one-liner:
\setups[todo:product:\ifx\currentproduct\empty nop\else y
ally, you should be
creating a cont-en file with that command listed above.
Anyone else have a clue?
no, i never get an context.* format
In the meantime, what does this return?:
sudo texexec --xtx --make --alone cont-en
nop, texexec appends the en to cont-
(part of the problem can be that the lates
of that, I justwanted to know if there is some higher
level version already existing.
nop
Hans
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
te
hapter after it seems to
fix it from there on, though.
\starttext
\chapter{One}
\dorecurse{7}{\input zapf \par\relax}
\startitemize[columns,four]
\dorecurse{12}{\nop \type{[:alnum:]}}
\stopitemize
\dorecurse{7}{\input zapf \par\relax}
\stoptext
i posted a fix for that:
\def\endmulticolumns
Hi Nicolai,
I am not shure that the second example works. Also there I get the same
problem as in example one. The pagebreak-problem remains als if you
withdraw \nop and replace it with \item
I use currently version:
ConTeXt ver: 2004.3.19 fmt: 2004.6.6
This is pdfeTeXk, Version 3.141592
to
fix it from there on, though.
\starttext
\chapter{One}
\dorecurse{7}{\input zapf \par\relax}
\startitemize[columns,four]
\dorecurse{12}{\nop \type{[:alnum:]}}
\stopitemize
\dorecurse{7}{\input zapf \par\relax}
\stoptext
This fails for \startitemize[columns] as well. It seems that the problem
l problems.
Here's something that fails (and I have a real-life issue with this as
well, which is more or less the same):
\starttext
\dorecurse{7}{\input zapf \par\relax}
\startitemize[columns,four]
\dorecurse{12}{\nop \type{[:alnum:]}}
\stopitemize
\dorecurse{7}{\input zapf \pa
fail to observe?
Groetjes
Johannes
\setupoutput[pdftex]
\setupinteraction[state=start]
\setupcolors[state=start]
\useJSscripts[fld]
\definesymbol [yes-a] [$\times$]
\definesymbol [yes-b] [$\star$]
\definesymbol [nop-a] [$\bullet$]
\definesymbol [nop-b] [$-$]
\definefield [example-1] [
75 matches
Mail list logo