\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
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
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
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
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
)/(\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
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
\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
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
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
]}
\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
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
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{
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
]
\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
[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
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
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
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
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
=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
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
: 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
\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
]
\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 (李延瑞
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
\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
\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
\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
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
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
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
#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
\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
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
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
\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
\ 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
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
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
}}
\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
]
\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
}
\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
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
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
45 matches
Mail list logo