xtable row number trouble
Hi, all. I try to place a row number into the first column of my table. I tried: \definecounter[rownum][way=bytext,prefix=no] \setcounter[rownum][0] \starttext \startxtable \startxrow \startxcell \incrementcounter[rownum] \rawcounter[rownum] \stopxcell \stopxrow \startxrow \startxcell \incrementcounter[rownum] \rawcounter[rownum] \stopxcell \stopxrow \startxrow \startxcell \incrementcounter[rownum] \rawcounter[rownum] \stopxcell \stopxrow \stopxtable And got: 7 8 9 If i place \setcounter[rownum][0] right after \startxtable, then i got: 1 2 3 Is this normal? I tried: \newcount\rownumd \rownumd = 0 \starttext \startxtable \startxrow \startxcell \advance\rownumd by 1 \the\rownumd \stopxcell \stopxrow \startxrow \startxcell \advance\rownumd by 1 \the\rownumd \stopxcell \stopxrow \startxrow \startxcell \advance\rownumd by 1 \the\rownumd \stopxcell \stopxrow \stopxtable And got: 1 1 1 Can anybody help? -- Олег Неманов (Oleg Nemanov)
On Sun, Oct 25, 2020 at 09:26:06PM +0100, Wolfgang Schuster wrote:
It seems that reseting once at table start is simpler, isn't it :-)? What is the difference between \rawcounter and \convertedcounter? \rawcounter give me the plain number as i want. What's about \newcount&\advance variant? Why it not work? -- Олег Неманов (Oleg Nemanov)
Oleg schrieb am 26.10.2020 um 21:03:
Try your method with natural table or tabulate and it won't work anymore.
What is the difference between \rawcounter and \convertedcounter? \rawcounter give me the plain number as i want.
In this case there is no difference but I suggest to use \rawcounter only when you need the value of the counter, e.g. counter>... or counter=... With \convertedcounter you have always the option to change the style of the value, e.g. number conversion, prefixes etc.
What's about \newcount&\advance variant? Why it not work?
Short answer: expansion You're using advance in a place where it is just ignored, there are ways to get rid of these limitations with Luametatex but it's better to use \incrementcounter. Wolfgang
Dear ConTeXt fellows, With ConTeXT ConTeXt Process Management 1.03 current version: 2020.09.20, I encounter some issue with italics in the title of bibliographical references (I use a Jabref file along with ConTeXt). The title of books should be in italics, but it appears right now in the regular face. Do you have any idea of what it may be the origin of this problem ? Maybe it is within Jabref configuration that I can solve this issue ? (see attached file). Thank you very much. JP
Hello,
On Tue, 27 Oct 2020 at 12:15, Xenos Athenaios
just looking at the PDF (knowing nothing about bibliographies), I can't see any italics in the text, so the first thought is: is the italics font setup correct? I would try italics in the main text or using context default font. You can try \enabletrackers[publications.*] and \enabletrackers[fonts.*] to see in log what's going on. If it doesn't help a minimal working example is needed. Regards, Jano
Hi ConTeXt fellows ! I am coming back with I hope a lighter MWE concerning the issue I am confronting to : it seems impossible to get italics within both body text, footnotes and bibliographical titles. See the attached file for the bibtex database and the MWE below : % \showframe %\showgrid \setuplanguage[fr][patterns={fr,agr}] \mainlanguage[fr] \setcharacterspacing[frenchpunctuation] \setuplayout [backspace=40mm] \setuppagenumbering[alternative=doublesided, location={header, inmargin}] \setupmargindata[inmargin][location=inner, style={\ssx\setupinterlinespace[line=2.8ex]}] \setupmarginframed[inmargin][align=right] \setupbodyfontenvironment[default][em=italic] \definefallbackfamily[mainface][serif][Theano Didot][preset=range:greek, it={Old Standard Italic}, force=yes] \definefallbackfamily [mainface] [rm] [ipamincho] [range=cjkunifiedideographs] \definefallbackfamily[mainface] [serif] [nafeesnastaleeq] [range=arabic] \definefontfamily [mainface] [serif] [GaramondNo8][sc=NewG8 Regular SC] \definefontfamily [mainface] [sans] [FreeSans] [rscale=0.7] \definefontfamily[mainface] [serif] [GFS Didot] \setupbodyfont[mainface] \setupcolors[state=start] \setupindenting[1.5em] \setupindenting[medium,yes] % Bibliography Definition setup and rendering \usebtxdataset[philosophie moderne][biblio-test-italics.bib] \usebtxdefinitions[apa] \definebtxrendering[philosophie moderne][apa][dataset=philosophie moderne] \setupbtxrendering[continue =yes] % End of bibliography setup \starttext \startchapter[title={Introduction}] Someone who asks to a textbook in Philosophy to replace his own personnal thoughts and the necessary personnal self-education rooted within his own readings, \quote{would fail his own education}\footnote{\cite[alternative=entry][philosophie moderne::Adler1972]}. Dans le présent ouvrage le propos tenu est sensiblement différent. Non que nous refusons d'entrer dans l'examen de cette totalité parfois systématique qui a pu préoccuper les philosophes depuis la plus haute Antiquité\footnote{Cf. Montaigne, {\em Essais} I, 3 : \quote{Aristote qui remue toute chose}. \cite[alternative=entry][philosophie moderne::montaigne2004]}. The roman sentence : {\em \quote{I am a man and nothing wich is human is strange to me}} (\quote {Homo sum ; humani nihil a me alienum puto}) is given by Roman poet Terence, verse 77 of : \cite[alternative=entry][philosophie moderne::terence1984]. There is a lot of textbooks, or bibliographical survey in Ancient Philosophy\footnote{See the detail of philosophical material philosophers biographies in the two next books : \cite[alternative=entry][philosophie moderne::løve2011]}, or by specialized books as {\em Dictionnaire des Philosophes Antiques} edited in 5 volumes under the direction of Richard Goulet (\cite[alternative=entry][philosophie moderne::goulet1994]). \stopchapter % Bibliography \starttext \startbackmatter \startchapter[title={Bibliographie}] \startsection[title={ Philosophie moderne}] \placelistofpublications[philosophie moderne][method=local] \stopsection \stopchapter \stopbackmatter \stoptext Le 27/10/2020 à 15:45, Jano Kula a écrit :
Hello Xenos,
On Wed, 28 Oct 2020 at 10:50, Xenos Athenaios
It is a font setup problem. Remove your font definitions and fallbacks and change \setupbodyfont[mainface] to \setupbodyfont[dejavu] for the start (it will cover greek and cyryllic, too). Can you describe what you need? Are the requirements given (main font, scripts, serif & sans, fallbacks fonts to other scripts)? For example IBM Plex https://www.ibm.com/plex/languages/ will cover most of what you need (except cjk for now) and there is a font definition file type-imp-plex.mkiv in the distribution (not all fallbacks defined, yet). Regards, Jano
Thanks Jano ! It works, but I have overfull box warnings in the log file with italics, as : Overfull \hbox (7.80241pt too wide) in paragraph at lines 178--179 <1: DejaVuSerif @ 12.0pt> sciences (<12: DejaVuSerif-Italic @ 12.0pt> phi-lo-so-phia mar-ga-ri-ta<1: DejaVuSerif @ 12.0pt> ), voire même comme une <12: DejaVuSerif-Italic @ 12.0pt> sa-gesse<1: DejaVuSerif @ 12.0pt> I am currently writing a French manual in philosophy. I need French, German an Ancient greek, arabic, chinese fonts on to achieve this work. Thanks a lot ! Jean-Pierre Le 28/10/2020 à 12:49, Jano Kula a écrit :
participants (5)
-
Denis Maier
-
Jano Kula
-
Oleg
-
Wolfgang Schuster
-
Xenos Athenaios