Re: [NTG-context] setupformulas options (or defineformula) and effort to reduce the font in math formulas
Hello Wolfgang. After some searching and experimenting, here is my functional solution. I wrote it into the wiki. I have not found there eg. defineformula command etc Jaroslav Hajtmar \defineformula[MY][ align=left, strut=no, spacebefore=, spaceafter=, ] % so you can modify the settings of defineforumla[MY] \setupformulae[MY][align=right,strut=yes,spacebefore=medium,spaceafter=big] % so we can create new start-stopsmallformula \definestartstop[smallformula] [before={\startformula[small]}, after=\stopformula, ] % and we can so create new start-stopmysmallformula: \definestartstop[mysmallformula] [before={\startMYformula[small]}, after=\stopMYformula, ] % and here is my shortcuts: \let\bmyformula\startmysmallformula \let\emyformula\stopmysmallformula \starttext \title{Example of use and behavior} startformula: \startformula c^2 = a^2 + b^2 \stopformula startformula$[$small$]$: \startformula[small] c^2 = a^2 + b^2 \stopformula startformula[8pt]: \startformula[8pt] c^2 = a^2 + b^2 \stopformula startsmallformula: \startsmallformula c^2 = a^2 + b^2 \stopsmallformula startmysmallformula: \startmysmallformula c^2 = a^2 + b^2 \stopmysmallformula startMYformula: \startMYformula c^2 = a^2 + b^2 \stopMYformula startMYformula[5pt]: \startMYformula[5pt] c^2 = a^2 + b^2 \stopMYformula bmyformula: \bmyformula c^2 = a^2 + b^2 \emyformula \stoptext http://wiki.contextgarden.net/defineformula Dne 11.3.2015 v 18:18 Jaroslav Hajtmar napsal(a): Thanx Wolfgang for reply. I had no idea that it is possible in this way to change the font size. I could not figure a way for your solution set alignment formulas to right and how work \defineformula and \definestartstop together. After defining a new MY formula in combination with your solution works it fine, as I had imagined. Is there any possibility of setting of parameters a newly defined formulas? Or, it can not be done, and everything must be solved within the initial definition? One more thanx Jaroslav Hajtmar \defineformula[MY][ align=right, strut=yes, spacebefore=, spaceafter=, ] \definestartstop[smallformula] [before={\startformula[small]}, after=\stopformula, ] % \setupformulas[align=right,strut=yes,spacebefore=,spaceafter=] % \setupformulas[smallformula][align=right,strut=yes,spacebefore=,spaceafter=] % \setupformulas[small][align=right,strut=yes,spacebefore=,spaceafter=] % \setupsmallformulas[align=right,strut=yes,spacebefore=,spaceafter=] % \setupsmallformulaformulas[align=right,strut=yes,spacebefore=,spaceafter=] % \setupformulas[MY][align=right,strut=yes,spacebefore=,spaceafter=] % \setupformulas[MYformula][align=right,strut=yes,spacebefore=,spaceafter=] % \setupMYformulas[align=right,strut=yes,spacebefore=,spaceafter=] \starttext \startformula c^2 = a^2 + b^2 \stopformula \startformula[small] c^2 = a^2 + b^2 \stopformula \startformula[8pt] c^2 = a^2 + b^2 \stopformula \startsmallformula c^2 = a^2 + b^2 \stopsmallformula \startMYformula[small] c^2 = a^2 + b^2 \stopMYformula \startMYformula[5pt] c^2 = a^2 + b^2 \stopMYformula \stoptext Dne 11.3.2015 v 0:52 Wolfgang Schuster napsal(a): \startformula has a optional argument which let you change the font, e.g. \startformula[9pt]. \definestartstop[smallformula] [before={\startformula[small]}, after=\stopformula] \starttext \startformula c^2 = a^2 + b^2 \stopformula \startformula[small] c^2 = a^2 + b^2 \stopformula \startsmallformula c^2 = a^2 + b^2 \stopsmallformula \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 ___ ___ 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] mkiv and lettrine
On Tue, Mar 10, 2015 at 6:11 PM, Gerben Wierda gerben.wie...@rna.nl wrote: On 10 Mar 2015, at 12:03, Hans Hagen pra...@wxs.nl wrote: On 3/10/2015 11:38 AM, Gerben Wierda wrote: Nobody? Is there a way to get the ‘more options’ mentioned on ConTeXtgarden to work in mkiv? there are some examples in the test suits (typesetting/initials*) And where are the test suites? They’re not part of the distribution. http://www.pragma-ade.nl/context/latest/cont-tst.7z -- 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 ___
[NTG-context] Unicode question
Hi all, If I run this minimal example \starttext � \stopluacode \stoptext I get tex errorerror on line 3 in file /data/tmp/u1.tex: ! String contains an invalid utf-8 sequence and some more lines. The character above is: Character: � Character name: REPLACEMENT CHARACTER Charblock: Specials Category: Other symbol Unicode: U+fffd UTF8: 0xefbfbd which is a valid utf8 character. Questions: 1. Why is it considered to be invalid? 2. Are there other valid utf8 characters which are considered invalid? Just wanting to understand. -- Manfred ___ 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] How to properly put information into contextwiki
Hello list. I tried in vain to find some information on how to properly load some things into http://wiki.contextgarden.net/ I tried to insert there thing I have not found there (http://wiki.contextgarden.net/defineformula) but I could not find how to classify this page to a hierarchy (in this case into the section commands). They are somewhere about some information? Or has the final classification in charge of an administrator, etc? Thanks for the link to some information. I would like to wiki occasionally contributed something, but I've somehow fundamentally not orienting. Thanks Jaroslav Hajtmar ___ 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] Link to mentions in listofsynonyms and to listofsynomyn in mentions?
On Thu, Mar 12, 2015 at 10:10 AM, Norbert Melzer timmel...@gmail.com wrote: Has this been overheard in the noise of the last days or is there simply no way (currently) to achieve my goal? probably we are a bit busy with the release of TL -- 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] Itemization
On Thu, Mar 12, 2015 at 10:39 AM, MANUEL GONZALEZ SUAREZ gonzalezsman...@uniovi.es wrote: Dear friends. I have one basic question, but I'm not very skilled in ConTeXt: How I can do that in a list, display each of the items with a lowercase Greek letter followed by a parenthesis? That is: alpha) beta) etc. Thanks very much. ___ 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 ___ This works here: \setupbodyfont[pagella] \starttext \startitemize[g][,stopper=,right=)] \item Hellow \item Hi \item Good bye \stopitemize \stoptext I think you have to use a font that has the lower case greek letters available. /Mikael ___ 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] Link to mentions in listofsynonyms and to listofsynomyn in mentions?
Has this been overheard in the noise of the last days or is there simply no way (currently) to achieve my goal? Am 10.03.2015 12:25 schrieb Norbert Melzer timmel...@gmail.com: Hi! Given the following ME, is there a way, that the use of `\AI` links to the corresponding entry in the `\listofabbrevs` and also that there is a comma separated list of pages which mention `\AI`, just as the acronym portion of LaTeXs glossaries does? ```tex \setupinteraction[state=start] \definesynonyms[abbrev][abbrevs][\longform] \abbrev{AI}{Artificial Intelligence} \starttext \AI \completelistofabbrevs \stoptext ``` TIA Norbert ___ 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] Itemization
Dear friends. I have one basic question, but I'm not very skilled in ConTeXt: How I can do that in a list, display each of the items with a lowercase Greek letter followed by a parenthesis? That is: alpha) beta) etc. Thanks very much. ___ 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] Itemization
Am 12.03.2015 um 10:49 schrieb Mikael P. Sundqvist mic...@gmail.com: On Thu, Mar 12, 2015 at 10:39 AM, MANUEL GONZALEZ SUAREZ gonzalezsman...@uniovi.es wrote: Dear friends. I have one basic question, but I'm not very skilled in ConTeXt: How I can do that in a list, display each of the items with a lowercase Greek letter followed by a parenthesis? That is: alpha) beta) etc. Thanks very much. ___ 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 ___ This works here: \setupbodyfont[pagella] \starttext \startitemize[g][,stopper=,right=)] \item Hellow \item Hi \item Good bye \stopitemize \stoptext I think you have to use a font that has the lower case greek letters available. For Latin Modern you can use the mathgreek conversion which uses the math font. \starttext \startitemize[mathgreek][,stopper=,right=)] \item Hellow \item Hi \item Good bye \stopitemize \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] component not included
Hallo, I am trying to start a new project with the following test files: --env-medizin.tex--- \startenvironment env-medizin \mainlanguage[deo] \enableregime[utf] \setupbodyfont[sans,11pt] \setuplanguage[deo][leftquote=\guilsingleright, rightquote=\guilsingleleft, leftquotation=\rightguillemot, rightquotation=\leftguillemot] \setupwhitespace[medium] \stopenvironment --pj-medizin.tex--- \environment env-medizin \startproject pj-medizin \product pd-medizin \stopproject --pd-medizin.tex--- \project pj-medizin \startproduct pd-medizin \component test \stopproduct --test.tex--- \project pj-medizin \product pd-medizin \startcomponent test test \stopcomponent - I compile the product. But I get nothing. test.tex is not included. What I am doing wrong? Here is the output: - mtx-context | run 1: luatex --fmt=E:/LuaTeX/tex/texmf- cache/luatex- cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont- en --jobname=pd-medizin --lua=E:/LuaTeX/tex/texmf-cache/luatex- cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont- en.lui --no-parse-first-line --c:autopdf --c:currentrun=1 -- c:fulljobname=./pd-medizin.tex --c:input=./pd-medizin.tex -- c:kindofrun=1 --c:maxnofruns=8 cont-yes.mkiv This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5024) \write18 enabled. (E:/LuaTeX/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2013.11.01 15:02 MKIV beta fmt: 2014.6.29 int: english/english system 'cont-new.mkiv' loaded (E:/LuaTeX/tex/texmf-context/tex/context/base/cont-new.mkiv) system files jobname 'pd-medizin', input './pd-medizin', result 'pd-medizin' fontslatin modern fonts are not preloaded languageslanguage 'en' is active (//HP/ga/Medizin/pd-medizin.tex (pj-medizin.tex (env-medizin.tex fontspreloading latin modern fonts (third stage) fontstypescripts unknown library 'loc' {E:/LuaTeX/tex/texmf/fonts/map/dvips/lm/lm- math.map}{E:/LuaTeX/tex/texmf/fonts/map/dvips/lm/lm- rm.map}{E:/LuaTeX/tex/texmf-context/fonts/map/pdftex/context/mkiv- base.map} fonts'fallback modern ss 11pt' is loaded mkiv lua stats used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats used cache path: E:/LuaTeX/tex/texmf-cache/luatex- cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats resource resolver: loadtime 0.016 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 15 found files, scanned paths: none mkiv lua stats stored bytecode data: 337 modules (0.312 sec), 69 tables (0.000 sec), 406 chunks (0.312 sec) mkiv lua stats cleaned up reserved nodes: 39 nodes, 9 lists of 441 mkiv lua stats node memory usage: 2 glue, 1 kern, 3 penalty, 9 attribute, 20 glue_spec, 3 attribute_list mkiv lua stats node list callback tasks: 6 unique task lists, 2 instances (re)created, 5 calls mkiv lua stats used backend: pdf (backend for directly generating pdf output) mkiv lua stats loaded patterns: deo:de:9 en::2, load time: 0.000 mkiv lua stats jobdata time: 0.016 seconds saving, 0.000 seconds loading mkiv lua stats callbacks: 57 direct, 204 indirect, 261 total mkiv lua stats randomizer: resumed with value 0.70265816217536 mkiv lua stats result saved in file: pd-medizin.pdf, compresslevel 3, objectcompreslevel 3 mkiv lua stats loaded fonts: 2 files: latinmodern-math.otf, lmsans10-regular.otf mkiv lua stats fonts load time: 0.344 seconds mkiv lua stats luatex banner: this is luatex, version beta-0.79.1 (tex live 2014/w32tex) (rev 5024) mkiv lua stats control sequences: 38207 of 65536 + 10 mkiv lua stats current memory usage: 32 MB (ctx: 32 MB) mkiv lua stats runtime: 1.016 seconds mtx-context | pdfview methods: acrobat auto default fullacrobat okular pdfxcview sumatra, current method: sumatra (directives_pdfview_method) system | total runtime: 1.453Exit code: 0 ___ 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] component not included
Am 12.03.2015 um 13:35 schrieb Wolfgang Werners-Lucchini w...@musensturm.de: Hallo, I am trying to start a new project with the following test files: --env-medizin.tex--- \startenvironment env-medizin \mainlanguage[deo] \enableregime[utf] \setupbodyfont[sans,11pt] \setuplanguage[deo][leftquote=\guilsingleright, rightquote=\guilsingleleft, leftquotation=\rightguillemot, rightquotation=\leftguillemot] \setupwhitespace[medium] \stopenvironment --pj-medizin.tex--- \environment env-medizin \startproject pj-medizin \product pd-medizin \stopproject --pd-medizin.tex--- \project pj-medizin \startproduct pd-medizin \component test \stopproduct --test.tex--- \project pj-medizin \product pd-medizin \startcomponent test test \stopcomponent - I compile the product. But I get nothing. test.tex is not included. What I am doing wrong? Ignore the project file and load the environment file instead at the begin of your product and component files. 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] Unicode question
Am Thu, 12 Mar 2015 08:48:27 +0100 schrieb Manfred Lotz: Hi all, If I run this minimal example \starttext � \stopluacode \stoptext I get tex errorerror on line 3 in file /data/tmp/u1.tex: ! String contains an invalid utf-8 sequence and some more lines. The character above is: Character: � Character name: REPLACEMENT CHARACTER Charblock: Specials Category: Other symbol Unicode: U+fffd UTF8: 0xefbfbd which is a valid utf8 character. Questions: 1. Why is it considered to be invalid? This is not a context question/problem but related to the binary (you would get the same error with lualatex or plain) The luatex code contains the lines (in unistring.w) if (val == 0xFFFD) utf_error(); return (val); in a function str2uni. I didn't really try to understand the code but it looks as if 0xFFFD is used as invalid marker: If luatex encounters something that isn't valid utf8 it maps val to 0xFFFD and then test against 0xFFFD to rise an error. 2. Are there other valid utf8 characters which are considered invalid? The comment in the code says /* the 5- and 6-byte UTF-8 sequences generate integers that are outside of the valid UCS range, and therefore unsupported */ -- Ulrike Fischer http://www.troubleshooting-tex.de/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] bug in paragraph footnotes?
Dear list, I’m afraid that the following sample shows a bug in interline space for footnotes: \startsetups[setups:footnote] \setupinterlinespace[line=6ex] \stopsetups \setupnotation[footnote][alternative=serried] \setupnote[footnote][paragraph=yes, setups=setups:footnote] \starttext \dorecurse{2}{These are footnotes\footnote{\input knuth}. } \stoptext Could anyone confirm it or explain me what I’m missing? Many thanks for your help, 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 ___
[NTG-context] Tables, Row Span, and Colors
The following code produces my table, but I could not get the text Region to span rows 3-7. So, I would like 1. the word Region to be inside the table and not hacked in the way that I have it. 2. to make the (spanned) cell containing Years have a gray background. 3. to make each of the column heading cells (i.e., the ones containing 1, 1-2, ..., 15+, and Total to have a gray background. 4. to have the (spanned) cell containing Region (from #1) have a gray background. 5. to have the row heading cells (i.e., the ones containing East, Midwest, South, West, and Total) have a gray background. I would appreciate any help in attaining this wish list. Thanks in advance, Troy —— Code Starts Here —— \setupcolors[state=start] \starttext \null\vskip15ex \hskip1em\framed[orientation=90,frame=off]{\bf Region}\blank\vskip-25.5ex \starttable[|c|l|r|r|r|r|r|r|r|] \DC \DC \DL[7] \DR \NC \NC \VL \use{7}\ReFormat[cB]{Years} \VL \AR \DC \DC \DL[7] \DR \NC \NC \VL \ReFormat[cB]{$1$} \VL \ReFormat[cB]{$1-2$} \VL \ReFormat[cB]{$3-4$} \VL \ReFormat[cB]{$5-9$} \VL \ReFormat[cB]{$10-14$} \VL \ReFormat[cB]{$15+$} \VL \ReFormat[cB]{Total} \VL \AR \HL %\VL \offset[y=8ex]{\framed[orientation=90,frame=off]{\bf Region}} \VL East \VL 32 \VL 54 \VL 59 \VL 112 \VL 77 \VL 118 \VL 452 \VL \AR \VL \null\hskip2em\null \VL {\bf East} \VL 32 \VL 54 \VL 59 \VL 112 \VL 77 \VL 118 \VL 452 \VL \AR \VL \VL {\bf Midwest} \VL 31 \VL 68 \VL 68 \VL 120 \VL 63 \VL 173 \VL 523 \VL \AR \VL \VL {\bf South} \VL 53 \VL 92 \VL 93 \VL 158 \VL 106 \VL 158 \VL 660 \VL \AR \VL \VL {\bf West} \VL 41 \VL 56 \VL 67 \VL 78 \VL 45 \VL 86 \VL 373 \VL \AR \DC \DL[8] \DR \VL \VL {\bf Total} \VL 157 \VL 270 \VL 287 \VL 468 \VL 291 \VL 535 \VL 2008 \VL \AR \HL \stoptable \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] Unicode question
On 3/12/2015 7:08 PM, Manfred Lotz wrote: Hi Arthur, On Thu, 12 Mar 2015 16:35:47 + Arthur Reutenauer arthur.reutena...@normalesup.org wrote: The luatex code contains the lines (in unistring.w) if (val == 0xFFFD) utf_error(); return (val); in a function str2uni. I didn't really try to understand the code but it looks as if 0xFFFD is used as invalid marker: Interesting. This is not actually correct, U+FFFD is a valid Unicode character; it would be better to use U+FFFE or U+ for that. Note that U+FFFD is the recommended character to use when a character can't be recognised while converting to Unicode from another encoding, so its presence is usually a sign that something went wrong upstream, but I assume Manfred is aware of that. Yes, I'm aware of that. So I also think that it isn't correct to use U+FFFD for this. Your suggestion of using either U+FFFE or U+ sounds good as both are really invalid. it's an attempt to recover but in the process a normal 0xFFFD triggers an error too; recovering to 0xFFFD for a really invalid input is ok as tex does that in more cases: i expected a } so i insert one here ... cross your fingers etc 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] Unicode question
On Thu, Mar 12, 2015 at 7:55 PM, Hans Hagen pra...@wxs.nl wrote: it's actually a bug ... it is ok to map an invalid character in the input to 0xFFFD, halt and continue when permitted, but the method used in luatex thereby obscures a valid 0xFFFD in the input FFFD REPLACEMENT CHARACTER • used to replace an incoming character whose value is unknown or unrepresentable in Unicode The meaning of FFFD is not typeset a question mark on a black box as in � (which depends to font in anycase so in principle it's possible to see something completely different in a new version of the font) but to signal something potentially wrong with a symbol that currently in most cases is �. Misusing the meaning is not bad di per se, but in this specific case I think luatex is correct to be conservative and ask to the user what to do; context --batchmode typesets the document, writes the messages on the log, and ends with -1 , so an automatic agent is also alerted. -- 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] component not included
According toll my observations, you need to reference the needed parts inside of the \start... and \stop..., so your product would become: ``` \startproduct pd-medizin \project pj-medizin \component test \stopproduct ``` You also have to restructure the other files, so that \start... is the first and \stop... the last command in the files. HTH Norbert Am 12.03.2015 13:43 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com : Am 12.03.2015 um 13:35 schrieb Wolfgang Werners-Lucchini w...@musensturm.de: Hallo, I am trying to start a new project with the following test files: --env-medizin.tex--- \startenvironment env-medizin \mainlanguage[deo] \enableregime[utf] \setupbodyfont[sans,11pt] \setuplanguage[deo][leftquote=\guilsingleright, rightquote=\guilsingleleft, leftquotation=\rightguillemot, rightquotation=\leftguillemot] \setupwhitespace[medium] \stopenvironment --pj-medizin.tex--- \environment env-medizin \startproject pj-medizin \product pd-medizin \stopproject --pd-medizin.tex--- \project pj-medizin \startproduct pd-medizin \component test \stopproduct --test.tex--- \project pj-medizin \product pd-medizin \startcomponent test test \stopcomponent - I compile the product. But I get nothing. test.tex is not included. What I am doing wrong? Ignore the project file and load the environment file instead at the begin of your product and component files. 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] Unicode question
On 3/12/2015 9:41 PM, luigi scarso wrote: On Thu, Mar 12, 2015 at 7:55 PM, Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl wrote: it's actually a bug ... it is ok to map an invalid character in the input to 0xFFFD, halt and continue when permitted, but the method used in luatex thereby obscures a valid 0xFFFD in the input FFFD REPLACEMENT CHARACTER • used to replace an incoming character whose value is unknown or unrepresentable in Unicode the question is not what to do when an invalid character comes in, in that case luatex can replace it by 0xFFFD and issue a error as now, but when the input hasn't an 0xFFFD then luatex should just carry on as 0xFFFD is a *valid* character it is quite easy for a macro package to trigger an error as \catcodeFFFD=15 will do thatm but it's impossible for a macro package to intercept the weird interception by luatex's input handler The meaning of FFFD is not typeset a question mark on a black box as in � (which depends to font in anycase so in principle it's possible to see something completely different in a new version of the font) but to signal something potentially wrong with a symbol that currently in most cases is �. Misusing the meaning is not bad di per se, but in this specific case I think luatex is correct to be conservative and ask to the user what to do; context --batchmode typesets the document, writes the messages on the log, and ends with -1 , so an automatic agent is also alerted. you cannot force a user to use \batchmode and -1 would abort a wrapper thereby leading to an invalid document; it means that luatex can never typeset a document where char 0xFFFD is being typeset and luatex should not be normative not accepting 0xFFFD in the input is a bug 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] bug in paragraph footnotes?
On 3/12/2015 5:52 PM, Pablo Rodriguez wrote: Dear list, I’m afraid that the following sample shows a bug in interline space for footnotes: \startsetups[setups:footnote] \setupinterlinespace[line=6ex] \stopsetups \setupnotation[footnote][alternative=serried] \setupnote[footnote][paragraph=yes, setups=setups:footnote] \starttext \dorecurse{2}{These are footnotes\footnote{\input knuth}. } \stoptext Could anyone confirm it or explain me what I’m missing? these paragraph notes are kind of special as we need to cheat a bit to let tex handle them right as inserts (see the texbook) i'll send you a patch offline but no guaranteed (some day i'll redo this a bit in a more mkiv-isch way) 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] Unicode question
The luatex code contains the lines (in unistring.w) if (val == 0xFFFD) utf_error(); return (val); in a function str2uni. I didn't really try to understand the code but it looks as if 0xFFFD is used as invalid marker: Interesting. This is not actually correct, U+FFFD is a valid Unicode character; it would be better to use U+FFFE or U+ for that. Note that U+FFFD is the recommended character to use when a character can't be recognised while converting to Unicode from another encoding, so its presence is usually a sign that something went wrong upstream, but I assume Manfred is aware of that. The comment in the code says /* the 5- and 6-byte UTF-8 sequences generate integers that are outside of the valid UCS range, and therefore unsupported */ That's correct, the longest valid UTF-8 sequence is 4 bytes. Best, Arthur___ 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] component not included
What I am doing wrong? Ignore the project file and load the environment file instead at the begin of your product and component files. Wolfgang This is not working! And what shall I do if I have more than one product? Wolfgang mtx-context | run 1: luatex --fmt=E:/LuaTeX/tex/texmf- cache/luatex- cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont- en --jobname=pd-medizin --lua=E:/LuaTeX/tex/texmf-cache/luatex- cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont- en.lui --no-parse-first-l ine --c:autopdf --c:currentrun=1 --c:fulljobname=./pd-medizin.tex -- c:input=./pd-medizin.tex --c:kindofrun=1 --c:maxnofruns=8 cont- yes.mkiv This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5024) \write18 enabled. (E:/LuaTeX/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2013.11.01 15:02 MKIV beta fmt: 2014.6.29 int: english/english system 'cont-new.mkiv' loaded (E:/LuaTeX/tex/texmf-context/tex/context/base/cont-new.mkiv) system files jobname 'pd-medizin', input './pd-medizin', result 'pd-medizin' fontslatin modern fonts are not preloaded languageslanguage 'en' is active (//HP/ga/Medizin/pd-medizin.tex (env-medizin.tex fontspreloading latin modern fonts (third stage) fontstypescripts unknown library 'loc' {E:/LuaTeX/tex/texmf/fonts/map/dvips/lm/lm- math.map}{E:/LuaTeX/tex/texmf/fonts/map/dvips/lm/lm- rm.map}{E:/LuaTeX/tex/texmf-context/fonts/map/pdftex/context/mkiv- base.map} fonts'fallback modern ss 11pt' is loaded ) (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd- medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd- medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex ( pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd- medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex ! TeX capacity exceeded, sorry [text input levels=127] system tex error on line 5 in file test.tex: TeX capacity exceeded, sorry [ ... 1 \environment env-medizin 2 %\project pj-medizin 3 \product pd-medizin 4 \startcomponent test 5 test 6 \stopcomponent 7 ! == Fatal error occurred, no output PDF file produced! mtx-context | fatal error: return code: 1Exit code: 1 ___ 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] Unicode question
Hi Arthur, On Thu, 12 Mar 2015 16:35:47 + Arthur Reutenauer arthur.reutena...@normalesup.org wrote: The luatex code contains the lines (in unistring.w) if (val == 0xFFFD) utf_error(); return (val); in a function str2uni. I didn't really try to understand the code but it looks as if 0xFFFD is used as invalid marker: Interesting. This is not actually correct, U+FFFD is a valid Unicode character; it would be better to use U+FFFE or U+ for that. Note that U+FFFD is the recommended character to use when a character can't be recognised while converting to Unicode from another encoding, so its presence is usually a sign that something went wrong upstream, but I assume Manfred is aware of that. Yes, I'm aware of that. So I also think that it isn't correct to use U+FFFD for this. Your suggestion of using either U+FFFE or U+ sounds good as both are really invalid. -- Best, Manfred ___ 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] Unicode question
On 3/12/2015 6:57 PM, Manfred Lotz wrote: On Thu, 12 Mar 2015 16:41:59 +0100 Ulrike Fischer ne...@nililand.de wrote: Am Thu, 12 Mar 2015 08:48:27 +0100 schrieb Manfred Lotz: Hi all, If I run this minimal example \starttext � \stopluacode \stoptext I get tex errorerror on line 3 in file /data/tmp/u1.tex: ! String contains an invalid utf-8 sequence and some more lines. The character above is: Character: � Character name: REPLACEMENT CHARACTER Charblock: Specials Category: Other symbol Unicode: U+fffd UTF8: 0xefbfbd which is a valid utf8 character. Questions: 1. Why is it considered to be invalid? This is not a context question/problem but related to the binary (you would get the same error with lualatex or plain) Yes, I know. The luatex code contains the lines (in unistring.w) if (val == 0xFFFD) utf_error(); return (val); in a function str2uni. I didn't really try to understand the code but it looks as if 0xFFFD is used as invalid marker: If luatex encounters something that isn't valid utf8 it maps val to 0xFFFD and then test against 0xFFFD to rise an error. Took me a while to find the repository but finally I got it. 2. Are there other valid utf8 characters which are considered invalid? The comment in the code says /* the 5- and 6-byte UTF-8 sequences generate integers that are outside of the valid UCS range, and therefore unsupported */ Well, it is called REPLACEMENT CHARACTER, and it seems that this character will be used to replace invalid characters. Then it causes if (val == 0xFFFD) utf_error(); the error message tex_error(String contains an invalid utf-8 sequence, hlp); to be displayed. Ok, this answers my question. Thanks for the pointer. it's actually a bug ... it is ok to map an invalid character in the input to 0xFFFD, halt and continue when permitted, but the method used in luatex thereby obscures a valid 0xFFFD in the input 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] Unicode question
On Thu, 12 Mar 2015 16:41:59 +0100 Ulrike Fischer ne...@nililand.de wrote: Am Thu, 12 Mar 2015 08:48:27 +0100 schrieb Manfred Lotz: Hi all, If I run this minimal example \starttext � \stopluacode \stoptext I get tex errorerror on line 3 in file /data/tmp/u1.tex: ! String contains an invalid utf-8 sequence and some more lines. The character above is: Character: � Character name: REPLACEMENT CHARACTER Charblock: Specials Category: Other symbol Unicode: U+fffd UTF8: 0xefbfbd which is a valid utf8 character. Questions: 1. Why is it considered to be invalid? This is not a context question/problem but related to the binary (you would get the same error with lualatex or plain) Yes, I know. The luatex code contains the lines (in unistring.w) if (val == 0xFFFD) utf_error(); return (val); in a function str2uni. I didn't really try to understand the code but it looks as if 0xFFFD is used as invalid marker: If luatex encounters something that isn't valid utf8 it maps val to 0xFFFD and then test against 0xFFFD to rise an error. Took me a while to find the repository but finally I got it. 2. Are there other valid utf8 characters which are considered invalid? The comment in the code says /* the 5- and 6-byte UTF-8 sequences generate integers that are outside of the valid UCS range, and therefore unsupported */ Well, it is called REPLACEMENT CHARACTER, and it seems that this character will be used to replace invalid characters. Then it causes if (val == 0xFFFD) utf_error(); the error message tex_error(String contains an invalid utf-8 sequence, hlp); to be displayed. Ok, this answers my question. Thanks for the pointer. -- Manfred ___ 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] \placefootnotes at the end of each chapter, conditionally
I have a simple problem: I would like to place \startsubject[title=Footnotes] \placefootnotes \stopsubject at the end of each chapter, thus effectively before each \stopchapter BUT only if there are footnotes to be placed, i.e. I do not want to have empty Footnotes subjects appearing in my document. Supplementary question, just for fun: how to specify title=Footnote if there is only one? Thanks 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] Hanging indent
Wow! this helps! Thank you so much for your answer. best wishes Willi On 12 mrt. 2015, at 01:02, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 11.03.2015 um 18:23 schrieb Willi Egger cont...@boede.nl: Hello Wolfgang, thank you so much for looking into this matter again. Indeed now the hanging indent works, provided that the paragraph das not start with {\bf Aanslaan,}. It seems that there is interference with the bold-switch. So I am puzzled again. You have to add \dontleavehmode in front of the font switch. \startHangPar \dontleavehmode{\bf Afleggen,} beloeren, ongemerkt nagaan, verkennen. De russen (rechercheurs) hebben hem afgelegen (beloerd). Dat spiese (huis) moet eerst afgelegen worden. Een smeris legt je af. (Een agent bespiedt je). \stopHangPar 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] component not included
Am 12.03.2015 um 21:10 schrieb Wolfgang Werners-Lucchini w...@musensturm.de: What I am doing wrong? Ignore the project file and load the environment file instead at the begin of your product and component files. Wolfgang This is not working! And what shall I do if I have more than one product? Don’t load the product file, only the environment. \environment env-medizin \startcomponent test test \stopcomponent 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] \placefootnotes at the end of each chapter, conditionally
On 3/12/2015 8:01 PM, Alan BRASLAU wrote: I have a simple problem: I would like to place \startsubject[title=Footnotes] \placefootnotes \stopsubject at the end of each chapter, thus effectively before each \stopchapter BUT only if there are footnotes to be placed, i.e. I do not want to have empty Footnotes subjects appearing in my document. Supplementary question, just for fun: how to specify title=Footnote if there is only one? \startsetups chapter:after \ifcase\rawcountervalue[footnote]\relax \or \startsubject[title=Footnote] \placefootnotes \stopsubject \else \startsubject[title=Footnotes] \placefootnotes \stopsubject \fi \stopsetups \setupnotes[location=none] \setupnotation[way=bychapter] \setuphead[chapter][aftersection=\setups{chapter:after}] \starttext \dorecurse{4}{ \startchapter[title=Number #1] A few notes\dorecurse{\numexpr#1-1\relax}{\footnote{Note #1.##1}}. \stopchapter } \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 ___
Re: [NTG-context] Itemization
Thanks very much, Wolfgang. De: ntg-context ntg-context-boun...@ntg.nl en nombre de Wolfgang Schuster schuster.wolfg...@gmail.com Enviado: jueves, 12 de marzo de 2015 10:13 Para: mailing list for ConTeXt users Asunto: Re: [NTG-context] Itemization Am 12.03.2015 um 10:49 schrieb Mikael P. Sundqvist mic...@gmail.com: On Thu, Mar 12, 2015 at 10:39 AM, MANUEL GONZALEZ SUAREZ gonzalezsman...@uniovi.es wrote: Dear friends. I have one basic question, but I'm not very skilled in ConTeXt: How I can do that in a list, display each of the items with a lowercase Greek letter followed by a parenthesis? That is: alpha) beta) etc. Thanks very much. ___ 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 ___ This works here: \setupbodyfont[pagella] \starttext \startitemize[g][,stopper=,right=)] \item Hellow \item Hi \item Good bye \stopitemize \stoptext I think you have to use a font that has the lower case greek letters available. For Latin Modern you can use the mathgreek conversion which uses the math font. \starttext \startitemize[mathgreek][,stopper=,right=)] \item Hellow \item Hi \item Good bye \stopitemize \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 ___
[NTG-context] setup for paragraph styles
Hello, I'd like to kwnow the commands I should use in ConTeXt to define styles for paragraphs of text that are not headers/titles nor normal text. With titles I know I must use: \definehead[MyTitle][title] \setuphead[MyTitle][...] What should I use for texts like subtitles, dates of letters, signatures? They are paragraphs often made by a few words, with a different alignment, margins, style and vertical space above and below. For a long quote I've seen that I can use: \definedelimitedtext[MySpecialText] \setupdelimitedtext[MySpecialText] Are those the right commands for my purpose in ConTeXt? In particular, I'm typesetting XHTML, where all those elements are p class=subtitle, p class=letter-date, p class=signature and so on. An example taken from my xml environment: ... \startxmlsetups xml:myenv \xmlsetsetup{\xmldocument}{*}{-} \xmlsetsetup{\xmldocument}{html|body|h3|p|i}{xml:*} ... \xmlsetsetup{\xmldocument}{p[@class='letter-date']}{xml:p:letter-date} ... \stopxmlsetups ... \startxmlsetups xml:p:letter-date \page[no]\rightaligned{\noindent\xmlflush{#1}}\par\page[no] \stopxmlsetups ... Is that the right way or is it better to define and setup a style like this? \define_???_[LetterDate] \setup_???_[LetterDate][ before=..., after=..., ..., ] and use it like this: \startxmlsetups xml:p:letter-date \startLetterDate \xmlflush{#1} \stopLetterDate \stopxmlsetups And if it's better like that, what should I write instead of _???_ ? Thanks, Massi ___ 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] Sourcemirror at gitorious is closing down, where to find it then?
Since gitorious got acquired by gitlab it will shut down its service end of May 2015 (https://about.gitlab.com/2015/03/03/gitlab-acquires-gitorious/). Where will ConTeXts source mirror be hosted then? Will it get transfered over to gitlab? Github? Bitbucket? Sourceforge? Somewhere else? ___ 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 ___