Re: [NTG-context] Bug with adaptlayout
On 9/13/2013 4:40 AM, Aditya Mahajan wrote: Hi, There is a subtle bug with \adaptlayout. \adaptlayout[1][height=max] does not work, e.g., \showframe \adaptlayout[1][height=max] \starttext \dorecurse{10}{\input knuth \par} \stoptext but \adaptlayout[2][..] etc work. The reason is the following. Typically, we use \adaptlayout[...][...] before \starttext at which point \realpageno=1. Now, \page_adapts_layout calls \page_adopts_check which checks if \??pageadaptions\the\realpageno is set. If so, it calls the pageadaptions and resets it to relax. Since all this happens before \starttext, it does not affect the first page. I am not sure what is the best way to fix this. \unprotect \def\page_adapts_check {\csname\??pageadaptations\the\ifcsname\??pageadaptations\the\realpageno\endcsname\realpageno\else\zerocount\fi\endcsname} \def\page_adapts_reset {\ifcsname\??pageadaptations\the\realpageno\endcsname \global\undefinevalue{\??pageadaptations\the\realpageno}% \fi} \appendtoks \page_adapts_check \to \everystarttext \appendtoks \page_adapts_reset \to \everyshipout \protect - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] bidi
Hi, -- experimental fix for framed inline direction (at some point we will come up with a more precise description .. also, only use the already posted boxing macros, don't rely on low level box + dir spec as context keep a state of directions independently of tex) -- fix for marks on fonts like dejavumono that have fixed width glyphs (so also marks with widths but lacking positioning) .. beware: such fotns are monospaced so you get funny side effects with left/right spacing due to some characters not being centered in their wider-than-needed-as-fixed boundingbox .. also beware of bugs in mkmk (last night idris and i spend quit esome hours on nailing these issues down) -- there is something fuzzy with arial, also in ms toolchains, at different scales, etc etc ... anyhow, for testing best use a decent font, like arabtype, not arial -- not all complex bidi stuff will be solved in the bidi default methods, use method one or two if applicable -- some more things done Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Module simpleslides error
Hi, If I choose BottomSquares in presentation, I receive an error: \usemodule[simpleslides][style=BigNumber] \setupTitle[title={La Ronda}, author={Xavier Bordoy}, date={18 de juliol de 2013},] %% el text \starttext \placeTitle \SlideTitle{Pregunta 1} dfdsf \SlideTitle{Pregunta 2} fdfd \stoptext resolversmodules 'default' is loaded (/usr/local/bin/context/tex/texmf-modules/tex/context/third/simpleslides/simpleslides-s-default.tex simpleslides loading default style setup colors 'rgb' color space is supported colors 'cmyk' color space is supported interfacenamespaces installing namespace 'simpleslidestitle' with settings ' type=module, name=simpleslidestitle, setup=list, style=yes, parent=simpleslidetitle, ' interfacenamespaces using namespace 'simpleslidestitle' for 'simpleslidestitle' interfacenamespaces namespace 'simpleslidestitle' for 'simpleslidestitle' uses parent 'simpleslidetitle' interfacenamespaces installing parameter handler for 'simpleslidestitle' interfacenamespaces installing parameterhash handler for 'simpleslidestitle' interfacenamespaces installing attribute handler for 'simpleslidestitle' interfacenamespaces installing setup command for 'simpleslidestitle' (multiple) interfacenamespaces installing namespace 'SlideTitle' with settings ' type=module, name=SlideTitle, command=yes, setup=list, style=yes, parent=SlideTitle, ' interfacenamespaces using namespace 'SlideTitle' for 'SlideTitle' interfacenamespaces namespace 'SlideTitle' for 'SlideTitle' uses parent 'SlideTitle' interfacenamespaces installing parameter handler for 'SlideTitle' interfacenamespaces installing parameterhash handler for 'SlideTitle' interfacenamespaces installing attribute handler for 'SlideTitle' interfacenamespaces installing definition command for 'SlideTitle' (single) interfacenamespaces installing setup command for 'SlideTitle' (multiple) ) resolversmodules 'simpleslides-s-BottomSquares' is loaded (/usr/local/bin/context/tex/texmf-modules/tex/context/third/simpleslides/simpleslides-s-BottomSquares.tex simpleslides loading module BottomSquares system command '\NormalHeight' is already defined system command '\NormalWidth' is already defined system command '\PictureFrameHeight' is already defined system command '\PictureFrameWidth' is already defined ! Undefined control sequence. system tex error on line 68 in file /usr/local/bin/context/tex/texmf-modules/tex/context/third/simpleslides/simpleslides-s-BottomSquares.tex: Undefined control sequence ... 58 % top=\vss,bottom=\vss] 59 60 61 %D We define our color scheme: 62 63 \definecolor [simpleslides:backgroundcolor][s=.95] 64 \definecolor [simpleslides:contrastcolor] [r=.7,g=.1,b=.3] 65 \definecolor [simpleslides:variantcolor] [s=.3] 66 \definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] 67 68 \definevisualcounter 69 [simpleslides:bottomsquarescounter] 70 [squaremarkers] 71 [counter=userpage, 72distance={(\the\dimexpr\visualcounterparameter{maxwidth})/m + width}, 73path=unitsquare, 74maxwidth=\textwidth, 75height=0.3cm, 76width=0.3cm] 77 78 \definepalet[visualcounter:squaremarkers] l.68 \definevisualcounter ? x mkiv lua stats used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats used cache path: /usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats resource resolver: loadtime 0.009 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 77 found files, scanned paths: none mkiv lua stats stored bytecode data: 331 modules (0.222 sec), 69 tables (0.006 sec), 400 chunks (0.227 sec) mkiv lua stats cleaned up reserved nodes: 39 nodes, 9 lists of 457 mkiv lua stats node memory usage: 3 attribute, 19 glue_spec, 1 attribute_list, 1 open, 1 dir mkiv lua stats node list callback tasks: 6 unique task lists, 1 instances (re)created, 1 calls mkiv lua stats used backend: pdf (backend for directly generating pdf output) mkiv lua stats loaded tex modules: 5 requested, all found (*-simpleslides *-simpleslides-s-BottomSquares *-tikz simpleslides-f-default simpleslides-s-default) mkiv lua stats loaded patterns: en::2, load time: 0.000 mkiv lua stats jobdata time: 0.000 seconds saving, 0.001 seconds loading mkiv lua stats callbacks: 3497 direct, 33148 indirect, 36645 total mkiv lua stats randomizer: resumed with value 0.08730756402356 mkiv lua stats result saved in file: Estrats-de-la-Ronda-Presentació.pdf, compresslevel 3, objectcompreslevel 3 mkiv lua stats loaded fonts: 3 files: latinmodern-math.otf (experimental),
Re: [NTG-context] Module simpleslides error
On Fri, Sep 13, 2013 at 1:01 PM, Xan dxpubl...@telefonica.net wrote: If I choose BottomSquares in presentation, I receive an error: l.68 \definevisualcounter I recently went through all of the Simpleslides designs and found out that also Boxed and Shaded failed at this same point. Looks like something with the page counter. (Swoosh fails, too, but on something else...) These modules worked for me and about as expected (color options don't seem to work, but defaults do): BigNumber, Ellipse, Embossed, Framed, FramedTitle, HorizontalStripes, NarrowStripes, RainbowStripe, Rounded, SideSquares, Sunrise, ThickStripes. Mari (who ended up picking a design that works although that wasn't my first choice - I just forgot to report the problems, so it is good somebody did!) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Module simpleslides error
On 09/13/2013 12:01 PM, Xan wrote: Hi, If I choose BottomSquares in presentation, I receive an error: I'm sorry, I know that some of the styles aren't working at the moment (at least not the versions on the garden; I think all of them work on my system). Aditya and I need to upload a fresh version soon, but we haven't been able to find time to discuss important questions. Anyway: I fear it will be October until we get around to producing a new version. If you want this particular style, I can send you the version I have here off list (your test file compiles here), but it may be better to wait a bit because of dependencies etc. Sorry for the inconvenience Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Wrong ConTeXt version?
Hi, Running first-setup.sh in order to update to the latest ConTeXt gives me a wrong result: I get current version: 2013.04.20 01:15 while before updating I had current version: 2013.09.10 17:17 Are we going backward in time? :-) Best regards: OK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Wrong ConTeXt version?
Answering to myself… Sorry for the noise: the version is correct after updating via first-setup.sh: I have in fact current version: 2013.09.13 10:59 the other version is the one in TeXLive… With my apologies: OK On 13 sept. 2013, at 17:15, Otared Kavian ota...@gmail.com wrote: Hi, Running first-setup.sh in order to update to the latest ConTeXt gives me a wrong result: I get current version: 2013.04.20 01:15 while before updating I had current version: 2013.09.10 17:17 Are we going backward in time? :-) Best regards: OK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Module simpleslides error
I don't believe that I have seen Aditya mention this recently, but anyone using ConTeXt for making slide presentations would benefit tremendously, I think, from reading his tutorials on how to use simple ConTeXt to do so: https://github.com/adityam/context-slides-example/commits/master Sorry if I have trampled on what was a strictly simpleslides discussion. Regards. BTW, someone on this list had recommended to me quite some time ago impressive, a PDF viewer with transitions, which I also find very effective in giving presentations from PDF documents: http://impressive.sourceforge.net/ On 09/13/2013 12:01 PM, Xan wrote: Hi, If I choose BottomSquares in presentation, I receive an error: I'm sorry, I know that some of the styles aren't working at the moment (at least not the versions on the garden; I think all of them work on my system). Aditya and I need to upload a fresh version soon, but we haven't been able to find time to discuss important questions. Anyway: I fear it will be October until we get around to producing a new version. If you want this particular style, I can send you the version I have here off list (your test file compiles here), but it may be better to wait a bit because of dependencies etc. Sorry for the inconvenience Thomas On 09/13/2013 12:01 PM, Xan wrote: Hi, If I choose BottomSquares in presentation, I receive an error: I'm sorry, I know that some of the styles aren't working at the moment (at least not the versions on the garden; I think all of them work on my system). Aditya and I need to upload a fresh version soon, but we haven't been able to find time to discuss important questions. Anyway: I fear it will be October until we get around to producing a new version. If you want this particular style, I can send you the version I have here off list (your test file compiles here), but it may be better to wait a bit because of dependencies etc. Sorry for the inconvenience Thomas -- Pavneet Arora m: 647.406.6843 Waroc Informatikt: 416.937.9276 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] bug? gap appears in columnset
Hello, We have a document where a gap occurs in a columnset under certain conditions. It seems to be a confluence of: - 2 sections, each with 2-column columnsets - \page[empty] between them - the 2nd section has a tighter interline space The problem is that on the first page of the second section, a two-line gap appears where gridlines 50 and 51 are. It may be a coincidence, but 50 is also the number of lines per page in the first section. We've found that coincidence to be true even with different page and font sizes. Can anyone tell us a way to get rid of the gap? We've tried things like \setupcolumnsetlines[columnsetbibliography][1][1][-1] \setupcolumnsetlines[columnsetbibliography][1][2][-1] with various values for the last parameter, but nothing helps. Below is a small, self-contained sample. Thanks for any help you can give. Lars Version information: This is XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012) (format=cont-en 2012.11.14) 13 SEP 2013 11:38 ConTeXt ver: 2012.05.30 11:26 MKII fmt: 2012.11.14 int: english/english \showgrid \setupinterlinespace[line=12pt] \setuplayout[grid=yes] \definecolumnset[columnsetIntroduction0][n=2] \setupcolumnset[columnsetIntroduction0][distance=5mm,balance=yes] \definecolumnset[columnsetbibliography][n=2] \setupcolumnset[columnsetbibliography][distance=5mm,balance=yes] \starttext \section{Introduction} \startcolumnset[columnsetIntroduction0] % The important thing here is how many columns of text we have. \dorecurse {7} { \input knuth } \stopcolumnset \page[yes] % Always finish the current page % If we haven't ended up on an odd page, generate an empty one. \ifodd \pageno \else \page[empty] \fi \section{Bibliography} \setupinterlinespace[line=9.3pt] \startcolumnset[columnsetbibliography] \dorecurse {140} { \input knuth\par } \stopcolumnset \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug? gap appears in columnset
It should also be mentioned that we need the second section to have a tighter line spacing than the first, but despite the \setupinterlinespace[line=9.3pt] command, and despite the red grid lines being tighter, the text itself seems to have the same interline spacing as in the first section. How do we actually change the interline spacing? Thanks again. Lars On 9/13/2013 4:07 PM, Lars Huttar wrote: Hello, We have a document where a gap occurs in a columnset under certain conditions. It seems to be a confluence of: - 2 sections, each with 2-column columnsets - \page[empty] between them - the 2nd section has a tighter interline space The problem is that on the first page of the second section, a two-line gap appears where gridlines 50 and 51 are. It may be a coincidence, but 50 is also the number of lines per page in the first section. We've found that coincidence to be true even with different page and font sizes. Can anyone tell us a way to get rid of the gap? We've tried things like \setupcolumnsetlines[columnsetbibliography][1][1][-1] \setupcolumnsetlines[columnsetbibliography][1][2][-1] with various values for the last parameter, but nothing helps. Below is a small, self-contained sample. Thanks for any help you can give. Lars Version information: This is XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012) (format=cont-en 2012.11.14) 13 SEP 2013 11:38 ConTeXt ver: 2012.05.30 11:26 MKII fmt: 2012.11.14 int: english/english \showgrid \setupinterlinespace[line=12pt] \setuplayout[grid=yes] \definecolumnset[columnsetIntroduction0][n=2] \setupcolumnset[columnsetIntroduction0][distance=5mm,balance=yes] \definecolumnset[columnsetbibliography][n=2] \setupcolumnset[columnsetbibliography][distance=5mm,balance=yes] \starttext \section{Introduction} \startcolumnset[columnsetIntroduction0] % The important thing here is how many columns of text we have. \dorecurse {7} { \input knuth } \stopcolumnset \page[yes] % Always finish the current page % If we haven't ended up on an odd page, generate an empty one. \ifodd \pageno \else \page[empty] \fi \section{Bibliography} \setupinterlinespace[line=9.3pt] \startcolumnset[columnsetbibliography] \dorecurse {140} { \input knuth\par } \stopcolumnset \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] outer floats on doublesided pages UNSOLVED
Hi Contexters, Does anyone know whether it is possible in mkiv to position figures protruding in the outer margin? In mkii it used to work. It seems to me that this simple feature does not work in mkiv. See minimal example below. Is this a bug? Regards, Robert Op 10 sep. 2013, om 22:05 heeft R. Ermers het volgende geschreven: Hi, Does anyone know if positioning figures protruding into the outer margin can be done in mkiv? Regards, Robert Hi Jörg and Marco, Thanks for your replies. I have tried the chemistry textbook examples too, especially vignette seems to do what I want. I noticed you used mkii at the time, but I have mkiv now. Should I return to mkii if I want to obtain this? Regards, Robert Op 10 sep. 2013, om 15:18 heeft Jörg Hagmann het volgende geschreven: Maybe what I did helps: see Figures III on http://wiki.contextgarden.net/Biochemistry_textbook. Although I used mkII at the time. Cheers, Jörg R. Ermers writes: Hi Marco, Thank you very much indeed for your reply. This topic apparently does not interest many people. In your suggestion the figures are put in the outer margin in a vertical row below one another close to the top of the page, and not near the position in the text. I want them positioned close to the place in the text which should flow around them. I have seen examples of this made by Context. This can be obtained by specifying default=left, or default=right, only I need the figures to protrude into the (outer) margin. This for some reason does not work under mkiv. I still have some time, but my deadline is approaching. Thanks again! Kind regards, Robert Op 10 sep. 2013, om 09:59 heeft Marco Patzer het volgende geschreven: On 2013–09–10 R. Ermers wrote: I have problems with the placement of floats. I need them to be placed in the outer edge of the text, but Context puts them in the middle of the page. The outer, inner, outeredge, inneredge, commands do not work. Right and left do work. You probably confused edge and margin. By default the edge has zero width and has to be enabled using \setuplayout. Preferably the criterium option should also work \setupexternalfigures [location=default] \setuppagenumbering [alternative=doublesided] \definefloat [marginfigure] [marginfigures] [figure] \setupfloat [marginfigure] [default=margin, criterium=\marginwidth] \setupcaption [marginfigure] [number=no] \showframe \starttext \dorecurse{9}{%% \input knuth \startplacemarginfigure \externalfigure [cow] [width=\recurselevel cm] \stopplacemarginfigure} \stoptext Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___