Reputation
2,777
Top tag
Next privilege 3,000 Rep.
Cast close & reopen votes
Badges
13 42
Newest
 Revival
Impact
~501k people reached

Feb
5
comment Does XeLaTeX in TeX Live 2015 force unicode quotation marks?
@egreg Ok, I voted to close it. That designation "off-topic" still needs to be changed to something like "bug already fixed". The question itself is clearly on topic. What i mean is that it was deemed off-topic after the fact. A truly off-topic question will be off-topic at all points in time.
Feb
5
comment Does XeLaTeX in TeX Live 2015 force unicode quotation marks?
@Herbert It happens when switching fonts. The issue occurs with DejaVu Sans. This code works fine in 2014.
Feb
3
comment LaTeX Photo With Rounded Corners
Could you please explain why ++ works or is needed in the second example? I am trying to gain a solid understanding by grasping your answer along with Paul Gaborit's answer here: tex.stackexchange.com/a/76216/13552 These methods are much better than "the white box" methods because they don't require a white background.
Jan
26
comment How to optimize Latin Modern font with XeLaTeX
@KhaledHosny Any chance you could humor me and demonstrate how you would do it if you wanted to? A platform-independent way of defining a default latex font, something like: \newfontfamily\latinmodern{lmroman10-regular}
Jan
22
comment Why does \show\jobname result in \jobname and not the name of the file?
@jfbu Excellent comment about the catcodes. It led me to here: tex.stackexchange.com/questions/117892/…, which I think is relevant to mention here for future reference.
Jan
22
comment Why does \show\jobname result in \jobname and not the name of the file?
@DavidCarlisle It was a nice gesture by Werner to recognize you, being as you have a mere 302k points. Your answer sticks to the point and I recognize that. I do, generally speaking, like longer, more informative answers because I like to understand the relationships between things-I must admit. His answer did almost steal the gold metal-egreg style :-) Better luck next time, Werner.
Jan
22
comment Why does \show\jobname result in \jobname and not the name of the file?
That code is still not expanding it at the right time, but I verified that the strings are equal with \typeout{**** \jobname}. Filename=test.tex and my code was therefore \expandafter\IfEq\expandafter{\jobname}{test}{TRUE}{FALSE} Result: FALSE, typeout shows **** test. This is baffling me a bit, and because \IfEq\expandafter{\jobname}{test}{TRUE} results in TRUEFALSE
Jan
22
comment Why does \show\jobname result in \jobname and not the name of the file?
Pretty hefty supplement I'd say. I almost gave the answer to you for writing a more detailed, time-consuming explanation. Nonetheless, David's also provides useful information. I'd be interested in understanding how to use \jobname in xstring's \IfEq{}{}{}{}, for example, where it needs to be expanded at a very specific time in order to be true, like why \IfEq{\jobname}{<nameoffile>}{TRUE}{FALSE} does not become TRUE. It seems \jobname can be expanded, but only sometimes (when the log is written-if I understand you correctly.)
Jan
21
comment How can I expand the font size within a heading (section, subsection, etc.)?
Thanks for the most recent edits, I was just wondering about wrapping the sections with \makeatletter and \makeatother. That solidified my understanding. I assume the reason why the other code is better is to keep all category code changes out of the body?
Jan
19
comment How can I implement xstring's \IfBeginWith equivalently in a non-user-level macro?
It would seem \regex_match:nnTF is a more recent addition to LaTeX 3 than the version I have because I am getting LaTeX has been asked to use a command \regex_match:nnTF, but this has not been defined yet.
Jan
15
comment Caption in a tikzpicture drawing
You might want to complete your minimal code. The community here is really big on that. You might also want to change the title into a question. Just pretend you are on jeopardy.
Jan
15
comment Caption in a tikzpicture drawing
@johni See note about floats.
Jan
14
comment Text without hyphenation with Tikz
Is the \hyphenchar\font=1 necessary to restore hyphenation, or is the \hyphenchar\font=1 actually localized? I ask because you called it a global switcher. At first glance, it seems to me that it would be a change valid only within the tikzpicture's scope.
Jan
14
comment Last xe(la)tex colors text in white in some circumstances
For future reference, I confirmed that you are correct. See closed question tex.stackexchange.com/q/287580/13552
Jan
13
comment How can I create block of text that ignores the surrounding glue?
@egreg I think the culprit was the \par\noindent before the \hspace{5mm}\hangindent=5mm{\parbox...
Jan
13
comment How can I create block of text that ignores the surrounding glue?
@egreg Ah! Of course! The \par\xdef\tpd{\the\prevdepth} must happen within the scope of \footnotesize in order to capture its \lineskip value (or something, davidcarlisle explained it to me once). That means the mysterious whitespace above was caused by the larger \lineskip value of the normal font. Could you confirm this?
Jan
13
comment How can I create block of text that ignores the surrounding glue?
@egreg The solution to the other question does not solve my issue. I already tried using parameters with \parbox. Some mysterious whitespace remains. I also tried resetting the \prevdepth. Are you sure that applies to my situation? Please see edits. Maybe they warrant reopening this question.
Jan
12
comment How can I test the value of two counters?
@Herbert But why does \ifx \somecounter>2 \else \fi work?
Jan
12
comment How can I test the value of two counters?
@barbarabeeton Haha, very true! I copied the code from the last block without thinking about the text. Fixed :)
Jan
12
comment How can I test the value of two counters?
@Herbert He is demonstrating that the macro \counterA does not work if renewed. You need to use \value{counterA}. Quite an important detail Herbert! Thanks.