:
\definelistplacement[MyListItemIT][none]#1#2#3%
{\hfill\kern-1em\it#1\hfill\strut\crlf\strut\hfill\hphantom{\tf#3}\framedtext[frame=off,offset=overlay]{\bf\midaligned{#2}}\hfill\tf#3}
\setuplist[chapter]
[alternative=MyListItemIT]
\definecombinedlist[TOCtoc]
[chapter]
\setupcombinedlist
about to leave the desk.
Back again ...
Here is the corresponding minimal example:
\definelistplacement[MyListItemIT][none]#1#2#3%
{\hfill\kern-1em\it#1\hfill\strut\crlf\strut\hfill\hphantom{\tf#3}\framedtext[frame=off,offset=overlay]{\bf\midaligned{#2}}\hfill\tf#3}
Probably a bug
Am 17.01.2012 um 12:19 schrieb luigi scarso:
Probably a bug, but this is ok
\definelistplacement[MyListItemIT][none]#1#2#3%
{\hfill\kern-1em\it#1%
\hfill\strut\crlf\strut\hfill\hphantom{\tf#3}%
\framedtext[frame=off,offset=overlay,align=middle,style=bold]%
{#2}%
\hfill\tf#3
Am 17.01.2012 um 13:14 schrieb Steffen Wolfrum:
Am 17.01.2012 um 12:19 schrieb luigi scarso:
Probably a bug, but this is ok
\definelistplacement[MyListItemIT][none]#1#2#3%
{\hfill\kern-1em\it#1%
\hfill\strut\crlf\strut\hfill\hphantom{\tf#3}%
\framedtext[frame=off,offset=overlay,align
{Preface}
To write Lecture Notes or Exams I want to use a mechanism
such that in just one paper the questions and the answers
can be written. And then to hide the answers at some way or
to get a coupling between the exercises and the solutions.\crlf
I wanted also a mechanism to give each exercise
!hoffset,
\c!voffset=\simpleslidesslidetitleparameter\c!voffset]
{\getvalue{simpleslides:framed:page}
[\c!align=\simpleslidesslidetitleparameter\c!align]
{\let\\\crlf\useSlideTitlestyleandcolor\c!style\c!color#1}}}
%\simpleslidesslidetitleparameter\c!after}
%D Now the main
:\crlf
sometimes: LuaTeX error and something with lpegmatch??
\stopanswers
\endanswer
\useblocks[answer]
\stoptext
This piece of code is compiled with context of
TeXLive2011, which is almost every week updated.
The piece of compiled into a .pdf file without
any problem, but I see no interaction
[exer-1] First exercise.\crlf
See \in{Solution}[sol-1].
\stopexercise
\startexercise[exer-2] Second exercise.\crlf
See \in{Solution}[sol-2].
\stopexercise
\endexercise
\beginsolution
\startsolution[sol-1]
First solution!\crlf
See \in{Exercise}[exer-1].
\stopsolution
\startsolution[sol-2]
Second
I would like to execute an xmlsetup each time before the start of the (root)
node problem. Following --I think-- the code from the xml document:
\startxmlsetups xml:xam:initial
Starting the problem.\crlf
\stopxmlsetups
\xmlbeforedocumentsetup{\xmldocument}{xml:xam:initial}{xml:xam:problem
On 29-12-2011 16:19, Hans van der Meer wrote:
I would like to execute an xmlsetup each time before the start of the (root)
nodeproblem. Following --I think-- the code from the xml document:
\startxmlsetups xml:xam:initial
Starting the problem.\crlf
\stopxmlsetups
\xmlbeforedocumentsetup
\eTR
\bTR
\bTD Foo\crlf Bar\eTD
\bTD \input tufte \eTD
\eTR
\bTR
\bTD BAR \crlf FOO\eTD
\bTD
\startitemize
\item \input tufte
\item \input tufte
\stopitemize
\eTD
\eTR
\eTABLE
\stoptext
/example
P.S. In my real document I use Russian (\mainlanguage[ru]) and
enumeration in table
Hi,
try it with:
\starttext
\bTABLE[align=normal]
\bTR
\bTD Topic\eTD \bTD Text\eTD
\eTR
\bTR
\bTD Foo\crlf Bar\eTD
\bTD \input tufte \eTD
\eTR
\bTR
\bTD BAR \crlf FOO\eTD
\bTD
\startitemize
\item \input tufte
\item \input tufte
\stopitemize
\eTD
\eTR
\eTABLE
Hello,
** Andreas Harder [2011-12-29 02:29:26 +0100]:
Hi,
try it with:
\starttext
\bTABLE[align=normal]
\bTR
\bTD Topic\eTD \bTD Text\eTD
\eTR
\bTR
\bTD Foo\crlf Bar\eTD
\bTD \input tufte \eTD
\eTR
\bTR
\bTD BAR \crlf FOO\eTD
\bTD
\startitemize
\item \input tufte
\item
Hi!
I have two questions about sort lists.
1) Is there a way to reset (empty) the sorting list, to reuse it several
times?
\definesorting[song][songs]
\unexpanded\def\SongEntry#1#2#3%
{#2 \crlf}
\starttext
\startlinenumbering
\startlines
\setupinterlinespace[big]
\song{Sway}
\song{Hit
Is it correct that the use of textext(label,pos) in MetApost pictures does not
honor \crlf?
I could not make a twoline text with textext(abc\crlf xyz,pos), it comes out
as one line abcxyz.
Is it a feature or a defect?
Hans van der Meer
On Thu, 15 Dec 2011, Hans van der Meer wrote:
Is it correct that the use of textext(label,pos) in MetApost pictures does not
honor \crlf?
I could not make a twoline text with textext(abc\crlf xyz,pos), it comes out as one
line abcxyz.
Is it a feature or a defect?
textext(...) is a hbox. So
) in MetApost pictures does
not honor \crlf?
I could not make a twoline text with textext(abc\crlf xyz,pos), it comes
out as one line abcxyz.
Is it a feature or a defect?
textext(...) is a hbox. So you need to either use
textext(\vbox{... \crlf ...})
or
textext(\noexpand\framed[align
On 15-12-2011 16:06, Aditya Mahajan wrote:
textext(\noexpand\framed[align=normal]{... \crlf ...})
no need for a \noexpand here
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27
multiple pages. This is what I
was using originally. How would it look if it used textbackgrounds?
\definestartstop
[TimelineDocument]
[before={
\crlf
\setupbackground[frame=on,
before=\blank,
after=\blank
using boxes that sometimes span multiple pages. This is what I
was using originally. How would it look if it used textbackgrounds?
\definestartstop
[TimelineDocument]
[before={
\crlf
\setupbackground[frame=on,
before=\blank
:18. This code was working just fine a few days ago.
\definestartstop
[TimelineDocument]
[before={
\crlf
\setupbackground[frame=on,
before=\blank,
after=\blank,
corner=round
Hey folks,
The second \footnote doesn't show in the generated PDF. The number is
listed where it should at the end of the sentence, but the text of the
footnote is not listed at the bottom of the page.
\definestartstop
[SomeDocument]
[before={
\crlf
\setupbackground[frame
something better next time.
What you defined was the following piece of code:
\crlf
\setupbackground[..,.=.,..]
\startbackground
\startlines[style=type]
\setupalign[right]
\starttyping
…
\stoptyping
\stoplines
\stopbackground
\crlf
1. You used \crlf to add a empty line at the begin and end
but I’m going to explain
what was wrong, this will help you write something better next time.
What you defined was the following piece of code:
\crlf
\setupbackground[..,.=.,..]
\startbackground
\startlines[style=type]
\setupalign[right]
\starttyping
…
\stoptyping
\stoplines
={
\crlf
\setupbackground[frame=on,
before=\blank,
after=\blank,
corner=round,
topoffset=0.5cm,
leftoffset=0.5cm,
rightoffset=0.5cm
:
\definestartstop
[CodeExample]
[before={
\crlf
\setupbackground[frame=on,
before=\blank,
after=\blank,
corner=round,
topoffset=0.5cm,
leftoffset=0.5cm
be most welcome.
\defineheadplacement[MyChapter][vertical]{\vbox{#1\crlf#2}}
\setuplabeltext[chapter=Chapter ]
\setuphead[chapter][alternative=MyChapter]
\definehead[exercise][subject][incrementnumber=list]
\starttext
\title{Contents}
\placelist[chapter,section,exercise]
\chapter{Chapter
On Tue, Oct 25 2011, Alasdair McAndrew wrote:
\def\chap#1#2{Chapter #1\crlf #2}
\def\chap#1#2{\vbox{Chapter #1\crlf #2}}
--
Peter
___
If your question is of interest to others as well, please add
Thanks very much! (I'm embarrassed - I should have been able to work that
one out for myself...)
-Alasdair
On Tue, Oct 25, 2011 at 5:55 PM, Peter Münster pmli...@free.fr wrote:
On Tue, Oct 25 2011, Alasdair McAndrew wrote:
\def\chap#1#2{Chapter #1\crlf #2}
\def\chap#1#2{\vbox{Chapter #1
Am 25.10.2011 um 08:55 schrieb Peter Münster:
On Tue, Oct 25 2011, Alasdair McAndrew wrote:
\def\chap#1#2{Chapter #1\crlf #2}
\def\chap#1#2{\vbox{Chapter #1\crlf #2}}
Use uppercase or camelcase for self defined command and the chapter string can
be set with label texts.
\define[2
On 25-10-2011 08:55, Peter Münster wrote:
On Tue, Oct 25 2011, Alasdair McAndrew wrote:
\def\chap#1#2{Chapter #1\crlf #2}
\def\chap#1#2{\vbox{Chapter #1\crlf #2}}
or:
\defineheadplacement[MyHead][vertical]#1#2%
{\vbox{Chapter #1\crlf #2}}
which helps the calling code to make some
[hiding]
\stopxmlsetups
\startxmlsetups xml:text
\startnotmode[hiding]
\xmlflush{#1}
\crlf
\stopnotmode
\stopxmlsetups
So that the result will be:
First text.
Fourth text.
Is something like this possible or is there still another way?
Best regards,
Martin
]
\stopxmlsetups
\startxmlsetups xml:text
\startnotmode[hiding]
\xmlflush{#1}
\crlf
\stopnotmode
\stopxmlsetups
So that the result will be:
First text.
Fourth text.
Is something like this possible or is there still another way?
it really depends on how the nesting works out as explicit grouping can
\crlf #2}
\setuphead[chapter][
command=\chap,
style=bfc,
after={\blank[1cm]},
]
But this doesn't work (and nor do many other variations in the chap
command). I'm a bit stymied here - and I'd welcome some advice.
Thanks,
Alasdair
Thanks, but I am afraid I do not understand the mechanism well enough.
I did the follwoing call in the shell:
context --fontchoice=my font choice test
And in the test.tex file:
variable mykey = \getvariable{documents.arguments}{fontchoice}\crlf
But that clearly didn't work.
Hans van der Meer
}\crlf
But that clearly didn't work.
file name=test.tex
\doifdocumentargument {bodyfont}
{\setupbodyfont[\getdocumentargument{bodyfont}]}
\starttext
This document uses
“\doifdocumentargumentelse{bodyfont}{\getdocumentargument{bodyfont}}{Latin
Modern}” as bodyfont.
\stoptext
/file
$ context
{documents.arguments}{fontchoice}\crlf
But that clearly didn't work.
file name=test.tex
\doifdocumentargument {bodyfont}
{\setupbodyfont[\getdocumentargument{bodyfont}]}
\starttext
This document uses
“\doifdocumentargumentelse{bodyfont}{\getdocumentargument{bodyfont}}{Latin
Modern
,height=175mm,frame=off,hoffset=-10mm,voffset=100mm,align=right]%
{Infobox:\crlf
Peter\crlf
New York\crlf
0171/782801\crlf
t...@test.de}
\setlayerframed[Kontaktdaten][width=30mm,height=40mm,frame=\LayoutTest,hoffset=-10mm,voffset=60mm][strut=no,offset=overlay]%
{\externalfigure[niceImage][width=30mm
.
% Testing margin notes from inside combinations.
% Margin notes do not leave the combinations box.
\setuppapersize[A6][A6]
\starttext
\setupcombinations[location=middle]
test\crlf
\startcombination[2*1]
{abcdefg\inright{m1}}{l1}
{abcdefg\inright{m2}}{l2}
\stopcombination
\crlf
\stoptext
at the edge of the paper.
See minimal example below.
% Testing margin notes from inside combinations.
% Margin notes do not leave the combinations box.
\setuppapersize[A6][A6]
\starttext
\setupcombinations[location=middle]
test\crlf
\startcombination[2*1]
{abcdefg\inright{m1}}{l1}
{abcdefg\inright{m2
.
% Testing margin notes from inside combinations.
% Margin notes do not leave the combinations box.
\setuppapersize[A6][A6]
\starttext
\setupcombinations[location=middle]
test\crlf
\startcombination[2*1]
{abcdefg\inright{m1}}{l1}
{abcdefg\inright{m2}}{l2}
\stopcombination
\crlf
\stoptext
?
\definestartstop
[SomeFramedText]
[before={
\crlf
\setupbackground[frame=on,
before=\blank,
after=\blank,
corner=round,
topoffset=0.5cm,
leftoffset
[SubDocument]
[before={
\crlf
\setupbackground[frame=on,
before=\blank,
after=\blank,
corner=round,
topoffset=0.5cm,
leftoffset=0.5cm
] % the other example has [lmodern]
\starttext
\type{\setupbodyfont[lucida]}\crlf
numbers {\rm 1234567890} in rm\crlf
numbers {\os 1234567890} in os\par
\stoptext
ostest-lucida.pdf
Description: ostest-lucida.pdf
ostest-lmodern.pdf
Description: ostest-lmodern.pdf
Here is your minimal example.
\starttext
\setupblank[line]
\setupfootnotes[way=bychapter,rule=off,split=verystrict]
Hello\crlf
\stoptext
The error is triggered by \setupblank[normal].
The manual lists as possibilities: normal, standard, line dimension big medium
small fixed flexible
Am 22.09.2011 um 08:13 schrieb Meer, H. van der:
Here is your minimal example.
\starttext
\setupblank[line]
\setupfootnotes[way=bychapter,rule=off,split=verystrict]
Hello\crlf
\stoptext
The error is triggered by \setupblank[normal].
The manual lists as possibilities: normal
22.09.2011 um 08:13 schrieb Meer, H. van der:
Here is your minimal example.
\starttext
\setupblank[line]
\setupfootnotes[way=bychapter,rule=off,split=verystrict]
Hello\crlf
\stoptext
The error is triggered by \setupblank[normal].
The manual lists as possibilities: normal, standard, line
\crlf\placeannotationcontent}}}
\defineannotation
[commented]
[alternative=command,
command=\CommentedCommand]
\starttext
Vestibulum ante \commented{ipsum primis}{This is my comment …} in faucibus orci
luctus et ultrices posuere cubilia Curae; Fusce pretium orci lectus, a egestas
sapien
} test
\page \placenotes[endnote]
\stoptext
He wants also a title for each comment.
\usemodule[annotation]
\define[2]\CommentedCommand
{\placeannotationtitle
\expanded{\endnote{\placeannotationtitle\crlf\placeannotationcontent}}}
\defineannotation
[commented]
[alternative=command
Am 26.08.2011 12:36, schrieb Hans van der Meer:
I guess I am missing something in my font handling here, but do not know what.
Hans van der Meer
This is the minimal example:
\def\fontname{antykwa}
\setupbodyfont[\fontname]
\starttext
Requested font = \fontname.\crlf
\showbodyfont
guess I am missing something in my font handling here, but do not know
what.
Hans van der Meer
This is the minimal example:
\def\fontname{antykwa}
\setupbodyfont[\fontname]
\starttext
Requested font = \fontname.\crlf
\showbodyfont
\stoptext
This is my setup with respect to fonts
On 26-8-2011 12:36, Hans van der Meer wrote:
I guess I am missing something in my font handling here, but do not know what.
Hans van der Meer
This is the minimal example:
\def\fontname{antykwa}
\setupbodyfont[\fontname]
\starttext
Requested font = \fontname.\crlf
\showbodyfont
\stoptext
.
Hans van der Meer
This is the minimal example:
\def\fontname{antykwa}
\setupbodyfont[\fontname]
\starttext
Requested font = \fontname.\crlf
\showbodyfont
\stoptext
This is my setup with respect to fonts:
context/tex/texmf-fonts (link to /usr/local/textlive/2011/texmf-dist/fonts
Am 16.08.2011 um 00:05 schrieb Cecil Westerhof:
I think it is an obscure bug. If I take your code but change the following:
\setupTABLE[c][1][align=right,width=.35\textwidth]
\setupTABLE[c][2][width=.65\textwidth]
I have the same problem.
Change “align=right” to
2011/8/16 Wolfgang Schuster schuster.wolfg...@googlemail.com
I think it is an obscure bug. If I take your code but change the
following:
\setupTABLE[c][1][align=right,width=.35\textwidth]
\setupTABLE[c][2][width=.65\textwidth]
I have the same problem.
Change “align=right”
On of the things I need to do for the manual about ConTeXt is a list of the
most frequently used commands. I am using some macros to display them
correctly in a table. Attached a strange effect I got. The second row is
displayed wrongly. The third is the same row, but with a \crlf added
. The third is the same row, but with a \crlf added. This
displays correctly. But I am wondering why it is needed.
Use “align=right” for the first column.
Wolfgang
___
If your question is of interest to others as well
wrongly. The third is the same row, but with a \crlf added. This
displays correctly. But I am wondering why it is needed.
Use “align=right” for the first column.
I changed:
\setupTABLE[c][1][width=.35\textwidth]
into:
\setupTABLE[c][1][align=right, width=.35\textwidth]
But it does
a strange effect I got. The second row is
displayed wrongly. The third is the same row, but with a \crlf added. This
displays correctly. But I am wondering why it is needed.
Use “align=right” for the first column.
I changed:
\setupTABLE[c][1][width=.35\textwidth
. Attached a strange effect I got. The second row is
displayed wrongly. The third is the same row, but with a \crlf added. This
displays correctly. But I am wondering why it is needed.
Use “align=right” for the first column.
I changed:
\setupTABLE[c][1][width=.35\textwidth
Some \crlf vertical \crlf material }
\setbox2=\vbox{\hbox{X}}
\startformula
\left.\vcenter{\box1}\right\}\vcenter{\box2}
\stopformula
\stoptext
But I was wondering if there's a less hackish, more elegant way of doing
this in ConTeXt.
All best
Thomas
A Beginner's Book of TeX):
\starttext
\setbox1=\vbox{\hsize2cm Some \crlf vertical \crlf material }
\setbox2=\vbox{\hbox{X}}
\startformula
\left.\vcenter{\box1}\right\}\vcenter{\box2}
\stopformula
\stoptext
But I was wondering if there's a less hackish, more elegant way of doing
\startchapter[title=One,list={A Title \crlf An Author}]
\input knuth
\stopchapter
\page
\placelist[chapter][criterium=text]
\stoptext
Thanks!
Thomas
___
If your question is of interest to others as well, please add
=no]
\setuplist[chapter]
[width=0cm]
\starttext
\startchapter[title=One,list={A Title \crlf An Author}]
\input knuth
\stopchapter
\page
\placelist[chapter][criterium=text]
\define[3]\ChapterList%
{\bTABLE[offset=none,rulethickness=0pt,width=broad]
\bTR
% \bTD
Hey list,
I'd like to get framed text to break over a page, but I'm not sure how
to do this. Right now, I am using:
\def\StartSpecialFramedText%
{
\crlf
\startframedtext
[width=broad,
bottom=\vss,
top=\vss,
align=right,
corner=rectangular]
\it
}
\def
Hth, Philipp
\def\StartSpecialFramedText%
{
\crlf
\startframedtext
[width=broad,
bottom=\vss,
top=\vss,
align=right,
corner=rectangular]
\it
}
\def\StopSpecialFramedText%
{
\stopframedtext
\crlf
}
...
\StartSpecialFramedText
Some
%
{
\crlf
\setupbackground
[corner=rectangular,
frame=on,
background=
]
\startbackground
\startframedtext
[width=broad,
bottom=\vss,
top=\vss,
align=right,
corner=rectangular]
\it
}
\def\StopSpecialFramedText%
{
\stopframedtext
\stopbackground
\crlf
can fix this by replacing the \\ with \crlf to add a linebreak in the
entries:
\define[3]\MVC
{\starttabulate[|l|lp|]
\NC Model: \NC #1 \NC\NR
\NC View: \NC #2 \NC\NR
\NC Controller: \NC #3 \NC\NR
\stoptabulate}
\starttext
\MVC{usedmodel}{firstViewFromSeveral\crlf
2011/7/4 Wolfgang Schuster schuster.wolfg...@googlemail.com
This is *not* a minimal working example, neither it’s minimal nor it’s
working.
What do you mean by this? I had a problem, thus sure it is not working.
You can fix this by replacing the \\ with \crlf to add a linebreak
is not minimal because you have a lot of unnecessary commands in
it.
2. Your example does not work because you use commands which aren’t defined in
the file.
You can fix this by replacing the \\ with \crlf to add a linebreak in the
entries:
Works like a charm: thanks.
Is it not strange
}}
\def\startsection#1%
{\section[#1]{#1}\index{#1}}
\def\startsubsection#1%
{\subsection[#1]{#1}\index{#1}}
\def\startsubsubsection#1%
{\subsubsection[#1]{#1}\index{#1}}
\def\StartTimelineDate#1%
{\subsubsubject{\bf #1}}
\def\StopTimelineDate%
{
\crlf
}
\def\StartTimelineDocument%
{
\crlf
Hi,
say I have arbitrary string of alphanumeric characters:
\starttext
\showframe
9769387937933hhgiuiuziuziduzid93739837fhieuhifeuhfeiu39739837938398zfhfdkuhfiufhz398739837r98z379dihhfiu
\stoptext
How can I (automatically) force a break at end of line, without manually adding
\crlf
) force a break at end of line, without manually
adding \crlf or \break at break points?
\handletokens ...\with{\hskip 0pt plus .1pt\firstofoneargument}
Wolfgang
___
If your question is of interest to others as well
='9769387937933hhgiuiuziuziduzid93739837fhieuhifeuhfeiu39739837938398zfhfdkuhfiufhz398739837r98z379dihhfiu'
s= string.gsub(s..s..s,'(.)',%1\\hskip0sp)
context(s)
\stopluacode
\stoptext
... ok, compared to this solution it is for sure easier to manually add \crlf
:o))
The background are hundreds of URL's
9769387937933hhgiuiuziuziduzid93739837fhieuhifeuhfeiu39739837938398zfhfdkuhfiufhz398739837r98z379dihhfiu
\stoptext
How can I (automatically) force a break at end of line, without manually
adding \crlf or \break at break points?
\handletokens ...\with{\hskip 0pt plus .1pt\firstofoneargument}
Yes, this helps:
\showframe
\define[1]\ThisHelps {\handletokens#1\with{\hskip 0pt plus
9769387937933hhgiuiuziuziduzid93739837fhieuhifeuhfeiu39739837938398zfhfdkuhfiufhz398739837r98z379dihhfiu
\stoptext
How can I (automatically) force a break at end of line, without manually
adding \crlf or \break at break points?
\handletokens ...\with{\hskip 0pt plus .1pt\firstofoneargument}
Yes, this helps
characters:
\starttext
\showframe
9769387937933hhgiuiuziuziduzid93739837fhieuhifeuhfeiu39739837938398zfhfdkuhfiufhz398739837r98z379dihhfiu
\stoptext
How can I (automatically) force a break at end of line, without manually
adding \crlf or \break at break points?
\handletokens
]
\starttext
\eTeX \crlf
$\mathrm{sin}\pi=0$
\stoptext
Both work on my machine; maybe Mojca has an old antykwa typescript
laying around.
Hans
-
Hans Hagen | PRAGMA ADE
Ridderstraat
,
but also the whole math is somewhat broken. In MKII the font would
fall back on Latin Modern in case that there are no math glyphs, but
ConTeXt MKIV complains about
This works with a recent minimals
\usetypescript[antykwa-torunska]
\setupbodyfont[antykwa,10pt]
\starttext
\eTeX \crlf
$\mathrm{sin
\leftskip\listparameter\c!margin
\noindent\currentlistsymbol\crlf#2\enspace\listdots\enspace#3 \par
\listparameter\c!after \setuplocalinterlinespace[line=4.2ex] }}\protect
\setuplist[chapter][label=yes, alternative=vertical,
command=\ChapterList, interaction=all
~]
\setupcombinedlist[content][
level=3,
alternative=c,
]
\unprotect
\define[3]\ChapterList{\vbox{
\setuplocalinterlinespace[line=2.8ex]
\listparameter\c!before
\leftskip\listparameter\c!margin
\noindent\currentlistsymbol\crlf#2\enspace\listdots\enspace#3
\par
\listparameter\c!after
[chapter=CHAPITRE~]
\setupcombinedlist[content][
level=3,
alternative=c,
]
\unprotect
\define[3]\ChapterList{\vbox{
\setuplocalinterlinespace[line=2.8ex]
\listparameter\c!before
\leftskip\listparameter\c!margin
\noindent\currentlistsymbol\crlf#2\enspace\listdots\enspace#3
\par
for that ?I couldn't find
it.
Thanks for help !
\setupinteraction[state=start]
\setuplabeltext[chapter=CHAPITRE~]\setuphead[chapter][ align=middle,
before={\crlf\blank[1cm-4.2ex]},style={\blank[2cm]},
after={\blank[3cm]},header=empty, ]
\defineregister[MyIndex][MyIndexs
commands seem to do anything.
Is there another command for that ?
I couldn't find it.
Thanks for help !
\setupinteraction[state=start]
\setuplabeltext[chapter=CHAPITRE~]
\setuphead[chapter][
align=middle,
before={\crlf\blank[1cm-4.2ex]},
style={\blank[2cm
there another command for that ?I couldn't find
it.
Thanks for help !
\setupinteraction[state=start]
\setuplabeltext[chapter=CHAPITRE~]\setuphead[chapter][ align=middle,
before={\crlf\blank[1cm-4.2ex]},style={\blank[2cm]},
after={\blank[3cm]},header=empty, ]
\setuphead
to change this.
\unprotect
\define[3]\ChapterList
{\par
\listparameter\c!before
\leftskip\listparameter\c!margin
\noindent\currentlistsymbol\crlf#2\enspace\listdots\enspace#3\par
\listparameter\c!after}
\protect
we can use the command handler instead but it will need some testing
\stopalignment
\startalignment[hyphenated]
Why this is not centered?\crlf Becaouse of the \textbackslash crlf
\stopalignment
\startalignment[hyphenated, middle]
this is centered. \crlf
No problem
\stopalignment
centered
\stopalignment
regular
\stoptext
cut here
Best wishes
--
Marco
!before
\leftskip\listparameter\c!margin
\noindent\currentlistsymbol\crlf#2\enspace\listdots\enspace#3\par
\listparameter\c!after}\protect
Wolfgang
___
If your question is of interest to others as well, please add
Am 26.05.2011 um 10:53 schrieb Marco Pessotto:
Hello there!
I've found a problem with the latest ConTeXt, but I guess it's been
present for a while.
Use \par or an empty line.
Wolfgang
___
If your question
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:
Am 26.05.2011 um 10:53 schrieb Marco Pessotto:
Hello there!
I've found a problem with the latest ConTeXt, but I guess it's been
present for a while.
Use \par or an empty line.
Wolfgang
The workaround was already present in
.
Wolfgang
The workaround was already present in the minimal example (setting again
the middle alignment). I was just reporting a problem.
\par (or a empty line) isn’t a workaround, it’s the correct way to end
a paragraph and \crlf is the workaround which doesn’t work in all cases.
Wolfgang
and \crlf is the workaround which doesn’t work in all cases.
So what's the correct way to force a line break without starting a new
paragraph, like \\ in LaTeX? Maybe the paragraph is marked also by more
spacing, and that particular linebreak is not meant to be a paragraph
ending. Like, e.g., for poems
. And I believed the \crlf was the correct
way to do it. Please correct me if I'm wrong.
To suppress whitespace between paragraph you can use the packed environment.
For poems i suggest to use the lines environment where the end of each line
is also the end of a paragraph, you can also change
is not meant to be a paragraph
ending. Like, e.g., for poems. And I believed the \crlf was the correct
way to do it. Please correct me if I'm wrong.
To suppress whitespace between paragraph you can use the packed environment.
For poems i suggest to use the lines environment where the end of each
” is necessary because \crlf use a flag insert \hfill at
the end of the line where it was put when you have left aligned text.
This flag is reset with \setupalign and also \startalignment and
the command thinks you have left aligned text unless you add the “middle”
keyword and \crlf does now know
...
I do get with MkIV the first example like you expect but “style={\blank[0cm]}”
is the wrong way. Such a layout can be easily done with your own list-command
for chapter but the labeltext is tricky:
\setuplabeltext[chapter=CHAPTER~]
% \define[3]\ChapterList % no label!
% {#1\crlf#2
Am 26.05.2011 um 17:13 schrieb Alan Braslau:
This solution: [alternative=command,command=\ChapterList]
breaks interaction; How can one get [interaction=all] to work?
Something like this:
\setupinteraction[state=start]
\define[3]\ChapterList
{\vbox{#1\crlf#2\hfill#3}}
\setuplist
something in the inheritance that breaks.
The “middle” is necessary because \crlf use a flag insert \hfill at
the end of the line where it was put when you have left aligned text.
This flag is reset with \setupalign and also \startalignment and
the command thinks you have left aligned text unless you
]
\define[3]\ChapterList
{\vbox{#1\crlf#2\hfill#3}}
\setuplist
[chapter]
[alternative=vertical,
command=\ChapterList,
interaction=all]
\starttext
\completecontent
\chapter{One}
\chapter{Two}
\stoptext
I guess i should take a closer look at “horizontal
Am 26.05.2011 um 18:48 schrieb Alan Braslau:
\define[3]\ChapterList
{\vbox{\par\noindent\currentlistsymbol#1\crlf#2\enspace\listdots\enspace#3}}
Your \par is useless here because we’re in a box.
\setuplist[chapter][label=yes,alternative=vertical,command=\ChapterList,interaction=all
501 - 600 of 1039 matches
Mail list logo