Re: [NTG-context] MKII MKIV difference between \textrule
On 15 sept. 2012, at 00:12, luigi scarso luigi.sca...@gmail.com wrote: On Fri, Sep 14, 2012 at 11:50 PM, Alessandro Perucchi alessan...@perucchi.org wrote: On 14 Sep 2012, at 13:26, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: There is a vertical skip missing in the MkIV version of the macros. pack-mrl.mkiv \def\pack_textrule_following#1% {\doifelsenothing{#1} -{\nointerlineskip + {\vskip\dimexpr\strutdp+.5ex\ifdim\prevdepth\strutdp\else\ifdim\prevdepth\zeropoint-\prevdepth\fi\fi\relax + \nointerlineskip \dontleavehmode\vbox {\color[\directtextrulesparameter\c!rulecolor] {\hrule\s!depth\directtextrulesparameter\c!rulethickness\s!height\zeropoint\s!width\availablehsize}}} {\pack_textrule_with_text{#1}}% \ifvmode \prevdepth\zeropoint \fi} I've tried to patch pack-mrl.mkiv and I still get the error of spacing before the second \textrule. have you regenerated the format ? Well no I didn't know!!! and after searching how to do it, I found and yes it works :-) Thanks!! Sincerely yours, Alessandro___ 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] MKII MKIV difference between \textrule
Am 14.09.2012 um 23:50 schrieb Alessandro Perucchi alessan...@perucchi.org: And apparently the command \starttextrule ... \stoptextrule doesn't work (this was explain in the cont-entp.pdf page 204) in either mkii mliv. This does work for me: \starttext blah blah blah \starttextrule{Testing head} blah blah blah \stoptextrule blah blah blah \stoptext But \starttext blah blah blah \starttextrule[top]{Testing head} blah blah blah \stoptextrule blah blah blah \stoptext doesn't, and this possibility is explain in the doc, but apparently it doesn't work. So either the doc is wrong, the command is wrong or I'm doing something wrong :-D Remove [top] from \starttextrule. All possible combinations are: \starttext blah blah blah \textrule{Top} blah blah blah \textrule blah blah blah \textrule[top]{Top} blah blah blah \textrule blah blah blah \textrule[top]{Top} blah blah blah \textrule[bottom]{Bottom} blah blah blah \textrule[top]{Top} blah blah blah \textrule[middle]{Middle} blah blah blah \textrule[bottom]{Bottom} blah blah blah \starttextrule{Top} blah blah blah \stoptextrule blah blah blah \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 ___
Re: [NTG-context] Strange bug with reversed itemize
Am 15.09.2012 um 00:06 schrieb Aditya Mahajan adit...@umich.edu: Thanks for the diagnosis. What will be a good way to fix this? I think that \expanded{\setupcounter[#1][\c!start=\ifx\p_start\empty0\else\number\p_start\fi.,...]} should work (but I haven't tested it yet). I would do the expansion here but with \normalexpanded. \def\strc_counter_setup_using_parameter#1#2% name \someparameter {\edef\p_start{#2\c!start}% %\setupcounter \normalexpanded{\setupcounter [#1] [ \c!start=\ifx\p_start\empty0\else\number\p_start\fi, \c!state=#2\c!state, % beware, == start \c!way=#2\c!way, % \c!prefix=#2\c!prefix, \c!prefixseparatorset=#2\c!prefixseparatorset, \c!prefixconversion=#2\c!prefixconversion, \c!prefixconversionset=#2\c!prefixconversionset, \c!prefixstarter=#2\c!prefixstarter, \c!prefixstopper=#2\c!prefixstopper, \c!prefixset=#2\c!prefixset, \c!prefixsegments=#2\c!prefixsegments, \c!prefixset=#2\c!prefixset, \c!prefixconnector=#2\c!prefixconnector, % \c!numberseparatorset=#2\c!numberseparatorset, \c!numberconversion=#2\c!numberconversion, \c!numberconversionset=#2\c!numberconversionset, \c!numberstarter=#2\c!numberstarter, \c!numberstopper=#2\c!numberstopper, %\c!numbersegments=#2\c!numbersegments]} \c!numbersegments=#2\c!numbersegments]}} 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] View all numbers of sub(...)section
Hello ConTeXist. Is there possibility view all subsubsection number (ie in format 2.3.4 - it mean with section and also subsection number) without \section{} and \subsection{} command using previously? I need to start a separate section number from a certain number (inserted into an existing document) Thanx Jaroslav Hajtmar Here is my example: \setupheadnumber[section][2] \setupheadnumber[subsection][3] % \setupheadnumber[subsubsection][4] % \setuppagenumber[number=234] \starttext %\section{} % I can't view section here %\subsection{} % I can't view subsection here too \subsubsection{TEST} I would like get 2.3.5 TEST blablabla \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] MKII MKIV difference between \textrule
On 15 sept. 2012, at 09:28, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Remove [top] from \starttextrule. All possible combinations are: (...) Hello Wolfgang, Thanks, now I understand how this command works. So probably it would be good to correct the documentation accordingly ( even if all coders hate that part :-D ) Or maybe update the wiki... Is anybody able to modify the wiki? if yes then I would be more than happy to do it. Sincerely yours, Alessandro ___ 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] MKII MKIV difference between \textrule
Hi Alessandro, On Sat, Sep 15, 2012 at 12:00 PM, Alessandro Perucchi alessan...@perucchi.org wrote: So probably it would be good to correct the documentation accordingly ( even if all coders hate that part :-D ) Or maybe update the wiki... Is anybody able to modify the wiki? if yes then I would be more than happy to do it. Yes, anybody can edit the wiki once the make an account. You're more than welcome to! Here is the page on textrule: http://wiki.contextgarden.net/Command/textrule 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] View all numbers of sub(...)section
Am 15.09.2012 um 11:46 schrieb Jaroslav Hajtmar hajt...@gyza.cz: Hello ConTeXist. Is there possibility view all subsubsection number (ie in format 2.3.4 - it mean with section and also subsection number) without \section{} and \subsection{} command using previously? I need to start a separate section number from a certain number (inserted into an existing document) Thanx Jaroslav Hajtmar Here is my example: \setupheadnumber[section][2] \setupheadnumber[subsection][3] % \setupheadnumber[subsubsection][4] % \setuppagenumber[number=234] \starttext %\section{} % I can't view section here %\subsection{} % I can't view subsection here too \subsubsection{TEST} I would like get 2.3.5 TEST blablabla \stoptext How about this: \setupheadnumber[section] [1] \setupheadnumber[subsection] [2] \setupheadnumber[subsubsection][4] \setuphead[section,subsection][placehead=hidden] \setuphead[subsubsection] [placehead=yes] \starttext \section{} \subsection{} \subsubsection{TEST} \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 ___
Re: [NTG-context] View all numbers of sub(...)section
Thanx Wolfgang. Thank you. Everything works. While I was looking, I could not find it. I wanted to put your example into the wiki, but the wiki shows the numbers and hidden sections, so I did not there yet. Thanks again Jaroslav Dne 15.9.2012 12:37, Wolfgang Schuster napsal(a): Am 15.09.2012 um 11:46 schrieb Jaroslav Hajtmarhajt...@gyza.cz: Hello ConTeXist. Is there possibility view all subsubsection number (ie in format 2.3.4 - it mean with section and also subsection number) without \section{} and \subsection{} command using previously? I need to start a separate section number from a certain number (inserted into an existing document) Thanx Jaroslav Hajtmar Here is my example: \setupheadnumber[section][2] \setupheadnumber[subsection][3] % \setupheadnumber[subsubsection][4] % \setuppagenumber[number=234] \starttext %\section{} % I can't view section here %\subsection{} % I can't view subsection here too \subsubsection{TEST} I would like get 2.3.5 TEST blablabla \stoptext How about this: \setupheadnumber[section] [1] \setupheadnumber[subsection] [2] \setupheadnumber[subsubsection][4] \setuphead[section,subsection][placehead=hidden] \setuphead[subsubsection] [placehead=yes] \starttext \section{} \subsection{} \subsubsection{TEST} \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 ___
Re: [NTG-context] Change color of EPS file.
On Sep 15, 2012, at 1:36 AM, luigi scarso luigi.sca...@gmail.commailto:luigi.sca...@gmail.com wrote: On Sat, Sep 15, 2012 at 1:23 AM, Troy Henderson thend...@gmail.commailto:thend...@gmail.com wrote: and which uses Cairo and Poppler for its conversion. Now in order for my simplistic filter to function, Why 'simplistic' and not 'simple' ? I always thought that its meaning is negative (something like 'simplistic' is a bad imitation of 'simple' ) That's often true. Here I think the intention is to imply that the filter is simple and naive, perhaps not robust, might not work for everybody, etc. In that sense, the meaning does have a negative connotation. This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___ 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] View all numbers of sub(...)section
Hi Jaroslav, While I was looking, I could not find it. I wanted to put your example into the wiki, but the wiki shows the numbers and hidden sections, so I did not there yet. That might be because the wiki uses mkii by default; to use mkiv write context mode=mkiv If you can't get an example to work at all, simply write the code inside texcode.../texcode, instead. The picture of the output is nice to have, but not essential. The code is still useful. Cheers, Sietse Thanx Wolfgang. Thank you. Everything works. While I was looking, I could not find it. I wanted to put your example into the wiki, but the wiki shows the numbers and hidden sections, so I did not there yet. Thanks again Jaroslav On Sat, Sep 15, 2012 at 1:34 PM, Jaroslav Hajtmar hajt...@gyza.cz wrote: Thanx Wolfgang. Thank you. Everything works. While I was looking, I could not find it. I wanted to put your example into the wiki, but the wiki shows the numbers and hidden sections, so I did not there yet. Thanks again Jaroslav Dne 15.9.2012 12:37, Wolfgang Schuster napsal(a): Am 15.09.2012 um 11:46 schrieb Jaroslav Hajtmarhajt...@gyza.cz: Hello ConTeXist. Is there possibility view all subsubsection number (ie in format 2.3.4 - it mean with section and also subsection number) without \section{} and \subsection{} command using previously? I need to start a separate section number from a certain number (inserted into an existing document) Thanx Jaroslav Hajtmar Here is my example: \setupheadnumber[section][2] \setupheadnumber[subsection][3] % \setupheadnumber[subsubsection][4] % \setuppagenumber[number=234] \starttext %\section{} % I can't view section here %\subsection{} % I can't view subsection here too \subsubsection{TEST} I would like get 2.3.5 TEST blablabla \stoptext How about this: \setupheadnumber[section] [1] \setupheadnumber[subsection] [2] \setupheadnumber[subsubsection][4] \setuphead[section,subsection][placehead=hidden] \setuphead[subsubsection] [placehead=yes] \starttext \section{} \subsection{} \subsubsection{TEST} \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 ___ ___ 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] Change color of EPS file.
Whether the filter is simple or simplistic, it is odd that such a filter has not been abundantly available before. I often wondered years ago when I first started to understand the difference between raster and vector graphics why something so simple (or simplistic) could not be easily done. It was also strange to me that I couldn't easily create a TeX document with one set of graphics and have TeX generate two types of output, namely color and a grayscale, depending on the value of some parameters. Utilities are available in abundance which can transform raster graphics from color to grayscale, but until I created this yesterday, I have never seen a utility that keeps the graphic in vector format (i.e., never rasterizes it throughout the conversion) and converts it from color to grayscale. Until I read this thread, I guess I thought I was the only one that desired such a tool. I'm glad to see that at least I'm not alone. Troy ___ 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] View all numbers of sub(...)section
Thanx Sietse. I wikified it! (http://wiki.contextgarden.net/Command/setuphead). This is my first attempt :-). I finally get to it. It's very simple. I'll try over there now and give good advice. Jaroslav Hajtmar Dne 15.9.2012 14:48, Sietse Brouwer napsal(a): Hi Jaroslav, While I was looking, I could not find it. I wanted to put your example into the wiki, but the wiki shows the numbers and hidden sections, so I did not there yet. That might be because the wiki uses mkii by default; to use mkiv write context mode=mkiv If you can't get an example to work at all, simply write the code inside texcode.../texcode, instead. The picture of the output is nice to have, but not essential. The code is still useful. Cheers, Sietse Thanx Wolfgang. Thank you. Everything works. While I was looking, I could not find it. I wanted to put your example into the wiki, but the wiki shows the numbers and hidden sections, so I did not there yet. Thanks again Jaroslav On Sat, Sep 15, 2012 at 1:34 PM, Jaroslav Hajtmarhajt...@gyza.cz wrote: Thanx Wolfgang. Thank you. Everything works. While I was looking, I could not find it. I wanted to put your example into the wiki, but the wiki shows the numbers and hidden sections, so I did not there yet. Thanks again Jaroslav Dne 15.9.2012 12:37, Wolfgang Schuster napsal(a): Am 15.09.2012 um 11:46 schrieb Jaroslav Hajtmarhajt...@gyza.cz: Hello ConTeXist. Is there possibility view all subsubsection number (ie in format 2.3.4 - it mean with section and also subsection number) without \section{} and \subsection{} command using previously? I need to start a separate section number from a certain number (inserted into an existing document) Thanx Jaroslav Hajtmar Here is my example: \setupheadnumber[section][2] \setupheadnumber[subsection][3] % \setupheadnumber[subsubsection][4] % \setuppagenumber[number=234] \starttext %\section{} % I can't view section here %\subsection{} % I can't view subsection here too \subsubsection{TEST} I would like get 2.3.5 TEST blablabla \stoptext How about this: \setupheadnumber[section] [1] \setupheadnumber[subsection] [2] \setupheadnumber[subsubsection][4] \setuphead[section,subsection][placehead=hidden] \setuphead[subsubsection] [placehead=yes] \starttext \section{} \subsection{} \subsubsection{TEST} \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 ___ ___ 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] View all numbers of sub(...)section
Hello Wolfgang, I feel that Your solution insert some vertical space above subsubsection text. Is it possible to get rid of it somehow? I try \removeunwantedspaces, \blank[back] etc., but without efect. Thanx Jaroslav Dne 15.9.2012 16:36, Jaroslav Hajtmar napsal(a): Thanx Sietse. I wikified it! (http://wiki.contextgarden.net/Command/setuphead). This is my first attempt :-). I finally get to it. It's very simple. I'll try over there now and give good advice. Jaroslav Hajtmar Dne 15.9.2012 14:48, Sietse Brouwer napsal(a): Hi Jaroslav, While I was looking, I could not find it. I wanted to put your example into the wiki, but the wiki shows the numbers and hidden sections, so I did not there yet. That might be because the wiki uses mkii by default; to use mkiv write context mode=mkiv If you can't get an example to work at all, simply write the code inside texcode.../texcode, instead. The picture of the output is nice to have, but not essential. The code is still useful. Cheers, Sietse Thanx Wolfgang. Thank you. Everything works. While I was looking, I could not find it. I wanted to put your example into the wiki, but the wiki shows the numbers and hidden sections, so I did not there yet. Thanks again Jaroslav On Sat, Sep 15, 2012 at 1:34 PM, Jaroslav Hajtmarhajt...@gyza.cz wrote: Thanx Wolfgang. Thank you. Everything works. While I was looking, I could not find it. I wanted to put your example into the wiki, but the wiki shows the numbers and hidden sections, so I did not there yet. Thanks again Jaroslav Dne 15.9.2012 12:37, Wolfgang Schuster napsal(a): Am 15.09.2012 um 11:46 schrieb Jaroslav Hajtmarhajt...@gyza.cz: Hello ConTeXist. Is there possibility view all subsubsection number (ie in format 2.3.4 - it mean with section and also subsection number) without \section{} and \subsection{} command using previously? I need to start a separate section number from a certain number (inserted into an existing document) Thanx Jaroslav Hajtmar Here is my example: \setupheadnumber[section][2] \setupheadnumber[subsection][3] % \setupheadnumber[subsubsection][4] % \setuppagenumber[number=234] \starttext %\section{} % I can't view section here %\subsection{} % I can't view subsection here too \subsubsection{TEST} I would like get 2.3.5 TEST blablabla \stoptext How about this: \setupheadnumber[section] [1] \setupheadnumber[subsection] [2] \setupheadnumber[subsubsection][4] \setuphead[section,subsection][placehead=hidden] \setuphead[subsubsection] [placehead=yes] \starttext \section{} \subsection{} \subsubsection{TEST} \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 ___ ___ 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] View all numbers of sub(...)section
Try \setuphead[...][placehead=empty] Aditya On Sat, 15 Sep 2012, Jaroslav Hajtmar wrote: Hello Wolfgang, I feel that Your solution insert some vertical space above subsubsection text. Is it possible to get rid of it somehow? I try \removeunwantedspaces, \blank[back] etc., but without efect. Thanx Jaroslav Dne 15.9.2012 16:36, Jaroslav Hajtmar napsal(a): Thanx Sietse. I wikified it! (http://wiki.contextgarden.net/Command/setuphead). This is my first attempt :-). I finally get to it. It's very simple. I'll try over there now and give good advice. Jaroslav Hajtmar Dne 15.9.2012 14:48, Sietse Brouwer napsal(a): Hi Jaroslav, While I was looking, I could not find it. I wanted to put your example into the wiki, but the wiki shows the numbers and hidden sections, so I did not there yet. That might be because the wiki uses mkii by default; to use mkiv write context mode=mkiv If you can't get an example to work at all, simply write the code inside texcode.../texcode, instead. The picture of the output is nice to have, but not essential. The code is still useful. Cheers, Sietse Thanx Wolfgang. Thank you. Everything works. While I was looking, I could not find it. I wanted to put your example into the wiki, but the wiki shows the numbers and hidden sections, so I did not there yet. Thanks again Jaroslav On Sat, Sep 15, 2012 at 1:34 PM, Jaroslav Hajtmarhajt...@gyza.cz wrote: Thanx Wolfgang. Thank you. Everything works. While I was looking, I could not find it. I wanted to put your example into the wiki, but the wiki shows the numbers and hidden sections, so I did not there yet. Thanks again Jaroslav Dne 15.9.2012 12:37, Wolfgang Schuster napsal(a): Am 15.09.2012 um 11:46 schrieb Jaroslav Hajtmarhajt...@gyza.cz: Hello ConTeXist. Is there possibility view all subsubsection number (ie in format 2.3.4 - it mean with section and also subsection number) without \section{} and \subsection{} command using previously? I need to start a separate section number from a certain number (inserted into an existing document) Thanx Jaroslav Hajtmar Here is my example: \setupheadnumber[section][2] \setupheadnumber[subsection][3] % \setupheadnumber[subsubsection][4] % \setuppagenumber[number=234] \starttext %\section{} % I can't view section here %\subsection{} % I can't view subsection here too \subsubsection{TEST} I would like get 2.3.5 TEST blablabla \stoptext How about this: \setupheadnumber[section] [1] \setupheadnumber[subsection] [2] \setupheadnumber[subsubsection][4] \setuphead[section,subsection][placehead=hidden] \setuphead[subsubsection] [placehead=yes] \starttext \section{} \subsection{} \subsubsection{TEST} \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 ___ ___ 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 ___
Re: [NTG-context] View all numbers of sub(...)section
Aditya, thankx, BUT here is correction of my previous statement: Wolfgang's solution: \setuphead [section, subsection] [placehead = hidden] works correctly and does not insert any vertical space!!! Unfortunately, it works in my minimal example only, but in my real application, this option does not work because the title added another level of numbering. In my real application works properly choice: \setuphead [section, subsection] [placehead = no], but that in turn inserts vertical space above the subsubsection title. Aditya's option \setuphead [section, subsection] [placehead = empty] for me cause freezing LuaTEX. (I compile MkIV TL2010, because my real source application is now with Standalone (minimals) version incompatible) Jaroslav Hajtmar Dne 15.9.2012 18:23, Aditya Mahajan napsal(a): Try \setuphead[...][placehead=empty] Aditya On Sat, 15 Sep 2012, Jaroslav Hajtmar wrote: Hello Wolfgang, I feel that Your solution insert some vertical space above subsubsection text. Is it possible to get rid of it somehow? I try \removeunwantedspaces, \blank[back] etc., but without efect. Thanx Jaroslav Dne 15.9.2012 16:36, Jaroslav Hajtmar napsal(a): Thanx Sietse. I wikified it! (http://wiki.contextgarden.net/Command/setuphead). This is my first attempt :-). I finally get to it. It's very simple. I'll try over there now and give good advice. Jaroslav Hajtmar Dne 15.9.2012 14:48, Sietse Brouwer napsal(a): Hi Jaroslav, While I was looking, I could not find it. I wanted to put your example into the wiki, but the wiki shows the numbers and hidden sections, so I did not there yet. That might be because the wiki uses mkii by default; to use mkiv write context mode=mkiv If you can't get an example to work at all, simply write the code inside texcode.../texcode, instead. The picture of the output is nice to have, but not essential. The code is still useful. Cheers, Sietse Thanx Wolfgang. Thank you. Everything works. While I was looking, I could not find it. I wanted to put your example into the wiki, but the wiki shows the numbers and hidden sections, so I did not there yet. Thanks again Jaroslav On Sat, Sep 15, 2012 at 1:34 PM, Jaroslav Hajtmarhajt...@gyza.cz wrote: Thanx Wolfgang. Thank you. Everything works. While I was looking, I could not find it. I wanted to put your example into the wiki, but the wiki shows the numbers and hidden sections, so I did not there yet. Thanks again Jaroslav Dne 15.9.2012 12:37, Wolfgang Schuster napsal(a): Am 15.09.2012 um 11:46 schrieb Jaroslav Hajtmarhajt...@gyza.cz: Hello ConTeXist. Is there possibility view all subsubsection number (ie in format 2.3.4 - it mean with section and also subsection number) without \section{} and \subsection{} command using previously? I need to start a separate section number from a certain number (inserted into an existing document) Thanx Jaroslav Hajtmar Here is my example: \setupheadnumber[section][2] \setupheadnumber[subsection][3] % \setupheadnumber[subsubsection][4] % \setuppagenumber[number=234] \starttext %\section{} % I can't view section here %\subsection{} % I can't view subsection here too \subsubsection{TEST} I would like get 2.3.5 TEST blablabla \stoptext How about this: \setupheadnumber[section] [1] \setupheadnumber[subsection] [2] \setupheadnumber[subsubsection][4] \setuphead[section,subsection][placehead=hidden] \setuphead[subsubsection] [placehead=yes] \starttext \section{} \subsection{} \subsubsection{TEST} \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 ___ ___ 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] Strange bug with reversed itemize
On Sat, 15 Sep 2012, Wolfgang Schuster wrote: Am 15.09.2012 um 00:06 schrieb Aditya Mahajan adit...@umich.edu: Thanks for the diagnosis. What will be a good way to fix this? I think that \expanded{\setupcounter[#1][\c!start=\ifx\p_start\empty0\else\number\p_start\fi.,...]} should work (but I haven't tested it yet). I would do the expansion here but with \normalexpanded. \def\strc_counter_setup_using_parameter#1#2% name \someparameter {\edef\p_start{#2\c!start}% %\setupcounter \normalexpanded{\setupcounter [#1] [ \c!start=\ifx\p_start\empty0\else\number\p_start\fi, \c!state=#2\c!state, % beware, == start \c!way=#2\c!way, % \c!prefix=#2\c!prefix, \c!prefixseparatorset=#2\c!prefixseparatorset, \c!prefixconversion=#2\c!prefixconversion, \c!prefixconversionset=#2\c!prefixconversionset, \c!prefixstarter=#2\c!prefixstarter, \c!prefixstopper=#2\c!prefixstopper, \c!prefixset=#2\c!prefixset, \c!prefixsegments=#2\c!prefixsegments, \c!prefixset=#2\c!prefixset, \c!prefixconnector=#2\c!prefixconnector, % \c!numberseparatorset=#2\c!numberseparatorset, \c!numberconversion=#2\c!numberconversion, \c!numberconversionset=#2\c!numberconversionset, \c!numberstarter=#2\c!numberstarter, \c!numberstopper=#2\c!numberstopper, %\c!numbersegments=#2\c!numbersegments]} \c!numbersegments=#2\c!numbersegments]}} Thanks. Hans, can you add this to strc-num.mkiv? 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] \items is buggy in mkiv
On Wed, 12 Sep 2012, Otared Kavian wrote: Dear Hans, I noticed that with the latest version of mkiv (ConTeXt ver: 2012.09.10 00:57) the command \items[location=bottom] does not behave as usual (in mkii the bejaviour is correct) Minimal example: \starttext \items[symbol=8,n=5,width=\hsize,location=bottom]{png,eps,pdf,jpg,tif} \blank \items[symbol=8,n=5,location=bottom]{png,eps,pdf,jpg,tif} \stoptext The syntax for MkIV is `alternative=bottom`. 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] \items is buggy in mkiv
Thanks Aditya: I added the new syntax to the wiki. http://wiki.contextgarden.net/Command/items Best regards: OK On 15 sept. 2012, at 20:10, Aditya Mahajan adit...@umich.edu wrote: On Wed, 12 Sep 2012, Otared Kavian wrote: Dear Hans, I noticed that with the latest version of mkiv (ConTeXt ver: 2012.09.10 00:57) the command \items[location=bottom] does not behave as usual (in mkii the bejaviour is correct) Minimal example: \starttext \items[symbol=8,n=5,width=\hsize,location=bottom]{png,eps,pdf,jpg,tif} \blank \items[symbol=8,n=5,location=bottom]{png,eps,pdf,jpg,tif} \stoptext The syntax for MkIV is `alternative=bottom`. 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 ___
[NTG-context] \everymath
I often want every math mode (between single $) be \displaystyle. In Plain TeX, you do something like \everymath={\displaystyle} Is the best ConTeXt way to do something like this? \appendtoks\displaystyle\to\everymathematics Or is there a key in \setupmathematics? Thanks, Michael This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___ 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 ___