[NTG-context] Typesetting levels of index differently
Dear list members, I would like the second level of an index item be typeset differently from the first level, e.g. as in \starttext \index{level+{\it second}} \completeindex \stoptext Instead of adding {\it ... } to each \index separately, could this be realized systematically, in e.g. one \setupregister command: \setupregister[.?.] \starttext \index{level+second} \completeindex % rendering 'second' as italic \stoptext Sytse ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in nothyphenated?
2015-09-23 5:00 GMT-05:00: > \ConTeXt This maybe is not very important to you, but, as a designer, I see \ConTeXt as a logotype, so, it's not supposed to be hyphenated. Andrés Conrado Montoya El Andi andresconr...@gmail.com http://chiquitico.org Los fines no justifican los medios, porque la medida verdadera de nuestro carácter está dada por los medios que estamos dispuestos a utilizar, no por los fines que proclamamos. Por favor, evite enviarme documentos adjuntos en formato Word o PowerPoint. Lea http://www.gnu.org/philosophy/no-word-attachments.es.html "Naturalmente, la gente normal no desea la guerra, pero al final son los líderes de una nación quienes determinan su política, y resulta muy sencillo doblegar a la gente, sea una democracia, una dictadura fascista, un parlamento o una dictadura comunista. Con voz o sin voz, la gente siempre podrá entregarse a la voluntad de sus líderes. Es fácil. Lo único que hay que hacer es decirles que están siendo atacados, y denunciar a los pacifistas por su falta de patriotismo y exponer el país al peligro. Funciona igual en todos los países." ---Hermann Goering, en los juicios de Nuremberg. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in nothyphenated?
On 09/23/2015 05:45 PM, Andres Conrado wrote: > [...] > This maybe is not very important to you, but, as a designer, I see > \ConTeXt as a logotype, so, it's not supposed to be hyphenated. Hi Andrés, \ConTeXt is also a word and sometimes hyphenation is required: %~ \def\ConTeXt{Con\-\TeX{}t} \setupbodyfont[palatino, 16pt] \starttext I need to hyphenate the logotype when it is placed here: \ConTeXt. \input zapf \stoptext I realized that after writing a document about ConTeXt. Pablo -- http://www.ousia.tk ___ 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] \hangindent and R2L alignment
On 9/23/2015 10:15 PM, Wolfgang Schuster wrote: Hi, there was a question on the Stackexchange site [*] with a problem for the \starthanging environment when the alignment is R2L. \def\spac_hanging_finish {\scratchdistance\directhangingparameter\c!distance\relax \ifdim\ht\nextbox>\strutht \setbox\nextbox\tbox{\box\nextbox}% \fi \scratchcounter\directhangingparameter\c!n\relax \ifnum\scratchcounter>\zerocount \hangafter-\scratchcounter \else \getboxheight\scratchdimen\of\box\nextbox \getnoflines\scratchdimen \hangafter-\noflines \fi \ht\nextbox\strutht \dp\nextbox\strutdp \scratchwidth\dimexpr\wd\nextbox+\scratchdistance\relax \ifx\m_spac_hanging_location\v!right \hangindent\ifconditional\displaylefttoright-\fi\scratchwidth \rlap{\hskip\dimexpr\hsize-\wd\nextbox\relax\box\nextbox}% \else \hangindent\ifconditional\displaylefttoright\else-\fi\scratchwidth \llap{\box\nextbox\hskip\scratchdistance}% \fi \ignorespaces} (maybe the content of the hang blob will becoem l2r) Here is shortened version of the example: begin example \useMPlibrary[dum] \starttext \starthanging[location=left]{\externalfigure[dummy][width=4cm,height=3\lineheight]} \input tufte \stophanging \blank \startalignment[righttoleft] \starthanging[location=left]{\externalfigure[dummy][width=4cm,height=3\lineheight]} \input tufte \stophanging \stopalignment \stoptext end example The problem is that \hangindent behaves the same for L2R and R2L alignment unlike the other formatting commands (\hangindent or \leftskip) for paragraphs. begin example \showframe[text][text] \setuphead [subject] [align=lefttoright, indentnext=yes] \starttext \startbuffer \subject{Normal paragraph} \input ward \subject{Leftskip} \start \leftskip 4em \input ward\par \stop \subject{Parindent} \start \parindent 4em \input ward\par \stop \subject{Hangindent} \start \hangindent 4em \hangafter -2 \input ward\par \stop \stopbuffer \title{Left to right} \startalignment[lefttoright] \getbuffer \stopalignment \title{Right to left} \startalignment[righttoleft] \getbuffer \stopalignment \stoptext end example [*] http://tex.stackexchange.com/questions/268688/correct-inconsistent-image-placement-across-direction-boundaries-in-context 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 ___ -- - 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] \hangindent and R2L alignment
Hi, there was a question on the Stackexchange site [*] with a problem for the \starthanging environment when the alignment is R2L. Here is shortened version of the example: begin example \useMPlibrary[dum] \starttext \starthanging[location=left]{\externalfigure[dummy][width=4cm,height=3\lineheight]} \input tufte \stophanging \blank \startalignment[righttoleft] \starthanging[location=left]{\externalfigure[dummy][width=4cm,height=3\lineheight]} \input tufte \stophanging \stopalignment \stoptext end example The problem is that \hangindent behaves the same for L2R and R2L alignment unlike the other formatting commands (\hangindent or \leftskip) for paragraphs. begin example \showframe[text][text] \setuphead [subject] [align=lefttoright, indentnext=yes] \starttext \startbuffer \subject{Normal paragraph} \input ward \subject{Leftskip} \start \leftskip 4em \input ward\par \stop \subject{Parindent} \start \parindent 4em \input ward\par \stop \subject{Hangindent} \start \hangindent 4em \hangafter -2 \input ward\par \stop \stopbuffer \title{Left to right} \startalignment[lefttoright] \getbuffer \stopalignment \title{Right to left} \startalignment[righttoleft] \getbuffer \stopalignment \stoptext end example [*] http://tex.stackexchange.com/questions/268688/correct-inconsistent-image-placement-across-direction-boundaries-in-context 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 ___