[NTG-context] Placing a figure with a command for the file in mkiv

2018-01-27 Thread Otared Kavian
help: OK %%% begin dynamic-filename-figure.tex \starttext \define\authorpicture{hacker.jpg} \placefigure[here][fig:Myfigure]{} {\externalfigure[\authorpicture]} \stoptext %%% end dynamic-filename-figure.tex

[NTG-context] Bug in interaction and button?

2018-01-27 Thread Otared Kavian
].\par \input knuth.tex \page \placefigure [here] [fig:#1] {} {\button[offset=overlay]{\externalfigure[cow.pdf]}[PreviousJump]} \input ward.tex \page} \stoptext %% end go-back-tofig.tex ___ If your

Re: [NTG-context] Bug? numberstopper in references

2018-01-16 Thread Otared Kavian
] \stopplacefigure \placefigure[here][photo]{This is a cow}{\externalfigure[cow][width=2in]} Take a look at \at{table}[tab:1] below. \placetable[here][tab:1]{This is a table}{ \starttable[|c|c|] \HL \NC \bf Year \NC \bf Number of ships \NC\SR \HL \NC 1645 \NC 450 \NC\FR \NC 1671 \NC 480 \NC\MR \NC 1676 \NC 500

Re: [NTG-context] Bug: Paragraph formatting on new page after placefigure

2018-01-12 Thread Hans Hagen
On 1/12/2018 6:44 PM, Rik Kabel wrote: Bump. This has come up a few times, but never resolved. Is there the possibility of an option for placefigure to discard remaining depth at a page break? it's more a aside effect of operating at the edge of the page (i'm reluctant to c

Re: [NTG-context] Bug: Paragraph formatting on new page after placefigure

2018-01-12 Thread Rik Kabel
Bump. This has come up a few times, but never resolved. Is there the possibility of an option for placefigure to discard remaining depth at a page break? -- Rik On 2015-08-25 10:14, Rik Kabel wrote: On 2015-08-25 03:41, Andreas Becker wrote: ConTeXt version: 2015.08.21 19:57 In the PDF

Re: [NTG-context] vertical alignment of images in Natural Table

2017-10-28 Thread Wolfgang Schuster
image should be horizontally and vertically centered within the space after the text. Exercise text and image size vary somewhat, so a fixed placement is not possible. I have tried \vfill, but it seems to have no effect in a Natural Table. Similarly, \placefigure has not worked for me. Yo

Re: [NTG-context] vertical alignment of images in Natural Table

2017-10-28 Thread John Kitzmiller
within the space after the text. Exercise text and image size vary somewhat, so a fixed placement is not possible. I have tried \vfill, but it seems to have no effect in a Natural Table. Similarly, \placefigure has not worked for me. As basic layout I am using a Natural Table (4 x 4 cells per

Re: [NTG-context] Caption location in floatcombination

2017-10-23 Thread Christoph Reller
p while the >> captions "Two" and "Two" are placed on the bottom. Is there a way to setup >> the locations of the captions of floats within a floatcombination? In this >> particular example, the goal is, that the captions "Two" and "Two" are >> pl

[NTG-context] vertical alignment of images in Natural Table

2017-10-18 Thread Martin Althoff
image should be horizontally and vertically centered within the space after the text. Exercise text and image size vary somewhat, so a fixed placement is not possible. I have tried \vfill, but it seems to have no effect in a Natural Table. Similarly, \placefigure has not worked for me. As basic

[NTG-context] vertical alignment of images in Natural Table

2017-10-18 Thread Martin Althoff
. Exercise text and image size vary somewhat, so a fixed placement is not possible. I have tried \vfill, but it seems to have no effect in a Natural Table. Similarly, \placefigure has not worked for me. As basic layout I am using a Natural Table (4 x 4 cells per page, 12 pages), maybe not the best

Re: [NTG-context] Strange behavior with TikZ

2017-10-10 Thread luigi scarso
on \math{f(x)=g(x)}},sectionsegments=section,color=magenta] \placefigure[none,right]{}{ : : \stopsection \stoptext -- luigi ___ If your question is of interest to others as well, please add an entry to the Wik

Re: [NTG-context] Strange behavior with TikZ

2017-10-07 Thread Fabrice Couvreur
Hi Hans Sorry to insist, but I need to correct this anomaly for my documents that I give to students. If I compile with Context Standalone, it does not work, but maybe I do not do what you are suggesting : \placefigure[none,right]{}{% \hbox{\switchtobodyfont[8pt] Thanks Fabrice 2017-10-05 22

Re: [NTG-context] Strange behavior with TikZ

2017-10-05 Thread Fabrice Couvreur
HI Hans, like this ? \placefigure[none,right]{}{ \hbox{\switchtobodyfont[8pt]% Fabrice 2017-10-05 22:35 GMT+02:00 Hans Hagen : > On 10/5/2017 7:26 PM, Fabrice Couvreur wrote: > > If I put any image, there is no problem : the title of the section is in >> color and the text in b

Re: [NTG-context] Strange behavior with TikZ

2017-10-05 Thread Hans Hagen
On 10/5/2017 7:26 PM, Fabrice Couvreur wrote: If I put any image, there is no problem : the title of the section is in color and the text in black. With a graphic made with TikZ, the title and the text are in color. looks ok here \placefigure[none,right]{}{ \hbox{\switchtobodyfont[8pt

[NTG-context] Strange behavior with TikZ

2017-10-05 Thread Fabrice Couvreur
=magenta] \placefigure[none,right]{}{ \hbox{\switchtobodyfont[8pt] \starttikzpicture[/pgf/declare function={f(\x)=\x^2-3;},/pgf/declare function={g(\x)=-\x^2+2*\x+1;}] \startaxis[ restrict x to domain=-3:3, xmax=3, xmin=-3, restrict y to domain=-5:4, ymax=4, ymin=-5, x=1cm, y=0.5cm, axis x line

Re: [NTG-context] Bug in startcombination

2017-08-14 Thread Hans Hagen
ion} [………] Here is the example: %%% begin bug-combination.tex \setupcolors[state=start] \useMPlibrary[dum] \starttext This is our first picture. \placefigure[none]{}{\externalfigure[dummy][width=6cm]} \blank This is a combination of 3 figures on two lines \placefigure[none]{} { \midalig

[NTG-context] Bug in startcombination

2017-08-14 Thread Otared Kavian
bug-combination.tex \setupcolors[state=start] \useMPlibrary[dum] \starttext This is our first picture. \placefigure[none]{}{\externalfigure[dummy][width=6cm]} \blank This is a combination of 3 figures on two lines \placefigure[none]{} { \midaligned{ \startcombination[

Re: [NTG-context] \setupcombinations and the after-key

2017-08-09 Thread Pablo Rodriguez
,after={\blank[10mm]}] Please, update the wiki, but first consider this: \setupexternalfigures[location={local, default}] \setupcombination [distance=5em, inbetween={\blackrule[width=.5\textwidth, color=red, height=1em]}, after={\blackrule[width=.5\textwidth, color=gre

Re: [NTG-context] Couple of questions

2017-07-31 Thread Gerion Entrup
> >> Another sample that shows the problem: > >> > >>\mainlanguage[de] > >> \setupexternalfigures[location=default] > >>\setuphead[subsection][number=no] > >> \setupcaptions[prefixsegments=chapter] > >>\setuphead[subsubsection][

Re: [NTG-context] Couple of questions

2017-07-30 Thread Jan Willem Flamma
e prefixsegments, but not >> if it isn’t. >> >> Another sample that shows the problem: >> >>\mainlanguage[de] >>\setupexternalfigures[location=default] >>\setuphead[subsection][number=no] >> \setupcaptions[prefixsegments=chapter] >

Re: [NTG-context] Couple of questions

2017-07-30 Thread Gerion Entrup
ns[prefixsegments=chapter] > \setuphead[subsubsection][number=yes] > > \starttext > > \chapter[title=Kapitel] > \placefigure{Eine Kuh}{\externalfigure[cow.pdf][scale=250]} > > \section[title=Abschnitt] > \placefigure{Eine Kuh}{\externalfigure[cow.

Re: [NTG-context] Couple of questions

2017-07-29 Thread Pablo Rodriguez
efixsegments=chapter] \setuphead[subsubsection][number=yes] \starttext \chapter[title=Kapitel] \placefigure{Eine Kuh}{\externalfigure[cow.pdf][scale=250]} \section[title=Abschnitt] \placefigure{Eine Kuh}{\externalfigure[cow.pdf][scale=250]} \subsection[title=Hier gibt’s

Re: [NTG-context] source code and result side by side

2017-07-29 Thread Pablo Rodriguez
getbuffer[setups, example-1]} \stoptext \placeontopofeachother has the same feature. This causes that \placefigure cannot be used. Is there now hay to avoid the forced horizontal mode on both sides? Many thanks for your help, Pa

Re: [NTG-context] Couple of questions

2017-07-28 Thread Gerion Entrup
the prefix is ignored. For example there are 5 figures in > > chapter 2, then the captions of the figures (the text is in German) are: > > Abbildung 2.1 foo > > Abbildung 2.2 bar > > Abbildung 3foobar > > Abbildung 4otherfoo > > Abbildung 5

Re: [NTG-context] Couple of questions

2017-07-28 Thread Pablo Rodriguez
foo > Abbildung 2.2 bar > Abbildung 3foobar > Abbildung 4otherfoo > Abbildung 5lastfoo > > Is there anything, I can do, to prevent this? I cannot reproduce the problem you mention: \mainlanguage[de] \starttext \dorecurse{5}{\chapter{Kapitel} \placefigure{E

Re: [NTG-context] figure numbering S3, S4, S6, ...

2017-07-13 Thread Henri Menke
m] \stopplacefigure \startplacefigure[title={Another Cow}]   \externalfigure[cow][width=2cm] \stopplacefigure \stoptext > > Minimal example: > > \setuppapersize[A6] > \setupexternalfigures[location=default] > > \setupcaptions[way=bytext] > > \placefigure >

[NTG-context] No cross-references in scrollmode

2017-07-13 Thread Andreas Becker
Hello, when I pipe a file to context, it cannot resolve references, e. g. to figures or chapters: cat source.tex | context --pipe Instead of the number, "??" is printed in the PDF document. A minimal example is: \ref[reference] \placefigure[][reference]{}{} The command line outp

[NTG-context] figure numbering S3, S4, S6, ...

2017-07-13 Thread Thomas Möbius
] \setupexternalfigures[location=default] \setupcaptions[way=bytext] \placefigure {Cow} {\externalfigure[cow][width=2cm]} \placefigure {Another Cow} {\externalfigure[cow][width=2cm]} ___ If your question is of

Re: [NTG-context] Colored rule using MPgraphic

2017-05-17 Thread Hans Hagen
} withpen pencircle scaled \MPvar{linewidth} ; endfor ; endgroup; \stopuseMPgraphic \useMPlibrary[dum] \starttext \startExample {\bf Example - Title\hfill{Subtitle}} \blank \placefigure [force,none][]{} {\externalfigure[dum][width=0.3\textwidth]} \input knuth \stopExample

[NTG-context] Colored rule using MPgraphic

2017-05-17 Thread Jan Willem Flamma
\startExample {\bf Example - Title\hfill{Subtitle}} \blank \placefigure [force,none][]{} {\externalfigure[dum][width=0.3\textwidth]} \input knuth \stopExample \stoptext ___ If your question is of interest to others

Re: [NTG-context] Text around a figure

2017-04-15 Thread Fabrice Couvreur
blablablablabla > ## blablablablablablablabla >Fig blablablablablablablabla > ## blablablablablablablabla > > > \starttext > > \placefigure [left,none] {} {\externalfigure[rafting.jpg][width=4cm]} > \input knuth > > > > \stoptext >

Re: [NTG-context] Text around a figure

2017-04-14 Thread Rik Kabel
On 2017-04-14 10:36, Fabrice Couvreur wrote: Is it possible that the first line of text starts at the top of the figure? Blablablablablablablablablablablabla ## blablablablablablablabla Fig blablablablablablablabla ## blablablablablablablabla \starttext \placefigure [left,none

[NTG-context] Text around a figure

2017-04-14 Thread Fabrice Couvreur
Is it possible that the first line of text starts at the top of the figure? Blablablablablablablablablablablabla ## blablablablablablablabla Fig blablablablablablablabla ## blablablablablablablabla \starttext \placefigure [left,none] {} {\externalfigure[rafting.jpg][width

[NTG-context] float pages again

2017-04-05 Thread Florian Grammel
,bottom,page}] \starttext \section{First Section} \input zapf \placefigure {Blah} {\externalfigure[figurename][width=5.0in, height=3.0in]} \placefigure {Blah} {\externalfigure[figurename][width=5.0in, height=3.5in]} \placefigure {Blah} {\externalfigure[figurename][width=5.0in, height=3.5in]} \place

Re: [NTG-context] Textbackground issue with margin pictures

2017-04-03 Thread Hans Hagen
picture at the side of a textbackground, then the textbackground is suppressed for the entire height of the margin picture. Here is a minimal: \setuplayout [ leftmargin=0mm, rightmargin=45mm, height=fit, width=fit, ] \definetextbackground [test] \starttext \placefigure [margin

Re: [NTG-context] Textbackground issue with margin pictures

2017-04-03 Thread Tom
argin=45mm, >> height=fit, >> width=fit, >> ] >> >> \definetextbackground [test] >> >> \starttext >> >> \placefigure [margin]{}{} >> >> \starttextbackground [test] >> \dorecurse{3}{\readfile{ward}{}{}} >> \

Re: [NTG-context] Textbackground issue with margin pictures

2017-04-03 Thread Hans Hagen
for the entire height of the margin picture. Here is a minimal: \setuplayout [ leftmargin=0mm, rightmargin=45mm, height=fit, width=fit, ] \definetextbackground [test] \starttext \placefigure [margin]{}{} \starttextbackground [test] \dorecurse{3}{\readfile{ward}{}{}} \stoptextbackground

[NTG-context] Textbackground issue with margin pictures

2017-04-02 Thread Tom
picture. Here is a minimal: \setuplayout [ leftmargin=0mm, rightmargin=45mm, height=fit, width=fit, ] \definetextbackground [test] \starttext \placefigure [margin]{}{} \starttextbackground [test] \dorecurse{3}{\readfile{ward}{}{}} \stoptextbackground \stoptext With the ConTeXt Current

[NTG-context] \setupinteraction[focus=standard] not working

2017-01-20 Thread Christoph Reller
,default}] \setupinteraction[state=start, focus=standard] \starttext \about[figure]. \page \placefigure[][figure]{Figure}{\externalfigure[cow.pdf]} \page \input tufte \stoptext The link text on page 1 in the resulting PDF correctly displays "Figure" and the overlayed PDF annotation has a

Re: [NTG-context] floatcombination alignment has changed?

2017-01-04 Thread Christoph Reller
Hi, I have come up with a simpler MWE which shows the problem more explicitly: \setupcaptions[number=no] \starttext \startplacefigure[location=right] \startfloatcombination \placefigure{A Cow}{\externalfigure[cow.pdf]} \placefigure{Another Cow}{\externalfigure[cow.pdf

Re: [NTG-context] Strange numbers appear (when figures are moved in columnsets)

2016-12-28 Thread Mikael P. Sundqvist
d. Is this a bug? > > /Mikael (yes, I'm using a late standalone) > > %% start of example > \setuplayout[ > grid=yes, > ] > > \showgrid > > \definecolumnset[example][n=2] > > \starttext > > \startcolumnset[example] > \dorecurse{2}{\input knuth \par}

[NTG-context] Strange numbers appear (when figures are moved in columnsets)

2016-12-28 Thread Mikael P. Sundqvist
ttext \startcolumnset[example] \dorecurse{2}{\input knuth \par} \placefigure[btlr]{Caption}{\blackrule[width=\textwidth,height=4cm]} \input knuth \stopcolumnset \stoptext %% end of example ctx-listexample20.pdf Description: Adobe PDF doc

Re: [NTG-context] Different column modes and NAW

2016-12-19 Thread Mikael P. Sundqvist
tspans, I left them out since I think this simpler document must work first) I'm very happy to look at it. Also, the placement options for \placefigure seem to be ignored (try for example bottom). Are they not implemented yet? Best regards, Mikael % start of example \usemodule[newcolumnsets]

[NTG-context] floatcombination alignment has changed?

2016-12-08 Thread Jeong Dal
] \starttext \placefigure{}{ \startcombination[2*1] {\externalfigure[cow.pdf]}{} {\externalfigure[cow.pdf]}{} \stopcombination} \stoptext Best regards, Dalyoung ___ If your question is of interest to others

Re: [NTG-context] grid snapping problem

2016-12-07 Thread Csikos Bela
main text lines >>> should be aligned to grid lines but figure caption text should not. >>> >>> I have this code: >>> >>> \setuplayout[grid=yes] >>> \showgrid >>> >>> \setupcaptions[width=fit,align=last,headstyle={\ss\bfx},style={

[NTG-context] floatcombination alignment has changed?

2016-12-07 Thread Christoph Reller
Hi, In recent versions of ConTeXt, floatcombinations are not placed centered by default anymore. Consider the following MWE in which two cows are placed side by side: \placefigure{}{ \startfloatcombination \placefigure{}{\externalfigure[cow.pdf]} \placefigure{}{\externalfigure[cow.pdf

Re: [NTG-context] grid snapping problem

2016-12-06 Thread Henri Menke
; \showgrid >> >> \setupcaptions[width=fit,align=last,headstyle={\ss\bfx},style={\ss\tfx}] >> >> \starttext >> \subsection{Subsection title} >> \input dawkins >> \input dawkins >> >> %startlinecorrection >> \startbaselinecorrection \

Re: [NTG-context] grid snapping problem

2016-12-06 Thread Csikos Bela
> >\starttext >\subsection{Subsection title} >\input dawkins >\input dawkins > >%startlinecorrection >\startbaselinecorrection \setuplocalinterlinespace[line=2.2ex] >\placefigure[][]{\input zapf >}{\framed[width=0.6\textwidth,height=10ex]{figure}} >\stopbaselinecor

Re: [NTG-context] hbox after \page[disable]

2016-12-06 Thread Michael Eidenbenz
; any further suggestions how I can solve this issue? >>> >>> thanks Michael >>> >>> >>> >>>> Am 04.12.2016 um 18:13 schrieb Hans Hagen : >>>> >>>> On 12/4/2016 2:12 PM, Michael Eidenbenz wrote: >>>

Re: [NTG-context] hbox after \page[disable]

2016-12-05 Thread Hans Hagen
ge[disable] pass. What can I do to avoid this hbox? \def\Figure#1{\placefigure[location={page,none}]{}{#1}} Thanks Michael \enabletrackers [visualizers.hbox] \useMPlibrary[dum] \setuppagenumbering [alternative=doublesided] \definelayout[odd][width=10cm] \definelayout[even][width=15cm]

Re: [NTG-context] hbox after \page[disable]

2016-12-05 Thread Michael Eidenbenz
This is becaus the hbox right below of the figure. >>> I think it is placed during the \page[disable] pass. >>> >>> What can I do to avoid this hbox? >> >> \def\Figure#1{\placefigure[location={page,none}]{}{#1}} >> >> >>> Thanks Michael >&

Re: [NTG-context] hbox after \page[disable]

2016-12-04 Thread Michael Eidenbenz
aced during the \page[disable] pass. >> >> What can I do to avoid this hbox? > > \def\Figure#1{\placefigure[location={page,none}]{}{#1}} > > >> Thanks Michael >> >> >> \enabletrackers >> [visualizers.hbox] >> >> \useMPlibra

Re: [NTG-context] hbox after \page[disable]

2016-12-04 Thread Hans Hagen
the figure. I think it is placed during the \page[disable] pass. What can I do to avoid this hbox? \def\Figure#1{\placefigure[location={page,none}]{}{#1}} Thanks Michael \enabletrackers [visualizers.hbox] \useMPlibrary[dum] \setuppagenumbering [alternative=doublesided] \definelayout[odd

[NTG-context] grid snapping problem

2016-12-02 Thread Csikos Bela
\subsection{Subsection title} \input dawkins \input dawkins %startlinecorrection \startbaselinecorrection \setuplocalinterlinespace[line=2.2ex] \placefigure[][]{\input zapf }{\framed[width=0.6\textwidth,height=10ex]{figure}} \stopbaselinecorrection %stoplinecorrection \subsection{Subsection title

Re: [NTG-context] error with floats in xtables with defined width

2016-11-29 Thread Michael Eidenbenz
sorry, but what does "mlv" stand for? > On 29 Nov 2016, at 11:23, Hans Hagen wrote: > > On 11/29/2016 11:01 AM, Michael Eidenbenz wrote: >> \vbox{\placefigure[][]{}{\externalfigure[][]}} >> >> does the trick (but why?) > > because \placefigure is

Re: [NTG-context] error with floats in xtables with defined width

2016-11-29 Thread Hans Hagen
On 11/29/2016 11:01 AM, Michael Eidenbenz wrote: \vbox{\placefigure[][]{}{\externalfigure[][]}} does the trick (but why?) because \placefigure is a mlv command i.e. it is not supposed to be used in a box On 29 Nov 2016, at 09:29, Michael Eidenbenz wrote: Hello, this M(not)WE gives me

Re: [NTG-context] error with floats in xtables with defined width

2016-11-29 Thread Michael Eidenbenz
\vbox{\placefigure[][]{}{\externalfigure[][]}} does the trick (but why?) > On 29 Nov 2016, at 09:29, Michael Eidenbenz wrote: > > Hello, > > this M(not)WE gives me the following error: > > You can't use `\prevdepth' in restricted horizontal mode &g

[NTG-context] error with floats in xtables with defined width

2016-11-29 Thread Michael Eidenbenz
ads to an error \placefigure[][]{}{\externalfigure[][]} \stopxcell \stopxrow \stopxtable \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillis

[NTG-context] gridline question

2016-11-24 Thread Csikos Bela
es or figure legends? Here is an example: \setuplayout[grid=yes] %\showgrid \setupcaptions[location=bottom,width=fit,align=last,headstyle={\tfxx},style={\tfxx}] \starttext \input ward \input tufte \placefigure{An example figure. \input ward }{\framed[width=0.5\textwidth]{A figure}} \input zapf \sto

Re: [NTG-context] mathsf / mathversions in context

2016-10-16 Thread Wolfgang Schuster
oo automatically? For example if I write \placefigure[here]{Figure title}{\ss\tfxx A B C D \math{E~F~G~}} A B C D is typeset with small fonts but E F G not; it will be huge compared to A B C D. I can't manually scale the math part because it is inserted here by chemfig module and I can'

Re: [NTG-context] mathsf / mathversions in context

2016-10-14 Thread Csikos Bela
list? 3. I found that if I write \definefontfamily [docuf] [mm] [TeX Gyre Pagella Math] before \definefallbackfamily lines, the latter have no effect. Is this normal? Shouldn't the order of definition lines be indifferent? 4. If I write a paragraph with different font size, how can I scale the embedded m

Re: [NTG-context] PDF/A generation

2016-10-13 Thread Henri Menke
CI)] > > %% Tagged PDF > %% method=auto ==> default tags by Adobe > \setupbackend[export=yes] > \setupstructure[state=start,method=auto] > > > \startchapter[title=Testing] > \startcolor[red] > \input knuth > \stopcolor > \input tufte > > \i

Re: [NTG-context] PDF/A generation

2016-10-13 Thread luigi scarso
o] \startchapter[title=Testing] \startcolor[red] \input knuth \stopcolor \input tufte \input knuth \placefigure[middle][fig:foo] {This is an image} {\externalfigure[cow.jpg]} \input tufte \stopchapter \stoptext I'm in a middle of some

Re: [NTG-context] Typset Text on odd pages only

2016-09-11 Thread Michael Eidenbenz
t > >\newtoks \SavedFloats > >\appendtoks >\the\SavedFloats >\global\SavedFloats\emptytoks >\page >\to \everybeforeoutput > >\page[right] > >\dorecurse{100}{ >\input tufte >\pa

Re: [NTG-context] Typset Text on odd pages only

2016-09-08 Thread Hans Hagen
dtoks \placefigure[here]{}{} \to \SavedFloats \input ward \par } \stoptext better is to hook it into the otr (flush spreads) and collect floats differently so that the output routine can flush only as much as can be on one page i can't make time now to

Re: [NTG-context] Bug with \underbar and \placefigure[right]

2016-09-08 Thread Wolfgang Schuster
Florian Leupold <mailto:fleup...@posteo.net> 8. September 2016 um 13:49 Dear list, I would like to report a bug: When \underbar is used for the first word of a paragraph in conjunction with \placefigure[right], the text overwrites the figure. MNWE: \setupexternalfigures[order={pdf,p

[NTG-context] Bug with \underbar and \placefigure[right]

2016-09-08 Thread Florian Leupold
Dear list, I would like to report a bug: When \underbar is used for the first word of a paragraph in conjunction with \placefigure[right], the text overwrites the figure. MNWE: \setupexternalfigures[order={pdf,png,jpg}, location={local,global,default}] \starttext \placefigure[right, none

Re: [NTG-context] Indentation after margin float with caption

2016-09-06 Thread Mikael P. Sundqvist
then the > next paragraph is indented. Otherwise not. Is it a bug or a feature? > > Best regards, Mikael > > \setupindenting[yes,medium] > > \setupfloats[indentafter=yes] > > \starttext > > \input tufte > > \placefigure[outermargin,middle]{}{\blackrule[width=1cm,h

Re: [NTG-context] insert pagebreak in toc (MkIV)

2016-09-06 Thread Robert Blackstone
z > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] bug in latest beta? > Message-ID: > Content-Type: text/plain; charset=utf-8 > > On 09/05/2016 04:44 PM, luigi scarso wrote: >> On Mon, Sep 5, 2016 at 4:33 PM, Pablo Rodriguez wrote: >>> [...]

Re: [NTG-context] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-06 Thread Florian Leupold
> On 06.09.16, at 02:55, Aditya Mahajan wrote: > > On Mon, 5 Sep 2016, Florian Leupold wrote: > >> One problem, however, persists: The theorem environment gets misplaced when >> a figure is placed to its left: >> >> \setupexternalfigures[location=default] >> \setupenumerations[ >> altern

Re: [NTG-context] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-05 Thread Aditya Mahajan
On Mon, 5 Sep 2016, Florian Leupold wrote: One problem, however, persists: The theorem environment gets misplaced when a figure is placed to its left: \setupexternalfigures[location=default] \setupenumerations[ alternative=left, text=Theorem, title=no, stopper={

Re: [NTG-context] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-05 Thread Florian Leupold
distance=1ex, >> width=fit, >> style=normal, >> hang=fit] >> \defineenumeration[theorem] >> \starttext >> \chapter{First chapter} >> \starttheorem >> The square on the hypotenuse is equal to the sum of the squares on the other >>

Re: [NTG-context] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-04 Thread Wolfgang Schuster
Florian Leupold 4. September 2016 um 19:37 Issues with the documentation: - In “ConTeXt Commands”, it says on page 224 that \setupenumeration inherits from \setupcounter; but in “ConTEXt reference manual", it says on page 246 that \setupenumerations inherits from \se

Re: [NTG-context] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-04 Thread Otared Kavian
> width=fit, > style=normal, > hang=fit] > \defineenumeration[theorem] > \starttext > \chapter{First chapter} > \starttheorem > The square on the hypotenuse is equal to the sum of the squares on the other > two sides. > \stoptheorem > \chapter{Second chapter

[NTG-context] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-04 Thread Florian Leupold
The square on the hypotenuse is equal to the sum of the squares on the other two sides. \stoptheorem \chapter{Second chapter} \placefigure[right, none]{}{\externalfigure[mill]} \starttheorem The square on the hypotenuse is equal to the sum of the squares on the other two sides. \stoptheorem

Re: [NTG-context] Captions numbering

2016-09-04 Thread Jose Luis Arellano
t \starttitle[title={Contents}] \stoptitle \placelist[chapter,section,subsubsection] \starttitle[title={Figures}] \stoptitle \placelist[figure] \startchapter[title=Chapter title] \input ward \startsection[title=Section title1] \input ward \placefigure[here][]{Caption}{\externalfigure[dumm

[NTG-context] Indentation after margin float with caption

2016-09-02 Thread Mikael P. Sundqvist
, Mikael \setupindenting[yes,medium] \setupfloats[indentafter=yes] \starttext \input tufte \placefigure[outermargin,middle]{}{\blackrule[width=1cm,height=1cm]} This should be indented, but it is not! \input tufte \input tufte \placefigure[outermargin,middle,none]{}{\blackrule[width=1cm

Re: [NTG-context] Figure-text alignment and wrapping text more tightly

2016-09-01 Thread Mikael P. Sundqvist
top-align the figure with the first line of the > paragraph to its left? > > 2) Is there a way to reduce the vertical gap between the first and second > figures? > > 3) The keyword “low” for \placefigure seems to have an effect. But I don’t > know why and could not find a re

[NTG-context] Figure-text alignment and wrapping text more tightly

2016-09-01 Thread Florian Leupold
reduce the vertical gap between the first and second figures? 3) The keyword “low” for \placefigure seems to have an effect. But I don’t know why and could not find a reference to that in contextref.pdf. Is this the correct way to wrap text “more tightly” below the figure (compare second and

Re: [NTG-context] Caption placement in margin

2016-08-31 Thread Wolfgang Schuster
bottom position the caption before or after the float. \setupfloatcaption[figure][location={outermargin,middle}] \starttext \placefigure [top] {The famous dutch cow!} {\externalfigure[cow]} \stoptext Another option might be to use \setupcaption (somebody could perhaps tell the difference b

Re: [NTG-context] Caption placement in margin

2016-08-31 Thread Henri Menke
s, Henri >> >> --- >> >> \setupfloatcaption >> [figure] >> [location=outermargin] >> >> \starttext >> >> \placefigure >> [top] >> {The famous dutch cow!} >> {\externalfigure[cow]} >> >> \stoptext >>

Re: [NTG-context] Caption placement in margin

2016-08-31 Thread Mikael P. Sundqvist
ve.contextgarden.net/. > Please fix. > > Cheers, Henri > > --- > > \setupfloatcaption > [figure] > [location=outermargin] > > \starttext > > \placefigure > [top] >

[NTG-context] Caption placement in margin

2016-08-30 Thread Henri Menke
igure] [location=outermargin] \starttext \placefigure [top] {The famous dutch cow!} {\externalfigure[cow]} \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! mai

Re: [NTG-context] Marginrule levels after \placefigure[right]

2016-08-28 Thread Aditya Mahajan
On Sun, 28 Aug 2016, Aditya Mahajan wrote: Hi, This is based on a question on TeX.SE https://tex.stackexchange.com/questions/326653/context-wrapfigure-interacts-with-marginrule All marginrules except those of level 1 stop working after \placefigure[right]. Here is a minimal example

[NTG-context] Marginrule levels after \placefigure[right]

2016-08-28 Thread Aditya Mahajan
Hi, This is based on a question on TeX.SE https://tex.stackexchange.com/questions/326653/context-wrapfigure-interacts-with-marginrule All marginrules except those of level 1 stop working after \placefigure[right]. Here is a minimal example: \useexternalfigure[ctanlion][http://www.ctan.org

Re: [NTG-context] columnset and placefigure

2016-08-20 Thread Wolfgang Schuster
Hans Hagen 19. August 2016 um 23:51 best do your experiments with the new column sets (put this on top of your file for now: \input page-cst.mkiv The new code can also be loaded as a module with \usemodule[newcolumnsets] Wolfgang _

Re: [NTG-context] columnset and placefigure

2016-08-19 Thread Hans Hagen
the column-spanning features, but I might in the future. The thing is, when I place a figure using `\placefigure` and the column distance is too large (i.e. the columns too narrow), the figure is not placed on spot but flushed to the next page. I'm unsure what the exact value for this threshold

Re: [NTG-context] columnset and placefigure

2016-08-19 Thread Henri Menke
eatures, but I > might in the future. > > The thing is, when I place a figure using `\placefigure` and the column > distance is too large (i.e. the columns too narrow), the figure is not > placed on spot but flushed to the next page. I'm unsure what the exact > value for t

[NTG-context] Vertical space lost (\placefigure[right] before enumeration)

2016-08-15 Thread Mikael P. Sundqvist
it, before={\blank[line]}, after={\blank[line]}, ] \starttext \input knuth \startexample \input tufte \stopexample \page[yes] \input knuth \placefigure[right,high]{}{\blackrule[width=3cm,height=4cm]} \startexample \input tufte \stopexample \page[yes] \input knuth \blank[line] \placefigure[

Re: [NTG-context] WARNING: File path includes directory that doesn't exist

2016-07-31 Thread Aditya Mahajan
On Sat, 30 Jul 2016, Thangalin wrote: Hi, Possible problem converting SVG to PDF. $ cat test.tex \setupexternalfigures[ order={svg,pdf,png}, location={local,default,global}, directory={images}, frameoffset=.5em, maxwidth=\makeupwidth, width=\makeupwidth, ] \starttext \placefigure

[NTG-context] WARNING: File path includes directory that doesn't exist

2016-07-30 Thread Thangalin
$HOME/test $ cat test.tex \setupexternalfigures[ order={svg,pdf,png}, location={local,default,global}, directory={images}, frameoffset=.5em, maxwidth=\makeupwidth, width=\makeupwidth, ] \starttext \placefigure{}{\externalfigure[images/drawing.svg]} \stoptext $ cat images/drawing.svg

Re: [NTG-context] Place a text over an arrow (Metafun)

2016-07-25 Thread Fabrice Couvreur
y, I did not took your example, > I am just copying an example from my archives…). > > %% > \usemodule[steps] > \starttext > > Pour voir que la composée de deux fonctions $f$ et $u$, continues en un > point $x_{*}$, est continue, on peut suivre le schéma suivant~: &g

Re: [NTG-context] Place a text over an arrow (Metafun)

2016-07-25 Thread Otared Kavian
$ et $u$, continues en un point $x_{*}$, est continue, on peut suivre le schéma suivant~: \placefigure[middle,none][-]{}{ %\scale[,width=.35\textwidth]{ \startSTEPtable \cell {$(f\circ u)(x_{*} + o(1)) = $} \text{définition de $f\circ u$} \cell {$f\left(u\left(x_{*} + o(1)\right

[NTG-context] columnset and placefigure

2016-07-20 Thread Henri Menke
gure using `\placefigure` and the column distance is too large (i.e. the columns too narrow), the figure is not placed on spot but flushed to the next page. I'm unsure what the exact value for this threshold is and based on which criteria the figure is flushed. While this is not a problem in a norm

Re: [NTG-context] Wrap figures and equations

2016-07-13 Thread Otared Kavian
as_mode counter which can’t be the right > answer for this. > > %\unprotected\c_strc_formulas_mode\zerocount > > \starttext > > \placefigure[right]{}{\blackrule[width=6cm,height=4cm]} > \input ward > \startformula > d = vt > \stopformula > \input ward &g

Re: [NTG-context] Wrap figures and equations

2016-07-13 Thread Hans Hagen
Hi Wolfgang, the following problem is from StackExchange [1] which can only be solved by changing the value of the \c_strc_formulas_mode counter which can’t be the right answer for this. %\unprotected\c_strc_formulas_mode\zerocount \starttext \placefigure[right]{}{\blackrule[width=6cm

[NTG-context] Wrap figures and equations

2016-07-13 Thread Wolfgang Schuster
Hi Hans, the following problem is from StackExchange [1] which can only be solved by changing the value of the \c_strc_formulas_mode counter which can’t be the right answer for this. %\unprotected\c_strc_formulas_mode\zerocount \starttext \placefigure[right]{}{\blackrule[width=6cm,height

Re: [NTG-context] Buffered metapost function freezes random numbers

2016-05-27 Thread Hans Hagen
ffer \startbuffer[programa] \placefigure[center,nonumber]{}{ \startcombination[2*1] {\externalfigure[ammeter][type=buffer,width=8cm]}{\_\_\_\_\_\_\_\_\_\_$\pm$\_\_\_\_\_\_\_\_} {\externalfigure[ammeter][type=buffer,width=8cm]}{\_\_\_\_\_\_\_\_\_\_$\pm$\_\_\_\_\_\_\_\_} } \stopcombination \

[NTG-context] Buffered metapost function freezes random numbers

2016-05-25 Thread DesdeChaves
s (0, 1.5len); fill fullcircle scaled .75len; draw unitsquare xscaled 3.2r yscaled 1.5r shifted B; label("\tfb I (A)", 1.2r*up+1.6r*right) withcolor red; draw fullcircle scaled 2len shifted A; draw fullcircle scaled 2len shifted C; \stopMPcode \stopbuffer \startbuffer[programa]

Re: [NTG-context] searching in subdirectories with project structure

2016-05-05 Thread Javier M Mora
1.tex \product prod_thesis \environment envi_chap1 blah blah blah \placefigure[here][fig:img1]{img1}{ \externalfigure[image1.jpg] } blah blah blah \input tables/table1 blah blah blah \stopcomponent First and second answer: \input command is a tex command and inserts file as is. It is possibl

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