Re: [NTG-context] referring to floats in xml
Thanks, Aditya, The first problem is adequately solved by adding []. I'll prepare an example for the second problem. A related problem is referring to sections and other blocks. section id=sec:cowstitleCows/title paracows cows cows. As I told in xref linkend=sec:cows//para/section The title is mapped as follows (lpath): \xmlsetsetup{#1}{section/title}{xml:section/title} \startxmlsetups xml:section:title \section{\xmlflush{#1}} \stopxmlsetups The section is not mapped: \startxmlsetups xml:section \xmlflush{#1} \stopxmlsetups Adding [\xmlatt{#1}{id}] to xml:section:title does not work of course. Using [\xmlatt{#1}{id}] with xml:section puts the id before the \section command. I think one of the other commands has to be used in such a way that the id is flushed forward after the \section command. Regards, Robert Op 20 mrt 2011, om 17:05 heeft Aditya Mahajan het volgende geschreven: On Sun, 20 Mar 2011, R. Ermers wrote: Dear All, My xml docbook file contains a number of graphics. Some are regular figures, some are edgefigures. I have two questions in this respect. Understanding these snippets is difficult without a minimal working example. A. referring to floats \placeedgefigure [\xmlatt{#1}{id}] {\xmlfirst{#1}{/caption}} {\framed[frame=off]{\setlayer[graphics]{\xmlfirst{#1}{/imageobject \definefloat[edgefigure][figure] \setupfloat[edgefigure] [leftmargindistance=-\innercombitotal,rightmargindistance=-\outercombitotal, default={outer,low,long}, criterium=.65\textwidth,numbering=no] mediaobject id=fig:cow role=edgefigure imageobject imagedata scale=500 fileref=cow.jpg/ /imageobject /mediaobject I now wonder how to refer to these floats. That is, referring through xref linkend=cow/ is not difficult to implement, but for some reason the mapping of the id is not that obvious. I tried it like this: \startxmlsetups xml:mediaobject:edgefigure \placeedgefigure [\xmlatt{#1}{id}] {\xmlfirst{#1}{/caption}} {\framed[frame=off]{\setlayer[graphics]{\xmlfirst{#1}{/imageobject \stopxmlsetups Try \placeedgefigure [] [\xmlatt{#1}{id}] {} {} B. edgefigures and regular figures The document contains two types of figures. \xmlsetsetup{#1}{mediaobject[@role='fig']}{xml:mediaobject:fig} \xmlsetsetup{#1}{mediaobject[@role='edgefigure']}{xml:mediaobject:edgefigure} I have noticed that when mediaobject contains both the attributes id and role, such as the cow example, the figure is considered a regular figure automatically and will not typeset as an edgefigure. Please provide a minimal working example. 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 ___ ___ 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] Feature request: setuppapersize
Hi Aditya,Testing your minimal example:\setuppapersize[A5]\showframe\starttext\dorecurse{10}{\input knuth \endgraf}\stoptextit seems that I do get an A5 papersize (ConTeXt version2011.02.25 22:03, andLuaTeX, Version beta-0.65.0-2010121316). I attach the PDF file for your information (since I don't know how to get pdfinfo…).Best regards: OK test-A5.pdf Description: Adobe PDF document On 19 mars 2011, at 18:59, Aditya Mahajan wrote:[…]I don't know if something changed, but this has stoopped working.\setuppapersize[A5]\starttext\dorecurse{10}{\input knuth \endgraf}\stoptextWith MkII I get$pdfinfo page-test.pdfTitle: page-testSubject:Keywords:Author:Creator: ConTeXt - 2011.02.25 22:03Producer: pdfTeX-1.40.11CreationDate: Sat Mar 19 13:50:49 2011ModDate: ConTeXt - 2011.02.25 22:03Tagged: noPages: 5Encrypted: noPage size: 595.276 x 841.89 pts (A4)File size: 33436 bytesOptimized: noPDF version: 1.5With MkIV:$pdfinfo page-test.pdf Title: page-testCreator: ConTeXt - 2011.02.25 22:03Producer: LuaTeX-0.65.0CreationDate: Sat Mar 19 13:53:29 2011ModDate: Sat Mar 19 13:53:29 2011Tagged: noPages: 5Encrypted: noPage size: 595.276 x 841.89 pts (A4)File size: 16057 bytesOptimized: noPDF version: 1.6Notice that the page size is still A4! Any idea why this is happening?(I get the right paper size with letter, A0, A1, A2, A3, but wrong paper sizes with anything smaller than A4).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-contextwebpage : http://www.pragma-ade.nl / http://tex.aanhet.netarchive : 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 ___
Re: [NTG-context] ... and emoticons
2011/3/20 Philipp A. flying-sh...@web.de On modern Linux distributions, there is support for the ellipsis (…) on the keyboard layout; The combination is [AltGr+.] Not all. In openSUSE that is not the case. I made it for myself. I have a file /SharedFunctions/Xmodmap.extra which I use with: xmodmap /SharedFunctions/Xmodmap.extra In this I have now: keysym period= period greater ellipsis That does the trick. If you are interested in the complete file: I have it attached. -- Cecil Westerhof Xmodmap.extra Description: Binary data ___ 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] Use of em dash and en dash
Until now I always used a - (minus sign) to define a sub sentence or for an optional word, like: This is -now- not necessary, I understood that normally you use the em dash for this. But for only a word, this seems a little big. Could I then use an en dash or should I keep using a minus sign? In which other places should they be used? -- Cecil Westerhof ___ 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] Use of em dash and en dash
Am Mon, 21 Mar 2011 10:51:44 +0100 schrieb Cecil Westerhof: Until now I always used a - (minus sign) to define a sub sentence or for an optional word, like: This is -now- not necessary, I understood that normally you use the em dash for this. But for only a word, this seems a little big. Could I then use an en dash or should I keep using a minus sign? It depends. In germany I would use an en dash and put spaces around it: dies ist -- noch -- nicht notwendig. Older english books often use --- without spaces: is---now. But spaces and endash with spaces are used too: http://en.wikipedia.org/wiki/Dash#En_dash_versus_em_dash So check the typography rules of your country/language. -- Ulrike Fischer ___ 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] Use of em dash and en dash
2011/3/21 Ulrike Fischer ne...@nililand.de Am Mon, 21 Mar 2011 10:51:44 +0100 schrieb Cecil Westerhof: Until now I always used a - (minus sign) to define a sub sentence or for an optional word, like: This is -now- not necessary, I understood that normally you use the em dash for this. But for only a word, this seems a little big. Could I then use an en dash or should I keep using a minus sign? It depends. In germany I would use an en dash and put spaces around it: dies ist -- noch -- nicht notwendig. Older english books often use --- without spaces: is---now. But spaces and endash with spaces are used too: http://en.wikipedia.org/wiki/Dash#En_dash_versus_em_dash So check the typography rules of your country/language. I found a few things on http://nl.wikipedia.org/wiki/Gedachtestreepje en related pages. It would be customary to use the endash, but emdash can be used also. I think I am going for the endash. So I change it again. It also says that spaces should be used, but I never saw that. At the moment I will not use it. (It is clear where the sub sentence starts and ends.) But I'll do some more research on it. -- Cecil Westerhof ___ 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] Feature request: setuppapersize
... and that's what happens if I don't read the whole thread :D sorry. @Kavian: the attached PDF is A4 (does your PDF-reader not show the paper dimensions in some kind of proprieties dialog?! Adobe Reader sure does) As for the issue: same behavior here. I, too, find it confusing when I dont get the desired size by using only one argument. +1 for change. -Ursprüngliche Nachricht- Von: Aditya Mahajan [mailto:adit...@umich.edu] Gesendet: Montag, 21. März 2011 00:43 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Feature request: setuppapersize On Sun, 20 Mar 2011, C. wrote: Did you try \setuppapersize[A5][A5] ? According to http://wiki.contextgarden.net/Reference/en/setuppapersize second argument (the print paper size) is A4 by default. About two months back I had requested that the second argument be made optional. Hans had implemented that request, but it does not always work (I don't know if this is a regression over the original implemenetation, or it never worked correctly). 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 ___
Re: [NTG-context] ... and emoticons
2011/3/21 Cecil Westerhof cldwester...@gmail.com 2011/3/20 Philipp A. flying-sh...@web.de On modern Linux distributions, there is support for the ellipsis (…) on the keyboard layout; The combination is [AltGr+.] Not all. In openSUSE that is not the case. I made it for myself. I have a file /SharedFunctions/Xmodmap.extra which I use with: xmodmap /SharedFunctions/Xmodmap.extra In this I have now: keysym period= period greater ellipsis That does the trick. If you are interested in the complete file: I have it attached. -- Cecil Westerhof oh, i guess you’d like to file a bug request for this. it’s quite useful and has no drawbacks at all. i think one of the greatest reasons why linux isn’t adapted as desktop os is that you can’t just say sth. like i did and assume it it right for everyone. (missing OEM installs are the biggest reason, though) but i don’t want to discuss this here ;) it’s great to have both a reasonable keyboard layout and a text processor which can understand the symbols. i hope one day i’ll get to print my own keyboard with math symbols all over. it would greatly improve the readability of context files when they contain unicode math stuff like \startformula ∫₀³ xⁿφ₁₂(x) \, ⅆx \stopformula ___ 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] Footnote disappears (TABLE, itemize)
2011/3/20 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 20.03.2011 um 22:08 schrieb Vedran Miletić: Hi, the following code makes first footnote disappear. \starttext \placetable{My table}{\bTABLE \bTR \bTD {\bf Something} \eTD \bTD \startitemize[1, packed] \item First \item Second\footnote{test1} hello \item Third\footnote{test2} hello \stopitemize \eTD \eTR \eTABLEbody \eTABLE} \stoptext Add \automigrateinserts or use local footnotes, be aware that floats and footnotes don’t work well together. Thanks, but please consider this: \starttext \placetable{My table}{\bTABLE \bTR \bTD {\bf Something} \eTD \bTD \startitemize[1, packed] \item First\footnote{test1} hello \item Second\footnote{test2} hello \stopitemize \eTD \eTR \eTABLEbody \eTABLE} \stoptext both footnotes now appear; or even this: \starttext \placetable{My table}{\bTABLE \bTR \bTD {\bf Something} \eTD \bTD \startitemize[1, packed] \item First\footnote{test1} hello \item Second\footnote{test2} hello \item Third\footnote{test3} hello \stopitemize \eTD \eTR \eTABLEbody \eTABLE} \stoptext all three footnotes appear. Regards, Vedran Miletić ___ 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] criterium=cite
Dear Hans, What is the status of criterium=cite in bib module for MKIV? \placepublications doesn't want to leave the uncited references out. (There are workarounds like making copies of bibliography and only include the items that have to be cited, but it is not too convenient to use.) Thanks a lot, Mojca ___ 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] criterium=cite
On Mon, 21 Mar 2011 14:42:36 +0100 Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: Dear Hans, What is the status of criterium=cite in bib module for MKIV? \placepublications doesn't want to leave the uncited references out. (There are workarounds like making copies of bibliography and only include the items that have to be cited, but it is not too convenient to use.) Thanks a lot, Mojca Mojca, have you seen this? [But I don't know what the status of it is] http://archive.contextgarden.net/message/20110306.204956.f965473e.en.html 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 ___
Re: [NTG-context] criterium=cite
On Mon, Mar 21, 2011 at 14:49, Thomas Schmitz wrote: On Mon, 21 Mar 2011 14:42:36 +0100 Mojca Miklavec wrote: Dear Hans, What is the status of criterium=cite in bib module for MKIV? \placepublications doesn't want to leave the uncited references out. (There are workarounds like making copies of bibliography and only include the items that have to be cited, but it is not too convenient to use.) Thanks a lot, Mojca Mojca, have you seen this? [But I don't know what the status of it is] http://archive.contextgarden.net/message/20110306.204956.f965473e.en.html Oh, no, I missed that. Thanks a lot. criterium=text works fine, but: - I would also prefer to have criterium=cite as a synonym (or as the only available command for that matter; I'm not sure how many people started using criterium=text at all). - In MKII criterium=cite is the default behaviour. I would prefer that to be the default behaviour in MKIV as well (it is acceptable if it is not since there is a workaround, but I see no reason for changing the default behaviour without any technical reasons.) Mojca ___ 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] referring to floats in xml
On Mon, 21 Mar 2011, R. Ermers wrote: Thanks, Aditya, The first problem is adequately solved by adding []. I'll prepare an example for the second problem. A related problem is referring to sections and other blocks. section id=sec:cowstitleCows/title paracows cows cows. As I told in xref linkend=sec:cows//para/section The title is mapped as follows (lpath): \xmlsetsetup{#1}{section/title}{xml:section/title} \startxmlsetups xml:section:title \section{\xmlflush{#1}} \stopxmlsetups The section is not mapped: \startxmlsetups xml:section \xmlflush{#1} \stopxmlsetups Adding [\xmlatt{#1}{id}] to xml:section:title does not work of course. Using [\xmlatt{#1}{id}] with xml:section puts the id before the \section command. I think one of the other commands has to be used in such a way that the id is flushed forward after the \section command. Map section to include both id and title. (Untested) \startxmlsetups xml:section \section[\xmlatt{#1}{id}]{\xmlfirst{#1}{/title}} % or slightly better % \section[\xmlattdef{#1}{id}{+}]{\xmlfirst{#1}{/title}} % Then flush para separately % \xmlall{#1}{/para} % or % \xmlconcat {#1} {/para} {\par} % or better, add a contents tag around the contents % section title ... /title % contents ... /contents % /section % and then use % \xmlfirst{#1}{/contents} \stopxmlsetups 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 ___
Re: [NTG-context] Feature request: setuppapersize
Am 21.03.2011 um 00:43 schrieb Aditya Mahajan: About two months back I had requested that the second argument be made optional. Hans had implemented that request, but it does not always work (I don't know if this is a regression over the original implemenetation, or it never worked correctly). I doubt if it has ever worked because after i looked at the source for the defintion of \setuppapersize i see that Hans (i mean samesized) code can’t work. Wolfgang ___ 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] circled number for item head
Am 21.03.2011 um 00:39 schrieb Jeong Dalyoung: Dear all, I'd like to use circled number for item head. I found one method which use a counter as follows: - http://www.ntg.nl/pipermail/ntg-context/2009/041430.html - http://www.ntg.nl/pipermail/ntg-context/2006/017319.html Wolfgang ___ 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] Feature request: setuppapersize
On Mon, 21 Mar 2011, Wolfgang Schuster wrote: Am 21.03.2011 um 00:43 schrieb Aditya Mahajan: About two months back I had requested that the second argument be made optional. Hans had implemented that request, but it does not always work (I don't know if this is a regression over the original implemenetation, or it never worked correctly). I doubt if it has ever worked because after i looked at the source for the defintion of \setuppapersize i see that Hans (i mean samesized) code can’t work. So, my testing was not thorough in the first place :( Hans, can you look into this again? 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] Need help with the table of contents
Hello everybody, I have a little issue with the table of contents. The document I am writing consists of several parts and now my question is the following: In the table of contents, the line corresponding to the start of a new part always starts like Part 1 Name of first part. How do I get rid of the Part, so that the corresponding line starts directly with the number of the part like 1 Name of the first Part? Thanks alot, Julian -- Julian Becker Institut für Angewandte Physik, R.123 Westfälische Wilhelms-Universität Münster Corrensstr. 2/4 48149 Münster / Westfalen Tel. 0251 83-3 61 53 Mob. 0151 599 848 29 e-mail: j_bec...@uni-muenster.de Keep thy heart with all diligence; for it is the wellspring of life. ___ 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] Need help with the table of contents
Am 21.03.2011 um 18:14 schrieb Julian Becker: Hello everybody, I have a little issue with the table of contents. The document I am writing consists of several parts and now my question is the following: In the table of contents, the line corresponding to the start of a new part always starts like Part 1 Name of first part. How do I get rid of the Part, so that the corresponding line starts directly with the number of the part like 1 Name of the first Part? \setuplist[part][label=no] Wolfgang ___ 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] Need help with the table of contents
Thank you Wolfgang for your quick response. Looks great now! 2011/3/21 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 21.03.2011 um 18:14 schrieb Julian Becker: Hello everybody, I have a little issue with the table of contents. The document I am writing consists of several parts and now my question is the following: In the table of contents, the line corresponding to the start of a new part always starts like Part 1 Name of first part. How do I get rid of the Part, so that the corresponding line starts directly with the number of the part like 1 Name of the first Part? \setuplist[part][label=no] Wolfgang ___ 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 ___ -- Julian Becker Institut für Angewandte Physik, R.123 Westfälische Wilhelms-Universität Münster Corrensstr. 2/4 48149 Münster / Westfalen Tel. 0251 83-3 61 53 Mob. 0151 599 848 29 e-mail: j_bec...@uni-muenster.de Keep thy heart with all diligence; for it is the wellspring of life. ___ 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] \setupindenting
I just discovered \setupindenting. I use: \setupindenting[yes, medium] This does not indent the first paragraph on a page. Is it possible to also not indent a paragraph after a blank? -- Cecil Westerhof ___ 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] \setupindenting
Am 21.03.2011 um 19:28 schrieb Cecil Westerhof: I just discovered \setupindenting. I use: \setupindenting[yes, medium] This does not indent the first paragraph on a page. Is it possible to also not indent a paragraph after a blank? Not with \blank but you can create a command which does it, e.g. \def\myblank {\dosingleempty\domyblank} \def\domyblank[#1]% {\iffirstargument \blank[#1]% \else \blank \fi \noindentation} or you use the fancybreak module: \usemodule[fancybreak] \definefancybreak[myblank][indentnext=no] \setupindenting[yes,medium] \starttext \input ward \blank \input ward \myblank \input ward \stoptext Wolfgang ___ 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] setupinteraction
I use setupinteraction to set certain properties. But it looks like that subject can not be set. Is this true? Also keywords is a box (in acroread). Would it be possible to get the keywords under each-other instead as one long line? Would it be possible to change the Document Restrictions? In acroread these are shown under security. -- Cecil Westerhof ___ 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] Is it possible to keep the zoom mode when following a link
When following a link in my generated PDF, acroread always goes to full page view. I would like that the document would stay in the same zoom and that what was linked to comes at the top of the page. (It is possible, because I have seen documents doing this.) Would this be possible with ConTeXt? -- Cecil Westerhof ___ 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] Is it possible to keep the zoom mode when following a link
On 2011-03-21 19:47:36, Cecil Westerhof wrote: When following a link in my generated PDF, acroread always goes to full page view. I would like that the document would stay in the same zoom and that what was linked to comes at the top of the page. (It is possible, because I have seen documents doing this.) Would this be possible with ConTeXt? Hi Cecil, do you mean something like this: · \setupinteraction [focus=standard,state=start] \starttext \reference [getme] {}% Need to get here … \page Here we go to \at{page}[getme]. \stoptext · I couldn’t check if acroread behaves differently cause it’s not installed on my work laptop. Also possibly of interest: http://wiki.contextgarden.net/Interaction#Default_focus_mode Regards, Philipp -- Cecil Westerhof ___ 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 ___ pgpHKHwvNXxkC.pgp Description: PGP signature ___ 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] \setupindenting
2011/3/21 Wolfgang Schuster schuster.wolfg...@googlemail.com I just discovered \setupindenting. I use: \setupindenting[yes, medium] This does not indent the first paragraph on a page. Is it possible to also not indent a paragraph after a blank? Not with \blank but you can create a command which does it, e.g. \def\myblank {\dosingleempty\domyblank} \def\domyblank[#1]% {\iffirstargument \blank[#1]% \else \blank \fi \noindentation} or you use the fancybreak module: \usemodule[fancybreak] \definefancybreak[myblank][indentnext=no] \setupindenting[yes,medium] \starttext \input ward \blank \input ward \myblank \input ward \stoptext I used the second method. Works. I only have one slight problem. When a paragraph without anything between it and the previous paragraph is the first element on a page, it gets indented. It is not a very big problem, but it would be nicer -I think- if it was not indented. Is this possible? -- Cecil Westerhof ___ 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] Is it possible to keep the zoom mode when following a link
2011/3/21 Philipp Gesang pges...@ix.urz.uni-heidelberg.de On 2011-03-21 19:47:36, Cecil Westerhof wrote: When following a link in my generated PDF, acroread always goes to full page view. I would like that the document would stay in the same zoom and that what was linked to comes at the top of the page. (It is possible, because I have seen documents doing this.) Would this be possible with ConTeXt? Hi Cecil, do you mean something like this: · \setupinteraction [focus=standard,state=start] That is exactly what I mend. One small problem. When I click on a link in the TOC, it goes to the place just under the section. So the section title (on which you clicked) is just 'above' the screen. Not very important, but I find it a little strange. Is this default behavior? Also possibly of interest: http://wiki.contextgarden.net/Interaction#Default_focus_mode Certainly. Now the complete line is click-able instead of only the section number. -- Cecil Westerhof ___ 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] ... and emoticons
On Mon 21 Mar 2011, Philipp A. wrote: oh, i guess you’d like to file a bug request for this. it’s quite useful and has no drawbacks at all. Well, the drawback is that it takes up a key combination :-). For example, in the US-international dead-key layout, AltGr+. applies an overdot diacritic to the next character, so remapping it to an ellipsis would remove that capability. You don't mention which keyboard layout you are using. i think one of the greatest reasons why linux isn’t adapted as desktop os is that you can’t just say sth. like i did and assume it it right for everyone. Both Linux and Windows offer a choice of hundreds of keyboard layouts, since different languages have different character sets (a US keymap would not gain much success in Greece). i hope one day i’ll get to print my own keyboard with math symbols all over. I did once turn a UK keyboard into a Swedish keyboard using white enamel paint, black marker pen, clear varnish, and a steady hand. The main problem was that the varnish started degrading after a couple of years' daily use. As an Emacs user, I've found that the easiest way to get rarely used Unicode symbols is to hit ctrl-x, 8, enter and type the name of the symbol (I believe the numbers also work but I have trouble remembering them). Also note that it's possible to switch between different keyboard layouts using a hotkey combination, which is handy e.g. for quickly entering Greek characters in a scientific document. Pont ___ 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] circled number for item head (Wolfgang Schuster)
Dear Wolfgang, Thank you for reminding me the thread. I also found it yesterday evening and it made me realize how dumb I am. I am so sorry to give you a needless work. I'd like to ask you one more. I was looking for a way to use some characters as an item head like \startitemize[a] because an official document usually use numbers and some characters as item heads. For consecutive characters in unicode, it is possible to do that using unicode. \def\circledja#1{\uchar{50}{95+#1}} \def\circledga#1{\uchar{50}{109+#1}} \def\circleden#1{\uchar{36}{207+#1}} and \defineconversion[][]. But for characters which are not listed consecutively, I don't know how to make it appear automatically. I may use \sym{} AC00, B098, B2E4, B77C, ... These are the same characters in the area 320E ~ 321B without parenthesis. Is it possible to make those characters appear automatically as item heads? I hope that it is not a silly question. Thank you again. Best regards, Dalyoung ___ 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] circled number for item head (Wolfgang Schuster)
On Tue, 22 Mar 2011, Jeong Dalyoung wrote: Dear Wolfgang, Thank you for reminding me the thread. I also found it yesterday evening and it made me realize how dumb I am. I am so sorry to give you a needless work. I'd like to ask you one more. I was looking for a way to use some characters as an item head like \startitemize[a] because an official document usually use numbers and some characters as item heads. For consecutive characters in unicode, it is possible to do that using unicode. \def\circledja#1{\uchar{50}{95+#1}} \def\circledga#1{\uchar{50}{109+#1}} \def\circleden#1{\uchar{36}{207+#1}} and \defineconversion[][]. But for characters which are not listed consecutively, I don't know how to make it appear automatically. I may use \sym{} AC00, B098, B2E4, B77C, ... These are the same characters in the area 320E ~ 321B without parenthesis. Is it possible to make those characters appear automatically as item heads? \defineconversion[whatever][One, Two, Three, Four] \starttext \startitemize[whatever] \item First \item Second \item Third \stopitemize \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 ___
[NTG-context] withdots framing (sharing an example)
Good evening, dear ConTeXtists, Mr. Eyre in his conference proceedings paper to be (http://striz9.fame.utb.cz/docasne/bulletin/NEtypo.pdf) applies withdots framing via TikZ as he told me. I passed him one of your ideas (Aditya Mahajan, Wolfgang Schuster) and he slightly extended it using Metapost to fit his examples. I am just sharing it with all the sincere greetings. Pavel Striz http://striz9.fame.utb.cz/docasne/bulletin/framed.pdf http://striz9.fame.utb.cz/docasne/bulletin/framed.tgz a.k.a. \startuniqueMPgraphic{Label} path p; p := (0,0) -- (OverlayWidth,0) -- (OverlayWidth, OverlayHeight) -- (0, OverlayHeight) -- (0,0); draw p withpen pencircle scaled 1pt dashed withdots; setbounds currentpicture to boundingbox OverlayBox; \stopuniqueMPgraphic \defineoverlay[Label][\useMPgraphic{Label}] \defineframed[Text][background=Label,frame=off,location=low] \starttext AAA \Text{BBB} CCC \Text{DDD} EEE \def\Picture#1#2#3% {% \vbox to 3in% {% \vfil% \placefigure[left][#3]% {% \hangindent=0.5pt\hangafter=1{}% #2% }% {% \hskip-11pt\hbox to 3in% {% \Text% {% \externalfigure[#1][width=3in]% }% \hss% }% }% }% }% \Picture{Distract.pdf}{Caption}{Refmarker}% \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 ___
[NTG-context] Endash tlig not working
Hello, the automatic replacement of -- to endash does not work with a certain font. \endash does work and produces the expected symbol. I also have these lines in my code: \definefontfeature[tlig][default][tlig=yes] \addff{tlig} I checked that the endash is at position U+2013 in the font. What else could be wrong here? ___ 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] circled number for item head
Dear Aditya, Thank you for the solution. You cleared one of my wish list in one sentence. \defineconversion[whatever][One, Two, Three, Four] I was just looking for a way to use the counter. Best regards, Dalyoung ___ 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] withdots framing (sharing an example)
On Tue, Mar 22, 2011 at 1:02 AM, Pavel Striz st...@fame.utb.cz wrote: Good evening, dear ConTeXtists, Mr. Eyre in his conference proceedings paper to be (http://striz9.fame.utb.cz/docasne/bulletin/NEtypo.pdf) applies withdots framing via TikZ as he told me. I passed him one of your ideas (Aditya Mahajan, Wolfgang Schuster) and he slightly extended it using Metapost to fit his examples. I am just sharing it with all the sincere greetings. why don't you put it on the wiki ? -- 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 ___