Re: [NTG-context] ntg-context Digest, Vol 101, Issue 31
Am 13.11.2012 07:46, schrieb ntg-context-requ...@ntg.nl: \definehighlight [emph] [style=bolditalic] Quote: \quotation{He said: \quote{Hello \emph{World!}}} Marco I want the complete quotation emphasized- without extra writing \emph. Huseyin ___ 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] no footnote printed
Hello, using midaligned no footnote is printed. \starttext % \midaligned{§. 180.\footnote{Franz Joseph Schopf I.: a.a.O., S. 123}} \crlf Text bla bla bla % \blank \midaligned{§. 354.\footnote{Franz Joseph Schopf II.: a.a.O., S. 245}} \crlf Text bla bla bla % \stoptext tested with: ConTeXt ver: 2011.10.08 11:42 MKIV fmt: 2011.10.9 int: english/english LuaTeX, Version beta-0.70.1-2011051908 (rev 4277) and ConTeXt ver: 2012.10.22 23:51 MKIV fmt: 2012.10.24 int: english/english luatex, version beta-0.70.2-2012052309 (tex live 2012) thanks for help Bernd ___ 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] images and text stacked in the margin
On Mon, 12 Nov 2012 20:49:38 +0100 Andy Thomas wrote: > > You need to put the \placemargintext at the beginning of a > > paragraph, otherwise it will cause an unwanted break. > :( > > Unfortunately, this is not an option. The citations have to be > referenced at the end of particular sentences. The first link > (showing the spread) makes it more obvious. One trick used with floats to avoid the unwanted break that may or may not work here with margintext is \startpostponing [+0] \startplacemargintext \stoplacemargintext \stoppostponing Alan ___ 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] images and text stacked in the margin
On Nov 12, 2012, at 3:10 PM, Marco Patzer wrote: > You need to put the \placemargintext at the beginning of a > paragraph, otherwise it will cause an unwanted break. :( Unfortunately, this is not an option. The citations have to be referenced at the end of particular sentences. The first link (showing the spread) makes it more obvious. Also, I tried marginblocks now, but they show the same bug as margintext if a page break occurs close by. ___ 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] ntg-context Digest, Vol 101, Issue 30
2012-11-12 H. Özoguz: > And if I want to have in > > \quotation and \quote > > additionaly \emphasis, how to make that? > > To be clear (sorry for my english): > \quotation{\emph{Quote}} \definehighlight [emph] [style=bolditalic] Quote: \quotation{He said: \quote{Hello \emph{World!}}} 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 ___
Re: [NTG-context] mplib messages
On Mon, 12 Nov 2012 10:59:04 +0100 Hans Hagen wrote: > the next beta has: > > \enabletrackers[metapost.showlog] produces: metapost> log: [1] metapost> log: (Please type a command or say `end') Clearly we do not want to see this prompt... Alan ___ 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] ntg-context Digest, Vol 101, Issue 30
Am 12.11.2012 15:58, schrieb ntg-context-requ...@ntg.nl: 2012-11-12 H. ?zoguz: >but it returns the ending quotation mark in the wrong order. Why? You forgot the braces: Quote: \wr[{He said: \wrr[Hello!]}] >And how to correct that? \setuplanguage [leftquotation=?, rightquotation=?, leftquote=?, rightquote=?] \starttext Quote: \quotation{He said: \quote{Hello!}} \stoptext Marco Thanks! And if I want to have in \quotation and \quote additionaly \emphasis, how to make that? To be clear (sorry for my english): \quotation{\emph{Quote}} Huseyin ___ 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] mplib messages
On Mon, 12 Nov 2012, luigi scarso wrote: On Mon, Nov 12, 2012 at 12:24 PM, Alan BRASLAU wrote: On Mon, 12 Nov 2012 10:59:04 +0100 Hans Hagen wrote: \enabletrackers[metapost.showlog] Thanks (Should this be enabled by default?) hm, write on std{err,out} slows down the process There is always `context --noconsole` if you want to omit the messages. I think that it is a good idea to display messages by default, or better still, the logging and tracing macros of metapost and tex be enabled by a common interface. Aditya ___ 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] no footnote printed
Hello, using midaligned no footnote is printed. \starttext % \midaligned{§. 180.\footnote{Franz Joseph Schopf I.: a.a.O., S. 123}} \crlf Text bla bla bla % \blank \midaligned{§. 354.\footnote{Franz Joseph Schopf II.: a.a.O., S. 245}} \crlf Text bla bla bla % \stoptext tested with: ConTeXt ver: 2011.10.08 11:42 MKIV fmt: 2011.10.9 int: english/english LuaTeX, Version beta-0.70.1-2011051908 (rev 4277) and ConTeXt ver: 2012.10.22 23:51 MKIV fmt: 2012.10.24 int: english/english luatex, version beta-0.70.2-2012052309 (tex live 2012) thanks for help Bernd ___ 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] Macro in macro?
2012-11-12 H. Özoguz: > but it returns the ending quotation mark in the wrong order. Why? You forgot the braces: Quote: \wr[{He said: \wrr[Hello!]}] > And how to correct that? \setuplanguage [leftquotation=», rightquotation=«, leftquote=›, rightquote=‹] \starttext Quote: \quotation{He said: \quote{Hello!}} \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 ___
[NTG-context] Macro in macro?
Hello, I have this code: %%% \def\wr[#1]{»#1«} \def\wrr[#1]{›#1‹} \starttext Quote: \wr[He said: \wrr[Hello!] ] \stoptext It should print Quote: »He said: ›Hello!‹ « but it returns the ending quotation mark in the wrong order. Why? And how to correct that? ___ 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] images and text stacked in the margin
2012-11-12 Andy Thomas: > I am still struggling to achieve the page layout/look that I am > trying to get. For an image of the desired page spread please look > here: https://dl.dropbox.com/u/9089117/tufte-spread.png How about this: \useMPlibrary [dum] \setuplayout [width=10cm, rightmargin=5cm] \setupmargindata [inouter] [location=outer, stack=continue] \definefloat [marginfigure] [marginfigures] [figure] \setupfloat [marginfigure] [default=margin] \definefloat [margintext] [margintexts] \setupfloat [margintext] [default=margin] \setupcaption [margintext] [location=none] \starttext \input knuth \startplacemarginfigure [title=Foo] \externalfigure [dum] [width=\rightmarginwidth] \stopplacemarginfigure \startplacemargintext \input ward \stopplacemargintext \input knuth \startplacemarginfigure [title=Bar] \externalfigure [dum] [width=\rightmarginwidth] \stopplacemarginfigure \stoptext You need to put the \placemargintext at the beginning of a paragraph, otherwise it will cause an unwanted break. 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 ___
[NTG-context] images and text stacked in the margin
Dear list, I am still struggling to achieve the page layout/look that I am trying to get. For an image of the desired page spread please look here: https://dl.dropbox.com/u/9089117/tufte-spread.png The design is using the ample margin to place text (sidenotes), figures (images) and tables in the margin. I am unable to get both (images and text) to work properly. (1) put all in a \margintext \margintext{...} for text \margintext{\placefigure...} for external images This option does not work if the position is close to a page break (cp. http://archive.contextgarden.net/message/2012.191529.3fbef120.en.html) (2) use two different macros \margintext{...} for text and \placefigure[location=margin]{}{...} for external images This option does not work because they are placed on top of each other. I also tried \startplacefigure, but also no luck. (3) put all in a \placefigure \placefigure[margin,none]{}{Text Text} for text \placefigure[margin,none]{}{...} for external images This works best, because it starts from the top and nicely stacks the marginals. But it introduces a paragraph break where the sidenote is called. This does not work, it defeats the purpose (imagine a paragraph after every footnote). (4) use (3) and postponing \startpostponing [+1]% \startplacefigure[location={margin,none}]% Text text\stopplacefigure% \stoppostponing% Now, the paragraph break is gone, but the sidenote is on the next page, which does not make sense in our case (cp. http://tex.stackexchange.com/questions/56388/avoid-line-break-after-macro). In general, I do not understand, where the paragraph break at the \placefigure... comes from. It does not seam necessary in most cases (e.g. location=top) and postponing does avoid it. Can I 'gobble' it somehow? Does anyone have an idea, how to make it work for images as well as text combined? Andy ___ 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] Beginner question. Chapter heading in words
* looking for a place on the wiki were conversions are documented, I found http://wiki.contextgarden.net/Command/convertnumber. Seems fine. (Conversion and Conversions redirects there now.) * words and Words are now documented on that page, too. Hans: while I was there, I found a bug in the month conversion. In core-con.mkiv, the `month` conversion calls `\monthlong`, which calls the Lua command.month. But that prints the number of the current month; \monthlong should call command.monthname, instead. % core-con.mkiv, line 204 -\def\monthlong #1{\ctxcommand{month(#1)}} +\def\monthlong #1{\ctxcommand{monthname(#1)}} \def\monthshort#1{\ctxcommand{monthmnem(#1)}} Cheers, Sietse ___ 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] mplib messages
On Mon, 12 Nov 2012 12:29:41 +0100 luigi scarso wrote: > hm, write on std{err,out} slows down the process But normally there should be very few messages, as message and show should be used with parsimony... (Indeed there are very few in the standard metapost and metafun macros) Maybe in ConTeXt we should have a distinction in allowing the turning on of one or the other (show, message and errmessage). Alan ___ 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] mplib messages
On Mon, Nov 12, 2012 at 12:24 PM, Alan BRASLAU wrote: > On Mon, 12 Nov 2012 10:59:04 +0100 > Hans Hagen wrote: > > > \enabletrackers[metapost.showlog] > > > > Thanks > > (Should this be enabled by default?) > > hm, write on std{err,out} slows down the process -- luigi ___ 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] mplib messages
On Mon, 12 Nov 2012 10:59:04 +0100 Hans Hagen wrote: > On 11/12/2012 10:43 AM, Alan BRASLAU wrote: > > Hello, > > > > Were do MetaPost messages go using mplib? (>/dev/null?) > > I see nothing on the console nor in the log file. > > > > Alan > > > > \starttext > > \startMPpage > > message "a circle" ; > > draw fullcircle scaled 2 cm ; > > \stopMPpage > > \stoptext > > the next beta has: > > \enabletrackers[metapost.showlog] > Thanks (Should this be enabled by default?) Alan ___ 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] mplib messages
On 11/12/2012 10:43 AM, Alan BRASLAU wrote: Hello, Were do MetaPost messages go using mplib? (>/dev/null?) I see nothing on the console nor in the log file. Alan \starttext \startMPpage message "a circle" ; draw fullcircle scaled 2 cm ; \stopMPpage \stoptext the next beta has: \enabletrackers[metapost.showlog] - 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 ___
Re: [NTG-context] mplib messages
On 11/12/2012 10:43 AM, Alan BRASLAU wrote: Hello, Were do MetaPost messages go using mplib? (>/dev/null?) I see nothing on the console nor in the log file. Alan \starttext \startMPpage message "a circle" ; draw fullcircle scaled 2 cm ; \stopMPpage \stoptext \starttext \ctxlua{metapost.showlog = true} \startMPpage message("message: a circle") ; show("show: a circle") ; draw fullcircle scaled 2 cm ; \stopMPpage \stoptext - 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] mplib messages
Hello, Were do MetaPost messages go using mplib? (>/dev/null?) I see nothing on the console nor in the log file. Alan \starttext \startMPpage message "a circle" ; draw fullcircle scaled 2 cm ; \stopMPpage \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] Synctex problems with context and texworks
Hello, ** "H. Özoguz" [2012-11-12 08:53:46 +0100]: > Hello there, > sind yesterday the pdf-view with synctex had no problems. But today, > without any change (afaik), it does not work anymore. The arguments > for compiling with context.exe are > --synctex > $fullname > That is default. I deleted the .synctex.gz files manually, but it > did not help. What could be the problem? Wild guess: http://tug.org/pipermail/texworks/2012q1/005238.html --- WBR, Vladimir Lomov -- There is a certain impertinence in allowing oneself to be burned for an opinion. -- Anatole France ___ 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] Synctex problems with context and texworks
On 11/12/2012 09:31 AM, Hans Hagen wrote: On 11/12/2012 8:53 AM, "H. Özoguz" wrote: Hello there, sind yesterday the pdf-view with synctex had no problems. But today, without any change (afaik), it does not work anymore. The arguments for compiling with context.exe are --synctex $fullname That is default. I deleted the .synctex.gz files manually, but it did not help. What could be the problem? if you get a synctex.gz file then the problem is with texworks The are no changes in the way context produces the filename paths? Synctex is a bit fragile when it comes to filenames within the .synctex[.gz] file. Best wishes, Taco ___ 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] Synctex problems with context and texworks
On 11/12/2012 8:53 AM, "H. Özoguz" wrote: Hello there, sind yesterday the pdf-view with synctex had no problems. But today, without any change (afaik), it does not work anymore. The arguments for compiling with context.exe are --synctex $fullname That is default. I deleted the .synctex.gz files manually, but it did not help. What could be the problem? if you get a synctex.gz file then the problem is with texworks 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 ___
Re: [NTG-context] How to put a \placefigure with no caption?
2012-11-12 Andy Thomas: > I guess, I do not understand the relation completely. Please > compare the following > > -- startcode -- > > \starttext > % > \chapter{One} > \input tufte > \placefigure[margin,none]{}{Let's put some text of at least two lines.} > \placefigure[none,margin]{}{Let's put some text of at least two lines.} > \input tufte > \stoptext > > -- stopcode -- > > The first one works as intended, the second one does not. Also, I > cannot figure out the equivalent new syntax. > \placefigure[margin,none]{}{Let's put some text of at least two lines.} \startplacefigure [location={margin, none}] Let's put some text of at least two lines. \stopplacefigure > \placefigure[none,margin]{}{Let's put some text of at least two lines.} \startplacefigure [location={none, margin}] Let's put some text of at least two lines. \stopplacefigure > I tried 'caption=none' and 'location=none'. location=none works here: \startplacefigure [location=none] Let's put some text of at least two lines. \stopplacefigure > But even if the latter one would work, having a caption (or not) > and placing the figure on the page are two different things? The first argument of `location` determines the location of the figure, the second one the location of the caption. If only one argument is provided, it is used for both. So the following statements have the same effect. \startplacefigure [location={none, none}] Let's put some text of at least two lines. \stopplacefigure \startplacefigure [location=none] Let's put some text of at least two lines. \stopplacefigure That's the reason why the figure in your second example is not placed in the margin. 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 ___