On 1/12/2022 1:09 AM, jbf via ntg-context wrote:
For poetry that has non-regular indentations, I simply
\definelines[poem] and set that up the way I want, obviously, with
\setuplines[poem] e.g. [before={\blank
\setupinterlinespace[line=2.5ex]},after={\blank},indenting=first].
And then, but
,
I needed to typeset some poetry and noticed that
\startlines[space=on]
Some line with tab % doesn't work, no spaces added
Some line with spaces %work
\stoplines
Is there a way to make the "tab" render
On 1/11/2022 3:01 AM, Youssef Cherem via ntg-context wrote:
Hello,
I needed to typeset some poetry and noticed that
\startlines[space=on]
Some line with tab % doesn't work, no spaces added
Some line with spaces %work
\stoplines
Is there a way to make the "tab" render
Hello,
I needed to typeset some poetry and noticed that
\startlines[space=on]
Some line with tab % doesn't work, no spaces added
Some line with spaces %work
\stoplines
Is there a way to make the "tab" render
Rik, Wolfgang – thanks a lot. So simple. I wikified it.
juh
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
[ before={\blank\startnarrow[default=left,left=1cm]},
after={\stopnarrow\blank},
indenting={yes,-1cm}]
\showframe[text][text]
\starttext
before
\startlines
text \dorecurse{10}{ text}
text \dorecurse{40}{ text}
text \dorecurse{10}{ text}
\stoplines
after
\stoptext
Long version
=,
inbetween={\blank[small]},
after=,
]
\startlines
\setupindenting[-\Poemindent,yes]
\startparagraph},
after=\stopparagraph
\stoplines,
]
\starttext
Hi all,
I am looking for a way to make startstoplines likes this:
This is a long line
that breaks,
the second line,
the third line.
So if a line in the poem is too long it shall break and indent.
TIA
juh
___
On 3/5/2020 2:46 AM, Thangalin wrote:
If it helps, here's why I thought it would work:
https://wiki.contextgarden.net/Command/definefirstline
The wiki page shows that the macro takes a style option. The style
option links to:
https://wiki.contextgarden.net/Style_Alternatives
This page has a
If it helps, here's why I thought it would work:
https://wiki.contextgarden.net/Command/definefirstline
The wiki page shows that the macro takes a style option. The style
option links to:
https://wiki.contextgarden.net/Style_Alternatives
This page has a list of predefined styles and describes
][
alternative=word,
style=PoemFirstWord,
n=1,
]
\definestartstop[poem][
before={\startlines \setfirstline[PoemFirstLine] \placeinitial},
after={\stoplines},
]
\setuplines[indenting=odd]
\starttext
\startpoem
Some say the world will end in fire,
Some say in ice.
From what I've tasted
,
n=1,
]
\definestartstop[poem][
before={\startlines \setfirstline[PoemFirstLine] \placeinitial},
after={\stoplines},
]
\setuplines[indenting=odd]
\starttext
\startpoem
Some say the world will end in fire,
Some say in ice.
From what I've tasted of desire
I hold with those who favor fire
:
\setupbackend [export=yes]
\starttext
\subject{\tex{startlines} in margin}
\startparagraph
\margintext{\startlines
abc def
ghi
jkl
mno pqr
\stoplines}
\input knuth
\stopparagraph
\subject{\tex{crlf} in margin}
\startparagraph
\margintext{abc def\crlf
ghi
note.
> \footnote{Some text:
> \startlines
> a
> b
> c
> d
> \stoplines
> And some more text.}
>
> \stoptext
>
> produces
> a b c d
> (a single line). Is this a wee bug or have I missed something?
>
> I am using the latest minimals.
>
> Alan
>
>
On 2017-01-31 15:52, Alan Bowen wrote:
I am trying to set some poetry in a footnote and have encountered a
problem.
\starttext
Here is a footnote.
\footnote{Some text:
\startlines
a
b
c
d
\stoplines
And some more text.}
\stoptext
produces
a b c d
(a single line). Is this a wee bug or have I
I am trying to set some poetry in a footnote and have encountered a problem.
\starttext
Here is a footnote.
\footnote{Some text:
\startlines
a
b
c
d
\stoplines
And some more text.}
\stoptext
produces
a b c d
(a single line). Is this a wee bug or have I missed something?
I am using the latest
Hello,
I found out that the \startlines does not work if it is defined in a body
of some other macro. Is it expected behaviour, or not?
Thanks in advance,
Tomáš Hála
---
Minimal example: (CTX from TL2014)
\starttext
\def\{\startlines
text
text
\stoplines}
\
\stoptext
%% Gives text
Am 28.07.2014 um 13:29 schrieb Tomas Hala tomas.h...@mendelu.cz:
Hello,
I found out that the \startlines does not work if it is defined in a body
of some other macro. Is it expected behaviour, or not?
This is normal for TeX and you have to use other mechanism like buffers.
\starttext
28.07.2014 um 13:29 schrieb Tomas Hala tomas.h...@mendelu.cz:
#
# Hello,
#
# I found out that the \startlines does not work if it is defined in a body
# of some other macro. Is it expected behaviour, or not?
#
# This is normal for TeX and you have to use other mechanism like buffers
Am 28.07.2014 um 18:37 schrieb Tomas Hala tomas.h...@mendelu.cz:
That works. Thank you, Wolfgang.
Using this, I found out that buffers do not cooperate with \vfill.
Is there any other how to move parts of the buffer to the top and bottom
except two independent buffers?
I don’t think this
I have the following code:
\startlines
\startalignment[center]
\setupindenting[no]
\doifelse {\getvariable{meta}{personalInfo}} {long} {
longline 1
longline 2
longline 3
longline 4
longline 5
longline 6
On 4/26/2013 5:19 PM, Cecil Westerhof wrote:
I have the following code:
...
But then the text becomes one line instead of several lines.
because catcode changes are involved
\startbuffer [meta:personalInfo:long]
\startlines
longline 1
longline 2
longline 3
longline 4
longline 5
longline 6
2013/4/26 Hans Hagen pra...@wxs.nl:
On 4/26/2013 5:19 PM, Cecil Westerhof wrote:
I have the following code:
...
But then the text becomes one line instead of several lines.
because catcode changes are involved
\startbuffer [meta:personalInfo:long]
\startlines
longline 1
longline 2
Hi,
in another thread I got an answer to the question, how to format lines
in an environment automatically.
Is there a way to get the content of source lines? For example, to save
the line content into a variable?
Thank you in advance,
Ingo
Am 04.02.2013 um 18:11 schrieb Ingo Hohmann cont...@ingohohmann.de:
Hi,
in another thread I got an answer to the question, how to format lines in an
environment automatically.
Is there a way to get the content of source lines? For example, to save the
line content into a variable?
You
On Mon, 4 Feb 2013, Wolfgang Schuster wrote:
context({\\bf %s},l)
context(true)
What does context(true) do?
Aditya
___
If your question is of interest to others as
On Mon, Feb 4, 2013 at 7:05 PM, Aditya Mahajan adit...@umich.edu wrote:
On Mon, 4 Feb 2013, Wolfgang Schuster wrote:
context({\\bf %s},l)
context(true)
What does context(true) do?
Aditya
Newline tokens are
injected by passing true to the
Dear list,
I use \(start|stop)lines[spaces=on] to typeset poetry, which seems the
right thing to do to preserve eventual initial whitespace.
Anyway, I encounter the following issues:
= cut here = %
\starttext
this is normal text.
\startlines[space
this is normal text.
\startlines[space=on]
this is a {\em test} with a long long long long line\footnote{this is
a test with a long long long long line this is a test with a long
long long long line this is a test with a long long long long line
this is a test with a long long
Philipp Gesang ges...@stud.uni-heidelberg.de writes:
On 2012-04-22 17:16, Marco Pessotto wrote:
n I remember I brought this up a while ago:
http://archive.contextgarden.net/message/20100916.124413.0e12af0e.en.html
Seems like one can avoid the spaces through grouping (or with
{off}
\stopsetups
\setupnote[footnote][setups=get_back_my_spacing]
\starttext
\startlines[space=on]
this is a {\em test} with a long long long long
line\footnote{this is a test with a long long long long line this is a test
with a long long long long line this is a test with a long long long
but finally:
And indeed it works like a charm. Thanks a lot.
\startsetups get_back_my_spacing
\activatespacehandler{off}
\stopsetups
\setupnote[footnote][setups=get_back_my_spacing]
\starttext
\startlines[space
Am 31.12.2011 um 20:33 schrieb Pablo Rodríguez:
Hi there,
I want to be a \startlines... \stoplines environment to be 10cm away
from the left margin.
I know this is a basic question, but I have no idea how to do it.
As the lines environment has no margin keys you need the narrower
On 01/01/2012 10:30 AM, Wolfgang Schuster wrote:
Am 31.12.2011 um 20:33 schrieb Pablo Rodríguez:
Hi there,
I want to be a \startlines... \stoplines environment to be 10cm away
from the left margin.
I know this is a basic question, but I have no idea how to do it.
As the lines
Hi there,
I want to be a \startlines... \stoplines environment to be 10cm away
from the left margin.
I know this is a basic question, but I have no idea how to do it.
Since this is my last question to the list (this year ;-)), I'd really
appreciate, if anyone would be so kind to answer
Hi,
\startlines with the space=on option produces a spurious
space. Is that intended? I don't see a reason to introduce
a space.
\setuplines [style=mono]
\starttext
% for whatever
\startlines
for {\it whatever}
\stoplines
% for whatever
\startlines [space=on]
for {\it whatever
Am 16.10.2011 um 16:31 schrieb Marco:
Hi,
\startlines with the space=on option produces a spurious
space. Is that intended? I don't see a reason to introduce
a space.
\setuplines [style=mono]
\starttext
% for whatever
\startlines
for {\it whatever}
\stoplines
On 2011-10-16 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:
% for whatever
\startlines [space=on]
for {\it whatever}
for \italic{whatever}
This works, thanks.
However I still don't know, where the space comes from,
since the space after \it is eaten by TeX.
Marco
Am 12.03.2011 um 05:48 schrieb mathew:
% First request no space before
\setuplines[before=\nowhitespace,after=\nowhitespace]
% Now use startlines...
\framed[width=fit,align=right]{\startlines One
Two
Three\stoplines}
\framed
[width=fit,align=right,strut=no]
{\startlines
On Mar 12, 2011, at 02:15, Wolfgang Schuster wrote:
\framed
[width=fit,align=right,strut=no]
{\startlines[before=,after=]
One
Two
Three
\stoplines}
Awesome, thanks. I added a note to the wiki page about \framed, and
subsequently discovered the information was hidden on the page
% First request no space before
\setuplines[before=\nowhitespace,after=\nowhitespace]
% Now use startlines...
\framed[width=fit,align=right]{\startlines One
Two
Three\stoplines}
% ...then compare with \crlf.
\framed[width=fit,align=right]{One\crlf
Two\crlf
Three}
Why do these give
Hello,
Is there a way to sort the content of \startlines envinroment by the
alphabet? I have a list of songs in arbitrary order, and what to output
it in alphabetical one.
ex.:
\starttext
\subject{My set-list}
\startcolumns\startlinenumbering\startlines
Fly me to the moon
Hit the road jack
Hi,
Here is an interesting example
\starttext
\startlines
one %
two %
three %
\stoplines
\stoptext
This gives no linebreaks! Can this be prevented? I doubt it since
TeX never sees the \n. In which case, we should call it a
feature :-)
Aditya
Am 04.04.10 21:08, schrieb Aditya Mahajan:
Hi,
Here is an interesting example
\starttext
\startlines
one %
two %
three %
\stoplines
\stoptext
This gives no linebreaks! Can this be prevented? I doubt it since
TeX never sees the \n. In which case, we should call it a feature :-)
\bgroup
Hi Hans,
here is a new attempt to get a more generalized version of the
startlines macros, now mkiv only.
Wolfgang
\unprotect
\def\linesparameter #1{\csname\dolinesparameter{\??rg\@@lines}
#1\endcsname}
\def\dolinesparameter #1#2{\ifcsname#1#2\endcsname#1#2\else
On Thu, May 14, 2009 at 09:11:04AM +0200, Hans Hagen wrote:
Corsair wrote:
Hi guys,
I find that the `lines' environment (or description, itemize, etc.)
after text in margin does not align right. Consider the following
code:
in that case you can try \margintext {...} which saves the
Hi guys,
I find that the `lines' environment (or description, itemize, etc.)
after text in margin does not align right. Consider the following
code:
\starttext
\inmargin{What I want}
First line \crlf
Second line
\vskip 1cm
\inmargin{What it renders}
\startlines
First line
Second line
Hi,
I setup this test:
%%%
\starttext
\startlines
\input test.tex
\stoplines
\stoptext
%%%
File 'test.tex' contains just a 'Hello world!'
line. This test goes okay when I use 'texexec'
from default Ubuntu package. When I use 'context'
from minimals, I get a message
On Sat, 28 Mar 2009, Maurício wrote:
%%%
\starttext
\startlines
\input test.tex
\stoplines
\stoptext
%%%
File 'test.tex' contains just a 'Hello world!'
line. This test goes okay when I use 'texexec'
from default Ubuntu package. When I use 'context'
from
Vit Zyka wrote:
Hello Hans all deep macros diggers,
making final editting of czech translation of beginners manual I have
discovered a next error. It appears when page break occures inside of
startlines environment together with MPgraphics. Minimal example is
attached. Any idea, please
Vit Zyka wrote:
Taco Hoekwater wrote:
Vit Zyka wrote:
Hello Hans all deep macros diggers,
making final editting of czech translation of beginners manual I have
discovered a next error. It appears when page break occures inside of
startlines environment together with MPgraphics
Hans Hagen wrote:
Vit Zyka wrote:
Taco Hoekwater wrote:
Vit Zyka wrote:
Hello Hans all deep macros diggers,
making final editting of czech translation of beginners manual I have
discovered a next error. It appears when page break occures inside of
startlines environment together
Hello Hans all deep macros diggers,
making final editting of czech translation of beginners manual I have
discovered a next error. It appears when page break occures inside of
startlines environment together with MPgraphics. Minimal example is
attached. Any idea, please?
Thanks
Vit
hi there,
i am puzzled about the following issue.
there's extra whitespace between the centered line
and startlines, while when using \crlf, there is not.
\startlines is an environment i guess (i come from latex)
and some environments sometimes add extra whitespace
in latex, if i recall correctly
On Tue, 16 May 2006, frantisek holop wrote:
hi there,
i am puzzled about the following issue.
there's extra whitespace between the centered line
and startlines, while when using \crlf, there is not.
\startlines is an environment i guess (i come from latex)
and some environments sometimes
hmm, on Tue, May 16, 2006 at 06:27:12PM -0400, Aditya Mahajan said that
Use the before and after mechanism.
\setuplines[before={\startnarrower[3cm]},after=\stopnarrower]
\midaligned{test}
\startlines
There snores -- I mean sleeps -- my wife so frail.
There snores -- I mean sleeps -- my
Adrian Drury wrote:
Is there a way to calculate the width of some number of characters (or a
string of characters) to use as a dimension parameter? For example, a
macro that returns the width in points of 5 space characters in the
current font? I figured hardcoding the width of a space as a
Radhelorn wrote:Adrian Drury wrote:
Hello,
I'm having trouble using dropped caps within \startlines\stoplines. I'm trying to typeset some poetry and I'm using \setuplines[space=yes]. I'd like to use dropped caps and have the indented lines be additionally indented by any space at the beginning
Adrian Drury wrote:
Hello,
I'm having trouble using dropped caps within \startlines\stoplines.
I'm trying to typeset some poetry and I'm using
\setuplines[space=yes]. I'd like to use dropped caps and have the
indented lines be additionally indented by any space at the beginning
Hello,
I'm having trouble using dropped caps within \startlines\stoplines.
I'm trying to typeset some poetry and I'm using
\setuplines[space=yes]. I'd like to use dropped caps and have the
indented lines be additionally indented by any space at the beginning
of the lines.
See the following
Stuart Jansen wrote:
I am having problems with startlines. I'm using space=yes to preserve
space characters. This works fine with default ConTeXt lm/cm font. When
I use a font I've imported, however, the spaces aren't quite wide
enough. I can fix that with \def\normalspace{\char32}, but then I
On Sun, 2005-09-18 at 09:02 +0200, Taco Hoekwater wrote:
It sounds like perhaps you could have fixed this during the font
import by using afm2pl instead of afm2tfm (afm2tfm has hardwired
rules for the space factor, afm2pl has a switch that allows
configuration by hand).
This is actually a
I am having problems with startlines. I'm using space=yes to preserve
space characters. This works fine with default ConTeXt lm/cm font. When
I use a font I've imported, however, the spaces aren't quite wide
enough. I can fix that with \def\normalspace{\char32}, but then I have
problems
On 19 Jul 2005, at 14:58, Hans Hagen wrote:or, in page-lin.tex, fix: \installspacehandler \v!off {\normalspaces \let\obeyedspace\normalspace \let\ =\normalspace} Thanks Hans,Charlie Doherty *** Charles Doherty, Early Irish History, School of History, John Henry Newman
Dear Hans,Example 1 below causes TeX to hang and I have to abort the TeX run whereas Example 2 works when I omit \startlines / \stoplines and use \crlf. I have included the console readout for Example 1 below. I can get by with Example 2 but I thought I should let you know. Thanks again,Charlie
Charles Doherty wrote:
Dear Hans,
Example 1 below causes TeX to hang and I have to abort the TeX run
whereas Example 2 works when I omit \startlines / \stoplines and use
\crlf. I have included the console readout for Example 1 below. I can
get by with Example 2 but I thought I should let
On 19 Jul 2005, at 13:23, Taco Hoekwater wrote:
Current ConTeXt chokes on the use of \space within \startlines ...
\stoplines (that is a known bug). You need a workaround. This works
for the current example:
\starttext
Example 1
And here is the sentence before
\startnarrower[2*left
Taco Hoekwater wrote:
Charles Doherty wrote:
Dear Hans,
Example 1 below causes TeX to hang and I have to abort the TeX run
whereas Example 2 works when I omit \startlines / \stoplines and use
\crlf. I have included the console readout for Example 1 below. I can
get by with Example 2
Hi there,
I've spotted a bug: this will put TeX in a loop:
\starttext
\startlines
A\ test
\stoplines
\stoptext
because \ expands to \ .
Greetings, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
h h extern wrote:
% TACO: what do you think of
\let\cs\getvalue
\startlines
Let's talk about this{\cs{ttsl}or}that.
\stoplines
Assuming you are not going to use it for czech at some point ... yes
Taco
___
ntg-context mailing list
ntg-context
Stuart Jansen wrote:
Below is a simple test case that illustrates what I suspect are bugs
with \startlines. I suspect that fixing them will be tricky, so I'm
wondering if anyone can think of work arounds.
I'm not sure if they are bugs, because they come as a natural
amd predictable side
Below is a simple test case that illustrates what I suspect are bugs
with \startlines. I suspect that fixing them will be tricky, so I'm
wondering if anyone can think of work arounds.
\starttext
\bgroup\tt
\ConTeXt\ is A\bgroup\ttsl maz\egroup ing
\setuplines[space=yes]
\startlines
\ConTeXt
72 matches
Mail list logo