Reputation
29,057
Next tag badge:
98/100 score
22/20 answers
Badges
44 98
Newest
 Guru
Impact
~515k people reached

21h
comment Problem compiling when I use symbols less than or greater than
same with babel-french + mathtools with centercolon which makes the colon math active. Loading mathastext solves the issue as it knows how to correctly handle Babel active characters. This general issue should be solved upstream at level of Babel package which should check in math mode for math activation and provide language authors an interface for what to do then.
2d
comment Can't get oldstyle figures in url with lualatex
@UlrikeFischer to get non-tabular figures with TeX Gyre Termes I need to use Numbers = Proportional. Then I do get them. With my code above and \setmainfont{TeX Gyre Termes}[Numbers = {Proportional}] the text and url are exactly identical and use proportional figures.
2d
comment Can't get oldstyle figures in url with lualatex
@UlrikeFischer I tested with \setmainfont{TeX Gyre Termes}[Numbers = {Monospaced}] in the code above and I do get tabular figures in \url, and the mode=base.
2d
revised Can't get oldstyle figures in url with lualatex
fixed tongue slip
2d
revised Can't get oldstyle figures in url with lualatex
added info
2d
answered Can't get oldstyle figures in url with lualatex
2d
revised Oldstylefigure issue with lualatex and mathastext
added info on upcoming patch to this non-mathastext issue
2d
comment Change images in custom ToC
you can replace \setlength{\tocleftbardepth}{6pt} by \setlength{\tocleftbardepth}{0pt}. The left bar will extend to the depth of characters on the last line. For example a p will make it extends a bit more than the baseline. You can also add a \strut after \etocname in the section style and do \setlength{\tocleftbardepth}{-\dp\strutbox} which should use the normal size, as employed by the section style. Then it will extend to the baseline exactly in all cases.
2d
comment Change images in custom ToC
things like \dimexpr\leftskip+\tocmargin\relax is because \tocmargin was a macro at some point but I used a dimension in the end, thus could have used \advance. Similarly some \relax are explained by similar considerations that the things were macros at some point.
2d
revised Change images in custom ToC
edited body
2d
comment The difference between `\the\numexpr` and `\number\numexpr`
all of xint uses \the\numexpr because of that. Other thing: \number\dimexpr is useful as it gives integer number in sp units. And a \dimexpr inside a \numexpr is tacitly converted this way.
2d
answered Change images in custom ToC
Apr
21
awarded  Guru
Apr
7
answered including own fonts in xelatex with fontspec doesn't work for “bold” “italic” font faces
Apr
7
comment \IfStrEqCase issue using \csname
the use case was and still is far from clear, but an addendum must be made: an \x from a TikZ \foreach loop will not be expanded in time if it occurs in the replacement text of the defined macro. As pointed out by @PeterGrill tex.stackexchange.com/questions/302718/…, something like \csxdef is probably needed. With the suitable \noexpand's.
Apr
7
comment \IfStrEqCase issue using \csname
are you sure this works? the \x from tipoveiculo\x will not be expanded by the \csgdef. This was pointed out by @PeterGrill tex.stackexchange.com/questions/302718/…
Apr
7
answered pdfTex: \operatorname with Computer Modern Roman
Apr
7
answered Force expansion of macro in Latex
Apr
6
comment Insert graphic and stretch to textwidth, textheight
I encountered it there tex.stackexchange.com/questions/291839/… see the comments below my answer
Apr
6
comment Insert graphic and stretch to textwidth, textheight
cf latex-project.org/cgi-bin/ltxbugs2html?pr=graphics/4451