[NTG-context] SVG ViewBox figure battle

2023-05-19 Thread Thangalin via ntg-context
Hi there! The following document contains SVG. Save the SVG as "problem.svg" and run the document through LMTX version 2023.05.08 17:39: % SOF \startbuffer[csvg] \stopbuffer \starttext % honours viewbox \placefigure[none]{}{\includesvgbuffer[csvg]} \page % dishonours viewbox

Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Aditya Mahajan via ntg-context
On Fri, 19 May 2023, Jeroen via ntg-context wrote: > Many thanks. Is there a proper way to add some space (a couple of pt or em) > to the left and the right of the text itself so the frame does not get so > close to the text? \framed[loffset=0.2ex, roffset=0.2ex]{...} Also see:

Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Jeroen via ntg-context
Many thanks. Is there a proper way to add some space (a couple of pt or em) to the left and the right of the text itself so the frame does not get so close to the text? Op vr 19 mei 2023 om 14:10 schreef Wolfgang Schuster via ntg-context < ntg-context@ntg.nl>: > Jeroen via ntg-context schrieb am

Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Wolfgang Schuster via ntg-context
Jeroen via ntg-context schrieb am 19.05.2023 um 14:22: In order to get some inline framed verbatim text, I have in the past always used the following: \starttext This is an \inframed   [frame=on,   corner=00, radius=2mm,offset=-1.5pt]   {\ttx \bf example} \stoptext Since this has come-up

[NTG-context] Inline framed verbatim text

2023-05-19 Thread Jeroen via ntg-context
In order to get some inline framed verbatim text, I have in the past always used the following: \starttext This is an \inframed [frame=on, corner=00, radius=2mm,offset=-1.5pt] {\ttx \bf example} \stoptext Since this has come-up more and more often, I created the following:

Re: [NTG-context] Probably simple: using a variable for \switchtobodyfont size

2023-05-19 Thread Hans van der Meer via ntg-context
\def\relationsFontSize{8pt}\starttextHello World!\crlf\switchtobodyfont[\relationsFontSize]Hello, world!\stoptext Untitled.pdf Description: Adobe PDF document dr. Hans van der MeerOn 19 May 2023, at 11:43, Gerben Wierda via ntg-context wrote:I want to use a variable for a font size so I can set

Re: [NTG-context] Probably simple: using a variable for \switchtobodyfont size

2023-05-19 Thread Wolfgang Schuster via ntg-context
Gerben Wierda via ntg-context schrieb am 19.05.2023 um 11:43: I want to use a variable for a font size so I can set it based on language (as some translated texts have widely different sizes) This fails: %=== \newdimen\relationsFontSize \relationsFontSize=8pt

[NTG-context] Probably simple: using a variable for \switchtobodyfont size

2023-05-19 Thread Gerben Wierda via ntg-context
I want to use a variable for a font size so I can set it based on language (as some translated texts have widely different sizes) This fails: %=== \newdimen\relationsFontSize \relationsFontSize=8pt \starttext \switchtobodyfont[\relationsFontSize] Hello, world! \stoptext