Lower limit of integrals shifted
Hi, the output of \setupmathematics[ integral=nolimits, ] \starttext \startTEXpage[offset=2bp] $\displaystyle\int_0^1x^2\,dx=\frac{1}{3}$ \stopTEXpage \stoptext is attached. Clearly, the lower limit in the integral is not correctly placed. With hope of a quick fix, Mikael
On 1/10/2019 7:56 AM, Mikael P. Sundqvist wrote:
Hi,
the output of
\setupmathematics[ integral=nolimits, ]
\starttext \startTEXpage[offset=2bp] $\displaystyle\int_0^1x^2\,dx=\frac{1}{3}$ \stopTEXpage \stoptext
is attached. Clearly, the lower limit in the integral is not correctly placed.
With hope of a quick fix, The problem is in the fonts ... some have proper math kerns, some don't, some have italic, some don't, so one solution for all is impossible
one way to deal with this is setting options (but these can be different per font and i'm not sure yet how to support that) you can try if \mathnolimitsmode=3 works ok for you will work ok for you \startTEXpage[offset=2bp] $\mathnolimitsmode0 \displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par $\mathnolimitsmode1 \displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par $\mathnolimitsmode2 \displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par $\mathnolimitsmode3 \displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par $\mathnolimitsmode4 \displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par $\mathnolimitsmode2000 \displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par \stopTEXpage ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On Fri, Jan 11, 2019 at 11:36 AM Hans Hagen
On 1/10/2019 7:56 AM, Mikael P. Sundqvist wrote:
Hi,
the output of
\setupmathematics[ integral=nolimits, ]
\starttext \startTEXpage[offset=2bp] $\displaystyle\int_0^1x^2\,dx=\frac{1}{3}$ \stopTEXpage \stoptext
is attached. Clearly, the lower limit in the integral is not correctly placed.
With hope of a quick fix, The problem is in the fonts ... some have proper math kerns, some don't, some have italic, some don't, so one solution for all is impossible
one way to deal with this is setting options (but these can be different per font and i'm not sure yet how to support that)
you can try if \mathnolimitsmode=3 works ok for you
will work ok for you
\startTEXpage[offset=2bp] $\mathnolimitsmode0 \displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par $\mathnolimitsmode1 \displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par $\mathnolimitsmode2 \displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par $\mathnolimitsmode3 \displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par $\mathnolimitsmode4 \displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par $\mathnolimitsmode2000 \displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par \stopTEXpage
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Oh, that sounds bad if it is in the fonts (I don't understand, it seemed to work fine with lmodern, stixtwo, lucidaot, ... just before, has something changed recently?) Two related questions: 1) This \mathnolimitsmode does not seem to have any effect in a \startformula \stopformula. 2) Could one set this globally (both inline and displayed formulas) in a document? /Mikael
On 1/11/2019 2:43 PM, Mikael P. Sundqvist wrote:
Oh, that sounds bad if it is in the fonts (I don't understand, it seemed to work fine with lmodern, stixtwo, lucidaot, ... just before, has something changed recently?)
well, then always enable mode 3 ... the default to mode 0 is because fonts can have kerns to deal with this but anyone can choose his/her preference ... as said, i'm nto sure hot to deal with it in context (as i might as well decide to add proper kerns to these fonts at runtime)
Two related questions:
1) This \mathnolimitsmode does not seem to have any effect in a \startformula \stopformula. 2) Could one set this globally (both inline and displayed formulas) in a document?
you can try something \appendtoks ... \to \everymathematics (i might cook up some more granularity in the future - i have some ideas about it - but that will then be experimental for a while) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Dear ConText Hepers, I'm not sure I'm writing at the good email adress, or even the good place; but sorry, I didn't find any online forum or othr hep centers, so I try. Please tell me if I have to write to someone else. I'd like to edit a thesis (so, as a book), with the text only on even pages, and tables and figure only on odd pages, in front of the paragraph wich comment them. I try to do this automatically by writing the text, make a reference to the figure in the paragraph, and then the layout appears correctly... I have the impression this is possible to do in ConText, but I havn't find how yet. Is it possibel to force, in the setups, the text to be on the right pages, and the figures on the left pages? Thank you very much in advance All the best Nicolas Mondon -- /Nicolas Mondon catalogue, écoutes, concerts : http://n.mondon.free.fr/ /
Nicolas Mondon schrieb am 12.09.2019 um 18:55:
Dear ConText Hepers,
I'm not sure I'm writing at the good email adress, or even the good place; but sorry, I didn't find any online forum or othr hep centers, so I try. Please tell me if I have to write to someone else.
This is the right place for your questions.
I'd like to edit a thesis (so, as a book), with the text only on even pages, and tables and figure only on odd pages, in front of the paragraph wich comment them. I try to do this automatically by writing the text, make a reference to the figure in the paragraph, and then the layout appears correctly...
If the figures/tables should appear before the text you want on a even (left side) page while the text would appear only on odd (right side) pages. A few questions remain before a certain answer can be given, e.g. should the left page be empty when there are no figures/tables for the following right page and should the float appear at the same vertical position as the reference.
I have the impression this is possible to do in ConText, but I havn't find how yet. Is it possibel to force, in the setups, the text to be on the right pages, and the figures on the left pages?
There is no easy solution for this yet and it also depends on your requirements mentioned above. The easiest way to achieve such a layout is to to increase the paper width to twice the normal layout and use the left half for a very big margin area where you can place the tables/graphics. In a first step you create a normal document with this unusual layout. Afterwards you split each page in half and create two separate pages from one single page which can be done with a loop (can be done theoretically with the imposition mechanism but a separate document is easier). Wolfgang
Am 2019-09-15 um 13:52 schrieb Wolfgang Schuster
: Nicolas Mondon schrieb am 12.09.2019 um 18:55:
Dear ConText Hepers,
I'm not sure I'm writing at the good email adress, or even the good place; but sorry, I didn't find any online forum or othr hep centers, so I try. Please tell me if I have to write to someone else.
This is the right place for your questions.
I'd like to edit a thesis (so, as a book), with the text only on even pages, and tables and figure only on odd pages, in front of the paragraph wich comment them. I try to do this automatically by writing the text, make a reference to the figure in the paragraph, and then the layout appears correctly...
If the figures/tables should appear before the text you want on a even (left side) page while the text would appear only on odd (right side) pages. A few questions remain before a certain answer can be given, e.g. should the left page be empty when there are no figures/tables for the following right page and should the float appear at the same vertical position as the reference.
I have the impression this is possible to do in ConText, but I havn't find how yet. Is it possibel to force, in the setups, the text to be on the right pages, and the figures on the left pages?
There is no easy solution for this yet and it also depends on your requirements mentioned above. The easiest way to achieve such a layout is to to increase the paper width to twice the normal layout and use the left half for a very big margin area where you can place the tables/graphics.
In a first step you create a normal document with this unusual layout. Afterwards you split each page in half and create two separate pages from one single page which can be done with a loop (can be done theoretically with the imposition mechanism but a separate document is easier).
Wouldn’t it make sense to use streams (https://wiki.contextgarden.net/Columns#Streams)? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
Thank you Wolfgang for your answer. So, yes the figures/tables should appear before the text on a even (left side) page while the text would appear only on odd (right side) pages. The left page should be empty when there are no figures/tables for the following right page, and the float doesn't have to appear strictly at the same vertical position as the reference, but as possible only. Specially beacause, it may have several references in only one paragraph for exemple on the right page, and so the figure should appear in the right order on the left page, but couldn't be exactly at the same height. Also, if there are too many references in on right page, the figures which can't fit the left page should go on the top od the next left page... It's possible that my answer change the proposition you made at the end of your message. Nevertherless, there is some thing in your last paragrph which is not clear for me : " Afterwards you split each page in half and create two separate pages from one single page which can be done with a loop (can be done theoretically with the imposition mechanism but a separate document is easier)." Thank you! Nicolas /Nicolas Mondon catalogue, écoutes, concerts : http://n.mondon.free.fr/ / Le 15/09/2019 à 13:52, Wolfgang Schuster a écrit :
Nicolas Mondon schrieb am 12.09.2019 um 18:55:
Dear ConText Hepers,
I'm not sure I'm writing at the good email adress, or even the good place; but sorry, I didn't find any online forum or othr hep centers, so I try. Please tell me if I have to write to someone else.
This is the right place for your questions.
I'd like to edit a thesis (so, as a book), with the text only on even pages, and tables and figure only on odd pages, in front of the paragraph wich comment them. I try to do this automatically by writing the text, make a reference to the figure in the paragraph, and then the layout appears correctly...
If the figures/tables should appear before the text you want on a even (left side) page while the text would appear only on odd (right side) pages. A few questions remain before a certain answer can be given, e.g. should the left page be empty when there are no figures/tables for the following right page and should the float appear at the same vertical position as the reference.
I have the impression this is possible to do in ConText, but I havn't find how yet. Is it possibel to force, in the setups, the text to be on the right pages, and the figures on the left pages?
There is no easy solution for this yet and it also depends on your requirements mentioned above. The easiest way to achieve such a layout is to to increase the paper width to twice the normal layout and use the left half for a very big margin area where you can place the tables/graphics.
In a first step you create a normal document with this unusual layout. Afterwards you split each page in half and create two separate pages from one single page which can be done with a loop (can be done theoretically with the imposition mechanism but a separate document is easier).
Wolfgang
Nicolas Mondon schrieb am 19.09.2019 um 19:18:
Thank you Wolfgang for your answer.
So, yes the figures/tables should appear before the text on a even (left side) page while the text would appear only on odd (right side) pages. The left page should be empty when there are no figures/tables for the following right page, and the float doesn't have to appear strictly at the same vertical position as the reference, but as possible only. Specially beacause, it may have several references in only one paragraph for exemple on the right page, and so the figure should appear in the right order on the left page, but couldn't be exactly at the same height. Also, if there are too many references in on right page, the figures which can't fit the left page should go on the top od the next left page...
It's possible that my answer change the proposition you made at the end of your message. Nevertherless, there is some thing in your last paragrph which is not clear for me : " Afterwards you split each page in half and create two separate pages from one single page which can be done with a loop (can be done theoretically with the imposition mechanism but a separate document is easier)."
Step 1: Create a document with a very big left margin where you can place all floats. \setuppapersize [A3,landscape] \setuplayout [backspace=23.5cm, width=15cm,edge=14cm] \showframe \setupfloat [default=leftedge, minwidth=14cm] \starttext \input ward \startplacefigure \externalfigure[dummy] \stopplacefigure \input knuth \startplacetable \starttabulate[|c|c|c|] \FL \NC A \NC B \NC C \NC\NR \ML \NC X \NC Y \NC Z \NC\NR \LL \stoptabulate \stopplacetable \input zapf \stoptext Step 2: Split each page into two separate pages where one contains all floats while the other page contains the text. Wolfgang
Woaw! Thanks a lot... Let's try! Le jeu. 19 sept. 2019 à 19:49, Wolfgang Schuster < wolfgang.schuster.lists@gmail.com> a écrit :
Nicolas Mondon schrieb am 19.09.2019 um 19:18:
Thank you Wolfgang for your answer.
So, yes the figures/tables should appear before the text on a even (left side) page while the text would appear only on odd (right side) pages. The left page should be empty when there are no figures/tables for the following right page, and the float doesn't have to appear strictly at the same vertical position as the reference, but as possible only. Specially beacause, it may have several references in only one paragraph for exemple on the right page, and so the figure should appear in the right order on the left page, but couldn't be exactly at the same height. Also, if there are too many references in on right page, the figures which can't fit the left page should go on the top od the next left page...
It's possible that my answer change the proposition you made at the end of your message. Nevertherless, there is some thing in your last paragrph which is not clear for me : " Afterwards you split each page in half and create two separate pages from one single page which can be done with a loop (can be done theoretically with the imposition mechanism but a separate document is easier)."
Step 1:
Create a document with a very big left margin where you can place all floats.
\setuppapersize [A3,landscape]
\setuplayout [backspace=23.5cm, width=15cm,edge=14cm]
\showframe
\setupfloat [default=leftedge, minwidth=14cm]
\starttext
\input ward
\startplacefigure \externalfigure[dummy] \stopplacefigure
\input knuth
\startplacetable \starttabulate[|c|c|c|] \FL \NC A \NC B \NC C \NC\NR \ML \NC X \NC Y \NC Z \NC\NR \LL \stoptabulate \stopplacetable
\input zapf
\stoptext
Step 2:
Split each page into two separate pages where one contains all floats while the other page contains the text.
Wolfgang
-- *catalogue, écoutes et infos concerts :* *http://n.mondon.free.fr/* http://n.mondon.free.fr/
participants (6)
-
Hans Hagen
-
Henning Hraban Ramm
-
Mikael P. Sundqvist
-
nicolas mondon
-
Nicolas Mondon
-
Wolfgang Schuster