Re: [NTG-context] another surprising change (line break in TOC)

2012-01-17 Thread Steffen Wolfrum
: \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

Re: [NTG-context] another surprising change (line break in TOC)

2012-01-17 Thread luigi scarso
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

Re: [NTG-context] another surprising change (line break in TOC)

2012-01-17 Thread 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=middle,style=bold]% {#2}% \hfill\tf#3

Re: [NTG-context] another surprising change (line break in TOC)

2012-01-17 Thread Wolfgang Schuster
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

[NTG-context] howto get good references in mkiv?

2012-01-05 Thread Rene van Hassel
{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

Re: [NTG-context] Undefined controle sequence with usemodule[simpleslides]

2012-01-04 Thread Aditya Mahajan
!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

[NTG-context] problem with coupling (mkiv)

2012-01-02 Thread Rene van Hassel
:\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

[NTG-context] problem with cross references

2012-01-02 Thread Rene van Hassel
[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

[NTG-context] xmlbeforedocumentsetup?

2011-12-29 Thread Hans van der Meer
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

Re: [NTG-context] xmlbeforedocumentsetup?

2011-12-29 Thread Hans Hagen
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

[NTG-context] Hyphenation in Natural Table

2011-12-28 Thread Vladimir Lomov
\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

Re: [NTG-context] Hyphenation in Natural Table

2011-12-28 Thread Andreas Harder
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

Re: [NTG-context] Hyphenation in Natural Table

2011-12-28 Thread Vladimir Lomov
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

[NTG-context] Two questions about sort lists

2011-12-24 Thread Vyatcheslav Yatskovsky
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

[NTG-context] crlf in textext?

2011-12-15 Thread Hans van der Meer
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

Re: [NTG-context] crlf in textext?

2011-12-15 Thread Aditya Mahajan
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

Re: [NTG-context] crlf in textext?

2011-12-15 Thread Meer, H. van der
) 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

Re: [NTG-context] crlf in textext?

2011-12-15 Thread Hans Hagen
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

Re: [NTG-context] Text in a box now broken

2011-11-23 Thread Kip Warner
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

Re: [NTG-context] Text in a box now broken

2011-11-23 Thread Hans Hagen
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

[NTG-context] Text in a box now broken

2011-11-21 Thread Kip Warner
:18. This code was working just fine a few days ago. \definestartstop [TimelineDocument] [before={ \crlf \setupbackground[frame=on, before=\blank, after=\blank, corner=round

[NTG-context] Footnote Problem

2011-11-14 Thread Kip Warner
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

Re: [NTG-context] Fatal error

2011-11-04 Thread Wolfgang Schuster
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

Re: [NTG-context] Fatal error

2011-11-04 Thread Kip Warner
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

[NTG-context] Fatal error

2011-11-02 Thread Kip Warner
={ \crlf \setupbackground[frame=on, before=\blank, after=\blank, corner=round, topoffset=0.5cm, leftoffset=0.5cm, rightoffset=0.5cm

Re: [NTG-context] Fatal error

2011-11-02 Thread Wolfgang Schuster
: \definestartstop [CodeExample] [before={ \crlf \setupbackground[frame=on, before=\blank, after=\blank, corner=round, topoffset=0.5cm, leftoffset=0.5cm

Re: [NTG-context] Some more ToC questions

2011-10-26 Thread Wolfgang Schuster
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

Re: [NTG-context] Question about chapter headings

2011-10-25 Thread 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}} -- Peter ___ If your question is of interest to others as well, please add

Re: [NTG-context] Question about chapter headings

2011-10-25 Thread Alasdair McAndrew
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

Re: [NTG-context] Question about chapter headings

2011-10-25 Thread Wolfgang Schuster
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

Re: [NTG-context] Question about chapter headings

2011-10-25 Thread Hans Hagen
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

[NTG-context] xml and lpath

2011-10-25 Thread Martin Fechner
[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

Re: [NTG-context] xml and lpath

2011-10-25 Thread Hans Hagen
] \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

[NTG-context] Question about chapter headings

2011-10-24 Thread Alasdair McAndrew
\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

Re: [NTG-context] arguments on context call

2011-10-16 Thread Meer, H. van der
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

Re: [NTG-context] arguments on context call

2011-10-16 Thread Wolfgang Schuster
}\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

Re: [NTG-context] arguments on context call

2011-10-16 Thread Meer, H. van der
{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

Re: [NTG-context] nice friends-book with ConText - quite ready

2011-10-14 Thread Jan Heinen
,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

[NTG-context] margin notes

2011-10-11 Thread Meer, H. van der
. % 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

Re: [NTG-context] margin notes

2011-10-11 Thread Hans Hagen
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

[NTG-context] margin notes from inside combination

2011-10-08 Thread Meer, H. van der
. % 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

Re: [NTG-context] Framed Text Split Over Multiple Pages

2011-10-05 Thread Kip Warner
? \definestartstop [SomeFramedText] [before={ \crlf \setupbackground[frame=on, before=\blank, after=\blank, corner=round, topoffset=0.5cm, leftoffset

[NTG-context] Framed Text Split Over Multiple Pages

2011-10-04 Thread Kip Warner
[SubDocument] [before={ \crlf \setupbackground[frame=on, before=\blank, after=\blank, corner=round, topoffset=0.5cm, leftoffset=0.5cm

[NTG-context] no os numbers in lucida?

2011-09-30 Thread Meer, H. van der
] % 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

Re: [NTG-context] setupfootnotes failing

2011-09-22 Thread 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 dimension big medium small fixed flexible

Re: [NTG-context] setupfootnotes failing

2011-09-22 Thread Wolfgang Schuster
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

Re: [NTG-context] setupfootnotes failing

2011-09-22 Thread Meer, H. van der
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

Re: [NTG-context] Retrieve the content of comments

2011-09-06 Thread Wolfgang Schuster
\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

Re: [NTG-context] Retrieve the content of comments

2011-09-06 Thread stdin
} 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

Re: [NTG-context] fonts

2011-08-26 Thread Peter Rolf
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

Re: [NTG-context] fonts

2011-08-26 Thread Hans van der Meer
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

Re: [NTG-context] fonts

2011-08-26 Thread Hans Hagen
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

Re: [NTG-context] fonts

2011-08-26 Thread Peter Rolf
. 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

Re: [NTG-context] Why is the \crlf needed to display the table correctly

2011-08-16 Thread Wolfgang Schuster
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

Re: [NTG-context] Why is the \crlf needed to display the table correctly

2011-08-16 Thread Cecil Westerhof
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”

[NTG-context] Why is the \crlf needed to display the table correctly

2011-08-15 Thread Cecil Westerhof
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

Re: [NTG-context] Why is the \crlf needed to display the table correctly

2011-08-15 Thread Wolfgang Schuster
. 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

Re: [NTG-context] Why is the \crlf needed to display the table correctly

2011-08-15 Thread Cecil Westerhof
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

Re: [NTG-context] Why is the \crlf needed to display the table correctly

2011-08-15 Thread Wolfgang Schuster
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

Re: [NTG-context] Why is the \crlf needed to display the table correctly

2011-08-15 Thread Cecil Westerhof
. 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

Re: [NTG-context] A cases type environment using a right brace?

2011-07-21 Thread Thomas A. Schmitz
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

Re: [NTG-context] A cases type environment using a right brace?

2011-07-21 Thread Wolfgang Schuster
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

[NTG-context] vertical alignment in TOC

2011-07-19 Thread Thomas A. Schmitz
\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

Re: [NTG-context] vertical alignment in TOC

2011-07-19 Thread Andreas Harder
=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

[NTG-context] Getting framed text to page break

2011-07-06 Thread Kip Warner
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

Re: [NTG-context] Getting framed text to page break

2011-07-06 Thread Philipp Gesang
Hth, Philipp \def\StartSpecialFramedText% { \crlf \startframedtext [width=broad, bottom=\vss, top=\vss, align=right, corner=rectangular] \it } \def\StopSpecialFramedText% { \stopframedtext \crlf } ... \StartSpecialFramedText Some

Re: [NTG-context] Getting framed text to page break

2011-07-06 Thread Kip Warner
% { \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

Re: [NTG-context] Fwd: Newlines in a table cel

2011-07-04 Thread Wolfgang Schuster
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

Re: [NTG-context] Fwd: Newlines in a table cel

2011-07-04 Thread Cecil Westerhof
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

Re: [NTG-context] Fwd: Newlines in a table cel

2011-07-04 Thread Wolfgang Schuster
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

[NTG-context] bad argument #1 to 'gsub'

2011-06-23 Thread Kip Warner
}} \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

[NTG-context] break strings

2011-06-13 Thread Steffen Wolfrum
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

Re: [NTG-context] break strings

2011-06-13 Thread Wolfgang Schuster
) 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

Re: [NTG-context] break strings

2011-06-13 Thread Steffen Wolfrum
='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

Re: [NTG-context] break strings

2011-06-13 Thread Steffen Wolfrum
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

Re: [NTG-context] break strings

2011-06-13 Thread luigi scarso
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

Re: [NTG-context] break strings

2011-06-13 Thread Steffen Wolfrum
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

Re: [NTG-context] math in antp with MKIV

2011-06-08 Thread Hans Hagen
] \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

Re: [NTG-context] math in antp with MKIV

2011-06-07 Thread luigi scarso
, 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

Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-27 Thread Mathieu DUPONT
\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

Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-27 Thread Alan Braslau
~] \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

Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-27 Thread Mathieu DUPONT
[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

[NTG-context] Modifying the header of a Register : \setuphead or \setupregister not working

2011-05-27 Thread Mathieu DUPONT
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

Re: [NTG-context] Modifying the header of a Register : \setuphead or \setupregister not working

2011-05-27 Thread Wolfgang Schuster
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

Re: [NTG-context] Modifying the header of a Register : \setuphead or \setupregister not working

2011-05-27 Thread Mathieu DUPONT
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

Re: [NTG-context] TOC : margin size doesn't reset if next section is a chapter

2011-05-26 Thread Hans Hagen
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

[NTG-context] \crlf breaks alignment inheritance

2011-05-26 Thread Marco Pessotto
\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

Re: [NTG-context] TOC : margin size doesn't reset if next section is a chapter

2011-05-26 Thread Mathieu DUPONT
!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

Re: [NTG-context] \crlf breaks alignment inheritance

2011-05-26 Thread Wolfgang Schuster
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

Re: [NTG-context] \crlf breaks alignment inheritance

2011-05-26 Thread Marco Pessotto
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

Re: [NTG-context] \crlf breaks alignment inheritance

2011-05-26 Thread Wolfgang Schuster
. 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

Re: [NTG-context] \crlf breaks alignment inheritance

2011-05-26 Thread Marco Pessotto
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

Re: [NTG-context] \crlf breaks alignment inheritance

2011-05-26 Thread Wolfgang Schuster
. 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

Re: [NTG-context] \crlf breaks alignment inheritance

2011-05-26 Thread Marco Pessotto
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

Re: [NTG-context] \crlf breaks alignment inheritance

2011-05-26 Thread Wolfgang Schuster
” 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

Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-26 Thread Alan Braslau
... 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

Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-26 Thread Wolfgang Schuster
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

Re: [NTG-context] \crlf breaks alignment inheritance

2011-05-26 Thread Marco Pessotto
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

Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-26 Thread Alan Braslau
] \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

Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-26 Thread Wolfgang Schuster
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

<    1   2   3   4   5   6   7   8   9   10   >