Re: [NTG-context] Text around a figure in a framedtext

2015-08-13 Thread Fabrice Couvreur
Hi, Sorry to revive this discussion (which I initiated), but the text in the following code does not wrapped around the figure. Why ? Fabrice \setupcolors [state=start] \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] \definecolor[MyColorA][.75(MyColorB,white)] \defineframedtext

Re: [NTG-context] Text around a figure in a framedtext

2015-08-13 Thread Fabrice Couvreur
Hi, Well, I think I have solved the problem : it is because of the blank line. Why ? Fabrice 2015-08-13 17:19 GMT+02:00 Fabrice Couvreur fabrice1.couvr...@gmail.com: Hi, Sorry to revive this discussion (which I initiated), but the text in the following code does not wrapped around the figure.

Re: [NTG-context] Text around a figure in a framedtext

2015-08-13 Thread Rik Kabel
On 2015-08-13 11:19, Fabrice Couvreur wrote: Hi, Sorry to revive this discussion (which I initiated), but the text in the following code does not wrapped around the figure. Why ? Fabrice \setupcolors [state=start] \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00]

Re: [NTG-context] Text around a figure in a framedtext

2015-08-09 Thread Fabrice Couvreur
framedtext like the second framedtext ? You have to use \starthanging instead of \placefgure when you’re in a frame. \starttext \startframedtext[width=max] \starthanging[location=right] {\startMPcode draw unitsquare scaled 2cm ; \stopMPcode} \input tufte

Re: [NTG-context] Text around a figure in a framedtext

2015-08-09 Thread Jeong Dal
Dear Otared and Wolfgang, It works fine after replacing the text itself. Thank you for the info. Best regards, Dalyoung ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] Text around a figure in a framedtext

2015-08-08 Thread Fabrice Couvreur
Hi Otared, A small mistake on your part : do not write \input knuth.tex but \input knuth. Then I want the text in the first framedtext wrapped around the figure as in the second. Fabrice 2015-08-08 6:18 GMT+02:00 Otared Kavian ota...@gmail.com: Hi, You should use the same width if you want

Re: [NTG-context] Text around a figure in a framedtext

2015-08-08 Thread Wolfgang Schuster
Fabrice Couvreur mailto:fabrice1.couvr...@gmail.com 8. August 2015 00:49 Hi, Why the text does not move in the first framedtext like the second framedtext? You have to use \starthanging instead of \placefgure when you’re in a frame. \starttext \startframedtext[width=max] \starthanging

Re: [NTG-context] Text around a figure in a framedtext (Wolfgang Schuster)

2015-08-08 Thread Jeong Dal
Dear Wolfgang, You have to use \starthanging instead of \placefgure when you’re in a frame. \starttext \startframedtext[width=max] \starthanging[location=right] {\startMPcode draw unitsquare scaled 2cm ; \stopMPcode} \input tufte \stophanging

Re: [NTG-context] Text around a figure in a framedtext (Wolfgang Schuster)

2015-08-08 Thread Otared Kavian
Hi Jeong, You are right, but probably this is due to the way the source file knuth.tex is encoded: if you replace \input knuth by the text itself, that is by the following Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first

Re: [NTG-context] Text around a figure in a framedtext (Wolfgang Schuster)

2015-08-08 Thread Wolfgang Schuster
Jeong Dal mailto:hak...@me.com 8. August 2015 15:49 Dear Wolfgang, Thank you for letting me know the command “starthanging”. I tried the command “\startfiguretext … \stopfiguretext”, and found that there is no text below the square. \startframedtext[width=\textwidth]{

[NTG-context] Text around a figure in a framedtext

2015-08-07 Thread Fabrice Couvreur
Hi, Why the text does not move in the first framedtext like the second framedtext ? Thank you. Fabrice \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] \definecolor[MyColorA][.75(MyColorB,white)] \defineframedtext [MyText] [frame=off, background=MyFrame, width=\textwidth

Re: [NTG-context] Text around a figure in a framedtext

2015-08-07 Thread Otared Kavian
} \stopframedtext Best regards: OK On 08 Aug 2015, at 00:49, Fabrice Couvreur fabrice1.couvr...@gmail.com wrote: Hi, Why the text does not move in the first framedtext like the second framedtext ? Thank you. Fabrice \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] \definecolor[MyColorA

Re: [NTG-context] embeddedxtable

2015-05-25 Thread Meer, H. van der
in the output are produced by the spaces between the tags (\xmlstrip doesn’t seem to work) and you have to use a combination of \removeunwantedspaces and \ignorespaces to remove them. To center your table this isn’t necessary when you replace \midaligned with a framedtext environment

Re: [NTG-context] embeddedxtable

2015-05-25 Thread Wolfgang Schuster
when you replace \midaligned with a framedtext environment in combination with “location=middle” or use a float command like \placefigure. I think I can reduce the number of places where spaces have to be suppressed. With just 2 \removeunwantedspaces and 1 \ignorespaces I get rid of most

Re: [NTG-context] embeddedxtable

2015-05-25 Thread Meer, H. van der
are produced by the spaces between the tags (\xmlstrip doesn’t seem to work) and you have to use a combination of \removeunwantedspaces and \ignorespaces to remove them. To center your table this isn’t necessary when you replace \midaligned with a framedtext environment in combination with “location

Re: [NTG-context] embeddedxtable

2015-05-24 Thread Wolfgang Schuster
to work) and you have to use a combination of \removeunwantedspaces and \ignorespaces to remove them. To center your table this isn’t necessary when you replace \midaligned with a framedtext environment in combination with “location=middle” or use a float command like \placefigure. \startxmlsetups

Re: [NTG-context] line number overwriting

2015-04-29 Thread Pierre-François Bonnefoi
the command \setuplinenumbering[location=text,align=left,style=\tt,command=\numeroLigneCode,distance=-.5em,width=2em] outside of the definition of the verbatim zone code, it works. This behavior seems rather strange and when it collides with using verbatim zone enclosed in framedtext, it leads

Re: [NTG-context] line number overwriting

2015-04-29 Thread Wolfgang Schuster
. This behavior seems rather strange and when it collides with using verbatim zone enclosed in framedtext, it leads to two line numbering overwriting each other. \defineframed[numeroLigneCode][location=low,width=fit,strut=yes,frame=off,rightframe=on] \definetyping[code][numbering=line,page=yes,bodyfont

Re: [NTG-context] adjust text width mkiv

2015-04-08 Thread Wolfgang Schuster
braces, and changing setlayout. I am considering putting all the text in a framedtext but with the frame suppressed. You mean like the second paragraph in the attached PDF? Wolfgang test.pdf Description: Adobe PDF document

[NTG-context] adjust text width mkiv

2015-04-07 Thread John Culleton
in a framedtext but with the frame suppressed. Any suggestions? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com

Re: [NTG-context] adjust text width mkiv

2015-04-07 Thread Alias 1
with a previous InDesign layout. On one particular page I want to narrow the text width a bit to cause the bottom line to fill the full text width. I have tried adjusting \hsize within braces, and changing setlayout. I am considering putting all the text in a framedtext but with the frame suppressed. Any

Re: [NTG-context] How to Centre Multi-line Verbatim Text

2015-03-14 Thread Wolfgang Schuster
? \setuptyping[TEX] \startTEX RSpec.describe Post, :type = :model do end \stopTEX You can add a framedtext environment around the verbatim text and use “location=middle” to center it. \setuptyping [TEX] [before={\startframedtext[location=middle]}, after=\stopframedtext] \starttext

Re: [NTG-context] How to Centre Multi-line Verbatim Text

2015-03-14 Thread Emmanuel Asante
cannot figure out how to do that. With the code below how can I centre the whole block horizontally on the page? \setuptyping[TEX] \startTEX RSpec.describe Post, :type = :model do end \stopTEX You can add a framedtext environment around the verbatim text and use “location

[NTG-context] textbackground within framedtext

2015-02-18 Thread Christoph Reller
Hi, How can I use textbackground within framedtext. In the following MWE, the background extends beyond the frame of framedtext. Do I have to use a different mechanism? \definetextbackground[bg][ background=color, backgroundcolor=yellow, frame=off] \starttext \startframedtext Before

[NTG-context] How to place text to the right of a brace

2015-02-01 Thread Fabrice Couvreur
=\overlayheight]{\useMPgraphic{accolade}}}] \defineoverlay[rightbrace][\rightaligned{\mirror{\scale[height=\overlayheight]{\useMPgraphic{accolade] \starttext \framedtext[frame=off,loffset=1em,roffset=1em,background={rightbrace}]{ La longueur est \unit{4 centimeter} ; on donne à $L$ la valeur

Re: [NTG-context] How to place text to the right of a brace

2015-02-01 Thread Pablo Rodriguez
with a table or something similar [I’m in a hurry right now]): \starttext \dontleavehmode\framedtext[frame=on,loffset=1em,roffset=1em,background={rightbrace}]{ La longueur est \unit{4 centimeter} ; on donne à $L$ la valeur $4$. La largeur est \unit{3 centimeter} ; on donne à $l$ la valeur $3

Re: [NTG-context] Center two frames

2015-01-14 Thread Wolfgang Schuster
Wolfgang, Why is it better to use a framed text environment? With framedtext you need only one environment to put a frame around your text and center it (you can also set the distance before and after the environment) while the \framed command requires you to center the content with additional

[NTG-context] footnote in framedtext

2014-12-07 Thread Gerben Wierda
I'm using mkii. I have a \footnote in text between \startframedtext and stopframedtext, but the footnote is not typeset, neither at the bottom of the page nor at the bottom of the framed text. Is there a way to do that? G

Re: [NTG-context] footnote in framedtext (Gerben Wierda)

2014-12-07 Thread Sytse Knypstra
Did you issue an \automigrateinserts in your setup? Sytse On 12/07/2014 12:00 PM, Gerben Wierdal wrote: I'm using mkii. I have a \footnote in text between \startframedtext and stopframedtext, but the footnote is not typeset, neither at the bottom of the page nor at the bottom of the framed

Re: [NTG-context] footnote in framedtext (Gerben Wierda)

2014-12-07 Thread Gerben Wierda
On 07 Dec 2014, at 12:33, Sytse Knypstra sytse.knyps...@home.nl wrote: Did you issue an \automigrateinserts in your setup? No. I'm using mkii, I get an unknown command so it's probably mkiv. I solved it partly using \startlocalfootnotes, \placelocalfootnotes, \stoplocalfootnotes in the frame.

[NTG-context] Table and framedtext

2014-12-05 Thread Fabrice Couvreur
Hi, In the following code, I would like columns that contain the figures have a white background. Best regards, Fabrice \definecolor[mycolor][c=0.1, m=0.00, y=0.00, k=0.00] \setupcaptions[number=no] \starttext \startframedtext[ width=\textwidth, frame=on, location=middle,

Re: [NTG-context] Module algorithmic

2014-10-18 Thread Wolfgang Schuster
[H4][c=0.07, m=0.00, y=0.15, k=0.00] \setupfloat [algorithm] [background=color, frame=on, framecolor=H1prime, backgroundcolor=H4, width=0.5\textwidth] You have to put a framedtext environment around the algorithmic environment, you can do this by replacing \setupfloat

Re: [NTG-context] Using \startframedtext with \startcombination

2014-10-01 Thread Wolfgang Schuster
Am 30.09.2014 um 21:52 schrieb Couvreur Fabrice couvreur.fabr...@wanadoo.fr: Hello Wolfgang, Thank you for the answer, but I did not understand everything. I try ti explain it with a few examples. When you text in a framedtext environment context creates a box with the given width (which

Re: [NTG-context] Itemize and framed

2014-08-29 Thread Wolfgang Schuster
\stopframedtext \stoptext In this case framedtext is the better choice but it can be done with framed as well but one has to set values for align and disable the strut, e.g. \framed [align=right,strut=no] {\startitemize … \stopitemize} and when you use MkIV replace \framed

[NTG-context] framedtext and itemize

2014-07-22 Thread Meer, H. van der
I have a question regarding the interplay between framedtext and itemize. Example \startitemize[n]\startitem \startframedtext[left][width=0.5\textwidth]\leavevmode some text \stopframedtext \stopitem\stopitemize The framedtext is put on the next line instead of on the first of the item. [cid

Re: [NTG-context] framedtext and itemize

2014-07-22 Thread Otared Kavian
der h.vanderm...@uva.nl wrote: I have a question regarding the interplay between framedtext and itemize. Example \startitemize[n]\startitem \startframedtext[left][width=0.5\textwidth]\leavevmode some text \stopframedtext \stopitem\stopitemize The framedtext is put on the next line

Re: [NTG-context] framedtext and itemize

2014-07-22 Thread Herbert Voss
Am 22.07.2014 16:12, schrieb Otared Kavian: Maybe you want something like this: \starttext \startitemize[n] \setlocalhsize \item \framed[width=\localhsize,align=right]{Some text.} \item \startframed[width=\localhsize,align=right] Some text. \stopframed \stopitemize \stoptext or \item

Re: [NTG-context] Whitespace within framedtexts

2014-07-13 Thread Aditya Mahajan
: try indenting=yes for indentation. For white space, enclose the settings in a startsetups...stopsetups, and then use the setups=... key for framedtext. Aditya ___ If your question is of interest to others as well

Re: [NTG-context] Whitespace within framedtexts

2014-07-13 Thread Idris Samawi Hamid ادريس سماوي حامد
== See attached. Thanks in advance Untested: try indenting=yes for indentation. For white space, enclose the settings in a startsetups...stopsetups, and then use the setups=... key for framedtext. Thanks Aditya. indenting=yes was a bust but the following works: \startsetups

[NTG-context] No new paragraph after framedtext

2014-07-05 Thread Flavien Lambert
Dear all, I was wondering if there was a way to avoid a new paragraph after a framed text. For example, the following code \starttext \framedtext[width=6em]{abc}\framedtext[width=6em]{abc} \stoptext produces two boxes on top of each other. Is it possible to make them side by side? I could use

Re: [NTG-context] No new paragraph after framedtext

2014-07-05 Thread Wolfgang Schuster
Am 05.07.2014 um 13:07 schrieb Flavien Lambert petit.lep...@gmail.com: Dear all, I was wondering if there was a way to avoid a new paragraph after a framed text. For example, the following code \starttext \framedtext[width=6em]{abc}\framedtext[width=6em]{abc} \stoptext produces two

[NTG-context] boxedcolumns weirdness

2013-12-30 Thread Hans van der Meer
I am typesetting a series of items with boxedcolumns enclose in a framedtext: \startframedtext[width=\makeupwidth,offset=0pt,frame=off,align=tolerant] \startboxedcolumns[n=2,separator=rule] Occasionally it happens that material at the end of the first column is not typeset

[NTG-context] boxedcolumns weirdness

2013-12-29 Thread H. van der Meer
I am typesetting a series of items with boxedcolumns enclose in a framedtext: \startframedtext[width=\makeupwidth,offset=0pt,frame=off,align=tolerant] \startboxedcolumns[n=2,separator=rule] Occasionally it happens that material at the end of the first column is not typeset

[NTG-context] columns

2013-10-03 Thread H. van der Meer
I have some difficulties with columns inside a framedtext. The example below shows that columns does not work inside framedtext, whereas simplecolumns does. However, the latter does not show rules between the columns. Can I have both? Is columns definitely not working here or is it temporarily

Re: [NTG-context] columns

2013-10-03 Thread Wolfgang Schuster
Am 03.10.2013 um 10:21 schrieb H. van der Meer h.vanderm...@uva.nl: I have some difficulties with columns inside a framedtext. The example below shows that columns does not work inside framedtext, whereas simplecolumns does. However, the latter does not show rules between the columns. Can I

Re: [NTG-context] columns

2013-10-03 Thread H. van der Meer
Thanks, But I think mixedcolumns has to solve a problem width the width of the frametext. Whereas boxedcolumns honors the width of the enclosing framedtext, mixedcolumns does not. See the example. % NOT OK WIDTH NOT RESPECTED \startframedtext[width=.8\makeupwidth,align=verytolerant

Re: [NTG-context] columns

2013-10-03 Thread Wolfgang Schuster
Am 03.10.2013 um 12:02 schrieb H. van der Meer h.vanderm...@uva.nl: Thanks, But I think mixedcolumns has to solve a problem width the width of the frametext. Whereas boxedcolumns honors the width of the enclosing framedtext, mixedcolumns does not. See the example. Boxedcolumns

Re: [NTG-context] columns

2013-10-03 Thread H. van der Meer
If I remember well, framedtext sets a localhsize for the width of its content. I guess that is why boxedcolumns stays within the width specified. But is there a specific reason why mixedcolumns in general does not? Hans van der Meer On 3 okt. 2013, at 12:07, Wolfgang Schuster schuster.wolfg

Re: [NTG-context] columns

2013-10-03 Thread Wolfgang Schuster
Am 03.10.2013 um 12:26 schrieb H. van der Meer h.vanderm...@uva.nl: If I remember well, framedtext sets a localhsize for the width of its content. I guess that is why boxedcolumns stays within the width specified. But is there a specific reason why mixedcolumns in general does

Re: [NTG-context] columns

2013-10-03 Thread Hans Hagen
On 10/3/2013 12:35 PM, Wolfgang Schuster wrote: Am 03.10.2013 um 12:26 schrieb H. van der Meer h.vanderm...@uva.nl: If I remember well, framedtext sets a localhsize for the width of its content. I guess that is why boxedcolumns stays within the width specified. But is there a specific

Re: [NTG-context] columns

2013-10-03 Thread luigi scarso
On Thu, Oct 3, 2013 at 6:55 PM, Hans Hagen pra...@wxs.nl wrote: On 10/3/2013 12:35 PM, Wolfgang Schuster wrote: Am 03.10.2013 um 12:26 schrieb H. van der Meer h.vanderm...@uva.nl: If I remember well, framedtext sets a localhsize for the width of its content. I guess that is why

Re: [NTG-context] Setting `before` option of chapter breaks header text

2013-09-03 Thread Wolfgang Schuster
between the rule and the heading which isn’t the case with framedtext where the whole block is unbreakable. I used `before` (probably in the wrong way ;-) ) to add more space above each chapter title. How to do this without `before`? Controlling the space before and after the heading

Re: [NTG-context] Setting `before` option of chapter breaks header text

2013-09-03 Thread Michael Scholtz
which works but also with side effects because allow TeX to break the page between the rule and the heading which isn’t the case with framedtext where the whole block is unbreakable. I used `before` (probably in the wrong way ;-) ) to add more space above each chapter title. How to do

[NTG-context] question concerning \setupalign \setuptolerance

2013-08-30 Thread Christian Prim
working \NC \setupalign[hz,hanging] \setuptolerance[horizontal,stretch] \input knuth \NC\NR \stoptabulate \subject{Frame} Framedtext resets align/tolerance: \startframedtext[width=0.6\textwidth] aling/tolerance not working \input tufte \stopframedtext \startframedtext[width=0.6\textwidth

Re: [NTG-context] question concerning \setupalign \setuptolerance

2013-08-30 Thread Wolfgang Schuster
Am 30.08.2013 um 17:55 schrieb Christian Prim christian.p...@gmx.ch: Thanks Wolfgang I have tested it (on new beta) but the alignment is still wrong in the tabulate-environment. It's correct in the framedtext-environment, but tolerance is still missing, so that a line is still too long

Re: [NTG-context] question concerning \setupalign \setuptolerance

2013-08-30 Thread Christian Prim
-environment. It's correct in the framedtext-environment, but tolerance is still missing, so that a line is still too long. My new questions: - What about tolerance? Where must I add the keys? The \setupalign command does also accepts “tolerant”, “verytolerant” and “stretch” as keyword which

Re: [NTG-context] question concerning \setupalign \setuptolerance

2013-08-30 Thread Christian Prim
Thanks Wolfgang I have tested it (on new beta) but the alignment is still wrong in the tabulate-environment. It's correct in the framedtext-environment, but tolerance is still missing, so that a line is still too long. My new questions: - What about tolerance? Where must I add the keys? - What

Re: [NTG-context] question concerning \setupalign \setuptolerance

2013-08-30 Thread Christian Prim
Christian Prim christian.p...@gmx.ch: Thanks Wolfgang I have tested it (on new beta) but the alignment is still wrong in the tabulate-environment. It's correct in the framedtext-environment, but tolerance is still missing, so that a line is still too long. My new questions: - What

[NTG-context] framedtext and margin

2013-03-20 Thread H. van der Meer
As can be seen in the following example, within an itemized list the framedtext sticks out to the right, instead of having its right edge aligned with the outer ones.Is there a simple remedy or is it an unwanted effect?I would like the right edges line up perfectly. Hans van der Meer \starttext

Re: [NTG-context] framedtext and margin

2013-03-20 Thread Wolfgang Schuster
Am 20.03.2013 um 19:29 schrieb H. van der Meer h.vanderm...@uva.nl: As can be seen in the following example, within an itemized list the framedtext sticks out to the right, instead of having its right edge aligned with the outer ones. Is there a simple remedy or is it an unwanted effect

Re: [NTG-context] framedtext and margin

2013-03-20 Thread Meer H. van der
:29 schrieb H. van der Meer h.vanderm...@uva.nl: As can be seen in the following example, within an itemized list the framedtext sticks out to the right, instead of having its right edge aligned with the outer ones. Is there a simple remedy or is it an unwanted effect? I would like the right

[NTG-context] Epigraphs (was About Chapter head definition and FunnyFrame)

2013-03-03 Thread Wolfgang Schuster
want, a simple way is to use the framedtext environment which can be positioned on the right margin, complexes solutions are possible but they require more code. \defineframedtext[epigraph][location=right,frame=off,offset=.25ex] \starttext \title{Ward} \startepigraph \input ward \hairline

Re: [NTG-context] block with different formatting per line?

2013-02-06 Thread Aditya Mahajan
\stoptext framedtext already does most of this (except that it makes the paragraphs unbreakable across pages). I don't remember if backgrounds has all the relevant keys. Aditya ___ If your question is of interest

Re: [NTG-context] verbatim boxes

2012-11-26 Thread Wolfgang Schuster
should be short enough to fit in the title frame) Actually the definition of FrameTitle uses a \hbox … It puts the “title” (in the example Zapf (…)”) in the box and not the text. The text itself for the frame is put in a framedtext environment. Wolfgang

Re: [NTG-context] align and location in \setupcombination

2012-10-28 Thread Wolfgang Schuster
} {\externalfigure[dummy][]}{bb} \stopcombination} When there are more combinations in the document I would create a named framedtext to align them. \defineframedtext [centered] [frame=off, width=fit, offset=overlay, location=middle] \useMPlibrary[dum] \starttext

[NTG-context] About Chapter head definition and FunnyFrame

2012-09-02 Thread Jeong Dalyoung
Dear all, I have two questions. 1. I defined \Myheader and use it to shape the chapter head as following: \def\Myheader#1#2{% \framedtext [width=\overlaywidth, height=9\bodyfontsize, background=color, backgroundcolor=lightgray, offset=2pt, strut=no, frame=off, align={middle, middle}] { {\tfb

Re: [NTG-context] Struggling with ConTeXt

2012-08-21 Thread Aditya Mahajan
/an option for framedtexts with overlay to get the max width/height size of the main content + overlays ? Can you create a minimal example showing what you are trying to do? The following example is a bit confusing (where is \MPstring{Content} set? Why use framedtext instead of framed? What

Re: [NTG-context] new beta

2012-07-16 Thread Wolfgang Schuster
. Can you include a check (\ifinner … \fi) to change the columns method from “otr” to “box” when the items are in a box, e.g. in a framedtext environment or a layer. %\setupmixedcolumns[itemgroupcolumns][method=box] \starttext \startframedtext[width=max] \startitemize[columns,two] \startitem

Re: [NTG-context] new beta

2012-07-16 Thread Hans Hagen
now made it into a fast start/stop (no need for argument testing in itemize). Can you include a check (\ifinner … \fi) to change the columns method from “otr” to “box” when the items are in a box, e.g. in a framedtext environment or a layer. Sure, but even better is to do that at the parent

[NTG-context] Confused again :-)

2012-06-07 Thread Bill Meahan
-hand (even) page. 2) How does one put a frame around a margin? Layers? Overlay? \framedtext? 3) Am I correct I can use the COMMAND parameters in \setuplayout to specify there is some text to use as a marginal in the (chapter | section) header (using \margintext, I presume)? I am working

Re: [NTG-context] Confused again :-)

2012-06-07 Thread Wolfgang Schuster
on a right-hand (odd) page and the left margin on a left-hand (even) page. Change the layout with \setuplayout and enable doublesided with \setuppagenumbering. 2) How does one put a frame around a margin? Layers? Overlay? \framedtext? You can use \setupbackgrounds. 3) Am I correct I can use

Re: [NTG-context] Confused again :-)

2012-06-07 Thread Rogers, Michael K
on a right-hand (odd) page and the left margin on a left-hand (even) page. 2) How does one put a frame around a margin? Layers? Overlay? \framedtext? 3) Am I correct I can use the COMMAND parameters in \setuplayout to specify there is some text to use as a marginal in the (chapter | section

[NTG-context] Two columns type problem

2012-02-13 Thread Martin Bruchanov
\MyChapter#1#2{ %2 -- text, 1 -- cislo \framedtext[width=\overlaywidth, offset=10pt, strut=no, frame=off, % bottomframe=on, align=right]{% \vbox{#2}\vbox{#1} } } \def\Cislovani#1{ \framed[background={NumberDeco

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

2012-01-18 Thread luigi scarso
% {\hfill\kern-1em\it#1\hfill\strut\crlf\strut\hfill\hphantom{\tf#3}\framedtext[frame=off,offset=overlay,align=middle,style=TOCstyleBF]{#2}\hfill\tf#3} % here the interlinespace is ignored % {\hfill\kern-1em\it#1\hfill\strut\crlf\strut\hfill\hphantom{\tf#3}\framedtext[frame=off,offset=overlay

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] color conversion causes error with MPgraphic

2012-01-08 Thread Steffen Wolfrum
[height=\overlayheight]{\useMPgraphic{Test}}}] \starttext \framedtext[frame=off,loffset=1em,roffset=1em,background=TTest]{\input knuth\par} \setupTABLE[frame=off,offset=1ex] \setupTABLE[row][each][align={middle,lohi}] \bTABLE \bTR \bTD[nr=3,background=TTest] drei \eTD \eTR \eTABLE \stoptext

[NTG-context] framedtext in itemize

2012-01-04 Thread Hans van der Meer
Why does framedtext extends to the right in \itemize? Shouldn't the width be reduced by the extend of the item-shift? Isn't that the idea behind the fit-parameter. It wouldn't be a problem to calculate a reduced width, but how can I access the marginshift caused by the item? A minimal example

Re: [NTG-context] framedtext in itemize

2012-01-04 Thread Wolfgang Schuster
Am 04.01.2012 um 16:25 schrieb Hans van der Meer: Why does framedtext extends to the right in \itemize? Shouldn't the width be reduced by the extend of the item-shift? Isn't that the idea behind the fit-parameter. It wouldn't be a problem to calculate a reduced width, but how can I

Re: [NTG-context] framedtext in itemize

2012-01-04 Thread Meer, H. van der
That is it! Thanks. Hans van der Meer On 4 jan. 2012, at 17:09, Wolfgang Schuster wrote: Am 04.01.2012 um 16:25 schrieb Hans van der Meer: Why does framedtext extends to the right in \itemize? Shouldn't the width be reduced by the extend of the item-shift? Isn't that the idea behind

Re: [NTG-context] Broken textbackground

2011-12-19 Thread Otared Kavian
Hi Hans, If this can be of any help for you to localize the origin of the bug with the latest beta (ConTeXt ver: 2011.12.18 15:57 MKIV), I would like to report that when a \framedtext is used by its own, the result is as expected, while when it follows \startbackground …. \stopbackground

Re: [NTG-context] Broken textbackground

2011-12-19 Thread Hans Hagen
On 19-12-2011 09:14, Otared Kavian wrote: Hi Hans, If this can be of any help for you to localize the origin of the bug with the latest beta (ConTeXt ver: 2011.12.18 15:57 MKIV), I would like to report that when a \framedtext is used by its own, the result is as expected, while when

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

2011-11-23 Thread Hans Hagen
) Understood. Do you have a more appropriate version of what I was trying to do using textbackgounds instead? it depends .. if you have small boxes, you as well use a regular framedtext (with background) or when you span pages you can use textbackgrounds ... the backgrounds you use is some

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

2011-11-23 Thread Kip Warner
On Wed, 2011-11-23 at 11:03 +0100, Hans Hagen wrote: it depends .. if you have small boxes, you as well use a regular framedtext (with background) or when you span pages you can use textbackgrounds ... the backgrounds you use is some compromise Hmm, I am using boxes that sometimes span

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

2011-11-23 Thread Hans Hagen
On 23-11-2011 20:02, Kip Warner wrote: On Wed, 2011-11-23 at 11:03 +0100, Hans Hagen wrote: it depends .. if you have small boxes, you as well use a regular framedtext (with background) or when you span pages you can use textbackgrounds ... the backgrounds you use is some compromise Hmm, I am

[NTG-context] TextBackground text area

2011-11-23 Thread Kip Warner
Hey folks, I've been pulling my hair out for hours, as I can't seem to figure out how to set the margin with and height for a textbackground area so the text doesn't start immediately at the left frame line and go to the right frame line. I am using this: \definetextbackground[FramedText

Re: [NTG-context] TextBackground text area

2011-11-23 Thread Aditya Mahajan
this: \definetextbackground[FramedText][ location=paragraph, color=color_text, background=color, backgroundcolor=colour_page, framecolor=colour_text, leftoffset=1.0\bodyfontsize, rightoffset=1.0\bodyfontsize, before={ \blank

Re: [NTG-context] defineframed has no effect

2011-11-14 Thread Andreas Harder
,style={\it}] \starttext \myFrame{Hello} \stoptext Is it on purpose? IIRC, the name of the key is foregroundstyle. Or use \framedtext{…} \defineframedtext[myFrame][frame=on,align=middle,style=\it,width=fit] Andreas

Re: [NTG-context] Hello world title not flush left - beginner question?

2011-11-03 Thread Wolfgang Schuster
to add something after the heading. When you want to use it only one time the above is overkill but it’s useful when you want a epigraph for each chapter. With \doifelsebuffer I can check if there the user set a epigraph and only when there is one i want the framedtext but I have to reset the buffer

Re: [NTG-context] Hello world title not flush left - beginner question?

2011-11-03 Thread Alan Braslau
On Thu, Nov 03, 2011 at 03:33:48PM +0100, Wolfgang Schuster wrote: How is a framedtext more logical than a dictum or epigraph environment, with my solution you can also change the definition of the code to place the epigraph format without any change in the text while your framed text

Re: [NTG-context] Hello world title not flush left - beginner question?

2011-11-03 Thread Wolfgang Schuster
Am 03.11.2011 um 15:51 schrieb Alan Braslau: On Thu, Nov 03, 2011 at 03:33:48PM +0100, Wolfgang Schuster wrote: How is a framedtext more logical than a dictum or epigraph environment, with my solution you can also change the definition of the code to place the epigraph format without any

Re: [NTG-context] solved-how to make \getmarking[title] show using default font size?

2011-07-26 Thread Wolfgang Schuster
the definition as follows: \def\Mytitle#1{% \framedtext [width=\overlaywidth, height=5\bodyfontsize, background=color, backgroundcolor=lightgray, offset=2pt, strut=no, frame=off, align=middle, top=\vss, bottom=\vss]{ \sans #1} } \setuphead[title][textcommand=\Mytitle] This makes everything

[NTG-context] solved-how to make \getmarking[title] show using default font size?

2011-07-25 Thread Jeong Dalyoung
Dear all, For the header text, I used \getmarking as follows: \setupheadertexts[][{\getmarking[{\v!title}]}] * This problem comes from my setting which is as follows: \title{\ss\bf\tfb Title} I changed it by using the definition as follows: \def\Mytitle#1{% \framedtext [width

Re: [NTG-context] changing number of columns

2011-07-05 Thread Willi Egger
As Hraban mentions it might be best to place the two tables with \placefigure + startcombination .. \stopcombination. If you want to stick to the columnsets and this is for this single page only, then you could place the spanning text in a \framedtext. The placefigure command must be place

Re: [NTG-context] changing number of columns

2011-07-05 Thread Bernd Kosubek
the spanning text in a \framedtext. The placefigure command must be place right after the \startcolumnset command. This you could place with \placefigure like this: \placefigure [btlr] [] {none} {\offset[y=-7cm]{\framedtext[width=\makeupwidth,offset=0pt,frame=off] {Zwar

Re: [NTG-context] changing number of columns

2011-07-05 Thread Willi Egger
.. \stopcombination. If you want to stick to the columnsets and this is for this single page only, then you could place the spanning text in a \framedtext. The placefigure command must be place right after the \startcolumnset command. This you could place with \placefigure like

Re: [NTG-context] Chapter name in new line

2011-06-04 Thread luigi scarso
] \starttext \chapter{Foo Bar} \stoptext Marco If you don't want to use framedtext (cfr wolfgang) \setuplabeltext [en] [chapter=Chapter~] \def\MyChapter#1#2{\vbox{#1\blank#2}} \setuphead [chapter] [command=\MyChapter] \starttext \chapter{Foo Bar} \stoptext

Re: [NTG-context] Chapter name in new line

2011-06-04 Thread Marco
If you don't want to use framedtext (cfr wolfgang) \setuplabeltext [en] [chapter=Chapter~] \def\MyChapter#1#2{\vbox{#1\blank#2}} \setuphead [chapter] [command=\MyChapter] \starttext \chapter{Foo Bar} \stoptext Thanks to both of you. Added to the wiki. Marco

<    1   2   3   4   5   >