[NTG-context] Re: Square right aligned

2024-02-09 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 09.02.2024 um 20:07: On 2/8/24 22:37, Otared Kavian wrote: Hi Ursula, I think you mean the so-called end of the proof sign, or QED (Quod Erat Demonstrandum). You can use this: \definesymbol[QED][\mathematics{\square}] \def\qed{\wordright{\symbol[QED

[NTG-context] Re: Square right aligned

2024-02-09 Thread Pablo Rodriguez via ntg-context
On 2/8/24 22:37, Otared Kavian wrote: > Hi Ursula, > > I think you mean the so-called end of the proof sign, or QED (Quod Erat > Demonstrandum). You can use this: > > \definesymbol[QED][\mathematics{\square}] > \def\qed{\wordright{\symbol[QED]}} > \starttext > This is

[NTG-context] Re: Square right aligned

2024-02-09 Thread Ursula Hermann
this: \definesymbol[QED][\mathematics{\square}] \def\qed{\wordright{\symbol[QED]}} \starttext This is the end of our proof. \qed \stoptext In principle it is included in ConTeXt, but it seems that in the latest version I have (2024.01.23), the command \qed is broken. Best regards: Otared On 8 Feb 2024

[NTG-context] Re: Square right aligned

2024-02-08 Thread Ursula Hermann
2024 22:37:08 An: mailing list for ConTeXt users Betreff: [NTG-context] Re: Square right aligned Hi Ursula, I think you mean the so-called end of the proof sign, or QED (Quod Erat Demonstrandum). You can use this: \definesymbol[QED][\mathematics{\square}] \def\qed{\wordright{\symbol[QED

[NTG-context] Re: Square right aligned

2024-02-08 Thread Otared Kavian
Hi Ursula, I think you mean the so-called end of the proof sign, or QED (Quod Erat Demonstrandum). You can use this: \definesymbol[QED][\mathematics{\square}] \def\qed{\wordright{\symbol[QED]}} \starttext This is the end of our proof. \qed \stoptext In principle it is included in ConTeXt

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
tchbox % \boxyoffset\scratchbox\scratchheight % \boxorientation\scratchbox\plustwo % \ht\scratchbox\scratchheight % \box\scratchbox % \egroup % \stopsetups % \definesymbol % [iTee] % [\directsetup{glyph:iTee}] % \startTEXpage [offset=1ts,wid

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hans Hagen
cratchbox\scratchheight \boxorientation\scratchbox\plustwo \ht \scratchbox\scratchheight \box\scratchbox \egroup \stopsetups \definesymbol [iTee] [\directsetup{glyph:iTee}] \startTEXpage [offset=1ts,width=2cm] \ruledhbox {\tfx T \symbol{iTee}} \par \ruledhbox {T \symbol{iTee}} \par \ruledhbox {\tf

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
group > \setbox\scratchbox \ruledhbox \bgroup > \glyphxscale 400 > \glyphyscale 400 > \getglyphstyled{Serif}{T}> choose a font here > \egroup > \scratchheight 2.75\ht\scratchbox > \boxyoffset \scratchbox\scratchheight > \boxorientation\scratchbox\plustwo > \ht \scratc

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
ight \box\scratchbox \egroup \stopsetups \definesymbol [iTee] [\directsetup{glyph:iTee}] \startTEXpage [offset=1ts,width=2cm] \ruledhbox {\tfx T \symbol{iTee}} \par \ruledhbox {T \symbol{iTee}} \par \ruledhbox {\tfa T \symbol{iTee}} \par \ruledhbox {\bfd T \symbol{iTee}} \stopTEXpage Great, will study

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hans Hagen
tchbox\scratchheight \box\scratchbox \egroup \stopsetups \definesymbol [iTee] [\directsetup{glyph:iTee}] \startTEXpage [offset=1ts,width=2cm] \ruledhbox {\tfx T \symbol{iTee}} \par \ruledhbox {T \symbol{iTee}} \par \ruledhbox {\tfa T \symbol{iTee}} \par \ruledhbox

[NTG-context] Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
\definesymbol[Tee][\getglyph{times}{T}] \symbol[Tee]est \tfx \symbol[Tee]est \tfa \symbol[Tee]est \stopTEXpage In this example, \tfa does scale the symbol Tee. But \tfx does not scale the symbol! Why does \tfa (or higher such as \tfb etc.) work, but not \tfx (or lower)? III. The best approach would

[NTG-context] Custom TOC with makeup and setups

2023-05-10 Thread Jethro Djan via ntg-context
welcome. My MWE: \setuppapersize[S6] \startuseMPgraphic{itemize:toc} save p; path p; p := ( (0,-0.5)--(0,0.5)--(0.866,0)--cycle ) scaled 1.5ExHeight; fill p withcolor \MPcolor{Black}; \stopuseMPgraphic \definesymbol[itemize:toc][\useMPgraphic{itemize:toc}] \definelistalternative [toclist

[NTG-context] https://wiki.contextgarden.net/Enumerations problem

2023-04-15 Thread Jim via ntg-context
In https://wiki.contextgarden.net/Enumerations there is this example: % \setupwhitespace[big] \definesymbol[1][$\triangleright$] \startcolumns {\bf joinedup:}\par before \startitemize[joinedup] \item

Re: [NTG-context] Issue with interactive checkboxes[solved]

2022-05-24 Thread Jan-Erik Hägglöf via ntg-context
pinteraction[state=start] > > \definesymbol[yes][{\externalfigure[check-mark-svgrepo-com.svg][conversion=mp]}] > \definesymbol[no][] > > \newcount\chk > \def\checkmark{% > \global\advance\chk by 1 > \setupfield[setup1][width=0.5cm, height=0.5cm,rulethickness=1pt, > co

Re: [NTG-context] Issue with interactive checkboxes[solved]

2022-05-24 Thread Pablo Rodriguez via ntg-context
On 5/24/22 10:18, Jan-Erik Hägglöf via ntg-context wrote: > HI Again! > > I discovered what went wrong, such a silly syntax error, here comes a > working code: Hi Jan-Erik, this will also make it: \setupinteraction[state=start] \definesymbol [yes] [{\externalfigure[on.svg][c

Re: [NTG-context] Issue with interactive checkboxes[solved]

2022-05-24 Thread Jan-Erik Hägglöf via ntg-context
HI Again! I discovered what went wrong, such a silly syntax error, here comes a working code: \setupinteraction[state=start] \definesymbol[yes][{\externalfigure[check-mark-svgrepo-com.svg][conversion=mp]}] \definesymbol[no][] \newcount\chk \def\checkmark{% \global\advance\chk by 1 \setupfield

Re: [NTG-context] Issue with interactive checkboxes

2022-05-24 Thread Jan-Erik Hägglöf via ntg-context
I’ve tried this \setupinteraction[state=start] \definesymbol[yes][{\externalfigure[check-mark-svgrepo-com.svg][conversion=mp]}] \definesymbol[no][] \newcount\chk \def\chk{% \global \advance \chk by 1 \setupfield[setup1][width=0.5cm, height=0.5cm,rulethickness=1pt, corner=round, framecolor=red

[NTG-context] Issue with interactive checkboxes

2022-05-23 Thread Jan-Erik Hägglöf via ntg-context
HI!Tried to make a checklist in an interactive document.The problem seems to be that all checks/uncecks in same click, not each individually.Is there something wrong with my code?See attached below\setupinteraction[state=start]\setupexternalfigures[location=global]\usemodule[fields]\definesymbol

Re: [NTG-context] Interactive checkbox in ConTeXt

2022-05-22 Thread Jan-Erik Hägglöf via ntg-context
So far I accomplished this but problem is that when I check it checks all, not individually. \setupinteraction[state=start] \setupexternalfigures[location=global] \definesymbol [yes] [{\externalfigure[check-mark-svgrepo-com.svg][conversion=mp]}] \definesymbol [no] [] \setupfield [setup 3

Re: [NTG-context] Interactive checkbox in ConTeXt

2022-05-22 Thread Jan-Erik Hägglöf via ntg-context
] \definesymbol [yes] [{\externalfigure[mp-cont.502]}] \definesymbol [no] [] \setupfield [setup 3] [width=2cm, height=2cm, rulethickness=3pt, corner=round, framecolor=red] \definefield [check-me] [check] [setup 3] [yes,no] [no] \starttext \field[check-me] \stoptext > 20 maj 2022 kl. 12:28 skrev Henn

Re: [NTG-context] What is the proper way to define many different list types in a document?

2022-01-24 Thread Aditya Mahajan via ntg-context
be > defining them, so the settings from one type don't spill over into the other > types? > --Joel > > %prompt > > \definesymbol[bighand][{{☞}}] > > \define[1]\prompt{% >     \setupitemize[symbol=bighand] >     \startitemize >         {\it #1} >     \stopitemize

[NTG-context] What is the proper way to define many different list types in a document?

2022-01-24 Thread Joel via ntg-context
%prompt \definesymbol[bighand][{{☞}}] \define[1]\prompt{%     \setupitemize[symbol=bighand]     \startitemize         {\it #1}     \stopitemize }% \prompt{What did you learn about today?} %vocabulary \startcolumns[n=3]\startitemize[n] \item word1 \item word2 \item word3 \stopitemize\stopcolumns

Re: [NTG-context] Dangerous bends symbol in manfnt.afm accidentally chopped by LMTX?

2022-01-02 Thread Hans Hagen via ntg-context
? \definefontsynonym [bends] [file:manfnt.afm] \startsymbolset [Dangerous Bends] \definesymbol [dbend] [\resolvedglyphdirect{bends}{n:char_7e}] \definesymbol [lhdbend] [\resolvedglyphdirect{bends}{n:char_7f}] \stopsymbolset \setupsymbolset [Dangerous Bends] \starttext \symbol{dbend}\quad

[NTG-context] Dangerous bends symbol in manfnt.afm accidentally chopped by LMTX?

2022-01-02 Thread Benjamin Buchmuller via ntg-context
Bends] \definesymbol [dbend] [\resolvedglyphdirect{bends}{n:char_7e}] \definesymbol [lhdbend] [\resolvedglyphdirect{bends}{n:char_7f}] \stopsymbolset \setupsymbolset [Dangerous Bends] \starttext \symbol{dbend}\quad \symbol{lhdbend} \stoptext Thanks Benjamin

Re: [NTG-context] Problem with colored font

2021-08-07 Thread Marcus Vinicius Mesquita via ntg-context
t time that the >> > definition of the symbol for the Brazilian flag is used, but no problem >> > when the definition for the flag of Portugal is used or even when the >> > symbol for the Brazilian flag is used a second time. How to correct >> this >> > behavior

Re: [NTG-context] Problem with colored font

2021-08-07 Thread Marcus Vinicius Mesquita via ntg-context
his > > behavior? > > > > MWE: > > > > \definefontfeature[colored][colr=yes] > > \definefontsynonym[flags][file:BabelStoneFlagsDual.ttf*colored at 7pt] > > \definesymbol[BR][\getglyphdirect{flags}{\char"F0023}] > > \definesymbol[PT][\getglyph

Re: [NTG-context] Problem with colored font

2021-08-07 Thread Hans Hagen via ntg-context
zilian flag is used a second time. How to correct this behavior? MWE: \definefontfeature[colored][colr=yes] \definefontsynonym[flags][file:BabelStoneFlagsDual.ttf*colored at 7pt] \definesymbol[BR][\getglyphdirect{flags}{\char"F0023}] \definesymbol[PT][\getglyphdirect{flags}{\char"F00

[NTG-context] Problem with colored font

2021-08-07 Thread Marcus Vinicius Mesquita via ntg-context
][file:BabelStoneFlagsDual.ttf*colored at 7pt] \definesymbol[BR][\getglyphdirect{flags}{\char"F0023}] \definesymbol[PT][\getglyphdirect{flags}{\char"F00A1}] \starttext Brasil \symbol[BR] Portugal \symbol[PT] Brasil \symbol[BR] \stoptext -- Todas as coisas fatigam o corpo, salvo a música, que não fa

Re: [NTG-context] Missing symb-imp-was.mkiv ?

2021-07-10 Thread Hans Hagen
diSymbolBold] [wasyb10] % \def\wasy@over#1#2{{\setbox0\hbox{$#2$}\hbox to \wd0{\hss$#1$\hss}\kern-\wd0\box0}} \def\WaldiSymbol {\getnamedglyphdirect{WaldiSymbol}} % #1 \def\WaldiSymbol#1{\getglyph{WaldiSymbol}{\fontchar{#1}}} % general symbols \startsymbolset [wasy general]

Re: [NTG-context] Lua code and table

2021-02-19 Thread Hans Hagen
,0) -- (\MPvar{width},\MPvar{height}) ; ) withpen pencircle scaled \MPvar{line} withcolor \MPvar{color} ; \stopuniqueMPgraphic \definesymbol [MyRedCross] [\uniqueMPgraphic{cross}{width=1em,height=1ex,depth=.5ex,color=red,line=.2ex}] \definesymbol [MyGreenCross] [\uni

Re: [NTG-context] Lua code and table

2021-02-18 Thread Fabrice Couvreur
context.stopxcell() > for j=1,n do > context.startxcell { align = "middle" } > action(string.sub(pattern[i],j,j)) > context.stopxcell() > end >

Re: [NTG-context] Lua code and table

2021-02-18 Thread Hans Hagen
end \stopluacode \startuniqueMPgraphic{cross}{width,height,depth,color,line} draw image ( draw (\MPvar{depth},\MPvar{height}) -- (\MPvar{width},0) ; draw (\MPvar{depth},0) -- (\MPvar{width},\MPvar{height}) ; ) withpen pencircle scaled \MPvar{line} withcolor \MPv

Re: [NTG-context] fancybreak module

2021-01-25 Thread Clyde Johnston
\hfill\symbol[star]\hfill\symbol[star]\hfill\symbol[star]\hfill\ hfill\strut >     }} \definesymbol [starbreak] [\maxaligned\bgroup \hfill\hfill \strut\symbol{star}\hfill\symbol{star}\hfill\symbol{star}% \hfill\hfill \egroup] \definefancybreak

Re: [NTG-context] fancybreak module

2021-01-25 Thread Wolfgang Schuster
\strut     }} \definesymbol [starbreak] [\maxaligned\bgroup \hfill\hfill \strut\symbol{star}\hfill\symbol{star}\hfill\symbol{star}% \hfill\hfill \egroup] \definefancybreak [starbreak] [symbol=starbreak] Wolfgang

[NTG-context] fancybreak fails in LMTX

2020-11-07 Thread Rik Kabel
the break should be, as shown in the included snips. \usemodule  [fancybreak] \definesymbol   [asterisms][*\qquad fancybreak\qquad *] \setupfancybreak[indentnext=no,symbol=asterisms] \starttext   Before \fancybreak   After \stoptext MkIV output: LMTX output

[NTG-context] Can't output direct glyphs either in MKIV or LMTX

2020-09-07 Thread Andres Conrado Montoya
nts/Phaistos.otf usedmethod=direct However, the glyph is not displayed in the pdf. I've tried both in MKIV and LMTX with no luck. Maybe someone here will have a clue. MWE: %% \definesymbol[arbol] [\getnamedglyphdirect{phaistos}{u101F2}] \starttext \switchtobodyfont[72pt] \sym

[NTG-context] Defining \qed (was: Bug with \wordright...)

2020-08-08 Thread Otared Kavian
\definesymbol[Fin][\mathematics{\square}] \def\qed{% \ifmmode \inrightmargin{\hskip-7.5mm\symbol[Fin]} % --> attention here \else \dontleavehmode\wordright{\symbol[Fin]} \fi} \setupformulas[location=left] \starttext One s

Re: [NTG-context] Bug with \wordright in LMTX version 2020-08-03 14:25

2020-08-05 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 05.08.2020 um 19:33: Hello, I also use a square to complete a demonstration. I tried this without success Thank you Fabrice \definesymbol[Fin][\mathematics{\square}] \def\qed{\strut\wordright{\symbol[Fin]}} \defineenumeration   [proof]   [...,    closesymbol

Re: [NTG-context] Bug with \wordright in LMTX version 2020-08-03 14:25

2020-08-05 Thread Fabrice Couvreur
Hello, I also use a square to complete a demonstration. I tried this without success Thank you Fabrice \definesymbol[Fin][\mathematics{\square}] \def\qed{\strut\wordright{\symbol[Fin]}} \defineenumeration [proof] [text=Démonstration, alternative=serried, distance=\zeropoint, number

Re: [NTG-context] Bug with \wordright in LMTX version 2020-08-03 14:25

2020-08-04 Thread Otared Kavian
-qed.tex \definesymbol[Fin][\mathematics{\square}] \def\qed{\ifmmode\quad\symbol[Fin]\else\strut\wordright{\symbol[Fin]}\fi} \starttext \startformula a^2 + b^2 = c^2. \stopformula \startformula a^2 + b^2 = c^2. \qed \stopformula One sees that\type{\qed} in the formula changes the alignment

Re: [NTG-context] Bug with \wordright in LMTX version 2020-08-03 14:25

2020-08-04 Thread Hans Hagen
seems to be \wordright, but although the following minimal example shows a bug it does not produce the same ERROR output page: the square ''end of proof'' \definesymbol[Fin][\mathematics{\square}] \def\qed{\wordright{\symbol[Fin]}} \starttext \startformula a^2 + b^2 = c^2 \stopformula \qed

[NTG-context] Bug with \wordright in LMTX version 2020-08-03 14:25

2020-08-03 Thread Otared Kavian
the following minimal example shows a bug it does not produce the same ERROR output page: the square ''end of proof'' \definesymbol[Fin][\mathematics{\square}] \def\qed{\wordright{\symbol[Fin]}} \starttext \startformula a^2 + b^2 = c^2 \stopformula \qed % the problem is here \stoptext

[NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Jairo A. del Rio
I've tried the following from the manuals and adapted some code to see if it works: 1. \definefontfeature[svg][svg=yes] \definefontsynonym[Emoji][file:emojionecolor-svginot.ttf*default,svg] \definesymbol[bug][\getglyphdirect{Emoji}{\char"1F41B}] \starttext \symbol[bug] \stoptext The emoj

Re: [NTG-context] \setupitemgroup[itemize],/setupitemize

2019-12-23 Thread Willi Egger
checks if the applies keywords include > the name of a symbol (something you create with \definesymbol) or the name of > a number conversion (something you create with \defineconversion) and applies > it to the current entry. > > This check also you to create

Re: [NTG-context] \setupitemgroup[itemize],/setupitemize

2019-12-18 Thread Wolfgang Schuster
the symbol for the bullets or use numbers instead ConTeXt checks if the applies keywords include the name of a symbol (something you create with \definesymbol) or the name of a number conversion (something you create with \defineconversion) and applies it to the current entry. This check also you

Re: [NTG-context] radiobuttons

2019-08-15 Thread Hans Hagen
t 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] \startuniqueMPgra

Re: [NTG-context] radiobuttons

2019-08-14 Thread Hans Hagen
\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] \setupfield[textstuff

Re: [NTG-context] Itemization formatting

2019-05-29 Thread Wolfgang Schuster
numeration. \definesymbol   [taco]   [{\inframed[frame=off,width=2em,align=flushleft]{\textbullet}}] \starttext \samplefile{zapf} \startitemize[text][symbol=taco]   \item \samplefile{weisman}\par   \startitemize     \item \samplefile{ward}\par   \stopitemize \stopitemize \stoptext

Re: [NTG-context] Itemization formatting

2019-05-29 Thread Hans Hagen
Hi Taco, \start \definesymbol[mystar][\llap{\symbol{star}\hskip10mm}] \setupitemgroup[itemize][intext,mystar] \setupitemgroup[itemize][leftmargin=15mm,rightmargin=5mm] \setupitemgroup[itemize][width=2cm,distance=-25mm] \startitemize \startitem

Re: [NTG-context] Filling the diamond in enumeration

2019-04-20 Thread Otared Kavian
Hi Fabrice, You can define your own symbol, as in the following: \starttext \definesymbol[mysymbol][{$\red\blacklozenge$}] \definesymbol[redtriangle][{$\red\blacktriangleright$}] \startitemize[mysymbol] \item foo \item bar \item baz \stopitemize \startitemize[redtriangle

[NTG-context] Fwd: Meptapost Drawing not showing-up in Context Letter Style

2019-03-12 Thread Jeroen
] [list={name,phone,email,date}] \setupletterlayer [address] [y=55mm] \setupletterdescription [enclosure] [location=top, leftmargin=0.5em, symbol=#1,] \usesymbols [mvs] \definesymbol [1] [{\symbol[martinvogel 2][PointingHand]}] \setupletter [toname={John Doe}, toaddress={201

[NTG-context] Meptapost Drawing not showing-up in Context Letter Style

2019-03-10 Thread Context NTG
, symbol=#1,] \usesymbols[mvs] \definesymbol[1][{\symbol[martinvogel 2][PointingHand]}] \setupletter [toname={John Doe}, toaddress={201, Main Street\\23124 London\\United Kingdom}, fromname={Jansen NV}, fromaddress={Waalhaven 2200\\2842 KL Rotterdam}, name={Piet jansen}, phone={+31(010

Re: [NTG-context] Works and Doesn't Work

2019-01-18 Thread Wolfgang Schuster
string works as advertised. Regards dh start of contxt source \definesymbol[5][$\diamond$] \starttext \setupitemgroup[itemize][each][packed][before=\underbar{mae-da },after=\underbar{ato-da}] % WORKS \setupitemgroup[itemize][each][ ][symbol=5

[NTG-context] Works and Doesn't Work

2019-01-17 Thread jdh
dh start of contxt source \definesymbol[5][$\diamond$] \starttext \setupitemgroup[itemize][each][packed][before=\underbar{mae-da },after=\underbar{ato-da}] % WORKS \setupitemgroup[itemize][each][ ][symbol=5]% WORKS

Re: [NTG-context] How to get mail and phone symbols?

2018-07-23 Thread Marcus Vinicius Mesquita
\definesymbol[e-mail][\getglyphdirect{FontAwesome}{\number"F003}] \definesymbol[phone][\getglyphdirect{FontAwesome}{\number"F095}] \starttext \symbol[e-mail] someone@somewhere \symbol[phone] your number \stoptext Fonts Awesome: https://fonta

Re: [NTG-context] Dangerous bend sign in mkiv

2017-08-31 Thread Otared Kavian
g (given by one of our gurus and dating back to sevral years) >> works fine in mkii, but I don’t know how to translate it in mkiv… >> %%% begin dangerous-bend.tex >> \loadmapfile [manfnt.map] >> \definefontsynonym [bends] [manfnt] >> \def\GetSym#1{\getglyph{bends}{\char

Re: [NTG-context] Dangerous bend sign in mkiv

2017-08-31 Thread Hans Hagen
… %%% begin dangerous-bend.tex \loadmapfile [manfnt.map] \definefontsynonym [bends] [manfnt] \def\GetSym#1{\getglyph{bends}{\char#1}} \startsymbolset [Dangerous Bends] \definesymbol [dbend] [\GetSym{127}] \definesymbol [lhdbend] [\GetSym{126}] \stopsymbolset \setupsymbolset [Dangerous

[NTG-context] Dangerous bend sign in mkiv

2017-08-31 Thread Otared Kavian
[manfnt.map] \definefontsynonym [bends] [manfnt] \def\GetSym#1{\getglyph{bends}{\char#1}} \startsymbolset [Dangerous Bends] \definesymbol [dbend] [\GetSym{127}] \definesymbol [lhdbend] [\GetSym{126}] \stopsymbolset \setupsymbolset [Dangerous Bends] \setupbodyfont[manfnt] \starttext

Re: [NTG-context] question about Linux Libertine

2017-05-09 Thread kaddour kardio
>> i managed to get the ornaments from Linux Libertine by using a rather >> low-level command >> >> \definesymbol >> [leaf] >> [\getnamedglyphdirect >> {kad} >> {ampersand.alt}] >> >> >> But for other

Re: [NTG-context] question about Linux Libertine

2017-05-08 Thread Hans Hagen
On 5/8/2017 12:20 AM, kaddour kardio wrote: i managed to get the ornaments from Linux Libertine by using a rather low-level command \definesymbol [leaf] [\getnamedglyphdirect {kad} {ampersand.alt}] But for other symbols i have to use another command like

Re: [NTG-context] question about Linux Libertine

2017-05-07 Thread kaddour kardio
i managed to get the ornaments from Linux Libertine by using a rather low-level command \definesymbol > [leaf] > [\getnamedglyphdirect > {kad} > {ampersand.alt}] But for other symbols i have to use another command like that: \definesymbol[orn1][\getglyph{kad}{\char9753

Re: [NTG-context] symbol sets

2017-03-31 Thread Lutz Haseloff
;> \def\WebdingsSymbol#1{\getglyphstyled{Webdings}{\tochar{x:#1}}} >>> >>> \startsymbolset[webdings] >>> \definesymbol [spider] [\WebdingsSymbol{f021}] >>> \definesymbol [spiderweb] [\WebdingsSymbol{f022}] >>> \definesymbol [sunglasses] [\WebdingsS

Re: [NTG-context] symbol sets

2017-03-31 Thread Henning Hraban Ramm
etglyphstyled{Webdings}{\tochar{x:#1}}} >> >> \startsymbolset[webdings] >> \definesymbol [spider] [\WebdingsSymbol{f021}] >> \definesymbol [spiderweb] [\WebdingsSymbol{f022}] >> \definesymbol [sunglasses] [\WebdingsSymbol{f024}] >> \definesymbol [award]

Re: [NTG-context] symbol sets

2017-03-30 Thread Wolfgang Schuster
led{Webdings}{\tochar{x:#1}}} \startsymbolset[webdings] \definesymbol [spider] [\WebdingsSymbol{f021}] \definesymbol [spiderweb] [\WebdingsSymbol{f022}] \definesymbol [sunglasses] [\WebdingsSymbol{f024}] \definesymbol [award] [\WebdingsSymbol{f026}] \definesymbol [ribbon] [\WebdingsSymbol{f02d}] \

Re: [NTG-context] symbol sets

2017-03-30 Thread Lutz Haseloff
] \definesymbol[surf][\WebDingSymbol{surf}] \definesymbol[motorcycle][\WebDingSymbol{motorcycle}] \definesymbol[mountain][\WebDingSymbol{mountain}] \definesymbol[art][\WebDingSymbol{art}] \definesymbol[occasion][\WebDingSymbol{occasion}] \stopsymbolset \starttext \tfc \symbol[webding][surf] \symbol

[NTG-context] symbol sets

2017-03-30 Thread Henning Hraban Ramm
I’m trying to define a symbolset: \definefontsynonym [Webdings] [file:Webdings.ttf] \def\WebdingsSymbol#1{\getglyphstyled{Webdings}{\tochar{x:#1}}} \startsymbolset[webdings] \definesymbol [spider][\WebdingsSymbol{f021}] \definesymbol [spiderweb][\WebdingsSymbol{f022

Re: [NTG-context] A better \definesymbol sought

2017-01-25 Thread Hans Hagen
On 1/24/2017 8:01 PM, Rik Kabel wrote: On 2017-01-24 03:34, Hans Hagen wrote: On 1/24/2017 4:04 AM, Rik wrote: What I want is that the background of the page (yellow in this case) should show through. That is what is done with fill / reverse / cycle, as in: \setupbackgrounds [page]

Re: [NTG-context] A better \definesymbol sought

2017-01-24 Thread Rik Kabel
On 2017-01-24 03:34, Hans Hagen wrote: On 1/24/2017 4:04 AM, Rik wrote: What I want is that the background of the page (yellow in this case) should show through. That is what is done with fill / reverse / cycle, as in: \setupbackgrounds [page]

Re: [NTG-context] A better \definesymbol sought

2017-01-24 Thread Hans Hagen
On 1/24/2017 4:04 AM, Rik wrote: On 2017-01-23 14:09, Rik Kabel wrote: On 2017-01-23 00:06, Alan Braslau wrote: > On Sun, 22 Jan 2017 22:39:53 -0500 Rik Kabel > wrote: > >> So, how can I make the inner glyph (‘?’ in the example below) >> transparent, so that the

Re: [NTG-context] A better \definesymbol sought

2017-01-23 Thread Rik
On 2017-01-23 14:09, Rik Kabel wrote: On 2017-01-23 00:06, Alan Braslau wrote: > On Sun, 22 Jan 2017 22:39:53 -0500 Rik Kabel > wrote: > >> So, how can I make the inner glyph (‘?’ in the example below) >> transparent, so that the background shows through along

Re: [NTG-context] A better \definesymbol sought

2017-01-23 Thread Rik Kabel
On 2017-01-23 00:06, Alan Braslau wrote: On Sun, 22 Jan 2017 22:39:53 -0500 Rik Kabel > wrote: > >> So, how can I make the inner glyph (‘?’ in the example below) >> transparent, so that the background shows through along with >> anything else that lives on a

Re: [NTG-context] A better \definesymbol sought

2017-01-22 Thread Alan Braslau
On Sun, 22 Jan 2017 22:39:53 -0500 Rik Kabel wrote: > So, how can I make the inner glyph (‘?’ in the example below) > transparent, so that the background shows through along with anything > else that lives on a lower layer? I’ve seen a method for constructed >

Re: [NTG-context] A better \definesymbol sought

2017-01-22 Thread Rik Kabel
to get options to center the glyphs from which the symbol is assembled (separate horizontal and vertical, with the ability to offset them)? Is there a ConTeXt way other than \definesymbol to create such combined symbols? MetaPost (with textext())? Thank you for that, Alan. I hadn’t ever used MetaPost

Re: [NTG-context] A better \definesymbol sought

2017-01-20 Thread Alan Braslau
yphs from which > the symbol is assembled (separate horizontal and vertical, with the > ability to offset them)? > > Is there a ConTeXt way other than \definesymbol to create such > combined symbols? MetaPost (with textext())? _

[NTG-context] A better \definesymbol sought

2017-01-20 Thread Rik Kabel
ConTeXters, I have been using \definesymbol for a while, and for most purposes it suffices. However, there is one thing that it does not do that perhaps it should. What it does not do is offer the option to center one glyph over another (horizontally and/or vertically) when it should

Re: [NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Otared Kavian
agenumbering[location=] > \setupfooter[style=small, color=colortwo] > \setupfootertexts[][\userpagenumber/\lastuserpage] > > % Lists > \startuseMPgraphic{itemize:main} > save p; path p; > p := fullcircle scaled 1.5ExHeight; > fill p withcolor \MPcolor{colorfive}; > \stopu

[NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Nicola
ze:main} save p; path p; p := fullcircle scaled 1.5ExHeight; fill p withcolor \MPcolor{colorfive}; \stopuseMPgraphic \startuseMPgraphic{itemize:nested} save p; path p; p := ((0,-0.5)--(0,0.5)--(0.866,0)--cycle) scaled 1.5ExHeight; fill p withcolor \MPcolor{colorfive}; \stopuseMPgraphic \

Re: [NTG-context] Multiple Choice Quiz with self marking funciton

2016-10-25 Thread B.A.Lee
Thanks Wolfgang for pointing the direction. My effort so far gave the following: \setuppapersize[S4][S4]\setupinteraction[state=start,click=no] \definefield     [Choice][radio][ChoiceSetup]    [yes,no] \definesymbol [YesS] [Y] %[\ding{52},color=red] %% Not successful in getting the symbols I

[NTG-context] beta

2016-06-08 Thread Hans Hagen
] % \definefont[Emoj][file:seguiemj.ttf*default,colored] \definesymbol[bug1][\getglyphdirect{file:emojionecolor-svginot.ttf*svg}{\char"1F41B}] \definesymbol[bug2][\getglyphdirect{file:seguiemj.ttf*colored} {\char"1F41B}] \startTEXpage [width=10em,align=middle,offset=1em] There a

Re: [NTG-context] Alignment/line break in a TABLE cell

2016-05-19 Thread Mari Voipio
\definesymbol[box3mm][{\useMPgraphic{box3mm_filled}}] \starttext \dontleavehmode\symbol[box3mm] 1 \stoptext Thank you for your speedy replies! Mari On Thu, May 19, 2016 at 2:08 PM, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: > Mari Voipio > 19. Mai 2016 um 12:45 > On Thu, Ma

Re: [NTG-context] Alignment/line break in a TABLE cell

2016-05-19 Thread Wolfgang Schuster
Lower your graphic because it has margins around the lines which positions it too high. \definesymbol[box3mm][{\offset[y=.25ex]{\externalfigure[box3mm]}}] \starttext \dontleavehmode\symbol[box3mm] 1 \stoptext 2. Use a box symbol which sits lower on the baseline. \starttext \dontleav

[NTG-context] Numbering and module visualcounter

2016-01-25 Thread Fabrice Couvreur
{v_strc_itemgroups_counter}] \definesymbol[fuzzy][{\framed[location=depth, frame=off, strut=no]{\usevisualcounter{fuzzyitem}}}] \setuphead [part] [command=\ChapterCommand, page=yes, textstyle=\ss, sectionresetset=, number=no, placehead=yes,

Re: [NTG-context] Numbering and module visualcounter

2016-01-25 Thread Wolfgang Schuster
fi; endgroup; \stopuseMPgraphic \protect \definevisualcounter [fuzzyitem] [randomcircle] [counter=\getvalue{v_strc_itemgroups_counter}] You can set the counter for the enumeration with [counter=itemgroup:itemize] \definesymbol[fuzzy][{\framed[location=depth, frame=off, strut=no]{\usevisualcounter{

Re: [NTG-context] Numbering and module visualcounter

2016-01-25 Thread Fabrice Couvreur
andomized > (diameter/20); > > pickup pencircle scaled \visualcounterparameter\c!rulethickness ; > fill randomcircle withcolor green; % Can be made configurable > label (countertext, origin); > > > fi; > endgroup; > \stopuseMPgraphic > \protect > &g

Re: [NTG-context] Fieldstacks are broken

2016-01-21 Thread Jeong Dal
at=flowed > > On 1/10/2016 5:01 PM, Wolfgang Schuster wrote: >> Hi Hans, >> >> the fieldstack mechanism doesn’t work anymore. >> >> \setupinteraction[state=start] >> >> \starttext \showframe >> >> \definesymbol[frame-1][\tt 1] >>

Re: [NTG-context] Fieldstacks are broken

2016-01-11 Thread Hans Hagen
On 1/10/2016 5:01 PM, Wolfgang Schuster wrote: Hi Hans, the fieldstack mechanism doesn’t work anymore. \setupinteraction[state=start] \starttext \showframe \definesymbol[frame-1][\tt 1] \definesymbol[frame-2][\tt 2] \definesymbol[frame-3][\tt 3] \definefieldstack[frame][frame-1,frame-2

[NTG-context] Fieldstacks are broken

2016-01-10 Thread Wolfgang Schuster
Hi Hans, the fieldstack mechanism doesn’t work anymore. \setupinteraction[state=start] \starttext \showframe \definesymbol[frame-1][\tt 1] \definesymbol[frame-2][\tt 2] \definesymbol[frame-3][\tt 3] \definefieldstack[frame][frame-1,frame-2,frame-3] \placeontopofeachother {\framed[strut

Re: [NTG-context] Smaller bullet points

2015-11-29 Thread Hans Hagen
On 11/29/2015 5:55 PM, Kate F wrote: Hi, I'm defining a slightly smaller bullet point symbol: \definesymbol[smallbullet][\small\bullet] \setupitemize[1][smallbullet] This aligns the smaller bullet point to the baseline of text, which is too low. I'd like to have it vertically centered

Re: [NTG-context] Smaller bullet points

2015-11-29 Thread Kate F
On 29 November 2015 at 17:51, Hans Hagen <pra...@wxs.nl> wrote: > On 11/29/2015 5:55 PM, Kate F wrote: >> >> Hi, >> >> I'm defining a slightly smaller bullet point symbol: >> >> \definesymbol[smallbullet][\small\bullet] >> \setupitemize[1

[NTG-context] Smaller bullet points

2015-11-29 Thread Kate F
Hi, I'm defining a slightly smaller bullet point symbol: \definesymbol[smallbullet][\small\bullet] \setupitemize[1][smallbullet] This aligns the smaller bullet point to the baseline of text, which is too low. I'd like to have it vertically centered, such that it aligns in the middle of where

Re: [NTG-context] Smaller bullet points

2015-11-29 Thread Hans Hagen
On 11/29/2015 7:33 PM, Kate F wrote: On 29 November 2015 at 17:51, Hans Hagen <pra...@wxs.nl> wrote: On 11/29/2015 5:55 PM, Kate F wrote: Hi, I'm defining a slightly smaller bullet point symbol: \definesymbol[smallbullet][\small\bullet] \setupitemize[1][smallbullet] This

Re: [NTG-context] TikZ and wrong drawing order

2015-06-14 Thread Mojca Miklavec
, then the first symbol in itemize environment gets covered by the background. Here's an example: \usemodule [tikz] \definesymbol[1] [{\tikz\shade[shading=ball,ball color=blue] (0,0) circle (.2cm);}] \definecolor [backcol] [s=1,a=1,t=0.1] \starttext \startframedtext[width=4cm

[NTG-context] TikZ and wrong drawing order

2015-06-11 Thread Mojca Miklavec
[tikz] \definesymbol[1] [{\tikz\shade[shading=ball,ball color=blue] (0,0) circle (.2cm);}] \definecolor [backcol] [s=1,a=1,t=0.1] \starttext \startframedtext[width=4cm,background=color,backgroundcolor=backcol] \startitemize \item one \item two \item three \stopitemize

Re: [NTG-context] TikZ and wrong drawing order

2015-06-11 Thread Aditya Mahajan
by the background. Here's an example: \usemodule [tikz] \definesymbol[1] [{\tikz\shade[shading=ball,ball color=blue] (0,0) circle (.2cm);}] \definecolor [backcol] [s=1,a=1,t=0.1] \starttext \startframedtext[width=4cm,background=color,backgroundcolor=backcol] \startitemize \item one

Re: [NTG-context] TikZ and wrong drawing order

2015-06-11 Thread Mojca Miklavec
, then the first symbol in itemize environment gets covered by the background. Here's an example: \usemodule [tikz] \definesymbol[1] [{\tikz\shade[shading=ball,ball color=blue] (0,0) circle (.2cm);}] \definecolor [backcol] [s=1,a=1,t=0.1] \starttext \startframedtext[width=4cm

Re: [NTG-context] TikZ and wrong drawing order

2015-06-11 Thread Hans Hagen
symbol and additionally use background text, then the first symbol in itemize environment gets covered by the background. Here's an example: \usemodule [tikz] \definesymbol[1] [{\tikz\shade[shading=ball,ball color=blue] (0,0) circle (.2cm);}] \definecolor [backcol] [s=1,a=1,t=0.1

Re: [NTG-context] TikZ and wrong drawing order

2015-06-11 Thread Hans Hagen
by the background. Here's an example: \usemodule [tikz] \definesymbol[1] [{\tikz\shade[shading=ball,ball color=blue] (0,0) circle (.2cm);}] \startreusableMPgraphic{bullet} fill fullcircle scaled (1EmWidth) withshademethod circular withcolor red shadedinto blue

Re: [NTG-context] TikZ and wrong drawing order

2015-06-11 Thread Mojca Miklavec
On Thu, Jun 11, 2015 at 11:12 PM, Hans Hagen wrote: On 6/11/2015 7:27 PM, Mojca Miklavec wrote: \usemodule [tikz] \definesymbol[1] [{\tikz\shade[shading=ball,ball color=blue] (0,0) circle (.2cm);}] \startreusableMPgraphic{bullet} fill fullcircle scaled (1EmWidth

Re: [NTG-context] TikZ and wrong drawing order

2015-06-11 Thread Hans Hagen
On 6/12/2015 12:28 AM, Mojca Miklavec wrote: On Thu, Jun 11, 2015 at 11:12 PM, Hans Hagen wrote: On 6/11/2015 7:27 PM, Mojca Miklavec wrote: \usemodule [tikz] \definesymbol[1] [{\tikz\shade[shading=ball,ball color=blue] (0,0) circle (.2cm);}] \startreusableMPgraphic{bullet

[NTG-context] Mark off boxes

2015-05-03 Thread henman
for check boxes? Here is a minimal example: - \definesymbol[5]{\bigsquare} \starttext This is a big square: \bigsquare \startitemize[5] \item Choice a does not have a check box. \item Choice b also does not have a check box. \item Not really a choice

  1   2   3   4   >