Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-13 Thread Max Chernoff via ntg-context
\showlines false Four line paragraph \\ Four line paragraph \\ Four line paragraph \\ Four line paragraph \samplefile{bryson} \showlines true \samplefile{knuth} \stoptext These are both kind of hacky though. I'd recommend that you use

Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-11 Thread Hans Hagen via ntg-context
space about 30% of textwidth, so no need to use the margins. Though its easy for me to implement this code using some \thinrules and manually dropping macros in the text, is there some way ConTeXt can be told to just add them to right of every paragraph (at the start of the paragraph)? Sample

[NTG-context] How to make something appear to the right of every paragraph?

2022-10-09 Thread Joel via ntg-context
the margins. Though its easy for me to implement this code using some \thinrules and manually dropping macros in the text, is there some way ConTeXt can be told to just add them to right of every paragraph (at the start of the paragraph)? Sample: This is some text  that is written

[NTG-context] thinrules width

2020-12-14 Thread Rik Kabel
Hello list, and developers in particular, I note that thinrules (and its setup, setupthinrules, and relatives thinrule and hairline) does not have a width setting, and always sets a rule (or rules) the full width of the text area (less any text set on the same line. No problem, but I do see

Re: [NTG-context] Filling a page with \thinrules

2019-12-07 Thread Otared Kavian
Thanks Rik! The \phantom stuff is following me since the good old Plain TeX days… :-) Now I know how to get rid of it. Best regards: OK > On 7 Dec 2019, at 16:33, Rik Kabel wrote: > […] > > Replace the \hphantom{...} with \dontleavehmode. > > -- > Rik

Re: [NTG-context] Filling a page with \thinrules

2019-12-07 Thread Rik Kabel
)/(\dimexpr\lineheight+2.2ex\relax)\relax \thinrules[n=\number\scratchcounter,inbetween={\blank[2.2ex]}] \page } \showframe \starttext \dorecurse{2}{\input knuth.tex\par} \thinrulesfillpage \thinrulesfillpage \input ward.tex \thinrulesfillpage \stoptext On 7 Dec

Re: [NTG-context] Filling a page with \thinrules

2019-12-07 Thread Hans Hagen
know why... \blank \scratchcounter\dimexpr(\pagegoal-\pagetotal-2\lineheight)/(\dimexpr\lineheight+2.2ex\relax)\relax \thinrules[n=\number\scratchcounter,inbetween={\blank[2.2ex]}] \page } \showframe \starttext \dorecurse{2}{\input knuth.tex\par

Re: [NTG-context] Filling a page with \thinrules

2019-12-07 Thread Otared Kavian
\thinrules[n=\number\scratchcounter,inbetween={\blank[2.2ex]}] \page } \showframe \starttext \dorecurse{2}{\input knuth.tex\par} \thinrulesfillpage \thinrulesfillpage \input ward.tex \thinrulesfillpage \stoptext > On 7 Dec 2019, at 03:49, Rik Kabel wr

Re: [NTG-context] Filling a page with \thinrules

2019-12-06 Thread Rik Kabel
On 12/6/2019 17:50, Otared Kavian wrote: Hi all, I am preparing a test for my students where I would like to have the statement of the problem on the top of a page and the remainder to the bottom of that page filled with \thinrules, for them to write the solution. And sometimes there might

[NTG-context] Filling a page with \thinrules

2019-12-06 Thread Otared Kavian
Hi all, I am preparing a test for my students where I would like to have the statement of the problem on the top of a page and the remainder to the bottom of that page filled with \thinrules, for them to write the solution. And sometimes there might be an empty page filled with thinrules when

Re: [NTG-context] Replace dashed lines with a solid line

2018-12-01 Thread Wolfgang Schuster
]} \input knuth \dorecurse{5}{\hairline} \stoptext \starttext \input knuth \thinrules[n=5] \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

Re: [NTG-context] Bug/change in fillinrules

2016-03-31 Thread Hans Hagen
serial no:} \fillinrules{Customer:} \fillinrules{Address:} \fillinrules{Fax:} \fillinrules{Email:} \fillinrules{Sample description:} \fillinrules{Solvent (water/other):} \fillinrules{Laboratory method:} \fillinrules{Date:} \fillinrules{Data collected by:} \stoptext It’s a \thinrules bug which i

Re: [NTG-context] Bug/change in fillinrules

2016-03-31 Thread Mari Voipio
gt; > \starttext > > \fillinrules{Refractometer serial no:} > \fillinrules{Customer:} > \fillinrules{Address:} > \fillinrules{Fax:} > \fillinrules{Email:} > \fillinrules{Sample description:} > \fillinrules{Solvent (water/other):} > \fillinrules{Laboratory method:} > \fillinrules{

Re: [NTG-context] Bug/change in fillinrules

2016-03-29 Thread Wolfgang Schuster
lected by:} \stoptext It’s a \thinrules bug which inserts a line break when you have only a single line. \starttext Left \thinrules[n=1] Right \blank Left \thinrules[n=2] Right \blank Left \thinrules[n=3] Right \stoptext Wo

Re: [NTG-context] reset blocks with dorecurse

2014-01-15 Thread DesdeChaves
] \page \setcounter[userpage][1] \centerline{\kap{Maths}} \centerline{\kap{Worksheet}} \crlf Name:\thinrules[n=1]%, interlinespace=big] Evaluation:\thinrules[n=1]%, interlinespace=big] \getbuffer[examn] \stopsetups \starttext \setuppagenumbering[state=stop

[NTG-context] reset blocks with dorecurse

2014-01-14 Thread DesdeChaves
[userpage][1] \centerline{\kap{Maths}} \centerline{\kap{Worksheet}} \crlf Name:\thinrules[n=1]%, interlinespace=big] Evaluation:\thinrules[n=1]%, interlinespace=big] \getbuffer[examn] \stopsetups \starttext \setuppagenumbering[state=stop] \startbuffer[examn] \section{Questions

[NTG-context] thinrules

2012-05-17 Thread Meer, H. van der
Macro \thinrules places vertical whitespace before the first of its lines. I would like to get rid of that one, but have no success in doint that. Usage is: \par\thinrules[..]\par Howto? H van der Meer

Re: [NTG-context] thinrules

2012-05-17 Thread Wolfgang Schuster
Am 17.05.2012 um 17:46 schrieb Meer, H. van der: Macro \thinrules places vertical whitespace before the first of its lines. I would like to get rid of that one, but have no success in doint that. Usage is: \par\thinrules[..]\par Howto? \starttext a \hrule b \strut a \hrule \strut b

Re: [NTG-context] thinrules

2012-05-17 Thread Wolfgang Schuster
Am 17.05.2012 um 18:09 schrieb Meer, H. van der: Thanks, From your answer I understand that collapsing the preceding vertical space is impossible with \thinrules. \thinrule adds \strut at the begin of the rule which results in vertical space above and below. Wolfgang

Re: [NTG-context] enumerate fillinlne

2012-02-21 Thread Marco
command. I'm sure there's a cleaner solution for that, but it can serve as a starting point. \definemargindata [mymarginrule] [location=right, width=3cm] \define\myrules {\mymarginrule{\getnumber[itemgroup:itemize]. \thinrules[n=1]}} \setupitemgroup [itemize] [n] \setupitemgroup [itemize

Re: [NTG-context] enumerate fillinline

2012-02-21 Thread John Kitzmiller
=3cm] \define\myrules        {\mymarginrule{\getnumber[itemgroup:itemize]. \thinrules[n=1]}} \setupitemgroup [itemize] [n] \setupitemgroup [itemize] [right=\myrules] \starttext        \startitemize                \startitem \input knuth \stopitem                \startitem \input ward

Re: [NTG-context] enumerate fillinline

2012-02-21 Thread Marco
On 2012-02-21 John Kitzmiller jki...@gmail.com wrote: Thanks Marco, it is a start and would have taken me a long time to get there, however, the rule number is not inside the margin You're right. This should help: \define\myrules {\inright{\getnumber[itemgroup:itemize]. \thinrules[n=1

Re: [NTG-context] Setting up examination sheets

2011-12-19 Thread Aditya Mahajan
: posing questions to students which dates from 2006. Is there an updated version of your module usable with mkiv, or have you other solutions for setting up problems sheets? Can you elaborate what you mean by a problem sheet? I normally just use \thinrules[n=6], etc. Aditya

Re: [NTG-context] Setting up examination sheets

2011-12-19 Thread Otared Kavian
\thinrules[n=6], etc. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage

Re: [NTG-context] Hairline in header

2011-01-11 Thread 李延瑞
] \setupheader[text][after=\thinrules] it can work. However ConTeXt advises to use \blank instead of \vskip, for example: \setupthinrules[n=1, before={\blank[-0.8em]}] \setupheader[text][after=\thinrules] -- Best regards, Li Yanrui (李延瑞

Re: [NTG-context] Hairline in header

2011-01-11 Thread Florian Wobbe
Thanks, that works. I wonder if you can configure this with \setupthinrules. \setupthinrules[before=\vskip-0.8em] does no work. Hm, if you use: \setupthinrules[n=1, before=\vskip-0.8em] \setupheader[text][after=\thinrules] it can work. However ConTeXt advises to use \blank instead

[NTG-context] Room for comment on the backside of form

2010-09-07 Thread Cecil Westerhof
\thinrules[n=35,inbetween=\vskip1.5ex] \page } There are several needed optimisations. For starters the number of lines is hard coded. Is there a way to calculate them? At the moment it is always called with: \PageWithComment[Room for extra comments] What is the best way to set

Re: [NTG-context] Room for comment on the backside of form

2010-09-07 Thread Wolfgang Schuster
\PageWithComment[#1]{ \page #1 \crlf\crlf \thinrules[n=35,inbetween=\vskip1.5ex] \page } There are several needed optimisations. For starters the number of lines is hard coded. Is there a way to calculate them? \def\PageWithComment[#1]% {\page #1 \blank[2*line

Re: [NTG-context] Room for comment on the backside of form

2010-09-07 Thread Cecil Westerhof
\PageWithComment[#1]{ \page #1 \crlf\crlf \thinrules[n=35,inbetween=\vskip1.5ex] \page } There are several needed optimisations. For starters the number of lines is hard coded. Is there a way to calculate them? \def\PageWithComment[#1]% {\page #1 \blank[2*line] \getnoflines{\dimexpr

Re: [NTG-context] Room for comment on the backside of form

2010-09-07 Thread Wolfgang Schuster
the feedback. For this I made the following macro: \def\PageWithComment[#1]{ \page #1 \crlf\crlf \thinrules[n=35,inbetween=\vskip1.5ex] \page } There are several needed optimisations. For starters the number of lines is hard coded. Is there a way to calculate them? \def\PageWithComment[#1

Re: [NTG-context] dorecurse in table

2010-09-06 Thread Aditya Mahajan
wrong? Table and expansion are tricky. The error is caused by the last \HL and goes away if you add another line. But if you only want four horizontal lines, why not use \thinrules \thinrules[n=4] Also have a look at m-educat.tex (look at the example in the end of the file) which

Re: [NTG-context] dorecurse in table

2010-09-06 Thread Cecil Westerhof
is caused by the last \HL and goes away if you add another line. But if you only want four horizontal lines, why not use \thinrules \thinrules[n=4] That is what I want. I have now defined the following much simpler macro: \def\GetComment[#1]{ \blank #1\par \thinrules[n=4

[NTG-context] Macros for paper feedback form

2010-09-06 Thread Cecil Westerhof
#1\par \thinrules[n=4] \blank \crlf } \def\Title[#1]{ \par \startalignment[center] {\switchtobodyfont[18pt]\bf\em#1} \stopalignment \blank } But I would like to have also a macro for the following: {\bf Contact gegevens

[NTG-context] thinrules

2010-04-16 Thread Hans van der Meer
\thinrules disappear when then are the lone item and I can make them appear only by typeing somthing behind/before. However, I would to force a thin rule anyway, even if there is no surrounding text. How? Hans van der Meer

Re: [NTG-context] thinrules

2010-04-16 Thread Hans Hagen
On 16-4-2010 10:57, Hans van der Meer wrote: \thinrules disappear when then are the lone item and I can make them appear only by typeing somthing behind/before. However, I would to force a thin rule anyway, even if there is no surrounding text. How? put something invisible in front, \strut

Re: [NTG-context] number of lines ?

2009-01-22 Thread Alan Stone
On Thu, Jan 22, 2009 at 3:54 PM, Alan Stone software.list.1e...@gmail.comwrote: Try: Your text has {\the\noflines} lines. Your text has \the\noflines\ lines. % works also Thanks. How do you substract/add a number from/to \noflines ? I tried \thinrules[n=\advance\the\noflines by -2

Re: [NTG-context] number of lines ?

2009-01-22 Thread Wolfgang Schuster
\thinrules[n=\advance\the\noflines by -2] \thinrules[n=\advance\noflines by -2] \thinrules[n={\advance\the\noflines by -2}] \thinrules[n={\advance\noflines by -2}] \thinrules[n=\number\numexpr\noflines-2\relax] Wolfgang

Re: [NTG-context] number of lines ?

2009-01-22 Thread Alan Stone
\ lines. % works also Thanks. How do you substract/add a number from/to \noflines ? I tried \thinrules[n=\advance\the\noflines by -2] \thinrules[n=\advance\noflines by -2] \thinrules[n={\advance\the\noflines by -2}] \thinrules[n={\advance\noflines by -2}] \thinrules[n=\number\numexpr

Re: [NTG-context] Dynamic frame height

2008-12-15 Thread Bart C. Wise
Thanks, Bart %\showframe \starttext \input tufte \blank \framed[corner=00,align=right,width=\textwidth] {\getnoflines{\dimexpr\pagegoal-\pagetotal-2\lineheight\relax}% Notes:\crlf \thinrules[n=\noflines]} \stoptext Wolfgang

[NTG-context] Keeping a block of text together, without breaking footnotes, etc.

2008-05-15 Thread Daniel Pittman
paragraphs and a yes/no question section of the form. \starttext \dorecurse{10} {\bf Contact Details} \starttabulate[|l|p|] \NC Name: \NC \thinrule \NC \AR \NC Address: \NC \thinrules[n=3] \NC \AR \NC Postcode: \NC \thinrule \NC \AR \NC Email:\NC \thinrule \NC \AR

[NTG-context] newbie ConTeXt question

2008-03-11 Thread jazz_johnson
}} \lbox{\hsize 3.0in \txx \setupinterlinespace \it Our Friendly Motto} } \setupinterlinespace[line=.25ex] \hbox{ \vbox{ \setupinterlinespace[height=.5,top=.5,line=.1ex] \hsize 6.0in \thinrules[n=1, rulethickness=1.5pt] \crlf \thinrules[n=1

Re: [NTG-context] newbie ConTeXt question

2008-03-11 Thread Wolfgang Schuster
] \hsize 6.0in \thinrules[n=1, rulethickness=1.5pt] \crlf \thinrules[n=1, rulethickness=0.7pt]} } \hbox{ \tfx \setupinterlinespace[reset,medium] \vbox{ \hsize 1.5in \it www.mydomain.net\crlf [EMAIL PROTECTED

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
} \tab{text} text # \tbox \tex{text} \textreference[reference]{text} \textrule[top|bottom]{text} \textvariable[name] \thinrule \thinrules[settings] # \tightlayer \title[references]{text} # \to \tooltip[left|right|middle]{text}{text} \translate[name=text] \typ{text} \type{text} \typebuffer[name

[NTG-context] setupthinrules

2006-01-23 Thread Hans van der Meer
Doing thinrules one can place a number of them. However the interlinespace seems fixed to whatever has been chosen for small, medium, big. I looked into the code but could not find a more flexible mechanism, as for example interlinedistance=dimension Trying to get the rules close

Re: [NTG-context] Sorting question

2006-01-22 Thread Vit Zyka
Punkt % \def\NoOptArgLFD{% {\global\advance\xlfd by 1\relax} \ifnum\xlfd10 0\fi \number\xlfd. } % %Linie nach dem Namen % \def\myrule{ {\thinrules[n=1]\par}} % % % \starttext % % % 1. ex no prob % \definesorting[personA][personenA] \setupsorting[personA